/* Deposis Reklam Paneli — v2
   Düzen: koyu üst şerit, sayfa başlığı + filtreler, KPI kartları, tek sütun reklam kartları.
   Font: Fira Sans (metin) + Fira Code (sayılar). Çizgi ikonlar (SVG). */
:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --surface-3: #e3ebe9;
  --ink: #0f1a17;
  --ink-2: #4a5a55;
  --line: #dce4e1;
  --line-2: #c9d5d1;
  --accent: #0f766e;
  --accent-hover: #0d6560;
  --accent-ink: #ffffff;
  --accent-soft: #dcf2ee;
  --top: #0c1513;
  --top-ink: #e6eeec;
  --s-yeni: #64748b;
  --s-alakasiz: #dc2626;
  --s-ilgili: #2563eb;
  --s-demo: #d97706;
  --s-musteri: #16a34a;
  --good-bg: #e3f6ea;
  --bad-bg: #fde8e8;
  --warn-bg: #fdf3dc;
  --wa: #128c4b;
  --ig: #c13584;
  --ms: #1d6fe8;
  --shadow: 0 1px 2px rgba(15, 26, 23, .06), 0 4px 16px rgba(15, 26, 23, .05);
  --shadow-lg: 0 8px 32px rgba(15, 26, 23, .16);
  --font: "Fira Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Fira Code", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 14px;
  --r-sm: 9px;
  color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0a1110;
    --surface: #111b19;
    --surface-2: #172422;
    --surface-3: #1f2e2b;
    --ink: #e6eeec;
    --ink-2: #9aaba6;
    --line: #22312e;
    --line-2: #2e403c;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-ink: #062320;
    --accent-soft: #10302c;
    --top: #060b0a;
    --top-ink: #e6eeec;
    --s-yeni: #94a3b8;
    --s-alakasiz: #f87171;
    --s-ilgili: #60a5fa;
    --s-demo: #fbbf24;
    --s-musteri: #4ade80;
    --good-bg: #0f2a1c;
    --bad-bg: #331616;
    --warn-bg: #33270e;
    --wa: #4ade80;
    --ig: #f472b6;
    --ms: #60a5fa;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }

/* Temel */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.25; margin: 0; }
h2 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .85em; }
.muted { color: var(--ink-2); }
.tiny { font-size: .82rem; }
.bad { color: var(--s-alakasiz); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ic { width: 18px; height: 18px; flex: none; }
.ic-sm { width: 16px; height: 16px; flex: none; }
.ic-xs { width: 13px; height: 13px; flex: none; vertical-align: -2px; }
button, select, summary, .stage, a { cursor: pointer; }
button, input, select, textarea { font: inherit; }

/* Üst şerit */
.top { background: var(--top); color: var(--top-ink); position: sticky; top: 0; z-index: 30; }
.top-in, .wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: .98rem; }
.brand strong { font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #14b8a6, #0f766e); color: #fff; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px;
  color: inherit; text-decoration: none; border-radius: 9px; opacity: .72; font-size: .92rem;
  transition: background-color .18s, opacity .18s;
}
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .07); }
.nav a[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, .12); }

.wrap { padding-block: 26px 72px; display: flex; flex-direction: column; gap: 18px; }

/* Sayfa başlığı ve filtreler */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 20px; flex-wrap: wrap; }
.page-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.sync-note { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.lede { max-width: 65ch; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg-ctl { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.seg-ctl a {
  min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 500; transition: background-color .18s, color .18s;
}
.seg-ctl a:hover { color: var(--ink); }
.seg-ctl a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
select, input, textarea {
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 8px 12px; max-width: 100%; min-height: 42px;
  transition: border-color .18s, box-shadow .18s;
}
select:hover, input:hover, textarea:hover { border-color: var(--ink-2); }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; }

/* KPI kartları */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 10px; row-gap: 2px;
  min-width: 0; box-shadow: var(--shadow);
}
.kpi-ic { grid-row: 1; grid-column: 1; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.kpi-ic .ic { width: 16px; height: 16px; }
.ic-wallet { background: var(--surface-2); color: var(--ink-2); }
.ic-users { background: color-mix(in srgb, var(--s-ilgili) 14%, transparent); color: var(--s-ilgili); }
.ic-target { background: color-mix(in srgb, var(--s-demo) 16%, transparent); color: var(--s-demo); }
.ic-badge { background: color-mix(in srgb, var(--s-musteri) 16%, transparent); color: var(--s-musteri); }
.ic-ban { background: color-mix(in srgb, var(--s-alakasiz) 14%, transparent); color: var(--s-alakasiz); }
.kpi-l { grid-row: 1; grid-column: 2; align-self: center; font-size: .78rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.kpi-v { grid-column: 1 / -1; margin-top: 10px; font-family: var(--mono); font-weight: 600; font-size: 1.45rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi-s { grid-column: 1 / -1; font-size: .8rem; color: var(--ink-2); }
.kpi-hero { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.kpi-hero .kpi-v { color: var(--accent); }

/* Uyarı satırları */
.signals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.signal { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--r-sm); font-size: .92rem; }
.signal .ic-sm { margin-top: 2px; }
.signal-good { background: var(--good-bg); color: var(--ink); }
.signal-good .ic-sm { color: var(--s-musteri); }
.signal-bad { background: var(--bad-bg); color: var(--ink); }
.signal-bad .ic-sm { color: var(--s-alakasiz); }

/* Liste çubuğu */
.list-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; min-height: 44px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; transition: background-color .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.link-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: .88rem; color: var(--ink-2); text-decoration: none; padding: 0 10px; border-radius: 8px; transition: background-color .18s, color .18s; }
.link-btn:hover { background: var(--surface-2); color: var(--ink); }

/* Kart */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.ad { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.ad-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.ad-unmatched { border-style: dashed; border-color: color-mix(in srgb, var(--s-demo) 60%, var(--line)); }
.thumb {
  width: 72px; height: 72px; border-radius: 11px; background: var(--surface-2); overflow: hidden; flex: none;
  position: relative; display: grid; place-items: center; color: var(--ink-2);
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.thumb-fallback { width: 26px; height: 26px; opacity: .5; }
.thumb-ic { width: 44px; height: 44px; color: var(--s-demo); background: var(--warn-bg); }
.ad-title { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ad-title h2 { overflow-wrap: anywhere; font-size: 1.05rem; }
.ad-copy { font-size: .86rem; color: var(--ink-2); margin-top: 3px; max-width: 70ch; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-on { background: var(--good-bg); color: var(--s-musteri); }
.pill-off { background: var(--surface-2); color: var(--ink-2); }

.metrics { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.metrics div { min-width: 0; background: var(--surface-2); padding: 10px 12px; }
.metrics dt { font-size: .7rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.metrics dd { margin: 3px 0 0; font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; font-size: .98rem; overflow-wrap: anywhere; }
.metrics .m-accent { background: var(--accent-soft); }
.metrics .m-accent dd { color: var(--accent); }

.dist { display: flex; flex-direction: column; gap: 8px; }
.bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--surface-2); }
.seg { display: block; min-width: 6px; transition: flex-grow .3s; }
.seg-yeni, .lg-yeni .dot, .stage-yeni .dot { background: var(--s-yeni); }
.seg-alakasiz, .lg-alakasiz .dot, .stage-alakasiz .dot { background: var(--s-alakasiz); }
.seg-ilgili, .lg-ilgili .dot, .stage-ilgili .dot { background: var(--s-ilgili); }
.seg-demo, .lg-demo .dot, .stage-demo .dot { background: var(--s-demo); }
.seg-musteri, .lg-musteri .dot, .stage-musteri .dot { background: var(--s-musteri); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* Kişi listesi */
.leads-box > summary, .ad-organic > summary {
  list-style: none; display: flex; align-items: center; gap: 8px; min-height: 40px;
  font-weight: 600; font-size: .92rem; border-radius: 8px;
}
.leads-box > summary::-webkit-details-marker, .ad-organic > summary::-webkit-details-marker { display: none; }
.chev { transition: transform .2s; transform: rotate(-90deg); color: var(--ink-2); }
details[open] > summary .chev { transform: rotate(0deg); }
.new-count { color: var(--s-demo); }
.no-leads { padding: 2px 0; }
.ad-organic { padding: 12px 18px; }
.organic-note { margin: 4px 0 6px; }
.leads { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.lead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.lead:first-child { border-top: 0; }
.avatar {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink); display: grid; place-items: center;
  font-weight: 600; font-size: .84rem; letter-spacing: .02em;
}
.avatar-ch { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--surface); }
.avatar-ch.ch-whatsapp { color: var(--wa); }
.avatar-ch.ch-instagram { color: var(--ig); }
.avatar-ch.ch-messenger { color: var(--ms); }
.lead-body { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.lead-head { display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; }
.lead-head time { margin-left: auto; }
.lead-name { overflow-wrap: anywhere; font-weight: 600; }
.chip { font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; letter-spacing: .02em; }
.chip-whatsapp { background: color-mix(in srgb, var(--wa) 14%, transparent); color: var(--wa); }
.chip-instagram { background: color-mix(in srgb, var(--ig) 14%, transparent); color: var(--ig); }
.chip-messenger { background: color-mix(in srgb, var(--ms) 14%, transparent); color: var(--ms); }
.bubble {
  align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px; padding: 9px 13px; font-size: .92rem; max-width: min(65ch, 100%); overflow-wrap: anywhere;
}
.lead-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stages { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.stage {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  border-radius: 99px; font-size: .84rem; font-weight: 500; transition: background-color .18s, color .18s, border-color .18s;
}
.stage:hover { border-color: var(--ink-2); color: var(--ink); }
.stage[aria-pressed="true"] { color: #fff; font-weight: 600; border-color: transparent; }
.stage[aria-pressed="true"] .dot { background: #fff; }
.stage-yeni[aria-pressed="true"] { background: var(--s-yeni); }
.stage-alakasiz[aria-pressed="true"] { background: var(--s-alakasiz); }
.stage-ilgili[aria-pressed="true"] { background: var(--s-ilgili); }
.stage-demo[aria-pressed="true"] { background: var(--s-demo); }
.stage-musteri[aria-pressed="true"] { background: var(--s-musteri); }
[data-theme="dark"] .stage[aria-pressed="true"] { color: #0a1110; }
[data-theme="dark"] .stage[aria-pressed="true"] .dot { background: #0a1110; }
.deal { display: inline-flex; gap: 8px; align-items: center; font-size: .84rem; color: var(--ink-2); }
.deal input { width: 130px; font-family: var(--mono); min-height: 36px; padding: 6px 10px; }
.note { width: 100%; font-size: .88rem; padding: 8px 12px; background: transparent; min-height: 38px; border-style: dashed; }
.note:focus { background: var(--surface); border-style: solid; }
.assign { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; }
.assign select { min-width: 0; flex: 1 1 280px; min-height: 38px; }

body.only-new .lead.done { display: none; }

/* Düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .9rem; text-decoration: none; min-height: 42px; padding: 0 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  transition: background-color .18s, border-color .18s, color .18s;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .84rem; }
.btn .ic, .btn .ic-sm { width: 16px; height: 16px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Formlar ve paneller (Kişi ekle, Ayarlar) */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--shadow); }
.panel h2 { display: flex; align-items: center; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.narrow { max-width: 380px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; color: var(--ink-2); font-weight: 500; min-width: 0; }
.field input, .field select, .field textarea { width: 100%; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; min-height: 42px; }
.check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
.check-pad { padding-bottom: 0; }
.alert { padding: 12px 16px; border-radius: var(--r-sm); display: flex; flex-direction: column; gap: 6px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-good { background: var(--good-bg); }
.alert-bad { background: var(--bad-bg); }
.alert-warn { background: var(--warn-bg); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: grid; grid-template-columns: 10px auto minmax(0, 1fr); gap: 10px; align-items: baseline; }
.checks .muted { font-size: .86rem; overflow-wrap: anywhere; }
.checks .dot { width: 10px; height: 10px; background: var(--s-alakasiz); align-self: center; }
.checks .ok .dot { background: var(--s-musteri); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
code.copy { cursor: copy; background: var(--surface-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; }
.empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 36px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.empty p { max-width: 60ch; }
.empty-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }

.login { min-height: 85vh; display: grid; place-items: center; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-lg); }
.brand-lg { font-size: 1.1rem; color: var(--ink); }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--top); color: var(--top-ink); padding: 12px 18px; border-radius: 11px;
  font-size: .9rem; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); z-index: 50;
  animation: toast-in .2s ease-out;
}
.toast-bad { background: var(--s-alakasiz); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Duyarlı */
@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-hero { grid-column: span 2; order: -1; }
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metrics div:last-child { grid-column: span 2; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav a span { display: none; }
  .nav a { padding: 0 11px; min-height: 44px; }
  .page-head { align-items: stretch; }
  .toolbar { width: 100%; }
  .seg-ctl { width: 100%; }
  .seg-ctl a { flex: 1; justify-content: center; padding: 0 8px; min-height: 40px; }
  .sort, .sort select { width: 100%; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics div:last-child { grid-column: span 2; }
  .ad { padding: 14px; }
  .ad-head { grid-template-columns: auto minmax(0, 1fr); }
  .ad-head .pill { grid-column: 1 / -1; justify-self: start; }
  .thumb { width: 56px; height: 56px; }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .stage { min-height: 40px; }
  .lead-head time { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Tema düğmesi */
.theme-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 9px;
  border: 0; background: transparent; color: inherit; opacity: .72; transition: background-color .18s, opacity .18s;
}
.theme-btn:hover { opacity: 1; background: rgba(255, 255, 255, .07); }
.theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-moon { display: block; }

/* Açıklama balonları */
.tip {
  display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px;
  border-radius: 50%; color: var(--ink-2); cursor: help; position: relative;
}
.tip::before { content: ""; position: absolute; inset: -10px; }
.tip svg { width: 14px; height: 14px; }
.tip:hover, .tip:focus-visible { color: var(--accent); }
#tipbox {
  position: fixed; z-index: 60; max-width: 280px; padding: 9px 12px; border-radius: 9px;
  background: var(--top); color: var(--top-ink); font-size: .82rem; line-height: 1.45; font-weight: 400;
  text-transform: none; letter-spacing: 0; box-shadow: var(--shadow-lg); pointer-events: none;
}
.switch-wrap { display: inline-flex; align-items: center; gap: 2px; }
