/* ══════════════════════════════════════════════════════════════════════════════════════════════
   COMMBOT UI — tasarım sistemi (2026-10-21, sahip: "paneli shadcn/ui tarzında baştan sona yenile")
   Plan: ui_yenileme/TASARIM_PLANI.md. Renk kuramı: mercan (ahtapot logosu, ~15°) yalnız eylem/odak;
   tamamlayıcı camgöbeği veri; sıcak-nötr gri skala; anlamsal renkler vurgudan ayrı (zarar = gül-kırmızı).
   Varsayılan KOYU tema (kullanıcı alışkanlığı); <html data-theme="light"> açık tema. Tema seçimi cb-ui.js.
   ESKİ DEĞİŞKEN ADLARI (--bg --panel --card --line --txt --mut --acc --ok --warn --bad --sb --kpi) yeni
   jetonlara bağlı: sayfaların kendi stilleri kırılmaz. Eski ortak sınıflar (.card .kpi .tab .sw .tbl .btn ...)
   aşağıda yeni görünüme bağlanır.
   ══════════════════════════════════════════════════════════════════════════════════════════════ */

/* ── 1. JETONLAR ─────────────────────────────────────────────────────────────────────────────── */
:root {
  --radius: 10px;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI",
          system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --side-w: 256px; --side-w-dar: 60px; --top-h: 56px;

  /* KOYU (varsayılan) — nötr, çok hafif sıcak */
  --background: #0b0b0b;
  --foreground: #f4f3f2;
  --card: #131212;
  --card-2: #191817;
  --card-foreground: #f4f3f2;
  --popover: #161514;
  --muted: #1b1a19;
  --muted-foreground: #a6a29e;
  --subtle-foreground: #7c7874;
  --accent: #232120;
  --accent-foreground: #f4f3f2;
  --secondary: #222120;
  --secondary-foreground: #f4f3f2;
  --border: #292726;
  --border-strong: #3a3735;
  --input: #2f2d2b;
  --primary: #ff6a3d;
  --primary-hover: #ff7e57;
  --primary-foreground: #1d0a03;
  --brand: #ff7a52;
  --brand-soft: rgba(255, 106, 61, .13);
  --brand-line: rgba(255, 106, 61, .38);
  --ring: rgba(255, 106, 61, .55);
  --success: #34d399;  --success-soft: rgba(52, 211, 153, .13); --success-foreground: #03140c;
  --warning: #fbbf24;  --warning-soft: rgba(251, 191, 36, .13);
  --destructive: #fb7185; --destructive-soft: rgba(251, 113, 133, .14);
  --destructive-strong: #e11d48;
  --info: #38bdf8;     --info-soft: rgba(56, 189, 248, .13);
  --chart-1: #ff6a3d; --chart-2: #2dd4bf; --chart-3: #a78bfa; --chart-4: #fbbf24; --chart-5: #38bdf8;
  --chart-grid: rgba(255, 255, 255, .07);
  --sidebar: #0e0d0d;
  --sidebar-foreground: #c9c5c1;
  --sidebar-accent: #1d1b1a;
  --sidebar-border: #211f1e;
  --overlay: rgba(0, 0, 0, .6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow-md: 0 6px 20px -6px rgba(0, 0, 0, .6);
  --shadow-lg: 0 22px 60px -16px rgba(0, 0, 0, .75);
  --skel-a: #1c1b1a; --skel-b: #262423;
  color-scheme: dark;

  /* ESKİ ADLAR → yeni jetonlar (sayfa stilleri bunları kullanıyor) */
  --bg: var(--background);
  --panel: var(--muted);
  --line: var(--border);
  --txt: var(--foreground);
  --mut: var(--muted-foreground);
  --acc: var(--brand);
  --ok: var(--success);
  --warn: var(--warning);
  --bad: var(--destructive);
  --sb: var(--sidebar);
  --kpi: var(--card-2);
}

[data-theme="light"] {
  --background: #f7f6f4;
  --foreground: #161413;
  --card: #ffffff;
  --card-2: #faf9f8;
  --card-foreground: #161413;
  --popover: #ffffff;
  --muted: #f1efed;
  --muted-foreground: #66625e;
  --subtle-foreground: #8b8783;
  --accent: #efedea;
  --accent-foreground: #161413;
  --secondary: #efedea;
  --secondary-foreground: #161413;
  --border: #e6e3e0;
  --border-strong: #d3cfcb;
  --input: #dcd8d4;
  --primary: #e14a25;
  --primary-hover: #cc3f1d;
  --primary-foreground: #ffffff;
  --brand: #cf401c;
  --brand-soft: #fdebe5;
  --brand-line: rgba(225, 74, 37, .35);
  --ring: rgba(225, 74, 37, .45);
  --success: #047857;  --success-soft: #e3f4ec; --success-foreground: #ffffff;
  --warning: #a35a00;  --warning-soft: #fcf1dc;
  --destructive: #d61f47; --destructive-soft: #fcebef;
  --destructive-strong: #be123c;
  --info: #0369a1;     --info-soft: #e3f1fa;
  --chart-1: #e14a25; --chart-2: #0d9488; --chart-3: #7c3aed; --chart-4: #d97706; --chart-5: #0284c7;
  --chart-grid: rgba(22, 20, 19, .08);
  --sidebar: #fbfaf9;
  --sidebar-foreground: #45413e;
  --sidebar-accent: #f0eeeb;
  --sidebar-border: #e9e6e3;
  --overlay: rgba(22, 20, 19, .35);
  --shadow-sm: 0 1px 2px rgba(22, 16, 12, .06);
  --shadow-md: 0 6px 20px -8px rgba(22, 16, 12, .16);
  --shadow-lg: 0 24px 60px -18px rgba(22, 16, 12, .28);
  --skel-a: #efedea; --skel-b: #e5e2df;
  color-scheme: light;
}

/* ── 2. TEMEL ─────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5;
  background: var(--background); color: var(--foreground);
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--brand-soft); color: var(--foreground); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea) {
  font: inherit; font-size: 13.5px; color: var(--foreground); background: var(--background);
  border: 1px solid var(--input); border-radius: var(--r-md); padding: 7px 11px; min-height: 36px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
:where(textarea) { min-height: 72px; line-height: 1.5; }
:where(input, select, textarea):hover { border-color: var(--border-strong); }
:where(input, select, textarea):focus { outline: none; border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }
:where(input, select, textarea):disabled { opacity: .55; cursor: not-allowed; }
:where(input::placeholder, textarea::placeholder) { color: var(--subtle-foreground); }
:where(input[type=checkbox], input[type=radio]) { accent-color: var(--primary); width: 16px; height: 16px; }
:where(input[type=range]) { accent-color: var(--primary); }
:where(select) { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a6a29e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
:where(code, kbd, pre) { font-family: var(--mono); font-size: .92em; }
:where(kbd) { background: var(--muted); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; font-size: 11px; color: var(--muted-foreground); }
:where(hr) { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.num, .tabular { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ── 3. KABUK ─────────────────────────────────────────────────────────────────────────────────── */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--side-w); flex-shrink: 0; background: var(--sidebar); border-right: 1px solid var(--sidebar-border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40;
  transition: width .2s var(--ease);
}
.cb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* mağaza seçici (shadcn TeamSwitcher) */
.cb-side-hd { padding: 10px 10px 6px; position: relative; }
.cb-store-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-md);
  background: none; border: 1px solid transparent; cursor: pointer; text-align: left; transition: background .15s;
}
.cb-store-btn:hover, .cb-store-btn[aria-expanded=true] { background: var(--sidebar-accent); }
.cb-store-btn .sb-logo { width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--brand-soft); padding: 3px; }
.cb-store-btn .cb-st-tx { min-width: 0; flex: 1; line-height: 1.25; }
.cb-store-btn .cb-st-ad { display: block; font-weight: 650; font-size: 13.5px; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-store-btn .cb-st-alt { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; }
.cb-store-btn .cb-chev { width: 16px; height: 16px; color: var(--muted-foreground); flex: none; }
.cb-brand-mark { font-weight: 750; letter-spacing: -.2px; }
.cb-brand-mark b { color: var(--brand); font-weight: 750; }
.cb-durum { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--muted-foreground); flex: none; }
.cb-durum.active { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.cb-durum.invalid { background: var(--destructive); box-shadow: 0 0 0 3px var(--destructive-soft); }
.cb-durum.new, .cb-durum.pending { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); }

/* menü */
.sb-nav { flex: 1; padding: 4px 10px 10px; overflow-y: auto; overflow-x: hidden; }
.cb-grp { margin-top: 6px; }
.cb-grp:not(:has(a)) { display: none; }
.sb-nav .grp, .cb-grp-hd {
  width: 100%; display: flex; align-items: center; gap: 6px; padding: 10px 10px 5px; background: none; border: none;
  color: var(--subtle-foreground); font-size: 11px; letter-spacing: .05em; font-weight: 650; text-transform: uppercase;
  cursor: pointer; text-align: left;
}
.cb-grp-hd:hover { color: var(--muted-foreground); }
.cb-grp-hd svg { width: 13px; height: 13px; margin-left: auto; transition: transform .2s var(--ease); opacity: .7; }
.cb-grp.kapali .cb-grp-hd svg { transform: rotate(-90deg); }
.cb-grp.kapali .cb-grp-items { display: none; }
.sb-nav a {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-md);
  color: var(--sidebar-foreground); font-size: 13.5px; font-weight: 500; margin-bottom: 1px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.sb-nav a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; opacity: .85; }
.sb-nav a span:not(.soon):not(.cb-say) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-nav a:hover { background: var(--sidebar-accent); color: var(--foreground); }
.sb-nav a.on { background: var(--sidebar-accent); color: var(--foreground); font-weight: 600; }
.sb-nav a.on::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.sb-nav a.on svg { color: var(--brand); opacity: 1; }
.sb-nav .soon { margin-left: auto; font-size: 11px; line-height: 1; padding: 2px 5px; border-radius: 6px; background: var(--muted); color: var(--muted-foreground); }
.cb-eski { margin-top: 10px !important; border-top: 1px solid var(--sidebar-border); border-radius: 0 !important; padding-top: 12px !important; opacity: .65; }

/* kullanıcı alanı */
.sb-foot { border-top: 1px solid var(--sidebar-border); padding: 8px 10px; display: flex; align-items: center; gap: 6px; }
.hesapBtn {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; background: none; border: none; text-align: left;
  color: var(--sidebar-foreground); cursor: pointer; padding: 6px; border-radius: var(--r-md); transition: background .15s;
}
.hesapBtn:hover, .hesapBtn[aria-expanded=true] { background: var(--sidebar-accent); color: var(--foreground); }
.hesapBtn img, .hesapBtn .av { width: 30px; height: 30px; border-radius: 8px; flex: none; object-fit: cover; }
.hesapBtn .av { background: var(--primary); color: var(--primary-foreground); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.hesapBtn .cb-u-tx { min-width: 0; flex: 1; line-height: 1.25; }
.hesapBtn .ad { display: block; font-size: 13px; font-weight: 600; color: var(--foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hesapBtn .cb-u-mail { display: block; font-size: 11.5px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hesapBtn .ok { flex-shrink: 0; margin-left: auto; width: 15px; height: 15px; color: var(--muted-foreground); }

/* katlanmış menü (simge şeridi) */
.cb-dar .sidebar { width: var(--side-w-dar); }
.cb-dar .cb-store-btn .cb-st-tx, .cb-dar .cb-store-btn .cb-chev, .cb-dar .cb-grp-hd, .cb-dar .sb-nav a span,
.cb-dar .hesapBtn .cb-u-tx, .cb-dar .hesapBtn .ok { display: none; }
.cb-dar .cb-store-btn, .cb-dar .hesapBtn { justify-content: center; padding: 6px; }
.cb-dar .sb-nav { padding: 4px 8px; }
.cb-dar .sb-nav a { justify-content: center; padding: 9px 0; }
.cb-dar .sb-nav a.on::before { left: -8px; }
.cb-dar .cb-grp { margin-top: 0; padding-top: 6px; border-top: 1px solid var(--sidebar-border); }
.cb-dar .cb-grp:first-child { border-top: none; }
.cb-dar .cb-grp.kapali .cb-grp-items { display: block; }
.cb-dar .sb-foot { justify-content: center; }

/* üst bar */
.cb-top {
  position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 10px;
  padding: 0 16px 0 12px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.cb-ibtn {
  width: 34px; height: 34px; border-radius: var(--r-md); border: 1px solid transparent; background: none; color: var(--muted-foreground);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; position: relative;
  transition: background .15s, color .15s, border-color .15s;
}
.cb-ibtn:hover { background: var(--accent); color: var(--foreground); }
.cb-ibtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cb-ayrac { width: 1px; height: 18px; background: var(--border); flex: none; }
.cb-bc { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13.5px; color: var(--muted-foreground); }
.cb-bc b { color: var(--foreground); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-bc .cb-bc-ok { opacity: .6; }
.cb-top-sag { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.cb-ara {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 11px; min-width: 230px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--card); color: var(--muted-foreground);
  font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; margin-right: 6px;
}
.cb-ara:hover { border-color: var(--border-strong); color: var(--foreground); }
.cb-ara svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.cb-ara kbd { margin-left: auto; }
.cb-sadece-mobil { display: none !important; }
:root:not([data-theme="light"]) .ik-ay, [data-theme="light"] .ik-gunes { display: none; }
.cb-mobil-ad { display: none; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; min-width: 0; }
.cb-mobil-ad img { width: 26px; height: 26px; }
.cb-mobil-ad .mb-mag { font-weight: 500; font-size: 12.5px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }

/* bildirim zili */
#notifBell { position: relative; }
#notifBadge {
  position: absolute; top: 3px; right: 2px; background: var(--destructive-strong); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; line-height: 16px; border-radius: 8px; padding: 0 4px; display: none; text-align: center;
  box-shadow: 0 0 0 2px var(--background); font-variant-numeric: tabular-nums;
}

/* içerik */
.content { flex: 1; min-width: 0; padding: 24px 28px 48px; width: 100%; max-width: 1600px; margin: 0 auto; }
.content > * { animation: cb-gir .32s var(--ease) backwards; }
.content > *:nth-child(2) { animation-delay: .03s; } .content > *:nth-child(3) { animation-delay: .06s; }
.content > *:nth-child(4) { animation-delay: .09s; } .content > *:nth-child(5) { animation-delay: .12s; }
.content > *:nth-child(6) { animation-delay: .15s; } .content > *:nth-child(n+7) { animation-delay: .18s; }
@keyframes cb-gir { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ── 4. AÇILIR MENÜLER (dropdown / popover) ──────────────────────────────────────────────────── */
.cb-dd {
  position: fixed; z-index: 220; min-width: 220px; background: var(--popover); color: var(--foreground);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 5px;
  display: none; transform-origin: top left;
}
.cb-dd.on { display: block; animation: cb-ac .16s var(--ease); }
@keyframes cb-ac { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.cb-dd .dd-lbl { padding: 7px 9px 4px; font-size: 11px; font-weight: 650; color: var(--subtle-foreground); text-transform: uppercase; letter-spacing: .05em; }
.cb-dd .dd-sep { height: 1px; background: var(--border); margin: 5px -5px; }
.cb-dd a, .cb-dd .dd-it {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 9px; border-radius: var(--r-sm); font-size: 13.5px;
  color: var(--foreground); background: none; border: none; cursor: pointer; text-align: left; font-family: inherit;
}
.cb-dd a:hover, .cb-dd .dd-it:hover, .cb-dd .dd-it.sec { background: var(--accent); }
.cb-dd a svg, .cb-dd .dd-it svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted-foreground); flex: none; }
.cb-dd .dd-it .dd-tik { margin-left: auto; color: var(--brand); }
.cb-dd a.cikis, .cb-dd .dd-it.cikis { color: var(--destructive); }
.cb-dd a.cikis svg { color: var(--destructive); }
.cb-dd .dd-seg { display: flex; gap: 4px; padding: 4px 6px 6px; }
.cb-dd .dd-seg button {
  flex: 1; padding: 5px 0; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--card); color: var(--muted-foreground);
  font-size: 12px; font-weight: 650; cursor: pointer; font-family: inherit;
}
.cb-dd .dd-seg button.on { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.cb-dd .dd-row { display: flex; align-items: center; gap: 8px; padding: 6px 9px 2px; font-size: 12.5px; color: var(--muted-foreground); }
#hesapMenu .hm-hd { padding: 8px 9px 9px; }
#hesapMenu .hm-ad { font-size: 13.5px; font-weight: 650; }
#hesapMenu .hm-mail { font-size: 12px; color: var(--muted-foreground); margin: 1px 0 7px; word-break: break-all; }
.cb-mag-it .cb-mag-ilk {
  width: 24px; height: 24px; border-radius: 6px; background: var(--muted); border: 1px solid var(--border); flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--muted-foreground);
}
.cb-mag-liste { max-height: 320px; overflow-y: auto; }

/* bildirim paneli (eski #notifPanel — üst bardaki zilden açılır) */
#notifPanel {
  position: fixed; top: calc(var(--top-h) + 6px); right: 14px; width: 360px; max-width: calc(100vw - 24px); max-height: 70vh;
  background: var(--popover); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; display: none; z-index: 210; flex-direction: column;
}
#notifPanel.on { display: flex; animation: cb-ac .16s var(--ease); }
.np-hd { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.np-hd span { color: var(--brand); font-size: 12px; cursor: pointer; font-weight: 550; }
.np-hd span:hover { text-decoration: underline; }
#npList { overflow-y: auto; }
.np-item { padding: 11px 14px 11px 26px; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; transition: background .15s; }
.np-item:last-child { border-bottom: none; }
.np-item:hover { background: var(--accent); }
.np-item.unread::before { content: ""; position: absolute; left: 11px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.np-item .t { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.np-item .b { font-size: 12.5px; color: var(--muted-foreground); }
.np-item .d { font-size: 11px; color: var(--subtle-foreground); margin-top: 4px; }
.np-empty { padding: 30px 16px; text-align: center; color: var(--muted-foreground); font-size: 12.5px; }

/* ── 5. SAYFA BAŞLIĞI ────────────────────────────────────────────────────────────────────────── */
.topbar, .cb-sayfa-hd { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.topbar .chips, .cb-sayfa-hd .cb-eylem { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pagehd, h1.cb-h1 { font-size: 24px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.025em; line-height: 1.25; }
.pagesub, .cb-alt { color: var(--muted-foreground); font-size: 13.5px; margin: 0 0 20px; max-width: 78ch; }
.topbar .pagesub { margin-bottom: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 11px; font-size: 12.5px; color: var(--foreground); font-weight: 500;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-foreground); }
.cb-bolum-hd { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.cb-bolum-hd h2 { font-size: 16px; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.cb-bolum-hd .cb-eylem { margin-left: auto; display: flex; gap: 8px; }

/* ── 6. KART ──────────────────────────────────────────────────────────────────────────────────── */
.card, .kart {
  background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.card h3, .kart h3, .card-title { margin: 0 0 4px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.card-desc { color: var(--muted-foreground); font-size: 13px; margin: 0; }
.card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card-header .card-action { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-footer { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.card.cb-ince, .kart.cb-ince { padding: 14px 16px; }
.card.cb-vurgu { border-color: var(--brand-line); background: linear-gradient(180deg, var(--brand-soft), transparent 70%), var(--card); }
.mut, .msub { color: var(--muted-foreground); font-size: 12.5px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid2 > .card, .grid3 > .card, .grid4 > .card, .grid2 > .kart, .grid3 > .kart, .grid4 > .kart { margin-bottom: 0; }

/* ── 7. KPI ───────────────────────────────────────────────────────────────────────────────────── */
.kpi, .dk {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 16px; box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .2s, transform .2s var(--ease);
}
.kpi:hover, .dk:hover { border-color: var(--border-strong); }
button.kpi, a.kpi { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.kpi:hover, a.kpi:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); transform: translateY(-1px); }
button.kpi:focus-visible, a.kpi:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
button.kpi.on, a.kpi.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--brand-soft); }
.kpi .n, .dk .n { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .l, .dk .l { font-size: 12.5px; color: var(--muted-foreground); margin-top: 4px; font-weight: 500; }
.kpi .d, .dk .d { font-size: 12px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .cb-kpi-ico { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.kpi .cb-kpi-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.cb-trend { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.cb-trend.up { color: var(--success); background: var(--success-soft); }
.cb-trend.down { color: var(--destructive); background: var(--destructive-soft); }
.cb-trend.flat { color: var(--muted-foreground); background: var(--muted); }
.kpi .cb-spark { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; opacity: .85; pointer-events: none; }
.kpi:has(.cb-spark) { padding-bottom: 38px; }

/* ── 8. SEKME + SEGMENT ──────────────────────────────────────────────────────────────────────── */
.tabs {
  display: inline-flex; gap: 2px; background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 3px; margin-bottom: 18px; flex-wrap: wrap; max-width: 100%;
}
.tab {
  padding: 6px 13px; font-size: 13px; color: var(--muted-foreground); cursor: pointer; border-radius: var(--r-md);
  user-select: none; font-weight: 550; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s;
  border: none; background: none; font-family: inherit;
}
.tab:hover { color: var(--foreground); }
.tab.on { color: var(--foreground); background: var(--card); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); font-weight: 650; }
.tabpane { display: none; } .tabpane.on { display: block; animation: cb-gir .25s var(--ease) backwards; }
.tabs.cb-cizgi { background: none; border: none; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0; gap: 4px; display: flex; }
.tabs.cb-cizgi .tab { border-radius: 0; padding: 9px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs.cb-cizgi .tab.on { background: none; box-shadow: none; border-bottom-color: var(--primary); }
.seg { display: inline-flex; background: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 3px; gap: 2px; }
.seg button {
  padding: 5px 12px; border-radius: var(--r-md); font-size: 12.5px; color: var(--muted-foreground); cursor: pointer; background: none;
  border: none; font-family: inherit; font-weight: 550; transition: background .15s, color .15s;
}
.seg button:hover { color: var(--foreground); }
.seg button.on { background: var(--card); color: var(--foreground); font-weight: 650; box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }

/* ── 9. ANAHTAR (switch) — eski .sw > input + .sl yapısı aynen ───────────────────────────────── */
.sw { position: relative; width: 40px; height: 22px; flex-shrink: 0; display: inline-block; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sl { position: absolute; inset: 0; background: var(--input); border-radius: 22px; cursor: pointer; transition: background .2s var(--ease); }
.sl:before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%;
  transition: transform .22s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.sw input:checked + .sl { background: var(--success); }
.sw input:checked + .sl:before { transform: translateX(18px); }
.sw input:focus-visible + .sl { box-shadow: 0 0 0 3px var(--ring); }
.sw input:disabled + .sl { opacity: .5; cursor: not-allowed; }
.sw.lg { width: 52px; height: 28px; } .sw.lg .sl:before { height: 24px; width: 24px; left: 2px; top: 2px; }
.sw.lg input:checked + .sl:before { transform: translateX(24px); }
.yetki { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.yetki:last-child { border-bottom: none; }
.yetki .t { font-weight: 600; font-size: 13.5px; }
.yetki .d { color: var(--muted-foreground); font-size: 12.5px; line-height: 1.55; margin-top: 2px; }

/* ── 10. TABLO ────────────────────────────────────────────────────────────────────────────────── */
.tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th {
  text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--muted-foreground); font-weight: 550;
  font-size: 12px; white-space: nowrap; background: var(--card); position: sticky; top: 0; z-index: 1;
}
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td { text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover td, .tbl tr:hover td { background: var(--accent); }
.tbl-kaydir { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card > .tbl-kaydir:only-child, .card > .tbl:only-child { margin: -6px -8px; }

/* ── 11. DÜĞME ────────────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r-md);
  font-weight: 600; font-size: 13.5px; cursor: pointer; border: 1px solid var(--border); background: var(--card); color: var(--foreground);
  font-family: inherit; white-space: nowrap; box-shadow: var(--shadow-sm);
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s, transform .08s, box-shadow .15s;
}
.btn:hover { background: var(--accent); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary, .btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.btn.primary:hover, .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.ghost, .btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--foreground); }
.btn.ghost:hover, .btn-ghost:hover { background: var(--accent); }
.btn-secondary { background: var(--secondary); border-color: transparent; color: var(--secondary-foreground); box-shadow: none; }
.btn-outline { background: transparent; }
.btn.danger, .btn-destructive { background: var(--destructive-strong); border-color: var(--destructive-strong); color: #fff; }
.btn.danger:hover, .btn-destructive:hover { filter: brightness(1.08); }
.btn-outline-destructive { background: transparent; border-color: color-mix(in srgb, var(--destructive) 55%, transparent); color: var(--destructive); }
.btn-outline-destructive:hover { background: var(--destructive-soft); border-color: var(--destructive); }
.btn-link { background: none; border: none; box-shadow: none; color: var(--brand); padding: 0; height: auto; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn.small, .btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; gap: 6px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14.5px; }
.btn-icon { width: 36px; padding: 0; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.yukleniyor { position: relative; color: transparent !important; pointer-events: none; }
.btn.yukleniyor::after {
  content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; border: 2px solid;
  border-color: var(--foreground) transparent var(--foreground) transparent; animation: cb-don .7s linear infinite;
}
.btn.primary.yukleniyor::after, .btn-primary.yukleniyor::after { border-color: var(--primary-foreground) transparent var(--primary-foreground) transparent; }
.btn-destructive.yukleniyor::after, .btn.danger.yukleniyor::after { border-color: #fff transparent #fff transparent; }
@keyframes cb-don { to { transform: rotate(360deg); } }

/* ── 12. ROZET / ÇİP ──────────────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  white-space: nowrap; line-height: 1.5; border: 1px solid transparent; background: var(--muted); color: var(--muted-foreground);
}
.b-active, .badge-success { background: var(--success-soft); color: var(--success); }
.b-new, .badge-warning { background: var(--warning-soft); color: var(--warning); }
.b-invalid, .b-bad, .badge-destructive { background: var(--destructive-soft); color: var(--destructive); }
.b-disabled, .b-mut, .badge-muted { background: var(--muted); color: var(--muted-foreground); }
.b-acc, .badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-outline { background: transparent; border-color: var(--border); color: var(--foreground); }

/* ── 13. UYARI / MESAJ (Alert) ────────────────────────────────────────────────────────────────── */
/* .alert / .uy BLOK (satir ici metin + <b> parcalanmasin); ikon + govde duzeni isteyen .alert.cb-ikonlu ya da .onaybant */
.alert, .uy, .onaybant {
  display: block; border-radius: var(--r-lg); padding: 12px 15px; font-size: 13.5px; line-height: 1.55;
  border: 1px solid var(--border); background: var(--card);
}
.onaybant, .alert.cb-ikonlu,
.alert:has(> svg:first-child), .alert:has(> .ob-ikon:first-child), .uy:has(> svg:first-child) { display: flex; gap: 12px; align-items: flex-start; }
.alert-warning, .uy, .onaybant { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 35%, transparent); color: var(--foreground); }
.uy { font-size: 12.5px; margin-top: 10px; padding: 9px 13px; }
.onaybant { margin-bottom: 18px; }
.onaybant .ob-ikon { font-size: 16px; line-height: 1.4; flex: none; color: var(--warning); }
.onaybant b { color: var(--foreground); }
.alert-destructive { background: var(--destructive-soft); border-color: color-mix(in srgb, var(--destructive) 35%, transparent); }
.alert-success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.alert-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.msg { margin-top: 12px; font-size: 13px; padding: 9px 13px; border-radius: var(--r-md); display: none; border: 1px solid transparent; }
.msg.ok { background: var(--success-soft); color: var(--success); display: block; border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.msg.err { background: var(--destructive-soft); color: var(--destructive); display: block; border-color: color-mix(in srgb, var(--destructive) 30%, transparent); }
.note { color: var(--muted-foreground); font-size: 12.5px; line-height: 1.6; }
.soonbox, .bos {
  background: var(--card); border: 1px dashed var(--border-strong); border-radius: var(--r-xl); padding: 46px 24px; text-align: center; color: var(--muted-foreground);
}
.soonbox .big, .bos .big { font-size: 36px; margin-bottom: 12px; }
.bos h3 { color: var(--foreground); font-size: 15px; margin: 0 0 6px; }

/* veri alarm bandı (kapatılamaz, küçültülebilir — layout JS üretir) */
.vbant { display: flex; align-items: flex-start; gap: 14px; padding: 12px 20px; font-size: 13.5px; border-bottom: 1px solid transparent; position: relative; z-index: 35; }
.vkritik { background: var(--destructive-strong); color: #fff; }
.vuyari { background: #8a5a06; color: #fff7e6; }
[data-theme="light"] .vuyari { background: #fbe7bd; color: #4a3203; border-bottom-color: #f0d38f; }
.vbant .vico { width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; animation: cb-nabiz 2s ease-in-out infinite; }
.vbant .vbas { font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; margin-bottom: 3px; }
.vbant .vsat { opacity: .92; line-height: 1.5; }
.vbant .vlink, .vbant .vkb { white-space: nowrap; align-self: center; font-weight: 650; border: 1px solid currentColor; border-radius: var(--r-md); padding: 6px 12px; opacity: .9; font-size: 12.5px; }
.vbant .vkb { margin-left: auto; background: transparent; color: inherit; font: inherit; font-weight: 650; cursor: pointer; }
.vbant .vkb:hover, .vbant .vlink:hover { background: rgba(255, 255, 255, .14); opacity: 1; }
.vbant.vkucuk { padding: 5px 20px; align-items: center; gap: 10px; }
.vkucuk .vsat { display: none; }
.vkucuk .vbas { margin: 0; font-size: 13px; }
.vkucuk .vico { width: 18px; height: 18px; font-size: 11px; border-width: 1.5px; }
.vkucuk .vlink, .vkucuk .vkb { padding: 2px 10px; font-size: 12px; }
@keyframes cb-nabiz { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); } 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); } }

/* ── 14. İSKELET / İLERLEME / CANLI NOKTA ─────────────────────────────────────────────────────── */
.skel { display: block; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--skel-a) 0%, var(--skel-b) 40%, var(--skel-a) 80%); background-size: 300% 100%; animation: cb-skel 1.3s ease-in-out infinite; min-height: 12px; }
@keyframes cb-skel { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.prog { height: 8px; border-radius: 99px; background: var(--muted); overflow: hidden; }
.prog > i { display: block; height: 100%; border-radius: inherit; background: var(--primary); transform-origin: left; animation: cb-dol .8s var(--ease) both; transition: width .6s var(--ease); }
@keyframes cb-dol { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cb-canli { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; position: relative; flex: none; }
.cb-canli::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: cb-yayil 1.8s ease-out infinite; }
.cb-canli.uyari { background: var(--warning); }
.cb-canli.kritik { background: var(--destructive); }
.cb-canli.durgun { background: var(--muted-foreground); }
.cb-canli.durgun::after { animation: none; }
@keyframes cb-yayil { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }

/* ── 15. TOAST + DIALOG + KOMUT PALETİ + İPUCU ────────────────────────────────────────────────── */
#cbToast { position: fixed; right: 18px; bottom: 18px; z-index: 400; display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none; max-width: min(380px, calc(100vw - 36px)); }
.cb-toast {
  pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; background: var(--popover); color: var(--foreground);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 12px 14px; font-size: 13.5px; line-height: 1.5;
  animation: cb-tost-gir .25s var(--ease) both;
}
.cb-toast.cik { animation: cb-tost-cik .2s ease-in both; }
.cb-toast .ti { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.cb-toast.ok .ti { color: var(--success); } .cb-toast.err .ti { color: var(--destructive); } .cb-toast.uy .ti { color: var(--warning); } .cb-toast.bilgi .ti { color: var(--info); }
.cb-toast .tx { white-space: pre-line; word-break: break-word; }
.cb-toast .cb-toast-eylem { margin-left: auto; flex: none; height: 28px; align-self: center; }
@keyframes cb-tost-gir { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes cb-tost-cik { to { opacity: 0; transform: translateX(16px); } }
.cb-perde { position: fixed; inset: 0; background: var(--overlay); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; animation: cb-sol .18s ease both; backdrop-filter: blur(2px); }
@keyframes cb-sol { from { opacity: 0; } to { opacity: 1; } }
.cb-dialog {
  width: min(460px, 100%); background: var(--popover); color: var(--foreground); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 22px; animation: cb-ac .2s var(--ease);
}
.cb-dialog h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.cb-dialog .dg-tx { color: var(--muted-foreground); font-size: 13.5px; line-height: 1.6; white-space: pre-line; }
.cb-dialog .dg-alt { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.cb-kp { position: fixed; inset: 0; z-index: 320; background: var(--overlay); display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; backdrop-filter: blur(2px); }
.cb-kp.on { display: flex; animation: cb-sol .15s ease both; }
.cb-kp-kutu { width: min(620px, 100%); background: var(--popover); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; animation: cb-ac .18s var(--ease); }
.cb-kp-ara { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.cb-kp-ara svg { width: 17px; height: 17px; stroke: var(--muted-foreground); fill: none; stroke-width: 2; flex: none; }
.cb-kp-ara input { flex: 1; border: none !important; box-shadow: none !important; background: transparent !important; height: 50px; font-size: 15px; padding: 0; }
.cb-kp-liste { max-height: 380px; overflow-y: auto; padding: 6px; }
.cb-kp-grp { padding: 8px 10px 4px; font-size: 11px; font-weight: 650; color: var(--subtle-foreground); text-transform: uppercase; letter-spacing: .05em; }
.cb-kp-it { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-md); font-size: 14px; cursor: pointer; color: var(--foreground); }
.cb-kp-it svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; color: var(--muted-foreground); flex: none; }
.cb-kp-it .kp-grp { margin-left: auto; font-size: 12px; color: var(--subtle-foreground); }
.cb-kp-it.sec { background: var(--accent); }
.cb-kp-it.sec svg { color: var(--brand); }
.cb-kp-bos { padding: 28px; text-align: center; color: var(--muted-foreground); font-size: 13.5px; }
.cb-kp-alt { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--subtle-foreground); }
.cb-ipucu {
  position: fixed; z-index: 450; pointer-events: none; background: var(--foreground); color: var(--background); font-size: 12px; font-weight: 550;
  padding: 5px 9px; border-radius: var(--r-sm); white-space: nowrap; box-shadow: var(--shadow-md); animation: cb-ac .12s var(--ease);
}

/* ── 16. GRAFİK (cbChart) ─────────────────────────────────────────────────────────────────────── */
.cbc { position: relative; width: 100%; }
.cbc svg { display: block; width: 100%; height: auto; overflow: visible; }
.cbc .cbc-grid line { stroke: var(--chart-grid); stroke-dasharray: 3 4; }
.cbc .cbc-eks text { fill: var(--subtle-foreground); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.cbc .cbc-cizgi { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.cbc .cbc-cizgi.ciz { stroke-dasharray: var(--uz); stroke-dashoffset: var(--uz); animation: cbc-ciz 1.1s var(--ease) forwards; }
@keyframes cbc-ciz { to { stroke-dashoffset: 0; } }
.cbc .cbc-alan { opacity: 0; animation: cb-sol .9s .25s ease forwards; }
.cbc .cbc-cubuk { transform-box: fill-box; transform-origin: bottom; animation: cbc-buyu .7s var(--ease) both; transition: opacity .15s, filter .15s; }
.cbc .cbc-cubuk.eksi { transform-origin: top; }
.cbc:hover .cbc-cubuk { opacity: .55; }
.cbc .cbc-cubuk:hover, .cbc .cbc-cubuk.on { opacity: 1; filter: brightness(1.12); }
@keyframes cbc-buyu { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.cbc .cbc-imlec { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .12s; }
.cbc .cbc-nokta { opacity: 0; transition: opacity .12s; stroke: var(--card); stroke-width: 2; }
.cbc.hover .cbc-imlec, .cbc.hover .cbc-nokta { opacity: 1; }
.cbc .cbc-son { animation: cb-nabiz-n 2.2s ease-in-out infinite; }
@keyframes cb-nabiz-n { 0%, 100% { r: 3.5; } 50% { r: 5; } }
.cbc-tip {
  position: absolute; pointer-events: none; z-index: 5; background: var(--popover); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 8px 10px; font-size: 12px; min-width: 130px; opacity: 0; transition: opacity .12s; white-space: nowrap;
}
.cbc.hover .cbc-tip { opacity: 1; }
.cbc-tip .tt-bas { font-weight: 650; margin-bottom: 4px; color: var(--foreground); }
.cbc-tip .tt-sat { display: flex; align-items: center; gap: 7px; color: var(--muted-foreground); line-height: 1.7; }
.cbc-tip .tt-sat b { margin-left: auto; color: var(--foreground); font-weight: 650; font-variant-numeric: tabular-nums; padding-left: 12px; }
.cbc-tip i, .cbc-lej i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
.cbc-lej { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted-foreground); }
.cbc-lej span { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; transition: opacity .15s; }
.cbc-lej span.kapali { opacity: .4; text-decoration: line-through; }
.cbc .cbc-halka { transition: opacity .15s; transform-origin: center; }
.cbc .cbc-halka-dilim { fill: none; animation: cbc-halka 1s var(--ease) both; }
@keyframes cbc-halka { from { stroke-dasharray: 0 999; } }
.cbc-orta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.cbc-orta b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cbc-orta span { font-size: 12px; color: var(--muted-foreground); }
.cbc-bos { display: flex; align-items: center; justify-content: center; min-height: 140px; color: var(--muted-foreground); font-size: 13px; border: 1px dashed var(--border); border-radius: var(--r-md); }

/* ── 17. "?" YARDIM BALONU (_yardim.html'deki <details class="yardim"> görünümü) ───────────────── */
details.yardim > summary { color: var(--muted-foreground); }

/* ── 18. DUYARLI ──────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cb-ara { min-width: 0; } .cb-ara .cb-ara-tx, .cb-ara kbd { display: none; } }
@media (max-width: 1024px) and (min-width: 769px) {
  .sidebar { width: var(--side-w-dar); }
  .cb-store-btn .cb-st-tx, .cb-store-btn .cb-chev, .cb-grp-hd, .sb-nav a span, .hesapBtn .cb-u-tx, .hesapBtn .ok { display: none; }
  .cb-store-btn, .hesapBtn { justify-content: center; padding: 6px; }
  .sb-nav { padding: 4px 8px; } .sb-nav a { justify-content: center; padding: 9px 0; } .sb-nav a.on::before { left: -8px; }
  .cb-grp.kapali .cb-grp-items { display: block; }
  #cbDarBtn { display: none; }
  .content { padding: 20px; }
}
.sb-kapak { display: none; }
@media (max-width: 768px) {
  .shell { display: block; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 300px); z-index: 80; height: 100%;
    transform: translateX(-104%); transition: transform .24s var(--ease); box-shadow: var(--shadow-lg);
  }
  .cb-dar .sidebar { width: min(86vw, 300px); }
  .cb-dar .cb-store-btn .cb-st-tx, .cb-dar .cb-grp-hd, .cb-dar .sb-nav a span, .cb-dar .hesapBtn .cb-u-tx { display: revert; }
  body.menu-acik .sidebar { transform: translateX(0); }
  body.menu-acik .sb-kapak { display: block; position: fixed; inset: 0; z-index: 70; background: var(--overlay); animation: cb-sol .2s ease; }
  body.menu-acik { overflow: hidden; }
  #cbDarBtn, .cb-bc, .cb-top .cb-ayrac { display: none; }
  .cb-sadece-mobil { display: inline-flex !important; }
  .cb-mobil-ad { display: flex; }
  .cb-top { padding: 0 10px; gap: 6px; }
  .cb-ara { width: 34px; padding: 0; justify-content: center; margin: 0; border: none; background: none; }
  .content { padding: 16px 14px 32px; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .sb-nav a { padding: 10px 12px; font-size: 14.5px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab { flex: none; }
  .btn { height: 40px; font-size: 14px; } .btn.small, .btn-sm { height: 34px; font-size: 13px; }
  input, select, textarea { font-size: 16px !important; }
  .pagehd, h1.cb-h1 { font-size: 21px; }
  .topbar .chips { margin-left: 0; width: 100%; }
  .card, .kart { padding: 15px; }
  table { min-width: 520px; }
  .soonbox, .bos { padding: 30px 18px; }
  #cbToast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  body { overflow-x: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .cbc .cbc-cizgi.ciz { stroke-dashoffset: 0; }
}
