/* Saha Defteri — Mediterranean night sea + warm Alanya sun.
   Dark-first; light theme via [data-theme="light"] or system preference. */

:root {
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-mono: "DM Mono", "Inter", ui-monospace, "SF Mono", Menlo, monospace;

  --bg: #061219;
  --bg-glow-1: rgba(240, 184, 79, 0.13);
  --bg-glow-2: rgba(69, 198, 193, 0.09);
  --surface: #0C1E27;
  --surface-2: #132a34;
  --surface-3: #183441;
  --line: #1E3844;
  --line-strong: #2A4A57;
  --ink: #F3EADB;
  --ink-2: #C9C3B6;
  --muted: #8DA2A8;
  --input: #08171F;
  --chrome: rgba(6, 18, 25, 0.78);

  --gold: #F0B84F;
  --gold-2: #FFD98A;
  --gold-deep: #E19B32;
  --gold-soft: rgba(240, 184, 79, 0.13);
  --on-gold: #1C1203;
  --sea: #45C6C1;
  --coral: #FF7B5E;
  --green: #79D98F;
  --amber: #F5A64C;
  --grey: #7D9298;

  --hero-1: #0F2C38;
  --hero-2: #061820;
  --hero-line: rgba(255, 217, 138, 0.16);

  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  --radius: 22px;
  --pad: max(16px, env(safe-area-inset-left, 0px));
  --tabbar-h: 64px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F4EEE3;
  --bg-glow-1: rgba(237, 178, 77, 0.22);
  --bg-glow-2: rgba(15, 138, 134, 0.10);
  --surface: #FFFCF6;
  --surface-2: #F3EBDD;
  --surface-3: #EADFCB;
  --line: #E3D7C3;
  --line-strong: #D3C3A8;
  --ink: #10232B;
  --ink-2: #33464D;
  --muted: #5F6E70;
  --input: #FFFFFF;
  --chrome: rgba(244, 238, 227, 0.82);
  --gold: #A86A0C;
  --gold-soft: rgba(213, 150, 40, 0.14);
  --sea: #0D8581;
  --coral: #CF4529;
  --green: #2B8C4C;
  --amber: #B96D0B;
  --grey: #77878A;
  --shadow-lg: 0 24px 50px -28px rgba(60, 40, 10, 0.35);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4EEE3;
    --bg-glow-1: rgba(237, 178, 77, 0.22);
    --bg-glow-2: rgba(15, 138, 134, 0.10);
    --surface: #FFFCF6;
    --surface-2: #F3EBDD;
    --surface-3: #EADFCB;
    --line: #E3D7C3;
    --line-strong: #D3C3A8;
    --ink: #10232B;
    --ink-2: #33464D;
    --muted: #5F6E70;
    --input: #FFFFFF;
    --chrome: rgba(244, 238, 227, 0.82);
    --gold: #A86A0C;
    --gold-soft: rgba(213, 150, 40, 0.14);
    --sea: #0D8581;
    --coral: #CF4529;
    --green: #2B8C4C;
    --amber: #B96D0B;
    --grey: #77878A;
    --shadow-lg: 0 24px 50px -28px rgba(60, 40, 10, 0.35);
    color-scheme: light;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90% 45% at 100% -5%, var(--bg-glow-1), transparent 70%),
    radial-gradient(70% 40% at -10% 10%, var(--bg-glow-2), transparent 70%);
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.ic { width: 20px; height: 20px; flex: none; }
.t-pos { color: var(--green); }
.t-neg { color: var(--coral); }
.kicker {
  margin: 0;
  font: 500 11.5px/1.3 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-head { padding-top: 18px; }
.page-title {
  margin: 2px 0 0;
  font: 650 40px/1.02 var(--f-display);
  letter-spacing: -0.02em;
}
.fine { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }

/* ------------------------------------------------------------------ boot & login */
.boot {
  position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  color: var(--muted); font: 500 13px var(--f-mono); letter-spacing: 0.04em; text-align: center; padding: 24px;
}
.boot-mark { width: 64px; height: 64px; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(0.94); opacity: 0.7; } }

.login {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px var(--pad);
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(240, 184, 79, 0.28), transparent 70%),
    linear-gradient(180deg, #0B2531 0%, #061219 70%);
  color: #F3EADB;
}
.login-card { width: min(380px, 100%); text-align: center; }
.login-mark { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 20px 50px -10px rgba(240, 184, 79, 0.35); }
.login .kicker { margin-top: 22px; color: #9FB4B9; }
.login-title { margin: 6px 0 26px; font: 650 46px/1 var(--f-display); letter-spacing: -0.03em; }
.login-form { display: grid; gap: 14px; text-align: left; }
.login .field input { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #F3EADB; }

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--chrome);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 56px; padding: 0 var(--pad); max-width: 1180px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.brand-name { font: 650 18px/1 var(--f-display); letter-spacing: -0.01em; white-space: nowrap; }
.rec-pill {
  display: none; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px;
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; color: #FFD8CF;
  background: rgba(255, 92, 66, 0.16); border: 1px solid rgba(255, 92, 66, 0.4);
}
.rec-pill svg { width: 12px; height: 12px; flex: none; color: #FF5C42; }
:root[data-theme="light"] .rec-pill { color: #A3321F; }
@keyframes rec { 50% { opacity: 0.25; } }
.top-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.icon-btn {
  width: 42px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--ink-2);
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { background: var(--surface-2); }
#videoToggle[aria-pressed="true"] { color: #FF8C74; }

.sync-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px 0 10px; margin-right: 4px;
  border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  font: 500 12px/1 var(--f-mono); color: var(--ink-2); white-space: nowrap;
}
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.sync-pill[data-state="pending"] .sync-dot { background: var(--amber); animation: rec 1s ease-in-out infinite; }
.sync-pill[data-state="offline"] .sync-dot { background: var(--grey); }
.sync-pill[data-state="offline"] { color: var(--muted); border-style: dashed; }
.sync-pill[data-state="auth"], .sync-pill[data-state="error"] { color: var(--coral); border-color: color-mix(in srgb, var(--coral) 45%, transparent); }
.sync-pill[data-state="auth"] .sync-dot, .sync-pill[data-state="error"] .sync-dot { background: var(--coral); }
.sync-pill.mini { height: auto; padding: 0; border: 0; background: none; margin-right: 8px; }

.banner { padding: 10px var(--pad); font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.banner-warn { background: color-mix(in srgb, var(--amber) 16%, var(--bg)); }
.banner-error { background: color-mix(in srgb, var(--coral) 22%, var(--bg)); }

html.video .rec-pill { display: inline-flex; }
@media (max-width: 410px) {
  .brand-name { font-size: 16.5px; }
  html.video .brand-name { display: none; }
  .topbar-inner:has(.sync-pill:not([data-state="synced"])) .brand-name { display: none; }
  .sync-pill { padding: 0 9px; }
}
@media (max-width: 359px) { .brand-name { display: none; } }

/* ------------------------------------------------------------------ layout */
.main {
  max-width: 640px; margin: 0 auto;
  padding: 0 var(--pad) calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 36px);
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.panel { animation: rise 0.28s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center;
  padding: 0 max(8px, env(safe-area-inset-left, 0px)) env(safe-area-inset-bottom, 0px);
  background: var(--chrome);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.tabbar button {
  position: relative; flex: 1; max-width: 140px; height: var(--tabbar-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font: 600 11px/1 var(--f-body); letter-spacing: 0.02em;
}
.tabbar svg { width: 24px; height: 24px; transition: transform 0.2s; }
.tabbar button[aria-current="page"] { color: var(--gold); }
.tabbar button[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold);
  box-shadow: 0 0 14px var(--gold);
}
.tabbar button:active svg { transform: scale(0.9); }

/* ------------------------------------------------------------------ buttons & fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 16px; border-radius: 14px;
  font: 600 15px/1.1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: transform 0.12s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn .ic { width: 19px; height: 19px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-gold {
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 10px 26px -12px rgba(233, 163, 58, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-soft { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost { color: var(--muted); border: 1px solid var(--line); }
.btn[disabled] { opacity: 0.6; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span:first-child {
  font: 500 11px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--input); color: var(--ink);
  font: 16px/1.4 var(--f-body); appearance: none; -webkit-appearance: none;
}
.field input[type="date"] { min-height: 48px; line-height: 22px; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field select { background-image: none; }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.field-row { display: flex; gap: 10px; align-items: end; }
.field-row > .field { flex: 1; }
.field-row.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.form-error { margin: 0; color: var(--coral); font-size: 13.5px; font-weight: 500; }

.seg {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.seg button {
  min-height: 38px; padding: 0 13px; border-radius: 11px; font: 600 13.5px/1 var(--f-body); color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.35); }
:root[data-theme="light"] .seg button[aria-pressed="true"] { box-shadow: 0 2px 6px -2px rgba(60, 40, 10, 0.25); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 16px; padding: 18px 20px 18px; border-radius: 28px;
  container-type: inline-size;
  color: #F3EADB;
  background:
    radial-gradient(120% 85% at 105% -10%, rgba(255, 196, 94, 0.30), transparent 55%),
    radial-gradient(60% 60% at -10% 120%, rgba(69, 198, 193, 0.16), transparent 60%),
    linear-gradient(172deg, var(--hero-1), var(--hero-2));
  border: 1px solid var(--hero-line);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.hero-sea {
  position: absolute; inset: 42% 0 0 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 11px, rgba(120, 220, 215, 0.07) 11px 12px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
  mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero .kicker { color: #A9BCBF; }
.day-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #FFE3A6;
  background: rgba(255, 217, 138, 0.1); border: 1px solid rgba(255, 217, 138, 0.32);
}
.day-chip b { font: 600 15px/1 var(--f-mono); color: #FFF1CF; }
.day-chip .ic { width: 15px; height: 15px; }
.day-chip.is-empty { cursor: pointer; }
.hero-num {
  margin: 10px 0 14px; white-space: nowrap;
  font: 700 min(112px, calc(100cqw / (var(--chars, 7) * 0.6)))/0.92 var(--f-display);
  letter-spacing: -0.045em;
  font-variant-numeric: lining-nums;
  color: #F7C664;
  text-shadow: 0 0 34px rgba(240, 184, 79, 0.35), 0 2px 0 rgba(0, 0, 0, 0.25);
}
.hero.is-neg .hero-num {
  color: #FF8667;
  text-shadow: 0 0 34px rgba(255, 110, 80, 0.35), 0 2px 0 rgba(0, 0, 0, 0.25);
}
.hero-sign { display: inline-block; font-size: 0.6em; font-weight: 700; vertical-align: 0.3em; margin-right: 0.06em; letter-spacing: 0; }
.hero-cur { font-size: 0.4em; font-weight: 500; letter-spacing: 0; margin-left: 0.1em; opacity: 0.9; }
.track {
  position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.track-fill {
  height: 100%; min-width: 10px; border-radius: inherit;
  background: linear-gradient(90deg, #45C6C1, #F0B84F);
  box-shadow: 0 0 16px rgba(240, 184, 79, 0.55);
  transition: width 0.8s cubic-bezier(.2, .8, .2, 1);
}
.track-zero { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: rgba(255, 241, 207, 0.75); }
.track-legend {
  display: flex; justify-content: space-between; margin-top: 8px;
  font: 500 11px/1 var(--f-mono); color: #8FA6AB; letter-spacing: 0.04em;
}
.track-zero-label { display: none; }
.hero-foot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-foot small { display: block; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #8FA6AB; }
.hero-foot b { display: block; margin-top: 5px; font: 500 15px/1.1 var(--f-mono); color: #F3EADB; white-space: nowrap; }
.hero-foot .t-pos { color: #8BE3A0; }
.hero-foot .t-neg { color: #FF977E; }

/* ------------------------------------------------------------------ Bugün */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); min-width: 0;
}
.tile-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.tile-ic .ic { width: 20px; height: 20px; }
.tone-sea { color: var(--sea); background: color-mix(in srgb, var(--sea) 15%, transparent); }
.tone-green { color: var(--green); background: color-mix(in srgb, var(--green) 15%, transparent); }
.tone-amber { color: var(--amber); background: color-mix(in srgb, var(--amber) 15%, transparent); }
.tone-gold { color: var(--gold); background: var(--gold-soft); }
.tile-txt { display: grid; min-width: 0; }
.tile b { font: 650 27px/1.05 var(--f-display); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b small { font: 500 12.5px var(--f-body); color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.tile-txt > span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.block { margin-top: 26px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block-head h2 { margin: 0; font: 600 23px/1.1 var(--f-display); letter-spacing: -0.015em; }
.count {
  font: 500 12px/1 var(--f-mono); color: var(--muted); padding: 5px 9px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.count.is-done { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }

.rows { display: grid; gap: 8px; }
.row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%;
  min-height: 60px; padding: 10px 12px; border-radius: 18px; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
}
.row-date {
  font: 500 12px/1 var(--f-mono); padding: 7px 9px; border-radius: 10px; color: var(--amber);
  background: color-mix(in srgb, var(--amber) 14%, transparent); white-space: nowrap;
}
.row-date.is-late { color: var(--coral); background: color-mix(in srgb, var(--coral) 14%, transparent); }
.row-main { display: grid; min-width: 0; }
.row-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12.5px; color: var(--muted); }
.row-chev { transform: rotate(-90deg); color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 61px; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; }
.tl { display: grid; grid-template-columns: 46px 16px 1fr; gap: 0 8px; align-items: start; padding: 8px 0; }
.tl time { font: 500 13px/22px var(--f-mono); color: var(--muted); text-align: right; }
.tl-dot {
  position: relative; z-index: 1; width: 14px; height: 14px; margin: 4px 0 0 1px; border-radius: 50%;
  background: var(--tc, var(--grey)); box-shadow: 0 0 0 4px var(--bg), 0 0 14px color-mix(in srgb, var(--tc, var(--grey)) 60%, transparent);
}
.tl-body { display: grid; gap: 1px; min-width: 0; }
.tl-title { font-weight: 600; font-size: 15px; }
.tl-sub { font-size: 13px; color: var(--muted); }
.tl.is-pending .tl-dot { box-shadow: 0 0 0 4px var(--bg); outline: 2px dashed var(--tc, var(--grey)); outline-offset: 2px; }
.tl-gidildi { --tc: var(--sea); }
.tl-dusunuyor { --tc: var(--amber); }
.tl-red { --tc: var(--coral); }
.tl-satis { --tc: var(--green); }
.tl-gold { --tc: var(--gold); }
.tl-yeni { --tc: var(--grey); }

.empty {
  display: grid; justify-items: center; gap: 4px; padding: 26px 18px; text-align: center; color: var(--muted);
  border: 1.5px dashed var(--line-strong); border-radius: 22px;
}
.empty p { margin: 0; }
.empty-title { color: var(--ink); font: 600 19px/1.2 var(--f-display); }
.empty .btn { margin-top: 12px; }

/* ------------------------------------------------------------------ Rota */
.chips {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad)); padding: 14px var(--pad) 4px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  position: relative; overflow: hidden; flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px 0 8px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.chip-n {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px;
  font: 500 11px/1 var(--f-mono); background: var(--surface-2); color: var(--muted);
}
.chip-name { font: 600 14px/1 var(--f-body); white-space: nowrap; }
.chip small { font: 500 11.5px/1 var(--f-mono); color: var(--muted); }
.chip-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); border-radius: 0 3px 3px 0; }
.chip.is-done .chip-n { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.chip[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); border-color: transparent; color: var(--on-gold);
  box-shadow: 0 8px 20px -10px rgba(233, 163, 58, 0.8);
}
.chip[aria-pressed="true"] small { color: rgba(28, 18, 3, 0.7); }
.chip[aria-pressed="true"] .chip-n { background: rgba(28, 18, 3, 0.14); color: var(--on-gold); }
.chip[aria-pressed="true"] .chip-bar { background: rgba(28, 18, 3, 0.45); }

.area-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; }
.area-head > div:first-child { min-width: 0; }
.area-head .page-title { overflow-wrap: anywhere; }
.ring-wrap { position: relative; width: 58px; height: 58px; flex: none; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--surface-3); }
.ring-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dasharray 0.6s; }
.ring-wrap span { font: 500 11px/1 var(--f-mono); color: var(--muted); }
.ring-wrap b { font: 600 16px/1 var(--f-mono); color: var(--ink); }

.next-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 16px; padding: 10px 18px 10px 10px;
  min-height: 70px; border-radius: 22px; text-align: left; color: var(--on-gold);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.35), transparent 50%),
    linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 16px 34px -16px rgba(233, 163, 58, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.12s;
}
.next-btn:active { transform: scale(0.985); }
.next-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: rgba(28, 18, 3, 0.88); color: var(--gold-2); flex: none; }
.next-ic .ic { width: 24px; height: 24px; }
.next-text { flex: 1; display: grid; gap: 3px; }
.next-text b { font: 650 22px/1 var(--f-display); letter-spacing: -0.01em; }
.next-text small { font: 500 12.5px/1.2 var(--f-body); opacity: 0.75; }
.next-arrow { width: 24px; height: 24px; }
.next-btn.is-busy .next-ic .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 12px; }
.toolbar .btn { min-height: 46px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card {
  --s: var(--grey);
  position: relative; overflow: hidden; scroll-margin-top: calc(70px + env(safe-area-inset-top, 0px));
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--s); opacity: 0; }
.card.s-gidildi { --s: var(--sea); }
.card.s-dusunuyor { --s: var(--amber); }
.card.s-red { --s: var(--coral); }
.card.s-satis { --s: var(--green); }
.card:not(.s-yeni)::before { opacity: 1; }
.card.s-red:not(.is-open) .card-main { opacity: 0.62; }
.card.is-open { border-color: color-mix(in srgb, var(--s) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.card.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--gold), 0 0 40px -6px var(--gold); } }
.card-top { display: grid; grid-template-columns: 1fr auto; align-items: start; }
.card-head {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; width: 100%; padding: 15px 4px 15px 14px; text-align: left;
}
.ord { font: 500 12.5px/22px var(--f-mono); color: var(--muted); }
.card-main { display: grid; gap: 3px; min-width: 0; }
.card-name { font: 650 17px/1.25 var(--f-body); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 13px; color: var(--muted); }
.meta-rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); font-weight: 500; }
.meta-rating .ic { width: 13px; height: 13px; color: var(--gold); }
.card-meta2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.status-chip {
  font: 600 11px/1 var(--f-body); letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 7px; color: var(--s); background: color-mix(in srgb, var(--s) 15%, transparent);
}
.card.s-yeni .status-chip { color: var(--muted); background: var(--surface-2); }
.hours { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.hours i { width: 7px; height: 7px; border-radius: 50%; background: var(--grey); }
.hours.h-open i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.hours.h-soon i { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.hours.h-closed { color: var(--muted); }
.hours.h-closed i { background: var(--coral); }
.tag {
  font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold);
  padding: 4px 6px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.nav-quick {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 12px 12px 0 4px; border-radius: 15px;
  color: var(--gold); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
}
.nav-quick .ic { width: 21px; height: 21px; }
.card.is-open .nav-quick { visibility: hidden; }

.card-body { display: grid; gap: 14px; padding: 2px 14px 16px; animation: rise 0.22s ease-out; }
.status-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.st {
  --sc: var(--grey);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 66px; padding: 6px 2px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink-2); font: 600 11px/1.1 var(--f-body); letter-spacing: -0.01em; text-align: center;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.st:active { transform: scale(0.96); }
.st .ic { width: 21px; height: 21px; color: var(--sc); }
.st-gidildi { --sc: var(--sea); }
.st-dusunuyor { --sc: var(--amber); }
.st-red { --sc: var(--coral); }
.st-satis { --sc: var(--green); }
.st[aria-pressed="true"] { background: var(--sc); border-color: transparent; color: #0A1A20; box-shadow: 0 10px 22px -12px var(--sc); }
.st[aria-pressed="true"] .ic { color: #0A1A20; }
.st-yeni[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); }
.st-yeni[aria-pressed="true"] .ic { color: var(--ink); }
:root[data-theme="light"] .st[aria-pressed="true"]:not(.st-yeni), :root[data-theme="light"] .st[aria-pressed="true"]:not(.st-yeni) .ic { color: #fff; }

.btn-nav { min-height: 56px; font-size: 16.5px; border-radius: 16px; }
.btn-nav small { font: 500 12px/1 var(--f-mono); opacity: 0.7; margin-left: 2px; }
.action-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 7px; }
.act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 64px; padding: 8px 2px; border-radius: 15px; text-decoration: none; text-align: center;
  background: var(--surface-2); border: 1px solid var(--line); font: 600 12px/1.1 var(--f-body); color: var(--ink);
}
.act .ic { color: var(--gold); }
.act.is-off { color: var(--muted); opacity: 0.6; }
.act.is-off .ic { color: var(--muted); }
.deal {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; border-radius: 18px;
  background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
}
.deal .btn { grid-column: 1 / -1; white-space: normal; text-align: center; padding: 10px 14px; }
.deal-note { grid-column: 1 / -1; margin: 0; display: flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; font-size: 14px; }
.web-line { display: flex; gap: 8px; margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.web-line .ic { width: 16px; height: 16px; margin-top: 1px; color: var(--gold); }
.web-line b { color: var(--gold); font-weight: 600; }
.addr { display: flex; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.addr .ic { width: 16px; height: 16px; margin-top: 1px; }

.redacted {
  display: grid; gap: 8px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, transparent 10px 20px);
}
.redacted i { display: block; height: 10px; border-radius: 6px; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.redacted span { display: flex; align-items: center; gap: 6px; margin-top: 4px; font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.redacted .ic { width: 13px; height: 13px; }

/* ------------------------------------------------------------------ Video mode */
.masked {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 2px 9px 2px 7px; border-radius: 8px; vertical-align: middle;
  font: 500 0.94em/1.25 var(--f-mono); letter-spacing: 0.02em; color: var(--gold);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--gold) 18%, transparent) 0 6px, color-mix(in srgb, var(--gold) 7%, transparent) 6px 12px);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
}
.masked .ic { width: 0.9em; height: 0.9em; }
html.video .priv, html.video .priv-num { display: none !important; }
html.video .priv-input { filter: blur(7px); }
html.video .topbar { box-shadow: inset 0 -2px 0 rgba(255, 92, 66, 0.55); }

/* ------------------------------------------------------------------ Kasa */
.funnel { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.f-row { display: grid; grid-template-columns: 76px 1fr 30px 42px; align-items: center; gap: 10px; }
.f-label { font-size: 13.5px; font-weight: 600; }
.f-bar { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.f-bar i { display: block; height: 100%; border-radius: inherit; }
.f-bar i.tone-sea { background: var(--sea); }
.f-bar i.tone-amber { background: var(--amber); }
.f-bar i.tone-green { background: var(--green); }
.f-row b { font: 600 16px/1 var(--f-mono); text-align: right; }
.f-row em { font: 500 12px/1 var(--f-mono); font-style: normal; color: var(--muted); text-align: right; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.kpis > div { padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.kpis small { display: block; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kpis b { display: block; margin-top: 6px; font: 650 24px/1 var(--f-display); letter-spacing: -0.02em; white-space: nowrap; }

.quick {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 12px; padding: 12px; border-radius: 18px; text-align: left;
  border: 1.5px dashed color-mix(in srgb, var(--gold) 55%, transparent); background: var(--gold-soft);
}
.quick-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); flex: none; }
.quick b { display: block; font-size: 15.5px; }
.quick small { color: var(--muted); font-size: 13px; }
.entry { display: grid; gap: 14px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.seg-kind { display: grid; grid-template-columns: 1fr 1fr; }
.seg-kind button { min-height: 42px; font-size: 14.5px; }
.seg-kind [data-kind="gelir"][aria-pressed="true"] { background: var(--green); color: #0A1A10; }
.seg-kind [data-kind="gider"][aria-pressed="true"] { background: var(--coral); color: #250A04; }
:root[data-theme="light"] .seg-kind [aria-pressed="true"] { color: #fff; }
.amount-wrap { position: relative; display: block; }
.field-amount input { font: 500 30px/1.2 var(--f-mono); padding-right: 46px; min-height: 64px; letter-spacing: -0.01em; }
.amount-wrap em { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 500 22px/1 var(--f-body); font-style: normal; color: var(--muted); }

.ledger { list-style: none; margin: 0; padding: 4px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.led { display: grid; grid-template-columns: 32px 1fr auto 44px; align-items: center; gap: 10px; min-height: 64px; }
.led + .led { border-top: 1px solid var(--line); }
.led-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 600 17px/1 var(--f-mono); }
.led-ic.is-in { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.led-ic.is-out { color: var(--coral); background: color-mix(in srgb, var(--coral) 14%, transparent); }
.led-main { display: grid; min-width: 0; }
.led-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.led-main small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.led-main small .masked { font-size: 11px; padding: 0 6px; }
.led-amt { font: 500 15.5px/1 var(--f-mono); white-space: nowrap; }
.led-del { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); font: 600 13px var(--f-body); }
.led-del .ic { width: 17px; height: 17px; }
.led-del.is-confirm { background: var(--coral); color: #fff; }

/* ------------------------------------------------------------------ Çekim */
.checks { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.check-row { display: flex; align-items: flex-start; gap: 14px; width: 100%; min-height: 54px; padding: 12px 10px; border-radius: 14px; text-align: left; }
.check-row:active { background: var(--surface-2); }
.check-row .box {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  border: 2px solid var(--line-strong); color: transparent; transition: background 0.15s, border-color 0.15s;
}
.check-row .box .ic { width: 16px; height: 16px; }
.check-text { padding-top: 2px; font-size: 15px; line-height: 1.45; }
.check-row[aria-pressed="true"] .box { background: var(--green); border-color: var(--green); color: #0A1A10; }
.check-row[aria-pressed="true"] .check-text { color: var(--muted); }
.ref { padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.ref .block-head { margin-bottom: 8px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps > li { position: relative; padding-left: 38px; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font: 600 12.5px/1 var(--f-mono); color: var(--on-gold); background: var(--gold);
}
.steps h3 { margin: 3px 0 6px; font: 500 12px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.steps ul, .rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.steps ul li, .rules li { position: relative; padding-left: 16px; font-size: 15px; }
.steps ul li::before, .rules li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--sea); }
.quote {
  margin: 10px 0; padding: 12px 14px 12px 16px; border-left: 3px solid var(--gold); border-radius: 4px 14px 14px 4px;
  background: var(--gold-soft); font: italic 500 17px/1.45 var(--f-display); color: var(--ink);
}
.quote-label { display: block; margin-bottom: 4px; font: normal 500 11px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

/* ------------------------------------------------------------------ sheet & toast */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 12, 0.6); opacity: 0; transition: opacity 0.22s; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px var(--pad) calc(24px + env(safe-area-inset-bottom, 0px));
  border-radius: 26px 26px 0 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  transform: translateY(100%); transition: transform 0.24s cubic-bezier(.2, .8, .2, 1);
}
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-head h2 { margin: 0; font: 650 26px/1.1 var(--f-display); }
.sheet-body { display: grid; gap: 4px; }
.set { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.set:first-child { border-top: 0; }
.set h3 { margin: 0; font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.set .seg { display: grid; grid-template-columns: repeat(3, 1fr); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; text-align: left; padding: 4px 0; min-height: 56px; }
.switch-row b { display: block; font-size: 15.5px; }
.switch-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.switch { flex: none; width: 52px; height: 32px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background 0.2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.switch-row[aria-pressed="true"] .switch { background: #FF5C42; }
.switch-row[aria-pressed="true"] .switch i { transform: translateX(20px); }
.kv { margin: 0; display: grid; gap: 8px; }
.kv > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; }
.export-grid { display: grid; gap: 8px; }
.export-grid .btn { justify-content: flex-start; }
.venue-form { display: grid; gap: 14px; padding-top: 6px; }
.privacy-note {
  margin: -4px 0 0; display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.45; color: var(--ink);
  background: rgba(255, 92, 66, 0.1); border: 1px solid rgba(255, 92, 66, 0.32);
}
.privacy-note .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #FF5C42; }
.privacy-intro { display: grid; gap: 14px; padding: 6px 0 4px; }
.privacy-badge {
  justify-self: start; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 99px;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.1em; color: #FFD8CF;
  background: rgba(255, 92, 66, 0.16); border: 1px solid rgba(255, 92, 66, 0.4);
}
.privacy-badge .ic { width: 13px; height: 13px; color: #FF5C42; }
:root[data-theme="light"] .privacy-badge { color: #A3321F; }
.privacy-lead { margin: 0; font-size: 16.5px; line-height: 1.5; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.privacy-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.privacy-list .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--muted); }
.privacy-list em { font-style: normal; font-family: var(--f-mono); font-size: 13px; color: var(--ink); }
.privacy-intro .fine { margin: 0; }
.pw-form { display: grid; gap: 12px; }
.pw-title { font-size: 15.5px; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 52px; }
.pw-eye {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--muted);
}
.pw-eye .ic { width: 20px; height: 20px; }
.pw-eye[aria-pressed="true"] { color: var(--ink); }
.pw-form .fine { margin: 0; }
#revokeBtn.is-confirm { color: var(--coral); border-color: color-mix(in srgb, var(--coral) 55%, transparent); }
#revokeBtn + .fine { margin: -4px 0 0; }
#locBtn.is-on { color: var(--green); border-color: color-mix(in srgb, var(--green) 50%, transparent); }

.toast {
  position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; z-index: 50;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 14px);
  display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 12px 16px; border-radius: 16px;
  background: #F3EADB; color: #10232B; font-size: 14.5px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
  transform: translateY(12px); opacity: 0; transition: transform 0.22s, opacity 0.22s;
}
.toast.show { transform: none; opacity: 1; }
.toast .ic { color: #B87A16; }
.toast .masked { color: #8A5A0C; }
:root[data-theme="light"] .toast { background: #10232B; color: #F3EADB; }
:root[data-theme="light"] .toast .ic { color: var(--gold-2); }

/* ------------------------------------------------------------------ desktop */
@media (min-width: 1024px) {
  :root { --pad: 32px; }
  .main { max-width: 1180px; padding-left: 132px; padding-right: 40px; padding-bottom: 60px; }
  .topbar-inner { max-width: none; padding-left: 36px; padding-right: 40px; }
  .tabbar {
    top: calc(56px + env(safe-area-inset-top, 0px)); bottom: 0; right: auto; width: 104px;
    flex-direction: column; justify-content: flex-start; gap: 6px; padding: 18px 12px;
    border-top: 0; border-right: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  }
  .tabbar button { flex: none; height: 76px; border-radius: 18px; }
  .tabbar button[aria-current="page"] { background: var(--gold-soft); }
  .tabbar button[aria-current="page"]::before { top: 18px; left: -12px; width: 3px; height: 40px; border-radius: 0 3px 3px 0; }
  .toast { bottom: 28px; }
  .page-title { font-size: 52px; }
  .bugun-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: stretch; }
  .bugun-grid .tiles { margin-top: 16px; }
  .bugun-grid .tile { align-content: end; }
  .hero-num { font-size: min(120px, calc(100cqw / (var(--chars, 7) * 0.6))); }
  .chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
  .cards { grid-template-columns: 1fr 1fr; align-items: start; }
  .next-btn { max-width: 520px; }
  .kasa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .kasa-grid .block:first-child { margin-top: 16px; }
  .cekim-grid { columns: 2; column-gap: 24px; }
  .cekim-grid > .block { break-inside: avoid; margin-top: 0; margin-bottom: 24px; padding-top: 16px; }
  .cekim-grid > .ref { padding-top: 18px; }
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 26px; border-bottom: 1px solid var(--line); transform: translateY(24px); opacity: 0; transition: transform 0.24s, opacity 0.24s; }
  .sheet-wrap.open .sheet { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
