/* KVK Günce — Aşama 1 arayüz prototipi
   Yerleşim: sol menü + üst bilgi şeridi + kart/tablo içerik alanı.
   Renk: lacivert (ana), turkuaz (vurgu), mavi tonlu açık zemin. */
:root {
  --bg: #f3f6f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --line: #d9e2ec;
  --ink: #102239;
  --muted: #55667c;
  --navy: #08214a;
  --navy-2: #163a66;
  --side-ink: #dbe6f3;
  --side-muted: #9bb0c9;
  --primary: #062a5e;
  --primary-ink: #ffffff;
  --accent: #037d79;
  --accent-ink: #ffffff;
  --accent-text: #036f6b;
  --accent-soft: #e0f2f1;
  --ok: #1d7a46; --ok-soft: #e3f4ea;
  --warn: #8a5a00; --warn-soft: #fdf1d8;
  --bad: #b3261e; --bad-soft: #fbe5e3;
  --info: #1f5aa6; --info-soft: #e5eefb;
  --focus: #1aa7c7;
  --shadow: 0 1px 2px rgba(16, 34, 57, .06), 0 4px 14px rgba(16, 34, 57, .05);
  --f-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;
  --r: 10px;
  --side-w: 252px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1524; --surface: #111f33; --surface-2: #0e1b2d; --line: #233652; --ink: #e5edf7; --muted: #9db0c7;
    --navy: #08111f; --navy-2: #12223a; --side-ink: #d7e3f1; --side-muted: #8aa0bb;
    --primary: #3cc3bf; --primary-ink: #04201f; --accent: #3cc3bf; --accent-ink: #04201f; --accent-text: #5fd6d2; --accent-soft: #0f3333;
    --ok: #5fcf8e; --ok-soft: #10301f; --warn: #f0be5b; --warn-soft: #33270b; --bad: #ff8a80; --bad-soft: #3a1513; --info: #8db8ff; --info-soft: #14263f;
    --focus: #6fe0f0; --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1524; --surface: #111f33; --surface-2: #0e1b2d; --line: #233652; --ink: #e5edf7; --muted: #9db0c7;
  --navy: #08111f; --navy-2: #12223a; --side-ink: #d7e3f1; --side-muted: #8aa0bb;
  --primary: #3cc3bf; --primary-ink: #04201f; --accent: #3cc3bf; --accent-ink: #04201f; --accent-text: #5fd6d2; --accent-soft: #0f3333;
  --ok: #5fcf8e; --ok-soft: #10301f; --warn: #f0be5b; --warn-soft: #33270b; --bad: #ff8a80; --bad-soft: #3a1513; --info: #8db8ff; --info-soft: #14263f;
  --focus: #6fe0f0; --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--f-body); }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.25; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.18rem; font-weight: 750; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kabuk ---------- */
.demo-band { background: var(--warn-soft); color: var(--warn); font-size: .8rem; text-align: center; padding-block: 5px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--line); }
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: calc(100% - 30px); }
.side { background: var(--navy); color: var(--side-ink); display: flex; flex-direction: column; gap: 18px; padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding-left: max(12px, env(safe-area-inset-left, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; color: #fff; text-decoration: none; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: #fff; }
.brand-name span { color: #5fd6d2; }
.brand-sub { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); font-weight: 500; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--side-muted); padding: 6px 10px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--side-ink); text-decoration: none; font-size: .92rem; }
.nav a:hover { background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { background: rgba(95,214,210,.16); color: #fff; box-shadow: inset 3px 0 0 #5fd6d2; }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.side-foot { margin-top: auto; font-size: .75rem; color: var(--side-muted); padding: 8px 10px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.menu-btn { display: none; }
.top-ctx { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.top-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.company-picker { display: flex; align-items: center; gap: 8px; }
.company-picker label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.company-picker select { max-width: 280px; }
.credit-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text);
  font-weight: 600; text-decoration: none; font-size: .88rem; border: 1px solid transparent; }
.credit-chip .num { font-size: 1rem; }
.credit-chip.low { background: var(--warn-soft); color: var(--warn); }
.user-box { display: flex; align-items: center; gap: 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-2); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; font-family: var(--f-display); }
.user-meta { line-height: 1.2; }
.user-meta b { display: block; font-size: .9rem; }
.user-meta span { font-size: .75rem; color: var(--muted); }
.role-switch { display: flex; align-items: center; gap: 6px; border: 1px dashed var(--warn); border-radius: 8px; padding: 3px 6px; background: var(--warn-soft); }
.role-switch span { font-size: .7rem; color: var(--warn); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.role-switch select { border: 0; background: transparent; font-size: .82rem; padding: 2px; color: var(--ink); }

.content { padding-block: 24px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 20px; max-width: 1240px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 70ch; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }

/* ---------- Bileşenler ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head p { color: var(--muted); font-size: .88rem; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }

.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.kpi-value { font-family: var(--f-display); font-size: 1.85rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-unit { font-size: .85rem; color: var(--muted); font-weight: 500; font-family: var(--f-body); }
.kpi-foot { font-size: .8rem; color: var(--muted); }
.kpi.accent .kpi-value { color: var(--accent-text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); padding: 8px 14px; font: 600 .9rem var(--f-body); cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 38px; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--bad); border-color: var(--bad); background: transparent; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent-text); }
.btn.sm { padding: 4px 10px; font-size: .82rem; min-height: 30px; }
.btn.lg { padding: 12px 20px; font-size: 1rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.sample-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); background: var(--warn-soft); padding: 1px 7px; border-radius: 4px; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; background: var(--info-soft); color: var(--ink); border-left: 4px solid var(--info); }
.alert.ok { background: var(--ok-soft); border-color: var(--ok); }
.alert.warn { background: var(--warn-soft); border-color: var(--warn); }
.alert.bad { background: var(--bad-soft); border-color: var(--bad); }
.alert b { display: block; }

/* Tablolar */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
tbody tr:hover { background: var(--surface-2); }
th.act { text-align: right; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Formlar */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 600; font-size: .88rem; }
.field .req { color: var(--bad); }
.hint { font-size: .8rem; color: var(--muted); }
.err { font-size: .8rem; color: var(--bad); font-weight: 600; }
.err:empty { display: none; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=tel], select, textarea {
  font: inherit; font-size: .92rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; min-height: 38px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 40%, transparent); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .field { min-width: 150px; flex: 1; }

/* Sihirbaz */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; overflow-x: auto; }
.steps li { flex: 1; min-width: 120px; }
.steps button { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--muted); font: .8rem var(--f-body); display: flex; gap: 8px; align-items: center; }
.steps .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: .75rem; flex: none; }
.steps .done button { color: var(--ink); }
.steps .done .n { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.steps .cur button { border-color: var(--accent); color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--accent); }
.steps .cur .n { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.steps button[disabled] { cursor: not-allowed; opacity: .6; }
.wiz-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.choice { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: var(--surface); display: flex; gap: 10px; align-items: flex-start; }
.choice:hover { border-color: var(--muted); }
.choice input { margin-top: 3px; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice b { display: block; font-size: .93rem; }
.choice small { color: var(--muted); font-size: .8rem; }

.group-block { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.group-block > header { background: var(--surface-2); padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.group-block .cats { padding: 12px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }

/* Paketler */
.pkg-section { display: flex; flex-direction: column; gap: 12px; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pkg { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; position: relative; }
.pkg.pro { border-top: 4px solid var(--accent); }
.pkg.users { border-top: 4px solid var(--navy-2); }
.pkg .credits { font-family: var(--f-display); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.pkg .credits small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.pkg .price { font-family: var(--f-mono); font-size: 1.15rem; font-weight: 600; }
.pkg .unit { font-size: .8rem; color: var(--muted); }
.pkg[aria-pressed="true"] { outline: 3px solid var(--accent); }

.summary-list { display: flex; flex-direction: column; gap: 8px; }
.summary-list div { display: flex; justify-content: space-between; gap: 10px; }
.summary-list .total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; font-size: 1.1rem; }

/* Belge görünümü */
.doc-paper { background: #fff; color: #1a1a1a; border: 1px solid var(--line); border-radius: 6px; padding: 28px 32px; font: 14px/1.7 "Source Serif 4", Georgia, serif; max-height: 60vh; overflow-y: auto; }
.doc-paper h3 { font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 12px; color: #062a5e; }
.doc-paper p { margin: 0 0 10px; }
.doc-paper .sample-banner { font: 700 .75rem var(--f-body); letter-spacing: .05em; color: #8a5a00; background: #fdf1d8; padding: 6px 10px; border-radius: 4px; margin-bottom: 14px; }
.doc-paper .var-missing { background: #fbe5e3; color: #b3261e; padding: 0 4px; border-radius: 3px; font-family: var(--f-mono); font-size: .85em; }

/* Durum blokları */
.empty { text-align: center; padding: 36px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg { width: 44px; height: 44px; opacity: .5; }
.empty b { color: var(--ink); font-size: 1rem; }
.loading { display: flex; align-items: center; gap: 12px; padding: 24px; justify-content: center; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.result-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 16px; }
.result-hero .ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.result-hero .ico svg { width: 32px; height: 32px; }
.result-hero.ok .ico { background: var(--ok-soft); color: var(--ok); }
.result-hero.bad .ico { background: var(--bad-soft); color: var(--bad); }
.result-hero.warn .ico { background: var(--warn-soft); color: var(--warn); }

/* Modal ve bildirim */
.modal-back { position: fixed; inset: 0; background: rgba(8, 17, 31, .55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--surface); border-radius: 12px; width: min(680px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { width: min(960px, 100%); }
.modal header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal .body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal footer { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-size: .9rem; box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.toast.bad { border-left-color: var(--bad); }
.toast.warn { border-left-color: var(--warn); }

/* Üyelik ekranları */
.auth { min-height: calc(100% - 30px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-side { background: var(--navy); color: var(--side-ink); padding: 48px max(32px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.auth-side h1 { color: #fff; font-size: 2rem; max-width: 18ch; }
.auth-side ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--side-ink); }
.auth-main { display: grid; place-items: center; padding: 32px 16px; padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.auth-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 18px; }
.demo-accounts { display: flex; flex-direction: column; gap: 8px; }
.demo-accounts button { text-align: left; }

/* Matris */
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
.matrix th:first-child { background: var(--surface-2); }
.code { font-family: var(--f-mono); font-size: .85rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px; white-space: pre-wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.def-list { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 16px; font-size: .9rem; }
.def-list dt { color: var(--muted); }
.def-list dd { margin: 0; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }

/* Duyarlı */
@media (max-width: 1100px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(280px, 85vw); z-index: 60; transform: translateX(-100%); transition: transform .2s; height: 100%; padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .menu-btn { display: inline-flex; }
  .g3, .g2, .pkg-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 16px; }
  .auth-side ul { display: none; }
  .user-meta { display: none; }
}
@media (max-width: 600px) {
  .g5, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .company-picker label { display: none; }
  .company-picker select { max-width: 200px; }
  .def-list { grid-template-columns: 1fr; }
  .doc-paper { padding: 18px; }
  .kpi-value { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Logo */
.brand img { width: 170px; height: auto; display: block; }
.auth-side .auth-logo { width: 220px; height: auto; }
.doc-paper .doc-logo { width: 120px; height: auto; display: block; margin-bottom: 10px; }
.group-block header { background: var(--surface-2); padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.group-block summary::-webkit-details-marker { display: none; }
.group-block summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
details.group-block:not([open]) header { border-bottom: 0; }
.matrix thead th { position: sticky; top: 0; z-index: 1; }

/* ---------- Tanıtım sayfası (tek sayfa, V43) ---------- */
.lp { background: var(--bg); min-height: 100vh; }
.lp-wrap { width: min(1140px, 100%); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.lp-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.lp-bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.lp-logo img { width: 150px; height: auto; display: block; }
.lp-nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.lp-nav button, .lp-nav a { background: none; border: 0; font: inherit; font-size: .92rem; color: var(--ink); padding: 8px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.lp-nav button:hover, .lp-nav a:hover { background: var(--surface-2); color: var(--accent-text); }
.lp-actions { display: flex; gap: 8px; }
.lp-eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--accent-text); margin-bottom: 8px; }
.lp-hero { background: var(--navy); color: #fff; padding-block: 72px 80px; position: relative; overflow: hidden; }
.lp-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; position: relative; z-index: 1; }
.lp-hero .lp-eyebrow { color: #5fd6d2; }
.lp-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); color: #fff; max-width: 20ch; letter-spacing: -.02em; }
.lp-lead { font-size: 1.1rem; color: #c9d7ea; margin-top: 16px; max-width: 52ch; }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.lp-btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.lp-btn-light:hover { border-color: #fff; }
.lp-hero .btn.lp-link-light, .lp-final .btn.lp-link-light { color: #5fd6d2; }
.lp-stack { display: flex; flex-direction: column; gap: 8px; }
.lp-doc { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; background: #fff; color: #102239; border-radius: 10px; padding: 11px 14px; font-size: .9rem; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.lp-doc:nth-child(odd) { margin-left: 18px; }
.lp-doc .mono { color: #037d79; font-weight: 600; }
.lp-pdf { font-family: var(--f-mono); font-size: .7rem; font-weight: 600; color: #b3261e; border: 1px solid #f3c4bf; border-radius: 4px; padding: 1px 6px; }
.lp-doc-more { background: rgba(255,255,255,.08); color: #c9d7ea; box-shadow: none; border: 1px dashed rgba(255,255,255,.3); }
.lp-doc-more .mono { color: #5fd6d2; }
.lp-sec { padding-block: 72px; }
.lp-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.lp-head { margin-bottom: 28px; max-width: 62ch; display: flex; flex-direction: column; gap: 8px; }
.lp-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.lp-head-row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-steps li { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 22px; }
.lp-num { position: absolute; top: 14px; right: 16px; font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; color: var(--line); }
.lp-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.lp-ico svg { width: 22px; height: 22px; }
.lp-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.lp-docs ul, .lp-plan ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .92rem; }
.lp-plan { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.lp-price { font-family: var(--f-display); font-size: 1.6rem; font-weight: 800; }
.lp-price small { font-family: var(--f-body); font-size: .85rem; font-weight: 400; color: var(--muted); }
.lp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.lp-two .lp-head { align-items: flex-start; }
.lp-train { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-train li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.lp-play { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-size: .7rem; }
.lp-narrow { max-width: 820px; }
.lp-faq { display: flex; flex-direction: column; gap: 8px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.lp-faq summary { cursor: pointer; font-weight: 600; font-family: var(--f-display); }
.lp-faq details p { margin-top: 10px; }
.lp-final { background: var(--accent); color: #fff; padding-block: 56px; }
.lp-final-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.lp-final h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.lp-final .lp-cta { margin-top: 0; }
.lp-final .btn.accent { background: #fff; color: var(--navy); border-color: #fff; }
.lp-foot { background: var(--navy); color: var(--side-ink); padding-block: 40px; padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }
.lp-foot-in { display: flex; flex-direction: column; gap: 14px; }
.lp-foot img { width: 170px; height: auto; }
.lp-foot p { max-width: 80ch; font-size: .88rem; color: var(--side-muted); }
.lp-foot a { color: #5fd6d2; }
@media (max-width: 900px) {
  .lp-nav { display: none; }
  .lp-bar { justify-content: space-between; }
  .lp-logo img { width: 120px; }
  .lp-hero { padding-block: 44px 52px; }
  .lp-hero-grid, .lp-two { grid-template-columns: 1fr; gap: 32px; }
  .lp-doc:nth-child(odd) { margin-left: 0; }
  .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-sec { padding-block: 48px; }
}
@media (max-width: 560px) {
  .lp-steps { grid-template-columns: 1fr; }
  .lp-actions .btn { padding: 6px 10px; font-size: .85rem; min-height: 34px; }
  .lp-actions { gap: 4px; }
  .lp-logo img { width: 104px; }
}

/* ---------- Üyelere özel blog ve eğitim alanı (V44–V45) ---------- */
.lock-box { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border: 1px dashed var(--line); border-radius: 10px; padding: 18px; background: var(--surface-2); }
.lock-box > svg { width: 28px; height: 28px; color: var(--warn); flex: none; }
.lock-box > div:first-of-type { flex: 1; min-width: 200px; }
.badge svg { width: 12px; height: 12px; }
.train-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.train-card { display: flex; flex-direction: column; gap: 10px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; font: inherit; color: inherit; }
.train-card:hover { border-color: var(--accent); }
.train-thumb { aspect-ratio: 16 / 7; background: var(--navy); color: #5fd6d2; display: grid; place-items: center; position: relative; }
.train-thumb svg { width: 36px; height: 36px; }
.train-dur { position: absolute; right: 8px; bottom: 6px; font-family: var(--f-mono); font-size: .72rem; color: #fff; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 4px; }
.train-txt { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 14px; align-items: flex-start; }
.train-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.train-list ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.train-list button { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 10px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.train-list button span:last-child { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.train-list button:hover { background: var(--surface-2); }
.train-list button[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.video-box { aspect-ratio: 16 / 9; background: #08111f; border-radius: 10px; overflow: hidden; }
.video-box iframe, .video-box video { width: 100%; height: 100%; border: 0; display: block; }
.video-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #c9d7ea; text-align: center; padding: 16px; }
.video-empty svg { width: 44px; height: 44px; color: #5fd6d2; }
@media (max-width: 900px) { .train-layout { grid-template-columns: 1fr; } }
#docTrain h2 { display: flex; align-items: center; gap: 8px; }
#docTrain h2 svg { width: 20px; height: 20px; color: var(--accent-text); flex: none; }
.img-field { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.img-prev { max-height: 64px; max-width: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: #fff; }
.nowrap { white-space: nowrap; }
.cat-row td { background: var(--surface-2, #f3f5f9); }
table.matrix td, table.matrix th { text-align: center; }
table.matrix td:first-child, table.matrix th:first-child { text-align: left; min-width: 260px; }
