/* DonutFortune panels: the owner panel (/admin) and the media programme (/media).
   Same tokens and type as the casino shell (ui.css), laid out like the panel pages:
   top bar, a thin left rail, a hero with the page title, pill tabs with counts,
   then dark cards and tables. Standalone on purpose: nothing here leans on the
   casino markup, so the pages stay light and cannot break when the shell changes. */
:root {
  --bg: #0b0c10; --bg2: #0f1016; --panel: #14161d; --panel2: #1a1d25; --panel3: #232733;
  --border: rgba(255,255,255,.07); --border2: rgba(255,255,255,.13);
  --text: #f3f4f8; --muted: #9a9fb1; --faint: #656b7d;
  --accent: #3f8ef8; --accent2: #6fb0ff; --accent-dk: #163258; --accent-soft: rgba(63,142,248,.14);
  --gold: #ffc940; --win: #3ad67c; --red: #ff5a6e; --cyan: #5ad7e0; --violet: #b18cff; --amber: #f7a21b;
  --win-soft: rgba(58,214,124,.14); --red-soft: rgba(255,90,110,.14); --gold-soft: rgba(255,201,64,.14); --amber-soft: rgba(247,162,27,.14); --violet-soft: rgba(177,140,255,.14);
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --pixel: 'Silkscreen', 'JetBrains Mono', monospace;
  --r: 6px; --r-btn: 5px; --topH: 64px; --railW: 248px;
  --shadow: 0 14px 36px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.015em; margin: 0; }
button, input, select, textarea { font-family: var(--font); font-size: 14px; color: var(--text); }
input, select, textarea { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--r); padding: 10px 12px; outline: none; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--faint); }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
textarea { min-height: 76px; resize: vertical; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #2a2e3b; border-radius: 5px; border: 2px solid var(--bg); }
.px { font-family: var(--pixel); font-weight: 400; font-size: 8px; letter-spacing: .4px; text-transform: uppercase; line-height: 1; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.good { color: var(--win); } .bad { color: var(--red); } .warn { color: var(--amber); } .gold { color: var(--gold); } .acc { color: var(--accent2); }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; height: var(--topH); display: flex; align-items: center; gap: 18px; padding: 0 18px; background: rgba(11,12,16,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand b { color: var(--accent2); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r); color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255,255,255,.05); text-decoration: none; }
.nav a .pill { margin-left: 2px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--border2); font-family: var(--mono); font-weight: 700; font-size: 13px; cursor: pointer; }
.balance-chip .lbl { display: none; }
.balance-chip i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, #e0a60e 70%); display: inline-block; }
.user { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--border2); font-weight: 700; }
.user img { width: 24px; height: 24px; border-radius: 5px; }
.user .link { background: none; border: 0; color: var(--muted); font-weight: 700; cursor: pointer; padding: 0 0 0 6px; font-size: 12px; }
.user .link:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--border2); background: var(--panel3); color: var(--text); font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: filter .15s, background .15s, transform .1s; }
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.success { background: #1f9d5c; border-color: transparent; color: #fff; }
.btn.danger { background: #c43c4b; border-color: transparent; color: #fff; }
.btn.warn { background: #b57615; border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(255,255,255,.06); }
.btn.discord { background: #5865f2; border-color: transparent; color: #fff; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 11px; }
.btn.xs { height: 24px; padding: 0 8px; font-size: 10px; }
.btn.full { width: 100%; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 13px; }
.link { background: none; border: 0; color: var(--accent2); cursor: pointer; padding: 0; font-weight: 700; }
.link:hover { text-decoration: underline; }
.icon-btn { width: 32px; height: 32px; border-radius: var(--r-btn); border: 1px solid var(--border2); background: var(--panel2); color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.icon-btn:hover { color: var(--text); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--railW) minmax(0, 1fr); min-height: calc(100vh - var(--topH)); }
.rail { border-right: 1px solid var(--border); background: var(--bg2); padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; }
.online { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--border); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.online i { width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 10px var(--win); margin-right: 9px; display: inline-block; }
.railcard { padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--border); }
.railcard h4 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.raillinks { display: flex; flex-direction: column; gap: 4px; }
.raillinks a, .raillinks button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: var(--r-btn); color: var(--text); font-weight: 700; font-size: 13px; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.raillinks a:hover, .raillinks button:hover, .raillinks a.active { background: rgba(255,255,255,.05); text-decoration: none; }
.raillinks a.active { color: var(--accent2); }
.raillinks .pill { margin-left: auto; }
.railfoot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.railfoot a { padding: 8px 10px; border-radius: var(--r-btn); border: 1px solid var(--border2); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.railfoot a:hover { color: var(--text); text-decoration: none; }
.main { padding: 0 0 60px; min-width: 0; }
.hero { position: relative; padding: 46px 28px 26px; text-align: center; overflow: hidden; background:
  radial-gradient(900px 260px at 60% -40px, rgba(63,142,248,.28), transparent 60%),
  radial-gradient(600px 220px at 15% 10%, rgba(177,140,255,.18), transparent 60%),
  radial-gradient(500px 240px at 90% 60%, rgba(90,215,224,.12), transparent 60%),
  linear-gradient(180deg, #121521, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.05; }
.hero p { margin: 10px auto 0; max-width: 640px; color: var(--muted); font-size: 15px; }
.hero .back { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 13px; }
.hero .herobadges { margin-top: 14px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.content { max-width: 1240px; margin: 0 auto; padding: 18px 22px; }
.tabsrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--panel); color: var(--text); font-weight: 800; font-size: 13px; cursor: pointer; }
.pill-tab:hover { border-color: var(--border2); }
.pill-tab.active { background: var(--accent); border-color: transparent; color: #fff; }
.pill-tab .pill { background: rgba(255,255,255,.14); color: inherit; }
.pill-tab.active .pill { background: rgba(255,255,255,.25); }
.pill-tab:not(.active) .pill.hot { background: var(--accent); color: #fff; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--panel3); color: var(--muted); font-family: var(--mono); font-weight: 700; font-size: 11px; }
.pill.hot { background: var(--accent); color: #fff; }
.pill.red { background: var(--red); color: #fff; }
.pill.gold { background: var(--gold); color: #1a1200; }
.reload { margin-left: auto; }

/* ---------- cards, tiles, tables ---------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.card.tight { padding: 12px 14px; }
.card h2 { font-size: 18px; margin-bottom: 4px; }
.card h3 { font-size: 15px; margin-bottom: 8px; }
.card .sub { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.kicker { font-family: var(--pixel); font-size: 8px; letter-spacing: .4px; text-transform: uppercase; color: var(--accent2); margin-bottom: 8px; }
.lab { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.lab:first-child { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
.tile .v { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1.1; word-break: break-word; }
.tile .l { margin-top: 6px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile .s { margin-top: 4px; font-size: 12px; color: var(--faint); }
.tile.good .v { color: var(--win); } .tile.bad .v { color: var(--red); } .tile.gold .v { color: var(--gold); } .tile.acc .v { color: var(--accent2); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tablewrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; padding: 10px 12px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--panel2); border-bottom: 1px solid var(--border2); white-space: nowrap; position: sticky; top: 0; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr:hover td { background: rgba(255,255,255,.02); }
table.t td.num, table.t th.num { text-align: right; font-family: var(--mono); font-size: 12px; }
table.t .acts { white-space: nowrap; text-align: right; }
table.t .acts .btn { margin-left: 6px; }
table.t a.who { color: var(--accent2); font-weight: 700; }
table.t select { width: auto; padding: 5px 28px 5px 9px; font-size: 12px; height: 28px; }
table.t input.inline { width: 120px; height: 28px; padding: 4px 8px; font-size: 12px; }
.empty { padding: 22px; text-align: center; color: var(--faint); font-size: 13px; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
.badge.wait { color: var(--amber); background: var(--amber-soft); border-color: rgba(247,162,27,.35); }
.badge.paid, .badge.info { color: var(--accent2); background: var(--accent-soft); border-color: rgba(63,142,248,.35); }
.badge.done, .badge.ok { color: var(--win); background: var(--win-soft); border-color: rgba(58,214,124,.35); }
.badge.dead { color: var(--faint); background: var(--panel3); border-color: var(--border2); }
.badge.fail { color: var(--red); background: var(--red-soft); border-color: rgba(255,90,110,.35); }
.badge.gold { color: var(--gold); background: var(--gold-soft); border-color: rgba(255,201,64,.35); }
.badge.violet { color: var(--violet); background: var(--violet-soft); border-color: rgba(177,140,255,.35); }
.who { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); }
.who img { width: 22px; height: 22px; border-radius: 4px; }
.who .no { color: var(--faint); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); }
.dot.on { background: var(--win); box-shadow: 0 0 8px var(--win); }
.dot.off { background: var(--red); }
.form { display: grid; gap: 10px; }
.form .frow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.form .frow3 { display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; align-items: end; }
.form .frow4 { display: grid; grid-template-columns: 160px 1fr 1fr auto; gap: 10px; align-items: end; }
.form label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.note { padding: 10px 12px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.note.warn { color: var(--amber); background: var(--amber-soft); border-color: rgba(247,162,27,.3); }
.note.bad { color: var(--red); background: var(--red-soft); border-color: rgba(255,90,110,.3); }
.note.good { color: var(--win); background: var(--win-soft); border-color: rgba(58,214,124,.3); }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.subtab { height: 30px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid transparent; background: none; color: var(--muted); font-weight: 800; font-size: 12px; cursor: pointer; }
.subtab:hover { color: var(--text); }
.subtab.active { color: var(--text); background: var(--panel3); border-color: var(--border2); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters input { max-width: 320px; }
.filters select { width: auto; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border2); background: var(--panel2); font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.chip.active { color: #fff; background: var(--accent); border-color: transparent; }
.list { display: flex; flex-direction: column; gap: 8px; }
.list .item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--border); font-size: 13px; }
.list .item time, .list .item .when { color: var(--faint); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.sw input { display: none; }
.sw i { width: 38px; height: 22px; border-radius: 999px; background: var(--panel3); border: 1px solid var(--border2); position: relative; transition: background .15s; }
.sw i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.sw input:checked + i { background: var(--accent); border-color: transparent; }
.sw input:checked + i::after { left: 18px; }
.sw span { font-weight: 700; font-size: 13px; }
.playerhead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.playerhead img { width: 56px; height: 56px; border-radius: 8px; }
.playerhead h2 { font-size: 26px; }
.playerhead .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.playerhead .meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.flagbox { padding: 10px 12px; border-radius: var(--r); background: rgba(247,162,27,.12); border: 1px solid rgba(247,162,27,.3); color: #ffd27a; font-size: 13px; }
.flagbox ul { margin: 0; padding-left: 18px; }
.vcard { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--border); margin-bottom: 12px; }
.vcard .thumb { width: 150px; height: 150px; border-radius: var(--r); object-fit: cover; background: var(--panel3); }
.vcard .thumb.ph { display: grid; place-items: center; color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vcard h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vcard .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.vcard .stats { margin-top: 6px; font-size: 14px; font-weight: 700; display: flex; gap: 16px; flex-wrap: wrap; }
.vcard .stats small { color: var(--muted); font-weight: 600; }
.vcard .acts { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vcard .acts .when { color: var(--muted); font-size: 12px; margin-left: 4px; }
.vcard video { width: 100%; max-width: 640px; border-radius: var(--r); background: #000; margin-top: 8px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--border); }
.step h3 { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.step h3 i { width: 30px; height: 30px; border-radius: 7px; background: var(--accent-soft); color: var(--accent2); display: inline-grid; place-items: center; font-style: normal; font-weight: 800; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rate { padding: 18px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--border); }
.rate h4 { font-size: 15px; }
.rate p { color: var(--muted); font-size: 13px; margin: 6px 0 14px; min-height: 38px; }
.rate .big { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--gold); letter-spacing: -.02em; }
.rate .per { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.calc { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 14px; align-items: end; }
.calc .est { padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid rgba(63,142,248,.4); }
.calc .est .big { font-family: var(--display); font-size: 28px; font-weight: 800; color: #fff; }
.upload { padding: 14px; border: 1px dashed var(--border2); border-radius: var(--r); background: var(--bg2); }
.progress { height: 6px; border-radius: 999px; background: var(--panel3); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.gate { max-width: 560px; margin: 40px auto; text-align: center; padding: 34px 26px; }
.gate h2 { font-size: 26px; margin-bottom: 8px; }
.gate p { color: var(--muted); margin: 0 0 18px; }
.feed { display: flex; flex-direction: column; gap: 6px; }
.feed .f { display: grid; grid-template-columns: 74px 1fr; gap: 10px; font-size: 12px; padding: 7px 10px; border-radius: 4px; background: var(--panel2); }
.feed .f time { color: var(--faint); font-family: var(--mono); font-size: 11px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13px; }
.kv b { color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; align-self: center; }
.kv .mono { font-size: 12px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- modals + toast ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(5,7,12,.7); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: 100%; max-width: 480px; padding: 22px; border-radius: 8px; background: var(--panel); border: 1px solid var(--border2); box-shadow: var(--shadow); max-height: 92vh; overflow: auto; animation: pop .18s ease-out; }
.modal-card.wide { max-width: 720px; }
.modal-card h3 { font-size: 20px; margin-bottom: 4px; padding-right: 30px; }
.modal-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab { height: 32px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--border2); background: var(--panel2); color: var(--muted); font-weight: 800; font-size: 12px; cursor: pointer; }
.tab.active { color: #fff; background: var(--accent); border-color: transparent; }
.tab-pane label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 10px 0 6px; }
.fine { color: var(--faint); font-size: 12px; margin: 10px 0 0; }
.err { color: var(--red); font-size: 13px; margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 80; padding: 11px 16px; border-radius: var(--r); background: var(--panel3); border: 1px solid var(--border2); color: var(--text); font-weight: 700; font-size: 13px; box-shadow: var(--shadow); max-width: 90vw; }
.toast.good { border-color: rgba(58,214,124,.5); }
.toast.bad { border-color: rgba(255,90,110,.6); }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 1100px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rates, .steps { grid-template-columns: 1fr; } .calc { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .shell { grid-template-columns: 1fr; } .rail { display: none; } .nav { display: none; } .hero h1 { font-size: 30px; } .content { padding: 14px; } .grid2 { grid-template-columns: 1fr; } .vcard { grid-template-columns: 1fr; } .vcard .thumb { width: 100%; height: 180px; } .form .frow3, .form .frow4 { grid-template-columns: 1fr; } .top { padding: 0 12px; gap: 10px; } }
