/* Mizan tasarım sistemi */
:root {
  --ink-900: #0b1120;
  --ink-800: #111a2e;
  --ink-700: #1b2740;
  --ink-500: #3b4a68;
  --slate-600: #4b5b72;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #eef2f7;
  --paper: #f7f9fc;
  --white: #ffffff;
  --brand-600: #0f766e;
  --brand-500: #14907f;
  --brand-400: #2aa89a;
  --brand-100: #d5f0ec;
  --amber-500: #d97706;
  --amber-100: #fdf0da;
  --rose-600: #be123c;
  --rose-100: #fce4ea;
  --sky-600: #0369a1;
  --sky-100: #e0f2fe;
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 8px 24px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 32px 60px -28px rgba(11, 17, 32, .35);
  --sidebar-w: 260px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* Temaya göre değişen yüzeyler (koyu değerler aşağıda [data-theme="dark"]) */
  --night: #0b1120;
  --btn-bg: #0b1120;
  --topbar-bg: rgba(255, 255, 255, .86);
  --table-head: #fbfcfe;
  --row-hover: #f8fbfb;
  --hover-tint: #f6fdfb;
  --drop-bg: #fbfdff;
  --drop-hover: #f2fbf9;
  --brand-ink: #0b6157;
  --amber-ink: #92500b;
  --stripe-a: #f8fafc;
  --stripe-b: #f1f5f9;
  --amber-line: #f3d9a8;
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink-900: #f1f5f9;
  --ink-800: #dbe3ee;
  --ink-700: #c4cfdd;
  --ink-500: #9fb0c6;
  --slate-600: #aab7c9;
  --slate-500: #8c9bb0;
  --slate-400: #66768c;
  --slate-200: #26344b;
  --slate-100: #1a2539;
  --paper: #0a111e;
  --white: #111a2b;
  --brand-600: #34c0b0;
  --brand-500: #179383;
  --brand-400: #3cc6b5;
  --brand-100: rgba(42, 168, 154, .18);
  --amber-500: #f59e0b;
  --amber-100: rgba(217, 119, 6, .18);
  --rose-600: #fb7185;
  --rose-100: rgba(225, 29, 72, .18);
  --sky-600: #7dd3fc;
  --sky-100: rgba(3, 105, 161, .28);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 8px 24px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 32px 60px -28px rgba(0, 0, 0, .8);
  --night: #070c16;
  --btn-bg: #24324a;
  --topbar-bg: rgba(10, 17, 30, .86);
  --table-head: #141e31;
  --row-hover: #16223a;
  --hover-tint: rgba(42, 168, 154, .08);
  --drop-bg: #0f1828;
  --drop-hover: rgba(42, 168, 154, .1);
  --brand-ink: #7fe0d2;
  --amber-ink: #fbbf24;
  --stripe-a: #131d2f;
  --stripe-b: #18233a;
  --amber-line: rgba(217, 119, 6, .35);
}
:root[data-theme="dark"] .btn.danger { background: #e11d48; }
:root[data-theme="dark"] .btn.primary { background: linear-gradient(140deg, #14907f, #0f766e); }
:root[data-theme="dark"] .cell.done { background: #14907f; }
:root[data-theme="dark"] img.logo-on-dark, :root[data-theme="dark"] .brand-logo { background: #fff; border-radius: 6px; }

/* Tema düğmesi */
.theme-toggle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 0;
  border-radius: 10px; border: 1px solid var(--slate-200); background: var(--white); color: var(--slate-600);
  cursor: pointer; transition: color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.theme-toggle:hover { color: var(--ink-900); border-color: var(--slate-400); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink-800);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.015em; color: var(--ink-900); }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
small { font-size: .82rem; }
table { border-collapse: collapse; width: 100%; }

/* ---------- uygulama kabuğu ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(185deg, var(--night) 0%, #0e1a2b 55%, #0c1626 100%);
  color: #c7d2e1;
  padding: 22px 16px 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px 4px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px;
  background: linear-gradient(140deg, var(--brand-400), var(--brand-600));
  display: grid; place-items: center;
  box-shadow: 0 10px 22px -10px rgba(20, 144, 127, .9);
  animation: markIn .6s var(--ease) both;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { display: block; font-size: 1.05rem; font-weight: 680; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.brand-sub { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #6f8098; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group-title {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em;
  color: #5c6d86; padding: 14px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 10px; color: #b9c6d8;
  font-size: .92rem; font-weight: 500; position: relative;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; transform: translateX(2px); }
.nav-item.active { background: rgba(42, 168, 154, .16); color: #fff; }
.nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--brand-400);
  animation: growBar .35s var(--ease) both;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .85; }
.nav-badge {
  margin-left: auto; background: var(--brand-500); color: #fff;
  font-size: .68rem; font-weight: 650; padding: 1px 7px; border-radius: 999px;
}
.nav-badge.warn { background: var(--amber-500); }

.sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.trial-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius); padding: 12px;
}
.trial-card strong { color: #fff; display: block; font-size: .9rem; }
.trial-card p { color: #93a3b8; font-size: .78rem; margin: 4px 0 8px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 6px; }
.avatar {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: .78rem; font-weight: 650;
}
.user-chip span { font-size: .84rem; color: #cbd5e1; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 62px; display: flex; align-items: center; gap: 14px;
  padding: 0 26px; background: var(--topbar-bg);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
  position: sticky; top: 0; z-index: 30;
}
.topbar form { flex: 1; max-width: 460px; position: relative; }
.topbar input[type="search"] {
  width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--slate-200);
  padding: 0 12px 0 36px; font-size: .9rem; background: var(--white); color: var(--ink-800);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.topbar input[type="search"]:focus {
  outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(42, 168, 154, .16);
}
.topbar .search-icon { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--slate-400); }
.kbd {
  font-family: inherit; font-size: .7rem; color: var(--slate-500);
  border: 1px solid var(--slate-200); border-bottom-width: 2px; border-radius: 6px; padding: 1px 5px;
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.content { padding: 26px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .eyebrow {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-600); font-weight: 650;
}
.page-head p { color: var(--slate-500); margin: 4px 0 0; font-size: .9rem; }
.page-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- bileşenler ---------- */
.card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-head {
  padding: 15px 18px; border-bottom: 1px solid var(--slate-100);
  display: flex; align-items: center; gap: 12px;
}
.card-head h2, .card-head h3 { font-size: .98rem; }
.card-head .spacer { margin-left: auto; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 18px; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.tight { gap: 6px; }
.spacer { margin-left: auto; }
.muted { color: var(--slate-500); }
.mono { font-variant-numeric: tabular-nums; }

.stat {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  animation: cardIn .5s var(--ease) both;
}
.stat::after {
  content: ""; position: absolute; inset: auto -30% -70% auto; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 168, 154, .12), transparent 70%);
}
.stat-label { font-size: .78rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: .08em; }
.stat-value { font-size: 1.85rem; font-weight: 680; letter-spacing: -.03em; margin-top: 6px; color: var(--ink-900); }
.stat-foot { font-size: .8rem; color: var(--slate-500); margin-top: 4px; }
.stat.danger .stat-value { color: var(--rose-600); }
.stat.warn .stat-value { color: var(--amber-500); }

.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  border-radius: 10px; border: 1px solid transparent; background: var(--btn-bg); color: #fff;
  font-size: .88rem; font-weight: 550; cursor: pointer; font-family: inherit;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease), border-color .16s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(140deg, var(--brand-500), var(--brand-600)); }
.btn.ghost { background: var(--white); border-color: var(--slate-200); color: var(--ink-800); }
.btn.ghost:hover { border-color: var(--slate-400); }
.btn.soft { background: var(--slate-100); color: var(--ink-800); }
.btn.danger { background: var(--rose-600); }
.btn.link { background: none; color: var(--brand-600); height: auto; padding: 2px 4px; }
.btn.sm { height: 31px; padding: 0 10px; font-size: .82rem; border-radius: 8px; }
.btn.block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--slate-100); color: var(--slate-600);
}
.chip.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--brand-100); color: var(--brand-ink); }
.chip.warn { background: var(--amber-100); color: var(--amber-ink); }
.chip.danger { background: var(--rose-100); color: var(--rose-600); }
.chip.info { background: var(--sky-100); color: var(--sky-600); }

.tabs { display: flex; gap: 4px; background: var(--slate-100); padding: 4px; border-radius: 12px; }
.tabs a {
  padding: 7px 13px; border-radius: 9px; font-size: .86rem; color: var(--slate-600); font-weight: 550;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.tabs a:hover { text-decoration: none; color: var(--ink-900); }
.tabs a.active { background: var(--white); color: var(--ink-900); box-shadow: var(--shadow-sm); }

.table-wrap { overflow-x: auto; }
table.data { font-size: .9rem; }
table.data th {
  text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--slate-500); font-weight: 650; padding: 10px 14px; border-bottom: 1px solid var(--slate-200);
  background: var(--table-head); position: sticky; top: 0; z-index: 2;
}
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
table.data tbody tr { transition: background .14s var(--ease); }
table.data tbody tr:hover { background: var(--row-hover); }
table.data tr.done td { color: var(--slate-400); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 46px 18px; color: var(--slate-500); }
.empty svg { width: 40px; height: 40px; color: var(--slate-400); margin-bottom: 10px; }

/* formlar */
form .field { margin-bottom: 14px; }
form label { display: block; font-size: .82rem; font-weight: 600; color: var(--slate-600); margin-bottom: 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"],
input[type="tel"], input[type="search"], select, textarea {
  width: 100%; border: 1px solid var(--slate-200); border-radius: 10px; padding: 9px 11px;
  font-size: .92rem; font-family: inherit; color: var(--ink-800); background: var(--white);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(42, 168, 154, .15);
}
textarea { resize: vertical; min-height: 68px; }
.helptext { display: block; font-size: .78rem; color: var(--slate-500); margin-top: 4px; }
/* Başlık ve filtre satırlarındaki açılır listeler satırı doldurmasın */
.page-actions select, .card-head select, .row select { width: auto; min-width: 170px; max-width: 260px; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--rose-600); font-size: .8rem; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px; }
.checkbox-grid ul { list-style: none; margin: 0; padding: 0; display: contents; }
.checkbox-grid li label, .check-line {
  display: flex; align-items: flex-start; gap: 8px; font-weight: 500; font-size: .89rem;
  padding: 9px 11px; border: 1px solid var(--slate-200); border-radius: 10px; cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.checkbox-grid li label:hover { border-color: var(--brand-400); background: var(--hover-tint); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--brand-600); margin: 2px 0 0; }
fieldset { border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-500); padding: 0 6px; }

/* ilerleme */
.ring { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--slate-200); }
.ring-value {
  fill: none; stroke: url(#ringGradient); stroke-linecap: round;
  animation: ringDraw 1.1s var(--ease) forwards;
}
@keyframes ringDraw { to { stroke-dashoffset: var(--ring-target); } }
.progress { height: 8px; border-radius: 999px; background: var(--slate-100); overflow: hidden; }
.progress > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  width: 0; animation: barGrow 1s var(--ease) forwards;
}
@keyframes barGrow { to { width: var(--bar-width, 0%); } }

/* dönem tablosu (board) */
.board { border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.board th.client-col, .board td.client-col {
  position: sticky; left: 0; background: var(--white); z-index: 3; min-width: 240px;
  box-shadow: 1px 0 0 var(--slate-200);
}
.board th { padding: 10px 8px; font-size: .72rem; }
.board th.rotate { max-width: 92px; }
.board td { padding: 6px 8px; border-bottom: 1px solid var(--slate-100); text-align: center; }
.cell {
  width: 100%; min-width: 58px; height: 34px; border-radius: 9px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
  font-size: .78rem; font-weight: 600; font-family: inherit;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.cell:hover { transform: translateY(-1px) scale(1.02); box-shadow: var(--shadow); }
.cell.waiting { background: var(--slate-100); color: var(--slate-500); border-color: var(--slate-200); }
.cell.uploaded { background: var(--brand-100); color: var(--brand-ink); }
.cell.done { background: #0b6157; color: #fff; }
.cell.empty { background: var(--sky-100); color: var(--sky-600); }
.cell.missing { background: var(--rose-100); color: var(--rose-600); }
.cell.none { background: repeating-linear-gradient(45deg, var(--stripe-a), var(--stripe-a) 4px, var(--stripe-b) 4px, var(--stripe-b) 8px); color: var(--slate-400); cursor: default; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--slate-500); }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-right: 5px; vertical-align: -2px; }

/* yükleme alanı */
.dropzone {
  border: 1.5px dashed var(--slate-200); border-radius: var(--radius); padding: 20px; text-align: center;
  background: var(--drop-bg); transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
  cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand-400); background: var(--drop-hover); transform: translateY(-1px); }
.dropzone svg { width: 26px; height: 26px; color: var(--brand-500); }
.dropzone strong { display: block; margin-top: 6px; font-size: .92rem; }
.dropzone span { font-size: .8rem; color: var(--slate-500); }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file-list li {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--slate-200);
  border-radius: 10px; font-size: .85rem; background: var(--white);
  animation: cardIn .35s var(--ease) both;
}
.file-list li .spacer { margin-left: auto; }
.thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; border: 1px solid var(--slate-200); }
.file-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--slate-100); display: grid; place-items: center; color: var(--slate-500); font-size: .68rem; font-weight: 700; }

/* toast */
.toasts { position: fixed; top: 74px; right: 22px; z-index: 90; display: flex; flex-direction: column; gap: 9px; max-width: 380px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--slate-200); box-shadow: var(--shadow);
  font-size: .88rem; animation: toastIn .45s var(--ease) both;
}
.toast.success { border-left: 3px solid var(--brand-500); }
.toast.error { border-left: 3px solid var(--rose-600); }
.toast.warning { border-left: 3px solid var(--amber-500); }
.toast.info { border-left: 3px solid var(--sky-600); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--slate-400); cursor: pointer; font-size: 1rem; }

/* animasyonlar */
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes markIn { from { opacity: 0; transform: rotate(-12deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes growBar { from { height: 0; } to { height: 22px; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp .5s var(--ease) both; }
.reveal-2 { animation-delay: .06s; }
.reveal-3 { animation-delay: .12s; }
.reveal-4 { animation-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* mobil */
.menu-toggle { display: none; }
@media (max-width: 960px) {
  html, body { overflow-x: hidden; }
  .kbd { display: none; }
  .topbar form { max-width: none; }
  .topbar-right .btn { padding: 0 11px; }
  .board th.client-col, .board td.client-col { min-width: 150px; }
  .page-head .page-actions { width: 100%; }
  .page-head .page-actions .btn { flex: 1 1 auto; justify-content: center; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 60; transform: translateX(-100%);
    transition: transform .28s var(--ease); box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: none; }
  .menu-toggle { display: inline-flex; }
  .content { padding: 18px 14px; }
  .topbar { padding: 0 14px; }
  .scrim { position: fixed; inset: 0; background: rgba(11, 17, 32, .45); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .scrim.show { opacity: 1; pointer-events: auto; }
}
/* ---------- platform paneli / destek modu ---------- */
.support-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 24px; background: var(--amber-100); color: var(--amber-ink); border-bottom: 1px solid var(--amber-line);
  font-size: .92rem;
}
.support-bar form { margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--slate-500); }
.kv dd { margin: 0; font-weight: 500; }