/* ---------- Yazı tipi: Inter (SIL OFL, fonts/Inter-LICENSE.txt) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'), url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ==========================================================
   Komuta Merkezi — tasarım sistemi
   Temalar: navy (Lacivert & Sarı) · violet (Mor & Pembe) · mono (Siyah & Beyaz) · light
   ========================================================== */
:root, [data-theme="navy"] {
  --bg: #070d1c;
  --glow-1: rgba(245, 197, 24, .10);
  --glow-2: rgba(59, 130, 246, .16);
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .07);
  --solid: #0e1830;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #e9eef8;
  --muted: #8794ad;
  --accent: #f5c518;
  --accent-2: #ffb800;
  --on-accent: #191300;
  --ring: rgba(245, 197, 24, .35);
  --nav: rgba(9, 15, 31, .78);
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
[data-theme="violet"] {
  --bg: #0c0615;
  --glow-1: rgba(236, 72, 153, .16);
  --glow-2: rgba(147, 51, 234, .22);
  --solid: #1a0f2b;
  --text: #f4ecff;
  --muted: #a091b8;
  --accent: #e879f9;
  --accent-2: #f472b6;
  --on-accent: #22042b;
  --ring: rgba(232, 121, 249, .35);
  --nav: rgba(18, 9, 30, .8);
}
[data-theme="mono"] {
  --bg: #000;
  --glow-1: rgba(255, 255, 255, .05);
  --glow-2: rgba(255, 255, 255, .03);
  --surface: rgba(255, 255, 255, .04);
  --solid: #0d0d0d;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --accent: #ffffff;
  --accent-2: #cfcfcf;
  --on-accent: #000;
  --ring: rgba(255, 255, 255, .3);
  --nav: rgba(0, 0, 0, .8);
}
[data-theme="gold"] {
  --bg: #050403;
  --glow-1: rgba(212, 175, 55, .14);
  --glow-2: rgba(150, 110, 30, .12);
  --surface: rgba(212, 175, 55, .045);
  --surface-2: rgba(212, 175, 55, .09);
  --solid: #100d08;
  --border: rgba(212, 175, 55, .14);
  --border-strong: rgba(212, 175, 55, .3);
  --text: #f6efdc;
  --muted: #a8997a;
  --accent: #d4af37;
  --accent-2: #f3d27a;
  --on-accent: #1a1203;
  --ring: rgba(212, 175, 55, .4);
  --nav: rgba(8, 6, 3, .82);
}
[data-theme="light"] {
  --bg: #f3f5fa;
  --glow-1: rgba(250, 204, 21, .18);
  --glow-2: rgba(30, 58, 138, .10);
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --solid: #ffffff;
  --border: rgba(12, 22, 48, .08);
  --border-strong: rgba(12, 22, 48, .16);
  --text: #0b1430;
  --muted: #5d6781;
  --accent: #1e3a8a;
  --accent-2: #3557c9;
  --on-accent: #fff;
  --ring: rgba(30, 58, 138, .25);
  --nav: rgba(255, 255, 255, .85);
  --shadow: 0 10px 30px -14px rgba(15, 30, 70, .25);
  color-scheme: light;
}

:root {
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --r: 20px;
  --r-sm: 12px;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable", "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; color: var(--text); font-size: calc(15px * var(--fs, 1)); line-height: 1.45;
  background:
    radial-gradient(900px 520px at 100% -8%, var(--glow-1), transparent 60%),
    radial-gradient(800px 500px at -15% 8%, var(--glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em; padding: 1px 5px; border-radius: 6px; background: var(--surface-2); }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.xs { width: 14px; height: 14px; vertical-align: -2px; }
.ic.flip { transform: rotate(180deg); opacity: .5; }

/* ---------- Yerleşim ---------- */
.view {
  max-width: 680px; margin: 0 auto;
  padding: calc(var(--safe-t) + 18px) 16px calc(var(--safe-b) + 104px);
  animation: in .28s ease;
}
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
.splash { display: grid; place-items: center; height: 60vh; }
.splash-logo { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); animation: pulse 1s ease infinite alternate; }
@keyframes pulse { to { transform: scale(.9); opacity: .6; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 2px 18px; }
.page-head h1 { margin: 0; font-size: calc(28px * var(--fs, 1)); letter-spacing: -.02em; font-weight: calc(750 + var(--fw, 0)); line-height: 1.15; }
.page-head.home h1 { font-size: calc(30px * var(--fs, 1)); }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: calc(12.5px * var(--fs, 1)); font-weight: calc(600 + var(--fw, 0)); letter-spacing: .06em; text-transform: uppercase; }
.head-actions { display: flex; gap: 8px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-title { font-size: calc(13px * var(--fs, 1)); font-weight: calc(700 + var(--fw, 0)); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 22px 4px 10px; display: flex; align-items: center; gap: 6px; }
.sec-title em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: calc(500 + var(--fw, 0)); }

.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; }
.row.wrap { flex-wrap: wrap; }
.gap { gap: 10px; } .gap-s { gap: 6px; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt { margin-top: 14px; }
.muted { color: var(--muted); }
.small { font-size: calc(13px * var(--fs, 1)); }
.hint { color: var(--muted); font-size: calc(13px * var(--fs, 1)); margin: 6px 0 10px; }
.warn-text { color: var(--warn); }
.danger-text { color: var(--danger) !important; }

/* ---------- Kartlar ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-head h2 { margin: 0; font-size: calc(15px * var(--fs, 1)); font-weight: calc(700 + var(--fw, 0)); display: flex; align-items: center; gap: 8px; }
.card-head h2 .ic { color: var(--accent); }
.link { color: var(--accent); font-size: calc(13px * var(--fs, 1)); font-weight: calc(600 + var(--fw, 0)); }
.card.due { border-color: var(--ring); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, transparent), var(--surface)); }

.banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px;
  border-radius: 16px; border: 1px solid var(--ring);
  background: color-mix(in srgb, var(--accent) 9%, transparent); font-size: calc(14px * var(--fs, 1));
}
.banner > .ic { color: var(--accent); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 16px; border-radius: 14px; font-weight: calc(650 + var(--fw, 0)); font-size: calc(14.5px * var(--fs, 1));
  transition: transform .12s ease, filter .15s, background .15s; white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--grad); color: var(--on-accent); box-shadow: 0 6px 20px -8px var(--ring); }
.btn.ghost { background: var(--surface-2); border: 1px solid var(--border); }
.btn.danger { background: var(--danger); color: #250707; }
.btn.sm { height: 34px; padding: 0 12px; font-size: calc(13px * var(--fs, 1)); border-radius: 11px; }
.btn.block { width: 100%; }
.btn.icon-only { width: 42px; padding: 0; }
.btn.sm.icon-only { width: 34px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); transition: transform .12s, background .15s, color .15s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn.accent { background: var(--grad); color: var(--on-accent); border: 0; box-shadow: 0 6px 20px -8px var(--ring); }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 11px; background: transparent; border-color: transparent; color: var(--muted); }
.icon-btn.sm:hover { background: var(--surface-2); }
.icon-btn.on { color: var(--accent); }
.icon-btn .ic { width: 19px; height: 19px; }

/* ---------- Çipler & pill ---------- */
.chips { display: flex; gap: 8px; margin: 10px 0; }
.chips.scroll { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: -2px; padding-inline: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 32px; padding: 0 12px; border-radius: 999px; font-size: calc(13px * var(--fs, 1)); font-weight: calc(600 + var(--fw, 0));
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: all .15s;
}
.chip em { font-style: normal; opacity: .65; font-weight: calc(500 + var(--fw, 0)); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.on, .chip:has(input:checked) {
  color: var(--text); border-color: color-mix(in srgb, var(--c, var(--accent)) 60%, transparent);
  background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent);
}
.chip.ghost { background: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); display: inline-block; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: calc(12px * var(--fs, 1)); font-weight: calc(650 + var(--fw, 0)); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.accent { background: var(--grad); color: var(--on-accent); }
.pill.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill.danger { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }

/* ---------- Form ---------- */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: calc(12.5px * var(--fs, 1)); font-weight: calc(650 + var(--fw, 0)); color: var(--muted); }
.field em { font-style: normal; font-weight: calc(400 + var(--fw, 0)); opacity: .8; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select {
  width: 100%; border-radius: 13px; border: 1px solid var(--border); background: var(--surface-2);
  padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
select.sm { width: auto; padding: 6px 10px; height: 34px; border-radius: 11px; font-size: calc(13px * var(--fs, 1)); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
textarea { resize: vertical; min-height: 44px; }
textarea.mono { font-family: ui-monospace, Menlo, monospace; font-size: calc(12px * var(--fs, 1)); line-height: 1.4; }
input[type=range] { width: 100%; accent-color: var(--accent); }
::placeholder { color: var(--muted); opacity: .75; }
option { background: var(--solid); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: calc(14.5px * var(--fs, 1)); }
.switch-row > span { display: flex; align-items: center; gap: 8px; }
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border-strong); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch:checked { background: var(--grad); border-color: transparent; }
.switch:checked::after { transform: translateX(18px); background: var(--on-accent); }

.seg { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.seg > * { flex: 1; text-align: center; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span, .seg button { display: block; padding: 8px; border-radius: 10px; font-weight: calc(650 + var(--fw, 0)); font-size: calc(13.5px * var(--fs, 1)); color: var(--muted); cursor: pointer; }
.seg label:has(input:checked) span, .seg button.on { background: var(--solid); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.seg.tabs { margin-bottom: 14px; }

.search { position: relative; margin-bottom: 4px; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 40px !important; }
.addbar { display: flex; gap: 8px; margin-bottom: 10px; }
.addbar input { flex: 1; }
.addbar.sm { margin: 10px 0 0; }
.addbar.sm input { padding: 7px 11px; font-size: calc(13.5px * var(--fs, 1)); }

/* ---------- Ana sayfa ---------- */
.capture textarea { border: 0; background: transparent; padding: 2px; font-size: calc(16px * var(--fs, 1)); box-shadow: none !important; min-height: 52px; }
.capture-foot { display: flex; align-items: center; gap: 8px; }
.due-item { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border); }
.due-item:first-of-type { border-top: 0; padding-top: 0; }
.due-item small, .rt-main small, .shift small { display: block; color: var(--muted); font-size: calc(12.5px * var(--fs, 1)); margin-top: 2px; }
.line { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); font-size: calc(14px * var(--fs, 1)); }
.line .ic { color: var(--muted); }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 6px 0 12px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .4s ease; }
.rchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.rchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: calc(13.5px * var(--fs, 1)); font-weight: calc(600 + var(--fw, 0)); transition: all .15s; }
.rchip .ic { opacity: .3; }
.rchip small { color: var(--muted); font-weight: calc(500 + var(--fw, 0)); }
.rchip.done { background: color-mix(in srgb, var(--ok) 15%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.rchip.done .ic { opacity: 1; color: var(--ok); }
.rchip.done span { text-decoration: line-through; opacity: .7; }
.pinned-note { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.pinned-note:first-of-type { border-top: 0; }
.pinned-note .dot { margin-top: 7px; }
.pinned-note p { margin: 0; font-size: calc(14px * var(--fs, 1)); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile {
  position: relative; overflow: hidden; display: grid; gap: 2px; padding: 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); transition: transform .15s, border-color .15s;
}
.tile::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 120px; height: 120px; border-radius: 50%; background: var(--c); opacity: .09; filter: blur(10px); }
.tile:active { transform: scale(.97); }
.tile:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.tile-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.tile b { font-size: calc(14px * var(--fs, 1)); }
.tile small { color: var(--muted); font-size: calc(12px * var(--fs, 1)); }

/* ---------- Listeler ---------- */
.list { display: grid; gap: 10px; }
.empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 16px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--r); }
.empty .ic { width: 30px; height: 30px; color: var(--accent); opacity: .8; }
.empty b { color: var(--text); }
.empty small { font-size: calc(13px * var(--fs, 1)); max-width: 300px; }

.note, .citem, .goal, .routine, .shift, .item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: opacity .2s, border-color .2s;
}
.note, .citem { padding: 12px 14px 6px; border-left: 3px solid var(--c); }
.note.pinned { border-color: color-mix(in srgb, var(--c) 40%, transparent); border-left-color: var(--c); }
.note.done, .citem.done, .goal.done, .item.done { opacity: .5; }
.note.done .note-text { text-decoration: line-through; }
.note-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.note-top time { margin-left: auto; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-weight: calc(650 + var(--fw, 0)); color: var(--c); }
.note-text { margin: 8px 0 4px; white-space: normal; word-wrap: break-word; font-size: calc(15px * var(--fs, 1)); }
.note-text a, .citem a, .pinned-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.note-actions { display: flex; justify-content: flex-end; gap: 0; margin-right: -6px; }
.citem time { color: var(--muted); font-size: calc(12px * var(--fs, 1)); }
.citem details summary { cursor: pointer; font-size: calc(13.5px * var(--fs, 1)); margin-top: 4px; list-style: none; }
.citem details summary::-webkit-details-marker { display: none; }
.citem details[open] summary { display: none; }
.citem details p { margin: 6px 0 0; font-size: calc(14px * var(--fs, 1)); }

.check { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); color: transparent; transition: all .18s; }
.check.sm { width: 26px; height: 26px; }
.check .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.check.on { background: var(--grad); border-color: transparent; color: var(--on-accent); transform: scale(1.04); }
.routine { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.routine.done { border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.routine.done b { opacity: .6; text-decoration: line-through; }
.rt-main { flex: 1; min-width: 0; cursor: pointer; }
.streak { font-size: calc(13px * var(--fs, 1)); font-weight: calc(700 + var(--fw, 0)); color: var(--warn); }
.dots { display: flex; gap: 4px; margin-top: 7px; }
.dots i { width: 14px; height: 5px; border-radius: 3px; background: var(--surface-2); }
.dots i.on { background: var(--ok); }
.dots i.miss { background: color-mix(in srgb, var(--danger) 45%, transparent); }
.dots i.now { background: var(--border-strong); }
.dots i.off { opacity: .35; }
.hero-progress { display: flex; align-items: center; gap: 16px; }
.hero-progress small { display: block; margin-top: 2px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--solid); font-weight: calc(750 + var(--fw, 0)); font-size: calc(14px * var(--fs, 1)); }

.item { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 14px; cursor: pointer; font-size: calc(15px * var(--fs, 1)); text-align: left; width: 100%; }
.item.done span { text-decoration: line-through; }
.link-row { width: 100%; text-align: left; padding: 14px; }
.link-row > .ic:first-child { color: var(--accent); }

.shift { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 10px; }
.shift.past { opacity: .5; }
.shift .grow { cursor: pointer; }
.shift-date { width: 48px; height: 52px; border-radius: 12px; display: grid; place-items: center; align-content: center; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); }
.shift-date b { font-size: calc(19px * var(--fs, 1)); line-height: 1; }
.shift-date small { font-size: calc(11px * var(--fs, 1)); font-weight: calc(700 + var(--fw, 0)); text-transform: uppercase; }
.goal { padding: 14px; display: grid; gap: 4px; }
.goal b { cursor: pointer; }
.steps { display: grid; gap: 2px; margin-top: 6px; }
.step { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: calc(14px * var(--fs, 1)); cursor: pointer; }
.step input { width: 18px; height: 18px; accent-color: var(--accent); }
.step.done span { text-decoration: line-through; opacity: .55; }

.snips { display: grid; gap: 8px; }
.snip { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.snip-main { flex: 1; text-align: left; padding: 12px 14px; min-width: 0; transition: background .15s; }
.snip-main:active { background: var(--surface-2); }
.snip-main small { display: block; color: var(--muted); font-size: calc(13px * var(--fs, 1)); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snip-side { display: flex; align-items: center; padding-right: 4px; }
.scratch { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: calc(14px * var(--fs, 1)); line-height: 1.6; }
.calc-out { margin-top: 10px; display: grid; gap: 4px; font-size: calc(14px * var(--fs, 1)); }
.calc-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 2px; border-bottom: 1px dashed var(--border); }
.calc-row span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-row.total { border: 0; font-size: calc(16px * var(--fs, 1)); }
.calc-row.total b { color: var(--accent); cursor: pointer; }

/* ---------- Yönetim paneli ---------- */
.sects { display: grid; gap: 10px; }
.sect { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.sect summary { display: flex; align-items: center; gap: 12px; padding: 15px 16px; font-weight: calc(700 + var(--fw, 0)); cursor: pointer; list-style: none; }
.sect summary::-webkit-details-marker { display: none; }
.sect summary > .ic:first-child { color: var(--accent); }
.sect .chev { transform: rotate(-90deg); opacity: .5; transition: transform .2s; }
.sect[open] .chev { transform: rotate(90deg); }
.sect-body { padding: 0 16px 16px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: calc(14px * var(--fs, 1)); }
.kv small { display: block; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.stats div { background: var(--surface-2); border-radius: 12px; padding: 10px 6px; text-align: center; }
.stats b { display: block; font-size: calc(18px * var(--fs, 1)); }
.stats small { color: var(--muted); font-size: calc(11px * var(--fs, 1)); }
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.theme { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.theme.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.theme .sw { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); }
.theme small { font-size: calc(11px * var(--fs, 1)); text-align: center; color: var(--muted); }
.linkbox { margin-top: 12px; }
.linkbox input { font-size: calc(12px * var(--fs, 1)) !important; }
.lock-screen { display: grid; justify-items: center; text-align: center; gap: 6px; padding-top: 12vh; }
.lock-screen h1 { margin: 10px 0 0; }
.lock-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--grad); color: var(--on-accent); box-shadow: 0 14px 40px -12px var(--ring); }
.lock-ic .ic { width: 32px; height: 32px; }
.pin-form { display: grid; gap: 12px; width: min(280px, 100%); margin: 18px 0; }
.pin-form input { text-align: center; font-size: calc(26px * var(--fs, 1)); letter-spacing: .4em; }

/* ---------- Alt gezinme ---------- */
.bottomnav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 12px); z-index: 20;
  display: flex; gap: 2px; padding: 6px; width: min(460px, calc(100% - 24px));
  background: var(--nav); border: 1px solid var(--border); border-radius: 24px;
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .55);
}
.bottomnav a { position: relative; flex: 1; display: grid; justify-items: center; gap: 2px; padding: 7px 0 6px; border-radius: 18px; color: var(--muted); font-size: calc(10.5px * var(--fs, 1)); font-weight: calc(650 + var(--fw, 0)); transition: color .15s, background .15s; }
.bottomnav a.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.bottomnav .ic { width: 22px; height: 22px; }
.badge { position: absolute; top: 3px; right: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: calc(10px * var(--fs, 1)); font-style: normal; display: grid; place-items: center; }

/* ---------- Sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .22s; backdrop-filter: blur(2px); }
.sheet {
  position: relative; width: min(600px, 100%); max-height: 90dvh; display: flex; flex-direction: column;
  background: var(--solid); border: 1px solid var(--border); border-bottom: 0; border-radius: 26px 26px 0 0;
  padding: 8px 18px calc(var(--safe-b) + 14px); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .9, .3, 1);
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .6);
}
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 0 auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head h3 { margin: 0; font-size: calc(18px * var(--fs, 1)); }
.sheet-head .icon-btn { width: 36px; height: 36px; }
.sheet-body { overflow-y: auto; padding: 4px 2px 8px; margin: 0 -2px; }
.sheet-foot { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.preset { padding: 12px 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 2px; transition: transform .12s, border-color .15s; }
.preset:active { transform: scale(.96); border-color: var(--accent); }
.preset b { font-size: calc(14px * var(--fs, 1)); }
.preset small { font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); }
@media (min-width: 700px) {
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 26px; border-bottom: 1px solid var(--border); transform: translateY(30px) scale(.97); opacity: 0; transition: all .22s; }
  .sheet-wrap.open .sheet { opacity: 1; }
}

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--safe-b) + 92px); z-index: 60; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: min(92vw, 460px);
  padding: 11px 12px 11px 16px; border-radius: 14px; background: var(--solid); border: 1px solid var(--border-strong);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .55); font-size: calc(14px * var(--fs, 1)); font-weight: calc(550 + var(--fw, 0));
  opacity: 0; transform: translateY(12px) scale(.98); transition: all .22s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast-btn { color: var(--accent); font-weight: calc(750 + var(--fw, 0)); padding: 4px 8px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (min-width: 900px) { .view { padding-top: 40px; } }

/* ---------- Marka & Giriş ---------- */
.brand-row { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; }
.brand-logo { width: 26px; height: 26px; border-radius: 8px; }
.brand-name { font-weight: calc(850 + var(--fw, 0)); letter-spacing: .22em; font-size: calc(13px * var(--fs, 1)); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.auth .bottomnav { display: none; }
.login { min-height: calc(100dvh - 120px); display: grid; align-content: center; justify-items: center; gap: 22px; padding: 10px 0; }
.login-brand { display: grid; justify-items: center; text-align: center; gap: 4px; }
.login-logo { width: 96px; height: 96px; border-radius: 28px; box-shadow: 0 20px 50px -14px var(--ring); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.wordmark { margin: 14px 0 0; font-size: calc(38px * var(--fs, 1)); font-weight: calc(850 + var(--fw, 0)); letter-spacing: .2em; padding-left: .2em;
  background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 70%, var(--accent))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { margin: 0; color: var(--accent); font-size: calc(12px * var(--fs, 1)); font-weight: calc(700 + var(--fw, 0)); letter-spacing: .28em; text-transform: uppercase; }
.login-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.login-card h2 { margin: 0 0 14px; font-size: calc(20px * var(--fs, 1)); }
.btn.google { background: #fff; color: #1f1f1f; height: 48px; border: 1px solid rgba(0,0,0,.08); }
.btn.google .ic { width: 20px; height: 20px; }
.btn:disabled { opacity: .55; pointer-events: none; }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; color: var(--muted); font-size: calc(12px * var(--fs, 1)); text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.otp { text-align: center; font-size: calc(28px * var(--fs, 1)) !important; letter-spacing: .5em; font-weight: calc(700 + var(--fw, 0)); padding-left: calc(13px + .5em) !important; }
.login-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); font-size: calc(13.5px * var(--fs, 1)); }
.login-foot { color: var(--muted); font-size: calc(12px * var(--fs, 1)); text-align: center; margin: 0; }
button.link:disabled { opacity: .5; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- Vardiya takvimi ---------- */
.ic.flip-full { transform: rotate(180deg); }
.spill { display: block; width: 100%; padding: 3px 2px; border-radius: 6px; background: var(--sc); color: var(--st); font-size: calc(12px * var(--fs, 1)); font-weight: calc(650 + var(--fw, 0)); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.item .spill, .line .spill, .sum .spill, #tprev .spill { display: inline-block; width: auto; min-width: 62px; padding: 3px 10px; font-size: calc(12.5px * var(--fs, 1)); }
.cal { padding: 12px 6px 8px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 8px; }
.cal-head h2 { margin: 0; font-size: calc(26px * var(--fs, 1)); font-weight: calc(800 + var(--fw, 0)); letter-spacing: -.02em; text-transform: capitalize; }
.cal-head h2 small { font-size: calc(14px * var(--fs, 1)); color: var(--muted); font-weight: calc(600 + var(--fw, 0)); }
.cal-head .icon-btn.sm { background: var(--surface-2); color: var(--text); }
.cal-wd, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-wd span { text-align: center; font-size: calc(12.5px * var(--fs, 1)); font-weight: calc(700 + var(--fw, 0)); color: var(--muted); padding: 4px 0 6px; }
.cal-wd span.we, .cal-cell.we { background: color-mix(in srgb, var(--text) 3%, transparent); }
.cal-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 74px; padding: 6px 2px 4px; border-top: 1px solid var(--border); text-align: center; transition: background .12s; }
.cal-cell:active { background: var(--surface-2); }
.cal-num { font-size: calc(15px * var(--fs, 1)); font-weight: calc(650 + var(--fw, 0)); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-cell.out { opacity: .3; }
.cal-cell.today .cal-num { background: var(--accent); color: var(--on-accent); font-weight: calc(800 + var(--fw, 0)); }
.cal-cell.today { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 10px; }
.cal-note { position: absolute; top: 6px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.sum-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sum { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; background: var(--surface-2); }
.add-row { color: var(--accent); font-weight: calc(650 + var(--fw, 0)); }
.fab { position: fixed; z-index: 15; right: max(18px, calc(50% - 322px)); bottom: calc(var(--safe-b) + 96px); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: var(--bg); box-shadow: 0 12px 30px -8px rgba(0,0,0,.6); transition: transform .15s; }
.fab:active { transform: scale(.92); }
.fab.on { background: var(--grad); color: var(--on-accent); }
.fab .ic { width: 24px; height: 24px; }
.paintbar { position: fixed; z-index: 14; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 92px); width: min(560px, calc(100% - 100px)); margin-left: -36px;
  padding: 8px 10px 6px; border-radius: 18px; background: var(--nav); border: 1px solid var(--border-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.paintbar .chips { margin: 0 0 4px; }
.paintbar small { display: block; font-size: calc(11px * var(--fs, 1)); padding-left: 4px; }
.pchip.on { box-shadow: 0 0 0 2px var(--c, var(--accent)); }
.view[data-view="work"] { padding-bottom: calc(var(--safe-b) + 190px); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--c); cursor: pointer; border: 2px solid transparent; transition: transform .12s; }
.swatch input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.swatch:has(input:checked), .swatch.custom.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); transform: scale(1.05); }
.swatch.custom { background: conic-gradient(#ef4444, #f5c518, #34d399, #38bdf8, #8b5cf6, #f472b6, #ef4444); overflow: hidden; }
.swatch.custom input { position: absolute; inset: -8px; width: 52px; height: 52px; opacity: 0; cursor: pointer; }

/* ---------- Oyunlar ---------- */
.games { display: grid; gap: 10px; }
.game-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.game-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--c); opacity: .1; filter: blur(14px); }
.game-card small { display: block; color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.game-emoji { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: calc(26px * var(--fs, 1)); background: color-mix(in srgb, var(--c) 16%, transparent); flex: none; }
.game-head { align-items: center; justify-content: flex-start; }
.game-head h1 { font-size: calc(22px * var(--fs, 1)); }
.g-hud { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: calc(13.5px * var(--fs, 1)); color: var(--muted); }
.g-hud b { color: var(--text); font-size: calc(16px * var(--fs, 1)); margin-left: 4px; }
.g-stage { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
  background: radial-gradient(500px 300px at 50% 0%, rgba(124, 92, 255, .25), transparent 70%), linear-gradient(180deg, #0a1230, #050816); }
.g-stage canvas { display: block; width: 100%; touch-action: none; }
.g-over, .g-card { display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center; padding: 24px; }
.g-over { position: absolute; inset: 0; background: rgba(5, 8, 22, .72); color: #fff; backdrop-filter: blur(3px); }
.g-over[hidden] { display: none; }
.g-over b, .g-card > b { font-size: calc(22px * var(--fs, 1)); }
.g-over p, .g-card p { margin: 0 0 8px; color: #c9d1e6; max-width: 280px; }
.g-card { min-height: 340px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.g-card p { color: var(--muted); }
.g-result { margin-top: 14px; text-align: center; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--c) 15%, transparent); font-weight: calc(650 + var(--fw, 0)); }
.mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mcard { position: relative; aspect-ratio: 1; border-radius: 14px; perspective: 600px; }
.mcard span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .35s ease; }
.mback { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 55%, #1b1b3a), #1b1b3a); border: 1px solid var(--border-strong); }
.mback::after { content: "✦"; color: rgba(255,255,255,.5); font-size: calc(20px * var(--fs, 1)); }
.mface { background: var(--surface-2); border: 1px solid var(--border); font-size: clamp(26px, 9vw, 40px); transform: rotateY(180deg); }
.mcard.on .mback { transform: rotateY(180deg); }
.mcard.on .mface { transform: rotateY(0); }
.mcard.ok .mface { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.hq { text-align: center; font-size: calc(46px * var(--fs, 1)); font-weight: calc(800 + var(--fw, 0)); letter-spacing: .02em; margin: 26px 0 22px; }
.hopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hopt { height: 64px; font-size: calc(24px * var(--fs, 1)); font-weight: calc(750 + var(--fw, 0)); border-radius: 16px; }
.hopt.right { background: color-mix(in srgb, var(--ok) 30%, transparent); border-color: var(--ok); }
.hopt.wrong { background: color-mix(in srgb, var(--danger) 30%, transparent); border-color: var(--danger); }
.center { text-align: center; }
.xo-msg { text-align: center; font-weight: calc(700 + var(--fw, 0)); font-size: calc(17px * var(--fs, 1)); margin: 6px 0 12px; }
.xo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 360px; margin: 0 auto; }
.xcell { aspect-ratio: 1; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); font-size: clamp(38px, 13vw, 58px); font-weight: calc(800 + var(--fw, 0)); transition: background .15s; }
.xcell.x { color: var(--accent); }
.xcell.o { color: #f472b6; }
.xcell.win { background: color-mix(in srgb, var(--ok) 22%, transparent); border-color: var(--ok); }

/* ---------- Haberler ---------- */
.news-list { display: grid; gap: 14px; }
.news-status { color: var(--muted); font-size: calc(12.5px * var(--fs, 1)); margin: 0 4px 12px; }
.news { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.news-img { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 16 / 9; padding: 14px 16px;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--h, #334155) 70%, transparent), transparent 60%), linear-gradient(135deg, var(--h, #334155), #0b1020); color: #fff; isolation: isolate; }
.news-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.news-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.85) 100%); }
.news-img h3 { margin: 0; font-size: calc(17px * var(--fs, 1)); line-height: 1.3; font-weight: calc(750 + var(--fw, 0)); text-shadow: 0 2px 10px rgba(0,0,0,.5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news.hero .news-img { aspect-ratio: 4 / 3; }
.news.hero .news-img h3 { font-size: calc(22px * var(--fs, 1)); -webkit-line-clamp: 4; }
.news-src { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: calc(11.5px * var(--fs, 1)); font-weight: calc(700 + var(--fw, 0)); background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.news-desc { margin: 12px 16px 4px; font-size: calc(14.5px * var(--fs, 1)); line-height: 1.5; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.news-foot { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 8px 16px; }
.news.skeleton .news-img { background: var(--surface-2); animation: shimmer 1.2s ease-in-out infinite alternate; }
.news.skeleton .news-desc i { display: block; height: 10px; margin: 8px 0; border-radius: 6px; background: var(--surface-2); }
.news.skeleton .news-desc i + i { width: 60%; }
@keyframes shimmer { to { opacity: .5; } }
.icon-btn.spin .ic { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-news { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.mini-news:first-of-type { border-top: 0; padding-top: 0; }
.mini-news img, .mini-ph { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.mini-news b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: calc(14px * var(--fs, 1)); line-height: 1.3; }
.mini-news small { display: block; font-size: calc(12px * var(--fs, 1)); margin-top: 2px; }

/* ---------- Günün Köşesi ---------- */
.dlist { display: grid; gap: 14px; }
.dcard { position: relative; overflow: hidden; padding: 18px 18px 10px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--border));
  background: radial-gradient(130% 100% at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), var(--surface); box-shadow: var(--shadow); }
.dcard-top { display: flex; align-items: center; justify-content: space-between; }
.dcat { font-size: calc(12.5px * var(--fs, 1)); font-weight: calc(800 + var(--fw, 0)); letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.dtext { margin: 14px 0 8px; font-size: calc(20px * var(--fs, 1)); line-height: 1.45; font-weight: calc(650 + var(--fw, 0)); letter-spacing: -.01em; }
.dtext.long { font-size: calc(17.5px * var(--fs, 1)); }
.dtext.sm { font-size: calc(17px * var(--fs, 1)); margin: 0 0 6px; }
.dby { margin: 0 0 6px; color: var(--muted); font-size: calc(13.5px * var(--fs, 1)); font-style: italic; }
.dactions { display: flex; align-items: center; gap: 2px; margin: 6px -6px 0; }
.dactions .icon-btn.on { color: #f472b6; font-size: calc(18px * var(--fs, 1)); }
.dactions .icon-btn { font-size: calc(18px * var(--fs, 1)); }
.dhome { display: block; border-color: color-mix(in srgb, var(--c) 35%, var(--border));
  background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%), var(--surface); }
.dhome .card-head h2 .ic { color: var(--c); }

/* ---------- Hava · Namaz · Piyasa mini kartları ---------- */
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.mini { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); text-align: left; min-width: 0; }
.mini > span:last-child { min-width: 0; }
.mini-ic { font-size: calc(28px * var(--fs, 1)); line-height: 1; flex: none; }
.mini b { display: block; font-size: calc(17px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini b em { font-style: normal; font-size: calc(12px * var(--fs, 1)); color: var(--muted); font-weight: calc(600 + var(--fw, 0)); }
.mini small { display: block; color: var(--muted); font-size: calc(11.5px * var(--fs, 1)); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini.pr small { font-variant-numeric: tabular-nums; color: #2dd4bf; font-weight: calc(700 + var(--fw, 0)); font-size: calc(13px * var(--fs, 1)); }
.mk-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.mk-strip::-webkit-scrollbar { display: none; }
.mk-strip span { flex: 1 0 auto; display: grid; gap: 1px; padding: 0 8px; border-left: 1px solid var(--border); }
.mk-strip span:first-child { border-left: 0; padding-left: 2px; }
.mk-strip small { color: var(--muted); font-size: calc(11px * var(--fs, 1)); }
.mk-strip b { font-size: calc(14px * var(--fs, 1)); font-variant-numeric: tabular-nums; }
em.up, em.down { font-style: normal; font-size: calc(11.5px * var(--fs, 1)); font-weight: calc(700 + var(--fw, 0)); }
em.up { color: var(--ok); } em.down { color: var(--danger); }
.mk-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.mk-row:first-child { border-top: 0; padding-top: 0; }
.mk-row small { display: block; font-size: calc(12px * var(--fs, 1)); }
.mk-em { font-size: calc(22px * var(--fs, 1)); }
.mk-val { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }

/* Hava durumu */
.wx-hero { background: radial-gradient(120% 100% at 100% 0%, rgba(56,189,248,.25), transparent 60%), var(--surface); }
.wx-now { display: flex; align-items: center; gap: 14px; }
.wx-emoji { font-size: calc(64px * var(--fs, 1)); line-height: 1; }
.wx-temp { font-size: calc(54px * var(--fs, 1)); font-weight: calc(800 + var(--fw, 0)); letter-spacing: -.03em; line-height: 1; }
.wx-now p { margin: 4px 0 0; color: var(--muted); font-weight: calc(600 + var(--fw, 0)); }
.wx-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: calc(13px * var(--fs, 1)); color: var(--muted); }
.wx-meta b { color: var(--text); }
.tip { margin: 6px 0; font-size: calc(14.5px * var(--fs, 1)); }
.hours { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.hours::-webkit-scrollbar { display: none; }
.hr { flex: none; display: grid; justify-items: center; gap: 4px; width: 58px; padding: 10px 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.hr span { font-size: calc(22px * var(--fs, 1)); } .hr small { color: var(--muted); font-size: calc(12px * var(--fs, 1)); } .hr em { font-style: normal; font-size: calc(11px * var(--fs, 1)); color: #38bdf8; min-height: 13px; }
.day { display: grid; grid-template-columns: 82px 30px 44px 1fr; align-items: center; gap: 6px; padding: 9px 0; border-top: 1px solid var(--border); }
.day:first-child { border-top: 0; padding-top: 0; }
.dname { font-weight: calc(650 + var(--fw, 0)); text-transform: capitalize; font-size: calc(14px * var(--fs, 1)); } .dic { font-size: calc(20px * var(--fs, 1)); } .dpp { color: #38bdf8; font-size: calc(11px * var(--fs, 1)); }
.trange { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.trange em { font-style: normal; color: var(--muted); width: 30px; text-align: right; } .trange b { width: 30px; }
.tbar { position: relative; flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); }
.tbar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #38bdf8, #f5c518); }

/* Namaz */
.pr-hero { text-align: center; background: radial-gradient(120% 100% at 50% 0%, rgba(45,212,191,.22), transparent 65%), var(--surface); }
.pr-hero p { margin: 2px 0; }
.pr-left { display: block; font-size: calc(52px * var(--fs, 1)); font-weight: calc(800 + var(--fw, 0)); letter-spacing: .02em; font-variant-numeric: tabular-nums; margin: 6px 0; }
.vakit { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 10px; border-radius: 12px; font-size: calc(16px * var(--fs, 1)); }
.vakit b { font-variant-numeric: tabular-nums; font-size: calc(17px * var(--fs, 1)); }
.vakit.past { opacity: .45; }
.vakit.next { background: color-mix(in srgb, #2dd4bf 16%, transparent); box-shadow: inset 3px 0 0 #2dd4bf; opacity: 1; }
.bell-spacer { width: 34px; }
.tomorrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.tomorrow small { display: block; color: var(--muted); font-size: calc(12px * var(--fs, 1)); } .tomorrow b { font-variant-numeric: tabular-nums; }

/* Bütçe */
.pay-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: radial-gradient(120% 100% at 0% 0%, rgba(34,197,94,.2), transparent 60%), var(--surface); }
.pay-hero .right { text-align: right; }
.pay-hero .big, .big-num { display: block; font-size: calc(26px * var(--fs, 1)); font-weight: calc(800 + var(--fw, 0)); letter-spacing: -.02em; margin: 2px 0; }
.catbar { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-bottom: 10px; font-size: calc(14px * var(--fs, 1)); }
.catbar .bar { grid-column: 1 / -1; margin: 2px 0 0; height: 5px; display: block; }
.catbar .bar i { display: block; height: 100%; border-radius: 3px; }
.exp-add .amt { width: 120px !important; font-size: calc(18px * var(--fs, 1)); font-weight: calc(700 + var(--fw, 0)); }
.exp-add .chips { margin: 10px 0; }
.exp-em { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); flex: none; }
.item.rec small { display: block; }
.item.rec.done { opacity: .6; }

/* Önemli günler */
.day-em { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: calc(22px * var(--fs, 1)); background: var(--surface-2); flex: none; }
.day-em.big { width: 64px; height: 64px; font-size: calc(34px * var(--fs, 1)); border-radius: 18px; }
.day-num { display: grid; justify-items: center; min-width: 52px; }
.day-num b { font-size: calc(22px * var(--fs, 1)); line-height: 1; } .day-num small { color: var(--muted); font-size: calc(11px * var(--fs, 1)); }
.dayc.today { border-color: #fb7185; background: color-mix(in srgb, #fb7185 12%, transparent); }
.day-hero { display: flex; align-items: center; gap: 16px; background: radial-gradient(120% 100% at 100% 0%, rgba(251,113,133,.22), transparent 60%), var(--surface); }
.day-hero b { font-size: calc(16px * var(--fs, 1)); } .day-hero .big-num { margin: 4px 0 0; color: #fb7185; }

/* Odak */
.focus-wrap { display: grid; justify-items: center; gap: 18px; margin: 10px 0 18px; }
.focus-ring { --p: 0; --fc: #f97316; width: min(260px, 72vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--fc) calc(var(--p) * 1%), var(--surface-2) 0); transition: background .4s; }
.focus-ring.break { --fc: #34d399; }
.focus-ring > div { width: 86%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; background: var(--solid); box-shadow: inset 0 0 40px rgba(0,0,0,.25); }
.focus-ring b { font-size: calc(54px * var(--fs, 1)); font-weight: calc(800 + var(--fw, 0)); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.focus-ring small { color: var(--muted); font-size: calc(13px * var(--fs, 1)); text-transform: uppercase; letter-spacing: .1em; font-weight: calc(700 + var(--fw, 0)); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 90px; align-items: end; }
.week div { display: grid; grid-template-rows: 1fr auto; height: 100%; justify-items: center; gap: 4px; }
.week i { align-self: end; width: 100%; min-height: 3px; border-radius: 6px; background: linear-gradient(180deg, #f97316, #f5c518); }
.week small { color: var(--muted); font-size: calc(11px * var(--fs, 1)); }

/* ---------- Öneriler · Sınavlar · Ana ekran alt ---------- */
.home-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.home-foot .btn { font-size: calc(13.5px * var(--fs, 1)); }
.tips-home { display: block; border-color: color-mix(in srgb, #f97316 30%, var(--border)); }
.tips-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tips-row span { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 10px 6px; border-radius: 14px; background: var(--surface-2); font-size: calc(24px * var(--fs, 1)); }
.tips-row small { font-size: calc(12px * var(--fs, 1)); line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tip-card { background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%), var(--surface); }
.wear { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.wear div { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: var(--surface-2); font-size: calc(13.5px * var(--fs, 1)); }
.wear span { font-size: calc(22px * var(--fs, 1)); } .wear b { font-weight: calc(600 + var(--fw, 0)); line-height: 1.3; }
.fruit-em { font-size: calc(24px * var(--fs, 1)); }
.meal-k { width: 118px; flex: none; color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.exam { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; }
.exam.soon { border-color: #818cf8; background: color-mix(in srgb, #818cf8 10%, var(--surface)); }
.exam.past { opacity: .6; }
.exam small { display: block; }
.exam .bar { margin: 10px 0 4px; }
.exam details { margin-top: 8px; }
.exam summary { cursor: pointer; list-style: none; }
.exam summary::-webkit-details-marker { display: none; }
.exam-count { width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center; align-content: center; background: color-mix(in srgb, #818cf8 18%, transparent); color: #a5b4fc; cursor: pointer; }
.exam-count b { font-size: calc(21px * var(--fs, 1)); line-height: 1; } .exam-count small { font-size: calc(10.5px * var(--fs, 1)); color: inherit; }
.exam-hero { background: radial-gradient(120% 100% at 100% 0%, rgba(129,140,248,.25), transparent 60%), var(--surface); }
.exam-hero .big-num { color: #a5b4fc; }
.exam-hero p:last-child { margin: 4px 0 0; }

/* ---------- Mesajlar ---------- */
.banner.preview { border-color: color-mix(in srgb, #25d0a0 45%, transparent); background: color-mix(in srgb, #25d0a0 10%, transparent); font-size: calc(13px * var(--fs, 1)); }
.banner.preview > .ic, .chat-banner > .ic { color: #25d0a0; }
.chat-banner { border-color: color-mix(in srgb, #25d0a0 45%, transparent); background: color-mix(in srgb, #25d0a0 10%, transparent); }
.av { width: 48px; height: 48px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; font-size: calc(22px * var(--fs, 1)); font-weight: calc(700 + var(--fw, 0)); color: #fff;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 85%, #fff), var(--c)); }
.av.sm { width: 30px; height: 30px; font-size: calc(15px * var(--fs, 1)); vertical-align: middle; margin-right: 6px; }
.chat-list { display: grid; margin-top: 8px; }
.chat-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.chat-row b { display: block; font-size: calc(15.5px * var(--fs, 1)); }
.chat-row small { display: block; color: var(--muted); font-size: calc(13.5px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row.unread small { color: var(--text); font-weight: calc(600 + var(--fw, 0)); }
.chat-meta { display: grid; justify-items: end; gap: 4px; }
.chat-meta small { font-size: calc(11.5px * var(--fs, 1)); }
.chat-row.unread .chat-meta small { color: #25d0a0; }
.chat-meta em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #25d0a0; color: #04261c; font-size: calc(11.5px * var(--fs, 1)); font-weight: calc(800 + var(--fw, 0)); display: grid; place-items: center; }
.mycode { display: flex; align-items: center; justify-content: space-between; }
.mycode b { font-size: calc(22px * var(--fs, 1)); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
body.in-chat .bottomnav { display: none; }
body.in-chat .view { padding-bottom: calc(var(--safe-b) + 84px); padding-top: 0; }
.chat-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; margin: 0 -16px 6px; padding: calc(var(--safe-t) + 10px) 12px 10px;
  background: var(--nav); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.chat-title { flex: 1; display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.chat-title .av { width: 40px; height: 40px; font-size: calc(19px * var(--fs, 1)); }
.chat-title b { display: block; } .chat-title small { display: block; color: var(--muted); font-size: calc(12px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs { display: grid; gap: 4px; padding: 4px 0; }
.day-sep { text-align: center; margin: 10px 0 6px; }
.day-sep span { font-size: calc(11.5px * var(--fs, 1)); font-weight: calc(700 + var(--fw, 0)); color: var(--muted); padding: 4px 10px; border-radius: 10px; background: var(--surface-2); }
.msg { display: grid; justify-items: start; }
.msg.me { justify-items: end; }
.bubble { position: relative; max-width: 80%; padding: 7px 10px 5px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; }
.msg.me .bubble { border-radius: 16px 16px 4px 16px; background: color-mix(in srgb, #25d0a0 22%, var(--solid)); border-color: color-mix(in srgb, #25d0a0 35%, transparent); }
.bubble p { margin: 0; font-size: calc(15px * var(--fs, 1)); line-height: 1.38; white-space: pre-wrap; word-wrap: break-word; }
.bubble a { color: #38bdf8; text-decoration: underline; word-break: break-all; }
.bubble .from { display: block; font-size: calc(12.5px * var(--fs, 1)); margin-bottom: 1px; }
.bubble img { display: block; max-width: 100%; max-height: 320px; border-radius: 12px; margin: 2px 0 4px; min-width: 120px; min-height: 80px; background: var(--surface); object-fit: cover; }
.bubble.photo { padding: 4px 4px 3px; }
.bubble .meta { display: block; text-align: right; font-size: calc(10.5px * var(--fs, 1)); color: var(--muted); margin-top: 2px; }
.tick { font-style: normal; letter-spacing: -2px; margin-left: 2px; }
.tick.read { color: #38bdf8; }
.reacts { margin-top: -6px; padding: 1px 7px; border-radius: 12px; background: var(--solid); border: 1px solid var(--border); font-size: calc(13px * var(--fs, 1)); z-index: 1; }
.mcard-share { padding: 8px 10px; margin: 2px 0 4px; border-radius: 10px; background: rgba(0,0,0,.18); border-left: 3px solid #25d0a0; }
.mcard-share b { font-size: calc(13.5px * var(--fs, 1)); } .mcard-share p { font-size: calc(13.5px * var(--fs, 1)); margin-top: 2px; }
.composer { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: 0; width: min(680px, 100%); display: flex; align-items: flex-end; gap: 8px;
  padding: 8px 12px calc(var(--safe-b) + 8px); background: var(--nav); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--border); }
.composer textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; border-radius: 21px !important; padding: 10px 14px !important; line-height: 1.35; }
.composer .icon-btn.accent { background: #25d0a0; color: #04261c; }
.composer .icon-btn.accent .ic { transform: rotate(180deg); }
.react-bar { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 14px; }
.react-bar button { font-size: calc(28px * var(--fs, 1)); width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); transition: transform .12s; }
.react-bar button.on { background: color-mix(in srgb, #25d0a0 30%, transparent); transform: scale(1.08); }
.attach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.attach-grid button { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: var(--surface-2); font-size: calc(12px * var(--fs, 1)); font-weight: calc(600 + var(--fw, 0)); }
.attach-grid button span { font-size: calc(26px * var(--fs, 1)); }
.attach-grid button:disabled { opacity: .35; }
.chat-row > .grow { overflow: hidden; }
.chat-row .chat-meta { flex: none; min-width: 44px; }

/* ---------- Profil · Kaydırma · Bildirim bandı ---------- */
.badge.accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 2px var(--nav); font-weight: calc(800 + var(--fw, 0)); }
.me-av { position: relative; width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; overflow: hidden; flex: none; padding: 0; cursor: pointer; display: grid; place-items: center;
  border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); background: var(--surface-2); box-shadow: 0 6px 20px -8px var(--ring); }
.me-av img { width: 100%; height: 100%; object-fit: cover; }
.me-av img.logo { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.me-av .cam { position: absolute; right: 4px; bottom: 4px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-size: calc(15px * var(--fs, 1)); box-shadow: 0 0 0 3px var(--solid); }
.me-av.big { margin: 0 auto; overflow: visible; }
.me-av.big img { border-radius: 50%; }
.profile-top { display: grid; justify-items: center; gap: 10px; margin-bottom: 14px; }
.av.big { width: 88px; height: 88px; font-size: calc(40px * var(--fs, 1)); margin: 6px auto; }
.av { position: relative; }
.av.online::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2.5px var(--bg); }
.swipe { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.swipe .chat-row { position: relative; z-index: 1; background: var(--bg); border-bottom: 0; touch-action: pan-y; transition: transform .22s cubic-bezier(.2,.9,.3,1); user-select: none; -webkit-user-select: none; }
.swipe-actions { position: absolute; inset: 0 auto 0 0; display: flex; width: 152px; }
.swipe-actions button { flex: 1; display: grid; place-content: center; justify-items: center; gap: 3px; font-size: calc(12px * var(--fs, 1)); font-weight: calc(700 + var(--fw, 0)); color: #fff; background: #64748b; }
.swipe-actions button.more { background: var(--accent); color: var(--on-accent); }
.swipe-actions button.more b { font-size: calc(22px * var(--fs, 1)); line-height: 1; }
.ico-s { font-style: normal; font-size: calc(12px * var(--fs, 1)); opacity: .8; }
.chat-row.muted .chat-meta em { background: var(--muted); color: var(--bg); }
.chat-row small.typing, .chat-title small.typing { color: #25d0a0 !important; font-style: italic; }
.arch-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 10px; margin-top: 4px; border-bottom: 1px solid var(--border); text-align: left; font-weight: calc(650 + var(--fw, 0)); }
.arch-row .ic { color: var(--muted); } .arch-row b { color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.menu-list { display: grid; gap: 4px; }
.menu-list > button { display: flex; align-items: center; gap: 14px; padding: 13px 10px; border-radius: 12px; text-align: left; font-size: calc(15px * var(--fs, 1)); font-weight: calc(600 + var(--fw, 0)); }
.menu-list > button:active { background: var(--surface-2); }
.mute-opts { padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.mute-opts p { margin: 0 0 4px; font-weight: calc(600 + var(--fw, 0)); }
.mute-opts .chips { margin: 6px 0 2px; }
.inapp { position: fixed; z-index: 70; left: 50%; top: calc(var(--safe-t) + 8px); transform: translate(-50%, -140%); width: min(460px, calc(100% - 20px)); display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 18px; background: var(--solid); border: 1px solid var(--border-strong); box-shadow: 0 16px 40px -10px rgba(0,0,0,.6); transition: transform .3s cubic-bezier(.2,.9,.3,1); }
.inapp.show { transform: translate(-50%, 0); }
.inapp .av { width: 40px; height: 40px; font-size: calc(18px * var(--fs, 1)); }
.inapp b { display: block; font-size: calc(14px * var(--fs, 1)); } .inapp small { display: block; color: var(--muted); font-size: calc(13px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-msg { text-align: center; margin: 6px 0; }
.sys-msg span { display: inline-block; font-size: calc(12px * var(--fs, 1)); color: var(--muted); padding: 5px 12px; border-radius: 10px; background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.typing-b { display: flex; gap: 4px; padding: 12px 14px; }
.typing-b i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing-b i:nth-child(2) { animation-delay: .2s; } .typing-b i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.swipe .chat-row { -webkit-user-drag: none; }

/* ---------- Yanıtlama & sesli mesaj ---------- */
.composer-wrap { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: 0; width: min(680px, 100%);
  padding: 8px 12px calc(var(--safe-b) + 8px); background: var(--nav); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--border); }
.composer-wrap .composer { position: static; transform: none; width: auto; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.composer .send { display: none; } .composer .mic { display: inline-grid; font-size: calc(19px * var(--fs, 1)); }
.composer.typed .send { display: inline-grid; } .composer.typed .mic { display: none; }
.composer .icon-btn.accent { background: #25d0a0; color: #04261c; }
.reply-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.reply-bar .quote { flex: 1; margin: 0; }
.quote { display: grid; gap: 1px; padding: 6px 10px; margin: 2px 0 5px; border-radius: 10px; border-left: 3px solid var(--qc, #25d0a0); background: rgba(0,0,0,.18); cursor: pointer; min-width: 140px; }
.quote b { font-size: calc(12.5px * var(--fs, 1)); color: var(--qc, #25d0a0); }
.quote span { font-size: calc(13px * var(--fs, 1)); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.msg { position: relative; touch-action: pan-y; }
.msg .bubble { transition: transform .2s ease; }
.swipe-reply { position: absolute; left: 4px; top: 50%; transform: translateY(-50%) scale(calc(.6 + var(--sr, 0) * .4)); opacity: var(--sr, 0); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); font-size: calc(15px * var(--fs, 1)); pointer-events: none; }
.msg.flash .bubble { animation: flash 1.4s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px #25d0a0; } 100% { box-shadow: 0 0 0 0 transparent; } }
.bubble p.deleted { font-style: italic; color: var(--muted); }
.voice { display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 2px 2px 0; cursor: pointer; }
.vplay { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #25d0a0; color: #04261c; font-size: calc(13px * var(--fs, 1)); font-weight: calc(900 + var(--fw, 0)); }
.vbars { flex: 1; height: 30px; display: flex; align-items: center; gap: 2px; }
.vbars i { flex: 1; min-width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--text) 35%, transparent); transition: background .15s; }
.vbars i.on { background: #25d0a0; }
.vdur { font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 30px; }
.recbar { display: flex; align-items: center; gap: 10px; height: 44px; }
.recbar .icon-btn.accent { background: #25d0a0; color: #04261c; margin-left: auto; }
.recbar .icon-btn.accent .ic { transform: rotate(180deg); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: blink 1s infinite; flex: none; }
#rec-time { font-variant-numeric: tabular-nums; min-width: 38px; }
.rec-wave { flex: 1; height: 28px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.rec-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: #25d0a0; }

/* ---------- Cam menü (kapsül baloncuklar) ---------- */
:root { --glass: rgba(255, 255, 255, .11); --glass-hi: rgba(255, 255, 255, .2); --glass-bd: rgba(255, 255, 255, .16); --glass-tx: #fff; }
[data-theme="light"] { --glass: rgba(255, 255, 255, .72); --glass-hi: rgba(255, 255, 255, .95); --glass-bd: rgba(10, 20, 40, .08); --glass-tx: #0b1430; }
.float-wrap { position: fixed; inset: 0; z-index: 55; }
.float-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 18, .38); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); opacity: 0; transition: opacity .25s ease, backdrop-filter .3s ease, -webkit-backdrop-filter .3s ease; }
[data-theme="light"] .float-backdrop { background: rgba(240, 244, 252, .35); }
.float-wrap.open .float-backdrop { opacity: 1; backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
.float-stack { position: absolute; left: 0; right: 0; bottom: 0; max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
  padding: calc(var(--safe-t) + 20px) 18px calc(var(--safe-b) + 26px); pointer-events: auto; }
.float-stack > *, .pill-grid > * { opacity: 0; transform: translateY(14px) scale(.94); transition: opacity .28s ease, transform .34s cubic-bezier(.2, 1.2, .35, 1); transition-delay: calc(var(--i, 0) * 32ms); }
.float-wrap.open .float-stack > *, .float-wrap.open .pill-grid > * { opacity: 1; transform: none; }
.gpill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 230px; height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--glass); color: var(--glass-tx); border: 1px solid var(--glass-bd); font-size: calc(16.5px * var(--fs, 1)); font-weight: calc(650 + var(--fw, 0)); letter-spacing: .01em;
  backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 30px -12px rgba(0, 0, 0, .55); }
.gpill:active { background: var(--glass-hi); transform: scale(.97) !important; }
.gpill .pe { font-size: calc(20px * var(--fs, 1)); line-height: 1; }
.gpill.danger { color: #ff7b7b; }
.gpill:disabled { opacity: .4 !important; }
.gpill.ghost { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; height: 44px; font-size: calc(15px * var(--fs, 1)); opacity: .85; }
.rx-pill { display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 30px -12px rgba(0,0,0,.55); }
.rx-pill button { width: 48px; height: 48px; border-radius: 50%; font-size: calc(27px * var(--fs, 1)); display: grid; place-items: center; transition: transform .15s, background .15s; }
.rx-pill button:active { transform: scale(1.25); }
.rx-pill button.on { background: var(--glass-hi); }
.pill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(420px, 100%); }
.pill-grid .gpill { min-width: 0; width: 100%; padding: 0 16px; justify-content: flex-start; }
.pill-group { width: min(420px, 100%); padding: 14px 16px; border-radius: 30px; background: var(--glass); border: 1px solid var(--glass-bd); color: var(--glass-tx);
  backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 30px -12px rgba(0,0,0,.55); }
.pill-group > b { display: block; font-size: calc(15px * var(--fs, 1)); margin: 0 4px 10px; }
.pill-group .mini-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-pills button { height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid var(--glass-bd); color: var(--glass-tx); font-weight: calc(650 + var(--fw, 0)); font-size: calc(14px * var(--fs, 1)); }
[data-theme="light"] .mini-pills button { background: rgba(255,255,255,.8); }
.mini-pills button:active { background: var(--glass-hi); }
.float-title { color: var(--glass-tx); font-weight: calc(800 + var(--fw, 0)); font-size: calc(15px * var(--fs, 1)); opacity: .85; text-shadow: 0 2px 10px rgba(0,0,0,.4); margin-bottom: 2px; }
.float-stack.left, .float-wrap.left .float-stack { align-items: flex-start; }
.float-wrap.right .float-stack { align-items: flex-end; }
.float-preview { max-width: 86%; pointer-events: none; }
.float-preview .bubble { max-width: 100%; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); transform: none !important; }
.float-preview .bubble img { max-height: 40vh; }
.pill-list { display: grid; gap: 8px; width: min(420px, 100%); max-height: 46vh; overflow-y: auto; }
.pill-list .gpill { width: 100%; min-width: 0; justify-content: flex-start; font-weight: calc(550 + var(--fw, 0)); font-size: calc(14.5px * var(--fs, 1)); }
.pill-list .gpill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes pillIn { from { opacity: 0; transform: translateY(10px) scale(.95); } }
.float-wrap .av.big { margin: 0 0 4px; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5); }
.float-wrap.open .float-stack > [hidden] { display: none; }

/* ---------- Cam v2: daha şeffaf kapsüller + yüzen cam formlar ---------- */
:root { --glass: rgba(255, 255, 255, .06); --glass-hi: rgba(255, 255, 255, .16); --glass-bd: rgba(255, 255, 255, .22); }
[data-theme="light"] { --glass: rgba(255, 255, 255, .45); --glass-hi: rgba(255, 255, 255, .85); --glass-bd: rgba(255, 255, 255, .9); }
.float-backdrop { background: rgba(4, 7, 18, .22); }
.gpill { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 24px -14px rgba(0, 0, 0, .5); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); }
.gpill.danger { color: #ff8a8a; border-color: rgba(255, 120, 120, .35); background: rgba(255, 90, 90, .07); }
.pill-grid .gpill { justify-content: center; }
.rx-pill, .pill-group { background: var(--glass); border-color: var(--glass-bd); }
.glass-card { width: min(420px, 100%); padding: 18px 20px; border-radius: 28px; text-align: center; color: var(--glass-tx);
  background: var(--glass); border: 1px solid var(--glass-bd); backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 30px -14px rgba(0,0,0,.5); }
.glass-card b { display: block; font-size: calc(18px * var(--fs, 1)); margin-bottom: 6px; }
.glass-card p { margin: 0; opacity: .8; font-size: calc(14.5px * var(--fs, 1)); line-height: 1.45; }
.glass-card input { margin-top: 10px; background: rgba(255,255,255,.08) !important; border-color: var(--glass-bd) !important; color: var(--glass-tx); text-align: center; }
.time-pill { display: grid !important; gap: 0; height: 60px !important; }
.time-pill small { font-size: calc(12px * var(--fs, 1)); opacity: .7; font-weight: calc(600 + var(--fw, 0)); }
/* Formlar: ağır panel yerine yüzen cam kart */
.sheet-backdrop { background: rgba(4, 7, 18, .25); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
[data-theme="light"] .sheet-backdrop { background: rgba(240, 244, 252, .3); }
.sheet { width: min(600px, calc(100% - 16px)); margin-bottom: calc(var(--safe-b) + 8px); border-radius: 30px; border: 1px solid var(--glass-bd);
  background: color-mix(in srgb, var(--solid) 55%, transparent); backdrop-filter: blur(34px) saturate(170%); -webkit-backdrop-filter: blur(34px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 24px 60px -20px rgba(0,0,0,.6); padding-bottom: 14px; }
.sheet-head .icon-btn { background: var(--glass); border-color: var(--glass-bd); border-radius: 50%; }
.sheet-foot { border-top: 0; }
.sheet-foot .btn { border-radius: 999px; }
.sheet-foot .btn.ghost { background: var(--glass); border-color: var(--glass-bd); }
.sheet input:not([type=checkbox]):not([type=radio]):not([type=range]), .sheet textarea, .sheet select { background: rgba(255,255,255,.06); border-color: var(--glass-bd); }
[data-theme="light"] .sheet input:not([type=checkbox]):not([type=radio]):not([type=range]), [data-theme="light"] .sheet textarea, [data-theme="light"] .sheet select { background: rgba(255,255,255,.6); }
@media (min-width: 700px) { .sheet { margin-bottom: 0; } }
.pill-group input { width: 100%; background: rgba(255,255,255,.08) !important; border-color: var(--glass-bd) !important; color: var(--glass-tx); border-radius: 999px !important; text-align: center; }
.gpill.person { justify-content: flex-start; gap: 10px; } .gpill.person .av.sm { margin: 0; }

/* ---------- Durum (hikâye) ---------- */
.float-wrap { z-index: 95; } .toasts { z-index: 100; } .inapp { z-index: 98; }
.st-ring { position: relative; display: inline-grid; place-items: center; padding: 2.5px; border-radius: 50%; flex: none;
  background: conic-gradient(from 210deg, #25d0a0, var(--accent), #f472b6, #25d0a0); }
.st-ring.seen { background: var(--border-strong); }
.st-av { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 2.5px solid var(--bg);
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c, #64748b) 85%, #fff), var(--c, #64748b)); font-size: calc(23px * var(--fs, 1)); color: #fff; }
.st-av img { width: 100%; height: 100%; object-fit: cover; } .st-av img.logo { transform: scale(1.12); }
.st-av i { font-style: normal; }
.st-plus { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: calc(900 + var(--fw, 0));
  background: #25d0a0; color: #04261c; border: 2.5px solid var(--bg); font-size: calc(15px * var(--fs, 1)); line-height: 1; }
.st-strip { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 12px; }
.st-strip::-webkit-scrollbar { display: none; }
.st-chip { display: grid; justify-items: center; gap: 5px; flex: none; }
.st-chip .st-av { width: 58px; height: 58px; }
.st-chip small { font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-me { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.st-me .icon-btn { border-radius: 50%; font-weight: calc(800 + var(--fw, 0)); }
.st-me .icon-btn.accent { background: #25d0a0; color: #04261c; }
.st-list { display: grid; }
.st-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 2px; text-align: left; }
.st-row b { display: block; font-size: calc(15.5px * var(--fs, 1)); } .st-row small { display: block; color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
body.st-open { overflow: hidden; }
.st-viewer { position: fixed; inset: 0; z-index: 80; background: #000; color: #fff; opacity: 0; transform: scale(.96); transition: opacity .22s, transform .25s cubic-bezier(.2,.9,.3,1); user-select: none; -webkit-user-select: none; touch-action: none; }
.st-viewer.open { opacity: 1; transform: none; }
.st-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.st-bgimg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(30px) brightness(.55); }
.st-img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; }
.st-text { margin: 0; padding: 0 28px; max-width: 620px; text-align: center; font-size: calc(34px * var(--fs, 1)); font-weight: calc(800 + var(--fw, 0)); line-height: 1.3; white-space: pre-wrap; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.st-text.long { font-size: calc(24px * var(--fs, 1)); }
.st-caption { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 118px); margin: 0; padding: 10px 22px; text-align: center; font-size: calc(16px * var(--fs, 1)); background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); }
.st-top { position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding: calc(var(--safe-t) + 8px) 12px 18px; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent); }
.st-bars { display: flex; gap: 4px; margin-bottom: 10px; }
.st-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.st-bars b { display: block; height: 100%; background: #fff; }
.st-head { display: flex; align-items: center; gap: 10px; }
.st-head .st-av { width: 38px; height: 38px; border: 0; font-size: calc(18px * var(--fs, 1)); }
.st-head b { display: block; font-size: calc(15px * var(--fs, 1)); } .st-head small { display: block; font-size: calc(12px * var(--fs, 1)); opacity: .8; }
.st-x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: calc(18px * var(--fs, 1)); }
.st-tap { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: 30% 70%; }
.st-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; justify-items: center; gap: 10px; padding: 16px 14px calc(var(--safe-b) + 14px); background: linear-gradient(0deg, rgba(0,0,0,.5), transparent); }
.st-bottom .gpill { --glass: rgba(255,255,255,.1); --glass-bd: rgba(255,255,255,.28); --glass-tx: #fff; min-width: 180px; height: 46px; }
.st-quick { display: flex; gap: 8px; }
.st-quick button { width: 44px; height: 44px; border-radius: 50%; font-size: calc(24px * var(--fs, 1)); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.st-quick button:active { transform: scale(1.2); }
.st-reply { display: flex; gap: 8px; width: min(560px, 100%); }
.st-reply input { flex: 1; border-radius: 999px !important; background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.3) !important; color: #fff; padding: 12px 18px !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.st-reply input::placeholder { color: rgba(255,255,255,.7); }
.st-reply .icon-btn.accent { background: #25d0a0; color: #04261c; border-radius: 50%; }
.st-reply .icon-btn.accent .ic { transform: rotate(180deg); }
.st-bottom .row { width: min(560px, 100%); }
.st-input { width: min(600px, 100%); background: transparent !important; border: 0 !important; box-shadow: none !important; color: #fff; text-align: center; font-size: calc(34px * var(--fs, 1)); font-weight: calc(800 + var(--fw, 0)); line-height: 1.3; resize: none; padding: 0 24px !important; max-height: 70vh; }
.st-input::placeholder { color: rgba(255,255,255,.65); }
.st-editor .st-tap { display: none; }
.st-cap { width: min(560px, 100%); border-radius: 999px !important; background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.3) !important; color: #fff; padding: 12px 18px !important; }
.st-who { opacity: .8; font-size: calc(12.5px * var(--fs, 1)); }
.st-send { --glass: #25d0a0 !important; color: #04261c !important; min-width: 120px !important; border: 0 !important; }
.gpill.person .st-av { width: 32px; height: 32px; border: 0; font-size: calc(15px * var(--fs, 1)); }

/* ---------- Grup profili (cam) ---------- */
.ginfo { position: fixed; inset: 0; z-index: 45; opacity: 0; transform: translateY(24px); transition: opacity .25s ease, transform .3s cubic-bezier(.2,.9,.3,1); }
.ginfo.open { opacity: 1; transform: none; }
.gi-bg { position: absolute; inset: 0; background: rgba(4, 7, 18, .3); backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%); }
[data-theme="light"] .gi-bg { background: rgba(240,244,252,.35); }
.gi-scroll { position: absolute; inset: 0; overflow-y: auto; padding: calc(var(--safe-t) + 10px) 14px calc(var(--safe-b) + 30px); max-width: 680px; margin: 0 auto; color: var(--glass-tx); }
.gi-top { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 2; }
.gi-back { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--glass-tx); background: var(--glass); border: 1px solid var(--glass-bd); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.gi-hero { display: grid; justify-items: center; text-align: center; gap: 4px; margin: 4px 0 16px; }
.gi-photo { position: relative; width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; overflow: visible; font-size: calc(58px * var(--fs, 1));
  background: radial-gradient(circle at 30% 25%, #a5b4fc, #6366f1); box-shadow: 0 18px 40px -14px rgba(0,0,0,.6), 0 0 0 4px rgba(255,255,255,.12); }
.gi-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.gi-photo.can { cursor: pointer; }
.gi-photo em { position: absolute; right: 2px; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: calc(17px * var(--fs, 1)); background: #25d0a0; box-shadow: 0 0 0 3px rgba(0,0,0,.25); }
.gi-hero h2 { margin: 12px 0 0; font-size: calc(24px * var(--fs, 1)); font-weight: calc(800 + var(--fw, 0)); }
.gi-hero p { margin: 0; opacity: .7; font-size: calc(14px * var(--fs, 1)); }
.gi-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.gi-act { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 20px; font-size: calc(12.5px * var(--fs, 1)); font-weight: calc(650 + var(--fw, 0)); color: var(--glass-tx);
  background: var(--glass); border: 1px solid var(--glass-bd); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); }
.gi-act span { font-size: calc(20px * var(--fs, 1)); height: 24px; display: grid; place-items: center; color: #25d0a0; }
.gi-act:active { background: var(--glass-hi); }
.gi-card { margin-bottom: 12px; padding: 12px 14px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.gi-card[data-g] { cursor: pointer; }
.gi-desc { margin: 2px 0 6px; font-size: calc(15px * var(--fs, 1)); line-height: 1.45; white-space: pre-wrap; }
.gi-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 2px 8px; }
.gi-head b { font-size: calc(14px * var(--fs, 1)); opacity: .85; }
.gi-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gi-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: rgba(255,255,255,.06); }
.gi-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 2px; text-align: left; color: var(--glass-tx); border-radius: 14px; }
.gi-row:active { background: var(--glass-hi); }
.gi-row .av { width: 44px; height: 44px; font-size: calc(20px * var(--fs, 1)); overflow: hidden; }
.gi-row .av img, .av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.gi-row b { display: block; font-size: calc(15.5px * var(--fs, 1)); } .gi-row small { display: block; font-size: calc(12.5px * var(--fs, 1)); }
.gi-admin { font-style: normal; font-size: calc(11.5px * var(--fs, 1)); font-weight: calc(700 + var(--fw, 0)); color: #25d0a0; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(37,208,160,.4); background: rgba(37,208,160,.1); white-space: nowrap; }
.gi-danger .gi-row b { color: #ff8a8a; }
.gi-card .switch-row { font-size: calc(14.5px * var(--fs, 1)); }
.only-admins { margin: 4px 0; text-align: center; color: var(--muted); font-size: calc(13.5px * var(--fs, 1)); padding: 10px; }
.av { overflow: hidden; }
.av.online { overflow: visible; }
.gi-top { position: relative; }
.gi-photo.has-status { box-shadow: 0 18px 40px -14px rgba(0,0,0,.6), 0 0 0 4px var(--bg), 0 0 0 7px #25d0a0; }
.gi-online { position: absolute; right: 8px; bottom: 8px; width: 20px; height: 20px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(0,0,0,.35); }
.gi-row .av { flex: none; }


/* ---------- Global yazı tipi, boyut/kalınlık ayarı, yakınlaştırma kapalı ---------- */
:root { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif; font-feature-settings: 'cv11', 'ss01'; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-weight: calc(400 + var(--fw, 0)); }
button, input, textarea, select, code, .mono, .scratch { font-family: inherit; }
img { -webkit-user-drag: none; }
.fs-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; align-items: end; }
.fs-row button { height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 700; line-height: 1; }
.fs-row button.on { background: var(--grad); color: var(--on-accent); border-color: transparent; }
.fs-preview { margin: 10px 0 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); line-height: 1.45; }

/* ---------- Ayarlar ---------- */
.set-card { display: block; width: 100%; margin-bottom: 6px; padding: 4px 0; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; text-align: left; }
.set-profile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px; }
.set-profile b { display: block; font-size: calc(18px * var(--fs, 1)); } .set-profile small { display: block; color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.set-row, .set-line { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-align: left; font-size: calc(15px * var(--fs, 1)); border-top: 1px solid var(--border); }
.set-card > .set-row:first-child, .set-card > .set-line:first-child { border-top: 0; }
.set-row:active { background: var(--surface-2); }
.set-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.set-ic .ic { width: 18px; height: 18px; }
.set-row small { white-space: nowrap; }
.set-line select.sm { max-width: 150px; }
.set-block { padding: 12px 16px; border-top: 1px solid var(--border); }
.set-block:first-child { border-top: 0; }
.set-block > b { display: flex; justify-content: space-between; font-size: calc(14px * var(--fs, 1)); margin-bottom: 10px; }
.set-block > b em { font-style: normal; color: var(--muted); font-weight: calc(600 + var(--fw, 0)); }
.set-pad { padding: 0 16px 12px; margin: 0; }
/* Alt menü etiketleri ve rozetler yazı boyutu ayarından etkilenmez */
.bottomnav a { font-size: 10.5px !important; white-space: nowrap; }
.badge { font-size: 10px !important; }

/* ---------- Sorumluluk beyanı & yasal metinler & şikâyet ---------- */
.terms { min-height: calc(100dvh - 60px); display: grid; align-content: center; justify-items: center; gap: 16px; padding: 6px 0 20px; }
.terms .login-logo { width: 84px; height: 84px; }
.terms .wordmark { font-size: calc(30px * var(--fs, 1)); margin-top: 8px; }
.terms-card { width: min(520px, 100%); padding: 20px 18px; border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--shadow); }
.terms-card h2 { margin: 0 0 6px; font-size: calc(21px * var(--fs, 1)); }
.terms-card > p { margin: 0 0 12px; font-size: calc(14px * var(--fs, 1)); }
.terms-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.terms-links .btn { border-radius: 999px; }
.terms-list { display: grid; gap: 8px; }
.terms-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--border); cursor: pointer; font-size: calc(14px * var(--fs, 1)); line-height: 1.45; transition: border-color .15s, background .15s; }
.terms-item input { position: absolute; opacity: 0; pointer-events: none; }
.tick-box { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; border: 2px solid var(--border-strong); display: grid; place-items: center; color: transparent; transition: all .15s; }
.tick-box .ic { width: 15px; height: 15px; stroke-width: 3; }
.terms-item:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.terms-item:has(input:checked) .tick-box { background: var(--grad); border-color: transparent; color: var(--on-accent); }
.terms-go { margin-top: 6px; height: 50px; border-radius: 999px; }
.terms-go:disabled { opacity: .4; filter: grayscale(.4); }
.legal-reader { z-index: 96; }
.legal-doc h2 { margin: 4px 0 2px; font-size: calc(22px * var(--fs, 1)); }
.legal-doc h3 { margin: 18px 0 6px; font-size: calc(16px * var(--fs, 1)); }
.legal-doc p, .legal-doc li { font-size: calc(14.5px * var(--fs, 1)); line-height: 1.55; opacity: .92; }
.legal-doc ul { padding-left: 20px; margin: 6px 0; }
.report { padding: 10px 0; border-bottom: 1px solid var(--border); display: grid; gap: 4px; }
.report.closed, .report.removed { opacity: .55; }
.report-text { margin: 2px 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: calc(13.5px * var(--fs, 1)); }

/* ---------- OGSEGA Kalkan ---------- */
.shield-box { margin-bottom: 14px; padding: 16px; border-radius: 24px; border: 1px solid color-mix(in srgb, #22c55e 40%, var(--border));
  background: radial-gradient(120% 90% at 100% 0%, rgba(34,197,94,.16), transparent 60%), var(--surface); box-shadow: var(--shadow); }
.shield-head { display: flex; align-items: center; gap: 12px; }
.shield-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(34,197,94,.15); }
.shield-head b { display: block; font-size: calc(16px * var(--fs, 1)); } .shield-head small { display: block; color: var(--muted); font-size: calc(12px * var(--fs, 1)); }
.shield-total { display: flex; align-items: baseline; gap: 8px; margin: 14px 2px 8px; }
.shield-total b { font-size: calc(34px * var(--fs, 1)); font-weight: calc(800 + var(--fw, 0)); color: #22c55e; } .shield-total small { color: var(--muted); }
.shield-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.shield-stats div { padding: 8px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.shield-stats b { display: block; font-size: calc(18px * var(--fs, 1)); } .shield-stats small { color: var(--muted); font-size: calc(11px * var(--fs, 1)); }
.shield-log { display: grid; }
.sh-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--border); }
.sh-ic { font-size: 18px; width: 24px; text-align: center; }
.sh-row b { display: block; font-size: calc(13.5px * var(--fs, 1)); } .sh-row small { display: block; color: var(--muted); font-size: calc(12px * var(--fs, 1)); word-break: break-word; }
.sh-meta { display: grid; justify-items: end; gap: 3px; flex: none; }
.msg-warn { margin-top: 4px; padding: 5px 8px; border-radius: 8px; font-size: calc(12px * var(--fs, 1)); background: rgba(251,191,36,.14); color: #fbbf24; }

/* ---------- Belgeler · Medya merkezi · Görüntüleyici ---------- */
.doc-card { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 220px; padding: 8px 10px; margin: 2px 0 4px; border-radius: 12px; background: rgba(0,0,0,.18); text-align: left; color: inherit; }
.doc-card b { display: block; font-size: calc(14px * var(--fs, 1)); word-break: break-word; } .doc-card small { display: block; font-size: calc(12px * var(--fs, 1)); opacity: .75; }
.doc-ic { font-size: 28px; flex: none; width: 36px; text-align: center; }
.meta .star { font-style: normal; color: #f5c518; }
.hub-head { width: 100%; background: none; color: inherit; cursor: pointer; }
.hub-title b { display: block; font-size: calc(17px * var(--fs, 1)); } .hub-title small { display: block; font-size: calc(12px * var(--fs, 1)); }
.hub-tabs { margin: 12px 0; }
.hub-tabs button em { font-style: normal; font-size: calc(11px * var(--fs, 1)); opacity: .7; margin-left: 4px; }
.hub-body { min-height: 200px; }
.gi-media.big { grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gi-media.big img { border-radius: 10px; cursor: pointer; }
.star-item { display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 8px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--glass-bd); color: var(--glass-tx); }
.star-item p { margin: 4px 0 0; font-size: calc(14.5px * var(--fs, 1)); }
.star-item small { font-size: calc(12px * var(--fs, 1)); }
.hub { z-index: 46; }
.img-viewer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0,0,0,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s; }
.img-viewer.open { opacity: 1; }
.img-viewer > img { max-width: 100%; max-height: 100%; object-fit: contain; }
.iv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 8px; padding: calc(var(--safe-t) + 10px) 12px; }
.iv-show { position: absolute; bottom: calc(var(--safe-b) + 24px); left: 50%; transform: translateX(-50%); --glass: rgba(255,255,255,.12); --glass-bd: rgba(255,255,255,.3); --glass-tx: #fff; min-width: 200px; }

/* ---------- Uçtan uca şifreleme ---------- */
.e2e-note { display: block; width: min(420px, 92%); margin: 6px auto 10px; padding: 8px 12px; border-radius: 12px; text-align: center; font-size: calc(12.5px * var(--fs, 1)); line-height: 1.4;
  color: #fcd34d; background: rgba(245, 197, 24, .1); border: 1px solid rgba(245, 197, 24, .25); }
[data-theme="light"] .e2e-note { color: #92400e; }
.sn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 10px; margin: 4px 0 10px; font-family: ui-monospace, Menlo, monospace; font-size: calc(17px * var(--fs, 1)); letter-spacing: .06em; text-align: center; }
.sn-grid span { padding: 6px 0; border-radius: 10px; background: rgba(255,255,255,.06); }
.wire { margin: 6px 0; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.35); color: #86efac; font-family: ui-monospace, Menlo, monospace; font-size: calc(11.5px * var(--fs, 1)); white-space: pre-wrap; word-break: break-all; }
.e2e-page { z-index: 47; }

/* ---------- Üyeler (Yönetim Paneli) ---------- */
.mem-tabs { margin-bottom: 10px; }
.mem-search { width: 100%; margin-bottom: 10px; }
.mem-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.mem-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.mem-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.mem-av.logo { padding: 6px; }
.mem-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mem-txt b, .mem-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-mail { color: var(--accent); }
.rules-box { white-space: pre; overflow: auto; max-height: 220px; font-size: calc(11px * var(--fs)); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }

/* ---------- Canlı mesajlaşma: Hesap ID · QR · istekler ---------- */
.acct-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; font-size: calc(18px * var(--fs)); color: var(--accent); }
.mycode .grow { min-width: 0; }
.mycode .btn { flex: none; }
.item.req .btn { flex: none; }
.found .item { margin-top: 6px; }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qr-card .qr-svg { border-radius: 16px; background: #fff; padding: 6px; max-width: 70vw; height: auto; }
.qr-scan { position: fixed; inset: 0; z-index: 200; background: #000; opacity: 0; transition: opacity .2s; }
.qr-scan.open { opacity: 1; }
.qr-scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qr-frame { position: absolute; left: 50%; top: 45%; width: min(68vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); border-radius: 22px; }
.qr-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--accent); }
.qr-frame i:nth-child(1) { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-radius: 20px 0 0 0; }
.qr-frame i:nth-child(2) { right: -2px; top: -2px; border-left: 0; border-bottom: 0; border-radius: 0 20px 0 0; }
.qr-frame i:nth-child(3) { left: -2px; bottom: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 20px; }
.qr-frame i:nth-child(4) { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-radius: 0 0 20px 0; }
.qr-top { position: absolute; top: calc(env(safe-area-inset-top) + 12px); left: 12px; }
.qr-hint { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 48px); text-align: center; color: #fff; font-weight: calc(600 + var(--fw)); padding: 0 24px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.tick.failed { color: #f87171; font-style: normal; font-weight: 800; }
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
button.banner { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }

/* ---------- Onay rozetleri ---------- */
.vbadge { width: 1.05em; height: 1.05em; vertical-align: -0.16em; margin-left: .28em; flex: none; display: inline-block; }
.vbadge .vb-check { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vbadge.gold .vb-seal { fill: #d4af37; }
.vbadge.gold { filter: drop-shadow(0 0 4px rgba(212, 175, 55, .55)); }
.vbadge.gold .vb-check { stroke: #1a1203; }
.vbadge.blue .vb-seal { fill: #1d9bf0; }
.mem-acts { display: flex; flex-direction: column; gap: 6px; flex: none; }
.gpill.on { outline: 2px solid var(--accent); }
.item.req .grow small, .list .item .grow small { display: block; }
.tabs .badge { position: static; display: inline-grid; transform: none; margin-left: 4px; vertical-align: 1px; }
/* Fotoğrafı olmayan kişilerde OSG logosu */
.av img.logo, .st-av img.logo, .gi-photo img.logo { object-fit: contain; padding: 10%; background: radial-gradient(circle at 30% 25%, #1e2a52, #0b1020); }
.av:has(img.logo), .st-av:has(img.logo) { background: #0b1020; }
