/* ==========================================================================
   Mail & Mesaj Paneli — Tasarım Sistemi v2
   Açık + karanlık tema · tüm renkler token üzerinden
   ========================================================================== */

/* ---------- Tokenlar: açık tema ---------- */
:root {
  color-scheme: light;
  --bg: #F5F6F8;
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(124, 108, 242, .07), transparent 60%);
  --card: #FFFFFF;
  --card-2: #FAFBFC;
  --card-hover: #F6F7FA;
  --line: #E6E8EE;
  --line-2: #EFF1F5;
  --line-strong: #D3D7E0;
  --text: #0B1220;
  --text-2: #4B5569;
  --text-3: #8A93A6;
  --input-bg: #FFFFFF;
  --input-line: #D5D9E2;

  --accent: #5B4FE9;
  --accent-hover: #4B3FD8;
  --accent-2: #7C6CF2;
  --accent-soft: #F0EEFF;
  --accent-soft-2: #E4E0FF;
  --accent-ink: #4033C9;
  --accent-grad: linear-gradient(135deg, #7C6CF2 0%, #5B4FE9 55%, #4B3FD8 100%);
  --ring: 0 0 0 4px rgba(91, 79, 233, .16);

  --ok: #079455;   --ok-soft: #E8F8EF;   --ok-ink: #05603A;
  --warn: #B54708; --warn-soft: #FFF6E6; --warn-ink: #93370D;
  --err: #D92D20;  --err-soft: #FEEEEC;  --err-ink: #912018;
  --info: #1570EF; --info-soft: #EDF4FF; --info-ink: #175CD3;
  --teal: #0E9384; --teal-soft: #E6F6F3;
  --gold: #B7892B; --gold-soft: #FBF4E4;

  --side-bg: #0A0F1C;
  --side-bg-2: #0E1426;
  --side-text: #A5AEC0;
  --side-muted: #5E6A80;
  --side-line: rgba(255, 255, 255, .06);

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow: 0 2px 4px -2px rgba(16, 24, 40, .06), 0 12px 24px -8px rgba(16, 24, 40, .10);
  --shadow-lg: 0 24px 64px -16px rgba(16, 24, 40, .30);
  --glow: 0 8px 24px -8px rgba(91, 79, 233, .55);

  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --side-w: 264px;
  --c-mail: #5B4FE9;
  --c-sms: #0E9384;
}

/* ---------- Tokenlar: karanlık tema ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080B12;
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(124, 108, 242, .12), transparent 60%);
  --card: #10141F;
  --card-2: #131826;
  --card-hover: #171D2C;
  --line: #222938;
  --line-2: #1A2030;
  --line-strong: #2E3748;
  --text: #EDF0F6;
  --text-2: #A6AFC2;
  --text-3: #6C768C;
  --input-bg: #0C111B;
  --input-line: #2A3243;
  --accent: #7C6CF2;
  --accent-hover: #8F81F5;
  --accent-soft: rgba(124, 108, 242, .14);
  --accent-soft-2: rgba(124, 108, 242, .24);
  --accent-ink: #B9AFFF;
  --ring: 0 0 0 4px rgba(124, 108, 242, .28);
  --ok: #32D583;   --ok-soft: rgba(50, 213, 131, .12);  --ok-ink: #6CE9A6;
  --warn: #FDB022; --warn-soft: rgba(253, 176, 34, .12); --warn-ink: #FEC84B;
  --err: #F97066;  --err-soft: rgba(249, 112, 102, .12); --err-ink: #FDA29B;
  --info: #53B1FD; --info-soft: rgba(83, 177, 253, .12); --info-ink: #84CAFF;
  --teal: #2ED3B7; --teal-soft: rgba(46, 211, 183, .12);
  --gold: #E3B95B; --gold-soft: rgba(227, 185, 91, .12);
  --side-bg: #05070D;
  --side-bg-2: #0A0E18;
  --c-mail: #8B7CF6;
  --c-sms: #159E8C;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .02);
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 32px 80px -16px rgba(0, 0, 0, .8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #080B12; --bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(124,108,242,.12), transparent 60%);
    --card: #10141F; --card-2: #131826; --card-hover: #171D2C; --line: #222938; --line-2: #1A2030; --line-strong: #2E3748;
    --text: #EDF0F6; --text-2: #A6AFC2; --text-3: #6C768C; --input-bg: #0C111B; --input-line: #2A3243;
    --accent: #7C6CF2; --accent-hover: #8F81F5; --accent-soft: rgba(124,108,242,.14); --accent-soft-2: rgba(124,108,242,.24); --accent-ink: #B9AFFF; --ring: 0 0 0 4px rgba(124,108,242,.28);
    --ok: #32D583; --ok-soft: rgba(50,213,131,.12); --ok-ink: #6CE9A6; --warn: #FDB022; --warn-soft: rgba(253,176,34,.12); --warn-ink: #FEC84B;
    --err: #F97066; --err-soft: rgba(249,112,102,.12); --err-ink: #FDA29B; --info: #53B1FD; --info-soft: rgba(83,177,253,.12); --info-ink: #84CAFF;
    --teal: #2ED3B7; --teal-soft: rgba(46,211,183,.12); --gold: #E3B95B; --gold-soft: rgba(227,185,91,.12);
    --side-bg: #05070D; --side-bg-2: #0A0E18; --c-mail: #8B7CF6; --c-sms: #159E8C;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.4); --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.02);
    --shadow: 0 12px 32px -12px rgba(0,0,0,.6); --shadow-lg: 0 32px 80px -16px rgba(0,0,0,.8);
  }
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text);
  background: var(--bg-grad), var(--bg); background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  transition: background-color .25s, color .25s;
}
::selection { background: var(--accent-soft-2); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
svg.i { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
.muted { color: var(--text-3); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
h1, h2, h3 { letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Form öğeleri ---------- */
.field { margin-bottom: 16px; }
.field label, .lbl { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg.i:first-child, .input-wrap > .lead-ic { position: absolute; left: 13px; color: var(--text-3); pointer-events: none; display: flex; }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 14px; font: inherit; font-size: 14px; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--input-line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s, background .15s;
}
.input-wrap > svg.i:first-child + .input, .input-wrap > .lead-ic + .input, .input.has-ic { padding-left: 40px; }
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.input:disabled { opacity: .6; cursor: not-allowed; }
select.input { appearance: none; padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238A93A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
textarea.input { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; min-height: 360px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
input[type=datetime-local].input, input[type=date].input, input[type=time].input { cursor: pointer; }
.pw-toggle { position: absolute; right: 6px; height: 30px; width: 30px; display: grid; place-items: center; border: 0; background: none; color: var(--text-3); border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { color: var(--text); background: var(--line-2); }
.hint { font-size: 12.5px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=checkbox].cb { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; flex: 0 0 auto; margin: 0; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative;
  height: 38px; padding: 0 15px; font: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: -.005em;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: background .15s, box-shadow .2s, transform .08s, border-color .15s, color .15s, filter .15s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg.i { width: 17px; height: 17px; }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.12), inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 1px rgba(75,63,216,.6); }
.btn-primary:hover { box-shadow: 0 1px 2px rgba(16,24,40,.12), inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 1px rgba(75,63,216,.6), var(--glow); filter: brightness(1.05); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--input-line); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--card-hover); border-color: var(--line-strong); }
.btn-danger { background: var(--err); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.btn-danger:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--line-2); color: var(--text); }
.btn-block { width: 100%; height: 46px; font-size: 15px; }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-secondary .spinner, .btn-ghost .spinner { border-color: var(--line-strong); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
kbd, .kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; font: 600 11px/1 var(--font); color: var(--text-3); background: var(--card-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; }

/* ---------- Uyarı / not ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 16px; line-height: 1.5; }
.alert.err { background: var(--err-soft); color: var(--err-ink); }
.alert.ok { background: var(--ok-soft); color: var(--ok-ink); }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn-ink); font-size: 13px; line-height: 1.55; }
.note.info { background: var(--info-soft); color: var(--info-ink); }
.note svg.i { flex: 0 0 auto; margin-top: 1px; width: 17px; height: 17px; }

/* ==========================================================================
   GİRİŞ EKRANI
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.05fr) minmax(440px, 1fr); background: var(--card); }
.auth-brand {
  position: relative; overflow: hidden; color: #fff; padding: 44px 56px; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; background: #070A14;
}
.auth-brand::before {
  content: ""; position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(40% 35% at 78% 18%, rgba(124,108,242,.75), transparent 70%),
    radial-gradient(35% 30% at 15% 85%, rgba(201,162,75,.38), transparent 70%),
    radial-gradient(30% 30% at 55% 60%, rgba(46,144,250,.28), transparent 70%);
  filter: blur(20px); animation: aurora 18s ease-in-out infinite alternate;
}
.auth-brand::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 40% 45%, #000 15%, transparent 72%);
}
@keyframes aurora { 0% { transform: translate(0, 0) rotate(0); } 100% { transform: translate(-4%, 3%) rotate(6deg); } }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16.5px; letter-spacing: -.015em; line-height: 1.2; }
.logo small { display: block; font-weight: 500; font-size: 11.5px; opacity: .55; letter-spacing: 0; margin-top: 2px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--accent-grad); box-shadow: 0 8px 20px -6px rgba(91,79,233,.7), inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 1px rgba(255,255,255,.1);
}
.logo-mark svg.i { width: 20px; height: 20px; color: #fff; }
.auth-hero { max-width: 540px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 5px; border-radius: 30px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(255,255,255,.85); margin-bottom: 22px; backdrop-filter: blur(8px); }
.eyebrow b { height: 20px; padding: 0 8px; border-radius: 20px; background: var(--accent-grad); display: inline-flex; align-items: center; font-size: 11px; }
.auth-hero h2 { font-size: 44px; line-height: 1.08; letter-spacing: -.035em; font-weight: 700; margin: 0 0 18px; }
.auth-hero h2 em { font-style: normal; background: linear-gradient(90deg, #CFC8FF, #F1D9A0 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { font-size: 16px; color: rgba(255,255,255,.68); margin: 0 0 26px; line-height: 1.6; max-width: 470px; }
.auth-float { position: relative; height: 150px; margin: 4px 0 26px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-width: 236px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); animation: floaty 6s ease-in-out infinite;
}
.float-card:nth-child(2) { left: 214px; top: 64px; animation-delay: -3s; }
.float-card .fc-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.float-card .fc-ic svg.i { color: #D8D2FF; width: 18px; height: 18px; }
.float-card b { display: block; font-size: 18px; letter-spacing: -.02em; }
.float-card small { font-size: 12px; color: rgba(255,255,255,.6); }
.float-card .up { font-size: 11.5px; font-weight: 700; color: #6CE9A6; margin-left: auto; align-self: flex-start; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.feature-list li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: rgba(255,255,255,.82); }
.feature-list li svg.i { width: 16px; height: 16px; color: #BDB4FF; }
.auth-foot { font-size: 12.5px; color: rgba(255,255,255,.42); display: flex; gap: 18px; flex-wrap: wrap; }
.auth-main { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--card); }
.auth-card { width: 100%; max-width: 392px; animation: rise .5s var(--ease) backwards; }
.auth-card h1 { font-size: 30px; letter-spacing: -.03em; margin: 0 0 8px; }
.auth-card .sub { color: var(--text-2); margin: 0 0 28px; font-size: 15px; }
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: var(--line-2); border-radius: 12px; margin-bottom: 24px; }
.segment button { height: 34px; border: 0; background: transparent; border-radius: 9px; font: inherit; font-weight: 600; color: var(--text-2); cursor: pointer; transition: .15s; }
.segment button.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
.row-between { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 20px; font-size: 13.5px; }
.auth-legal { margin-top: 28px; font-size: 12.5px; color: var(--text-3); text-align: center; line-height: 1.6; }
.auth-mobile-logo { display: none; margin-bottom: 28px; color: var(--text); }
.auth-theme { position: absolute; top: 20px; right: 20px; }
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-mobile-logo { display: flex; }
  .auth-main { align-items: flex-start; padding-top: 64px; }
}

/* ==========================================================================
   UYGULAMA İSKELETİ
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; transition: grid-template-columns .25s var(--ease); }
.sb-collapsed .app { grid-template-columns: 76px 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; z-index: 40;
  background: linear-gradient(180deg, var(--side-bg-2), var(--side-bg)); color: var(--side-text);
  padding: 18px 12px 14px; border-right: 1px solid var(--side-line);
}
.sidebar::before { content: ""; position: absolute; top: -120px; left: -80px; width: 320px; height: 260px; background: radial-gradient(closest-side, rgba(124,108,242,.22), transparent); pointer-events: none; }
.sb-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 18px; position: relative; }
.sidebar .logo { color: #fff; white-space: nowrap; }
.sb-toggle { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--side-muted); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.sb-toggle:hover { background: rgba(255,255,255,.06); color: #fff; }
.sb-toggle svg.i { width: 16px; height: 16px; transition: transform .25s; }
.sb-search {
  display: flex; align-items: center; gap: 10px; height: 38px; margin: 0 2px 10px; padding: 0 10px; border-radius: 10px; cursor: pointer; width: calc(100% - 4px);
  background: rgba(255,255,255,.04); border: 1px solid var(--side-line); color: var(--side-muted); font: inherit; font-size: 13px; text-align: left; transition: background .15s, border-color .15s;
}
.sb-search:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); color: var(--side-text); }
.sb-search svg.i { width: 16px; height: 16px; }
.sb-search .kbd { margin-left: auto; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: var(--side-muted); }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overflow-x: hidden; flex: 1; margin: 0 -4px; padding: 0 4px; }
.nav-label { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--side-muted); padding: 16px 12px 7px; white-space: nowrap; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 11px; border-radius: 10px;
  color: var(--side-text); font-weight: 500; font-size: 13.5px; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s;
}
.nav a svg.i { width: 18px; height: 18px; color: var(--side-muted); transition: color .15s; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.nav a:hover svg.i { color: var(--side-text); }
.nav a.active { background: linear-gradient(90deg, rgba(124,108,242,.22), rgba(124,108,242,.06)); color: #fff; box-shadow: inset 0 0 0 1px rgba(124,108,242,.25); }
.nav a.active svg.i { color: #C4BBFF; }
.nav a.active::before { content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #9C90FF; box-shadow: 0 0 12px #7C6CF2; }
.nav .nbadge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; gap: 5px; }
.nav .nbadge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1s infinite; }
.sidebar-foot { margin-top: 10px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--side-line); white-space: nowrap; overflow: hidden; }
.t-mark { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, #D9B35C, #8E6A1E); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.sidebar-foot .t-name { color: #fff; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .t-sub { font-size: 11.5px; color: var(--side-muted); }
.sb-collapsed .sidebar .logo > div, .sb-collapsed .sidebar .nav-label, .sb-collapsed .nav a span, .sb-collapsed .nav .nbadge,
.sb-collapsed .sb-search span, .sb-collapsed .sb-search .kbd, .sb-collapsed .sidebar-foot > div:last-child { display: none; }
.sb-collapsed .sb-head { flex-direction: column; gap: 12px; padding-bottom: 14px; }
.sb-collapsed .nav a, .sb-collapsed .sb-search { justify-content: center; padding: 0; }
.sb-collapsed .sidebar-foot { justify-content: center; padding: 8px; }
.sb-collapsed .nav-label { padding: 6px 0; height: 14px; }
.sb-collapsed .sb-toggle svg.i { transform: rotate(180deg); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 62px; display: flex; align-items: center; gap: 10px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13.5px; min-width: 0; }
.crumbs b { color: var(--text); font-weight: 600; white-space: nowrap; }
.crumbs .sep { opacity: .5; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none !important; }
.top-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.top-btn:hover { background: var(--card); border-color: var(--line); color: var(--text); box-shadow: var(--shadow-xs); }
.top-btn svg.i { width: 18px; height: 18px; }
.top-search { display: flex; align-items: center; gap: 10px; height: 36px; width: 280px; white-space: nowrap; overflow: hidden; padding: 0 8px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text-3); font: inherit; font-size: 13px; cursor: pointer; box-shadow: var(--shadow-xs); transition: .15s; }
.top-search svg.i { width: 16px; height: 16px; }
.top-search:hover { border-color: var(--line-strong); color: var(--text-2); }
.top-search .kbd { margin-left: auto; }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 3px 10px 3px 3px; border: 1px solid transparent; background: none; border-radius: 12px; cursor: pointer; font: inherit; text-align: left; color: var(--text); }
.user-btn:hover { background: var(--card); border-color: var(--line); box-shadow: var(--shadow-xs); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; flex: 0 0 auto; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.avatar.lg { width: 60px; height: 60px; font-size: 20px; border-radius: 18px; }
.user-btn .u-name { font-weight: 600; font-size: 13px; line-height: 1.2; }
.user-btn .u-role { font-size: 11.5px; color: var(--text-3); }
.dropdown { position: absolute; right: 28px; top: 56px; width: 250px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; animation: pop .16s var(--ease); z-index: 30; }
.dropdown .d-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.dropdown .d-head div:last-child { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.dropdown button { width: 100%; display: flex; gap: 10px; align-items: center; height: 36px; padding: 0 12px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; }
.dropdown button:hover { background: var(--line-2); }
.dropdown button svg.i { color: var(--text-3); width: 17px; height: 17px; }
.dropdown .kbd { margin-left: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.content { padding: 30px 32px 56px; max-width: 1340px; width: 100%; animation: rise .45s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 4px; font-weight: 700; }
.page-head p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================================
   KART / İSTATİSTİK / TABLO
   ========================================================================== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.panel-card + .panel-card { margin-top: 16px; }
.panel-card h3 { margin: 0 0 16px; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.panel-card h3 .step { width: 24px; height: 24px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-title h3 { margin: 0; font-size: 15px; }
.card-title a { font-size: 13px; font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.stat-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.stat-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.stat-ic svg.i { width: 17px; height: 17px; }
.stat-ic.v { background: var(--accent-soft); color: var(--accent); }
.stat-ic.g { background: var(--teal-soft); color: var(--teal); }
.stat-ic.b { background: var(--info-soft); color: var(--info); }
.stat-ic.o { background: var(--gold-soft); color: var(--gold); }
.stat-ic.r { background: var(--err-soft); color: var(--err); }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; position: relative; z-index: 1; }
.stat-foot { margin-top: 10px; font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stat-foot b { color: var(--ok); font-weight: 600; }
.delta { display: inline-flex; align-items: center; gap: 2px; height: 21px; padding: 0 7px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.delta svg.i { width: 12px; height: 12px; stroke-width: 2.5; }
.delta.up { background: var(--ok-soft); color: var(--ok); }
.delta.down { background: var(--err-soft); color: var(--err); }
.delta.flat { background: var(--line-2); color: var(--text-3); }
.spark { position: absolute; right: 18px; top: 58px; width: 88px; height: 32px; overflow: visible; }

.card-toolbar { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-toolbar .input-wrap { flex: 1; min-width: 220px; max-width: 400px; }
.card-toolbar .input { height: 38px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 32px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: .15s; }
.chip:hover { background: var(--card-hover); color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--card); }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); padding: 11px 16px; background: var(--card-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--card-hover); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.cbx, .tbl th.cbx { width: 44px; padding-right: 0; }
tr.clickable { cursor: pointer; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .p-name { font-weight: 600; }
.person .p-sub { font-size: 12.5px; color: var(--text-3); }
.row-actions { text-align: right; }
.row-actions .btn-icon { color: var(--text-3); width: 32px; height: 32px; }
.row-actions .btn-icon:hover { color: var(--err); background: var(--err-soft); }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); gap: 10px; flex-wrap: wrap; }
.pager { display: flex; gap: 8px; }
.pager .btn { height: 32px; padding: 0 11px; font-size: 13px; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.onay { background: var(--ok-soft); color: var(--ok); }
.badge.ret { background: var(--err-soft); color: var(--err); }
.badge.bilinmiyor { background: var(--line-2); color: var(--text-2); }
.gchip { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 6px; background: var(--line-2); color: var(--text-2); font-size: 11.5px; font-weight: 500; margin: 2px 4px 0 0; border: 1px solid var(--line); }
.chan { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.chan svg.i { width: 13px; height: 13px; }
.chan.email { background: var(--accent-soft); color: var(--accent-ink); }
.chan.sms { background: var(--teal-soft); color: var(--teal); }

.empty { padding: 64px 24px; text-align: center; }
.empty-ic { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); position: relative; }
.empty-ic::after { content: ""; position: absolute; inset: -8px; border-radius: 26px; border: 1px dashed var(--accent-soft-2); }
.empty-ic svg.i { width: 28px; height: 28px; }
.empty h3 { margin: 0 0 6px; font-size: 17px; }
.empty p { margin: 0 auto 22px; color: var(--text-2); max-width: 380px; line-height: 1.6; }
.skel { height: 13px; border-radius: 6px; background: linear-gradient(90deg, var(--line-2), var(--line), var(--line-2)); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* ==========================================================================
   ÇEKMECE / MODAL / TOAST / KOMUT PALETİ
   ========================================================================== */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(5, 8, 16, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; }
.overlay.show { opacity: 1; }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 51; width: min(470px, calc(100% - 20px)); background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s;
}
.drawer.show { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.drawer.wide { width: min(640px, calc(100% - 20px)); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0 0 4px; font-size: 18px; }
.drawer-head p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.drawer-body { padding: 24px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--card-2); }
.section-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 12px; }
.divider { height: 1px; background: var(--line); margin: 8px 0 20px; }

.modal { position: fixed; z-index: 52; left: 50%; top: 50%; width: min(430px, calc(100% - 32px)); transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .2s var(--ease), opacity .2s; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 26px; }
.modal.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--err-soft); color: var(--err); margin-bottom: 18px; }
.modal-ic.accent { background: var(--accent-soft); color: var(--accent); }
.modal-ic.ok { background: var(--ok-soft); color: var(--ok); }
.modal h3 { margin: 0 0 6px; font-size: 18px; }
.modal p { margin: 0 0 22px; color: var(--text-2); line-height: 1.6; }
.modal .actions { justify-content: flex-end; }

.toasts { position: fixed; z-index: 90; right: 22px; bottom: 22px; display: grid; gap: 10px; }
.toast { position: relative; overflow: hidden; display: flex; align-items: center; gap: 11px; min-width: 280px; max-width: 400px; padding: 13px 16px; border-radius: 14px; background: #0B1220; color: #fff; box-shadow: var(--shadow-lg); font-size: 13.5px; border: 1px solid rgba(255,255,255,.08); animation: tin .3s var(--ease); }
.toast .t-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.toast.ok .t-ic { background: #12B76A; } .toast.err .t-ic { background: #F04438; }
.toast .t-ic svg.i { width: 13px; height: 13px; color: #fff; stroke-width: 3; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(255,255,255,.35); transform-origin: left; animation: tbar 3.2s linear forwards; }
@keyframes tin { from { transform: translateY(10px) scale(.98); opacity: 0; } }
@keyframes tbar { to { transform: scaleX(0); } }

.cmdk-wrap { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; background: rgba(5, 8, 16, .45); backdrop-filter: blur(4px); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.cmdk { width: min(640px, calc(100% - 24px)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .18s var(--ease); }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.cmdk-in svg.i { color: var(--text-3); }
.cmdk-in input { flex: 1; height: 56px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--text); }
.cmdk-in input::placeholder { color: var(--text-3); }
.cmdk-list { max-height: 420px; overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 10px 10px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--text); }
.cmdk-item .ci { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--line-2); color: var(--text-2); flex: 0 0 auto; }
.cmdk-item .ci svg.i { width: 16px; height: 16px; }
.cmdk-item .cm { min-width: 0; }
.cmdk-item .cm div:last-child { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item small { color: var(--text-3); margin-left: auto; font-size: 12px; white-space: nowrap; }
.cmdk-item.sel { background: var(--accent-soft); }
.cmdk-item.sel .ci { background: var(--accent); color: #fff; }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); background: var(--card-2); flex-wrap: wrap; }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 6px; }
.cmdk-empty { padding: 34px; text-align: center; color: var(--text-3); }

/* ==========================================================================
   BİLEŞENLER
   ========================================================================== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button { height: 42px; padding: 0 14px; border: 0; background: none; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: color .15s; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.tabs button svg.i { width: 16px; height: 16px; }

.switch { position: relative; display: inline-block; vertical-align: middle; width: 38px; height: 22px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 22px; background: var(--line-strong); transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.25); transition: .2s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: var(--ring); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--card); transition: border-color .15s, box-shadow .15s, background .15s; }
.choice:hover { border-color: var(--line-strong); background: var(--card-hover); }
.choice input { position: absolute; opacity: 0; }
.choice .c-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--line-2); color: var(--text-2); flex: 0 0 auto; transition: .15s; }
.choice b { display: block; font-size: 14px; }
.choice small { color: var(--text-3); font-size: 12.5px; line-height: 1.4; display: block; margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: var(--ring); background: var(--card); }
.choice:has(input:checked) .c-ic { background: var(--accent-grad); color: #fff; box-shadow: var(--glow); }

.check-list { border: 1px solid var(--line); border-radius: 12px; max-height: 300px; overflow-y: auto; background: var(--card); }
.check-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s; }
.check-row:last-child { border-bottom: 0; }
.check-row:hover { background: var(--card-hover); }
.check-row:has(input:checked) { background: var(--accent-soft); }
.check-row .grow { flex: 1; min-width: 0; }
.check-row small { color: var(--text-3); }
.inline-check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 4px 0 16px; cursor: pointer; }

.bulkbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--accent-soft); border-bottom: 1px solid var(--accent-soft-2); font-size: 13.5px; font-weight: 600; color: var(--accent-ink); flex-wrap: wrap; animation: fade .2s; }
.bulkbar .spacer { flex: 1; }
.bulkbar .btn { height: 32px; font-size: 13px; }
.bulkbar select.input { height: 32px; width: auto; font-size: 13px; padding-right: 30px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; transition: box-shadow .2s, transform .2s var(--ease); }
.gcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.gcard-head { display: flex; align-items: flex-start; gap: 12px; }
.gcard-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.gcard h3 { margin: 0; font-size: 16px; }
.gcard .meta { font-size: 12.5px; color: var(--text-3); }
.gcard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; }
.gcard-stats div { text-align: center; }
.gcard-stats b { display: block; font-size: 19px; letter-spacing: -.02em; }
.gcard-stats small { font-size: 11.5px; color: var(--text-3); }
.gcard-bar { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; display: flex; gap: 2px; }
.gcard-bar i { display: block; height: 100%; }
.gcard-actions { display: flex; gap: 8px; }
.gcard-actions .btn { height: 34px; font-size: 13px; }
.gcard-actions .btn:first-child { flex: 1; }

.tcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; cursor: pointer; transition: box-shadow .2s, transform .2s var(--ease); }
.tcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tcard-prev { height: 160px; padding: 18px; background: linear-gradient(160deg, var(--accent-soft), var(--card-2) 60%); border-bottom: 1px solid var(--line); overflow: hidden; font-size: 12px; color: var(--text-2); position: relative; }
.tcard-prev::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(transparent, var(--card-2)); }
.tcard-prev .paper { background: var(--card); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow-sm); line-height: 1.5; border: 1px solid var(--line-2); }
.tcard-prev .bubble { background: var(--card); border-radius: 16px 16px 16px 4px; padding: 10px 12px; box-shadow: var(--shadow-sm); max-width: 90%; line-height: 1.45; white-space: pre-wrap; border: 1px solid var(--line-2); }
.tcard-body { padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.tcard-body .grow { flex: 1; min-width: 0; }
.tcard-body b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-body small { color: var(--text-3); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 20px; align-items: start; }
.toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border: 1px solid var(--input-line); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--card-2); }
.toolbar button { height: 32px; min-width: 32px; padding: 0 9px; border: 0; background: none; border-radius: 7px; color: var(--text-2); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.toolbar button:hover { background: var(--line-2); color: var(--text); }
.toolbar button svg.i { width: 16px; height: 16px; }
.toolbar .sep { width: 1px; background: var(--line); margin: 4px 4px; }
.rte { min-height: 360px; max-height: 62vh; overflow-y: auto; padding: 20px 22px; border: 1px solid var(--input-line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-size: 15px; line-height: 1.7; outline: none; background: #fff; color: #1d2433; }
.rte:focus { border-color: var(--accent); box-shadow: var(--ring); }
.rte h2 { font-size: 22px; margin: .4em 0; } .rte h3 { font-size: 18px; margin: .4em 0; }
.rte a { color: #5B4FE9; }
.rte img { max-width: 100%; }
.var-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.var-chips button { height: 27px; padding: 0 10px; border: 1px dashed var(--accent-soft-2); background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: .15s; }
.var-chips button:hover { border-style: solid; border-color: var(--accent); }
.counter { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-3); margin-top: 8px; flex-wrap: wrap; }
.counter b { color: var(--text); }
.sticky { position: sticky; top: 82px; }
.preview-frame { width: 100%; height: 580px; border: 1px solid var(--line); border-radius: 12px; background: #F4F5F7; }
.preview-head { font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }
.preview-head b { color: var(--text); font-size: 14px; display: block; margin-top: 2px; }

.phone { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 44px; padding: 11px; background: linear-gradient(145deg, #2A3142, #0B0F18); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08); }
.phone-screen { position: relative; border-radius: 34px; background: #F2F2F7; min-height: 500px; padding: 40px 14px 18px; display: flex; flex-direction: column; overflow: hidden; }
.phone-screen::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0B0F18; }
.phone-top { text-align: center; font-size: 12px; color: #6B7280; margin-bottom: 16px; }
.phone-top b { display: block; color: #111827; font-size: 14px; margin-top: 6px; }
.phone-top .pa { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #A0A7B5, #6B7280); margin: 0 auto; display: grid; place-items: center; color: #fff; font-weight: 700; }
.sms-bubble { align-self: flex-start; max-width: 88%; background: #E5E5EA; color: #111; padding: 10px 13px; border-radius: 18px 18px 18px 5px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; animation: rise .3s var(--ease); }

.summary { display: grid; gap: 10px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.summary .row span:first-child { color: var(--text-2); }
.summary .row b { text-align: right; font-weight: 600; }
.estimate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0 16px; }
.estimate div { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 8px; text-align: center; }
.estimate b { display: block; font-size: 24px; letter-spacing: -.03em; }
.estimate small { font-size: 11.5px; color: var(--text-3); }
.estimate .main { background: var(--accent-grad); border-color: transparent; box-shadow: var(--glow); }
.estimate .main b, .estimate .main small { color: #fff; }

.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.draft { background: var(--line-2); color: var(--text-2); }
.status.scheduled { background: var(--info-soft); color: var(--info); }
.status.queued, .status.sending { background: var(--accent-soft); color: var(--accent); }
.status.sending::before { animation: pulse 1s infinite; }
.status.sent { background: var(--ok-soft); color: var(--ok); }
.status.cancelled { background: var(--line-2); color: var(--text-3); }
.status.failed { background: var(--err-soft); color: var(--err); }
@keyframes pulse { 50% { opacity: .3; } }
.progress { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; min-width: 90px; }
.progress div { height: 100%; background: var(--accent-grad); border-radius: 6px; transition: width .5s var(--ease); }
.rate { font-variant-numeric: tabular-nums; font-weight: 600; }
.rate small { font-weight: 400; color: var(--text-3); margin-left: 4px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card-2); }
.kpi small { font-size: 12px; color: var(--text-3); display: block; }
.kpi b { font-size: 22px; letter-spacing: -.02em; }
.kpi .sub { font-size: 12px; color: var(--text-2); }
.mini-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mini-list .tbl td, .mini-list .tbl th { padding: 9px 12px; font-size: 13px; }

/* Huni */
.funnel { display: grid; gap: 10px; margin-bottom: 20px; }
.funnel-row { display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: 12px; font-size: 13px; }
.funnel-row span { color: var(--text-2); }
.funnel-track { height: 28px; border-radius: 8px; background: var(--line-2); overflow: hidden; }
.funnel-track div { height: 100%; border-radius: 8px; background: var(--accent-grad); display: flex; align-items: center; padding-left: 10px; color: #fff; font-size: 12px; font-weight: 700; min-width: 2px; transition: width .6s var(--ease); }
.funnel-row b { text-align: right; font-variant-numeric: tabular-nums; }
.funnel-row b small { color: var(--text-3); font-weight: 500; margin-left: 4px; }

/* Grafik */
.chart-card { padding: 20px 22px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.chart-head h3 { margin: 0; font-size: 15px; }
.chart-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-3); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { position: relative; }
.chart svg { width: 100%; height: 260px; display: block; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: #0B1220; color: #fff; font-size: 12px; line-height: 1.6; padding: 8px 11px; border-radius: 10px; box-shadow: var(--shadow-lg); white-space: nowrap; transform: translate(-50%, -110%); border: 1px solid rgba(255,255,255,.08); z-index: 5; }
.bars { display: grid; gap: 16px; }
.hbar .top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.hbar .top span { color: var(--text-2); }
.hbar .track { height: 8px; border-radius: 8px; background: var(--line-2); overflow: hidden; }
.hbar .track div { height: 100%; border-radius: 8px; transition: width .6s var(--ease); }
.grid-2-lg { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.stats.six { grid-template-columns: repeat(6, 1fr); }

/* Ayarlar */
.settings-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.settings-grid:last-child { border-bottom: 0; }
.settings-grid h3 { margin: 0 0 6px; font-size: 15px; }
.settings-grid p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.pw-set { font-size: 12px; color: var(--ok); margin-top: 6px; }
.secret-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #0B1220; color: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; letter-spacing: .06em; margin: 14px 0; border: 1px solid rgba(255,255,255,.08); }
.role-sel { height: 34px; width: auto; font-size: 13px; }

/* İçe aktarma */
.stepper { display: flex; gap: 8px; margin-bottom: 22px; }
.stepper div { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.stepper div.on { background: var(--accent-grad); }
.drop { display: block; border: 2px dashed var(--line-strong); border-radius: 16px; padding: 40px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; background: var(--card-2); }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop b { display: block; margin-bottom: 4px; }
.drop small { color: var(--text-3); }
.map-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.map-row label { font-size: 13.5px; font-weight: 500; margin: 0; }
.sample-tbl td, .sample-tbl th { padding: 8px 10px !important; font-size: 12.5px !important; }
.result-big { text-align: center; padding: 10px 0 22px; }
.result-big .empty-ic { background: var(--ok-soft); color: var(--ok); }
.result-big .empty-ic::after { border-color: var(--ok-soft); }

/* ==========================================================================
   GENEL BAKIŞ
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; padding: 28px 30px; margin-bottom: 20px; color: #fff;
  background: linear-gradient(115deg, #0C0B24 0%, #0B0F1E 45%, #171238 100%); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.06); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 260px at 88% 20%, rgba(124,108,242,.75), transparent 70%), radial-gradient(360px 220px at 4% 120%, rgba(201,162,75,.42), transparent 70%), radial-gradient(380px 200px at 55% -30%, rgba(46,144,250,.35), transparent 70%); animation: glowshift 14s ease-in-out infinite alternate; }
@keyframes glowshift { to { transform: translateX(-3%) scale(1.04); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.03em; }
.hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 14.5px; max-width: 560px; }
.hero .hero-chip { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); font-size: 12.5px; margin-bottom: 14px; backdrop-filter: blur(8px); }
.hero .hero-chip i { width: 7px; height: 7px; border-radius: 50%; background: #6CE9A6; box-shadow: 0 0 10px #32D583; }
.hero .actions .btn-secondary { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(8px); box-shadow: none; }
.hero .actions .btn-secondary:hover { background: rgba(255,255,255,.18); }
.hero .actions .btn-primary { background: #fff; color: #1B1446; box-shadow: 0 10px 30px -10px rgba(255,255,255,.5); }
.hero .actions .btn-primary:hover { filter: none; background: #F2F0FF; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.dash-grid .panel-card + .panel-card { margin-top: 0; }
.stack { display: grid; gap: 16px; align-content: start; }
.timeline { display: grid; gap: 4px; }
.tl-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; transition: background .12s; color: var(--text); }
.tl-item:hover { background: var(--card-hover); text-decoration: none; }
.tl-date { width: 46px; height: 50px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; }
.tl-date b { font-size: 17px; line-height: 1; letter-spacing: -.02em; }
.tl-date small { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; margin-top: 2px; }
.tl-item .grow { flex: 1; min-width: 0; }
.tl-item .grow div:first-child { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-item .grow div:last-child { font-size: 12px; color: var(--text-3); }
.setup-list { display: grid; gap: 8px; }
.setup-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-size: 13.5px; font-weight: 500; transition: .15s; }
.setup-item:hover { border-color: var(--accent); text-decoration: none; background: var(--accent-soft); }
.setup-item .sc { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: 0 0 auto; }
.setup-item.done { color: var(--text-3); }
.setup-item.done .sc { background: var(--ok); border-color: var(--ok); color: #fff; }
.setup-item.done .sc svg.i { width: 12px; height: 12px; stroke-width: 3; }
.setup-item svg.i.go { margin-left: auto; color: var(--text-3); width: 16px; height: 16px; }
.ring-wrap { display: flex; align-items: center; gap: 18px; }
.ring-wrap svg { width: 96px; height: 96px; flex: 0 0 auto; transform: rotate(-90deg); }
.ring-legend { display: grid; gap: 8px; font-size: 13px; }
.ring-legend span { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.ring-legend i { width: 9px; height: 9px; border-radius: 3px; }
.ring-legend b { color: var(--text); margin-left: auto; padding-left: 12px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow-sm); transition: .2s var(--ease); }
.quick a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-soft-2); }
.quick a small { display: block; font-weight: 400; color: var(--text-3); font-size: 12px; }
.quick .q-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }

/* Kişi profili */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head h2 { margin: 0 0 4px; font-size: 20px; }
.profile-head .p-sub { color: var(--text-3); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.act-list { display: grid; }
.act { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.act:last-child { border-bottom: 0; }
.act .a-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--line-2); color: var(--text-2); flex: 0 0 auto; }
.act .a-ic svg.i { width: 15px; height: 15px; }
.act .a-ic.ok { background: var(--ok-soft); color: var(--ok); } .act .a-ic.err { background: var(--err-soft); color: var(--err); } .act .a-ic.v { background: var(--accent-soft); color: var(--accent); }
.act .grow { flex: 1; min-width: 0; }
.act .grow div:last-child { color: var(--text-3); font-size: 12px; }
.act .tags { display: flex; gap: 4px; align-items: center; }

/* ==========================================================================
   DUYARLI
   ========================================================================== */
@media (max-width: 1300px) { .stats.six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1180px) { .editor-layout, .dash-grid { grid-template-columns: 1fr; } .quick { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); } .grid-2-lg { grid-template-columns: 1fr; } .top-search { width: 200px; } }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 860px) {
  .app, .sb-collapsed .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); z-index: 60; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .sb-collapsed .sidebar .logo > div, .sb-collapsed .sidebar .nav-label, .sb-collapsed .nav a span, .sb-collapsed .sb-search span, .sb-collapsed .sidebar-foot > div:last-child { display: revert; }
  .sb-toggle { display: none; }
  .menu-btn { display: grid !important; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .top-search { display: none; }
  .user-btn .u-meta { display: none; }
  .dropdown { right: 16px; }
  .tbl .hide-sm { display: none; }
  .hero { padding: 22px; }
}
@media (max-width: 560px) {
  .stats, .stats.six { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; } .stat-value { font-size: 24px; } .spark { display: none; }
  .page-head .actions { width: 100%; } .page-head .actions .btn { flex: 1; }
  .grid-2, .quick { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .funnel-row { grid-template-columns: 80px 1fr 70px; }
  .toasts { left: 12px; right: 12px; } .toast { min-width: 0; }
}
.lg-mail { background: var(--c-mail); } .lg-sms { background: var(--c-sms); }
