/* ============================================================
   SIMS-ON — static/style.css  (full replacement)
   Dark-first. Mobile-first. No build step. No Tailwind.
   All existing class names preserved.
   ============================================================ */

/* Dev/offline fallback: if Google Fonts is unreachable, document.fonts
   still reports loaded via these local() declarations. */
@font-face { font-family: 'Inter'; src: local('Inter'), local('-apple-system'), local('Segoe UI'); font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: local('Space Grotesk'), local('Inter'), local('-apple-system'); font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: local('JetBrains Mono'), local('ui-monospace'), local('Menlo'); font-display: swap; }

:root {
  /* Surfaces */
  --bg: #0A0F1C;
  --bg-1: #0B1120;
  --bg-2: #0F172A;
  --bg-light: #0F172A;                /* legacy alias */
  --surface: #141C2C;
  --surface-2: #1B2638;
  --surface-3: #26334A;
  --surface-hover: #1F2B40;
  --surface-light: #334155;           /* legacy alias */

  /* Borders */
  --border: #1E293B;
  --border-strong: #334155;
  --border-subtle: #121A2A;
  --border-light: #334155;            /* legacy alias */

  /* Text */
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-faint: #475569;

  /* Brand — green scale */
  --green-50:#ECFDF5; --green-100:#D1FAE5; --green-200:#A7F3D0;
  --green-300:#6EE7B7; --green-400:#34D399; --green-500:#10B981;
  --green-600:#059669; --green-700:#047857; --green-800:#065F46; --green-900:#064E3B;
  --accent: var(--green-500);
  --accent-hover: var(--green-400);
  --accent-dim: rgba(16,185,129,0.10);
  --accent-border: rgba(16,185,129,0.30);

  /* Brand — blue (institutional) */
  --blue-50:#EFF6FF; --blue-100:#DBEAFE; --blue-200:#BFDBFE;
  --blue-300:#93C5FD; --blue-400:#60A5FA; --blue-500:#3B82F6;
  --blue-600:#2563EB; --blue-700:#1D4ED8; --blue-800:#1E40AF; --blue-900:#1E3A8A;
  --blue: var(--blue-500);
  --blue-dim: rgba(59,130,246,0.10);

  /* Brand — amber (kiosk/retailer only) */
  --amber-50:#FEF7E6; --amber-100:#FDECC4; --amber-200:#FBD88B;
  --amber-300:#F6BE54; --amber-400:#E89F2B; --amber-500:#C67E14;
  --amber-600:#9E640E; --amber-700:#7A4E0C; --amber-800:#5A3A0A; --amber-900:#3D2707;
  --amber: var(--amber-400);
  --amber-dim: rgba(232,159,43,0.10);

  /* Status */
  --success: #22C55E; --error: #EF4444; --warning: #F59E0B; --info: #3B82F6;

  /* Radii */
  --radius-sm: 6px; --radius: 10px; --radius-lg: 14px; --radius-xl: 20px;

  /* Type */
  --font-display: 'Space Grotesk','Inter',system-ui,sans-serif;
  --font-body:    'Inter',system-ui,-apple-system,sans-serif;
  --font-mono:    'JetBrains Mono',ui-monospace,monospace;

  /* Layout */
  --max-w: 1140px;
  --nav-h: 64px;

  /* Shadows — soft and structural, never glowy */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow:    0 4px 16px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.02);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -200px, rgba(16,185,129,0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(59,130,246,0.05), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ───── Type ───── */
h1,h2,h3,h4 { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 600; margin: 0; color: var(--text); }
h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 600; }
.eyebrow { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); }
.lede { font-size: 18px; line-height: 1.55; color: var(--text-secondary); max-width: 60ch; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

/* ───── Layout ───── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { padding: 80px 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display:flex; flex-direction:column; gap:12px; margin-bottom: 40px; max-width: 60ch; }
/* When section-head is the only header before a grid (popular, usecases), center it */
.section > .container > .section-head,
.section-alt > .section-inner > .section-head { text-align: center; margin-left: auto; margin-right: auto; align-items: center; }
.section > .container > .section-head .lede { margin-left: auto; margin-right: auto; }

/* Legacy direct-child content (business, about, contact, help, topup, etc.)
   gets automatic container behavior so content doesn't hug the left edge.
   Pages that want full-width background (hero in index.html) use .hero > .container. */
main > .page-content,
main > .topup-page,
main > .order-page,
main > .checkout-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
main > .page-content h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 12px; }
main > .page-content h2 { font-size: 22px; margin-top: 32px; margin-bottom: 8px; }
main > .page-content p { color: var(--text-secondary); margin-bottom: 12px; max-width: 70ch; }
main > .page-content ul, main > .page-content ol { color: var(--text-secondary); margin: 12px 0 20px; padding-left: 20px; max-width: 70ch; }
main > .page-content li { margin-bottom: 6px; }
main > .page-content a { color: var(--accent); }
main > .page-content a:hover { color: var(--accent-hover); text-decoration: underline; }
main > .topup-page h1, main > .checkout-page h1 { font-size: clamp(28px, 3.5vw, 36px); }
main > .topup-page p, main > .checkout-page p { color: var(--text-secondary); margin-bottom: 12px; max-width: 70ch; }

/* Contact page + FAQ (legacy) */
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-icon { font-size: 20px; flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: var(--radius-sm); }
.contact-item h3 { font-size: 14px; margin-bottom: 4px; font-family: var(--font-display); }
.contact-item a { color: var(--accent); font-size: 14px; }

.faq-section { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; overflow: hidden; max-width: 70ch; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--text-muted); font-size: 18px; font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 20px 16px; margin: 0; color: var(--text-secondary); font-size: 14px; }

/* Topup form (legacy) */
.iccid-form { display: flex; flex-direction: column; gap: 8px; max-width: 560px; margin-top: 20px; }
.iccid-form label { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.iccid-form .hint { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.iccid-form .input-row { display: flex; gap: 8px; }
.iccid-form input[type="text"] { flex: 1; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text); font-size: 15px; font-family: var(--font-mono); outline: none; }
.iccid-form input[type="text"]:focus { border-color: var(--accent); }
.error-box { background: rgba(239,68,68,0.08); border-left: 3px solid var(--error); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); font-size: 14px; max-width: 560px; margin-bottom: 16px; }

/* ───── Navigation ───── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,15,28,0.75);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display:flex; align-items:center; gap:24px; height: var(--nav-h); }
.nav-links { display:flex; gap:28px; margin-left: 24px; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left:auto; display:flex; align-items:center; gap:16px; }
.nav-cta { padding: 9px 16px; border-radius: var(--radius-sm); background: var(--accent); color: #062417; font-weight: 600; font-size: 14px; }
.nav-cta:hover { background: var(--accent-hover); }

.logo { display:inline-flex; align-items:center; gap:10px; font-family: var(--font-display); font-weight:700; letter-spacing:-0.02em; color: var(--text); font-size: 18px; }
.logo-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background: var(--accent); transform: translateY(-4px); }

.lang-switch { display:inline-flex; padding:2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); gap:0; }
.lang-switch a { padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--text-muted); border-radius: 5px; font-family: var(--font-display); }
.lang-switch a.active { background: var(--surface-3); color: var(--text); }

/* ───── Buttons ───── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text);
  transition: background .15s, border-color .15s, transform .06s;
}
.btn:hover { background: var(--surface-hover); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #062417; border-color: transparent; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-hover); }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-amber { background: var(--amber); color: #2a1b06; border-color: transparent; }
.btn-amber:hover { background: var(--amber-300); }
.btn-lg { padding: 16px 24px; font-size: 16px; }
.btn-block { width: 100%; }

/* ───── Hero ───── */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; text-align: center; }
.hero .container > * { margin-left: auto; margin-right: auto; }
.hero h1, .hero .lede, .hero .hero-subtitle { max-width: 780px; }
.hero .search-section { max-width: 640px; }
.hero-ctas { justify-content: center; }
.hero-grid { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; text-align: left; }
.hero-grid > * { margin-left: 0 !important; margin-right: 0 !important; }
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  color: var(--green-300); font-size: 12px; font-weight: 600;
  font-family: var(--font-display); letter-spacing: 0.04em;
}
.hero-badge .pulse, .hero-badge-dot { width:6px; height:6px; border-radius:50%; background: var(--green-400); box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,.5)} 70%{box-shadow:0 0 0 8px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }
.hero h1 { margin-top: 20px; }
.hero h1 em, .hero h1 .highlight { font-style: normal; color: var(--green-400); }
.hero .lede, .hero-subtitle { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--text-secondary); max-width: 60ch; }
.hero-ctas { display:flex; gap:12px; margin-top: 28px; flex-wrap: wrap; }

/* Hero search — the one input matters */
.hero-search {
  margin-top: 32px; display:flex; gap:0;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 6px;
  box-shadow: var(--shadow);
}
.hero-search input {
  flex:1; background: transparent; border: 0; outline: 0;
  padding: 12px 14px; color: var(--text); font-size: 15px; font-family: var(--font-body);
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search .btn { border-radius: var(--radius-sm); }

/* Hero stats (legacy — compact grid under hero) */
.hero-stats { display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.hero-stat { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.hero-stat-value { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; color: var(--text); }
.hero-stat-label { font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }

/* ───── Trust bar (institutional endorsements) ───── */
.trust-bar {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display:flex; flex-direction:column; gap: 16px;
}
.trust-bar-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.trust-logos { display:flex; flex-wrap:wrap; gap: 32px 48px; align-items: center; justify-content: center; }
.hero .trust-bar { text-align: center; }
.hero .trust-bar-label { text-align: center; }
.trust-logo {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--text-secondary); letter-spacing: 0.02em;
  display:inline-flex; align-items:center; gap: 8px;
  opacity: 0.85;
}
.trust-logo::before {
  content:""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-400); opacity: .6;
}

/* Section headers (legacy) */
.section-header { display:flex; flex-direction:column; gap:8px; margin-bottom: 32px; max-width: 60ch; }
.section-label { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-400); }
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Search results dropdown (landing search) */
.search-section { position: relative; }
.search-wrap { position: relative; display:flex; align-items:center; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 6px 14px; }
.search-wrap .search-icon { width:18px; height:18px; color: var(--text-muted); margin-right: 8px; flex: none; }
.search-wrap input { flex:1; background: transparent; border: 0; outline: 0; padding: 10px 0; color: var(--text); font-size: 15px; font-family: var(--font-body); }
.search-wrap input::placeholder { color: var(--text-muted); }
.search-kbd { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); padding: 2px 6px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg-2); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 50; max-height: 360px; overflow-y: auto; }
.result-item { display:flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--border); cursor: pointer; }
.result-item:last-child { border-bottom: 0; }
.result-item:hover, .result-item.active { background: var(--surface-2); }
.result-name { font-weight: 500; }
.result-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.result-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ───── Country hero / back-link (legacy) ───── */
.country-hero { max-width: var(--max-w); margin: 0 auto; padding: 48px 20px 24px; }
.country-hero h1 { font-size: clamp(32px, 4vw, 44px); margin-top: 8px; }
.country-hero p { color: var(--text-secondary); margin-top: 8px; font-family: var(--font-display); letter-spacing: 0.02em; }
.back-link { display:inline-flex; align-items:center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-muted); font-family: var(--font-display); letter-spacing: 0.02em; }
.back-link:hover { color: var(--text); }

/* ───── Plan-Type Tabs (country page) ───── */
.plan-tabs { max-width: var(--max-w); margin: 0 auto 16px; padding: 0 20px; display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.plan-tab { background: transparent; border: none; border-bottom: 2px solid transparent; padding: 10px 18px; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.plan-tab:hover { color: var(--text-primary); }
.plan-tab.active { color: var(--text-primary); border-bottom-color: var(--accent, #2e7d32); }

/* ───── Chip filters (legacy, country page) ───── */
.filter-section { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.chip-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip-label { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; min-width: 72px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); font-size: 13px; font-family: var(--font-display); font-weight: 500; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.chip:hover { background: var(--surface-2); color: var(--text); }
.chip.active { background: var(--accent); color: #062417; border-color: transparent; font-weight: 600; }

.results-bar { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; font-family: var(--font-display); font-size: 13px; color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: 12px; }
.empty-state { max-width: var(--max-w); margin: 0 auto; padding: 64px 20px; text-align: center; color: var(--text-muted); }

/* ───── Legacy product-card spec fallback (in case old markup still exists) ───── */
.product-card .product-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.product-card .product-specs { display: flex; gap: 16px; }
.product-card .spec { display: flex; flex-direction: column; gap: 2px; }
.product-card .spec-label { font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.product-card .spec-value { font-size: 14px; color: var(--text); }
.product-card .product-price { display: flex; align-items: baseline; gap: 4px; margin-top: auto; }
.product-card .product-price .eur { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.03em; color: var(--text); line-height: 1; }

/* ───── Cards ───── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card-tight { padding: 16px; }

/* Country cards */
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.country-card {
  display:flex; align-items:center; gap: 14px;
  padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .15s, transform .06s, background .15s;
}
.country-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.country-card .flag {
  width: 36px; height: 28px; border-radius: 4px;
  background: var(--surface-3);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  color: var(--text-secondary); letter-spacing: 0.05em;
}
.country-card .country-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.country-card .country-name, .country-card .name { font-weight: 600; font-size: 15px; color: var(--text); }
.country-card .country-plans { font-size: 12px; color: var(--text-muted); font-family: var(--font-display); }
.country-card .country-price, .country-card .from { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-family: var(--font-display); }
.country-card .country-price b, .country-card .from b { color: var(--green-400); font-weight: 700; }

/* Bundle pill — marks regional bundles (Europe, Balkans, Global) */
.bundle-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(74, 222, 128, 0.10);
  border: 1px solid rgba(74, 222, 128, 0.28);
  padding: 1px 7px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
  white-space: nowrap;
}
.bundle-pill--lg { font-size: 12px; padding: 3px 10px; }
.country-card--bundle { border-color: rgba(74, 222, 128, 0.25); }
.country-card--bundle:hover { border-color: rgba(74, 222, 128, 0.45); }

/* Coverage-Preview auf Bundle-Karten — zeigt 3-4 enthaltene Länder. */
.country-card .country-coverage { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.country-card .country-coverage-chip,
.country-card .country-coverage-more {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.18);
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.country-card .country-coverage-more {
  color: var(--text-muted);
  background: transparent;
  border-style: dashed;
}

.result-via { color: var(--text-muted); font-weight: 400; font-size: 13px; }

/* Coverage section on country page (regional bundles) */
.coverage-section {
  max-width: var(--max-w); margin: 0 auto 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.coverage-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.coverage-eyebrow {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-400);
}
.coverage-head h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text); margin: 0; }
.coverage-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.coverage-chip {
  font-size: 13px; font-family: var(--font-display); font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
}
.coverage-chip--more { color: var(--text-muted); font-style: italic; }
.coverage-toggle {
  display: inline-block; margin-top: 12px; padding: 6px 14px;
  font-family: var(--font-display); font-size: 13px; font-weight: 500;
  color: var(--text); background: transparent;
  border: 1px solid var(--border-strong); border-radius: 999px;
  cursor: pointer; transition: background .12s, border-color .12s;
}
.coverage-toggle:hover { background: var(--surface-2); border-color: var(--accent); }

/* Product cards (country page) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .15s, transform .1s;
  position: relative;
}
.product-card:hover { border-color: var(--green-700); }
.product-card .p-top { display:flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product-card .p-size {
  font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.1;
}
.product-card .p-days { font-family: var(--font-display); font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; letter-spacing: 0.04em; text-transform: uppercase; }
.product-card .p-price {
  font-family: var(--font-display); font-weight: 700; font-size: 40px;
  letter-spacing: -0.04em; line-height: 1;
  color: var(--text);
  display:flex; align-items: baseline; gap: 3px;
}
.product-card .p-price .cur { font-size: 22px; color: var(--text-secondary); font-weight: 600; }
.product-card .p-price .cents { font-size: 18px; color: var(--text-secondary); font-weight: 600; }
.product-card .p-meta { display:flex; flex-wrap:wrap; gap: 6px; }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.stat-card {
  padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display:flex; flex-direction:column; gap: 6px;
  position: relative; overflow: hidden;
}
.stat-card .stat-label { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.stat-card .stat-value { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; }
.stat-card .stat-delta { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--green-400); }
.stat-card.stat-card--accent, .stat-card.is-balance { border-color: var(--green-700); background: linear-gradient(180deg, rgba(16,185,129,0.08), transparent 60%), var(--surface); }
.stat-card.stat-card--accent .stat-value, .stat-card.is-balance .stat-value { color: var(--green-300); }
.stat-card.is-today   { border-color: var(--amber-700); background: linear-gradient(180deg, rgba(232,159,43,0.08), transparent 60%), var(--surface); }
.stat-card.is-today .stat-value   { color: var(--amber-300); }

/* Badges */
.badge {
  display:inline-flex; align-items:center; gap:4px;
  padding: 3px 8px; border-radius: 999px;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-green, .badge-fulfilled, .badge-paid { background: var(--accent-dim); color: var(--green-300); border: 1px solid var(--accent-border); }
.badge-blue  { background: var(--blue-dim);   color: var(--blue-300);  border: 1px solid rgba(59,130,246,0.3); }
.badge-amber, .badge-pending, .badge-pending_payment { background: var(--amber-dim);  color: var(--amber-300); border: 1px solid rgba(232,159,43,0.3); }
.badge-muted, .badge-cancelled { background: var(--surface-2);  color: var(--text-muted); border: 1px solid var(--border); }
.badge-error, .badge-failed { background: rgba(239,68,68,0.10); color: #FCA5A5; border: 1px solid rgba(239,68,68,0.30); }

/* Use-case tabs (embeds compare/savings) */
.usecase-tabs { display:flex; flex-wrap: wrap; gap: 8px; }
.usecase-tab {
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer;
}
.usecase-tab.active { background: var(--surface-3); color: var(--text); border-color: var(--border-strong); }
.usecase-content { display: none; }
.usecase-content.active { display: block; }
.usecase-body {
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; margin-top: 24px;
}
.usecase-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 20px; }
.usecase-feature { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-secondary); }
.usecase-check { color: var(--green-400); font-weight: 700; flex: none; }
.savings-readout {
  display:flex; flex-direction:column; gap: 4px;
  padding: 24px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border);
}
.savings-readout .big { font-family: var(--font-display); font-weight: 700; font-size: 48px; letter-spacing: -0.03em; color: var(--green-400); line-height: 1; }
.savings-row { display:flex; justify-content:space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.savings-row:last-child { border-bottom: 0; }
.savings-row .was { color: var(--text-muted); text-decoration: line-through; font-family: var(--font-mono); }
.savings-row .now { color: var(--text); font-family: var(--font-mono); }

/* "How it works" */
.how-steps, .steps-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.how-step, .step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: relative;
}
.how-step::before, .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--green-400); letter-spacing: 0.08em; margin-bottom: 12px;
}
.how-step h3, .step h3 { font-size: 18px; margin-bottom: 6px; }
.how-step p, .step p { color: var(--text-secondary); font-size: 14px; margin: 0; }
.step-number { display: none; }

/* Comparison card (legacy class kept — now styled as a savings row) */
.comparison-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.comparison-header { border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 16px; }
.comparison-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.comparison-row:last-child { border-bottom: 0; }
.comparison-roaming, .comparison-simson { display: flex; flex-direction: column; gap: 4px; }
.comparison-simson { text-align: right; }
.comparison-price { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.comparison-price.bad { color: var(--text-muted); text-decoration: line-through; }
.comparison-price.good { color: var(--green-400); }
.comparison-note { font-size: 12px; color: var(--text-muted); font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.comparison-vs { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--text-faint); letter-spacing: 0.1em; }

/* Value cards (legacy class kept) */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.value-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.value-icon { font-size: 24px; margin-bottom: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--surface-2); }
.value-icon-green { color: var(--green-400); }
.value-icon-blue { color: var(--blue-400); }
.value-card h3 { font-size: 17px; margin-bottom: 6px; }
.value-card p { color: var(--text-secondary); font-size: 14px; margin: 0; }

/* CTA section */
.cta-section { text-align: center; padding: 80px 20px; border-top: 1px solid var(--border); }
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { color: var(--text-secondary); max-width: 50ch; margin: 0 auto; }
.cta-section .hero-ctas { justify-content: center; margin-top: 28px; }

/* ───── Tables (portal) ───── */
.p-table-responsive { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.p-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-table thead th {
  text-align: left; font-family: var(--font-display);
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.p-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.p-table tbody tr:hover td { background: var(--surface-2); }
.p-table tbody tr:last-child td { border-bottom: 0; }
.p-table .mono { font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); }

/* ───── Portal shell ───── */
/* Two modes: the new grid layout (sidebar + body) and the legacy horizontal
   top-nav layout where .portal is used as a <section> wrapper under <main>. */
.portal { min-height: calc(100vh - 56px); background: var(--bg); display: block; max-width: var(--max-w); margin: 0 auto; padding: 32px 24px; }
.portal--narrow { max-width: 720px; }
.portal--wide { max-width: var(--max-w); }
.portal.grid-shell { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: 56px 1fr; padding: 0; max-width: none; }
.portal-header {
  grid-column: 1 / -1;
  display:flex; align-items:center; gap:24px;
  height: 56px; padding: 0 24px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.portal-header .nav-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-400);
  padding: 3px 8px; border: 1px solid var(--amber-700); border-radius: 4px;
  background: var(--amber-dim);
}
.portal-header .kiosk-id, .portal-header .spacer { margin-left:auto; }
.portal-header .kiosk-id { display:inline-flex; gap:8px; align-items:center; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.portal-header a { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.portal-header a:hover { color: var(--text); }
.portal-header a.active { color: var(--text); background: var(--surface-2); }
.portal-nav {
  padding: 20px 16px; border-right: 1px solid var(--border); background: var(--bg-1);
  display: flex; flex-direction: column; gap: 2px;
}
.portal-nav a {
  display:flex; align-items:center; gap:10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
}
.portal-nav a:hover { background: var(--surface-2); color: var(--text); }
.portal-nav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--amber-400); }
.portal-nav .section-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint);
  padding: 16px 12px 6px;
}
.portal-body { padding: 32px; overflow: auto; }
.portal-title, .page-title { display:flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.portal-title h1, .page-title { font-size: 28px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 24px; }
.portal-title .sub { color: var(--text-secondary); }
.section-heading { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 32px 0 16px; letter-spacing: -0.01em; }

.logout-btn { padding: 8px 14px; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--border-strong); color: var(--text-secondary); font-size: 13px; font-weight: 500; cursor: pointer; }
.logout-btn:hover { background: var(--surface-2); color: var(--text); }

/* Portal accent: amber (differentiates from public shop's green) */
.portal .btn-primary { background: var(--amber); color: #2a1b06; }
.portal .btn-primary:hover { background: var(--amber-300); }

/* Vendor portal legacy compat classes */
.p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
  cursor: pointer; text-decoration: none;
}
.p-btn:hover { background: var(--surface-hover); }
.p-btn--primary { background: var(--amber); color: #2a1b06; border-color: transparent; }
.p-btn--primary:hover { background: var(--amber-300); }
.p-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.p-btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text-secondary); }
.p-btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.p-btn--large { padding: 14px 24px; font-size: 15px; width: 100%; }

.p-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.p-details { display: flex; flex-direction: column; }
.p-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.p-detail-row:last-child { border-bottom: 0; }
.p-detail-label { color: var(--text-muted); font-family: var(--font-display); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }
.p-detail-value { color: var(--text); font-weight: 500; }
.p-detail-value--large { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.p-detail-value--success { color: var(--amber-300); font-family: var(--font-mono); font-weight: 600; }

.balance-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 18px; display: inline-flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.balance-bar strong { color: var(--amber-300); font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.balance-bar .sep { color: var(--text-faint); }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.plan-card {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text);
  transition: border-color .15s;
}
.plan-card:hover { border-color: var(--amber-700); }
.plan-data { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.plan-duration { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.plan-pricing { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.plan-cost { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.plan-profit { font-family: var(--font-mono); font-size: 12px; color: var(--amber-300); }

.portal-search { position: relative; margin-bottom: 20px; max-width: 480px; }
.portal-search input { width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 12px 14px 12px 40px; color: var(--text); font-size: 15px; outline: none; font-family: var(--font-body); }
.portal-search input:focus { border-color: var(--amber-400); }
.portal-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 16px; }

.country-select { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.country-option { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; transition: border-color .12s, background .12s; }
.country-option:hover { background: var(--surface-2); border-color: var(--amber-700); }
.country-option .count { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

.spinner-sm { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.2); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
[data-once].submitting .spinner-sm { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Vendor portal top-nav layout (legacy: nav inside portal-header) */
.portal-header .portal-nav { display: flex; align-items: center; gap: 8px; padding: 0; border-right: 0; background: transparent; flex-direction: row; width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.portal-header .portal-nav > a, .portal-header .portal-nav > form a { padding: 8px 10px; font-size: 14px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; background: transparent; border-radius: 0; }
.portal-header .portal-nav > a.active { color: var(--amber-300); background: transparent; font-weight: 600; box-shadow: none; }
.portal-header .portal-nav > .logo { color: var(--text); margin-right: 8px; }
.portal-header .portal-nav > .spacer { flex: 1; }
.portal-header .portal-nav > .nav-label { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-400); padding: 3px 8px; border: 1px solid var(--amber-700); border-radius: 4px; background: var(--amber-dim); }

.sell-cta { text-decoration: none; color: var(--text); }

/* Admin portal legacy classes */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.toolbar > *:last-child { margin-left: auto; }
.toolbar form { display: flex; gap: 8px; flex: 1; min-width: 240px; max-width: 480px; }

.p-input, .form-group input, .form-group textarea, .form-group select {
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; color: var(--text); font-size: 14px; font-family: var(--font-body);
  outline: none; width: 100%;
}
.p-input:focus, .form-group input:focus, .form-group textarea:focus { border-color: var(--amber-400); }
.p-label, .form-group label { display: block; font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.form-group { margin-bottom: 14px; }

.p-alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.p-alert--error { background: rgba(239,68,68,0.08); border-left: 3px solid var(--error); color: #FCA5A5; }
.p-alert--success { background: var(--accent-dim); border-left: 3px solid var(--accent); color: var(--green-300); }

.p-btn--secondary { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.p-btn--secondary:hover { background: var(--surface-hover); }
.p-btn--danger { background: var(--error); border-color: transparent; color: #fff; }
.p-btn--danger:hover { background: #DC2626; }
.p-btn--warn { background: var(--warning); border-color: transparent; color: #2a1b06; }
.p-btn--warn:hover { background: #FBBF24; }

.badge-active { background: var(--accent-dim); color: var(--green-300); border: 1px solid var(--accent-border); padding: 3px 8px; border-radius: 999px; font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.badge-inactive { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); padding: 3px 8px; border-radius: 999px; font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }

.portal-label { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }

/* ───── "Sell" big-target CTA (kiosk counter) ───── */
.sell-cta {
  display:grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
}
.sell-cta:hover { border-color: var(--amber-700); }
.sell-cta.selected { border-color: var(--amber-600); background: linear-gradient(180deg, rgba(232,159,43,0.06), transparent 70%), var(--surface); }
.sell-cta .size { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.sell-cta .days { font-family: var(--font-mono); color: var(--text-muted); font-size: 13px; }
.sell-cta .price { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.03em; }
.sell-cta .commission { font-family: var(--font-mono); color: var(--amber-300); font-size: 12px; text-align: right; }

/* ───── Order confirmation (hero moment) ───── */
.order-hero {
  background: linear-gradient(180deg, rgba(16,185,129,0.08), transparent 60%), var(--surface);
  border: 1px solid var(--green-800);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.order-state {
  display:inline-flex; align-items:center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  color: var(--green-300); letter-spacing: 0.06em; text-transform: uppercase;
}
.order-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-400); }
.qr-panel {
  background: white; border-radius: var(--radius); padding: 20px;
  display: inline-block;
}
.lpa-code {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary);
  background: var(--bg-2); padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); word-break: break-all;
  display: flex; gap: 8px; align-items: center;
}

/* ───── Install steps (order page) ───── */
.install-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.install-step {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px;
}
.install-step .n {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-400);
}
.install-step h4 { font-family: var(--font-display); font-size: 15px; margin: 6px 0 4px; }
.install-step p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ───── Checkout summary ───── */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }
.summary-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; position: sticky; top: 88px;
}
.summary-row { display:flex; justify-content:space-between; padding: 10px 0; font-size: 14px; color: var(--text-secondary); }
.summary-row.total { font-family: var(--font-display); font-size: 20px; color: var(--text); padding-top: 16px; border-top: 1px solid var(--border); margin-top: 12px; font-weight: 700; }

/* ───── Empty / error / loading patterns ───── */
.empty {
  display:flex; flex-direction:column; align-items: center; gap: 12px;
  padding: 64px 24px; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.empty h3 { color: var(--text-secondary); font-weight: 600; }
.empty p { color: var(--text-muted); font-size: 14px; margin: 0; max-width: 40ch; }
.err {
  border-left: 3px solid var(--error);
  background: rgba(239,68,68,0.06);
  padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text); font-size: 14px;
}
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: 6px; }
@keyframes skel { 0%{background-position: 200% 0} 100%{background-position: -200% 0} }

/* ───── Footer ───── */
footer { border-top: 1px solid var(--border); background: var(--bg-1); margin-top: 80px; }
.footer-content { max-width: var(--max-w); margin: 0 auto; padding: 48px 20px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; max-width: 34ch; line-height: 1.55; }
.footer-col h4 { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); flex-wrap: wrap; gap: 12px; }
.footer-badges { display: flex; gap: 16px; font-family: var(--font-display); letter-spacing: 0.04em; }

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .usecase-body { grid-template-columns: 1fr; padding: 24px; }
  .usecase-features { grid-template-columns: 1fr; }
  .how-steps, .steps-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .install-steps { grid-template-columns: repeat(2, 1fr); }
  .portal { grid-template-columns: 1fr; }
  .portal-nav { display: none; }
  .portal-body { padding: 20px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .comparison-row { grid-template-columns: 1fr; text-align: center; }
  .comparison-simson { text-align: center; }
}
@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-inner { gap: 12px; padding: 0 14px; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 32px; line-height: 1.1; }
  .hero .lede, .hero .hero-subtitle { font-size: 15px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .trust-logos { gap: 12px 20px; justify-content: center; }
  .trust-logo { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; align-items: center; }
  .footer-badges { justify-content: center; }
  .country-hero { padding: 32px 16px 16px; }
  .filter-section { padding: 0 16px; }
  .chip-group { flex-wrap: wrap; }
  .chip-label { min-width: 0; margin-right: 0; flex-basis: 100%; margin-bottom: 2px; }
  .results-bar { padding: 0 16px; }
  .country-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 24px; }
  main > .page-content,
  main > .topup-page,
  main > .order-page,
  main > .checkout-page { padding: 32px 16px 64px; }
  main > .page-content h1 { font-size: 28px; }
  .iccid-form .input-row { flex-direction: column; }
  .iccid-form .input-row input { width: 100%; }
  html, body { overflow-x: hidden; }
  .hero-badge { max-width: 100%; white-space: normal; line-height: 1.4; padding: 8px 14px; text-align: center; }
  .trust-bar { padding-top: 20px; }
  .trust-logos { gap: 10px 16px; row-gap: 10px; }
  .trust-logo::before { width: 4px; height: 4px; }
  main { overflow-x: hidden; }
  section { max-width: 100vw; overflow-x: hidden; }
  .lang-switch a { padding: 4px 8px; font-size: 11px; }
}
