/* Balina Radar: deniz haritası / sonar teması
   Kağıt zemin, lacivert mürekkep, derinlik eğrileri; turuncu sadece canlı sinyal (şamandıra) rengi. */
:root {
  --paper: #F1F5F6;
  --surface: #FFFFFF;
  --ink: #10233F;
  --ink-2: #1B3557;
  --ink-3: #2A4A70;
  --muted: #56687A;
  --line: #CFDCE1;
  --line-soft: #E3ECEF;
  --sea: #2F6F8F;
  --sea-soft: #E2EEF3;
  --signal: #EE5A24;
  --signal-soft: #FDEAE2;
  --ok: #1D7650;
  --ok-soft: #E1F2E9;
  --danger: #B3302B;
  --danger-soft: #FBE7E6;
  --radius: 10px;
  --radius-s: 6px;
  --display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); overflow-x: hidden; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(47, 111, 143, .45); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; line-height: 1.15; }
p { margin: 0; }
.num, .tabular { font-variant-numeric: tabular-nums; }
code { font-family: var(--body); font-weight: 600; background: var(--sea-soft); color: var(--ink); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.muted { color: var(--muted); }
.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink);
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); color: #fff; }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #F26C3B; color: var(--ink); border-color: #F26C3B; }
.btn-danger { color: var(--danger); border-color: var(--danger-soft); background: var(--surface); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }

/* ---------- Site menüsü ---------- */
.site-nav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 19px/1 var(--display); font-stretch: 112%; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; position: relative; flex-shrink: 0;
  background: repeating-radial-gradient(circle, var(--ink) 0 2px, transparent 2px 6px), var(--sea-soft); border: 2px solid var(--ink); }
.brand-mark::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); top: 4px; right: 4px; box-shadow: 0 0 0 2px var(--surface); }
.site-links { display: flex; align-items: center; gap: 4px; }
.site-links a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-s); font-weight: 500; }
.site-links a:not(.btn):hover { color: var(--ink); background: var(--paper); }

/* ---------- Tanıtım: hero + sonar ---------- */
.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.025em; line-height: 1.02; max-width: 12ch; }
.hero .lead { margin: 22px 0 32px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 46ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 520px; }
.facts div { font-size: .93rem; color: var(--muted); }
.facts b { display: block; font: 700 1.35rem/1.2 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }

.scope { position: relative; justify-self: center; width: min(100%, 440px); }
.radar { position: relative; }
.sonar { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .16)) center / 1px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .16)) center / 100% 1px no-repeat,
    repeating-radial-gradient(circle, transparent 0 calc(12.5% - 1px), rgba(255, 255, 255, .14) calc(12.5% - 1px) 12.5%),
    radial-gradient(circle, #183559 0, var(--ink) 75%); }
.sweep { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(238, 90, 36, 0) 0deg, rgba(238, 90, 36, 0) 300deg, rgba(238, 90, 36, .3) 360deg);
  animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.ping { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--signal); }
.ping::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--signal); opacity: 0; animation: ping 6s ease-out infinite; animation-delay: inherit; }
@keyframes ping { 0%, 4% { opacity: .9; transform: scale(.4); } 30% { opacity: 0; transform: scale(2.2); } 100% { opacity: 0; } }
.ping-label { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); background: rgba(16, 35, 63, .9); color: #fff; font-size: .78rem; font-weight: 500;
  padding: 3px 8px; border-radius: 4px; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .2); font-variant-numeric: tabular-nums; }
.ping.left .ping-label { left: auto; right: 14px; }
.tg-card { position: absolute; left: -36px; bottom: -28px; width: 264px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font-size: .88rem; line-height: 1.45; box-shadow: 0 18px 40px -24px rgba(16, 35, 63, .45); }
.tg-card .from { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; font-size: .82rem; color: var(--muted); }
.tg-card .from .brand-mark { width: 18px; height: 18px; border-width: 1.5px; }
.tg-card .from .brand-mark::after { width: 5px; height: 5px; top: 1px; right: 1px; }
.tg-card .sig { color: var(--sea); display: block; margin-top: 6px; }

/* ---------- Tanıtım: içerik bölümleri ---------- */
.band { padding: 88px 0; border-bottom: 1px solid var(--line); }
.band-surface { background: var(--surface); }
.band-head { max-width: 640px; margin-bottom: 48px; }
.band-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; }
.band-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

.groups { border-top: 1px solid var(--line); }
.group { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.group-title h3 { font-size: 1.35rem; font-weight: 700; font-stretch: 108%; }
.group-title p { color: var(--muted); margin-top: 8px; font-size: .97rem; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: start; }
.item .ic { width: 38px; height: 38px; border-radius: var(--radius-s); background: var(--sea-soft); color: var(--sea); display: grid; place-items: center; }
.item .ic .i { width: 20px; height: 20px; }
.item h4 { margin: 2px 0 4px; font-size: 1.02rem; font-weight: 600; }
.item p { color: var(--muted); font-size: .95rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 0 28px 0 0; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--ink); font: 800 1.1rem/1 var(--display); background: var(--surface); position: relative; z-index: 1; margin-bottom: 18px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; border-top: 2px dashed var(--line); }
.steps h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 32ch; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--display); color: var(--sea); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 10px; max-width: 66ch; }

.closing { background: var(--ink); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -420px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 58px, rgba(255, 255, 255, .07) 58px 60px); }
.closing .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.closing h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; font-stretch: 110%; max-width: 18ch; }
.closing p { color: #B9C7D6; margin-top: 10px; }
.closing .btn:not(.btn-signal) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.closing .btn:not(.btn-signal):hover { border-color: #fff; }

.site-footer { padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Giriş sayfaları ---------- */
.auth { min-height: calc(100vh - 65px); display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.auth-card h1 { font-size: 1.75rem; font-weight: 800; font-stretch: 108%; margin-bottom: 10px; }
.auth-card > p { color: var(--muted); }
.auth-steps { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 16px; counter-reset: s; }
.auth-steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; color: var(--muted); }
.auth-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 700 .9rem/1 var(--display); color: var(--ink); }
.auth-steps b { color: var(--ink); font-weight: 600; }

/* ---------- Uygulama kabuğu (yönetim + sahip paneli) ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--ink); color: #D5DEE8; padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; }
.sidebar .brand { color: #fff; padding: 0 8px; }
.sidebar .brand-mark { border-color: #fff; background: repeating-radial-gradient(circle, #fff 0 2px, transparent 2px 6px), var(--ink-3); }
.sidebar .brand-mark::after { box-shadow: 0 0 0 2px var(--ink); }
.who { padding: 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-s); }
.who small { display: block; color: #93A6BB; font-size: .78rem; }
.who b { display: block; color: #fff; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; margin-top: 2px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius-s); color: #C3D0DD; text-decoration: none; font-weight: 500; font-size: .95rem; }
.side-nav a:hover { background: var(--ink-2); color: #fff; }
.side-nav a.active { background: var(--ink-3); color: #fff; }
.side-nav a.active .i { color: var(--signal); }
.side-nav .count { margin-left: auto; font-size: .78rem; color: #93A6BB; font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; }
.side-foot a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius-s); color: #C3D0DD; text-decoration: none; font-size: .93rem; }
.side-foot a:hover { background: var(--ink-2); color: #fff; }

.main { padding: 32px 40px 72px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; font-stretch: 108%; letter-spacing: -.015em; overflow-wrap: anywhere; }
.page-head p { color: var(--muted); margin-top: 6px; }
.page-head .back { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; margin-bottom: 10px; text-decoration: none; }

.readout { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 40px; }
.readout > div { padding: 16px 20px; border-left: 1px solid var(--line-soft); min-width: 0; }
.readout > div:first-child { border-left: 0; }
.readout b { display: block; font: 700 1.6rem/1.2 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.readout b small { font: 500 .95rem var(--body); color: var(--muted); }
.readout b.text { font-size: 1.05rem; line-height: 1.5; padding-top: 6px; }
.readout span { color: var(--muted); font-size: .88rem; }

.sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.sec { min-width: 0; scroll-margin-top: 24px; }
.sec.wide { grid-column: 1 / -1; }
.sec-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sec-head .ic { width: 36px; height: 36px; border-radius: var(--radius-s); background: var(--sea-soft); color: var(--sea); display: grid; place-items: center; flex-shrink: 0; }
.sec-head h2 { font-size: 1.2rem; font-weight: 700; font-stretch: 106%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-head p { color: var(--muted); font-size: .93rem; margin-top: 3px; max-width: 70ch; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.surface > .pad { padding: 20px; }
.surface > * + .pad { border-top: 1px solid var(--line-soft); }

.status { display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem/1 var(--body); padding: 5px 9px; border-radius: 999px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.status.on { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.status.custom { background: var(--signal-soft); color: #A63A12; border-color: transparent; }
.chain { display: inline-block; font: 600 .74rem/1 var(--body); padding: 4px 7px; border-radius: 4px; background: #FFF4D6; color: #7A5B00; vertical-align: middle; }

/* Listeler */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line-soft); }
.rows li:last-child { border-bottom: 0; }
.rows .main-col { min-width: 0; }
.rows .main-col b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.rows .main-col small { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.empty { padding: 26px 20px; color: var(--muted); text-align: center; }
.empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* Formlar */
form.stack { display: grid; gap: 14px; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); align-items: end; }
label { display: grid; gap: 6px; font-size: .86rem; font-weight: 500; color: var(--ink); min-width: 0; }
label .help { font-weight: 400; color: var(--muted); font-size: .84rem; }
input, select, textarea { width: 100%; min-height: 42px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 9px 12px; font: 400 16px/1.4 var(--body); }
input::placeholder, textarea::placeholder { color: #8FA0AF; }
input:hover, select:hover, textarea:hover { border-color: #AFC2CA; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(47, 111, 143, .18); }
textarea { resize: vertical; min-height: 96px; }
.form-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.seg { display: inline-grid; grid-auto-flow: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 3px; width: fit-content; }
.seg label { display: block; padding: 7px 14px; border-radius: 4px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .88rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: auto; min-height: 0; }
.seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.seg label:has(input:focus-visible) { outline: 3px solid rgba(47, 111, 143, .45); }
.percent-only { display: none; }
form:has(input[value="percent"]:checked) .percent-only { display: grid; }
form:has(input[value="percent"]:checked) .price-only { display: none; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 1rem; font-weight: 600; }
.switch small { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; margin-top: 2px; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; min-width: 44px; height: 26px; min-height: 26px; padding: 0; border-radius: 999px; border: 0;
  background: #BFCDD3; position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:focus { box-shadow: 0 0 0 3px rgba(47, 111, 143, .25); }

/* Hazır liste */
.preset-group + .preset-group { margin-top: 18px; }
.preset-group h3 { font: 600 .9rem/1 var(--body); color: var(--muted); margin-bottom: 10px; }
.preset-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.preset { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; font-weight: 500; font-size: .93rem; }
.preset input { width: 17px; min-height: 17px; height: 17px; accent-color: var(--ink); flex-shrink: 0; padding: 0; }
.preset:has(input:checked) { border-color: var(--ink); background: var(--sea-soft); }
.preset.done { cursor: default; background: var(--paper); }
.preset.done span { color: var(--muted); }
.preset small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; font-variant-numeric: tabular-nums; }

/* Aylık istatistik */
.stat-split { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 28px; align-items: center; }
.stat-total b { display: block; font: 800 2.6rem/1 var(--display); font-stretch: 110%; }
.stat-total span { color: var(--muted); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: .92rem; }
.bars i { display: block; height: 10px; border-radius: 999px; background: var(--line-soft); position: relative; overflow: hidden; }
.bars i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--sea); border-radius: 999px; }
.bars b { text-align: right; font-weight: 600; }
@media (max-width: 560px) {
  .stat-split { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bars li { grid-template-columns: minmax(0, 1fr) 40px; }
  .bars i { grid-column: 1 / -1; grid-row: 2; }
}

/* Telegram önizleme */
.bubble { background: var(--sea-soft); border-radius: 12px 12px 12px 4px; padding: 10px 14px; font-size: .92rem; white-space: pre-line; overflow-wrap: anywhere; }
.bubble .sig { color: var(--sea); }
.bubble .promo { color: var(--muted); font-size: .9em; }

/* Bildirimler */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; width: min(560px, calc(100% - 32px));
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 14px 18px; display: flex; gap: 12px; align-items: flex-start;
  box-shadow: 0 18px 44px -18px rgba(16, 35, 63, .6); animation: toast-in .25s ease-out; }
.toast .i { color: #7FD3A8; margin-top: 2px; }
.toast.error { background: #3B1414; }
.toast.error .i { color: #FF9A8F; }
.toast.hide { opacity: 0; transform: translate(-50%, 10px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }
.notice { padding: 12px 16px; border-radius: var(--radius-s); background: #FFF6E0; color: #6B4E00; font-size: .93rem; }
.flash-inline { padding: 12px 16px; border-radius: var(--radius-s); background: var(--danger-soft); color: var(--danger); margin: 16px 0; }

/* Sahip paneli tabloları: masaüstünde tablo, telefonda kart */
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .84rem; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #F8FAFB; }
.table th:first-child { border-top-left-radius: var(--radius); }
.table th:last-child { border-top-right-radius: var(--radius); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; overflow-wrap: anywhere; }
.table tr:last-child td { border-bottom: 0; }
.table td small { color: var(--muted); font-variant-numeric: tabular-nums; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table td[data-label="Tür"], .table td[data-label="Son aktivite"], .table td[data-label="Son görülme"] { white-space: nowrap; }
.search { max-width: 320px; margin-bottom: 12px; }
.limit-form { display: flex; gap: 6px; align-items: center; }
.limit-form input { width: 72px; min-height: 36px; padding: 6px 8px; text-align: center; font-variant-numeric: tabular-nums; }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.addon-row:last-child { border-bottom: 0; }
.addon-row h3 { font: 600 1rem/1.3 var(--body); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.addon-row p { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.bot-row { align-items: flex-start; flex-wrap: wrap; }
.bot-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.bot-more { min-width: 0; }
.bot-more summary { list-style: none; cursor: pointer; }
.bot-more summary::-webkit-details-marker { display: none; }
.bot-more[open] { flex-basis: 100%; display: grid; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); }
.bot-more[open] summary { justify-self: start; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }

/* Bildirim kayıtları: seyir defteri gibi, saat sütunu + derinlik çizgisi üzerinde işaretler */
.log-filter { display: grid; gap: 14px; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.chip .i { width: 15px; height: 15px; color: var(--kc, var(--sea)); }
.chip span { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on span { color: #AFC0D2; }
.chip.on .i { color: #fff; }
.log-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search-box { position: relative; flex: 0 1 320px; min-width: 0; }
.search-box .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 38px; }

.k-alarm { --kc: var(--ink-3); }
.k-balina { --kc: var(--sea); }
.k-bulten { --kc: #B7860B; }
.k-hacim { --kc: var(--signal); }
.k-listeleme { --kc: #6B4FB3; }
.k-likidasyon { --kc: var(--danger); }
.k-prim { --kc: var(--ok); }
.k-eklenti { --kc: #8A5A9E; }
.k-koruma { --kc: var(--muted); }
.k-longshort { --kc: #0F766E; }
.k-likozet { --kc: #9F1239; }
.k-fonlama { --kc: #B45309; }
.k-oi { --kc: #4338CA; }
.k-takvim { --kc: #0E7490; }

.log-day + .log-day { margin-top: 32px; }
.log-day h2 { font-size: 1rem; font-weight: 700; font-stretch: 106%; margin: 0 0 12px 72px; color: var(--muted); }
.log { list-style: none; margin: 0; padding: 0; position: relative; }
.log::before { content: ""; position: absolute; left: 62px; top: 6px; bottom: 6px; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 10px); }
.log-entry { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 22px; position: relative; }
.log-entry + .log-entry { margin-top: 10px; }
.log-entry time { font: 600 .9rem/1 var(--body); font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; padding-top: 17px; }
.log-entry::before { content: ""; position: absolute; left: 57px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--surface);
  border: 2px solid var(--kc, var(--sea)); box-shadow: 0 0 0 3px var(--paper); }
.log-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--kc, var(--sea)); border-radius: var(--radius-s); padding: 12px 16px; min-width: 0; }
.log-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.log-kind { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .86rem; color: var(--kc, var(--sea)); }
.log-kind .i { width: 16px; height: 16px; }
.coin { font: 700 .78rem/1 var(--body); letter-spacing: .02em; padding: 4px 8px; border-radius: 4px; background: var(--sea-soft); color: var(--ink); text-decoration: none; }
.coin:hover { background: var(--ink); color: #fff; }
.log-body { white-space: pre-line; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
.log-body .up { color: var(--ok); font-weight: 600; }
.log-body .down { color: var(--danger); font-weight: 600; }
.log-paged { margin-bottom: 18px; }
.log-paged a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: .92rem; }
.log-more { margin: 28px 0 0 72px; }
.stat-link { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 500; }

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 1080px) {
  .main { padding: 28px 24px 64px; }
  .sections { grid-template-columns: minmax(0, 1fr); }
  .group { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .hero { padding: 48px 0 72px; }
  .scope { width: min(100%, 360px); }
  .tg-card { left: auto; right: -8px; bottom: -40px; width: 236px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps li { padding: 0 0 0 64px; }
  .steps li::before { position: absolute; left: 0; top: -4px; }
  .steps li:not(:last-child)::after { top: 44px; bottom: -32px; left: 21px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }

  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; z-index: 30; height: auto; padding: 14px 0 0; gap: 12px; overflow: visible; }
  .sidebar .brand { padding: 0 16px; }
  .who { display: none; }
  .side-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding: 0 12px 10px; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { padding: 8px 12px; font-size: .9rem; }
  .side-nav .count { display: none; }
  .side-foot { position: absolute; top: 8px; right: 10px; margin: 0; padding: 0; border: 0; grid-auto-flow: column; }
  .side-foot a { padding: 8px 10px; }
  .side-foot .label { display: none; }
  .readout { --cols: 2 !important; }
  .readout > div:nth-child(odd) { border-left: 0; }
  .readout > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 1100px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 8px 16px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); text-align: right; }
  .table td:last-child { border-bottom: 0; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: .84rem; text-align: left; flex-shrink: 0; }
  .table td:first-child { display: block; text-align: left; font-weight: 600; font-size: 1rem; }
  .table td:first-child::before { content: none; }
  .table td:first-child small { font-weight: 400; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .site-links .hide-sm { display: none; }
  .hero h1 { font-stretch: 105%; }
  .cta .btn { flex: 1 1 100%; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .facts div { font-size: .82rem; line-height: 1.35; }
  .band { padding: 64px 0; }
  .items { grid-template-columns: minmax(0, 1fr); }
  .main { padding: 22px 16px 64px; }
  .page-head > form, .page-head > .btn { width: 100%; }
  .page-head > form .btn { width: 100%; }
  .rows li { padding: 12px 16px; align-items: flex-start; }
  .surface > .pad { padding: 16px; }
  .auth-card { padding: 24px; }
  .scope { margin-bottom: 0; }
  .tg-card { position: relative; right: auto; bottom: auto; left: auto; width: 100%; margin-top: 16px; }
  .log::before, .log-entry::before { display: none; }
  .log-entry { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .log-entry time { text-align: left; padding: 0; color: var(--muted); font-size: .84rem; }
  .log-day h2, .log-more { margin-left: 0; }
  .search-box { flex: 1 1 100%; }
  .log-search .btn { flex: 1; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ping::after { opacity: .6; transform: scale(1.4); }
}
