/* SARISİNYAL — sakin, düşük kontrastlı panel teması */
@font-face { font-family: "Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-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: "Plex Sans"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-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: "Plex Sans"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-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: "Plex Sans"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2212; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF; }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2212; }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1EFF; }

:root {
  --bg: #0F1216; --panel: #161A20; --panel2: #12161B; --raise: #1C2129; --sel: #262C35;
  --line: #232933; --line2: #2B323C; --line3: #39414D;
  --text: #E6E8EB; --text2: #C9D1DA; --muted: #9AA3AE; --dim: #7F8893;
  --accent: #F5C451; --accent-ink: #1A1406; --accent-soft: rgba(245,196,81,0.14);
  --up: #3FBF8F; --down: #F07272; --up-soft: rgba(63,191,143,0.14); --down-soft: rgba(240,114,114,0.14);
  --info: #8DB8FF; --info-soft: rgba(111,168,255,0.14); --warn: #F0B45A; --warn-soft: rgba(232,162,58,0.16);
  --danger: #FF9EA3; --danger-line: #8A2E33; --real: #7A1F24; --real-ink: #FFE9EA;
  --pad-row: 12px; --radius: 12px;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F3F4F6; --panel: #FFFFFF; --panel2: #F7F8FA; --raise: #EEF0F3; --sel: #E4E7EC;
  --line: #E1E4E9; --line2: #D5DAE0; --line3: #BCC3CC;
  --text: #15181D; --text2: #2F3640; --muted: #59626E; --dim: #6B7480;
  --accent: #D9A21E; --accent-ink: #1A1406; --accent-soft: rgba(217,162,30,0.16);
  --up: #1D8A5A; --down: #C63E3C; --up-soft: rgba(29,138,90,0.12); --down-soft: rgba(198,62,60,0.12);
  --info: #2A66C7; --info-soft: rgba(42,102,199,0.12); --warn: #A86206; --warn-soft: rgba(168,98,6,0.12);
  --danger: #B3262D; --danger-line: #E2A3A6; --real: #A3262C; --real-ink: #FFFFFF;
  color-scheme: light;
}
:root[data-cb="1"] { --up: #5AA9FF; --down: #FF9F43; --up-soft: rgba(90,169,255,0.14); --down-soft: rgba(255,159,67,0.16); }
:root[data-theme="light"][data-cb="1"] { --up: #1F6FD1; --down: #C2650E; }
:root[data-density="compact"] { --pad-row: 7px; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.45; }
a { color: var(--text2); text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); } .dim { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* düzen */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.realbar { background: var(--real); color: var(--real-ink); font-weight: 600; font-size: 13px; letter-spacing: .04em; padding: 7px 24px; text-align: center; }
.killbar { background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: 13px; padding: 7px 24px; text-align: center; border-bottom: 1px solid var(--line); }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 10px 24px; border-bottom: 1px solid var(--line); background: var(--panel2); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; letter-spacing: .06em; }
.brand svg { flex: 0 0 auto; }
.grow { flex: 1 1 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.ok { background: var(--up-soft); color: var(--up); }
.chip.bad { background: var(--down-soft); color: var(--down); }
.chip.gold { background: var(--accent-soft); color: var(--accent); }
.chip.grey { background: var(--sel); color: var(--text2); }
.userbox { display: flex; align-items: center; gap: 10px; padding-left: 10px; border-left: 1px solid var(--line2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sel); display: grid; place-items: center; font-weight: 600; color: var(--accent); }
.body { display: flex; flex-wrap: wrap; flex: 1; }
.side { flex: 1 1 200px; max-width: 232px; min-width: 200px; border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--panel2); }
.side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--text2); min-height: 40px; }
.side a:hover { background: var(--raise); color: var(--text); }
.side a.on { background: var(--raise); color: var(--accent); font-weight: 600; }
.side svg { width: 18px; height: 18px; flex: 0 0 18px; }
.health { margin-top: auto; padding: 12px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 8px; }
.dot.ok { background: var(--up); } .dot.bad { background: var(--down); } .dot.warn { background: var(--warn); } .dot.off { background: var(--line3); }
main.content { flex: 999 1 560px; min-width: 0; padding: 22px 24px 40px; display: flex; flex-direction: column; gap: 18px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pagehead h1 { margin: 0; font-size: 22px; font-weight: 600; }
.pagehead .sub { color: var(--muted); font-size: 13px; }

/* kartlar */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card > .hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.card > .hd h2 { margin: 0; font-size: 16px; font-weight: 600; }
.card > .bd { padding: 16px 18px; }
.card > .bd.flush { padding: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; display: flex; flex-direction: column; gap: 5px; }
.tile .k { color: var(--muted); font-size: 13px; }
.tile .v { font-family: var(--mono); font-size: 25px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 14px; color: var(--muted); }
.tile .s { color: var(--muted); font-size: 12px; }
.bar { height: 6px; background: var(--sel); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.row > .main { flex: 2 1 560px; min-width: 0; }
.row > .aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hstack { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* tablolar */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 8px; white-space: nowrap; }
table.t td { padding: var(--pad-row) 8px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t th:first-child, table.t td:first-child { padding-left: 18px; }
table.t th:last-child, table.t td:last-child { padding-right: 18px; }
table.t td.r, table.t th.r { text-align: right; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--raise); }
.coin { display: flex; flex-direction: column; gap: 1px; }
.coin b { font-weight: 600; color: var(--text); }
.coin span { font-size: 12px; color: var(--muted); }
.side-tag { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 2px 8px; border: 1px solid var(--line3); border-radius: 6px; color: var(--text2); }
.tiers { display: inline-flex; gap: 4px; align-items: center; }
.tiers i { width: 9px; height: 9px; border-radius: 50%; background: var(--line3); display: inline-block; }
.tiers i.on { background: var(--accent); }
.empty { padding: 26px 18px; color: var(--muted); text-align: center; }

/* formlar ve düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line3); background: transparent; color: var(--text); cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--raise); }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 12.5px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { border-color: var(--danger-line); color: var(--danger); font-weight: 600; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.seg { display: inline-flex; gap: 3px; background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; flex-wrap: wrap; }
.seg button { min-height: 32px; padding: 0 12px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.seg button.on { background: var(--sel); color: var(--text); }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
input.i, select.i, textarea.i { min-height: 38px; background: var(--panel2); color: var(--text); border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; font-size: 14px; width: 100%; }
textarea.i { padding: 10px; min-height: 80px; resize: vertical; line-height: 1.5; }
input.i:focus, select.i:focus, textarea.i:focus, .btn:focus-visible, .seg button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input.i.num { font-family: var(--mono); }
.check { display: flex; align-items: center; gap: 10px; min-height: 30px; font-size: 14px; color: var(--text); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.help { font-size: 12px; color: var(--muted); line-height: 1.45; }
.err { color: var(--down); font-size: 13px; }
.note { border-left: 3px solid var(--accent); padding: 6px 12px; color: var(--text); line-height: 1.5; background: var(--panel2); border-radius: 0 8px 8px 0; }
.note.warn { border-color: var(--warn); }
.note.bad { border-color: var(--down); }

/* koşul editörü */
.cgroup { border: 1px solid var(--line2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cgroup.nested { border-style: dashed; margin-left: 14px; }
.cgroup .ghd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.glabel { font-size: 12px; font-weight: 600; letter-spacing: .05em; color: var(--accent); }
.cgroup.nested > .ghd .glabel { color: var(--info); }
.citem { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.citem select, .citem input { min-height: 32px; font-size: 13px; padding: 0 6px; width: auto; }
.citem input.n { width: 72px; font-family: var(--mono); }
.operand { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line2); border-radius: 7px; }
.op { color: var(--accent); }
.xbtn { width: 30px; height: 30px; border-radius: 6px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; margin-left: auto; }
.xbtn:hover { background: var(--raise); color: var(--down); }
.trace { font-family: var(--mono); font-size: 12px; color: var(--text2); line-height: 1.6; white-space: pre-wrap; }

/* kanıt kapısı */
.gate { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.gate li { border: 1px solid var(--line2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.gate li.ok { border-color: color-mix(in srgb, var(--up) 45%, var(--line)); background: var(--up-soft); }
.gate li.now { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); }
.gate .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--sel); color: var(--muted); }
.gate li.ok .n { background: var(--up); color: var(--bg); }
.gate li.now .n { background: var(--accent); color: var(--accent-ink); }

/* modal ve bildirim */
.backdrop { position: fixed; inset: 0; background: rgba(5,7,10,.6); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }
.modal.wide { max-width: 860px; }
.modal .hd { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.modal .hd h3 { margin: 0; font-size: 17px; }
.modal .bd { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal .ft { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 60; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--raise); border: 1px solid var(--line2); border-left: 3px solid var(--info); border-radius: 9px; padding: 10px 14px; font-size: 13px; line-height: 1.45; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast.bad { border-left-color: var(--down); }
.toast.ok { border-left-color: var(--up); }
.flash { animation: flash 900ms ease; }
@keyframes flash { from { background: var(--accent-soft); } to { background: transparent; } }

/* giriş */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth .box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.auth .logo { display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: .08em; }
.auth .card { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.auth h1 { margin: 0; font-size: 20px; }
.otp { font-family: var(--mono); font-size: 24px !important; letter-spacing: .3em; text-align: center; min-height: 52px !important; }
.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 999px; background: var(--sel); }
.steps i.on { background: var(--accent); }
.qr { display: flex; justify-content: center; }
.qr svg { width: 200px; height: 200px; border-radius: 8px; }

/* grafik */
.chartbox { height: 480px; border-radius: 8px; overflow: hidden; background: var(--panel2); }
.chartbox.sm { height: 260px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.legend span { padding: 3px 8px; border: 1px solid var(--line2); border-radius: 6px; }

@media (max-width: 860px) {
  .side { max-width: none; flex-direction: row; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side a { white-space: nowrap; }
  .side .health { display: none; }
  main.content { padding: 16px; }
  .top { padding: 10px 16px; }
  .userbox .who { display: none !important; }
  .chartbox { height: 360px; }
}
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } }

#page:focus { outline: none; }

/* ---------------- herkese açık site ---------------- */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-top { display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); background: var(--panel2); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.site-nav { display: flex; gap: 4px; margin-left: 18px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); }
.site-nav a:hover, .site-nav a.on { color: var(--text); background: var(--raise); }
.site-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 56px; display: flex; flex-direction: column; }
.site-main:focus { outline: none; }
.btn.lg { min-height: 46px; padding: 0 20px; font-size: 15px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.hero-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero h1 { margin: 0; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.hero .accent { color: var(--accent); }
.lead { margin: 0; color: var(--text2); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; max-width: 56ch; }
.hero-art { width: 100%; height: auto; display: block; }
.band { padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.band h2 { margin: 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.fcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.fcard h3 { margin: 0; font-size: 16px; }
.fcard p { margin: 0; color: var(--muted); line-height: 1.55; }
.ficon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: s; }
.flow li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.flow li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--sel); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.flow li span { color: var(--muted); line-height: 1.55; }
.riskbox { border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); background: var(--warn-soft); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; line-height: 1.6; }
.riskbox p { margin: 0; color: var(--text2); }
.riskbox.sm { padding: 12px 14px; font-size: 13px; display: block; }
.site-foot { border-top: 1px solid var(--line); background: var(--panel2); padding: 28px clamp(16px, 4vw, 48px); }
.foot-in { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.auth-wrap { width: 100%; max-width: 440px; margin: clamp(28px, 6vw, 64px) auto; }
.auth-wrap.wide { max-width: 620px; }
.auth-card { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { margin: 0; font-size: 21px; }
.check.check-top { align-items: flex-start; line-height: 1.5; font-size: 13.5px; }
.check.check-top input { margin-top: 2px; flex: 0 0 18px; }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.okmark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--up-soft); color: var(--up); }
.legal-page { padding: clamp(20px, 4vw, 40px); margin: clamp(20px, 4vw, 40px) 0; max-width: 860px; align-self: center; width: 100%; }
.legal-page h1 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 28px); }
.legal { line-height: 1.65; color: var(--text2); }
.legal h3 { margin: 22px 0 6px; font-size: 16px; color: var(--text); }
.legal p { margin: 0 0 8px; }
.modal .legal { max-height: 60vh; overflow: auto; padding-right: 6px; }

/* görüntüleme modu ve rozetler */
.viewbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 7px 16px; background: var(--info-soft); color: var(--info); font-size: 13px; border-bottom: 1px solid var(--line); }
.viewbar .btn { border-color: var(--info); color: var(--info); }
.viewing main .btn.primary, .viewing main .btn.danger, .viewing .modal .btn.primary, .viewing .modal .btn.danger { opacity: .45; pointer-events: none; }
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.navtoggle { display: none; }
.agentlog { display: flex; flex-direction: column; gap: 4px; padding: 12px 18px; border-top: 1px solid var(--line); }
.agentlog:first-child { border-top: 0; }
.agentlog .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.agentlog .txt { white-space: pre-wrap; line-height: 1.55; }
.steplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.steplist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.steplist li .dot { margin-top: 6px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 860px) {
  .navtoggle { display: inline-flex; }
  .side { display: none; position: absolute; z-index: 30; left: 0; right: 0; flex-direction: column; overflow: visible; max-width: none; background: var(--panel2); border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
  .side.open { display: flex; }
  .body { position: relative; }
  .top { gap: 8px; }
  .top .chip { display: none; }
  .top .btn.danger span { display: none; }
  .userbox { padding-left: 6px; }
  .pagehead h1 { font-size: 19px; }
  .tile .v { font-size: 21px; }
  .card > .hd, .card > .bd { padding-left: 14px; padding-right: 14px; }
  table.t th:first-child, table.t td:first-child { padding-left: 14px; }
  .modal .bd, .modal .hd, .modal .ft { padding-left: 14px; padding-right: 14px; }
}
.agentlog.unread { box-shadow: inset 3px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
tr.me td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.userbox .who { display: flex; flex-direction: column; line-height: 1.2; }
@media (max-width: 860px) { .top { flex-wrap: nowrap; } }
@media (max-width: 440px) { .top .brand span { display: none; } }
.errbox { display: flex; flex-direction: column; gap: 10px; }
.errbox .errhead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--down); }
.errbox .row2 { display: grid; grid-template-columns: 90px 1fr; gap: 10px; font-size: 13.5px; }
.errbox .row2 span { color: var(--muted); }
.erritems { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.erritems li { line-height: 1.5; }
.erritems .where { font-weight: 600; color: var(--text); }
.erritems .fix { color: var(--muted); font-size: 13px; }
.erritems .btn { margin-top: 4px; }
.field-err { outline: 2px solid var(--down) !important; outline-offset: 2px; border-radius: 8px; animation: errpulse 1.2s ease 2; }
@keyframes errpulse { 50% { outline-color: transparent; } }
.csum { background: var(--panel2); border: 1px dashed var(--line2); border-radius: 10px; padding: 10px 14px; line-height: 1.6; font-size: 13.5px; }
.ilib { display: flex; flex-direction: column; gap: 14px; max-height: 58vh; overflow: auto; padding-right: 4px; }
.igrp { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.igl { grid-column: 1 / -1; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.iitem { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--panel2); }
.iitem:hover { border-color: var(--accent); }
/* üst fiyat şeridi */
.tickerbar { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 34px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12.5px; overflow: hidden; }
.tk-items { display: flex; gap: 18px; flex: 1; overflow-x: auto; scrollbar-width: none; align-items: center; height: 100%; }
.tk-items::-webkit-scrollbar { display: none; }
.tk-item { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.tk-item b { font-weight: 600; color: var(--text); }
.tk-px { color: var(--text); transition: color .4s; }
.tk-px.fl-up { color: var(--up); } .tk-px.fl-down { color: var(--down); }
.tk-ch.up { color: var(--up); } .tk-ch.down { color: var(--down); }
.tk-spark { display: block; }
.tk-ctl { display: flex; gap: 4px; }
.tk-q { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 2px 8px; font: inherit; cursor: pointer; }
.tk-q:hover { color: var(--text); border-color: var(--line2); }
.memberbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 8px 16px; background: var(--warn-soft); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.memberbar.bad { background: color-mix(in srgb, var(--down) 14%, transparent); }
.daylist { display: flex; flex-direction: column; }
.daylist .dl { display: flex; justify-content: space-between; gap: 10px; padding: 9px 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.daylist .dl:first-child { border-top: 0; }
@media (max-width: 600px) { .tk-spark { display: none; } .tk-items { gap: 12px; } }
.memleft:not(:empty)::before { content: " · "; }
/* ---------------- grafik sayfası ---------------- */
.gx { display: flex; flex-direction: column; gap: 10px; position: relative; }
.gx:fullscreen { background: var(--bg); padding: 10px; }
.gx-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gx-sym .i { width: auto; }
.gx-sym #sym { width: 150px; }
.gx-top .seg button { padding: 5px 9px; }
.gx-main { display: flex; gap: 8px; min-height: 0; }
.gx-tools { display: flex; flex-direction: column; gap: 4px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; align-self: flex-start; position: sticky; top: 8px; }
.gx-tool { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.gx-tool:hover { color: var(--text); background: var(--raise); }
.gx-tool.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.gx-sep { height: 1px; background: var(--line); margin: 4px 2px; }
.gx-grid { flex: 1; display: grid; gap: 8px; min-width: 0; }
.gx-grid.n1 { grid-template-columns: 1fr; }
.gx-grid.n2 { grid-template-columns: 1fr 1fr; }
.gx-grid.n4 { grid-template-columns: 1fr 1fr; }
.cpanel { position: relative; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.cpanel.active { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.gx-grid.n1 .cpanel { height: calc(100vh - 210px); min-height: 520px; }
.gx-grid.n2 .cpanel { height: calc(100vh - 210px); min-height: 460px; }
.gx-grid.n4 .cpanel { height: calc((100vh - 220px) / 2); min-height: 320px; }
.cp-box { position: relative; flex: 1; min-height: 0; }
.cp-legend { position: absolute; top: 6px; left: 8px; z-index: 5; font-size: 12px; display: flex; flex-direction: column; gap: 2px; pointer-events: none; max-width: calc(100% - 90px); }
.cp-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--mono); color: var(--text); }
.cp-head b { font-family: var(--sans); font-size: 13px; }
.cp-ind { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--mono); pointer-events: auto; background: color-mix(in srgb, var(--panel2) 80%, transparent); border-radius: 6px; padding: 1px 4px; width: fit-content; }
.cp-ind b { font-family: var(--sans); font-weight: 500; color: var(--text); }
.cp-ind.off { opacity: .5; }
.cp-ind button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 3px; font-size: 12px; opacity: 0; }
.cp-ind:hover button { opacity: 1; }
.cp-msg { position: absolute; inset: 40% 10% auto; text-align: center; color: var(--down); z-index: 6; }
.drawlayer { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: visible; }
.drawlayer.drawing { pointer-events: all; cursor: crosshair; }
.drawlayer .dl-hit { stroke: transparent; stroke-width: 12; pointer-events: stroke; cursor: move; }
.drawlayer .dl-hitbox { pointer-events: all; cursor: move; }
.drawlayer .dl-h { fill: var(--panel2); stroke: var(--accent); stroke-width: 2; pointer-events: all; cursor: grab; }
.drawlayer .dl.sel line, .drawlayer .dl.sel rect { filter: drop-shadow(0 0 2px color-mix(in srgb, var(--accent) 60%, transparent)); }
.drawlayer .dl.prev { opacity: .7; }
.drawlayer .dl-lbl { font: 11px var(--sans); paint-order: stroke; stroke: var(--panel2); stroke-width: 3px; }
.drawlayer .dl-text { font-size: 13px; font-weight: 600; }
.gx-replay { position: sticky; bottom: 8px; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.gx-props { position: sticky; bottom: 8px; z-index: 21; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.gx-colors { display: inline-flex; gap: 4px; }
.gx-col { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.gx-col.on { border-color: var(--text); }
.alrow { padding: 6px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 860px) {
  .gx-main { flex-direction: column; }
  .gx-tools { flex-direction: row; overflow-x: auto; position: static; align-self: stretch; }
  .gx-sep { width: 1px; height: auto; margin: 2px 4px; }
  .gx-grid.n2, .gx-grid.n4 { grid-template-columns: 1fr; }
  .gx-grid .cpanel { height: 62vh !important; min-height: 380px; }
  .gx-top { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .gx-top > * { flex-shrink: 0; }
}
.bellbtn { position: relative; } .bellbtn .badge { position: absolute; top: -2px; right: -4px; }

/* ===================== Aşama C: sohbet, bildirimler, site düzenleyici, reklam ===================== */
#page { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ss-ppanel:empty, .ss-psite:empty { display: none; }
.btn.xs { min-height: 26px; padding: 0 7px; font-size: 12px; gap: 4px; }
.avatar.sm { width: 30px; height: 30px; flex: 0 0 30px; font-size: 13px; }
.avatar.gen { background: var(--accent-soft); color: var(--accent); }
.show-sm { display: none; }
.subhd { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 10px 0 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 16px; }
.kv > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; }
.kv span { font-size: 12px; color: var(--muted); }
pre.pre { white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 12px; }

/* Duyuru bandı ve reklam alanı */
.annbar { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 7px 40px 7px 16px; font-size: 13.5px; position: relative;
  background: var(--info-soft); color: var(--text); border-bottom: 1px solid var(--line); }
.annbar.ok { background: var(--up-soft); } .annbar.warn { background: var(--warn-soft); } .annbar.bad { background: var(--down-soft); }
.annbar a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.annbar .xbtn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.ss-pk { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 12px 16px; border: 1px dashed var(--line3);
  border-radius: var(--radius); color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--line) 35%, transparent) 10px 11px);
  text-decoration: none; position: relative; text-align: center; font-size: 14px; }
.ss-pk:hover { border-color: var(--accent); color: var(--text); }
.ss-pk img { max-height: 90px; max-width: 100%; border-radius: 8px; }
.ss-pk .ss-ptag { position: absolute; top: 4px; right: 8px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.ss-pk.wide { min-height: 52px; padding: 8px 16px; }
.ss-pk.ss-pside { min-height: 120px; margin-top: 12px; font-size: 13px; padding: 14px 10px; flex-direction: column; }
.ss-pk.box { min-height: 110px; }
.ss-pk.preview { min-height: 48px; margin-top: 8px; }
.ss-psite { max-width: 1120px; margin: 16px auto 8px; width: 100%; }

/* Sohbet */
.chat { display: grid; grid-template-columns: 290px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  height: calc(100vh - 300px); min-height: 440px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; padding: 6px; gap: 2px; background: var(--panel2); }
.chat-room { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent;
  color: var(--text); cursor: pointer; font: inherit; }
.chat-room:hover { background: var(--raise); } .chat-room.on { background: var(--sel); }
.cr-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cr-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-last { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11px; }
.cr-side .badge { margin: 0; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-hd { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-height: 52px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-more { text-align: center; padding: 6px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; position: relative; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble { background: var(--raise); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; min-width: 0; }
.msg.mine .bubble { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 14px 14px 4px 14px; }
.msg.deleted .bubble { background: transparent; border-style: dashed; }
.msg-from { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.msg-body { white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.msg-meta { font-size: 11px; color: var(--dim); margin-top: 3px; display: flex; gap: 4px; justify-content: flex-end; }
.msg-quote { display: block; font-size: 12.5px; color: var(--muted); border-left: 3px solid var(--accent); padding: 2px 8px; margin-bottom: 6px; text-decoration: none;
  background: color-mix(in srgb, var(--line) 40%, transparent); border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-acts { display: flex; gap: 2px; opacity: 0; transition: opacity .12s; align-self: center; }
.msg:hover .msg-acts, .msg:focus-within .msg-acts { opacity: 1; }
.chat-reply { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: var(--panel2); }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-compose textarea { flex: 1; resize: none; min-height: 40px; max-height: 160px; line-height: 1.45; }
.chat-compose.disabled { opacity: .6; }
.chat-rules { padding: 0 14px 10px; margin: 0; font-size: 11.5px; }
.mcard { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; background: var(--panel); margin-top: 6px; display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
.mcard-hd { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.mcard-hd b { color: var(--text); }
.mcard-desc { font-size: 13px; color: var(--text2); line-height: 1.45; }
.mcard-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.mcard-meta span { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--raise); color: var(--muted); }
.mcard-ft { display: flex; align-items: center; gap: 6px; font-size: 12px; flex-wrap: wrap; }
/* Yönetici arşivi */
.chat.admin { height: calc(100vh - 200px); min-height: 520px; }
.amsg { border-bottom: 1px solid var(--line); padding: 10px 4px; display: flex; flex-direction: column; gap: 4px; }
.amsg.deleted { background: color-mix(in srgb, var(--down) 6%, transparent); }
.amsg.unread { box-shadow: inset 3px 0 0 var(--accent); }
.amsg-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.amsg-old { font-size: 12.5px; padding: 4px 8px; border-left: 2px solid var(--line3); margin: 4px 0; white-space: pre-wrap; }

/* Bildirimler */
.notif { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: flex-start; color: var(--text); text-decoration: none; }
.notif:first-child { border-top: 0; }
.notif .ndot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: 0 0 9px; background: transparent; }
.notif.unread .ndot { background: var(--info); }
.notif.unread.lvl-ok .ndot { background: var(--up); } .notif.unread.lvl-warn .ndot { background: var(--warn); } .notif.unread.lvl-bad .ndot { background: var(--down); }
.notif.unread { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.nbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nhd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ntxt { white-space: pre-wrap; color: var(--text2); line-height: 1.5; font-size: 13.5px; }
.nmeta { display: flex; gap: 12px; font-size: 12px; color: var(--dim); }
.nmeta a { color: var(--accent); }
.nacts { display: flex; gap: 2px; }
.notif.mini { padding: 10px 4px; }
.notif.mini:hover { background: var(--raise); }
table.prefs td.c, table.prefs th.c { text-align: center; width: 90px; }
table.prefs input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }

/* Site düzenleyici */
.site-ed { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.se-list { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 10px; }
.se-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; border: 0; background: transparent;
  color: var(--text); cursor: pointer; font: inherit; text-align: left; }
.se-item:hover { background: var(--raise); } .se-item.on { background: var(--sel); font-weight: 600; }
.se-main .hd { flex-wrap: wrap; gap: 8px; }
.rowcard { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--panel2); }

@media (max-width: 860px) {
  .chat { grid-template-columns: 1fr; height: calc(100vh - 200px); }
  .chat .chat-main { display: none; }
  .chat.open-room .chat-list { display: none; }
  .chat.open-room .chat-main { display: flex; }
  .chat.admin .chat-main { display: flex; } .chat.admin .chat-list { display: flex; max-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat.admin { grid-template-rows: auto minmax(0, 1fr); }
  .show-sm { display: inline-flex; }
  .hide-sm { display: none; }
  .msg { max-width: 100%; }
  .msg-acts { opacity: 1; flex-direction: column; }
  .mcard { min-width: 0; }
  .chat { height: calc(100vh - 250px); }
  .site-ed { grid-template-columns: 1fr; }
  .se-list { position: static; flex-direction: row; overflow-x: auto; }
  .se-item { white-space: nowrap; }
  .ss-pk.wide { min-height: 52px; padding: 8px 16px; }
.ss-pk.ss-pside { display: none; }
}

/* ---------- kayan haber bandı (v0.5.1) ---------- */
.newsband { display: flex; align-items: stretch; height: 30px; font-size: 12.5px; border-bottom: 1px solid var(--line);
  background: var(--panel2, var(--panel)); overflow: hidden; }
.newsband .nb-label { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-weight: 700; font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink, #1a1300); background: var(--accent); flex: none; }
.newsband .nb-viewport { flex: 1; overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.newsband .nb-track { display: inline-flex; white-space: nowrap; height: 100%; align-items: center;
  animation: nb-scroll linear infinite; will-change: transform; }
.newsband .nb-dup { display: inline-flex; }
.newsband:hover .nb-track, .newsband:focus-within .nb-track { animation-play-state: paused; }
.newsband .nb-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 22px; color: var(--text); text-decoration: none;
  border-right: 1px solid var(--line); height: 100%; }
.newsband a.nb-item:hover .nb-title { text-decoration: underline; text-underline-offset: 2px; }
.newsband .nb-time { color: var(--dim); font-variant-numeric: tabular-nums; }
.newsband .nb-src { color: var(--muted); font-size: 11px; }
.newsband .nb-hot { color: var(--down); font-size: 10.5px; letter-spacing: .05em; }
.newsband .nb-item.warn .nb-title { color: var(--warn, inherit); }
@keyframes nb-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .newsband .nb-viewport { overflow-x: auto; mask-image: none; }
  .newsband .nb-track { animation: none; }
  .newsband .nb-dup { display: none; }
}
@media (max-width: 640px) { .newsband { height: 28px; font-size: 12px; } .newsband .nb-label span, .newsband .nb-src { display: none; } }
.news-adm .t td { vertical-align: top; }
.news-adm .hidrow { opacity: .45; }

/* ---------- balina akışı (v0.6.0) ---------- */
.f.inline { flex-direction: row; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.wh-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.4fr); gap: 16px; margin-top: 12px; }
.wh-grid .wh-live { grid-row: span 2; grid-column: 2; }
.wh-grid > section:first-child { grid-column: 1; }
.wh-grid > section:last-child { grid-column: 1; }
.wh-live .tablewrap { max-height: 640px; overflow: auto; }
.wh-t td, .wh-t th { padding-top: 6px; padding-bottom: 6px; }
.wh-t tr.wh-big td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.wh-t tr.wh-new { animation: wh-flash 2.4s ease-out; }
@keyframes wh-flash { from { background: color-mix(in srgb, var(--accent) 30%, transparent); } to { background: transparent; } }
.wh-flow { display: flex; flex-direction: column; gap: 7px; }
.wf-row { display: grid; grid-template-columns: 64px 1fr 92px 64px; align-items: center; gap: 8px; font-size: 13px; }
.wf-sym { font-weight: 700; color: var(--text); text-decoration: none; }
.wf-sym:hover { text-decoration: underline; }
.wf-bars { display: flex; flex-direction: column; gap: 2px; }
.wf-b { display: block; height: 6px; border-radius: 3px; min-width: 2px; }
.wf-b.buy, .wf-dot.buy { background: var(--up); } .wf-b.sell, .wf-dot.sell { background: var(--down); }
.wf-net { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.wf-net.up { color: var(--up); } .wf-net.down { color: var(--down); }
.wf-cnt { text-align: right; font-size: 11.5px; }
.wf-legend { gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.wf-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
@media (max-width: 980px) { .wh-grid { grid-template-columns: 1fr; } .wh-grid .wh-live, .wh-grid > section { grid-column: 1; grid-row: auto; } }

/* ---------- SarıAjan (v0.6.0) ---------- */
.sa-root { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.sa-fab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink, #1a1300); font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.sa-fab:hover { filter: brightness(1.05); transform: translateY(-1px); }
.sa-fab.hidden, .sa-panel.hidden { display: none; }
.sa-panel { width: min(400px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line2, var(--line)); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.35); overflow: hidden; }
.sa-hd { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.sa-hd .dim { font-size: 12px; }
.sa-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.sa-m { max-width: 88%; padding: 9px 12px; border-radius: 14px; word-wrap: break-word; }
.sa-m.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink, #1a1300); border-bottom-right-radius: 4px; }
.sa-m.bot { align-self: flex-start; background: var(--panel2, var(--bg)); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sa-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; flex-wrap: wrap; }
.sa-ic { background: none; border: 0; cursor: pointer; padding: 2px 4px; border-radius: 6px; color: var(--muted); font-size: 14px; }
.sa-ic:hover { background: var(--line); color: var(--text); }
.sa-hello { color: var(--muted); }
.sa-hello b { color: var(--text); }
.sa-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sa-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.sa-form textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; }
.sa-foot { margin: 0; padding: 0 12px 10px; font-size: 11px; color: var(--dim); }
.sa-dots { display: inline-flex; gap: 4px; } .sa-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: sa-b 1s infinite; }
.sa-dots i:nth-child(2) { animation-delay: .15s; } .sa-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes sa-b { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.sa-log .sa-q { font-weight: 600; margin-top: 6px; }
.sa-a { white-space: pre-wrap; color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 640px) { .sa-root { right: 10px; bottom: 10px; } .sa-fab span { display: none; } .sa-fab { padding: 12px; } }
@media print { .sa-root { display: none; } }

/* ======================================================================
   TELEFON DÜZELTMELERİ (v0.6.3)
   ====================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, video, canvas { max-width: 100%; }
.i, input, select, textarea { min-width: 0; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

@media (max-width: 640px) {
  /* iPhone, 16px'ten küçük yazı kutularına dokununca sayfayı yakınlaştırıp geri bırakmıyor: ekran taşmasının ana nedeni */
  input, select, textarea, .i { font-size: 16px !important; }
  body { overflow-x: hidden; }
  .content, main.content { padding-left: 12px !important; padding-right: 12px !important; min-width: 0; }
  #page { min-width: 0; }

  /* üst şerit ve başlık */
  .tickerbar { padding: 0 10px; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .tickerbar::-webkit-scrollbar { display: none; }
  .tk-spark { display: none; }
  .top { padding: 8px 10px; gap: 4px; flex-wrap: nowrap; }
  .top .brand span { display: none; }
  .top .btn { padding-left: 9px; padding-right: 9px; }
  .userbox .who { display: none; }

  /* sayfa başlıkları ve düğmeler */
  .pagehead { gap: 8px; }
  .pagehead h1 { font-size: 18px; flex-basis: 100%; }
  .pagehead .sub { flex-basis: 100%; margin-top: -4px; }
  .pagehead .grow { display: none; }
  .pagehead > .btn, .pagehead > a.btn { flex: 1 1 auto; justify-content: center; }
  .hstack { flex-wrap: wrap; }
  .formgrid { grid-template-columns: 1fr !important; }
  .grid2, .grid3 { grid-template-columns: 1fr !important; }

  /* Kokpit kutuları: 2 sütun, daha sıkı */
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 12px; gap: 3px; min-width: 0; }
  .tile .k { font-size: 12px; }
  .tile .v { font-size: 18px; overflow-wrap: anywhere; }
  .tile .v small { font-size: 11px; }
  .tile .s { font-size: 11px; }

  /* kartlar ve tablolar */
  .card > .hd { flex-wrap: wrap; gap: 6px; }
  .card > .hd .seg { max-width: 100%; overflow-x: auto; }
  table.t { font-size: 13px; }
  table.t th, table.t td { padding-left: 8px; padding-right: 8px; }
  .seg { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { white-space: nowrap; }
  .chip { white-space: nowrap; }
  .modal { width: calc(100vw - 16px) !important; max-height: calc(100dvh - 16px); }
  .backdrop { padding: 8px; align-items: flex-end; }

  /* Grafik: üst seçimler ve çizim araçları yatay kayar */
  .gx-top { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .gx-top::-webkit-scrollbar { display: none; }
  .gx-top > * { flex: none; }
  .gx-main { flex-direction: column; }
  .gx-tools { flex-direction: row; position: static; overflow-x: auto; max-width: 100%; align-self: stretch; scrollbar-width: none; }
  .gx-tools::-webkit-scrollbar { display: none; }
  .gx-tool { flex: none; }
  .gx-sep { width: 1px; height: auto; margin: 2px 4px; }

  /* Balina akışı */
  .wh-bar { gap: 8px; }
  .wh-bar .f.inline { flex: 1 1 140px; }
  .wh-bar .f.inline .i { width: 100% !important; }
  .wh-t th:last-child, .wh-t td:last-child { display: none; }      /* Fiyat sütunu */
  .wh-t td.r, .wh-t th.r { white-space: nowrap; }
  #wliqs .wh-t th:last-child, #wliqs .wh-t td:last-child { display: table-cell; }
  #wliqs .chip { white-space: normal; }
  .wf-row { grid-template-columns: 50px 1fr 84px; gap: 6px; font-size: 12.5px; }
  .wf-cnt { display: none; }

  /* bildirim / uyarı baloncukları SarıAjan düğmesinin üstüne binmesin: ekranın üstünde çıkar */
  .toasts { top: calc(8px + env(safe-area-inset-top)); bottom: auto; left: 8px; right: 8px; max-width: none; }

  /* SarıAjan: küçük düğme, açılınca tam ekran */
  .sa-root { right: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .sa-fab { width: 48px; height: 48px; padding: 0; justify-content: center; opacity: .95; }
  .sa-fab span { display: none; }
  .sa-panel { position: fixed; inset: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .sa-hd { padding-top: calc(12px + env(safe-area-inset-top)); }
  .sa-form { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  body.sa-open { overflow: hidden; }
}
@media (max-width: 380px) {
  .tiles { grid-template-columns: 1fr; }
  .top .btn.ghost.sm[data-act="theme"] { display: none; }
}
@media (max-width: 640px) { #majors { grid-template-columns: 1fr 1fr !important; display: grid; gap: 8px; } }
/* robot doğrulaması (Turnstile) */
.ts-slot:empty { display: none; }
.ts-slot { min-height: 65px; max-width: 100%; }
.ts-slot.err { min-height: 0; }
