/* ============================================================
   MONARC // OBSIDIAN
   Kurumsal koyu yönetim paneli · tek elektrik mavisi vurgu +
   siyan ikincil ışıltı · asimetrik tonlama · katmanlı yüzeyler.
   Tipografi: Sora (display) · Manrope (metin) · JetBrains Mono.
   ============================================================ */

:root {
  /* Tema temeli — açık temada ters çevrilir */
  --hair: 255, 255, 255;
  --glass-rgb: 6, 7, 12;

  /* Zeminler — obsidyen, mavi alt tonlu, kademeli yükselti */
  --deep: #040507;
  --bg: #07080d;
  --bg-2: #0a0c12;
  --surface: #0e1119;
  --surface-2: #131725;
  --surface-3: #1a1f30;
  --surface-4: #232a3d;

  /* Katmanlı yüzey gradyanları */
  --lift: linear-gradient(180deg, rgba(var(--hair), 0.028), rgba(var(--hair), 0) 46%);
  --lift-2: linear-gradient(180deg, rgba(var(--hair), 0.045), rgba(var(--hair), 0) 40%);

  /* Metin */
  --ink: #e9eef8;
  --ink-2: #a2acc2;
  --ink-3: #69738a;
  --ink-4: #454e63;

  /* Çizgiler — hairline ölçeği */
  --line: rgba(var(--hair), 0.065);
  --line-2: rgba(var(--hair), 0.1);
  --line-3: rgba(var(--hair), 0.16);

  /* Elektrik mavisi — birincil (accent presetleriyle değişir) */
  --accent-rgb: 63, 107, 255;
  --accent: #3f6bff;
  --accent-hover: #5a80ff;
  --accent-press: #2b50d8;
  --accent-soft: rgba(var(--accent-rgb), 0.13);
  --accent-line: rgba(var(--accent-rgb), 0.36);
  --accent-glow: rgba(var(--accent-rgb), 0.5);
  --accent-text: #8fadff;
  --accent-top: #5379ff;
  --accent-bot: #2f55e6;

  /* Siyan — ikincil ışıltı (asimetri) */
  --cyan-rgb: 70, 213, 242;
  --cyan: #46d5f2;
  --cyan-soft: rgba(var(--cyan-rgb), 0.13);
  --cyan-line: rgba(var(--cyan-rgb), 0.32);

  /* Anlam renkleri — kontrollü doygunluk */
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.13);
  --amber: #f5b544;
  --amber-soft: rgba(245, 181, 68, 0.13);
  --red: #f5697a;
  --red-soft: rgba(245, 105, 122, 0.13);

  /* Yarıçaplar */
  --r-xs: 7px;
  --r-sm: 10px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 26px;
  --r-card: 20px;
  --r-control: 14px;
  --r-btn: 999px;

  /* Grafik tonları */
  --chart-grid: #212633;
  --chart-dim: #2b3040;

  /* Gradyanlar */
  --grad-accent: linear-gradient(180deg, var(--accent-top), var(--accent-bot));
  --grad-ink: linear-gradient(180deg, #ffffff, #dfe6f5);
  --grad-line: linear-gradient(90deg, transparent, var(--accent), var(--cyan), transparent);

  /* Gölgeler — katmanlı derinlik */
  --shadow-1: inset 0 1px 0 rgba(var(--hair), 0.035), 0 2px 6px rgba(0, 0, 0, 0.45);
  --shadow-2: inset 0 1px 0 rgba(var(--hair), 0.05), 0 22px 46px -26px rgba(0, 0, 0, 0.92);
  --shadow-3: inset 0 1px 0 rgba(var(--hair), 0.055), 0 44px 90px -34px rgba(0, 0, 0, 0.96);
  --ring: 0 0 0 3px rgba(var(--accent-rgb), 0.2);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --font: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Sora", "Manrope", -apple-system, "Segoe UI", sans-serif;
  --serif: "Sora", "Manrope", -apple-system, serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --nav-h: 66px;
}

/* ---------- Accent presetleri ---------- */
[data-accent="blue"] {
  --accent-rgb: 63, 107, 255;
  --accent: #3f6bff;
  --accent-hover: #5a80ff;
  --accent-press: #2b50d8;
  --accent-text: #8fadff;
  --accent-top: #5379ff;
  --accent-bot: #2f55e6;
}
[data-accent="cyan"] {
  --accent-rgb: 26, 186, 210;
  --accent: #1ab9d2;
  --accent-hover: #3fd0e6;
  --accent-press: #118ca3;
  --accent-text: #6fdcef;
  --accent-top: #34c8e0;
  --accent-bot: #1293ad;
}
[data-accent="violet"] {
  --accent-rgb: 124, 92, 255;
  --accent: #7c5cff;
  --accent-hover: #9a80ff;
  --accent-press: #5f3fe0;
  --accent-text: #b8a5ff;
  --accent-top: #8f74ff;
  --accent-bot: #6743ea;
}
[data-accent="emerald"] {
  --accent-rgb: 22, 178, 128;
  --accent: #16b280;
  --accent-hover: #3fcca1;
  --accent-press: #0d8a62;
  --accent-text: #6fe0bb;
  --accent-top: #2cc596;
  --accent-bot: #0f8e69;
}

/* ---------- Açık tema ---------- */
[data-theme="light"] {
  color-scheme: light;
  --hair: 16, 19, 28;
  --glass-rgb: 252, 253, 255;
  --deep: #e7ebf4;
  --bg: #f4f6fb;
  --bg-2: #eaeef7;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: #e8ecf5;
  --surface-4: #d6dceb;
  --ink: #0c111d;
  --ink-2: #414a5f;
  --ink-3: #6b7488;
  --ink-4: #99a1b3;
  --line: rgba(var(--hair), 0.09);
  --line-2: rgba(var(--hair), 0.14);
  --line-3: rgba(var(--hair), 0.22);
  --accent-text: #2b50d8;
  --chart-grid: #dfe4ef;
  --chart-dim: #c3cad9;
  --shadow-1: inset 0 1px 0 rgba(var(--hair), 0.02), 0 2px 6px rgba(16, 19, 28, 0.07);
  --shadow-2: inset 0 1px 0 rgba(var(--hair), 0.02), 0 20px 40px -24px rgba(16, 19, 28, 0.2);
  --shadow-3: inset 0 1px 0 rgba(var(--hair), 0.02), 0 40px 80px -32px rgba(16, 19, 28, 0.26);
  --grad-ink: linear-gradient(180deg, #26304a, #0e1421);
}

[data-theme="light"] .footer h5 { color: var(--ink); }
[data-theme="light"] .btn--light { background: var(--grad-ink); color: #fff; border-color: transparent; box-shadow: 0 16px 34px -18px rgba(16, 19, 28, 0.5); }
[data-theme="light"] .btn--ink { color: #fff; border-color: transparent; }
[data-theme="light"] .nav { box-shadow: 0 12px 30px -24px rgba(16, 19, 28, 0.5); }

[data-theme="light"] .loader { background: var(--deep); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  font-family: var(--font);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(var(--accent-rgb), 0.06), transparent 55%) fixed,
    var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.58;
  font-weight: 450;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(var(--accent-rgb), 0.35); color: #fff; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 99px; border: 4px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--surface-3); border: 3px solid transparent; background-clip: content-box; }

/* Odak halkası — erişilebilir ve zarif */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Ortak tipografi ---------- */


.serif { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }

.mono { font-family: var(--mono); }

.sub { color: var(--ink-3); font-size: 12px; margin-top: 3px; }

.link { color: var(--accent-text); font-weight: 600; font-size: 13px; transition: color 0.18s; }
.link:hover { color: var(--accent-hover); }

.cap { color: var(--ink-3); font-size: 12px; letter-spacing: 0.03em; }
.num { font-family: var(--display); font-weight: 600; }
.k { font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 3px 8px; border-radius: 99px; }

/* ============================================================
   YÜKLEME ÖRTÜSÜ · İLERLEME ÇUBUĞU
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--deep);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__inner { display: grid; justify-items: center; gap: 20px; }

.loader__ring {
  width: 40px; height: 40px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0deg, var(--accent) 180deg, var(--cyan) 300deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  animation: spin 0.9s linear infinite;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.loader__text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Sayfa geçiş ilerleme çubuğu */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 10001;
  background: var(--grad-line);
  box-shadow: 0 0 14px var(--accent-glow);
  opacity: 0;
  transition: width 0.4s var(--ease), opacity 0.3s;
  pointer-events: none;
}
.progress.is-on { opacity: 1; }

.page-in { animation: pageIn 0.62s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   NAVBAR — sabit · scroll ile gizlenip kademeli iner
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(var(--glass-rgb), 0.66);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transform: translateY(0);
  transition: transform 0.5s var(--ease), background 0.35s, border-color 0.35s, box-shadow 0.35s;
}


.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--ink);
}
.logo__mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--grad-accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(var(--hair), 0.3), 0 8px 20px -8px var(--accent-glow);
}
.logo__mark svg { width: 16px; height: 16px; }


/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.012em;
  height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.32s var(--ease), box-shadow 0.38s var(--ease), border-color 0.3s, color 0.25s, background 0.3s;
}
/* ışık süpürmesi (sheen) */
.btn::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -55%;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgba(var(--hair), 0.4), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.btn:hover::before { left: 128%; }
.btn > svg, .btn > span { position: relative; z-index: 2; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn svg { width: 15px; height: 15px; }

.btn--accent {
  background: linear-gradient(180deg, var(--accent-top), var(--accent-bot));
  color: #fff;
  border-color: rgba(var(--hair), 0.16);
  box-shadow: inset 0 1px 0 rgba(var(--hair), 0.35), inset 0 -14px 26px -20px rgba(0, 0, 0, 0.65), 0 16px 34px -16px var(--accent-glow);
}
.btn--accent:hover { box-shadow: inset 0 1px 0 rgba(var(--hair), 0.42), inset 0 -14px 26px -20px rgba(0, 0, 0, 0.6), 0 28px 54px -18px var(--accent-glow); }

.btn--ink {
  background: var(--grad-ink);
  color: #08090d;
  border-color: rgba(var(--hair), 0.55);
  box-shadow: inset 0 1px 0 rgba(var(--hair), 0.8), 0 16px 36px -18px rgba(var(--hair), 0.45);
}
.btn--ink:hover { box-shadow: inset 0 1px 0 rgba(var(--hair), 0.9), 0 26px 52px -18px rgba(var(--hair), 0.5); }
.btn--ink::before { background: linear-gradient(100deg, transparent, rgba(var(--accent-rgb), 0.28), transparent); }

/* --- birincil aksiyon: aksan→siyan gradyan + yön çipi --- */
.btn--primary {
  justify-content: space-between;
  gap: 14px;
  height: 52px;
  padding: 0 10px 0 24px;
  border-radius: var(--r-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.012em;
  border: 1px solid rgba(var(--hair), 0.14);
  background:
    linear-gradient(100deg, rgba(var(--cyan-rgb), 0), rgba(var(--cyan-rgb), 0.5)),
    var(--grad-accent);
  box-shadow:
    inset 0 1px 0 rgba(var(--hair), 0.45),
    inset 0 -16px 30px -22px rgba(0, 0, 0, 0.7),
    0 18px 40px -16px var(--accent-glow),
    0 10px 26px -16px rgba(var(--cyan-rgb), 0.55);
}
.btn--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(var(--hair), 0.5),
    inset 0 -16px 30px -22px rgba(0, 0, 0, 0.6),
    0 28px 56px -18px var(--accent-glow),
    0 14px 30px -16px rgba(var(--cyan-rgb), 0.7);
}
.btn--primary .arr-chip {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: 0 0 auto;
  background: rgba(var(--hair), 0.16);
  border: 1px solid rgba(var(--hair), 0.22);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.btn--primary .arr-chip svg { width: 16px; height: 16px; }
.btn--primary:hover .arr-chip { transform: translateX(4px); background: rgba(var(--hair), 0.26); }
.btn--primary .spinner { position: absolute; left: 50%; margin-left: -7px; }
.btn.is-loading .arr-chip { display: none; }

.btn--light {
  background: #fff;
  color: #08090d;
  border-color: rgba(var(--hair), 0.7);
  box-shadow: 0 16px 34px -18px rgba(var(--hair), 0.5);
}
.btn--light:hover { box-shadow: 0 26px 52px -18px rgba(var(--hair), 0.55); }

.btn--ghost {
  background: rgba(var(--hair), 0.028);
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: inset 0 1px 0 rgba(var(--hair), 0.06);
}
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }
.btn--ghost::before { background: linear-gradient(100deg, transparent, rgba(var(--accent-rgb), 0.3), transparent); }

.btn--block { width: 100%; }
.btn--sm { height: 38px; padding: 0 18px; font-size: 12.5px; }
.btn--xs { height: 32px; padding: 0 14px; font-size: 12px; }


.btn .spinner {
  display: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(var(--hair), 0.32);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  flex: 0 0 auto;
}
.btn--ghost .spinner,
.btn--light .spinner,
.btn--ink .spinner { border-color: rgba(10, 11, 16, 0.22); border-top-color: #0a0b10; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading > svg:not(.spinner) { display: none; }
.btn.is-loading { pointer-events: none; }

/* ============================================================
   LANDING
   ============================================================ */


.section { padding: 128px 0; position: relative; }


.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: transparent;
  border-top: 1px solid var(--line);
  color: rgba(var(--hair), 0.7);
  padding: 76px 0 40px;
}

.footer h5 { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { display: block; color: rgba(var(--hair), 0.56); font-size: 13px; padding: 6px 0; transition: color 0.2s; }
.footer a:hover { color: var(--ink); }


/* ============================================================
   AUTH
   ============================================================ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); }


.auth__proof { margin-top: auto; display: flex; gap: 46px; }
.auth__proof .num { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -0.03em; }
.auth__proof .cap { color: rgba(var(--hair), 0.42); font-size: 11.5px; margin-top: 4px; }


.form-page { display: none; }
.form-page.is-active { display: block; }
.form-page.is-active > * { animation: fieldIn 0.6s var(--ease-out) both; }
.form-page.is-active > *:nth-child(1) { animation-delay: 0.02s; }
.form-page.is-active > *:nth-child(2) { animation-delay: 0.07s; }
.form-page.is-active > *:nth-child(3) { animation-delay: 0.12s; }
.form-page.is-active > *:nth-child(4) { animation-delay: 0.17s; }
.form-page.is-active > *:nth-child(5) { animation-delay: 0.22s; }
.form-page.is-active > *:nth-child(6) { animation-delay: 0.27s; }
.form-page.is-active > *:nth-child(7) { animation-delay: 0.32s; }
.form-page.is-active > *:nth-child(n+8) { animation-delay: 0.36s; }
@keyframes fieldIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.field { margin-top: 18px; }
.field > label { display: block; font-size: 12px; font-weight: 650; color: var(--ink-2); margin-bottom: 8px; letter-spacing: 0.01em; }

.control { position: relative; display: flex; align-items: center; }
.control > svg { position: absolute; left: 15px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; transition: color 0.2s; }
.control:focus-within > svg { color: var(--accent-text); }

.input {
  width: 100%;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-control);
  color: var(--ink);
  font-size: 14px;
  padding: 0 15px 0 42px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: var(--ink-4); }
.input:hover { border-color: var(--line-3); }
.input:focus { border-color: var(--accent); box-shadow: var(--ring), inset 0 1px 2px rgba(0, 0, 0, 0.35); background: var(--surface-2); }

.input.textarea { height: auto; padding: 13px 15px; line-height: 1.6; resize: vertical; }

.eye {
  position: absolute; right: 6px;
  background: none; border: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.eye:hover { color: var(--ink); background: var(--surface-3); }
.eye svg { width: 16px; height: 16px; }

.form-row { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.switch { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track { width: 38px; height: 22px; border-radius: 99px; background: var(--surface-4); position: relative; transition: background 0.25s; flex: 0 0 auto; box-shadow: inset 0 1px 2px rgba(0,0,0,0.4); }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.5); transition: transform 0.28s var(--ease); }
.switch input:checked + .track { background: var(--grad-accent); }
.switch input:checked + .track::after { transform: translateX(16px); }

.auth__submit { margin-top: 26px; }
.or-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--ink-3); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth__foot { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 28px; }

/* ============================================================
   UYGULAMA KABUĞU — sidebar + topbar
   ============================================================ */
.shell { min-height: 100vh; display: flex; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  z-index: 900;
  background: transparent;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 12px 14px;
  overflow: visible;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}
.sidebar .logo { color: var(--ink); padding: 2px 10px 4px; gap: 9px; font-size: 13px; }
.sidebar .logo__mark { width: 30px; height: 30px; border-radius: 8px; }
.sidebar .logo__mark svg { width: 15px; height: 15px; }

.side-nav {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-4) transparent;
}
.side-nav::-webkit-scrollbar { width: 4px; height: 4px; }
.side-nav::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 99px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.side-nav .sec {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-4);
  margin: 14px 10px 6px;
}
.side-nav .sec:first-child { margin-top: 0; }

/* --- gurup ana satırı --- */
.nav-group { position: relative; }
.nav-parent {
  position: relative;
  width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--r);
  background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 550;
  transition: background 0.18s, color 0.18s;
}
.nav-parent:hover { background: var(--surface-2); color: var(--ink); }
.nav-parent > svg { width: 17px; height: 17px; color: var(--ink-3); flex: 0 0 auto; transition: color 0.18s; }
.nav-parent:hover > svg { color: var(--ink-2); }
.nav-parent .np-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.nav-parent .nav-chev { width: 13px !important; height: 13px !important; margin-left: 2px; color: var(--ink-4) !important; transition: transform 0.28s var(--ease); }
.nav-group.is-open > .nav-parent .nav-chev { transform: rotate(180deg); }
.nav-parent.is-active { background: linear-gradient(90deg, var(--accent-soft), transparent 90%); color: var(--ink); font-weight: 650; }
.nav-parent.is-active > svg { color: var(--accent-text); }
.nav-parent.is-active::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--accent), var(--cyan));
  box-shadow: 0 0 12px var(--accent-glow);
}

/* --- alt menü (accordion) --- */
.nav-sub { display: none; }
.nav-group.is-open > .nav-sub {
  display: grid; gap: 1px;
  margin: 4px 2px 6px;
  padding: 6px;
  border-radius: var(--r);
  background: rgba(var(--hair), 0.03);
  box-shadow: inset 0 1px 0 rgba(var(--hair), 0.05);
}
.nav-group.is-open > .nav-sub a { animation: navIn 0.4s var(--ease-out) both; }
.nav-group.is-open > .nav-sub a:nth-child(1) { animation-delay: 0.03s; }
.nav-group.is-open > .nav-sub a:nth-child(2) { animation-delay: 0.06s; }
.nav-group.is-open > .nav-sub a:nth-child(3) { animation-delay: 0.09s; }
.nav-group.is-open > .nav-sub a:nth-child(4) { animation-delay: 0.12s; }
.nav-group.is-open > .nav-sub a:nth-child(5) { animation-delay: 0.15s; }
.nav-group.is-open > .nav-sub a:nth-child(6) { animation-delay: 0.18s; }
@keyframes navIn {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}
.nav-sub a {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  margin-left: 6px; padding: 7px 12px 7px 14px;
  border-radius: var(--r-xs);
  color: var(--ink-3); font-size: 12.5px; font-weight: 500;
  transition: color 0.18s, background 0.18s;
}
.nav-sub a::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-4); flex: 0 0 auto;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.nav-sub a:hover { color: var(--ink); background: var(--surface-2); }
.nav-sub a.is-current { color: var(--accent-text); font-weight: 700; }
.nav-sub a.is-current::before { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); transform: scale(1.4); }
.nav-sub .badge { margin-left: auto; font-size: 9px; padding: 1px 7px; }

/* --- basit düğmeler --- */
.side-nav a.nav-link {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--r);
  color: var(--ink-2); font-size: 13px; font-weight: 550;
  transition: background 0.18s, color 0.18s;
}
.side-nav a.nav-link svg { width: 17px; height: 17px; color: var(--ink-3); flex: 0 0 auto; }
.side-nav a.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a.nav-link .np-label { flex: 1; }
.side-nav a.nav-link.is-logout { margin-top: 6px; }
.side-nav a.nav-link.is-logout:hover { color: var(--red); background: var(--red-soft); }
.side-nav a.nav-link.is-logout:hover svg { color: var(--red); }

.nav-group.is-active > .nav-parent { color: var(--ink); }

.side-nav .badge {
  margin-left: auto; font-size: 9.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-text);
  border: 1px solid var(--accent-line);
  letter-spacing: 0.04em;
}
.side-nav .badge--dot { width: 7px; height: 7px; padding: 0; background: var(--cyan); border-radius: 50%; border: 0; box-shadow: 0 0 8px var(--cyan); }

/* --- alt blok: plan + kullanıcı --- */
.side-user { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); flex: 0 0 auto; position: relative; z-index: 2; }
.side-user .side-plan {
  width: 100%; display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; padding: 9px 10px; border-radius: var(--r);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  transition: border-color 0.2s, transform 0.18s var(--ease);
}
.side-user .side-plan:hover { border-color: rgba(var(--accent-rgb), 0.55); transform: translateY(-1px); }
.sp-ico {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--grad-accent); color: #fff;
  box-shadow: inset 0 1px 0 rgba(var(--hair), 0.24);
}
.sp-ico svg { width: 13px; height: 13px; }
.sp-meta { flex: 1; min-width: 0; line-height: 1.25; }
.sp-meta strong { display: block; font-size: 12px; font-weight: 650; }
.sp-meta span { color: var(--ink-3); font-size: 10.5px; }
.side-plan > svg { width: 13px; height: 13px; color: var(--accent-text); flex: 0 0 auto; transition: transform 0.2s var(--ease); }
.side-plan:hover > svg { transform: translateX(2px); }

.who { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: var(--r); transition: background 0.18s; }
.who:hover { background: var(--surface-2); }
.who .tweaks { margin-left: auto; margin-right: 2px; }
.avatar {
  width: 33px; height: 33px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700;
  background: var(--grad-accent);
  color: #fff;
  flex: 0 0 auto;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(var(--hair), 0.24);
}
.who .meta { min-width: 0; line-height: 1.3; }
.who .meta strong { display: block; font-size: 12.5px; font-weight: 650; }
.who .meta span { color: var(--ink-3); font-size: 11px; }

/* --- sıkışık ray --- */
.shell.is-collapsed .sidebar { width: 78px; padding: 18px 10px 14px; }
.shell.is-collapsed .logo { justify-content: center; padding: 2px 0 4px; }
.shell.is-collapsed .logo em,
.shell.is-collapsed .nav-parent .np-label,
.shell.is-collapsed .nav-chev,
.shell.is-collapsed .side-plan,
.shell.is-collapsed .who .meta,
.shell.is-collapsed .side-nav .badge { display: none; }
.shell.is-collapsed .nav-parent,
.shell.is-collapsed .nav-link { justify-content: center; padding: 9px 0; }
.shell.is-collapsed .side-nav { overflow: visible; }
.shell.is-collapsed .side-nav .sec {
  display: block; margin: 13px 9px; padding: 0; height: 1px; overflow: hidden;
  background: var(--line); color: var(--ink-4); text-indent: -999px;
}
.shell.is-collapsed .who { justify-content: center; padding: 8px 0; }
.shell.is-collapsed .who .tweaks { margin: 0; }

/* ray modunda uçuşan alt menü */
.shell.is-collapsed .nav-sub {
  position: absolute;
  left: calc(100% + 14px);
  top: -4px;
  width: 224px;
  padding: 8px;
  z-index: 70;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
}
.shell.is-collapsed .nav-group.is-open > .nav-sub { display: grid; gap: 1px; padding: 8px; }
.shell.is-collapsed .nav-sub a { margin-left: 0; padding: 8px 11px; border-left: 0; border-radius: var(--r-xs); }
.shell.is-collapsed .nav-sub a::before { background: var(--accent); }

.main { flex: 1; min-width: 0; margin-left: 232px; display: flex; flex-direction: column; min-height: 100vh; transition: margin-left 0.45s var(--ease); }
.shell.is-collapsed .main { margin-left: 78px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 13px 34px;
  background: rgba(var(--glass-rgb), 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar__title { display: flex; flex-direction: column; min-width: 0; }
.topbar__title h1 { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__title span { color: var(--ink-3); font-size: 12px; margin-top: 2px; }

.btn--icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-btn);
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn--icon:hover { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
.btn--icon svg { width: 17px; height: 17px; }

.bell { position: relative; }
.bell .dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 1.5px solid var(--bg); box-shadow: 0 0 8px var(--red); }

.search { margin-left: 0; position: relative; width: 260px; margin-right: 8px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-3); }
.search input {
  width: 100%; height: 38px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-btn);
  color: var(--ink);
  padding: 0 12px 0 38px;
  font-size: 13px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.search input:focus { border-color: var(--accent); box-shadow: var(--ring); background: var(--surface-2); }
.search input::placeholder { color: var(--ink-4); }

.content { flex: 1; min-width: 0; padding: 34px 34px 0; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ============================================================
   KARTLAR & İSTATİSTİK
   ============================================================ */
.card {
  position: relative;
  background: var(--lift), var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card__head h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.grid-2 > *, .profile-grid > *, .stats > *, .features > *  { min-width: 0; }


.stat__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; position: relative; z-index: 1; }
.stat__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); box-shadow: inset 0 1px 0 rgba(var(--hair), 0.06); }
.stat__icon svg { width: 18px; height: 18px; }
.trend { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.trend svg { width: 11px; height: 11px; }
.trend--up { color: var(--green); background: var(--green-soft); }
.trend--down { color: var(--red); background: var(--red-soft); }
.stat__value { position: relative; z-index: 1; font-family: var(--display); font-size: 29px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }


/* ============================================================
   GRAFİK
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-2 > .card { padding: 24px; }
.chart-area { width: 100%; height: 244px; display: block; margin-top: 18px; }
.spark-line { color: var(--accent); }

.stop-a { stop-color: var(--accent); }
.stop-b { stop-color: var(--accent); }

.chart-grid { stroke: var(--chart-grid); }


.legend { margin-top: 20px; display: grid; gap: 10px; }
.legend li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.legend .sw { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; box-shadow: 0 0 8px -1px currentColor; }


.legend .pct { margin-left: auto; font-family: var(--mono); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ============================================================
   TABLO
   ============================================================ */
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 99px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  padding: 13px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody td {
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .cust { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 600; }
.table .avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 10.5px; }
.table .amount { font-family: var(--mono); color: var(--ink); font-weight: 600; text-align: right; }
.table th.num, .table td.num { text-align: right; }
.table .mono { font-family: var(--mono); font-size: 12px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; padding: 4px 11px; border-radius: 99px; letter-spacing: 0.01em; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill--ok { color: var(--green); background: var(--green-soft); }
.pill--warn { color: var(--amber); background: var(--amber-soft); }
.pill--err { color: var(--red); background: var(--red-soft); }

/* ============================================================
   SORGU SAYFASI — DB konsolu
   ============================================================ */


.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.chip:hover { border-color: var(--accent-line); color: var(--accent-text); }
.chip.is-active { background: var(--grad-accent); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -12px var(--accent-glow); }


/* Eski (main.js) uyumlu isimler — zarar yok */


.query-card { margin-bottom: 16px; }


/* ============================================================
   PROFİL
   ============================================================ */
.profile-grid { display: grid; grid-template-columns: 330px 1fr; gap: 16px; }
.profile-grid > .card { padding: 26px; }


.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; margin-top: 26px; align-items: center; justify-content: flex-end; }

.pref-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.pref-row:last-of-type { border-bottom: 0; }
.pref-row strong { display: block; font-size: 13.5px; font-weight: 600; }
.pref-row span { color: var(--ink-3); font-size: 12px; }


.activity { display: grid; }
.activity li { list-style: none; display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.activity li:last-child { border-bottom: 0; }


.activity strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.activity .mono { color: var(--ink-3); font-size: 11px; margin-top: 3px; display: block; }

/* ============================================================
   UYGULAMA FOOTER · TOAST · OVERLAY
   ============================================================ */


.overlay { position: fixed; inset: 0; z-index: 850; background: rgba(3, 4, 7, 0.7); opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); backdrop-filter: blur(2px); }
.overlay.is-show { opacity: 1; pointer-events: auto; }

/* ============================================================
   HAREKET — koreografi
   ============================================================ */


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .profile-grid  { grid-template-columns: 1fr; }
  
  
  
}

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  
  
  .sidebar { transform: translateX(-100%); width: 274px; box-shadow: var(--shadow-3); }
  .sidebar.is-show { transform: none; }
  .main, .shell.is-collapsed .main { margin-left: 0; }
  
}

@media (max-width: 600px) {
  .stats, .features, .form-2 { grid-template-columns: 1fr; }
  .content { padding: 24px 16px 0; }
  .topbar { padding: 12px 16px; }
  .search { display: none; }
  
  
  .container { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  
}

/* ============================================================
   GÖRÜNÜM KATMANI — spotlight · manyetik · tema anahtarı · grafik
   ============================================================ */

/* --- a11y yardımcıları --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 50%; transform: translate(-50%, -180%);
  z-index: 300; background: var(--grad-accent); color: #fff;
  padding: 11px 20px; border-radius: var(--r-btn); font-size: 13px; font-weight: 650;
  box-shadow: 0 18px 36px -16px var(--accent-glow); transition: transform 0.32s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }
#main:focus { outline: none; }

/* --- imleç ışıması --- */


/* --- kart spotlight --- */
.has-spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), 0.2), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease); mix-blend-mode: screen;
}
.has-spot:hover::after { opacity: 1; }
[data-theme="light"] .has-spot::after {
  mix-blend-mode: multiply;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--accent-rgb), 0.12), transparent 60%);
}

/* --- manyetik butonlar (transform'dan bağımsız "translate") --- */
.btn, .btn--icon  {
  translate: var(--tx, 0px) var(--ty, 0px);
  transition: translate 0.35s var(--ease);
}

/* --- tema + accent anahtarı --- */
.tweaks { position: relative; display: inline-flex; }
.tweaks__btn {
  width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--ink-2); transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tweaks__btn:hover { color: var(--accent-text); border-color: var(--accent-line); background: var(--surface-3); }
.tweaks__btn svg { width: 17px; height: 17px; }
.tweaks__pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 80; width: 236px;
  padding: 14px; display: grid; gap: 14px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
}
.tweaks.is-open .tweaks__pop { opacity: 1; visibility: visible; transform: none; }
.tweaks.is-up .tweaks__pop { top: auto; bottom: calc(100% + 10px); }
.tweaks__row { display: grid; gap: 8px; }
.tweaks__lbl { font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.tweaks__seg { display: flex; padding: 3px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.tweaks__seg button {
  flex: 1; padding: 7px 8px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  background: none; border: 0; border-radius: 99px; color: var(--ink-2); transition: color 0.2s, background 0.3s var(--ease);
}
.tweaks__seg button.is-active { background: var(--grad-accent); color: #fff; box-shadow: 0 8px 18px -10px var(--accent-glow); }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 24px; height: 24px; padding: 0; cursor: pointer; border-radius: 50%;
  border: 2px solid var(--line-2);
  background: linear-gradient(135deg, var(--accent-top), var(--accent-bot));
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.swatch:hover { transform: scale(1.12); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px var(--accent-line); }

.auth__tweaks { position: fixed; top: 18px; right: 22px; z-index: 60; }

/* --- topbar eylem grubu --- */
.topbar__acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* --- grafik hover --- */
.chart-area { cursor: crosshair; }
.chart-area .cross { stroke: var(--accent-line); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity 0.2s; }

.chart-area.is-hover .cross { opacity: 1; }


.spark-line { transition: stroke-dashoffset 1.1s var(--ease); }

.empty { padding: 56px 20px; text-align: center; color: var(--ink-3); font-size: 13px; }


@media (max-width: 600px) {
  .tweaks__pop { right: -10px; width: 220px; }
  
  .auth__tweaks { top: 12px; right: 12px; }
}

/* ============================================================
   HERO v2 — asimetrik editoryal + cam panel mockup + mesh/grain
   ============================================================ */


@keyframes monarc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}


@keyframes drawSlide { to { stroke-dashoffset: 0; } }
@keyframes hpFade { to { opacity: 1; } }


.track {
  flex: 1; height: 5px; border-radius: 99px; background: var(--bg-2);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25); overflow: hidden;
}
.track i {
  display: block; height: 100%; width: var(--w, 50%); transform-origin: left center;
  border-radius: 99px; background: var(--grad-accent);
  animation: growX 1s var(--ease) both; animation-delay: var(--d, 0.2s);
}
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }


@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero__mesh {
  position: absolute; left: -12%; top: -22%; width: 62%; height: 84%;
  border-radius: 50%; filter: blur(90px); opacity: 0.85;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.3), transparent);
  animation: drift 17s ease-in-out infinite alternate;
}
.hero__glow {
  position: absolute; right: -10%; bottom: -32%; width: 52%; height: 72%;
  border-radius: 50%; filter: blur(110px); opacity: 0.75;
  background: radial-gradient(closest-side, rgba(var(--cyan-rgb), 0.2), transparent);
  animation: drift 23s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(42px, -26px, 0) scale(1.16); }
}
.hero__grain {
  position: absolute; inset: 0; opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}


/* ============================================================
   AUTH v2 — ortalanmış 3D çevrilebilir giriş / kayıt kartı
   ============================================================ */
.auth {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  background:
    radial-gradient(72% 58% at 80% 6%, rgba(var(--accent-rgb), 0.13), transparent 62%),
    radial-gradient(60% 52% at 8% 94%, rgba(var(--cyan-rgb), 0.07), transparent 55%),
    var(--bg);
  padding: 32px 24px 40px;
}
.auth .hero__mesh { width: 46%; height: 60%; left: -8%; top: -16%; opacity: 0.7; }
.auth .hero__glow { width: 44%; height: 64%; right: -10%; bottom: -24%; opacity: 0.65; }

.auth__wrap {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 436px;
  grid-template-areas:
    "side  card"
    "proof card"
    "legal legal";
  align-items: center;
  column-gap: 62px;
  z-index: 2;
}
.auth__side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--ink);
}
.auth__brand em { font-style: normal; }

.auth__headline {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-top: 28px;
}
.auth__headline .g {
  background: linear-gradient(100deg, var(--accent-text), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth__lead {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.65;
  margin-top: 16px;
  max-width: 46ch;
}
.auth__feats { display: grid; gap: 15px; margin-top: 30px; list-style: none; }
.auth__feats li { display: flex; align-items: flex-start; gap: 13px; }
.auth__feats .fi {
  width: 35px; height: 35px;
  border-radius: 11px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-text);
}
.auth__feats .fi svg { width: 16px; height: 16px; }
.auth__feats strong { display: block; font-size: 13.5px; font-weight: 650; }
.auth__feats span { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
.auth__trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.auth__trust span {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 6px 13px;
  background: rgba(var(--hair), 0.03);
}
.auth__trust span.on { color: var(--green); border-color: var(--green-soft); background: var(--green-soft); }

.auth-card {
  grid-area: card;
  position: relative;
  width: 100%;
  perspective: 1500px;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: -26px -18px -30px;
  z-index: -1;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  background: radial-gradient(60% 60% at 50% 30%, rgba(var(--accent-rgb), 0.22), transparent 72%);
}
.auth-card__inner {
  position: relative;
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.65, 0.05, 0.15, 1);
}
.auth-card.is-register .auth-card__inner { transform: rotateY(180deg); }

.auth-face {
  grid-area: 1 / 1;
  padding: 28px 30px 26px;
  border-radius: var(--r-2xl);
  background: linear-gradient(180deg, rgba(var(--hair), 0.045), rgba(var(--hair), 0) 52%), var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-3);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}
.auth-face--register { transform: rotateY(180deg); }

.auth-face__head { text-align: center; margin-bottom: 4px; }
.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 6px 13px;
  border-radius: 999px;
}
.auth-chip svg { width: 13px; height: 13px; }
.auth-chip--cyan { color: var(--cyan); background: var(--cyan-soft); border-color: var(--cyan-line); }
.auth-face__head h1,
.auth-face__head h2 {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-top: 14px;
}
.auth-face__head p { color: var(--ink-3); font-size: 13px; margin-top: 6px; }

.auth-form { margin-top: 16px; display: flex; flex-direction: column; }
.auth-form .field { margin-top: 13px; }
.auth-form.is-active > *,
.auth-face__head { animation: fieldIn 0.6s var(--ease-out) both; }
.auth-face__head { animation-delay: 0.03s; }
.auth-form.is-active > *:nth-child(1) { animation-delay: 0.1s; }
.auth-form.is-active > *:nth-child(2) { animation-delay: 0.16s; }
.auth-form.is-active > *:nth-child(3) { animation-delay: 0.22s; }
.auth-form.is-active > *:nth-child(4) { animation-delay: 0.28s; }
.auth-form.is-active > *:nth-child(n+5) { animation-delay: 0.34s; }

.auth-flip {
  position: absolute;
  top: 15px; right: 15px;
  z-index: 6;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--line-3);
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease), background 0.2s;
}
.auth-flip svg { width: 16px; height: 16px; }
.auth-flip:hover { color: var(--accent-text); border-color: var(--accent-line); background: var(--surface-4); transform: rotate(180deg) scale(1.06); }
.auth-card.is-register .auth-flip svg { transform: rotate(180deg); }

.auth__proof {
  grid-area: proof;
  margin-top: 32px;
  display: flex;
  gap: 42px;
  text-align: left;
}
.auth__proof .num { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.auth__proof .cap { color: var(--ink-3); font-size: 11px; margin-top: 3px; }

.auth__legal {
  grid-area: legal;
  margin-top: 20px;
  color: var(--ink-4);
  font-size: 11.5px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.auth__legal a { color: var(--ink-4); transition: color 0.18s; }
.auth__legal a:hover { color: var(--ink-2); }

.auth-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink-4);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.auth-note svg { width: 13px; height: 13px; }


@media (max-width: 1100px) {
  .auth__wrap {
    max-width: 436px;
    grid-template-columns: 1fr;
    grid-template-areas: "side" "card" "proof" "legal";
    column-gap: 0;
  }
  .auth__side { align-items: center; text-align: center; }
  .auth__headline,
  .auth__lead,
  .auth__feats,
  .auth__trust { display: none; }
  .auth__brand { margin-bottom: 20px; }
  .auth__proof { justify-content: center; margin-top: 26px; }
}
@media (max-width: 600px) {
  .auth { padding: 28px 16px 36px; }
  .auth-face { padding: 28px 22px 26px; }
  .auth__proof { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card__inner { transition-duration: 0.001s; }
}

/* ============================================================
   PANEL — sayfa içi menü · bölümler · sayfalama (profil/ayarlar)
   ============================================================ */
[id] { scroll-margin-top: 96px; }

/* oturum satırları */


.sr-main { flex: 1; min-width: 0; line-height: 1.45; }
.sr-main strong { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.sr-main span { color: var(--ink-3); font-size: 11.5px; }

.sr-act { flex: 0 0 auto; }

/* sayfalama */


/* faturalar */


/* plan + kullanım göstergesi */


/* ekip */


/* entegrasyonlar */


/* ayarlar görünüm anahtarları */


@media (max-width: 1100px) {
  .panel { grid-template-columns: 1fr; }
}


/* ---- genel yardımcılar (profil/ayarlar) ---- */
.table-card { margin-bottom: 16px; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  background: var(--surface-3); color: var(--ink-2);
  border: 1px solid var(--line-2);
  letter-spacing: 0.03em;
}
.badge--accent { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }

.select {
  width: 100%; height: 46px; padding: 0 40px 0 15px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23828ba1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.select:hover { border-color: var(--line-3); }
.select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field .hint { color: var(--ink-4); font-size: 11.5px; margin-top: 7px; }
