/* ST Kombin — "kupon fişi" tasarım sistemi
   Kâğıt: serin beyaz · Grafit: kurşun kalem işareti · Fiş kırmızısı: optik okuyucu mürekkebi · Saha yeşili: tutan sonuç */

:root {
    --paper: #F4F6F3;
    --card: #FFFFFF;
    --ink: #1B2130;
    --ink-2: #3A4254;
    --muted: #5F6776;
    --faint: #8A919E;
    --line: #DDE2DC;
    --line-2: #EBEEEA;
    --graphite: #1B2130;
    --form-red: #D8495B;
    --form-red-soft: #FBE9EC;
    --pitch: #0E8A5F;
    --pitch-soft: #DDF3EA;
    --amber: #9A6412;
    --amber-soft: #FBF1DC;
    --danger: #B42318;
    --danger-soft: #FDE8E6;

    --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
    --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

    --r: 10px;
    --r-sm: 7px;
    --shadow: 0 1px 0 rgba(27, 33, 48, .04), 0 1px 3px rgba(27, 33, 48, .06);
    --side-w: 244px;
    --focus: 0 0 0 3px rgba(216, 73, 91, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.5 var(--f-body);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-color: rgba(27, 33, 48, .3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--form-red); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 .75rem; }
code { font-family: var(--f-mono); font-size: .85em; background: var(--line-2); padding: .05em .35em; border-radius: 4px; }
:focus-visible { outline: none; box-shadow: var(--focus); }
[hidden] { display: none !important; }

.mono { font-family: var(--f-mono); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.pos { color: var(--pitch); }
.neg { color: var(--danger); }

/* ---------- Uygulama iskeleti ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: var(--side-w) 1fr; }
.side {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; gap: 1.25rem;
    padding: 1.25rem 1rem;
    background: var(--graphite); color: #D9DDE5;
    overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 9px); gap: 3px; }
.brand-mark i { width: 9px; height: 14px; border: 1.5px solid var(--form-red); border-radius: 2px; }
.brand-mark i:nth-child(2) { background: #fff; border-color: #fff; }
.brand-name { font: 800 1.45rem/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { margin: .75rem .6rem .25rem; font: 600 .68rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #7F8797; }
.nav a {
    display: flex; align-items: center; gap: .65rem;
    padding: .55rem .65rem; border-radius: var(--r-sm);
    color: #C9CED8; text-decoration: none; font-weight: 500;
}
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a.active::before { content: ""; width: 3px; height: 16px; margin-left: -.65rem; margin-right: calc(.65rem - 3px); background: var(--form-red); border-radius: 2px; }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .85; }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: .75rem; }
.profile-switch label { display: block; margin-bottom: .3rem; font: 600 .68rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #7F8797; }
.profile-switch select {
    width: 100%; padding: .5rem .6rem; border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .14);
    font: 500 .95rem var(--f-body);
}
.profile-switch option { color: var(--ink); }
.who { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.who a { color: #C9CED8; }
.who button { background: none; border: 0; padding: 0; color: #C9CED8; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.topbar { display: none; }
.main { min-width: 0; }
.page { max-width: 1320px; margin: 0 auto; padding: 1.75rem 2rem 4rem; }

@media (max-width: 960px) {
    .shell { display: block; }
    .topbar {
        position: sticky; top: 0; z-index: 30;
        display: flex; align-items: center; justify-content: space-between; gap: .75rem;
        padding: .6rem 1rem; background: var(--graphite); color: #fff;
    }
    .topbar .brand-name { font-size: 1.25rem; }
    .menu-btn { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .1); border: 0; color: #fff; padding: .45rem .7rem; border-radius: var(--r-sm); font: 500 .9rem var(--f-body); }
    .topbar-profile { font: 500 .8rem var(--f-mono); color: #C9CED8; max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .side {
        position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(84vw, 300px);
        transform: translateX(-100%); transition: transform .22s ease;
    }
    .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(10, 13, 20, .45); }
    .page { padding: 1.1rem 1rem 6rem; }
}

/* ---------- Sayfa başlığı ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.eyebrow { margin-bottom: .35rem; font: 600 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--form-red); }
.page-title { font: 800 2.35rem/1 var(--f-display); letter-spacing: .01em; text-transform: uppercase; }
.page-sub { margin-top: .4rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
@media (max-width: 600px) { .page-title { font-size: 1.9rem; } }

/* ---------- Kartlar ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.card-title { font-weight: 650; font-size: 1rem; }
.card-body { padding: 1.1rem; }
.card-note { padding: .75rem 1.1rem; border-top: 1px solid var(--line-2); color: var(--muted); font-size: .85rem; }
.empty { padding: 2rem 1.1rem; text-align: center; color: var(--muted); }
.empty strong { display: block; margin-bottom: .35rem; color: var(--ink); }

.grid { display: grid; gap: 1.25rem; }
.grid-side { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
@media (max-width: 1100px) { .grid-side { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Anahtar-değer satırları */
.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.kv .total dd { font-size: 1.15rem; font-weight: 600; }

/* Büyük rakamlar */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kpi { background: var(--card); padding: .9rem 1.1rem; }
.kpi-label { font: 600 .7rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi-value { margin-top: .35rem; font: 700 1.85rem/1 var(--f-display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.kpi-sub { margin-top: .3rem; font-size: .8rem; color: var(--muted); }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 38px; padding: .45rem .95rem;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--card); color: var(--ink);
    font: 600 .9rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.btn-primary:hover { background: #2A3246; }
.btn-go { background: var(--pitch); border-color: var(--pitch); color: #fff; }
.btn-go:hover { background: #0B7650; border-color: #0B7650; }
.btn-danger { color: var(--danger); border-color: #F1C4BF; }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--line-2); border-color: transparent; }
.btn-sm { min-height: 32px; padding: .3rem .7rem; font-size: .84rem; }
.btn-block { width: 100%; }
.btn[disabled], .busy .btn { opacity: .6; pointer-events: none; }
form.inline { display: inline; }

/* ---------- Formlar ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .95rem; }
.field > label, .label { font-weight: 600; font-size: .88rem; }
.hint { font-size: .8rem; color: var(--muted); }
.input, .select, .textarea {
    width: 100%; min-height: 40px; padding: .5rem .7rem;
    border: 1px solid #CDD3CC; border-radius: var(--r-sm); background: #fff; color: var(--ink);
    font: 400 .95rem var(--f-body);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: var(--focus); }
.textarea { min-height: 84px; resize: vertical; font-family: var(--f-mono); font-size: .88rem; }
.input.sm, .select.sm { min-height: 34px; padding: .3rem .55rem; font-size: .88rem; }
.input.num-in { font-family: var(--f-mono); max-width: 90px; }
.check { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; }
.check input { width: 17px; height: 17px; accent-color: var(--graphite); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.inline-group { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.inline-group .input { width: 84px; }

/* ---------- Rozet ve uyarılar ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .5rem; border-radius: 999px; font: 600 .72rem/1.5 var(--f-mono); letter-spacing: .03em; text-transform: uppercase; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--pitch-soft); color: #0A6B49; }
.badge.warn { background: var(--amber-soft); color: var(--amber); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.dark { background: var(--graphite); color: #fff; }

.flash { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: .75rem 1rem; border-radius: var(--r-sm); border: 1px solid; font-weight: 500; }
.flash.success { background: var(--pitch-soft); border-color: #A9DEC8; color: #0A5A3E; }
.flash.danger { background: var(--danger-soft); border-color: #F3B8B1; color: #8A1C12; }
.flash.warning { background: var(--amber-soft); border-color: #EFD39B; color: #6F470B; }
.flash button { background: none; border: 0; font-size: 1.2rem; line-height: 1; color: inherit; cursor: pointer; opacity: .6; }
.note { padding: .7rem .9rem; border-radius: var(--r-sm); background: var(--amber-soft); color: #6F470B; font-size: .88rem; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
    padding: .6rem .9rem; text-align: left; white-space: nowrap;
    font: 600 .7rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
    border-bottom: 1px solid var(--line); background: #FAFBF9;
}
.table td { padding: .65rem .9rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFBF9; }
.table .right, .table th.right { text-align: right; }
.table .center, .table th.center { text-align: center; }
.table .row-link { font-weight: 600; text-decoration: none; }
.table .row-link:hover { text-decoration: underline; }
.cell-hit { background: var(--pitch-soft) !important; color: #0A5A3E; font-weight: 700; }
.cell-miss { background: var(--danger-soft) !important; color: #8A1C12; }
.pct { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); }

/* Mobilde tablo satırları kart olur */
@media (max-width: 700px) {
    .table.stack-sm thead { display: none; }
    .table.stack-sm, .table.stack-sm tbody, .table.stack-sm tr, .table.stack-sm td { display: block; width: 100%; }
    .table.stack-sm tr { padding: .6rem 0; border-bottom: 1px solid var(--line); }
    .table.stack-sm td { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 1rem; border: 0; text-align: right; }
    .table.stack-sm td::before { content: attr(data-label); font: 600 .7rem/1.6 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; }
    .table.stack-sm td.primary { font-size: 1rem; text-align: left; }
    .table.stack-sm td.primary::before { display: none; }
}

/* ---------- İMZA: kupon fişi ---------- */
.slip { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.slip-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem;
    padding: .8rem 1rem .8rem 2.1rem;
    border-bottom: 2px solid var(--form-red);
    background:
        radial-gradient(circle at 5px 0, var(--paper) 3px, transparent 3.5px) 0 0 / 12px 6px repeat-x,
        #fff;
}
.slip-title { font: 600 .74rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--form-red); }
.slip-cols {
    display: grid; grid-template-columns: 2.1rem 2rem minmax(0, 1fr) repeat(3, 62px) 70px; gap: .5rem;
    padding: .45rem 1rem .45rem 0;
    font: 600 .68rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--form-red);
    border-bottom: 1px solid var(--form-red-soft);
}
.slip-cols span:nth-child(n+4):not(:last-child) { text-align: center; }
.slip-row {
    display: grid; grid-template-columns: 2.1rem 2rem minmax(0, 1fr) repeat(3, 62px) 70px; gap: .5rem; align-items: center;
    padding: .5rem 1rem .5rem 0;
    border-bottom: 1px solid var(--form-red-soft);
}
.slip-row:last-child { border-bottom: 0; }
.tm { justify-self: start; width: 14px; height: 7px; background: var(--graphite); border-radius: 0 1px 1px 0; }
.slip-no { font: 700 1.05rem/1 var(--f-display); color: var(--form-red); text-align: center; }
.slip-match { min-width: 0; }
.slip-teams { font-weight: 600; overflow-wrap: anywhere; }
.slip-meta { font-size: .78rem; color: var(--muted); font-family: var(--f-mono); }
.slip-kind { font: 600 .72rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); text-align: right; }
.slip-kind.empty { color: var(--form-red); }

.bubble {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    width: 100%; height: 48px; padding: 0;
    border: 1.5px solid var(--form-red); border-radius: var(--r-sm);
    background: #fff; color: var(--form-red); cursor: pointer;
    font-family: var(--f-mono);
    transition: border-color .12s, color .12s;
    -webkit-tap-highlight-color: transparent;
}
.bubble::before {
    content: ""; position: absolute; inset: 0;
    background:
        repeating-linear-gradient(-62deg, rgba(255, 255, 255, .09) 0 2px, transparent 2px 5px),
        var(--graphite);
    clip-path: inset(0 100% 0 0);
    transition: clip-path .18s cubic-bezier(.4, .1, .3, 1);
}
.bubble > * { position: relative; }
.bubble b { font-size: 1.05rem; font-weight: 700; line-height: 1; }
.bubble small { font-size: .7rem; color: var(--muted); }
.bubble:hover { background: var(--form-red-soft); }
.bubble.on { color: #fff; border-color: var(--graphite); }
.bubble.on::before { clip-path: inset(0 0 0 0); }
.bubble.on small { color: #C9CED8; }
.bubble.is-result { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pitch); }

@media (max-width: 700px) {
    .slip-cols { display: none; }
    .slip-row {
        grid-template-columns: 1.5rem 1.7rem minmax(0, 1fr) auto;
        grid-template-areas: "tm no match kind" "tm . picks picks";
        row-gap: .5rem; padding: .7rem .9rem .8rem 0;
    }
    .slip-row .tm { grid-area: tm; align-self: start; margin-top: .45rem; }
    .slip-row .slip-no { grid-area: no; }
    .slip-row .slip-match { grid-area: match; }
    .slip-row .slip-kind { grid-area: kind; }
    .slip-row .picks { grid-area: picks; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
    .slip-head { padding-left: 1.5rem; }
}
@media (min-width: 701px) { .slip-row .picks { display: contents; } }

/* Nesine kuponu: A-D grupları, maç başına 1/X/2 kutucukları */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.ticket .slip-head { padding: .6rem .8rem .6rem 1.2rem; }
.ticket table { width: 100%; border-collapse: collapse; }
.ticket th { padding: .35rem .3rem; font: 600 .68rem/1 var(--f-mono); letter-spacing: .08em; color: var(--form-red); border-bottom: 1px solid var(--form-red-soft); }
.ticket td { padding: .18rem .3rem; border-bottom: 1px solid var(--form-red-soft); text-align: center; }
.ticket tr:last-child td { border-bottom: 0; }
.ticket td.no { width: 1.8rem; font: 700 .85rem/1 var(--f-display); color: var(--form-red); }
.minis { display: inline-flex; gap: 3px; }
.mini {
    display: inline-grid; place-items: center; width: 20px; height: 16px;
    border: 1px solid var(--form-red); border-radius: 3px;
    font: 600 .6rem/1 var(--f-mono); color: var(--form-red); background: #fff;
}
.mini.on { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.mini.res { box-shadow: 0 0 0 1.5px var(--pitch); }
.mini.on.res { background: var(--pitch); border-color: var(--pitch); }

/* ---------- Kupon oluşturucu özet ---------- */
.summary { position: sticky; top: 1.25rem; }
.summary .kv dd { font-size: 1rem; }
.summary-cost { display: flex; justify-content: space-between; align-items: baseline; margin-top: .5rem; padding-top: .75rem; border-top: 2px solid var(--ink); }
.summary-cost span { font-weight: 600; }
.summary-cost strong { font: 700 2rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.summary.loading .kv dd, .summary.loading .summary-cost strong { opacity: .4; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--pitch); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.quick { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem 1.5rem; }
.filter-block .label { display: block; margin-bottom: .45rem; }
.count-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: .4rem .5rem; align-items: center; }
.count-grid .mono { font-weight: 700; color: var(--form-red); }

.mobile-bar { display: none; }
@media (max-width: 1100px) {
    .summary { position: static; }
}
@media (max-width: 960px) {
    .mobile-bar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
        display: flex; align-items: center; justify-content: space-between; gap: .75rem;
        padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom));
        background: var(--graphite); color: #fff;
    }
    .mobile-bar .mb-cols { font: 500 .78rem var(--f-mono); color: #C9CED8; }
    .mobile-bar .mb-cost { font: 700 1.35rem/1 var(--f-display); }
}

/* ---------- Grafik ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--line-2); stroke-width: 1; }
.chart .zero { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .axis { font: 500 11px var(--f-mono); fill: var(--muted); }
.chart .series { fill: none; stroke: var(--graphite); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area-pos { fill: var(--pitch); opacity: .12; }
.chart .area-neg { fill: var(--danger); opacity: .1; }
.chart .cursor { stroke: var(--ink-2); stroke-width: 1; }
.chart .dot { fill: var(--graphite); stroke: #fff; stroke-width: 2; }
.tooltip {
    position: absolute; pointer-events: none; z-index: 5; min-width: 170px;
    padding: .55rem .7rem; border-radius: var(--r-sm);
    background: var(--graphite); color: #fff; font-size: .8rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.tooltip .t-head { font: 600 .72rem var(--f-mono); letter-spacing: .06em; color: #C9CED8; margin-bottom: .25rem; }
.tooltip div { display: flex; justify-content: space-between; gap: 1rem; }
.tooltip .num { color: #fff; }

/* ---------- Giriş ---------- */
.guest { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--graphite); }
.guest-card { width: min(100%, 400px); background: #fff; border-radius: var(--r); overflow: hidden; }
.guest-card .slip-head { padding-left: 1.2rem; }
.guest-card .card-body { padding: 1.5rem 1.4rem 1.6rem; }
.guest-brand { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.guest h1 { font: 800 1.9rem/1 var(--f-display); text-transform: uppercase; margin-bottom: .35rem; }

/* ---------- Sayfalama ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 1.25rem; }
.pager a, .pager span { min-width: 36px; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; text-align: center; text-decoration: none; font-family: var(--f-mono); font-size: .85rem; }
.pager span { background: var(--graphite); border-color: var(--graphite); color: #fff; }

details.drop > summary { list-style: none; cursor: pointer; }
details.drop > summary::-webkit-details-marker { display: none; }

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

.drop-panel { width: min(320px, 80vw); margin: .5rem 0 .25rem auto; padding: 1rem; text-align: left; white-space: normal; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(27, 33, 48, .1); }
details.drop[open] > summary { background: var(--line-2); }

/* ---------- Nesine oynatma paneli ---------- */
.bot-state { display: inline-flex; align-items: center; gap: .4rem; font: 600 .72rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bot-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.bot-state.on { color: #0A6B49; }
.bot-state.on::before { background: var(--pitch); box-shadow: 0 0 0 3px var(--pitch-soft); }
.play-progress { margin-bottom: .9rem; }
.play-progress .bar { height: 8px; margin-top: .4rem; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.play-progress .bar span { display: block; height: 100%; background: var(--pitch); border-radius: 99px; transition: width .3s; }
.play-job { margin: 0 0 .9rem; }
.modes { border: 0; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.modes legend { margin-bottom: .45rem; }
.mode { display: flex; gap: .6rem; align-items: flex-start; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.mode:has(input:checked) { border-color: var(--graphite); background: #FAFBF9; }
.mode input { margin-top: .25rem; accent-color: var(--graphite); }
.mode .hint { display: block; }
.play-log { list-style: none; margin: 1rem 0 0; padding: .75rem 0 0; border-top: 1px dashed var(--line); display: grid; gap: .35rem; font-size: .88rem; }

/* ---------- Eklenti kurulum sayfası ---------- */
.ext-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.ext-steps li { position: relative; padding-left: 2.6rem; }
.ext-steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: -.1rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center;
    border: 1.5px solid var(--form-red); border-radius: var(--r-sm); color: var(--form-red); font: 700 1rem/1 var(--f-display);
}
.ext-steps code { user-select: all; }
.ext-status { display: flex; align-items: center; gap: .65rem; padding: .8rem .9rem; border-radius: var(--r-sm); background: var(--line-2); }
.ext-status.ok { background: var(--pitch-soft); color: #0A5A3E; font-weight: 600; }
.ext-check { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--pitch); color: #fff; font-weight: 700; }
.token-list { list-style: none; margin: 0; padding: 0; }
.token-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.token-list li:last-child { border-bottom: 0; }
.code-block { margin: .25rem 0 .5rem; padding: .6rem .75rem; border-radius: var(--r-sm); background: var(--graphite); color: #E6E9EF; font: .8rem/1.5 var(--f-mono); white-space: pre-wrap; word-break: break-all; }

/* Garanti seviyesi seçimi */
.levels { border: 0; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.levels legend { margin-bottom: .45rem; }
.level { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.level:has(input:checked) { border-color: var(--graphite); background: #FAFBF9; box-shadow: inset 3px 0 0 var(--form-red); }
.level input { accent-color: var(--graphite); }
.level .lv-name { flex: 1; font-weight: 500; }
.level .lv-count { font-weight: 600; color: var(--ink-2); }
.levels .hint { margin-top: .2rem; }
.export-panel { display: grid; gap: .4rem; width: 240px; }
.export-panel .btn { justify-content: flex-start; }
.actions details.drop { position: relative; }
.actions details.drop .drop-panel { position: absolute; right: 0; z-index: 20; }

/* Rehber */
.guide .card-body p:last-child { margin-bottom: 0; }
.guide-toc { position: sticky; top: 1.25rem; }
.guide-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.guide section { scroll-margin-top: 5rem; }
@media (max-width: 1100px) { .guide-toc { position: static; order: -1; } }
