/* ==========================================================================
   Simbor — design tokens (from Simbor Brand Book v1.0, Oct 2026)
   Lapis + ivory do most of the work. Gold is earned: chip, fine lines, CTAs.
   ========================================================================== */
:root {
  --lapis: #13295A;
  --ivory: #F4EDE0;
  --gold: #D4A045;
  --night: #0D1F47;
  --girih: #1C3A73;
  --paxta: #EEE7DA;
  --firuza: #1E9E98;
  --anor: #B8322A;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --notch: 14px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(13, 31, 71, .06), 0 8px 24px rgba(13, 31, 71, .06);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="light"] {
  --bg: var(--paxta);
  --surface: #FBF8F2;
  --surface-2: var(--ivory);
  --text: var(--lapis);
  --text-strong: var(--night);
  --muted: #4B5A7A;
  --line: #D8CDB9;
  --line-strong: #B9AC94;
  --primary: var(--lapis);
  --on-primary: var(--ivory);
  --accent: var(--gold);
  --on-accent: var(--night);
  --chip-bg: #E4DBC9;
  --focus: #1C3A73;
  --success-bg: #D6EEEC;
  --warn-bg: #F6E7C8;
  --warn-text: #6B4A0B;
  --error-bg: #F5DCD9;
  --error-text: #8E231D;
  --girih-stroke: rgba(19, 41, 90, .07);
  --map-filter: none;
}

[data-theme="dark"] {
  --bg: var(--night);
  --surface: #12285A;
  --surface-2: #17306A;
  --text: var(--ivory);
  --text-strong: #FFFFFF;
  --muted: #B7C0D6;
  --line: #2A4580;
  --line-strong: #3C5A9A;
  --primary: var(--ivory);
  --on-primary: var(--lapis);
  --accent: var(--gold);
  --on-accent: var(--night);
  --chip-bg: #1C3A73;
  --focus: var(--gold);
  --success-bg: rgba(30, 158, 152, .2);
  --warn-bg: rgba(212, 160, 69, .18);
  --warn-text: #F0D49B;
  --error-bg: rgba(184, 50, 42, .25);
  --error-text: #F5B8B3;
  --girih-stroke: rgba(244, 237, 224, .05);
  --map-filter: brightness(.8) contrast(1.1) saturate(.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--text-strong); line-height: 1.12; }
p { margin: 0; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Typography ---------- */
.display { font-weight: 900; letter-spacing: -0.035em; font-size: clamp(40px, 6vw, 64px); font-variation-settings: "opsz" 32; }
.h1 { font-weight: 900; letter-spacing: -0.03em; font-size: clamp(30px, 4vw, 40px); font-variation-settings: "opsz" 32; }
.h2 { font-weight: 800; letter-spacing: -0.02em; font-size: 24px; }
.h3 { font-weight: 700; font-size: 18px; }
.lead { font-size: 18px; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xs { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: .02em; white-space: nowrap; }
.strong { font-weight: 700; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.stack > * + * { margin-top: var(--gap, 12px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 32px 0; } }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--night); color: var(--ivory); font-size: 13px; text-align: center; padding: 7px 16px;
  border-bottom: 1.5px solid var(--gold);
}
.demo-banner b { color: var(--gold); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 40px; height: auto; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; color: var(--text); white-space: nowrap;
}
.nav a:hover { background: var(--chip-bg); }
.nav a[aria-current="page"] { background: var(--chip-bg); box-shadow: inset 0 -2px 0 var(--gold); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 6px 9px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.icon-btn:hover { background: var(--chip-bg); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 1120px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .menu-btn { display: grid; }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 560px) {
  .header-tools .login-label { display: none; }
  .lang button { padding: 6px 7px; }
}

/* ---------- Buttons ---------- */
.btn {
  --bbg: var(--primary); --bfg: var(--on-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 0; border-radius: var(--radius-sm);
  background: var(--bbg); color: var(--bfg); font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s var(--ease), filter .12s var(--ease), background .12s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.btn.gold { --bbg: var(--gold); --bfg: var(--night); }
.btn.ghost { --bbg: transparent; --bfg: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.ghost:hover { background: var(--chip-bg); filter: none; }
.btn.danger { --bbg: var(--anor); --bfg: #fff; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 14px; }
.btn.block { width: 100%; }
/* Brand notch: primary CTAs take the SIM notch on the top-right corner only */
.notch { clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); }
.btn.notch { --notch: 12px; padding-right: 24px; }
.btn.notch:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--focus); }

.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--muted); }
.input, .select, textarea.input {
  min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text);
  width: 100%;
}
.input:focus, .select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.input.big { font-size: 22px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; min-height: 56px; }
.input[aria-invalid="true"] { border-color: var(--anor); }
.hint { font-size: 13px; color: var(--muted); }
.error-text { font-size: 13px; color: var(--error-text); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--lapis); flex-shrink: 0; }
[data-theme="dark"] .check input { accent-color: var(--gold); }
input[type="range"] { width: 100%; accent-color: var(--gold); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid transparent; background: var(--chip-bg); color: var(--text);
  padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- Badges / status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; background: var(--chip-bg); color: var(--text); white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.live { background: var(--success-bg); color: #0E6E69; }
[data-theme="dark"] .badge.live { color: #7FE0DA; }
.badge.cached { background: var(--warn-bg); color: var(--warn-text); }
.badge.unavailable, .badge.error { background: var(--error-bg); color: var(--error-text); }
.badge.tier-gold { background: var(--warn-bg); color: var(--warn-text); }
.badge.tier-platinum { background: var(--lapis); color: var(--gold); }
[data-theme="dark"] .badge.tier-platinum { background: var(--ivory); color: var(--lapis); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.card.lapis { background: var(--lapis); color: var(--ivory); border-color: var(--lapis); }
.card.lapis h1, .card.lapis h2, .card.lapis h3 { color: var(--ivory); }
[data-theme="dark"] .card.lapis { background: var(--girih); border-color: var(--line-strong); }

.girih { background-image: var(--girih-img); background-size: 60px 60px; }
.gold-rule { display: flex; align-items: center; gap: 12px; color: var(--gold); margin: 20px 0; }
.gold-rule::before, .gold-rule::after { content: ""; height: 1.5px; background: var(--gold); flex: 1; }
.gold-rule svg { width: 18px; height: 18px; }
.gold-frame { border: 1.5px solid var(--gold); }

/* Number card — notched, lapis, tabular figures (brand book p.09/11) */
.ncard {
  --notch: 16px;
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  background: var(--lapis); color: var(--ivory); padding: 14px 54px 14px 18px; border-radius: var(--radius);
  text-decoration: none; transition: transform .15s var(--ease), background .15s;
}
[data-theme="dark"] .ncard { background: var(--girih); }
.ncard:hover { transform: translateY(-2px); background: var(--girih); }
[data-theme="dark"] .ncard:hover { background: #24468A; }
.ncard .msisdn { font-size: 22px; font-weight: 800; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.ncard .meta { font-size: 13px; color: #C9D0E2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ncard .price { font-weight: 700; color: var(--gold); text-align: right; font-size: 15px; }
.ncard .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ncard.stale { opacity: .78; }
.ncard .hl { color: var(--gold); }
.ncard-wrap { position: relative; }
.ncard-wrap .fav {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; background: transparent; border: 0; color: #C9D0E2; cursor: pointer;
}
.ncard-wrap .fav:hover { color: var(--gold); background: rgba(255,255,255,.08); }
.ncard-wrap .fav[aria-pressed="true"] { color: var(--gold); }
.ncard-wrap .fav svg { width: 18px; height: 18px; }
.ncard .op-tag { font-size: 12.5px; color: #C9D0E2; }

.reason { font-size: 12.5px; background: rgba(212,160,69,.16); color: var(--gold); padding: 2px 8px; border-radius: 6px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-panel { --notch: 48px; background: var(--lapis); border-radius: 20px; padding: 28px; color: var(--ivory); }
[data-theme="dark"] .hero-panel { background: var(--girih); }
.hero-panel .label { color: var(--gold); }
.hero-search { display: flex; gap: 10px; margin-top: 8px; }
.hero-search .input { flex: 1; }
.hero-search .btn { min-height: 56px; padding-left: 22px; padding-right: 30px; }

.op-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .op-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.op-card { display: flex; flex-direction: column; gap: 8px; }
.op-logo {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 900; font-size: 15px; color: #fff; flex-shrink: 0;
}
.steps-list { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .steps-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps-list { grid-template-columns: 1fr; } }
.steps-list li { list-style: none; counter-increment: s; }
.steps-list li::before {
  content: counter(s, decimal-leading-zero); display: block; font-weight: 900; color: var(--gold); font-size: 14px; margin-bottom: 8px;
}

.bor-line { font-weight: 900; letter-spacing: -0.03em; font-size: clamp(28px, 4vw, 44px); }
.bor-line em { font-style: normal; color: var(--gold); }

/* ---------- Search page ---------- */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .search-layout { grid-template-columns: 1fr; } .filters { position: static !important; } }
.filters { position: sticky; top: 92px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.filters legend { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .results-grid { grid-template-columns: 1fr; } }
.seg { display: inline-flex; background: var(--chip-bg); padding: 3px; border-radius: 10px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); }

/* ---------- Notice ---------- */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--chip-bg); font-size: 14.5px; align-items: flex-start; }
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.notice.warn { background: var(--warn-bg); color: var(--warn-text); }
.notice.error { background: var(--error-bg); color: var(--error-text); }
.notice.success { background: var(--success-bg); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--chip-bg) 45%, transparent); }
.cmp th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); width: 200px; position: sticky; left: 0; z-index: 1; }
.cmp td.best { box-shadow: inset 3px 0 0 var(--firuza); }
.cmp .na { color: var(--muted); font-style: italic; }
.warn-ico { color: var(--gold); font-weight: 800; cursor: help; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .summary { position: static !important; order: -1; } }
.stepper { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; padding: 0; }
.stepper li { list-style: none; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 10px 6px 6px; border-radius: 999px; }
.stepper li .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--chip-bg); }
.stepper li[aria-current="step"] { color: var(--text-strong); background: var(--surface); box-shadow: var(--shadow); }
.stepper li[aria-current="step"] .n { background: var(--primary); color: var(--on-primary); }
.stepper li.done .n { background: var(--firuza); color: var(--night); }
.summary { position: sticky; top: 92px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14.5px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { font-size: 22px; font-weight: 900; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.timer.low { color: var(--anor); }
[data-theme="dark"] .timer.low { color: #F5B8B3; }
.option-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
}
.option-card:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.option-card input { margin-top: 4px; accent-color: var(--lapis); width: 18px; height: 18px; }
[data-theme="dark"] .option-card input { accent-color: var(--gold); }
.option-card[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.timeline .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--chip-bg); color: var(--muted); }
.timeline .ic svg { width: 14px; height: 14px; }
.timeline li.done .ic { background: var(--primary); color: var(--on-primary); }
.timeline li.current .ic { background: var(--firuza); color: var(--night); animation: pulse 1.6s infinite; }
.timeline li.failed .ic { background: var(--anor); color: #fff; }
.timeline li.pending { color: var(--muted); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(30,158,152,.5); } 50% { box-shadow: 0 0 0 7px rgba(30,158,152,0); } }

/* ---------- QR ---------- */
.qr-box { border: 1.5px solid var(--gold); border-radius: var(--radius); padding: 20px; background: #FFFDF8; color: var(--lapis); text-align: center; }
.qr-box > svg { width: 200px; height: 200px; margin: 0 auto 12px; }
.qr-hidden svg { width: 32px; height: 32px; margin: 0 auto 6px; }
.qr-hidden { width: 200px; height: 200px; margin: 0 auto 12px; border-radius: 8px; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #EEE7DA, #EEE7DA 8px, #E4DBC9 8px, #E4DBC9 16px); color: var(--lapis); font-weight: 700; font-size: 14px; padding: 16px; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(13,31,71,.55); display: grid; place-items: center; z-index: 80; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); color: var(--text); border-radius: 16px; width: min(480px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal header { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.modal .body { padding: 20px; }
.modal footer { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.ext-bar { font-size: 12.5px; padding: 8px 14px; background: var(--chip-bg); color: var(--muted); display: flex; gap: 6px; align-items: center; }
.ext-bar svg { width: 14px; height: 14px; }
@keyframes fade { from { opacity: 0; } }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--chip-bg); border-top-color: var(--gold); animation: spin .8s linear infinite; margin: 8px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toasts ---------- */
#toast-root { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--night); color: var(--ivory); padding: 12px 18px; border-radius: 10px; font-size: 14.5px; box-shadow: 0 8px 30px rgba(0,0,0,.25); border-left: 3px solid var(--gold); animation: up .2s var(--ease); max-width: 90vw; }
.toast.error { border-left-color: var(--anor); }
.toast.success { border-left-color: var(--firuza); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Map ---------- */
.map-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } }
#map { height: min(68vh, 620px); min-height: 380px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; background: var(--chip-bg); }
.leaflet-tile-pane { filter: var(--map-filter); }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: 10px; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend-swatch { width: 28px; height: 14px; border-radius: 4px; }
.layer-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; background: var(--surface); }
.layer-toggle:has(input:checked) { border-color: var(--line-strong); background: var(--surface-2); }
.layer-toggle input { width: 18px; height: 18px; accent-color: var(--lapis); }

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.admin-tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.admin-tabs button[aria-selected="true"] { color: var(--text-strong); border-bottom-color: var(--gold); }
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .t { font-size: 13px; color: var(--muted); font-weight: 600; }
.bar { height: 8px; background: var(--chip-bg); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--firuza); border-radius: 99px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* ---------- Tabs / accordions ---------- */
details.acc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
details.acc + details.acc { margin-top: 8px; }
details.acc summary { padding: 14px 16px; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.acc summary::after { content: "+"; font-weight: 800; color: var(--gold); }
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 16px 16px; color: var(--muted); }
ol.howto { padding-left: 20px; margin: 0; }
ol.howto li { margin: 6px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--lapis); color: var(--ivory); margin-top: 56px; }
[data-theme="dark"] .site-footer { background: #0A1838; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ivory); text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 40px 0 24px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.footer-bottom { border-top: 1px solid rgba(244,237,224,.15); padding: 16px 0 24px; font-size: 13px; color: #C9D0E2; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* utilities */
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 36px }
.mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.w-100 { width: 100% }
.center { text-align: center }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.kbd { font-family: ui-monospace, Menlo, monospace; background: var(--chip-bg); padding: 1px 6px; border-radius: 4px; font-size: 13px; }

/* ==========================================================================
   v2 — quieter, more minimal layer. Fewer boxes, more whitespace, hairlines.
   ========================================================================== */
:root { --radius: 16px; --radius-sm: 10px; --shadow: none; }
[data-theme="light"] { --surface: #F8F3EA; --surface-2: #F3ECDF; --line: #E2D9C8; --line-strong: #CBBFA8; --chip-bg: #E7DFD0; }
[data-theme="dark"] { --surface: #112552; --surface-2: #15306A; --line: #22396E; }

body { font-size: 16px; }
.section { padding: 72px 0; }
@media (max-width: 620px) { .section { padding: 44px 0; } }
.h1 { font-size: clamp(28px, 3.4vw, 38px); }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* banner + header */
.demo-banner { background: transparent; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12.5px; padding: 6px 16px; }
.demo-banner b { color: var(--text); }
.site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom-color: transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav a { background: none !important; color: var(--muted); padding: 8px 10px; }
.nav a:hover { color: var(--text-strong); }
.nav a[aria-current="page"] { color: var(--text-strong); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.lang, .icon-btn { border-color: transparent; }
.lang button[aria-pressed="true"] { background: var(--chip-bg); color: var(--text-strong); }

/* cards: no borders/shadows by default */
.card { border: 0; box-shadow: none; background: var(--surface); border-radius: var(--radius); }
.card.flat { background: transparent; border: 1px solid var(--line); }
.card .card.flat { border: 0; background: var(--bg); }
.btn { border-radius: 10px; }
.option-card { border: 1px solid var(--line); background: transparent; }
.option-card:has(input:checked) { border-color: var(--text); box-shadow: none; background: var(--surface); }
.notice { background: var(--surface); }

/* operator logos */
.op-mark { display: inline-grid; place-items: center; flex-shrink: 0; }
.op-mark svg { display: block; }
.op-word { display: inline-flex; align-items: center; gap: .32em; font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }

/* number card — light row, notch kept (brand) */
.ncard {
  grid-template-columns: auto 1fr auto; gap: 14px; background: var(--surface); color: var(--text);
  padding: 16px 56px 16px 16px; border-radius: 14px;
}
.ncard:hover { transform: none; background: var(--surface-2); }
[data-theme="dark"] .ncard { background: var(--surface); }
[data-theme="dark"] .ncard:hover { background: var(--surface-2); }
.ncard .msisdn { font-size: 20px; color: var(--text-strong); letter-spacing: .03em; }
.ncard .msisdn:has(.hl) { color: var(--muted); }
.ncard .hl { color: var(--text-strong); }
.ncard .meta { color: var(--muted); }
.ncard .price { color: var(--text-strong); font-size: 15px; }
.ncard-wrap .fav { color: var(--muted); }
.ncard-wrap .fav:hover { background: var(--chip-bg); }
.reason { background: var(--warn-bg); color: var(--warn-text); }
.fresh { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.fresh::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--firuza); }
.fresh.cached::before { background: var(--gold); }
.fresh.unavailable::before { background: var(--anor); }

/* number rows on lapis (hero) */
.hero-panel { border-radius: 24px; padding: 28px 24px; }
.hero-panel .ncard { background: rgba(244,237,224,.07); }
.hero-panel .ncard:hover { background: rgba(244,237,224,.12); }
.hero-panel .ncard .msisdn { color: var(--ivory); }
.hero-panel .ncard .msisdn:has(.hl) { color: rgba(244,237,224,.55); }
.hero-panel .ncard .hl { color: var(--gold); }
.hero-panel .ncard .meta, .hero-panel .fresh, .hero-panel .fav { color: #C9D0E2; }
.hero-panel .ncard .price { color: var(--ivory); }
.hero-panel .fav:hover { background: rgba(255,255,255,.08); }

/* hero */
.hero { padding: 64px 0 56px; }
.hero .display { font-size: clamp(40px, 5.4vw, 64px); }
.text-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; }
.text-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.text-links a:hover { color: var(--text-strong); text-decoration: underline; text-underline-offset: 4px; }

/* operator row */
.op-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.op-cell { padding: 28px 20px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); }
.op-cell + .op-cell { border-left: 1px solid var(--line); }
.op-cell:hover { background: var(--surface); }
.op-cell .sub { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .op-row { grid-template-columns: repeat(2, 1fr); } .op-cell:nth-child(3) { border-left: 0; } .op-cell:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* steps without boxes */
.steps-list li { padding-top: 18px; border-top: 1.5px solid var(--line); }
.steps-list li::before { margin-bottom: 14px; }

.bor-section { text-align: center; padding: 88px 0; }
.bor-section .bor-line { font-size: clamp(32px, 4.6vw, 56px); }

/* search toolbar */
.search-layout { grid-template-columns: 1fr; }
.toolbar { display: grid; gap: 16px; margin-bottom: 28px; }
.toolbar .q-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.toolbar .q-row .input { flex: 1 1 320px; }
.op-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--surface); border: 1.5px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; }
.op-toggle[aria-pressed="true"] { border-color: var(--text-strong); }
.chip { background: transparent; border-color: var(--line-strong); }
.chip[aria-pressed="true"] { border-color: var(--primary); }
details.more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); list-style: none; display: inline-flex; gap: 6px; }
details.more summary::after { content: "▾"; }
details.more[open] summary::after { content: "▴"; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 16px; align-items: start; }
@media (max-width: 760px) { .more-grid { grid-template-columns: 1fr; } }
.seg { background: var(--surface); }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); box-shadow: none; }

/* tables quieter */
.table-wrap { border: 0; background: transparent; border-radius: 0; }
th { background: transparent; border-bottom: 1px solid var(--line-strong); }
tbody tr:hover td { background: transparent; }

/* footer: quiet */
.site-footer { background: transparent; color: var(--text); border-top: 1px solid var(--line); margin-top: 40px; }
[data-theme="dark"] .site-footer { background: transparent; }
.site-footer a { color: var(--text); }
.footer-grid h4 { color: var(--muted); }
.footer-bottom { color: var(--muted); border-top-color: var(--line); }

/* fixes: keep container gutters on sections; roomier number rows */
.section { padding-left: 20px; padding-right: 20px; }
.section.container { padding-left: 20px; padding-right: 20px; }
.ncard .price { white-space: nowrap; }
.ncard .meta { flex-wrap: nowrap; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncard-main { min-width: 0; }
.results-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.notice.warn { background: transparent; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); }

/* official operator logos */
.op-logo { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; width: auto; height: auto; border-radius: 0; background: none; place-items: initial; }
.op-logo img { display: block; width: auto; max-width: none; }
/* dark surfaces: give logos a light plate so black/purple/red marks stay legible */
[data-theme="dark"] .op-logo, .hero-panel .op-logo { background: #FBF8F2; padding: 4px 7px; border-radius: 6px; }
.ncard { grid-template-columns: 1fr auto; }
.ncard .meta { gap: 8px; align-items: center; }
.op-toggle { padding: 8px 14px; }
.op-cell .op-logo { min-height: 34px; }
