/* ============================================================
   PALET TAKİP V2 — TEMA (K106: mavi tema)
   Renkler YALNIZ burada tanımlanır; ekran kodu var(--…) kullanır.
   Dış kaynak yok: sistem yazı tipi, gömülü SVG ikonlar.
   Kırılma: < 960px telefon düzeni (alt menü), ≥ 960px masaüstü (yan menü).
   ============================================================ */
:root {
  --blue: #3F6BF6; --blue-dark: #2F55D4; --blue-soft: #E8EEFF; --blue-ink: #1E3A9E;
  --bg: #F2F4F9; --card: #FFFFFF; --ink: #12151C; --muted: #6B7486; --line: #E4E8F0;
  --green: #0F8A5F; --green-soft: #E2F5EC;
  --red: #C9353B; --red-soft: #FCE9EA;
  --amber: #A56800; --amber-soft: #FFF2D6;
  --violet: #6B4FD8; --violet-soft: #EEE9FF;
  --veil: rgba(18, 21, 28, .46);
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --shadow: 0 6px 20px rgba(31, 45, 90, .07);
  --shadow-up: 0 -6px 24px rgba(31, 45, 90, .09);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none; font-size: 15px; line-height: 1.35;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
button:disabled { opacity: .5; cursor: default; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(63, 107, 246, .45); outline-offset: 2px; }

/* Dokunma tepkisi: basınca hafifçe küçülür (telefon uygulaması hissi). */
.tap { transition: transform .12s var(--ease), background-color .15s, box-shadow .15s; }
.tap:active:not(:disabled) { transform: scale(.97); }

/* ---------- Kabuk ---------- */
.shell { min-height: 100dvh; display: flex; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.page { width: 100%; max-width: 560px; margin: 0 auto; padding: calc(18px + var(--safe-t)) 18px calc(116px + var(--safe-b)); }
.page.is-form { padding-bottom: calc(32px + var(--safe-b)); }
.page.enter > * { animation: rise .42s var(--ease) both; }
.page.enter > *:nth-child(2) { animation-delay: .04s; }
.page.enter > *:nth-child(3) { animation-delay: .08s; }
.page.enter > *:nth-child(4) { animation-delay: .12s; }
.page.enter > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.side { display: none; }

/* Alt menü (telefon) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--card);
  display: grid; grid-template-columns: 1fr 1fr 78px 1fr 1fr; align-items: end;
  padding: 8px 8px calc(10px + var(--safe-b)); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-up);
}
.tab { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); position: relative; border-radius: 14px; }
.tab.on { color: var(--blue); }
.tab.on svg { animation: pop .36s var(--spring); }
@keyframes pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
.badge { position: absolute; top: 3px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: var(--card); font-size: 11px; font-weight: 700; display: grid; place-items: center; animation: pop .4s var(--spring); }
.fab { width: 64px; height: 64px; border-radius: 22px; background: var(--blue); color: var(--card); margin: 0 auto; transform: translateY(-22px); box-shadow: 0 10px 22px rgba(63, 107, 246, .42); display: grid; place-items: center; transition: transform .16s var(--spring), background-color .15s; }
.fab:active { transform: translateY(-22px) scale(.92); background: var(--blue-dark); }

/* ---------- Üst bölüm ---------- */
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.avatar { width: 46px; height: 46px; border-radius: 15px; background: var(--blue); color: var(--card); display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; }
.avatar.sm { width: 40px; height: 40px; border-radius: 13px; font-size: 15px; }
.top-text { flex: 1; min-width: 0; }
.top-text small { display: block; color: var(--muted); font-size: 13px; }
.top-text strong { display: block; font-size: 18px; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round { width: 46px; height: 46px; border-radius: 50%; background: var(--card); display: grid; place-items: center; position: relative; box-shadow: var(--shadow); flex: none; }
.round .badge { top: 5px; left: auto; right: 4px; border: 2px solid var(--card); height: 20px; min-width: 20px; }
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; min-height: 46px; }
.head-text { flex: 1; min-width: 0; }
.head h1 { font-size: 22px; letter-spacing: -.4px; }
.head p, .top-text p { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; max-width: 620px; }
.btn.auto { width: auto; flex: none; padding: 0 16px; }
.head .link { color: var(--blue); font-weight: 600; font-size: 14px; min-height: 44px; padding: 0 6px; }

/* ---------- Özet kutuları ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.tile { background: var(--card); border-radius: var(--r-md); padding: 14px 12px; box-shadow: var(--shadow); text-align: left; min-width: 0; }
.tile .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 12px; }
.tile.warn .ic { background: var(--amber-soft); color: var(--amber); }
.tile b { display: block; font-size: 20px; letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bölüm çizgisi: işlem düğmeleri ile altındaki liste ayrı yerlerdir. */
.divider { border: 0; border-top: 1px solid var(--line); margin: 28px 0 24px; }
.sec { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; min-height: 34px; }
.sec h2 { font-size: 16px; letter-spacing: -.2px; }
.sec a { font-size: 13px; color: var(--blue); font-weight: 600; padding: 8px 0 8px 12px; }
.only-desktop { display: none; }

/* ---------- Kart ve satır ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 4px 16px; margin-bottom: 20px; }
.card.pad { padding: 18px; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); min-height: 60px; }
.row:last-child { border-bottom: 0; }
.row.is-cancelled { opacity: .5; }
.row.is-cancelled .row-end b { text-decoration: line-through; }
button.row, a.row { width: 100%; text-align: left; }
.bubble { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue); }
.bubble.in { background: var(--green-soft); color: var(--green); }
.bubble.cash { background: var(--amber-soft); color: var(--amber); }
.bubble.danger { background: var(--red-soft); color: var(--red); }
/* Palet türleri sırayla dört tonla ayrışır. */
.bubble.tone-1 { background: var(--green-soft); color: var(--green); }
.bubble.tone-2 { background: var(--amber-soft); color: var(--amber); }
.bubble.tone-3 { background: var(--violet-soft); color: var(--violet); }
.row-main { flex: 1; min-width: 0; }
.row-main b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.row-main small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.row-end { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row-end b { font-size: 16px; white-space: nowrap; }
.row-end b.plus { color: var(--green); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pill.wait { background: var(--amber-soft); color: var(--amber); }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.no { background: var(--red-soft); color: var(--red); }
.pill.off { background: var(--line); color: var(--muted); }
/* Kayıt satırı. Telefonda iki kat: üstte başlık, altta "kim · ne zaman"; sağda rakam ve "⋯". */
.row.rec { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 36px; column-gap: 12px; align-items: center; }
.row.rec > .bubble { grid-row: 1 / 3; }
.rec-main { grid-column: 2; min-width: 0; align-self: end; }
.rec-main b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.rec-main small, .rec-meta small { color: var(--muted); font-size: 12.5px; }
.rec-main small { display: block; margin-top: 2px; }
.rec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.rec-meta { grid-column: 2; grid-row: 2; display: flex; gap: 5px; min-width: 0; align-self: start; margin-top: 2px; }
.rec-meta .rec-when::before { content: "· "; }
.rec-end { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rec-end b { font-size: 16px; white-space: nowrap; }
.rec-end b.plus { color: var(--green); }
.row.rec > .more { grid-column: 4; grid-row: 1 / 3; }
.row.rec.is-cancelled .rec-end b { text-decoration: line-through; }
button.more { width: 36px; height: 44px; border-radius: 12px; color: var(--muted); display: grid; place-items: center; }
button.more:hover { background: var(--bg); color: var(--ink); }
.row.rec.rec-head { display: none; }
.sheet-hint { margin: -6px 2px 14px; }
.last-handover { margin-top: 16px; }
.empty { padding: 30px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 8px 2px 0; line-height: 1.45; }
.note.info { background: var(--blue-soft); color: var(--blue-ink); }
.note { background: var(--amber-soft); color: var(--amber); border-radius: var(--r-md); padding: 14px 16px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; line-height: 1.45; }

/* Yüklenirken iskelet */
.skel { border-radius: var(--r-md); background: linear-gradient(90deg, var(--line) 25%, var(--bg) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; margin-bottom: 12px; }
.skel.h1 { height: 46px; width: 60%; } .skel.h2 { height: 96px; } .skel.h3 { height: 220px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Para kartı ---------- */
.money { background: var(--blue); color: var(--card); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; position: relative; overflow: hidden; }
.money::before, .money::after { content: ""; position: absolute; border-radius: 44px; background: rgba(255, 255, 255, .1); transform: rotate(30deg); }
.money::after { right: -40px; top: -50px; width: 170px; height: 170px; }
.money::before { right: 70px; bottom: -90px; width: 130px; height: 130px; }
.money small { opacity: .88; font-size: 13px; }
.money .big { font-size: 36px; font-weight: 700; letter-spacing: -1px; margin: 4px 0 14px; }
.money .split { display: flex; gap: 26px; font-size: 13px; position: relative; z-index: 1; }
.money .split b { display: block; font-size: 16px; margin-top: 2px; }

/* ---------- Kayıtlar özeti ---------- */
.seg { display: flex; background: var(--line); border-radius: var(--r-md); padding: 4px; margin-bottom: 14px; }
.seg button { flex: 1; min-height: 46px; border-radius: 13px; font-size: 15px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--blue-dark); box-shadow: 0 1px 5px rgba(0, 0, 0, .1); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { border-radius: var(--r-md); padding: 14px 12px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.stat span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.stat b { display: block; font-size: 24px; letter-spacing: -.6px; margin: 6px 0 2px; white-space: nowrap; }
.stat small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.stat.in b { color: var(--green); } .stat.out b { color: var(--blue-dark); }
.stat.cash b { color: var(--amber); font-size: 19px; margin-top: 10px; }
.row.thead { font-size: 12px; font-weight: 700; color: var(--muted); min-height: 0; padding: 11px 0; }
.col { width: 66px; text-align: right; font-size: 16px; font-weight: 700; flex: none; }
.row.thead .col { font-size: 12px; }
.col.plus { color: var(--green); }
.col.none { color: var(--muted); font-weight: 500; }
.chips { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); font-size: 13.5px; font-weight: 600; color: var(--muted); box-shadow: var(--shadow); }
.chips button.on { background: var(--blue); color: var(--card); }

/* ---------- Form ---------- */
.label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 2px 8px; display: block; }
.field { margin-bottom: 20px; }
.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { background: var(--card); border: 2px solid transparent; border-radius: var(--r-md); padding: 12px 14px; text-align: left; box-shadow: var(--shadow); min-height: 64px; display: flex; align-items: center; gap: 12px; width: 100%; }
.choice b { display: block; font-size: 15px; }
.choice small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.choice.on { border-color: var(--blue); background: var(--blue-soft); }
.choice .tick { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; color: transparent; transition: background-color .15s, border-color .15s; }
.choice.on .tick { background: var(--blue); border-color: var(--blue); color: var(--card); }
.choice.on .tick svg { animation: pop .3s var(--spring); }
.stepper { display: flex; align-items: center; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 8px; }
.stepper button { width: 58px; height: 58px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-size: 28px; font-weight: 600; flex: none; }
.stepper input { flex: 1; min-width: 0; border: 0; background: none; text-align: center; font-size: 30px; font-weight: 700; outline: none; }
.input { width: 100%; height: 60px; border-radius: var(--r-md); border: 2px solid transparent; background: var(--card); box-shadow: var(--shadow); padding: 0 18px; font-size: 20px; font-weight: 600; outline: none; transition: border-color .15s; }
.input:focus { border-color: var(--blue); }
.input.pin { letter-spacing: 10px; text-align: center; font-size: 26px; }
.btn { width: 100%; min-height: 58px; border-radius: var(--r-md); background: var(--blue); color: var(--card); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; }
.btn:active:not(:disabled) { background: var(--blue-dark); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.sm { min-height: 46px; font-size: 14px; }
.btn.is-busy { pointer-events: none; opacity: .7; }
.btn.is-busy::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.sum { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 4px 18px; margin-bottom: 18px; }
.sum div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sum div:last-child { border-bottom: 0; }
.sum b { font-size: 17px; white-space: nowrap; }

/* Kaynağa göre görünen alanlar: form[data-source] ekran kodu olmadan alanı açar/kapatır. */
[data-form][data-source="internal"] .only-external { display: none; }

/* ---------- Katmanlar ---------- */
.veil { position: fixed; inset: 0; background: var(--veil); z-index: 10; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease both; }
.veil.center { align-items: center; padding: 22px; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 18px calc(24px + var(--safe-b)); animation: slide-up .34s var(--ease) both; }
.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
.sheet h3 { font-size: 19px; margin-bottom: 14px; letter-spacing: -.3px; }
@keyframes slide-up { from { transform: translateY(100%); } }
.dialog { width: 100%; max-width: 360px; background: var(--card); border-radius: 28px; padding: 26px 22px 22px; text-align: center; animation: zoom .3s var(--spring) both; }
@keyframes zoom { from { opacity: 0; transform: scale(.88); } }
.dialog .ring { width: 76px; height: 76px; border-radius: 26px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin: 0 auto 16px; }
.dialog .ring.shake { animation: ring .9s ease-in-out 2; }
.dialog .ring.danger { background: var(--red-soft); color: var(--red); }
.dialog h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.3px; }
.dialog p { color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-bottom: 20px; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(8deg); } }
.toast { position: fixed; left: 50%; top: calc(18px + var(--safe-t)); transform: translateX(-50%); background: var(--ink); color: var(--card); padding: 13px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 20; max-width: min(92%, 460px); text-align: center; box-shadow: 0 10px 30px rgba(18, 21, 28, .25); animation: drop .36s var(--spring) both; }
.toast.bad { background: var(--red); }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -24px); } }

/* ---------- Giriş ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.auth-hero { position: relative; min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--card); overflow: hidden; padding: calc(28px + var(--safe-t)) 24px 56px; background: var(--blue); }
/* Fotoğraf projeye gömülüdür (assets/img/login.jpg); üstüne mavi bir örtü biner ki yazı okunsun. */
.auth-photo { position: absolute; inset: 0; background: url("img/login.jpg") center / cover no-repeat; }
.auth-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(47, 85, 212, .9), rgba(63, 107, 246, .72)); }
.auth-brand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: rise .6s var(--ease) both; }
.auth-brand strong { font-size: 24px; letter-spacing: 3px; font-weight: 800; }
.auth-brand span { opacity: .9; font-size: 14px; }
.auth-points { display: none; }
.auth-card { position: relative; background: var(--bg); border-radius: 30px 30px 0 0; margin-top: -30px; padding: 26px 22px calc(26px + var(--safe-b)); flex: 1; animation: slide-up .5s var(--ease) both; }
.auth-inner { max-width: 420px; margin: 0 auto; }
.auth-card h1 { font-size: 24px; letter-spacing: -.4px; }
.auth-lead { color: var(--muted); font-size: 14px; margin: 4px 0 20px; line-height: 1.45; }
.form-error { color: var(--red); font-weight: 600; font-size: 14px; min-height: 22px; margin: -6px 2px 12px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; font-weight: 600; margin: 18px 0 14px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hint.center { text-align: center; }
/* Dil seçici: giriş ekranında ve profil penceresinde. */
.lang-switch { display: flex; gap: 6px; background: var(--line); border-radius: 14px; padding: 4px; margin: 18px auto 0; max-width: 260px; }
.lang-switch button { flex: 1; min-height: 44px; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--muted); }
.lang-switch button.on { background: var(--card); color: var(--blue-dark); box-shadow: 0 1px 5px rgba(0, 0, 0, .1); }
.sheet .lang-switch { margin: 0 0 4px; max-width: none; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 13px; }
.auth-foot a { color: var(--blue); font-weight: 600; padding: 12px; display: inline-block; }
.demo-flag { position: fixed; bottom: calc(96px + var(--safe-b)); left: 14px; z-index: 6; background: var(--amber); color: var(--card); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; padding: 4px 12px; border-radius: 999px; pointer-events: none; }

/* ---------- Masaüstü ---------- */
@media (min-width: 960px) {
  .tabbar { display: none; }
  .side { display: flex; flex-direction: column; width: 264px; flex: none; background: var(--card); padding: 22px 16px; position: sticky; top: 0; height: 100dvh; box-shadow: var(--shadow); z-index: 2; }
  .brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; font-weight: 800; font-size: 17px; letter-spacing: .5px; }
  .brand .bubble { background: var(--blue); color: var(--card); }
  .side .btn { margin-bottom: 18px; }
  .side-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 14px; font-weight: 600; color: var(--muted); margin-bottom: 4px; position: relative; transition: background-color .15s, color .15s; }
  .side-link:hover { background: var(--bg); color: var(--ink); }
  .side-link.on { background: var(--blue-soft); color: var(--blue-ink); }
  .side-link .badge { position: static; margin-left: auto; }
  .side-title { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; padding: 18px 14px 8px; }
  .only-mobile { display: none; }
  .side-foot { margin-top: auto; }
  .side-user { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 16px; text-align: left; }
  .side-user:hover { background: var(--bg); }
  /* Masaüstünde her ekran AYNI genişlikte ve sola yaslıdır: menüden menüye geçerken içerik yer değiştirmez. */
  .page, .page.is-form, .page.is-narrow { max-width: 1080px; margin: 0; padding: 34px 44px 60px; }
  /* Form alanları geniş ekranda uzamasın: sayfa aynı genişlikte kalır, alanlar okunur ölçüde durur. */
  .page form[data-form], .page.is-form > .sum, .page.is-form > .note, .page.is-form > .btn { max-width: 560px; }
  /* Form + canlı özet yan yana. */
  .form-cols { display: grid; grid-template-columns: 560px minmax(0, 380px); gap: 40px; align-items: start; }
  .summary { position: sticky; top: 34px; }
  .summary h2 { font-size: 16px; margin: 0 2px 10px; }
  .only-desktop { display: block; }
  /* Yan menüden açılan ekranda geri oku yoktur. */
  .page.is-menu .head > .back { display: none; }
  /* Kayıt listesi tam genişlikte (Kayıtlar ekranı) sütunlu tablodur; yarım sütundaki listeler sıkı kalır. */
  .rec-table .row.rec { grid-template-columns: 44px minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(120px, auto) 36px; column-gap: 16px; min-height: 64px; }
  .rec-table .row.rec > .bubble, .rec-table .rec-end, .rec-table .row.rec > .more { grid-row: auto; }
  .rec-table .rec-main, .rec-table .rec-end, .rec-table .row.rec > .more { grid-column: auto; }
  .rec-table .rec-main { align-self: center; }
  .card .btn-row { max-width: 420px; }
  .rec-table .rec-meta { display: contents; }
  .rec-table .rec-meta small { font-size: 13.5px; color: var(--ink); }
  .rec-table .rec-meta .rec-when::before { content: none; }
  .rec-table .rec-end { align-items: flex-end; justify-content: center; }
  .rec-table .row.rec.rec-head { display: grid; min-height: 0; padding: 12px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
  .rec-table .rec-head .rec-meta small { font-size: 12px; font-weight: 700; color: var(--muted); }
  .rec-table .rec-head .rec-end { font-size: 12px; }
  .page .top .round, .page .top .avatar { display: none; }
  .top-text strong { font-size: 26px; }
  .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .cols > section > .money:first-child, .cols > section > .sec:first-child { margin-top: 0; }
  .tiles { gap: 16px; } .tile { padding: 20px; } .tile b { font-size: 26px; }
  .stats { gap: 16px; } .stat { padding: 20px; } .stat b { font-size: 30px; } .stat.cash b { font-size: 26px; margin-top: 6px; }
  .veil { align-items: center; padding: 24px; }
  .sheet { border-radius: 28px; max-width: 480px; padding-top: 24px; animation-name: zoom; animation-timing-function: var(--spring); }
  .sheet::before { display: none; }
  /* Giriş: solda fotoğraflı tanıtım, sağda form. */
  .auth { flex-direction: row; }
  .auth-hero { flex: 1.15; min-height: 100dvh; align-items: flex-start; justify-content: space-between; padding: 56px 64px; }
  .auth-brand { align-items: flex-start; text-align: left; }
  .auth-brand strong { font-size: 30px; }
  .auth-brand span { font-size: 16px; }
  .auth-points { position: relative; display: grid; gap: 16px; list-style: none; font-size: 17px; font-weight: 600; max-width: 460px; }
  .auth-points li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.4; }
  .auth-points svg { margin-top: 3px; padding: 3px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
  .auth-card { flex: 1; margin-top: 0; border-radius: 0; display: flex; align-items: center; padding: 48px; animation-name: fade; background: var(--card); }
  .auth-inner { width: 100%; }
  .auth-card .input { background: var(--bg); box-shadow: none; }
  .demo-flag { left: calc(264px + 44px); top: 8px; bottom: auto; }
}

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

/* ---------- Gizlilik bildirimi (privacy.html) ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: calc(28px + var(--safe-t)) 22px 60px; line-height: 1.6; }
.legal h1 { font-size: 28px; letter-spacing: -.5px; margin: 14px 0 4px; }
.legal h2 { font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.legal-back { color: var(--blue); font-weight: 600; font-size: 14px; display: inline-block; padding: 10px 0; }
