/* ==========================================================================
   Kasa — tasarım sistemi
   Popup, tam sayfa kasa ve telefon PWA'sı aynı belirteçleri kullanır.
   Açık/koyu tema: `:root` açık paleti taşır, `[data-theme]` ve
   `prefers-color-scheme` yalnızca değerleri değiştirir.
   ========================================================================== */

:root {
  color-scheme: light;

  /* --- yüzeyler ------------------------------------------------------- */
  --bg: #f4f4f7;
  --bg-tint: #eceaf6;
  --surface: #ffffff;
  --surface-2: #f8f8fb;
  --surface-3: #f1f1f6;
  --surface-hover: #f3f2f9;
  --elevated: #ffffff;

  /* --- metin ----------------------------------------------------------- */
  --text: #16151d;
  --text-2: #55536a;
  --text-3: #8b899f;
  --text-inverse: #ffffff;

  /* --- çizgiler -------------------------------------------------------- */
  --border: rgba(22, 21, 29, 0.09);
  --border-strong: rgba(22, 21, 29, 0.16);
  --ring: rgba(99, 102, 241, 0.45);

  /* --- vurgu ----------------------------------------------------------- */
  --accent: #5b5bd6;
  --accent-hover: #4f4fc4;
  --accent-soft: rgba(99, 102, 241, 0.11);
  --accent-text: #4a48c7;
  --grad: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.13), rgba(168, 85, 247, 0.13));

  /* --- anlamsal renkler ------------------------------------------------ */
  --ok: #0f9960;
  --ok-soft: rgba(16, 185, 129, 0.13);
  --warn: #b45309;
  --warn-soft: rgba(245, 158, 11, 0.15);
  --danger: #d33553;
  --danger-hover: #bb2946;
  --danger-soft: rgba(244, 63, 94, 0.12);
  --info: #0e7490;
  --info-soft: rgba(6, 182, 212, 0.13);

  /* kayıt türü renkleri */
  --t-login: #6366f1;
  --t-card: #d97706;
  --t-identity: #0d9488;
  --t-note: #e11d48;

  /* --- ölçek ----------------------------------------------------------- */
  --r-sm: 7px;
  --r: 11px;
  --r-lg: 15px;
  --r-xl: 20px;
  --r-full: 999px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;

  /* --- gölge ----------------------------------------------------------- */
  --sh-sm: 0 1px 2px rgba(16, 15, 25, 0.06), 0 1px 1px rgba(16, 15, 25, 0.04);
  --sh: 0 2px 6px rgba(16, 15, 25, 0.07), 0 1px 2px rgba(16, 15, 25, 0.05);
  --sh-lg: 0 12px 34px rgba(16, 15, 25, 0.13), 0 3px 10px rgba(16, 15, 25, 0.07);
  --sh-accent: 0 6px 18px rgba(99, 102, 241, 0.3);

  /* --- tipografi ------------------------------------------------------- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "Noto Sans", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Code", "Roboto Mono", ui-monospace,
    Menlo, Consolas, monospace;

  /* --- hareket --------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 120ms;
  --normal: 200ms;
}

/* Koyu tema: sistem tercihi (açıkça "light" seçilmediyse) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0c12;
    --bg-tint: #131020;
    --surface: #17161f;
    --surface-2: #1d1c27;
    --surface-3: #24222f;
    --surface-hover: #221f30;
    --elevated: #1c1a26;

    --text: #f2f1f7;
    --text-2: #a5a2b8;
    --text-3: #6f6c84;
    --text-inverse: #16151d;

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.17);
    --ring: rgba(139, 138, 255, 0.55);

    --accent: #8b8afc;
    --accent-hover: #9d9cff;
    --accent-soft: rgba(139, 138, 252, 0.16);
    --accent-text: #a5a4ff;
    --grad: linear-gradient(135deg, #7c7dff 0%, #b46bff 100%);
    --grad-soft: linear-gradient(135deg, rgba(124, 125, 255, 0.18), rgba(180, 107, 255, 0.18));

    --ok: #34d399;
    --ok-soft: rgba(52, 211, 153, 0.15);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.16);
    --danger: #fb7185;
    --danger-hover: #f95c76;
    --danger-soft: rgba(251, 113, 133, 0.16);
    --info: #22d3ee;
    --info-soft: rgba(34, 211, 238, 0.15);

    --t-login: #8b8afc;
    --t-card: #fbbf24;
    --t-identity: #2dd4bf;
    --t-note: #fb7185;

    --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --sh: 0 2px 8px rgba(0, 0, 0, 0.45);
    --sh-lg: 0 16px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
    --sh-accent: 0 6px 20px rgba(124, 125, 255, 0.35);
  }
}

/* Koyu tema: kullanıcı açıkça seçtiyse — sistem ne derse desin */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0c12;
  --bg-tint: #131020;
  --surface: #17161f;
  --surface-2: #1d1c27;
  --surface-3: #24222f;
  --surface-hover: #221f30;
  --elevated: #1c1a26;

  --text: #f2f1f7;
  --text-2: #a5a2b8;
  --text-3: #6f6c84;
  --text-inverse: #16151d;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --ring: rgba(139, 138, 255, 0.55);

  --accent: #8b8afc;
  --accent-hover: #9d9cff;
  --accent-soft: rgba(139, 138, 252, 0.16);
  --accent-text: #a5a4ff;
  --grad: linear-gradient(135deg, #7c7dff 0%, #b46bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 125, 255, 0.18), rgba(180, 107, 255, 0.18));

  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.15);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.16);
  --danger: #fb7185;
  --danger-hover: #f95c76;
  --danger-soft: rgba(251, 113, 133, 0.16);
  --info: #22d3ee;
  --info-soft: rgba(34, 211, 238, 0.15);

  --t-login: #8b8afc;
  --t-card: #fbbf24;
  --t-identity: #2dd4bf;
  --t-note: #fb7185;

  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh: 0 2px 8px rgba(0, 0, 0, 0.45);
  --sh-lg: 0 16px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  --sh-accent: 0 6px 20px rgba(124, 125, 255, 0.35);
}

/* ============================================================== temel ==== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 640;
  letter-spacing: -0.017em;
  line-height: 1.25;
}
h1 { font-size: 21px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
h4 { font-size: 13px; }

p { margin: 0; }

a {
  color: var(--accent-text);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* Odak halkası: yalnızca klavye kullanıcılarına */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Kaydırma çubuğu */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-full);
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--text-3); background-clip: content-box; }

/* ============================================================ düğmeler === */

.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-bd: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 13.5px;
  font-weight: 560;
  letter-spacing: -0.006em;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
    transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), opacity var(--fast);
}
.btn:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--border-strong); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary {
  --btn-bd: transparent;
  --btn-fg: #fff;
  background: var(--grad);
  box-shadow: var(--sh-accent);
}
.btn-primary:hover:not(:disabled) {
  background: var(--grad);
  filter: brightness(1.07);
  border-color: transparent;
}

.btn-danger { --btn-fg: var(--danger); --btn-bg: var(--danger-soft); --btn-bd: transparent; }
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #fff; border-color: transparent; }

.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-hover); border-color: transparent; }

.btn-block { width: 100%; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: var(--r-lg); }

/* Simge düğmesi */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  padding: 0;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.is-on { color: var(--accent); background: var(--accent-soft); }

/* ============================================================== girdiler = */

.field { display: flex; flex-direction: column; gap: 6px; }

.label {
  font-size: 12px;
  font-weight: 580;
  color: var(--text-2);
  letter-spacing: -0.004em;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease),
    background var(--fast) var(--ease);
}
.input::placeholder,
.textarea::placeholder { color: var(--text-3); }

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input:disabled { background: var(--surface-3); color: var(--text-3); cursor: not-allowed; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--danger-soft); }

.textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.input.mono, .textarea.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em; }

.select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b899f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 11px center;
  cursor: pointer;
}

/* Girdinin içine gömülü eylem düğmeleri */
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-right: var(--pad-right, 40px); }
.input-actions {
  position: absolute;
  right: 5px;
  display: flex;
  align-items: center;
  gap: 1px;
}
.input-actions .icon-btn { width: 28px; height: 28px; }
.input-actions .icon-btn svg { width: 15px; height: 15px; }

/* Arama kutusu */
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search svg {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--text-3);
  pointer-events: none;
}
.search .input { padding-left: 35px; border-radius: var(--r-full); background: var(--surface-2); }
.search .input:focus { background: var(--surface); }

/* Anahtar (toggle) */
.switch {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 40px;
  height: 23px;
  cursor: pointer;
}
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track {
  position: absolute;
  inset: 0;
  border-radius: var(--r-full);
  background: var(--border-strong);
  transition: background var(--normal) var(--ease);
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform var(--normal) var(--ease-out);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(17px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--ring); }

/* Kaydırıcı */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: var(--r-full);
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--pct, 50%),
    var(--border-strong) var(--pct, 50%),
    var(--border-strong) 100%
  );
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-strong);
  box-shadow: var(--sh);
  transition: transform var(--fast) var(--ease);
}
.range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range::-moz-range-track { height: 5px; border-radius: var(--r-full); background: var(--border-strong); }
.range::-moz-range-progress { height: 5px; border-radius: var(--r-full); background: var(--accent); }
.range::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border-strong); box-shadow: var(--sh);
}

/* ============================================================= yüzeyler == */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.card-pad { padding: var(--sp-4); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* =============================================================== rozet === */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 8px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 580;
  letter-spacing: -0.002em;
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }

/* ============================================================ kayıt satırı */

.row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--fast) var(--ease);
}
.row:hover { background: var(--surface-hover); }
.row.is-active { background: var(--accent-soft); }
.row-body { flex: 1; min-width: 0; }
.row-title {
  font-size: 13.5px;
  font-weight: 560;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-sub {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-actions {
  display: flex;
  gap: 1px;
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}
.row:hover .row-actions,
.row:focus-within .row-actions { opacity: 1; }

/* Site simgesi / tür rozeti */
.favicon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 640;
  overflow: hidden;
}
.favicon img { width: 20px; height: 20px; border-radius: 4px; }
.favicon svg { width: 17px; height: 17px; }
.favicon.t-login { background: color-mix(in srgb, var(--t-login) 15%, transparent); color: var(--t-login); }
.favicon.t-card { background: color-mix(in srgb, var(--t-card) 17%, transparent); color: var(--t-card); }
.favicon.t-identity { background: color-mix(in srgb, var(--t-identity) 16%, transparent); color: var(--t-identity); }
.favicon.t-note { background: color-mix(in srgb, var(--t-note) 15%, transparent); color: var(--t-note); }

/* ============================================================ güç ölçer == */

.strength { display: flex; flex-direction: column; gap: 5px; }
.strength-bar {
  display: flex;
  gap: 3px;
  height: 4px;
}
.strength-seg {
  flex: 1;
  border-radius: var(--r-full);
  background: var(--border-strong);
  transition: background var(--normal) var(--ease);
}
.strength-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-3);
}
.strength[data-score="0"] .strength-seg:nth-child(-n + 1),
.strength[data-score="1"] .strength-seg:nth-child(-n + 2),
.strength[data-score="2"] .strength-seg:nth-child(-n + 3),
.strength[data-score="3"] .strength-seg:nth-child(-n + 4),
.strength[data-score="4"] .strength-seg { background: var(--strength-color); }
.strength[data-score="0"] { --strength-color: var(--danger); }
.strength[data-score="1"] { --strength-color: #f97316; }
.strength[data-score="2"] { --strength-color: var(--warn); }
.strength[data-score="3"] { --strength-color: #65a30d; }
.strength[data-score="4"] { --strength-color: var(--ok); }
.strength-label { font-weight: 600; color: var(--strength-color, var(--text-3)); }

/* ============================================================== sekmeler = */

.tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r);
  background: var(--surface-3);
}
.tab {
  flex: 1;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 560;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-on {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-sm);
}

/* =========================================================== boş durum === */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-3);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  background: var(--grad-soft);
  color: var(--accent);
}
.empty-icon svg { width: 24px; height: 24px; }
.empty h3 { color: var(--text); }
.empty p { font-size: 13px; max-width: 34ch; line-height: 1.55; }

/* ============================================================== bildirim = */

.toast-host {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(92vw, 380px);
  padding: 10px 15px;
  border-radius: var(--r-full);
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 540;
  box-shadow: var(--sh-lg);
  pointer-events: auto;
  animation: toast-in 260ms var(--ease-out);
}
.toast svg { width: 16px; height: 16px; flex: none; }
.toast.is-out { animation: toast-out 180ms var(--ease) forwards; }
.toast-ok svg { color: #34d399; }
.toast-error { background: var(--danger); color: #fff; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px) scale(0.97); }
}

/* ============================================================== kip kutusu */

.modal-host {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 9, 15, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9000;
  animation: fade-in 160ms var(--ease);
}
.modal {
  width: min(100%, 440px);
  max-height: 86vh;
  overflow: auto;
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--elevated);
  border: 1px solid var(--border);
  box-shadow: var(--sh-lg);
  animation: modal-in 220ms var(--ease-out);
}
.modal h2 { margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: var(--sp-5); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* =============================================================== çeşitli = */

.stack { display: flex; flex-direction: column; }
.stack-2 { gap: var(--sp-2); }
.stack-3 { gap: var(--sp-3); }
.stack-4 { gap: var(--sp-4); }
.stack-5 { gap: var(--sp-5); }
.hstack { display: flex; align-items: center; }
.hstack-2 { gap: var(--sp-2); }
.hstack-3 { gap: var(--sp-3); }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.mono { font-family: var(--mono); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.center { text-align: center; }
.hidden { display: none !important; }

.section-title {
  font-size: 11px;
  font-weight: 640;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Yükleniyor animasyonu */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 640ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* İskelet yükleme */
.skeleton {
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-hover) 50%, var(--surface-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Hareket duyarlılığı */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
