:root {
  --bg: #0a0e14;
  --bg-2: #0f1520;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-str: rgba(255, 255, 255, 0.16);
  --text: #e8edf4;
  --muted: #8b96a8;
  --teal: #7fe0f0;
  --indigo: #5bc6dd;
  --accent-deep: #2b8aa0;
  --grad: linear-gradient(140deg, #7fe0f0, #2b8aa0);
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --accent-ink: #04161c;
  --topbar-bg: linear-gradient(180deg, rgba(10, 14, 20, 0.85), rgba(10, 14, 20, 0.4));
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* ── Tasarım sistemi token'ları (bkz. DESIGN.md) ── */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --radius-pill: 999px;
  --elev-1: 0 1px 2px rgba(0,0,0,0.3);
  --elev-2: 0 6px 18px -8px rgba(0,0,0,0.5);
  --focus-ring: 0 0 0 3px rgba(127, 224, 240, 0.55);   /* görünür klavye odağı */
  color-scheme: dark;
}

/* ---------- Açık (light) tema ---------- */
:root[data-theme="light"] {
  --bg: #eef2f6;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f4f7fb;
  --border: rgba(15, 23, 42, 0.10);
  --border-str: rgba(15, 23, 42, 0.18);
  --text: #0f1720;
  --muted: #5b6673;
  --teal: #0e8ba8;
  --indigo: #0e7490;
  --accent-deep: #0b6b82;
  --grad: linear-gradient(140deg, #1aa3c4, #0b6b82);   /* koyulaştırılmış — beyaz üstünde okunur */
  --accent-ink: #ffffff;                                /* degrade buton metni beyaz */
  --shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.22);
  --topbar-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  --elev-1: 0 1px 2px rgba(15,23,42,0.08);
  --elev-2: 0 6px 18px -8px rgba(15,23,42,0.18);
  --focus-ring: 0 0 0 3px rgba(14, 116, 144, 0.4);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---------- Arka plan ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(91, 198, 221, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 198, 221, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -1; top: -260px; left: 50%;
  width: 900px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(circle at 40% 30%, rgba(127, 224, 240, 0.16), transparent 60%),
              radial-gradient(circle at 70% 40%, rgba(43, 138, 160, 0.20), transparent 60%);
  filter: blur(20px); pointer-events: none;
}

/* ---------- Üst bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 20px;
  padding: 16px clamp(18px, 4vw, 48px);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; display: block; box-shadow: 0 4px 14px -4px rgba(43, 138, 160, 0.6); }
.brand-name { font-family: "Sora", var(--font); font-weight: 800; letter-spacing: 0.5px; font-size: 19px; }
.brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topnav { display: flex; gap: 26px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color 0.2s; }
.topnav a:hover { color: var(--text); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 999px; cursor: pointer; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--border-str);
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--indigo); border-color: var(--indigo); }
.theme-toggle svg { display: block; }
/* Giriş sayfasında sağ üstte sabit */
.theme-toggle.floating { position: fixed; top: 18px; right: 18px; z-index: 50; }

/* Dil anahtarı (TR/EN) — theme-toggle ile aynı görünüm, metin etiketli */
.lang-toggle {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; flex: none;
  border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 12.5px;
  background: var(--panel-2); border: 1px solid var(--border-str);
  transition: color 0.2s, border-color 0.2s;
}
.lang-toggle:hover { color: var(--indigo); border-color: var(--indigo); }
.lang-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.lang-toggle.floating { position: fixed; top: 18px; right: 60px; z-index: 50; }
.pill {
  font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border-str); color: var(--muted); white-space: nowrap;
}
.pill-safe { color: var(--teal); border-color: rgba(94, 234, 212, 0.3); background: rgba(94, 234, 212, 0.06); }

/* ---------- Genel ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }
section { padding: clamp(48px, 8vw, 96px) 0; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 750; letter-spacing: -0.5px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

.btn {
  font-family: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer;
  border-radius: 12px; padding: 12px 20px; border: 1px solid transparent;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s; color: var(--text);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(94, 234, 212, 0.5); }
.btn-primary:hover { box-shadow: 0 14px 36px -8px rgba(129, 140, 248, 0.55); }
.btn-ghost { background: var(--panel-2); border-color: var(--border-str); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; color: var(--teal); font: inherit; font-weight: 650; cursor: pointer; text-decoration: underline; }

/* ---------- Hero intro ---------- */
.hero-intro { text-align: center; padding: clamp(40px, 6vw, 76px) 0 20px; max-width: 820px; margin: 0 auto; }
.hero-intro h1 { max-width: 16ch; margin: 18px auto 0; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--indigo);
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(91, 198, 221, 0.28);
  background: rgba(91, 198, 221, 0.06);
}
.lead { color: var(--muted); font-size: 16.5px; margin: 20px 0 0; }
.lead.center { max-width: 62ch; margin-left: auto; margin-right: auto; }
.lead b { color: var(--text); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* ---------- Yapılandırma paneli (uygulama aşamaları) ---------- */
.config-section { padding: 0 0 clamp(40px, 7vw, 80px); }
.config-panel {
  max-width: 760px; margin: 0 auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow);
}
.field-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.field-label.mt { margin-top: 22px; }
.field-label.inline { margin: 0; }
.req { color: var(--indigo); }

/* Dropzone */
.dropzone {
  border: 1.5px dashed var(--border-str); border-radius: 14px; padding: 26px 20px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s; text-align: center;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--indigo); background: rgba(91, 198, 221, 0.05); }
.dz-icon { font-size: 30px; margin-bottom: 8px; }
.dz-hint { font-size: 14.5px; }
.dz-sub { font-size: 12.5px; margin-top: 6px; letter-spacing: 0.3px; }
.dz-file { display: flex; align-items: center; gap: 12px; text-align: left; }
.file-ico { font-size: 22px; }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-size: 14px; color: var(--indigo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 12px; }

/* Segmented kontroller */
.seg-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 14px; margin-top: 16px; }
.seg-label { font-size: 12px; font-weight: 700; letter-spacing: 0.8px; color: var(--muted); text-transform: uppercase; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--text-dim, var(--muted));
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 15px;
  transition: border-color 0.15s, background 0.15s, color 0.15s; position: relative;
}
.seg button:hover:not(:disabled) { color: var(--text); border-color: var(--accent-deep); }
.seg button.active {
  background: var(--grad); color: var(--accent-ink, #04161c); border-color: transparent; font-weight: 700;
}
.seg button.seg-soon { opacity: 0.5; cursor: not-allowed; }
.soon-tag { font-size: 9px; margin-left: 6px; padding: 2px 5px; border-radius: 5px; background: var(--border); color: var(--muted); vertical-align: middle; letter-spacing: 0.3px; }

/* Satın alınan plan (analiz sayfasında salt-okunur) */
.plan-fixed { display: flex; align-items: center; gap: 14px; }
.plan-pill { font-family: "Sora", var(--font); font-weight: 800; font-size: 14px; color: var(--accent-ink); background: var(--grad); padding: 7px 18px; border-radius: 999px; letter-spacing: 0.3px; }
.plan-change { font-size: 12.5px; color: var(--muted); text-decoration: none; font-weight: 600; }
.plan-change:hover { color: var(--indigo); }

/* İşlerim (kuyruk + geçmiş) */
.jobs-panel { max-width: 760px; margin: 16px auto 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.jobs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.jobs-head h3 { font-family: "Sora", var(--font); font-size: 16px; font-weight: 700; }
.jobs-stat { font-size: 12.5px; }
.jobs-refresh { margin-left: auto; padding: 7px 14px; font-size: 12.5px; }
.jobs-list { display: grid; gap: 8px; }
.job-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.job-status { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.job-status.s-queued { color: var(--amber); background: rgba(251, 191, 36, 0.12); }
.job-status.s-running { color: var(--indigo); background: rgba(91, 198, 221, 0.14); }
.job-status.s-done { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.job-status.s-error { color: var(--red); background: rgba(248, 113, 113, 0.12); }
.job-status.s-canceled { color: var(--muted); background: var(--border); }
.job-name { font-weight: 600; font-size: 13.5px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.job-btn { font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--indigo); background: var(--panel); border: 1px solid var(--border-str); border-radius: 8px; padding: 5px 12px; }
.job-btn:hover { border-color: var(--indigo); }
.job-btn.danger { color: var(--red); }

/* Alan gridi */
.cfg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; color: var(--muted); text-transform: uppercase; }
.field input, .field select {
  font: inherit; font-size: 13.5px; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--indigo); }
.field input::placeholder { color: var(--muted); }

/* Klinik veriler */
.clinical-head { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; cursor: pointer; padding: 22px 0 0; text-align: left; }
.clinical-head .chev { color: var(--muted); font-size: 16px; transition: transform 0.2s; display: inline-block; }
.clinical-head .chev.open { transform: rotate(90deg); }
.optional { font-size: 11.5px; }
.clinical-body { margin-top: 14px; }
.clinical-grid { grid-template-columns: repeat(4, 1fr); }

/* Aksiyonlar */
.run-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.btn-run {
  font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
  background: var(--grad); color: var(--accent-ink, #04161c); border: none; border-radius: 12px;
  padding: 12px 24px; box-shadow: 0 10px 30px -10px rgba(43, 138, 160, 0.6);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-run .play { font-size: 12px; }
.btn-run:hover { box-shadow: 0 14px 36px -8px rgba(91, 198, 221, 0.6); }
.btn-run:active { transform: translateY(1px); }

/* ---------- İşleme ---------- */
.processing { text-align: center; display: grid; place-items: center; gap: 16px; }
.spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--indigo);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.proc-text { font-size: 18px; font-weight: 650; }
.proc-bar { width: min(420px, 80vw); height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.proc-bar-fill { height: 100%; width: 0%; background: var(--grad); border-radius: 999px; transition: width 0.3s ease; }
.proc-sub { color: var(--muted); font-size: 13.5px; }

/* ---------- Sonuçlar ---------- */
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.results-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.results-actions .btn { padding: 10px 16px; font-size: 13.5px; }

/* --- Genel bakış: gösterge + özet --- */
.overview { display: grid; grid-template-columns: 340px 1fr; gap: 18px; margin-bottom: 22px; }
.gauge-card, .summary-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.gauge-card { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-wrap { width: 100%; max-width: 320px; }
.gauge-svg { width: 100%; height: auto; display: block; }
.gauge-value { font-size: 30px; font-weight: 850; fill: var(--text); letter-spacing: -1px; }
.gauge-tick { font-size: 9px; fill: var(--muted); }
.gauge-caption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.gauge-caption b { color: var(--amber); }
.summary-card h3 { font-size: 18px; margin-bottom: 4px; }
.summary-card .small { font-size: 13px; margin-bottom: 16px; }
.summary-bars { display: grid; gap: 12px; }
.sbar-row { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 12px; }
.sbar-lbl { font-size: 13px; color: var(--muted); }
.sbar-track { height: 10px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.sbar-fill { display: block; height: 100%; border-radius: 999px; }
.sbar-num { font-weight: 750; font-size: 15px; text-align: right; }

/* --- Yüksek riskler vurgusu --- */
.highlight { background: rgba(239, 68, 68, 0.05); border: 1px solid rgba(239, 68, 68, 0.22); border-radius: var(--radius); padding: 20px; margin-bottom: 26px; }
.hl-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.hl-badge { font-weight: 750; font-size: 14px; color: var(--red); background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); padding: 6px 12px; border-radius: 999px; }
.hl-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.hl-chip { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.hl-ico { font-size: 18px; }
.hl-name { font-weight: 650; font-size: 13.5px; }
.hl-meta { color: var(--muted); font-size: 12px; }

/* --- Kategoriler / hastalık satırları --- */
.cat-block { margin-bottom: 22px; }
.cat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(90deg, rgba(129,140,248,0.14), rgba(94,234,212,0.05)); border: 1px solid var(--border); border-radius: 12px 12px 0 0; }
.cat-ico { font-size: 20px; }
.cat-head h3 { font-size: 16.5px; font-weight: 750; }
.cat-count { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.cat-rows { border: 1px solid var(--border); border-top: none; border-radius: 0 0 12px 12px; overflow: hidden; }
.drow { display: grid; grid-template-columns: 1.6fr 0.9fr 0.7fr 1.3fr; align-items: center; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.drow:last-child { border-bottom: none; }
.drow:hover { background: var(--panel); }
.drow-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drow-code { font-size: 11.5px; color: var(--muted); font-weight: 700; min-width: 26px; }
.drow-name { font-weight: 650; font-size: 14.5px; }
.drow-desc { color: var(--muted); font-size: 12px; margin-top: 1px; }
.drow-plus { color: var(--indigo); font-size: 11.5px; font-weight: 600; margin-top: 3px; }
.drow-pct { text-align: right; }
.drow-pctv { display: block; font-weight: 800; font-size: 17px; letter-spacing: -0.3px; }
.drow-band { font-size: 11.5px; font-weight: 650; }
.drow-kat { text-align: center; }
.kat-v { display: block; font-weight: 750; font-size: 15px; }
.kat-l { color: var(--muted); font-size: 10.5px; }

/* --- Risk barı --- */
.riskbar { position: relative; padding-top: 10px; }
.rb-track { display: flex; height: 9px; border-radius: 999px; overflow: hidden; gap: 2px; }
.rb-seg { display: block; height: 100%; }
.rb-marker { position: absolute; top: -3px; transform: translateX(-50%); font-size: 12px; color: var(--text); line-height: 1; text-shadow: 0 0 3px #000; }

.disclaimer {
  margin-top: 30px; font-size: 13px; color: var(--muted); line-height: 1.6;
  background: rgba(251, 191, 36, 0.05); border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px; padding: 16px 18px;
}
.disclaimer b { color: var(--amber); }

/* ---------- Nasıl çalışır ---------- */
.how h2, .privacy h2 { margin-bottom: 26px; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.how-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.how-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }
.how-card h4 { font-size: 16px; margin-bottom: 5px; }
.how-card p { color: var(--muted); font-size: 13.5px; }

/* ---------- Gizlilik ---------- */
.privacy-inner { display: flex; gap: 22px; align-items: center; background: linear-gradient(120deg, rgba(94, 234, 212, 0.06), rgba(129, 140, 248, 0.06)); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.privacy-ico { font-size: 44px; }
.privacy-inner p { color: var(--muted); margin-top: 8px; max-width: 70ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 24px clamp(18px, 4vw, 48px); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.footer b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Genetik Köken ---------- */
.ancestry { background: linear-gradient(180deg, rgba(168,85,247,0.06), var(--panel)); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 8px 0 4px; }
.ancestry-head { margin-bottom: 18px; }
.ancestry-head h3 { font-size: 19px; }
.ancestry-grid { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: center; }
.donut-wrap { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.donut-svg { width: 200px; height: 200px; display: block; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-center span { font-size: 17px; font-weight: 800; display: block; }
.donut-center small { color: var(--muted); font-size: 11px; }
.region-list { display: grid; gap: 10px; }
.reg-row { display: grid; grid-template-columns: 12px 150px 1fr 60px; align-items: center; gap: 12px; }
.reg-dot { width: 11px; height: 11px; border-radius: 50%; }
.reg-name { font-size: 13.5px; font-weight: 600; }
.reg-track { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.reg-fill { display: block; height: 100%; border-radius: 999px; }
.reg-pct { text-align: right; font-weight: 700; font-size: 13.5px; }
.subpop { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.sp-col .sp-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.sp-col .sp-head b { color: var(--muted); font-weight: 600; margin-left: auto; }
.sp-col ul { list-style: none; display: grid; gap: 5px; }
.sp-col li { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.sp-col li b { color: var(--text); font-weight: 650; }

/* ---------- Footer düzeltmesi (mükerrer değil) ---------- */

/* ---------- Giriş / Kayıt (split-screen) ---------- */
.auth-body { font-family: "Manrope", var(--font); }
.auth-body .bg-grid, .auth-body .bg-glow { display: none; }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; }

/* Sol tanıtım paneli — her zaman koyu */
.auth-promo {
  position: relative; overflow: hidden; padding: clamp(28px, 4.5vw, 60px);
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(900px 640px at 18% 8%, #113049 0%, #060b13 62%);
  color: #fff;
}
.auth-home { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 14px; font-weight: 600; }
.auth-home:hover { color: #fff; }
.auth-promo-inner { position: relative; z-index: 1; margin: auto 0; }
.auth-promo .brand { text-decoration: none; }
.auth-promo .brand-logo { width: 40px; height: 40px; border-radius: 10px; }
.auth-promo .brand-name { color: #fff; font-family: "Sora", var(--font); font-weight: 800; font-size: 22px; letter-spacing: 0.5px; }
.auth-promo .brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-promo-title { font-family: "Sora", var(--font); font-size: clamp(28px, 3.8vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -1px; margin: 32px 0 0; }
.auth-promo-sub { color: rgba(255, 255, 255, 0.66); font-size: 16px; line-height: 1.6; margin-top: 18px; max-width: 42ch; }
.auth-promo-deco {
  position: absolute; right: -90px; top: 50%; transform: translateY(-50%);
  width: 460px; height: 460px;
  background-image: radial-gradient(rgba(91, 198, 221, 0.55) 1.4px, transparent 1.7px);
  background-size: 18px 18px; opacity: 0.5;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at center, #000 0%, transparent 70%);
}

/* Sağ form paneli */
.auth-panel { display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); background: var(--bg); }
.auth-card {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow);
}
.auth-head { margin-bottom: 22px; }
.auth-head h2 { font-family: "Sora", var(--font); font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.auth-head .muted { font-size: 14px; margin-top: 6px; }
.auth-tabs { display: flex; gap: 6px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 5px; margin-bottom: 20px; }
.auth-tab { flex: 1; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; color: var(--muted); background: none; border: none; border-radius: 8px; padding: 10px; transition: background 0.15s, color 0.15s; }
.auth-tab.active { background: var(--grad); color: var(--accent-ink, #04161c); }
.auth-msg { font-size: 13px; padding: 10px 13px; border-radius: 10px; margin-bottom: 14px; }
.auth-msg.err { color: var(--red); background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.28); }
.auth-form { display: grid; gap: 14px; }
.afield { display: flex; flex-direction: column; gap: 6px; }
.afield label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; color: var(--muted); text-transform: uppercase; }
.afield input, .afield select {
  font: inherit; font-size: 14.5px; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; width: 100%;
}
.afield input:focus, .afield select:focus { outline: none; border-color: var(--indigo); }
.afield input::placeholder { color: var(--muted); }
.afield-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-block-a { width: 100%; justify-content: center; margin-top: 6px; }
.auth-back { display: block; text-align: center; color: var(--muted); font-size: 13px; text-decoration: none; margin-top: 20px; font-weight: 600; }
.auth-back:hover { color: var(--indigo); }
.auth-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 16px; line-height: 1.5; }

@media (max-width: 820px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-promo { min-height: 240px; }
  .auth-promo-deco { display: none; }
}

/* ---------- Ürün seçimi / fiyatlandırma ---------- */
.pricing { max-width: 940px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) clamp(18px, 4vw, 48px) 60px; }
.pricing-head { text-align: center; margin-bottom: 40px; }
.pricing-head h1 { font-family: "Sora", var(--font); font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.8px; margin: 12px 0 10px; }
.pricing-head .muted { font-size: 15px; max-width: 60ch; margin: 0 auto; }
.pay-msg { font-size: 13.5px; padding: 12px 16px; border-radius: 12px; margin: 18px auto 0; max-width: 520px; }
.pay-msg.err { color: var(--red); background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.28); }
.pay-msg.ok { color: var(--green); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.28); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
}
.plan-card.featured { border-color: var(--indigo); box-shadow: 0 24px 60px -24px rgba(43, 138, 160, 0.5); }
.plan-badge { position: absolute; top: -12px; right: 24px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--accent-ink); background: var(--grad); padding: 6px 13px; border-radius: 999px; }
.plan-top { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 20px; }
.plan-top h2 { font-family: "Sora", var(--font); font-size: 24px; font-weight: 800; }
.plan-price { display: flex; align-items: flex-start; gap: 2px; margin: 12px 0 4px; }
.plan-price .cur { font-size: 22px; font-weight: 700; color: var(--muted); margin-top: 8px; }
.plan-price .amt { font-family: "Sora", var(--font); font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-tag { color: var(--muted); font-size: 13.5px; }
.plan-feats { list-style: none; display: grid; gap: 12px; margin-bottom: 24px; flex: 1; }
.plan-feats li { position: relative; padding-left: 26px; color: var(--text); font-size: 14.5px; line-height: 1.5; }
.plan-feats li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 9px; border-left: 2px solid var(--indigo); border-bottom: 2px solid var(--indigo); transform: rotate(-45deg); }
.plan-feats li b { color: var(--text); font-weight: 700; }
.plan-buy { font-size: 15px; }
.pricing-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 30px; max-width: 60ch; margin-left: auto; margin-right: auto; }

@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Header kullanıcı çipi ---------- */
.user-box { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.user-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: var(--accent-ink, #04161c); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.user-name { font-weight: 600; }
.logout-btn { font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); background: none; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.logout-btn:hover { color: var(--red); border-color: rgba(248, 113, 113, 0.4); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .overview { grid-template-columns: 1fr; }
  .ancestry-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .topnav { display: none; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-inner { flex-direction: column; text-align: center; }
  .drow { grid-template-columns: 1.4fr 0.8fr 0.6fr; }
  .drow-bar { grid-column: 1 / -1; }
  .clinical-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pill-safe { display: none; }
  .how-grid { grid-template-columns: 1fr; }
  .cfg-grid { grid-template-columns: 1fr 1fr; }
  .seg-row { grid-template-columns: 1fr; gap: 8px; }
  .drow { grid-template-columns: 1fr auto; row-gap: 8px; }
  .drow-kat { text-align: right; }
  .sbar-row { grid-template-columns: 90px 1fr 24px; }
  .reg-row { grid-template-columns: 12px 1fr 50px; }
  .reg-track { display: none; }
}

/* =========================================================
 * HESABIM (kullanıcı paneli — hesap.html)
 * =======================================================*/
.topnav a.active { color: var(--text); font-weight: 700; }

.account { max-width: 1040px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 40px) 60px; }

/* Profil başlığı */
.acct-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow);
}
.acct-profile { display: flex; align-items: center; gap: 18px; min-width: 0; }
.acct-avatar {
  width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--grad);
  color: var(--accent-ink, #04161c); display: grid; place-items: center;
  font-family: "Sora", var(--font); font-weight: 800; font-size: 26px;
}
.acct-id { min-width: 0; }
.acct-id h1 { font-family: "Sora", var(--font); font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -0.5px; margin: 0 0 2px; }
.acct-id .muted { font-size: 14px; margin: 0 0 10px; word-break: break-all; }
.acct-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.acct-badge {
  font-size: 12px; font-weight: 600; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px;
}
.acct-badge.plan { color: var(--accent-ink); background: var(--grad); border: none; }
.acct-badge.muted-badge { color: var(--muted); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acct-actions .btn-run, .acct-actions .btn { text-decoration: none; }

/* İstatistik kartları */
.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 4px;
}
.stat-n { font-family: "Sora", var(--font); font-size: 30px; font-weight: 800; line-height: 1; }
.stat-l { font-size: 12.5px; color: var(--muted); }

/* Bölüm başlığı */
.acct-section { margin-top: 34px; }
.acct-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.acct-section-head h2 { font-family: "Sora", var(--font); font-size: 20px; font-weight: 800; letter-spacing: -0.4px; margin: 0; }
.acct-loading { color: var(--muted); font-size: 14px; padding: 20px 0; }
.acct-filter { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.acct-filter input, .acct-filter select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-str);
  background: var(--panel-2); color: var(--text); font: inherit; font-size: 13.5px; }
.acct-filter input { flex: 1; min-width: 180px; }
.acct-empty.mini { padding: 30px; border-style: solid; }

/* Güvenlik: oturumlar + yedek kodlar */
.sessions-list { margin-top: 12px; display: grid; gap: 8px; width: 100%; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.sess-main { min-width: 0; }
.sess-ua { font-size: 13.5px; font-weight: 600; }
.sess-cur { font-size: 11px; color: var(--green); font-weight: 700; }
.recovery-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.recovery-codes span { font-size: 13px; letter-spacing: 0.5px; }
.mfa-secret { margin: 10px 0; font-size: 14px; word-break: break-all; }
.auth-forgot { display: inline-block; margin-top: 10px; font-size: 13px; background: none; border: none; cursor: pointer; }

/* Boş durum */
.acct-empty {
  text-align: center; padding: 54px 20px; background: var(--panel);
  border: 1px dashed var(--border-str); border-radius: var(--radius);
}
.acct-empty .empty-icon { color: var(--muted); opacity: 0.7; margin-bottom: 6px; }
.acct-empty h3 { font-family: "Sora", var(--font); font-size: 18px; font-weight: 700; margin: 6px 0 4px; }
.acct-empty p { margin: 0 auto 18px; max-width: 40ch; }
.acct-empty .btn-run { text-decoration: none; }

/* Analiz kartları */
.analysis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.analysis-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.analysis-card:hover { border-color: var(--border-str); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-title { min-width: 0; }
.card-title h3 { font-family: "Sora", var(--font); font-size: 16px; font-weight: 700; margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-date { font-size: 12px; color: var(--muted); }
.card-status { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex: none; }
.card-status.s-queued  { color: var(--amber);  background: rgba(251, 191, 36, 0.12); }
.card-status.s-running { color: var(--indigo); background: rgba(91, 198, 221, 0.14); }
.card-status.s-done    { color: var(--green);  background: rgba(52, 211, 153, 0.12); }
.card-status.s-error   { color: var(--red);    background: rgba(248, 113, 113, 0.12); }
.card-status.s-canceled{ color: var(--muted);  background: var(--panel-2); }
/* Açık temada durum rozetleri okunur kalsın (parlak tokenlar açık zeminde kontrast kaybeder) */
:root[data-theme="light"] .card-status.s-done,
:root[data-theme="light"] .job-status.s-done    { color: #15803d; background: rgba(34, 197, 94, 0.14); }
:root[data-theme="light"] .card-status.s-queued,
:root[data-theme="light"] .job-status.s-queued  { color: #b45309; background: rgba(245, 158, 11, 0.16); }
:root[data-theme="light"] .card-status.s-running,
:root[data-theme="light"] .job-status.s-running { color: #0e7490; background: rgba(14, 165, 233, 0.14); }
:root[data-theme="light"] .card-status.s-error,
:root[data-theme="light"] .job-status.s-error   { color: #b91c1c; background: rgba(239, 68, 68, 0.13); }
.card-plan { margin-top: -4px; }
.plan-tag-mini { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; letter-spacing: 0.3px; }

.card-body { flex: 1; }
.card-summary { display: flex; align-items: center; gap: 16px; }
.cs-score { display: flex; flex-direction: column; align-items: center; padding: 6px 14px 6px 4px; border-right: 1px solid var(--border); }
.cs-num { font-family: "Sora", var(--font); font-size: 30px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cs-lbl { font-size: 11px; color: var(--muted); margin-top: 3px; }
.cs-meta { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cs-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.cs-row b { font-weight: 700; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mini-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 3px 9px; }
.mini-chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.card-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 6px 0; }
.card-note.err { color: var(--red); align-items: flex-start; }
/* Hata kartı: katlanabilir teknik ayrıntı — taşmasın, kaydırılabilir kalsın */
.card-err-detail { margin-top: 6px; font-size: 12px; }
.card-err-detail summary { cursor: pointer; color: var(--muted); user-select: none; }
.card-err-detail pre {
  margin: 6px 0 0; max-height: 130px; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
  font-size: 11px; line-height: 1.45; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px;
}
.mini-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-str); border-top-color: var(--indigo); animation: spin 0.8s linear infinite; flex: none; }
.mini-spinner.queued { border-top-color: var(--amber); animation-duration: 1.4s; }
@keyframes spin { to { transform: rotate(360deg); } }

.card-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.card-foot .btn-run, .card-foot .btn { text-decoration: none; font-size: 13px; padding: 9px 14px; justify-content: center; }
.card-foot .card-open { flex: 1 1 100%; }                                   /* "Raporu aç" tam satır */
.card-foot .card-pdf, .card-foot .card-dl, .card-foot .card-bundle { flex: 1 1 0; min-width: 72px; }  /* indir butonları eşit paylaş */

/* Gizlilik / KVKK-GDPR bölümü */
.privacy-section { margin-top: 34px; }
.privacy-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.privacy-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.privacy-row + .privacy-row { border-top: 1px solid var(--border); }
.privacy-row h3 { font-family: "Sora", var(--font); font-size: 15px; font-weight: 700; margin: 0 0 3px; }
.privacy-row p { margin: 0; max-width: 62ch; }
.privacy-row .btn, .privacy-row .btn-danger { flex: none; white-space: nowrap; }
.danger-row h3 { color: var(--red); }

.btn-danger {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  background: rgba(248, 113, 113, 0.12); color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.4); border-radius: 12px; padding: 10px 18px;
}
.btn-danger:hover { background: rgba(248, 113, 113, 0.2); }
:root[data-theme="light"] .btn-danger { color: #b91c1c; border-color: rgba(185, 28, 28, 0.35); background: rgba(239, 68, 68, 0.08); }

/* Modal (hesap silme onayı) */
.modal-overlay { position: fixed; inset: 0; background: rgba(3, 6, 12, 0.6); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px; z-index: 100; }
.modal { background: var(--bg-2); border: 1px solid var(--border-str); border-radius: 18px;
  padding: 26px; max-width: 420px; width: 100%; box-shadow: var(--shadow); }
.modal h3 { font-family: "Sora", var(--font); font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.modal-input { width: 100%; margin-top: 14px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--border-str); background: var(--panel-2); color: var(--text); font: inherit; }
.modal-input:focus { outline: none; border-color: var(--red); }
.modal-msg { margin-top: 10px; font-size: 13px; color: var(--red); }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; }

@media (max-width: 560px) {
  .privacy-row { flex-direction: column; align-items: stretch; }
  .privacy-row .btn, .privacy-row .btn-danger { width: 100%; }
}

/* =========================================================
 * BİLDİRİM ZİLİ + DOĞRULAMA BANNER + ANALİZ AYRINTILARI
 * =======================================================*/
.notif { position: relative; display: flex; align-items: center; }
.notif-btn { position: relative; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.notif-btn:hover { background: var(--panel); border-color: var(--border-str); }
.notif-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center; line-height: 1; }
.notif-panel { position: absolute; top: 46px; right: 0; width: min(340px, 86vw); max-height: 420px; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--border-str); border-radius: 14px; box-shadow: var(--shadow);
  z-index: 90; padding: 6px; }
.notif-item { display: block; text-decoration: none; color: var(--text); padding: 11px 12px; border-radius: 10px; }
.notif-item + .notif-item { border-top: 1px solid var(--border); }
.notif-item:hover { background: var(--panel-2); }
.notif-item.unread { background: rgba(91, 198, 221, 0.08); }
.notif-title { font-weight: 700; font-size: 13.5px; }
.notif-body { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--muted); margin-top: 4px; }
.notif-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }

.verify-banner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: rgba(251, 191, 36, 0.12); border-bottom: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--text); font-size: 13.5px; padding: 10px 16px; }
:root[data-theme="light"] .verify-banner { background: rgba(245, 158, 11, 0.14); color: #7c4a03; }
.verify-banner .btn { padding: 7px 14px; font-size: 13px; }
.warn-badge { color: var(--amber); background: rgba(251, 191, 36, 0.12); }
:root[data-theme="light"] .warn-badge { color: #b45309; background: rgba(245, 158, 11, 0.15); }

.card-details { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.card-details summary { cursor: pointer; font-size: 12.5px; color: var(--muted); font-weight: 600; list-style: none; }
.card-details summary::-webkit-details-marker { display: none; }
.card-details summary::before { content: "▸ "; }
.card-details[open] summary::before { content: "▾ "; }
.cd-grid { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 8px; }
.cd-grid > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.cd-grid span { color: var(--muted); }
.cd-grid b { font-weight: 600; text-align: right; }
.cd-grid .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; }

/* =========================================================
 * YÖNETİM PORTALI (admin.html)
 * =======================================================*/
.admin-tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--accent-ink); background: var(--grad); padding: 3px 8px; border-radius: 6px; margin-left: 8px; }
.role-badge { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 40px) 60px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

.admin-gate { display: grid; place-items: center; min-height: 60vh; }
.gate-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.gate-card h1 { font-family: "Sora", var(--font); font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.gate-card .field { margin-top: 14px; }
.gate-card .field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.gate-card .field input { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border-str);
  background: var(--panel-2); color: var(--text); font: inherit; }
.gate-card .field input:focus { outline: none; border-color: var(--indigo); }
.gate-card .btn-run { margin-top: 20px; }
.gate-msg { margin-top: 12px; font-size: 13px; color: var(--red); }
.mfa-secret { margin: 12px 0 6px; font-size: 14px; }
.mfa-uri { word-break: break-all; margin-bottom: 6px; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.admin-tab { background: none; border: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px;
  padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--text); border-bottom-color: var(--indigo); }
.admin-search { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-search input, .admin-search select { padding: 9px 12px; border-radius: 9px; border: 1px solid var(--border-str);
  background: var(--panel-2); color: var(--text); font: inherit; }
.admin-search input { flex: 1; min-width: 180px; }

.admin-table { display: flex; flex-direction: column; }
.arow { display: grid; grid-template-columns: 1.4fr 1.4fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: var(--panel); }
.arow-audit { grid-template-columns: 160px 1.4fr 1.6fr; }
.acell { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acell b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.acell.actions { flex-direction: row; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn.xs, .btn-danger.xs { padding: 6px 10px; font-size: 12px; text-decoration: none; }
.tag-susp { color: var(--red); font-weight: 700; }
.jstat { font-weight: 700; }
.jstat.s-done { color: var(--green); } .jstat.s-error { color: var(--red); }
.jstat.s-running { color: var(--indigo); } .jstat.s-queued { color: var(--amber); }
.jerr { margin-top: 3px; word-break: break-word; }
.aempty { padding: 26px; text-align: center; color: var(--muted); }

@media (max-width: 720px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .arow, .arow-audit { grid-template-columns: 1fr; }
  .acell.actions { justify-content: flex-start; }
}

/* =========================================================
 * TASARIM SİSTEMİ — erişilebilirlik + paylaşılan bileşenler (DESIGN.md)
 * =======================================================*/

/* Görünür klavye odağı (WCAG 2.2 2.4.7 / 2.4.11). Yalnız klavye ile gezinende. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
/* Fare tıklamasında odak halkası gösterme (focus-visible destekli tarayıcılar) */
:where(a, button, input, select, textarea, summary):focus:not(:focus-visible) { outline: none; }

/* İçeriğe atla bağlantısı (klavye) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--bg-2);
  color: var(--text); padding: 10px 16px; border: 1px solid var(--border-str); border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* Yalnız ekran okuyucu için (görsel gizli) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Azaltılmış hareket (WCAG 2.3.3 / kullanıcı tercihi) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Minimum dokunma hedefi (WCAG 2.5.8) — ikon butonlar */
.icon-btn { min-width: 40px; min-height: 40px; display: inline-grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--border-str); }

/* ── Buton durumları (default/hover/focus/pressed/loading/disabled/success) ── */
.btn, .btn-run, .btn-danger { position: relative; }
.btn[disabled], .btn-run[disabled], .btn-danger[disabled],
.btn.is-disabled, .btn-run.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-run:active:not([disabled]), .btn:active:not([disabled]) { transform: translateY(1px); }
/* Loading: metni görünmez yap ama GENİŞLİK KORUNSUN (layout kaymaz), spinner göster */
.is-loading { color: transparent !important; pointer-events: none; }
.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px;
  border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent;
  color: var(--accent-ink); animation: spin 0.7s linear infinite; }
.btn.is-loading::after, .btn-ghost.is-loading::after { color: var(--text); }
.is-success { background: var(--green) !important; color: #04161c !important; }

/* ── Durum göstergesi: İKON + METİN (renk tek başına DEĞİL — WCAG 1.4.1) ── */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-pill); white-space: nowrap; }
.status .status-ico { width: 13px; height: 13px; flex: none; }
.status.s-queued  { color: var(--amber);  background: rgba(251,191,36,0.12); }
.status.s-running { color: var(--indigo); background: rgba(91,198,221,0.14); }
.status.s-done    { color: var(--green);  background: rgba(52,211,153,0.12); }
.status.s-error   { color: var(--red);    background: rgba(248,113,113,0.12); }
.status.s-canceled{ color: var(--muted);  background: var(--panel-2); }
.status.s-warn    { color: var(--amber);  background: rgba(251,191,36,0.12); }
:root[data-theme="light"] .status.s-done    { color: #15803d; }
:root[data-theme="light"] .status.s-queued, :root[data-theme="light"] .status.s-warn { color: #b45309; }
:root[data-theme="light"] .status.s-running { color: #0e7490; }
:root[data-theme="light"] .status.s-error   { color: #b91c1c; }

/* ── Alert / kalıcı banner (bilgi/uyarı/tehlike/başarı) ── */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--border-str); font-size: 13.5px; }
.alert .alert-ico { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.alert-info   { background: rgba(91,198,221,0.10); border-color: rgba(91,198,221,0.35); }
.alert-warn   { background: rgba(251,191,36,0.10); border-color: rgba(251,191,36,0.35); }
.alert-danger { background: rgba(248,113,113,0.10); border-color: rgba(248,113,113,0.35); }
.alert-success{ background: rgba(52,211,153,0.10); border-color: rgba(52,211,153,0.35); }
.alert b { font-weight: 700; }

/* ── Skeleton yükleme yer tutucu ── */
.skeleton { background: linear-gradient(90deg, var(--panel-2) 25%, var(--panel) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: skloading 1.2s ease-in-out infinite; border-radius: var(--radius-sm); }
@keyframes skloading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ── Stepper (adım-adım ilerleme) ── */
.stepper { display: flex; align-items: flex-start; gap: 0; list-style: none; margin: 0 0 var(--sp-5); padding: 0;
  overflow-x: auto; }
.stepper .step { flex: 1 1 0; min-width: 92px; display: flex; flex-direction: column; align-items: center;
  gap: 6px; position: relative; text-align: center; }
.stepper .step:not(:first-child)::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%;
  height: 2px; background: var(--border); }
.stepper .step.done:not(:first-child)::before, .stepper .step.active:not(:first-child)::before { background: var(--accent-deep); }
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--panel-2); border: 2px solid var(--border-str); color: var(--muted); font-weight: 800; font-size: 13px; }
.step.active .step-dot { background: var(--grad); border-color: transparent; color: var(--accent-ink); box-shadow: var(--focus-ring); }
.step.done .step-dot { background: var(--accent-deep); border-color: transparent; color: #fff; }
.step-label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.step.active .step-label, .step.done .step-label { color: var(--text); }
@media (max-width: 640px) {
  .stepper { gap: 2px; }
  .stepper .step { min-width: 40px; }           /* 8 adım dar ekrana sığsın (taşma/klip yok) */
  .stepper .step .step-label { display: none; }
  .stepper .step.active .step-label { display: block; font-size: 11px; }
}
/* Yatay kaydırma çubuğunu gizle ama kaydırma çalışsın (aktif adım JS ile görünüre alınır) */
.stepper { scrollbar-width: none; -ms-overflow-style: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper .step.done, .stepper .step[aria-current] { cursor: default; }
.stepper .step.done { cursor: pointer; }

/* =========================================================
 * ANALİZ SİHİRBAZI (stepper adımları) — analiz.html
 * =======================================================*/
#wizard { max-width: 860px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px) 60px; }
.hero-intro.compact { text-align: center; margin-bottom: var(--sp-4); }
.hero-intro.compact h1 { font-family: "Sora", var(--font); font-size: clamp(22px, 3.4vw, 32px); font-weight: 800; letter-spacing: -0.6px; margin: 6px 0; }
.ws-title { font-family: "Sora", var(--font); font-size: 18px; font-weight: 700; margin: 0 0 var(--sp-4); }
.ws-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow); }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-5); }
.wizard-nav .btn-run { min-width: 180px; justify-content: center; }

.chosen-analysis { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); }
.ca-name { font-family: "Sora", var(--font); font-size: 18px; font-weight: 800; }
.ca-feats { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.ca-feats li { position: relative; padding-left: 26px; font-size: 14px; }
.ca-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

/* Dropzone (yükleme adımı) */
.dropzone { border: 2px dashed var(--border-str); border-radius: var(--radius); padding: var(--sp-6);
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.dragover { border-color: var(--indigo); background: var(--panel-2); }
.dropzone.has-file { display: none; }
.dz-icon { color: var(--indigo); margin-bottom: var(--sp-2); }
.dz-hint { font-size: 15px; } .dz-sub { margin-top: 4px; }

.upload-list { margin-top: var(--sp-4); }
.upload-file { display: flex; align-items: center; gap: var(--sp-3); background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4); }
.upload-file[data-state="invalid"], .upload-file[data-state="failed"] { border-color: rgba(248,113,113,0.4); }
.upload-file[data-state="valid"] { border-color: rgba(52,211,153,0.35); }
.uf-main { flex: 1; min-width: 0; }
.uf-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uf-problem { color: var(--red); font-size: 12.5px; margin-top: 3px; }
.uf-change { flex: none; }
.uf-bar { flex-basis: 100%; height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.uf-bar span { display: block; height: 100%; background: var(--grad); transition: width .2s; }

/* Yapılandırma alanları */
.field-hint { font-size: 12.5px; color: var(--muted); margin-bottom: var(--sp-3); }
.req-mark { color: var(--red); font-weight: 800; }
.field-help { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: block; }
.advanced { margin-top: var(--sp-4); border-top: 1px solid var(--border); padding-top: var(--sp-3); }
.advanced summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.cfg-grid.mt { margin-top: var(--sp-3); }

/* Doğrulama listesi */
.validate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.validate-item { display: flex; align-items: flex-start; gap: var(--sp-3); }
.vi-label { font-weight: 600; font-size: 14px; }
.vi-detail { margin-top: 2px; }

/* Fiyat tablosu */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 10px 4px; font-size: 14px; border-bottom: 1px solid var(--border); }
.price-table td { text-align: right; font-variant-numeric: tabular-nums; }
.price-table th[scope="row"] { font-weight: 500; color: var(--muted); }
.price-total th, .price-total td { font-weight: 800; font-size: 16px; border-bottom: none; color: var(--text); }
.price-meta { margin-top: var(--sp-4); }
.price-terms { list-style: none; padding: 0; margin: var(--sp-3) 0 0; display: grid; gap: 4px; }
.price-terms li::before { content: "•  "; color: var(--muted); }

/* İnceleme (özet) */
.review-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.rv-row { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.rv-row:last-child { border-bottom: none; }
.rv-k { flex: none; }
.rv-v { text-align: right; font-weight: 600; word-break: break-word; }
.review-note { margin-top: var(--sp-4); }

/* Takip: durum + zaman çizelgesi */
.track-card .track-state { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 var(--sp-4) 30px; color: var(--muted); font-size: 14px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--border); }
.tl-dot { position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--panel-2); border: 2px solid var(--border-str); }
.timeline li.done { color: var(--text); }
.timeline li.done .tl-dot { background: var(--green); border-color: transparent; }
.timeline li.done:not(:last-child)::before { background: var(--green); }
.timeline li.active { color: var(--text); font-weight: 700; }
.timeline li.active .tl-dot { background: var(--indigo); border-color: transparent; box-shadow: var(--focus-ring); }
.track-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; }
.err-tech { margin: var(--sp-2) 0; } .err-tech summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.err-tech pre { white-space: pre-wrap; font-size: 11.5px; background: var(--panel-2); padding: 8px; border-radius: 8px; margin-top: 6px; }
.err-actions { display: flex; gap: var(--sp-3); align-items: center; margin-top: var(--sp-2); }

@media (max-width: 560px) {
  .chosen-analysis { flex-direction: column; }
  .wizard-nav .btn-run { min-width: 0; flex: 1; }
}

@media (max-width: 720px) {
  .acct-head { flex-direction: column; align-items: stretch; }
  .acct-actions { justify-content: stretch; }
  .acct-actions .btn-run, .acct-actions .btn { flex: 1; justify-content: center; text-align: center; }
  .acct-stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-n { font-size: 24px; }
  .analysis-grid { grid-template-columns: 1fr; }
}

/* ── Sözleşme / consent kutuları (Doc 4) ─────────────────────────────────── */
.consent-group { border: 0; margin: 14px 0 4px; padding: 0; display: grid; gap: 10px; }
.consent-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  font-size: 13px; line-height: 1.45; color: var(--text, #1a2332); cursor: pointer; }
.consent-item input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--indigo); cursor: pointer; }
.consent-item a { color: var(--indigo); text-decoration: underline; }
.consent-item .req { color: #b42318; font-weight: 700; }
.consent-item .muted { color: var(--muted, #667085); }

/* ── Sözleşme güncelleme / yeniden-kabul afişi ───────────────────────────── */
.reaccept-banner { display: none; margin: 0 0 16px; padding: 14px 16px; border-radius: 12px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; font-size: 14px; }
.reaccept-banner.show { display: block; }
.reaccept-banner .btn-run { margin-top: 10px; }

/* ── Gizlilik ve izinler paneli (hesap) ──────────────────────────────────── */
.consent-toggle-row { display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.consent-toggle-row:last-child { border-bottom: 0; }
.consent-toggle-row .ct-label { font-size: 13.5px; color: var(--text, #1a2332); max-width: 78%; }
.consent-toggle-row .ct-state { font-size: 12px; color: var(--muted, #667085); }
.accept-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.accept-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px;
  padding: 8px 12px; background: var(--panel-2); border-radius: 8px;
  color: var(--text, #1a2332); }
.accept-list li > span:first-child { color: var(--text, #1a2332); font-weight: 500; }
.accept-list .ac-cur { color: #12b76a; font-weight: 600; }

/* ── Yükleme yetki beyanı (analiz akışı) ─────────────────────────────────── */
.authority-box { margin: 12px 0; padding: 14px 16px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--border); }
.authority-box .ab-title { font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.authority-box .radio-list { display: grid; gap: 8px; margin: 8px 0; }
.authority-box .radio-list label { display: grid; grid-template-columns: auto 1fr; gap: 10px;
  align-items: center; font-size: 13.5px; cursor: pointer; }
.authority-box .radio-list input { accent-color: var(--indigo); width: 17px; height: 17px; }

/* ── Hukuki belge sayfası ────────────────────────────────────────────────── */
.legal-wrap { max-width: 860px; margin: 0 auto; padding: 40px 20px 80px; }
.legal-wrap h1 { font-family: var(--font-head, "Sora", sans-serif); font-size: 30px; margin: 0 0 6px; }
.legal-meta { color: var(--muted, #667085); font-size: 13px; margin-bottom: 24px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.legal-toc a { font-size: 12.5px; padding: 6px 11px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text, #1a2332); text-decoration: none; }
.legal-doc { padding: 22px 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.legal-doc h2 { font-size: 20px; margin: 0 0 4px; }
.legal-doc .doc-summary { color: var(--muted, #667085); font-size: 14px; margin: 0 0 12px; }
.legal-doc p, .legal-doc li { font-size: 14px; line-height: 1.6; color: var(--text, #1a2332); }
.legal-note { margin-top: 28px; padding: 14px 16px; border-radius: 12px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; font-size: 13px; }

/* ── Ürün sayfası bilgi şeridi (Doc 1) ───────────────────────────────────── */
.pricing-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 0; margin: 4px auto 26px; max-width: 720px; }
.pricing-facts li { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.pricing-facts li span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #667085); }
.pricing-facts li b { font-size: 13.5px; color: var(--text, #1a2332); }
@media (max-width: 640px) { .pricing-facts li { flex: 1 1 45%; } }

/* ── Sanitize aktivite günlüğü (analiz takip) ────────────────────────────── */
.activity-wrap { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.activity-wrap summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text, #1a2332); }
.activity-log { list-style: none; padding: 10px 0 0; margin: 0; display: grid; gap: 7px; }
.activity-log li { display: grid; grid-template-columns: 118px 1fr; gap: 10px; font-size: 12.5px; }
.activity-log .act-ts { color: var(--muted, #667085); font-variant-numeric: tabular-nums; }
.activity-log .act-msg { color: var(--text, #1a2332); }

/* ── Hastalık detay açılır-paneli (öneri + yaşa bağlı risk) ───────────────── */
.drow-wrap { border-bottom: 1px solid var(--border); }
.drow-wrap:last-child { border-bottom: none; }
.drow-wrap .drow { border-bottom: none; cursor: pointer; outline: none; }
.drow[role="button"]:focus-visible { box-shadow: inset 0 0 0 2px var(--indigo, #6366f1); border-radius: 8px; }
.drow-caret { display: inline-block; font-size: 11px; color: var(--muted); transition: transform 0.18s; margin-left: 4px; }
.drow.open .drow-caret { transform: rotate(180deg); }
.drow.open { background: var(--panel); }
.drow-detail { padding: 4px 16px 18px; background: var(--panel); }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dd-block h4 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.dd-block p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text); }
.age-chart { width: 100%; height: auto; margin-top: 10px; display: block; }
.age-legend { display: flex; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.age-legend .agl { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.age-legend .agl-swatch { width: 16px; height: 3px; border-radius: 2px; display: inline-block; flex: 0 0 auto; }
.age-legend .agl-swatch.dash { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px); }
.dd-disc { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.5;
  border-top: 1px dashed var(--border); padding-top: 10px; }
@media (max-width: 640px) { .dd-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ── Ödeme-onaylı rozeti (analiz step 1) ─────────────────────────────────── */
.pay-ok { display: inline-block; font-weight: 700; color: #027a48; background: #d1fadf;
  padding: 1px 9px; border-radius: 999px; font-size: 12px; }

/* ── İlk-açılış çerez/consent banner'ı (tema-uyumlu) ──────────────────────── */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  max-width: 760px; margin: 0 auto; display: flex; gap: 16px; align-items: center;
  background: var(--panel-2); border: 1px solid var(--border-str); border-radius: 14px;
  padding: 15px 18px; box-shadow: var(--shadow); font-size: 13px; color: var(--text);
  animation: cb-in .25s ease; }
@keyframes cb-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.consent-banner .cb-text { line-height: 1.5; }
.consent-banner a { color: var(--indigo); text-decoration: underline; }
.consent-banner .cb-actions { flex: 0 0 auto; display: flex; gap: 8px; }
.consent-banner .cb-accept { background: var(--grad); color: var(--accent-ink); border: none;
  border-radius: 999px; padding: 10px 22px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.consent-banner .cb-accept:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (prefers-reduced-motion: reduce) { .consent-banner { animation: none; } }
@media (max-width: 640px) { .consent-banner { flex-direction: column; align-items: stretch; bottom: 8px; left: 8px; right: 8px; }
  .consent-banner .cb-actions { justify-content: stretch; } .consent-banner .cb-accept { width: 100%; } }

/* ── Global azaltılmış-hareket desteği (WCAG 2.2 / erişilebilirlik) ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Sayfalar arası geçiş katmanı (theme.js kontrol eder; madde 15) ── */
.hb-page-transition {
  position: fixed; inset: 0; z-index: 2147483000;
  display: grid; place-items: center;
  background: rgba(3, 6, 12, 0.6);                              /* fallback */
  background: color-mix(in srgb, var(--bg) 82%, transparent);  /* açık/koyu uyumlu */
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.hb-page-transition.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .22s ease;
}
.hb-pt-inner { display: grid; place-items: center; }
.hb-pt-dna { color: var(--indigo); animation: hbDnaSpin 1.1s linear infinite; }
@keyframes hbDnaSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hb-pt-dna { animation: none !important; }
  .hb-page-transition { transition: none !important; }
}
