/* ============================================================
   eSIM Platform — Design System
   Light, modern, mobile-first
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand — Quibity-inspired modern tech blue */
  --brand-50:  #eff4ff;
  --brand-100: #dbe6fe;
  --brand-200: #bfd3fe;
  --brand-400: #5b8def;
  --brand-500: #2f6bed;
  --brand-600: #1e52d6;
  --brand-700: #1740ad;

  --accent-400: #22d3a6;
  --accent-500: #10b981;
  --accent-600: #059669;

  --violet-500: #3b82f6;
  --pink-500:   #6366f1;
  --amber-500:  #f59e0b;
  --red-500:    #ef4444;

  /* Neutrals */
  --bg:         #f6f8fc;
  --surface:    #ffffff;
  --surface-2:  #f1f5fb;
  --border:     #e6ebf4;
  --text:       #0f1b35;
  --text-2:     #4a5878;
  --text-3:     #8a97b4;

  /* Typography */
  --font-head: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Shape & depth */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(16,27,53,.06), 0 1px 3px rgba(16,27,53,.05);
  --shadow:    0 8px 24px rgba(16,27,53,.08);
  --shadow-lg: 0 24px 60px rgba(16,27,53,.14);
  --ring:      0 0 0 4px var(--brand-100);

  --gradient: linear-gradient(120deg, #2f6bed 0%, #3b82f6 45%, #22d3ee 100%);
  --gradient-accent: linear-gradient(120deg, #1e52d6 0%, #2f6bed 50%, #22d3ee 100%);
  --gradient-vivid: linear-gradient(100deg, #1e52d6, #3b82f6, #22d3ee);

  --maxw: 1200px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* html carries the dark footer color so any area below the footer (mobile
   overscroll / URL-bar collapse / short pages) blends into the footer instead
   of flashing the light gray page bg. */
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  background: #0f1b35;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  /* dvh keeps the sticky footer flush even as mobile browser chrome resizes */
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  /* sticky-footer: body is a column so main grows and the footer sits flush
     at the bottom with no empty gap under it */
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1 0 auto; }
/* footer never shrinks and visually seals the bottom of the page */
.footer { flex-shrink: 0; margin-top: auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--text); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.hidden { display: none !important; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-50);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-title { font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px; }
.section-sub { color: var(--text-2); font-size: 18px; max-width: 620px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 12px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(47,107,237,.35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(47,107,237,.45); transform: translateY(-2px); }
.btn-accent { background: var(--accent-500); color:#fff; box-shadow: 0 8px 20px rgba(16,185,129,.3); }
.btn-accent:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-200); color: var(--brand-600); }
.btn-light { background: rgba(255,255,255,.15); color:#fff; backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.25); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2);
}
.badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-red   { background: #fee2e2; color: #b91c1c; }
.badge-blue  { background: var(--brand-50); color: var(--brand-700); }
.badge-gray  { background: var(--surface-2); color: var(--text-3); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(230,235,244,.9);
  box-shadow: 0 1px 0 rgba(16,27,53,.02), 0 10px 30px -24px rgba(16,27,53,.5);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; flex-wrap: nowrap; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; white-space: nowrap; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--gradient);
  display: grid; place-items: center; color:#fff; font-size: 18px; box-shadow: 0 6px 14px rgba(47,107,237,.4);
}
.logo-img { height: 34px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.footer .logo-img { height: 30px; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: 8px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--text-2); transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Cart in the desktop header: a real button, not a bare icon. */
.desktop-header .header-cart {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  color: var(--text-2); font-size: 16px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, color .15s ease, box-shadow .2s ease, transform .15s ease;
}
.desktop-header .header-cart:hover {
  color: var(--brand-600); border-color: var(--brand-200);
  box-shadow: 0 8px 20px rgba(47,107,237,.18); transform: translateY(-1px);
}
.desktop-header .header-cart:active { transform: translateY(0); }
.desktop-header .header-cart .header-cart__count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-500); color: #fff; font-size: 11px; font-weight: 700;
  line-height: 1; box-shadow: 0 0 0 2px var(--surface);
}
.desktop-header .header-cart .header-cart__count.hidden,
.desktop-header .header-cart .header-cart__count[hidden] { display: none; }

.selector { position: relative; }
.selector-btn {
  display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: 10px; color: var(--text-2);
}
.selector-btn:hover { background: var(--surface-2); color: var(--text); }
.selector-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 50;
}
.selector-menu button,
.selector-menu a {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--text-2);
  text-decoration: none;
}
.selector-menu button:hover,
.selector-menu a:hover { background: var(--surface-2); color: var(--text); }
.selector-menu button.active,
.selector-menu a.active { color: var(--brand-600); background: var(--brand-50); }

/* Clean mobile menu control. Hidden on desktop; shown by responsive rules. */
.burger {
  display: none; position: relative;
  width: 44px; height: 40px; border-radius: 11px;
  align-items: center; justify-content: center;
  padding: 0; background: #fff !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.burger:hover { transform: translateY(-1px); border-color: var(--brand-200); box-shadow: var(--shadow); }
.burger:active { transform: translateY(0) scale(.97); }
.burger > i { display: none; }
.burger span {
  position: relative; display: block;
  width: 21px; height: 2px; border-radius: 2px;
  background: var(--text); opacity: 1;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .18s ease;
}
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .18s ease;
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
.burger.is-open span { transform: rotate(45deg); }
.burger.is-open span::before { transform: translateY(7px) rotate(90deg); }
.burger.is-open span::after  { opacity: 0; }

/* ---------- Hero ---------- */
/* shorter, tighter hero (was 80/90) */
.hero { position: relative; overflow: hidden; padding: 52px 0 60px; }
.hero::before {
  content:''; position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(8,145,178,.14), transparent 60%),
    radial-gradient(800px 500px at 0% 10%, rgba(47,107,237,.12), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

/* single-column, centered hero (no side visual) */
.hero-single { display: flex; justify-content: center; text-align: center; }
.hero-single .hero-copy { max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.hero-single .eyebrow { align-self: center; }
.hero-single p.lead { max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-single .search-tabs { justify-content: center; }
.hero-single .search-box { width: 100%; max-width: 600px; }
.hero-single .hero-stats { justify-content: center; }

/* ---------- Hero with admin photo (foreground image, not background) ----------
   When an admin uploads a hero image the layout switches to the two-column
   .hero-grid: copy on the left, the photo rendered as a real <img> on the right
   (.hero-photo). On mobile the photo stacks on top as a card (order:-1). The
   image URL is cache-busted (asset()/filemtime) so re-uploads show immediately. */
.hero-photo { position: relative; display: grid; place-items: center; }
.hero-photo img {
  width: 100%;
  max-width: 560px;
  height: auto;            /* keep the image's natural ratio */
  object-fit: contain;     /* show the WHOLE image, never crop */
  border-radius: 24px;
  box-shadow: 0 30px 60px -20px rgba(8,20,42,.35);
}

/* ============================================================
   Shared page header band  (country / payments / dealers /
   legal + info pages). A soft tinted panel with a dot-grid so
   secondary pages feel designed instead of a bare <h1>.
   ============================================================ */
.page-head {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 40px clamp(22px, 5vw, 48px);
  margin-bottom: 36px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(47,107,237,.12), transparent 55%),
    radial-gradient(120% 160% at 100% 0%, rgba(132,204,22,.10), transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.page-head::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(100deg, #000, transparent 70%);
  mask-image: linear-gradient(100deg, #000, transparent 70%);
  pointer-events: none;
}
.page-head > * { position: relative; z-index: 1; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.1;
  margin: 0 0 10px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.page-head .sub {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}
.page-head .flag { flex: none; }
.page-head .back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
}

/* ---------- Legal / info document pages (about, terms, privacy…) ---------- */
/* Use the same site-wide container width as other public pages. */
.doc { max-width: var(--maxw); margin: 0 auto; }
.doc-body { width: 100%; padding: clamp(26px, 4vw, 48px); }
.doc-body > p,
.doc-body > h2,
.doc-body > .doc-list,
.doc-body > .doc-cta { max-width: 76ch; }
.doc-body > p { color: var(--text-2); font-size: 16.5px; line-height: 1.8; margin: 0 0 18px; }
.doc-body > p:last-child { margin-bottom: 0; }
.doc-body h2 { font-size: clamp(20px, 2.2vw, 24px); margin: 34px 0 12px; padding-top: 22px; border-top: 1px solid var(--border); }
.doc-body h2:first-of-type { margin-top: 22px; }
.doc-body h2.doc-h { color: var(--text); }
.doc-list { margin: 4px 0 22px; padding-left: 22px; color: var(--text-2); font-size: 16px; line-height: 1.75; }
.doc-list li { margin: 0 0 8px; }
.doc-list li::marker { color: var(--brand-500); }
.doc-cta { margin-top: 26px; }
.doc-links { max-width: 76ch; display:flex; flex-wrap:wrap; gap:10px; margin-top:30px; padding-top:24px; border-top:1px solid var(--border); }
.doc-links a { display:inline-flex; align-items:center; min-height:40px; padding:9px 14px; border:1px solid var(--border); border-radius:999px; color:var(--brand-700); background:var(--surface-2); font-weight:700; }
.doc-links a:hover { border-color:var(--brand-200); background:var(--brand-50); }

/* ---------- Account dashboard polish ---------- */
.account-shell {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 30px;
  align-items: flex-start;
}
.account-side {
  position: sticky; top: 92px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
/* The shared .side-link is styled for the DARK admin sidebar (light-gray text
   on dark). Inside the white account card we must flip it to dark-on-light so
   the links are actually readable. */
.account-side .side-link { color: var(--text-2); font-size: 14.5px; padding: 11px 12px; border-radius: 12px; }
.account-side .side-link .ic { color: var(--brand-500); }
.account-side .side-link:hover { background: var(--brand-50); color: var(--brand-700); }
.account-side .side-link:hover .ic { color: var(--brand-600); }
.account-side .side-link.active { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(47,107,237,.3); }
.account-side .side-link.active .ic { color: #fff; }
.account-profile {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 6px 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.account-avatar {
  width: 46px; height: 46px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px;
  background: var(--gradient);
}
.account-profile .nm { font-weight: 700; line-height: 1.2; }
.account-profile .em { font-size: 12.5px; color: var(--text-3); word-break: break-all; }
.account-welcome { margin: 0 0 24px; }
.account-welcome h1 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 6px; }
.account-welcome p { color: var(--text-2); margin: 0; }
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card { padding: 22px; position: relative; overflow: hidden; }
.stat-card .eyebrow { margin-bottom: 10px; }
.stat-card .val { font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 1.1; }
.stat-card .ic {
  position: absolute; right: 16px; top: 16px;
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--brand-600);
  background: var(--brand-50);
  font-size: 16px;
}
.orders-card { padding: 0; overflow: hidden; }
.order-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s ease;
}
.order-row:last-child { border-bottom: 0; }
.order-row:hover { background: var(--surface-2); }
.order-row .no { font-weight: 700; }
.order-row .mt { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.order-row .amt { font-weight: 800; font-family: var(--font-head); }
.order-right { display: flex; align-items: center; gap: 16px; }

@media (max-width: 860px) {
  .account-shell { grid-template-columns: 1fr; }
  .account-side {
    position: static;
    flex-direction: row; flex-wrap: wrap;
    gap: 8px;
  }
  .account-profile { width: 100%; }
  .account-side .side-link { flex: 1 1 auto; justify-content: center; }
  .account-stats { grid-template-columns: 1fr; }
}

.hero h1 { font-size: clamp(34px, 5.2vw, 60px); margin-bottom: 20px; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--text-2); max-width: 520px; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-head); font-weight: 800; font-size: 28px; }
.hero-stats .lbl { font-size: 13px; color: var(--text-3); }

/* Search box */
.search-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 20px 50px rgba(16,27,53,.16), 0 2px 8px rgba(16,27,53,.06);
  padding: 8px 8px 8px 10px; display: flex; gap: 8px; align-items: center;
  max-width: 580px;
}
.search-box .field { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 16px; position: relative; }
.search-box .field > span { color: var(--brand-500); font-size: 18px; display: flex; }
.search-box input {
  flex: 1; border: none; outline: none; font-size: 16px; font-family: inherit;
  color: var(--text); background: transparent; min-width: 0;
}
/* Embedded submit button sits inside the pill (quibity-style) */
.search-box .btn { border-radius: 999px; padding: 14px 26px; white-space: nowrap; flex: none; }
/* Hero search autocomplete dropdown.
   Anchored to the whole .search-box (not the narrow .field) and lifted above any
   ancestor overflow clipping so results are always visible as you type. */
.search-box { position: relative; }
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  z-index: 1000;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow-y: auto; padding: 6px;
  max-height: 320px; text-align: left;
}
.search-suggest[hidden] { display: none; }
.search-suggest .suggest-item {
  display: block; width: 100%; text-align: left;
  padding: 11px 14px; border: none; background: transparent; cursor: pointer;
  font-size: 15px; color: var(--text); border-radius: 10px; font-family: inherit;
}
.search-suggest .suggest-item:hover,
.search-suggest .suggest-item.active { background: var(--brand-50); color: var(--brand-700); }
.search-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.search-tab {
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.search-tab:hover { border-color: var(--brand-200); color: var(--brand-700); }
.search-tab.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(47,107,237,.32); }

/* Hero visual (phone) */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  width: 300px; aspect-ratio: 300/600; background: #0f1b35; border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow-lg); position: relative; transform: rotate(3deg);
}
.phone-screen { width:100%; height:100%; background: linear-gradient(160deg,#ecfeff,#fff); border-radius: 34px; overflow:hidden; position: relative; padding: 22px 18px; }
.phone-notch { position:absolute; top:12px; left:50%; transform:translateX(-50%); width:120px; height:22px; background:#0f1b35; border-radius:0 0 14px 14px; z-index:2; }
.phone .mini-card { background:#fff; border:1px solid var(--border); border-radius:16px; padding:14px; box-shadow: var(--shadow-sm); margin-top: 14px; }
.float-badge {
  position: absolute; background: var(--surface); border:1px solid var(--border);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); display:flex; gap:10px; align-items:center;
  font-weight:700; font-size:14px; animation: float 4s ease-in-out infinite;
}
.float-badge .ic { width:36px;height:36px;border-radius:11px;display:grid;place-items:center;color:#fff;font-size:16px; }
.fb-1 { top: 30px; left: -20px; } .fb-2 { bottom: 60px; right: -24px; animation-delay: 1.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ---------- Logos strip ---------- */
.trust { display:flex; align-items:center; justify-content:center; gap:40px; flex-wrap:wrap; opacity:.6; }
.trust span { font-family: var(--font-head); font-weight:800; font-size:20px; color: var(--text-3); }

/* ---------- Partner logos marquee (admin-managed, auto-scrolling) ----------
   .marquee-track holds the logo list twice; it slides from 0 to -50% so the
   loop is seamless. Edge fade masks the entry/exit. Honors reduced-motion and
   pauses on hover. No links — logos are display-only. */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  min-width: 100%;               /* fill the container even with few logos */
  align-items: center;
  justify-content: space-around; /* spread logos across the full width */
  gap: clamp(40px, 7vw, 90px);
  /* speed scales with the number of logos so it always glides, not races */
  animation: marquee-scroll calc(var(--marquee-count, 5) * 11s) linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  height: 48px;
}
.marquee-item img {
  max-height: 100%;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  /* muted, consistent look; brightens on hover of the strip */
  opacity: .65;
  filter: grayscale(100%);
  transition: opacity .25s ease, filter .25s ease;
}
.marquee:hover .marquee-item img { opacity: .9; filter: grayscale(0%); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}
@media (max-width: 560px) {
  .marquee-track { gap: 36px; }
  .marquee-item { height: 38px; }
}

/* ---------- Feature / USP (compact on desktop) ---------- */
.features { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
.feature { padding: 20px; }
.feature .ic { width:44px;height:44px;border-radius:13px;display:grid;place-items:center;color:#fff;font-size:20px;margin-bottom:12px; }
.feature h3 { font-size:17px; margin-bottom:6px; }
.feature p { color: var(--text-2); font-size:14px; line-height:1.55; }

/* ---------- How it works (compact on desktop) ---------- */
.steps { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; position: relative; }
.step { padding: 22px 20px; text-align:center; position: relative; }
.step .n {
  width: 46px; height:46px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--gradient); color:#fff; display:grid; place-items:center;
  font-family: var(--font-head); font-weight:800; font-size:19px; box-shadow: 0 8px 20px rgba(47,107,237,.3);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }

/* ---------- Country cards ---------- */
.country-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 12px; }
/* ---------- Country cards = HORIZONTAL mini tickets ----------
   Layout: [ flag + country name ]  ¦ tear ¦  [ price stub ]
   The whole card is one horizontal row; a vertical dashed line with punched
   notches top & bottom separates the price stub on the right. */
.country-card {
  overflow: hidden; cursor: pointer; position: relative; isolation: isolate;
  border-radius: 16px;
}
/* standardized flag image — identical box on web & desktop */
.flag-img {
  width: 32px; height: 24px; border-radius: 5px; object-fit: cover;
  display: inline-block; vertical-align: middle;
  box-shadow: 0 2px 6px rgba(16,27,53,.18); background: var(--surface-2);
  border: 1px solid rgba(16,27,53,.08);
}
.flag-img--globe {
  display: inline-grid; place-items: center; color: var(--brand-500);
  font-size: 18px; background: var(--brand-50); border-color: var(--brand-100);
}
.country-flag { font-size: 40px; line-height:1; }
/* horizontal row: info (left, grows) + price stub (right, fixed) */
.country-card .body {
  padding: 10px 0 10px 14px; display:flex; align-items:stretch;
  gap:0; min-height: 58px;
}
/* LEFT: flag + country name, stacked tight */
.country-card .info {
  flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:10px;
  padding-right: 12px;
}
.country-card .info .flag { flex:none; display:inline-flex; }
.country-card .name {
  font-family: var(--font-head); font-weight: 700; font-size:15px;
  line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
/* RIGHT: the detachable price stub, split off by a vertical dashed tear */
.country-card .stub {
  flex:none; position:relative; width: 86px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; padding: 0 8px;
  border-left: 2px dashed var(--border);
}
/* two punched notches on the tear line (top & bottom) */
.country-card .stub::before,
.country-card .stub::after {
  content:''; position:absolute; left: -10px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border);
}
.country-card .stub::before { top: -10px; }
.country-card .stub::after  { bottom: -10px; }
.country-card .from {
  color: var(--text-3); font-size:10px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; line-height:1;
}
.country-card .from.browse { color: var(--brand-600); }
.country-card .price { font-family: var(--font-head); font-weight:800; font-size: 16px; color: var(--brand-600); line-height:1; }

/* ---------- Filters bar ---------- */
.toolbar { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom: 28px; }
.search-inline { flex:1; min-width: 220px; display:flex; align-items:center; gap:10px; background: var(--surface); border:1px solid var(--border); border-radius: 999px; padding: 12px 18px; }
.search-inline input { flex:1; border:none; outline:none; font-size:15px; background:transparent; font-family:inherit; color: var(--text); }
.filter-pills { display:flex; gap:8px; flex-wrap:wrap; }
.pill { padding: 10px 18px; border-radius:999px; font-weight:600; font-size:14px; background: var(--surface); border:1px solid var(--border); color:var(--text-2); transition:.15s; }
.pill:hover { border-color: var(--brand-200); }
.pill.active { background: var(--brand-500); color:#fff; border-color: var(--brand-500); }

/* ---------- Plan / tariff cards — AIRLINE BOARDING-PASS style ---------- */
.plan-grid { display:grid; grid-template-columns: 1fr 1fr 1fr; gap:28px; }

/* Clean, modern pricing card. Scope eyebrow + big data headline on top,
   plan name, short description, included-features list, then price + CTA.
   A thin brand accent bar sits along the top edge. */
.plan {
  position: relative; overflow: hidden;
  padding: 26px 22px 22px;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.34,1.3,.5,1), box-shadow .25s ease, border-color .25s ease;
}
.plan::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }

/* scope label (country / region / global) */
.plan .eyebrow {
  margin: 0 0 12px; align-self: flex-start;
  background: var(--brand-50); color: var(--brand-700);
}
/* big data headline (e.g. "5 GB" / "Unlimited") */
.plan .data {
  font-family: var(--font-head); font-weight: 800;
  font-size: 36px; line-height: 1.05;
  margin: 0 0 4px;
}
.plan .data.text-grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
/* plan name */
.plan .meta {
  color: var(--text); font-size: 16px; font-weight: 700;
  margin: 2px 0 0;
}
/* Short plan description excerpt shown on plan cards. */
.plan .plan-desc {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
}
/* Long-form plan description block on the plan detail page. */
.plan-about {
  max-width: 60ch;
}
.plan-about p:last-child { margin-bottom: 0; }
.plan ul.inc { display:flex; flex-direction:column; gap:10px; margin: 18px 0; padding-top: 18px; border-top: 1px solid var(--border); }
.plan ul.inc li { display:flex; gap:10px; align-items:flex-start; font-size:14px; color: var(--text-2); }
.plan ul.inc li .tick { color: var(--accent-500); font-weight:800; }
/* price + CTA pinned to the bottom so cards of different heights align */
.plan .price {
  font-family: var(--font-head); font-weight: 800; font-size: 30px;
  margin: auto 0 0; color: var(--text);
}
.plan .price::before {
  content: attr(data-label); display:block;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 2px;
}
.plan .btn-block { margin: 16px 0 0; }

/* FEATURED: subtle highlight (brand border + ring) + "popular" pill ribbon */
.plan.featured {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 1px var(--brand-200), var(--shadow);
}
.plan.featured:hover { box-shadow: 0 0 0 1px var(--brand-400), var(--shadow-lg); }
.plan.featured .ribbon {
  position: absolute; z-index: 3; top: 16px; right: 16px;
  background: var(--gradient);
  color: #fff; font-family: var(--font-head); font-weight: 800;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(47,107,237,.35);
}

@media (max-width: 560px) {
  .plan-grid { gap: 20px; }
}

/* ---------- Device compatibility ---------- */
.devices { display:grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
.device { display:flex; align-items:center; gap:10px; padding:12px 16px; background:var(--surface-2); border-radius:12px; font-size:14px; font-weight:600; }

/* ---------- Checkout ---------- */
.checkout-grid { display:grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items:start; }
.form-row { margin-bottom: 18px; }
.form-row label { display:block; font-weight:600; font-size:14px; margin-bottom:7px; }
.input, .select {
  width:100%; padding: 13px 16px; border:1px solid var(--border); border-radius: 12px;
  font-size:15px; font-family:inherit; outline:none; background: var(--surface); color: var(--text); transition: border .15s, box-shadow .15s;
}
.input:focus, .select:focus { border-color: var(--brand-400); box-shadow: var(--ring); }

/* ============================================================
   AUTH PAGES (login / register) — mobile-first split layout
   ============================================================ */
.auth {
  display: grid; grid-template-columns: 1fr;
  min-height: calc(100vh - var(--header-h));
  align-items: stretch;
}
/* FORM side */
.auth-form-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 56px 24px calc(56px + env(safe-area-inset-bottom));
}
.auth-card {
  width: 100%; max-width: 520px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 44px 42px;
}
/* Two-column grid for name/email style rows on wider cards. */
.auth-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .auth-row-2 { grid-template-columns: 1fr; } }
/* ToS / consent checkbox row */
.auth-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--text-2); margin: 2px 0 18px; line-height: 1.5;
}
.auth-consent input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--brand-500); }
.auth-consent a { color: var(--brand-600); font-weight: 700; }
.auth-consent a:hover { text-decoration: underline; }
.auth-card .auth-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-bottom: 20px;
}
.auth-card .auth-logo .logo-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--gradient);
  display: grid; place-items: center; color:#fff; box-shadow: 0 6px 14px rgba(47,107,237,.4);
}
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-2); font-size: 15px; margin-bottom: 22px; }
.auth-alert {
  display: flex; flex-direction: column; gap: 4px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px;
}
.auth-alert p { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
/* floating-ish inputs with leading icon */
.auth-field { position: relative; margin-bottom: 16px; }
.auth-field label { display:block; font-weight:600; font-size:13px; color: var(--text-2); margin-bottom: 7px; }
.auth-field .with-icon { position: relative; }
.auth-field .with-icon > i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 15px; pointer-events: none;
}
.auth-field .input { padding-left: 42px; height: 48px; }
.auth-field .toggle-pw {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 9px; color: var(--text-3);
  display: grid; place-items: center;
}
.auth-field .toggle-pw:hover { background: var(--surface-2); color: var(--text-2); }
.auth-card .btn-lg { height: 50px; margin-top: 6px; }
.auth-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.auth-remember {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 0 14px; font-size: 14px; color: var(--text-2); cursor: pointer;
  user-select: none;
}
.auth-remember input { width: 16px; height: 16px; accent-color: var(--brand-600); cursor: pointer; }
.auth-switch {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border);
  text-align: center; font-size: 14px; color: var(--text-2);
}
.auth-switch a { color: var(--brand-600); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
/* BRAND / benefits side (hidden on mobile) */
.auth-aside { display: none; }
.auth-aside .inner { position: relative; z-index: 1; max-width: 420px; }
.auth-aside .eyebrow { background: rgba(255,255,255,.18); color:#fff; }
.auth-aside h2 { color:#fff; font-size: clamp(26px,2.4vw,34px); margin-bottom: 14px; }
.auth-aside p { color: rgba(255,255,255,.9); font-size: 16px; margin-bottom: 26px; }
.auth-benefits { display:flex; flex-direction:column; gap: 16px; }
.auth-benefits li { display:flex; gap: 14px; align-items:flex-start; color:#fff; }
.auth-benefits .bi {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.16); display:grid; place-items:center; font-size:18px;
}
.auth-benefits b { display:block; font-family: var(--font-head); font-size: 15px; }
.auth-benefits span { font-size: 14px; color: rgba(255,255,255,.82); }

@media (min-width: 860px) {
  .auth { grid-template-columns: 1.05fr .95fr; }
  .auth-aside {
    display: flex; align-items: center; padding: 48px;
    position: relative; overflow: hidden; isolation: isolate;
    background:
      radial-gradient(700px 400px at 80% -10%, rgba(255,255,255,.18), transparent 60%),
      var(--gradient);
  }
  .auth-aside::after {
    content:''; position:absolute; inset:0; z-index:-1; opacity:.5;
    background-image: radial-gradient(rgba(255,255,255,.25) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000, transparent 75%);
  }
  .auth-form-wrap { padding: 48px; }
}
.pay-methods { display:grid; grid-template-columns: repeat(3,1fr); gap:10px; }
.pay-method { padding:14px; border:1px solid var(--border); border-radius:12px; text-align:center; font-weight:700; font-size:14px; cursor:pointer; }
.pay-method.active { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }
.summary-row { display:flex; justify-content:space-between; padding: 10px 0; font-size:15px; }
.summary-row.total { border-top:1px solid var(--border); margin-top:8px; padding-top:16px; font-family:var(--font-head); font-weight:800; font-size:20px; }

/* ---------- Testimonials ---------- */
.testi-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.testi {
  position: relative; overflow: hidden;
  padding:32px 28px 26px; display:flex; flex-direction:column;
  border-radius: var(--radius-lg);
  background: var(--surface); border:1px solid var(--border);
}
/* oversized decorative opening quote */
.testi .quote-mark {
  position:absolute; top:-14px; right:18px;
  font-family: var(--font-head); font-weight:800; font-size:110px; line-height:1;
  background: var(--gradient); -webkit-background-clip:text; background-clip:text;
  color:transparent; opacity:.14; pointer-events:none; user-select:none;
}
.testi .stars { color: var(--amber-500); margin-bottom:14px; font-size:15px; letter-spacing:2px; }
.testi blockquote {
  font-size:16px; color: var(--text); font-weight:500; line-height:1.6;
  margin:0 0 22px; flex:1 0 auto; quotes:'\201C''\201D';
}
.testi blockquote::before { content: open-quote; }
.testi blockquote::after  { content: close-quote; }
.testi .who { display:flex; align-items:center; gap:12px; margin-top:auto; padding-top:16px; border-top:1px solid var(--border); }
.testi .who-meta { display:flex; flex-direction:column; line-height:1.35; }
.testi .who-meta .small i { color: var(--brand-500); margin-right:4px; }
.avatar {
  width:46px;height:46px;border-radius:50%; flex:none;
  display:grid; place-items:center; color:#fff; font-weight:800;
  font-family: var(--font-head); font-size:15px;
  box-shadow: 0 6px 16px rgba(16,27,53,.18);
}

/* ---------- CTA ---------- */
.cta { background: var(--gradient); border-radius: var(--radius-xl); padding: 56px; color:#fff; text-align:center; position:relative; overflow:hidden; }
.cta::before { content:''; position:absolute; inset:0; background: radial-gradient(500px 240px at 80% 0%, rgba(255,255,255,.18), transparent 60%); }
.cta h2 { color:#fff; font-size: clamp(26px,4vw,38px); margin-bottom:14px; }
.cta p { font-size:18px; opacity:.9; max-width:520px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.footer {
  position: relative; isolation: isolate;
  background:
    radial-gradient(1100px 420px at 85% -40%, rgba(47,107,237,.22), transparent 60%),
    radial-gradient(900px 380px at 0% 120%, rgba(34,197,94,.16), transparent 60%),
    linear-gradient(180deg, #0b1630 0%, #0f1b35 100%);
  color: #c7d2e8;
  padding: 64px 0 24px;
  margin: 0;                 /* kill any inherited gap */
}
/* gradient hairline across the very top of the footer */
.footer::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background: var(--gradient); opacity:.9;
}
.footer a { color:#aab7d6; transition: color .18s ease; }
.footer a:hover { color:#fff; }
.footer-grid { display:grid; grid-template-columns: 1.6fr repeat(3,1fr); gap:40px; margin-bottom:40px; }
.footer h4 {
  color:#fff; font-size:13px; margin-bottom:16px;
  text-transform: uppercase; letter-spacing:.08em;
}
.footer ul li { margin-bottom:11px; font-size:14px; }
.footer ul li a { display:inline-flex; align-items:center; gap:8px; }
.footer ul li a::before {
  content:''; width:0; height:1px; background: var(--brand-400);
  transition: width .2s ease;
}
.footer ul li a:hover::before { width:12px; }
.footer .logo { color:#fff; margin-bottom:14px; }
.footer p { color:#9fb0cf; font-size:14px; }
/* social icons as rounded chips */
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.1); padding-top:22px;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:14px; font-size:13px; color:#8a97b4;
}
.footer-bottom a {
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:11px;
  background: rgba(255,255,255,.06); color:#c7d2e8 !important;
  margin-left:0 !important; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.footer-bottom a + a { margin-left:10px !important; }
.footer-bottom a:hover { background: var(--gradient); color:#fff !important; transform: translateY(-3px); }
@media (max-width: 560px) {
  .footer { padding: 48px 0 22px; }
  .footer-bottom { justify-content:center; text-align:center; }
}

/* ============================================================
   DASHBOARD (Admin / Reseller) layout
   ============================================================ */
.app { display:grid; grid-template-columns: 260px 1fr; min-height:100vh; }
.sidebar { background:#0f1b35; color:#c7d2e8; padding: 22px 16px; position: sticky; top:0; height:100vh; overflow:auto; }
.sidebar .logo { color:#fff; margin-bottom: 28px; padding: 0 8px; }
.side-group { margin-bottom: 22px; }
.side-group .label { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#5c6b8c; padding: 0 12px; margin-bottom:8px; }
.side-link { display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:11px; font-weight:600; font-size:14px; color:#aab7d6; cursor:pointer; transition:.15s; }
.side-link:hover { background: rgba(255,255,255,.06); color:#fff; }
.side-link.active { background: var(--gradient); color:#fff; }
.side-link .ic { width:20px; text-align:center; }

.main { background: var(--bg); min-height:100vh; }
.topbar { height:68px; background: var(--surface); border-bottom:1px solid var(--border); display:flex; align-items:center; gap:16px; padding: 0 28px; position: sticky; top:0; z-index:10; }
.topbar h1 { font-size:20px; }
.topbar .spacer { margin-left:auto; }
.content { padding: 28px; }

.stat-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:20px; margin-bottom: 28px; }
.stat { padding:22px; }
.stat .ic { width:46px;height:46px;border-radius:13px;display:grid;place-items:center;color:#fff;font-size:20px;margin-bottom:14px; }
.stat .val { font-family:var(--font-head); font-weight:800; font-size:28px; }
.stat .lbl { color:var(--text-3); font-size:13px; }
.stat .delta { font-size:13px; font-weight:700; margin-top:6px; }
.delta.up { color: var(--accent-600); } .delta.down { color: var(--red-500); }

.panel { background:var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.panel-head h3 { font-size:18px; }

table.data { width:100%; border-collapse: collapse; }
table.data th { text-align:left; font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--text-3); padding:12px 14px; border-bottom:1px solid var(--border); }
table.data td { padding:14px; border-bottom:1px solid var(--border); font-size:14px; }
table.data tr:last-child td { border-bottom:none; }
table.data tr:hover td { background: var(--surface-2); }

/* Simple bar chart */
.bars { display:flex; align-items:flex-end; gap:14px; height:200px; padding-top:10px; }
.bar { flex:1; background: var(--gradient); border-radius:8px 8px 0 0; min-height:6px; position:relative; transition: height .6s ease; }
.bar span { position:absolute; bottom:-24px; left:0; right:0; text-align:center; font-size:12px; color:var(--text-3); }

/* POS tiles */
.pos-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap:14px; }
.pos-tile { padding:18px; text-align:center; cursor:pointer; user-select:none; }
.pos-tile .flag { font-size:34px; } 
.pos-tile .nm { font-weight:800; font-family:var(--font-head); margin-top:6px; }
.pos-tile .pr { color:var(--brand-600); font-weight:700; font-size:14px; }
.pos-tile:active { transform: scale(.97); }

.cart-side { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.cart-item { display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid var(--border); font-size:14px; }

/* QR modal */
.modal-backdrop { position:fixed; inset:0; background:rgba(15,27,53,.55); backdrop-filter: blur(4px); display:grid; place-items:center; z-index:1000; padding:20px; }
.modal { background:var(--surface); border-radius: var(--radius-lg); padding:32px; max-width:420px; width:100%; text-align:center; box-shadow: var(--shadow-lg); }
.qr-box { width:200px;height:200px;margin:18px auto; background:#fff; border:1px solid var(--border); border-radius:16px; padding:10px; }

/* ---------- Auth tabs ---------- */
.auth-note { display:flex; gap:10px; align-items:flex-start; padding:14px 16px; background: var(--brand-50); border-radius:12px; font-size:14px; color: var(--brand-700); }

/* ---------- Social login (Google + Telegram) ---------- */
.social-auth { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
/* "or" divider with hairlines on each side */
.social-sep { display: flex; align-items: center; gap: 14px; color: var(--text-3); font-size: 13px; font-weight: 600; }
.social-sep::before, .social-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
/* generic social button */
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 16px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn-social:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--brand-200); }
.btn-social:active { transform: translateY(0); }
.btn-social .g-ic { display: inline-flex; width: 18px; height: 18px; }
/* Telegram widget iframe sits centered; give it room */
.tg-login { display: flex; justify-content: center; min-height: 46px; }
.tg-login iframe { margin: 0 auto !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap:40px; }
  .hero-visual { order:-1; }
  .features { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left:-280px; width:260px; z-index:200; transition: left .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { left:0; }
  /* Dashboard sidebar toggle only */
  .burger[data-side-toggle] { display:flex; }
}

/* ---------- Public header: desktop header, mobile bar, and drawer ---------- */
.mobile-header { display:none; }
.mobile-nav-backdrop[hidden] { display:none; }
body.nav-open { overflow:hidden; }
.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; }
@media (max-width: 860px) {
  .desktop-header { display:none; }
  .mobile-header { display:block; position:fixed; inset:0 0 auto; z-index:300; height:var(--header-h); background:#fff; border-bottom:1px solid var(--border); }
  .mobile-header-inner { height:var(--header-h); display:flex; align-items:center; gap:10px; }
  .mobile-header .burger { order:1; }
  .mobile-header .logo { order:2; margin-right:auto; }
  .mobile-header-actions { order:3; display:flex; align-items:center; gap:8px; }
  .mobile-account { width:42px; height:42px; display:grid; place-items:center; color:var(--text); border:1px solid var(--border); border-radius:8px; }
  .mobile-nav-backdrop { position:fixed; inset:0; z-index:390; background:rgba(15,27,53,.34); }
  /* keep the bar a single fixed-height row — never wrap (this was causing
     the header to grow tall and scroll vertically on phones) */
  .header-inner { flex-wrap: nowrap; height: var(--header-h); gap: 10px; }
  .header-actions { gap: 6px; margin-left: auto; }
  /* full desktop nav hidden on mobile; use hamburger drawer instead */
  .nav { display: none; }
  /* collapse selectors + auth/CTA buttons into the drawer on mobile */
  .header-actions .selector,
  .header-actions .btn { display: none; }
  /* show the public hamburger button */
  .header .burger, .header-actions .burger { display: inline-flex; }
}
@media (max-width: 420px) {
  .logo { font-size: 18px; }
  .logo-mark { width: 32px; height: 32px; }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .features { grid-template-columns: 1fr; }
  /* ---- Compact USP ("why") + HOW cards on phones ----
     Horizontal, tighter layout so each card takes far less vertical space. */
  .feature {
    padding: 16px;
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 14px;
    align-items: center;
    text-align: left;
  }
  .feature .ic {
    width: 46px; height: 46px; border-radius: 13px;
    font-size: 20px; margin-bottom: 0;
    grid-row: 1 / span 2;
  }
  .feature h3 { font-size: 16px; margin-bottom: 2px; }
  .feature p { font-size: 13.5px; line-height: 1.5; }

  .step {
    padding: 16px 16px 16px 64px;
    text-align: left;
    min-height: 0;
  }
  .step .n {
    position: absolute; left: 16px; top: 16px;
    margin: 0;
    width: 38px; height: 38px; font-size: 16px;
  }
  .step h3 { font-size: 16px; margin-bottom: 4px; }
  .step p { font-size: 13.5px; line-height: 1.5; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 24px; }
  .search-box { flex-direction: column; align-items: stretch; }
  .hero-stats { gap:20px; }
  /* shorter hero + smaller phone mockup on phones.
     Give the hero its own tinted background on mobile so the faint aurora
     (which sits at z-index:-1) never shows the white body behind it as a
     white strip just under the sticky header. */
  .hero {
    padding: 24px 0 40px;
    background:
      radial-gradient(900px 420px at 85% -10%, rgba(8,145,178,.14), transparent 60%),
      radial-gradient(700px 420px at 0% 6%, rgba(47,107,237,.12), transparent 55%),
      var(--bg);
  }
  .hero-grid { gap: 28px; }
  .phone { width: 230px; transform: rotate(2deg); }
  .hero-visual .orbit { width: 270px; height: 270px; }
  .float-badge { padding: 9px 12px; font-size: 12px; }
  /* stack country tickets comfortably, keep them horizontal */
  .country-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile nav off-canvas drawer (SIM-card themed) ---------- */
.mobile-nav {
  position: fixed; top: 0; right: -100%;
  width: min(340px, 86vw); height: 100vh; height: 100dvh;
  background: #ffffff !important; box-shadow: var(--shadow-lg);
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
  z-index: 400; transition: right .32s cubic-bezier(.4,0,.2,1); overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Simple branded drawer header without SIM-card decoration. */
.mobile-nav .mnav-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 52px 14px 0; margin-bottom: 8px;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.mobile-nav .mnav-head .logo-mark { flex: none; }
.mobile-nav .mnav-head b { font-family: var(--font-head); font-size: 16px; }
.mobile-nav .mnav-head small { display:block; color: var(--text-2); font-size:12px; font-weight:500; }
.mobile-nav::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: rgba(16,27,53,.45); opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-nav.open { right: 0; }
.mobile-nav.open::before { opacity: 1; pointer-events: auto; }
.mobile-nav .close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text); background: var(--surface-2);
  z-index: 2;
}
.mobile-nav .close:hover { background: var(--brand-50); color: var(--brand-700); }
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 12px; font-weight: 600; font-size: 15px;
  border-radius: 12px; color: var(--text);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.mobile-nav a:not(.btn) i { width: 20px; text-align: center; color: var(--brand-500); }
.mobile-nav a:not(.btn):hover { background: var(--brand-50); color: var(--brand-700); transform: translateX(3px); }
.mobile-nav a.btn { margin-top: 6px; }
/* language + currency row inside the drawer */
.mobile-nav .mnav-selectors {
  display: flex; gap: 8px; margin: 10px 0 4px;
}
.mobile-nav .mnav-selectors .selector { flex: 1; position: relative; }
.mobile-nav .mnav-selectors .selector-btn {
  width: 100%; justify-content: center;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 11px;
}
.mobile-nav .mnav-sep { height: 1px; background: var(--border); margin: 6px 0; }

/* ============================================================
   DESIGN UPGRADE LAYER
   scroll reveal · aurora hero · glass · micro-interactions
   ============================================================ */

body, .card, .panel, .header, .input, .select, .pill, .search-inline, .search-box, .device, .cart-side { transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity:1 !important; transform:none !important; transition:none; }
  .float-badge, .aurora, .orbit { animation: none !important; }
}

/* ---------- Aurora hero background ---------- */
/* Give the hero its own base tint so the gradient/aurora layers (which sit at
   z-index:-1, i.e. behind the element) never reveal the white page background
   as a strip at the very top — most visible on mobile. */
.hero { padding-top: 56px; background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); }
.hero .aurora {
  position:absolute; inset:-20% -10% auto -10%; height:120%; z-index:-1; filter: blur(60px); opacity:.55; pointer-events:none;
}
.hero .aurora span { position:absolute; border-radius:50%; mix-blend-mode: multiply; }
.hero .aurora .a1 { width:420px; height:420px; left:4%; top:0; background: radial-gradient(circle, var(--brand-500), transparent 70%); animation: drift 16s ease-in-out infinite; }
/* a3 keeps accent-500 (emerald) which complements the new teal/green palette */
.hero .aurora .a2 { width:380px; height:380px; right:6%; top:-6%; background: radial-gradient(circle, var(--brand-400), transparent 70%); animation: drift 20s ease-in-out infinite reverse; }
.hero .aurora .a3 { width:300px; height:300px; left:40%; top:30%; background: radial-gradient(circle, var(--accent-500), transparent 70%); animation: drift 24s ease-in-out infinite; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.1); }
  66% { transform: translate(-30px,20px) scale(.95); }
}
/* subtle dot grid overlay */
.hero::after {
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 26px 26px; opacity:.5;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

/* orbit ring behind phone */
.hero-visual .orbit {
  position:absolute; width:360px; height:360px; border:1.5px dashed var(--border); border-radius:50%;
  z-index:-1; animation: spin 40s linear infinite;
}
.hero-visual .orbit::before, .hero-visual .orbit::after {
  content:''; position:absolute; width:14px; height:14px; border-radius:50%; background: var(--gradient);
}
.hero-visual .orbit::before { top:-7px; left:calc(50% - 7px); }
.hero-visual .orbit::after { bottom:-7px; left:calc(50% - 7px); background: var(--gradient-accent); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Glass + gradient utilities ---------- */
.glass {
  background: rgba(255,255,255,.6); backdrop-filter: blur(16px) saturate(140%);
  border:1px solid rgba(255,255,255,.5);
}
.text-grad { background: var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* animated gradient on hero headline accent */
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-500), var(--violet-500), var(--pink-500), var(--brand-400));
  background-size: 300% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation: hue 8s ease infinite;
}
@keyframes hue { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

/* ---------- Button shine ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content:''; position:absolute; top:0; left:-120%; width:60%; height:100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover::after { left:140%; }

/* ---------- Nicer country cards ---------- */
.country-card { position: relative; isolation: isolate; }
.country-card .body { position: relative; }
.country-card::before {
  content:''; position:absolute; inset:0; z-index:-1; opacity:0;
  background: linear-gradient(160deg, var(--brand-50), transparent 60%);
  transition: opacity .25s ease;
}
.country-card:hover::before { opacity:1; }
.country-card .country-flag {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(0 6px 10px rgba(16,27,53,.15));
}
.country-card:hover .country-flag { transform: scale(1.18) rotate(-6deg); }

/* feature icon pop */
.feature .ic, .step .n, .stat .ic { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.card-hover:hover .ic, .step.card-hover:hover .n { transform: translateY(-4px) scale(1.06); }

/* step connector line (desktop) */
@media (min-width: 981px) {
  .steps::before {
    content:''; position:absolute; top:60px; left:16%; right:16%; height:2px;
    background: repeating-linear-gradient(90deg, var(--brand-200) 0 10px, transparent 10px 20px);
    z-index:0;
  }
  .step { z-index:1; }
}

/* section headings gradient underline */
.section-title { position: relative; }

/* testimonials: gradient top accent bar + hover lift */
.testi::before { content:''; position:absolute; left:0; right:0; top:0; height:4px; background: var(--gradient); }
.testi { transition: transform .25s cubic-bezier(.34,1.3,.5,1), box-shadow .25s ease; }
.testi:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-200); }
.testi:hover .quote-mark { opacity:.22; }

/* ---------- Marquee for trust strip ---------- */
.trust { position: relative; }

/* ---------- Sidebar active glow (dashboards) ---------- */
.side-link.active { box-shadow: 0 8px 20px rgba(47,107,237,.4); }

/* bar chart hover tooltip-ish */
.bar { cursor: pointer; }
.bar:hover { filter: brightness(1.1); }
.bar::after {
  content: attr(data-h) '%'; position:absolute; top:-26px; left:50%; transform: translateX(-50%) scale(.8);
  background: var(--text); color:#fff; font-size:11px; font-weight:700; padding:2px 7px; border-radius:6px;
  opacity:0; transition: opacity .2s, transform .2s; pointer-events:none;
}
.bar:hover::after { opacity:1; transform: translateX(-50%) scale(1); }

/* scroll progress bar */
#scrollProgress {
  position: fixed; top:0; left:0; height:3px; width:0; z-index:300;
  background: var(--gradient); box-shadow: 0 0 10px rgba(47,107,237,.6);
  transition: width .1s linear;
}

/* nicer focus ring everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, .pill:focus-visible { outline:none; box-shadow: var(--ring); border-radius: 10px; }

/* back-to-top */
#toTop {
  /* Stack ABOVE the support chat launcher (.support-fab: bottom ~80px, 60px
     tall -> its top edge sits near 140px) so the two round floating controls
     never overlap. 150px clears the FAB with a small gap. */
  position: fixed; right:22px; bottom:150px; width:46px; height:46px; border-radius:50%;
  background: var(--gradient); color:#fff; font-size:20px; display:grid; place-items:center;
  box-shadow: var(--shadow); opacity:0; transform: translateY(14px); pointer-events:none;
  transition: opacity .3s, transform .3s; z-index:360;
}
#toTop.show { opacity:1; transform: none; pointer-events:auto; }
#toTop:hover { transform: translateY(-3px) scale(1.06); }

/* On small screens the FAB label wraps a bit taller — give the toTop a little
   more clearance so they never touch. */
@media (max-width: 600px) {
  /* Keep clear of the chat launcher on phones too (FAB bottom ~76px + 60px). */
  #toTop { bottom: 146px; right: 18px; }
}

/* ============================================================
   FontAwesome icon helpers + extra polish
   ============================================================ */

/* generic icon color helper for inline FA icons */
.fa-ic { line-height: 1; }

/* colored circular icon tile (feature/stat/float badges use .ic) */
.feature .ic i, .stat .ic i, .float-badge .ic i, .step .n i { font-size: .92em; }

/* sidebar / selector / nav inline icons */
.side-link .ic i { font-size: 15px; }
.selector-btn i, .nav a i, .btn i { font-size: .95em; }

/* country-card flag now rendered as FA globe/marker — keep sizing consistent */
.country-flag i, .pos-tile .flag i { color: var(--brand-500); }

/* status dot icon */
.chip i.dot-online { color: var(--accent-500); }

/* checklist ticks */
.plan ul.inc li .tick i { color: var(--accent-500); }

/* ---------- Smoother global polish ---------- */
html { scroll-behavior: smooth; }
::selection { background: var(--brand-100); color: var(--brand-700); }

/* gentler, consistent easing for interactive elements */
.card, .btn, .pill, .side-link, .pos-tile, .pay-method, .country-card, .selector-btn, .search-tab, .device {
  transition: transform .25s cubic-bezier(.34,1.3,.5,1), box-shadow .25s ease, background .25s ease, border-color .25s ease, color .2s ease;
}

/* lift hover on panels & interactive cards for depth */
.pay-method:hover { border-color: var(--brand-200); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.device:hover { background: var(--brand-50); transform: translateY(-2px); }
.selector-menu button, .side-link { transition: background .2s ease, color .2s ease, transform .2s ease; }

/* animated section-title gradient underline for extra beauty */
.section.center .section-title::after,
.section-title[data-underline]::after {
  content:''; display:block; width:64px; height:4px; margin:14px auto 0;
  border-radius:999px; background: var(--gradient);
}

/* soft entrance for modals */
.modal-backdrop { animation: fadeIn .25s ease; }
.modal { animation: popIn .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes popIn { from { opacity:0; transform: translateY(14px) scale(.96) } to { opacity:1; transform:none } }

/* table rows subtle entrance polish on hover already handled; add focus ring on inputs */
.input:hover, .select:hover { border-color: var(--brand-200); }

/* nicer topbar status chip */
.topbar .chip { font-weight:700; }

/* ---------- Smoother design polish layer ---------- */
.card, .panel { transition: transform .2s ease, box-shadow .2s ease; }
.card.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.nav a i, .side-link .ic i, .btn i, .selector-btn i, .chip i { vertical-align: -0.08em; }

/* reduce-motion safety for new animations */
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   PARTNER PROGRAM & APPLICATION
   ============================================================ */
.partner-hero { padding: 88px 0 72px; background: radial-gradient(circle at 85% 20%, var(--brand-100), transparent 34%), linear-gradient(180deg, #fff, var(--bg)); }
.partner-hero-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap:56px; align-items:center; }
.partner-hero h1 { font-size:clamp(38px,6vw,68px); max-width:780px; margin-bottom:20px; }
.partner-lead { color:var(--text-2); font-size:20px; max-width:700px; }
.partner-hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin:28px 0 18px; }
.partner-fine { display:flex; gap:9px; color:var(--text-2); font-size:13px; max-width:680px; }
.partner-fine i { color:var(--brand-500); margin-top:4px; }
.partner-hero-panel { padding:24px; border:1px solid var(--border); border-radius:var(--radius-xl); background:rgba(255,255,255,.88); box-shadow:var(--shadow-lg); }
.partner-hero-panel > div { display:flex; gap:16px; align-items:center; padding:18px; border-radius:var(--radius); }
.partner-hero-panel > div + div { border-top:1px solid var(--border); }
.partner-hero-panel i { width:46px; height:46px; flex:none; display:grid; place-items:center; border-radius:14px; color:#fff; background:var(--gradient); }
.partner-hero-panel b, .partner-benefit-list b, .partner-checklist b { display:block; font-family:var(--font-head); color:var(--text); }
.partner-section-head { margin-bottom:36px; }
.partner-model-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.partner-model-card { padding:28px; }
.partner-card-icon { width:52px; height:52px; display:grid; place-items:center; border-radius:15px; color:#fff; background:var(--gradient); margin-bottom:18px; }
.partner-model-card h3 { font-size:21px; margin-bottom:10px; }
.partner-model-card p { color:var(--text-2); }
.partner-model-card ul { margin-top:18px; display:grid; gap:9px; }
.partner-model-card li { position:relative; padding-left:20px; color:var(--text-2); font-size:14px; }
.partner-model-card li::before { content:'✓'; position:absolute; left:0; color:var(--accent-600); font-weight:800; }
.partner-soft-section { background:var(--surface-2); }
.partner-two-col { display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:start; }
.partner-benefit-list { display:grid; gap:14px; margin-top:28px; }
.partner-benefit-list > div { display:flex; gap:15px; padding:18px; background:#fff; border:1px solid var(--border); border-radius:var(--radius); color:var(--text-2); }
.partner-benefit-list i { color:var(--brand-500); font-size:20px; margin-top:3px; }
.partner-expectations { padding:30px; border-radius:var(--radius-lg); background:#0f1b35; color:rgba(255,255,255,.78); }
.partner-expectations h3 { color:#fff; font-size:24px; margin-bottom:20px; }
.partner-expectations ul { display:grid; gap:16px; }
.partner-expectations li { display:flex; gap:11px; }
.partner-expectations i { color:var(--accent-400); margin-top:5px; }
.partner-process { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.partner-process article { padding:24px; border:1px solid var(--border); border-radius:var(--radius); background:#fff; }
.partner-process article > span { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:var(--brand-50); color:var(--brand-700); font-weight:800; margin-bottom:15px; }
.partner-process h3 { font-size:18px; margin-bottom:7px; }
.partner-process p { color:var(--text-2); font-size:14px; }
.partner-cta { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:36px; border-radius:var(--radius-xl); background:linear-gradient(120deg,#0f1b35,#1740ad); color:rgba(255,255,255,.8); }
.partner-cta h2 { color:#fff; margin-bottom:7px; }
.partner-apply-layout { display:grid; grid-template-columns:.75fr 1.25fr; gap:48px; align-items:start; }
.partner-apply-intro { position:sticky; top:100px; }
.partner-apply-intro h1 { font-size:clamp(32px,4vw,48px); margin-bottom:16px; }
.partner-apply-intro > p { color:var(--text-2); font-size:17px; }
.partner-checklist { display:grid; gap:16px; margin:28px 0; }
.partner-checklist li { display:flex; gap:12px; color:var(--text-2); }
.partner-checklist i { color:var(--accent-500); margin-top:5px; }
.text-link { color:var(--brand-600); font-weight:700; }
.partner-form-card { padding:34px; background:#fff; border:1px solid var(--border); border-radius:var(--radius-xl); box-shadow:var(--shadow); }
.partner-form-card > h2 { font-size:28px; margin-bottom:5px; }
.partner-form-card > .muted { margin-bottom:24px; }
.partner-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }
.partner-models { border:0; margin:0 0 24px; }
.partner-models legend { font-weight:700; margin-bottom:10px; }
.partner-models { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.partner-models legend { grid-column:1/-1; }
.partner-model-option input { position:absolute; opacity:0; pointer-events:none; }
.partner-model-option span { min-height:86px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:12px; border:1px solid var(--border); border-radius:14px; cursor:pointer; text-align:center; }
.partner-model-option input:checked + span { border-color:var(--brand-500); background:var(--brand-50); box-shadow:var(--ring); }
.partner-model-option i { color:var(--brand-500); font-size:20px; }
.partner-location-fields { padding:20px; margin:4px 0 20px; border-radius:var(--radius); background:var(--surface-2); }
.partner-location-fields h3 { font-size:17px; margin-bottom:14px; }
.partner-form-foot { text-align:center; color:var(--text-2); font-size:14px; margin-top:16px; }
.partner-form-foot a, .partner-status-card a { color:var(--brand-600); font-weight:700; }
.partner-status-card { max-width:720px; margin:auto; padding:44px; text-align:center; background:#fff; border:1px solid var(--border); border-radius:var(--radius-xl); box-shadow:var(--shadow); }
.partner-status-icon { width:72px; height:72px; display:grid; place-items:center; margin:0 auto 18px; border-radius:50%; background:var(--brand-50); color:var(--brand-600); font-size:28px; }
.partner-status-card h1 { font-size:36px; margin-bottom:16px; text-transform:capitalize; }
.partner-status-card > p { color:var(--text-2); margin-top:12px; }
.partner-success { padding:14px; margin:16px 0; border-radius:12px; background:#ecfdf5; color:#047857; }
.partner-status-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin:28px 0 18px; }
.partner-status-help { font-size:14px; }
.partner-login-links { margin-top:18px; text-align:center; color:var(--text-2); font-size:13px; line-height:1.7; }
.partner-login-links a { color:var(--brand-600); font-weight:700; }
@media (max-width:900px) {
  .partner-hero-grid, .partner-two-col, .partner-apply-layout { grid-template-columns:1fr; }
  .partner-model-grid { grid-template-columns:1fr; }
  .partner-process { grid-template-columns:1fr 1fr; }
  .partner-apply-intro { position:static; }
}
@media (max-width:600px) {
  .partner-hero { padding:52px 0; }
  .partner-process, .partner-form-grid, .partner-models { grid-template-columns:1fr; }
  .partner-models legend { grid-column:auto; }
  .partner-form-card, .partner-status-card { padding:24px 18px; }
  .partner-cta { align-items:flex-start; flex-direction:column; padding:28px 22px; }
}

/* ============================================================
   PAYMENTS PAGE
   ============================================================ */
.pay-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-method { padding: 26px; }
.pay-method-head { display:flex; gap:16px; align-items:flex-start; margin-bottom:18px; }
.pay-method-head h2 { font-size: 20px; margin-bottom: 4px; }
.pay-ic {
  flex:none; width:52px; height:52px; border-radius:14px; display:grid; place-items:center;
  font-size:22px; color:#fff; background: var(--gradient); box-shadow: 0 8px 18px rgba(47,107,237,.35);
}
.pay-ic-crypto { background: linear-gradient(120deg,#f7931a,#f59e0b); box-shadow: 0 8px 18px rgba(245,158,11,.35); }
.pay-logos { display:flex; flex-wrap:wrap; gap:12px; margin: 4px 0 18px; }
.pay-logo {
  display:inline-flex; align-items:center; gap:7px; padding:10px 14px; border-radius:12px;
  background: var(--surface-2); border:1px solid var(--border); font-size:26px; color: var(--text);
}
.pay-logo small { font-size:12px; font-weight:700; color: var(--text-2); }

/* ---------- Trust, FAQ, payments and consent ---------- */
.payment-badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.payment-badges span { display:inline-flex; align-items:center; gap:6px; padding:7px 9px; border:1px solid rgba(255,255,255,.18); border-radius:8px; font-size:12px; color:rgba(255,255,255,.86); }
.payment-badges i { font-size:18px; color:#fff; }
.cookie-banner { position:fixed; left:20px; right:20px; bottom:20px; z-index:500; max-width:920px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 20px; background:#fff; color:var(--text); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-lg); }
.cookie-banner[hidden] { display:none; }
.cookie-banner p { margin:3px 0 0; color:var(--text-2); font-size:14px; }
.cookie-actions { display:flex; gap:8px; flex:none; }
.faq-list { max-width:820px; margin:28px auto 0; display:grid; gap:12px; }
.faq-list details { background:#fff; border:1px solid var(--border); border-radius:14px; padding:0 18px; box-shadow:var(--shadow-sm); }
.faq-list summary { cursor:pointer; list-style:none; padding:18px 30px 18px 0; font-family:var(--font-head); font-weight:700; position:relative; }
.faq-list summary::after { content:'+'; position:absolute; right:0; color:var(--brand-600); font-size:22px; }
.faq-list details[open] summary::after { content:'−'; }
.faq-list details p { color:var(--text-2); padding:0 0 18px; }
.hero-trust { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 18px; margin-top:18px; color:var(--text-2); font-size:14px; font-weight:600; }
.hero-trust i { color:var(--accent-600); margin-right:5px; }
@media (max-width:640px) { .cookie-banner { align-items:stretch; flex-direction:column; } .cookie-actions { width:100%; } .cookie-actions .btn { flex:1; } }

/* Structural header/footer alignment: final cascade */
.footer-desktop { display:grid; grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(150px,1fr)); gap:48px; }
.footer-brand p { max-width:300px; }
.footer-column h2 { margin-bottom:18px; color:#fff; font-size:15px; }
.footer-column ul { list-style:none; display:grid; gap:11px; }
.footer-mobile { display:none; }
.footer-socials { display:flex; gap:14px; }
.mobile-destination-search { margin:8px 0 4px; }
.mobile-destination-search .field { position:relative; display:flex; align-items:center; gap:10px; min-height:48px; padding:0 14px; background:#fff; border:1px solid var(--border); border-radius:10px; }
.mobile-destination-search input { width:100%; border:0; outline:0; background:#fff; color:var(--text); }
.mobile-destination-search .search-suggest { top:calc(100% + 6px); left:0; right:0; }
.mobile-nav-links { display:grid; gap:4px; }
@media (max-width:860px) {
  .mobile-nav { left:-100%; right:auto; transition:left .28s ease; background:#fff !important; }
  .mobile-nav.open { left:0; right:auto; }
  .mobile-nav::before { display:none; }
  .footer-desktop { display:none; }
  .footer-mobile { display:block; }
  .footer-mobile-brand { padding-bottom:20px; }
  .footer-mobile-brand p { margin-top:10px; }
  .footer-group { border-top:1px solid rgba(255,255,255,.16); }
  .footer-group button { width:100%; display:flex; align-items:center; justify-content:space-between; padding:18px 0; border:0; background:transparent; color:#fff; font:700 15px var(--font-head); text-align:left; }
  .footer-group button i { transition:transform .2s ease; }
  .footer-group button[aria-expanded="true"] i { transform:rotate(180deg); }
  .footer-group ul { list-style:none; display:grid; gap:12px; padding:0 0 18px; }
  .footer-group ul[hidden] { display:none; }
}

/* Public-site redesign: focused final cascade */
:root { --bg:#fff; --surface:#fff; --surface-2:#f4f7ff; --border:#dfe7f5; --text:#102044; --text-2:#52617d; --brand-500:#2463eb; --brand-600:#174fd1; --radius-sm:8px; --radius:14px; --radius-lg:20px; --radius-xl:24px; --header-h:76px; }
body { background:#fff; color:var(--text); }
.header { position:fixed; inset:0 0 auto; z-index:300; height:var(--header-h); background:#fff; border-bottom:1px solid var(--border); box-shadow:0 4px 18px rgba(16,32,68,.05); }
.header-inner { min-height:var(--header-h); }
main { padding-top:var(--header-h); }
.nav { gap:26px; }
.nav a { color:var(--text); font-weight:600; }
.selector-btn,.selector-menu,.selector-menu a { background:#fff; }
.selector-btn { border:1px solid var(--border); border-radius:8px; }
.btn { border-radius:9px; }
.btn-primary { background:var(--brand-600); box-shadow:none; }
.btn-primary:hover { background:#123fa9; }
.hero { padding:88px 0 76px; background:linear-gradient(135deg,#f7faff 0%,#fff 58%,#edf4ff 100%); }
.hero-grid { align-items:center; gap:64px; }
.hero-copy h1 { max-width:720px; font-size:clamp(38px,4.2vw,48px); line-height:1.08; letter-spacing:-.035em; }
.hero-copy .lead { max-width:620px; font-size:18px; line-height:1.7; }
.hero-search-card { background:#fff; border:1px solid var(--border); border-radius:20px; padding:28px; box-shadow:0 24px 60px rgba(23,79,209,.12); }
.hero-search-card .field,.hero-search-card input { background:#fff; }
.hero-search-card .field { border:1px solid #cfdaf0; border-radius:10px; }
.hero-search-card .btn { min-height:50px; }
.section { padding:88px 0; }
.section:nth-of-type(even) { background:#f7f9fd; }
.card,.usp-card,.step,.testimonial,.faq-list details { border-radius:16px; background:#fff; border:1px solid var(--border); box-shadow:0 8px 28px rgba(16,32,68,.06); }
.footer { padding-top:72px; }
.footer-grid { gap:48px; }
.burger { width:42px; height:42px; padding:10px; border:1px solid var(--border); border-radius:8px; background:#fff; }
.burger span { display:block; width:20px; height:2px; margin:4px auto; border-radius:0; background:var(--text); }
.mobile-nav { background:#fff !important; color:var(--text); box-shadow:18px 0 50px rgba(16,32,68,.16); }
.mobile-nav,.mobile-nav * { -webkit-tap-highlight-color:transparent; }
.mobile-nav .close { background:#fff !important; color:var(--text); border:1px solid var(--border); border-radius:8px; }
.mobile-nav a,.mobile-nav .mnav-head,.mobile-nav .mnav-selectors,.mobile-nav .selector,.mobile-nav .selector-btn,.mobile-nav .selector-menu,.mobile-nav .selector-menu a { background:#fff !important; }
.mobile-nav a { border-radius:8px; }
.mobile-nav a:hover,.mobile-nav a:focus-visible { background:#fff !important; color:var(--brand-600); }
@media (max-width:900px) {
  :root { --header-h:64px; }
  .header { height:64px; }
  .header-inner { min-height:64px; }
  main { padding-top:64px; }
  .hero { padding:58px 0 54px; }
  .hero-grid { gap:34px; }
  .hero-copy h1 { font-size:clamp(32px,9vw,36px); }
  .hero-copy .lead { font-size:16px; }
  .hero-search-card { padding:20px; }
  .section { padding:64px 0; }
  /* Off-canvas on the LEFT; stays hidden until .open (was pinned open). */
  .mobile-nav { top:0; bottom:0; right:auto; left:calc(min(88vw,360px) * -1); width:min(88vw,360px); border-radius:0; transition:left .32s cubic-bezier(.4,0,.2,1); }
  .mobile-nav.open { left:0; right:auto; }
}

/* ============================================================
   FIND A DEALER PAGE
   ============================================================ */
.dealer-map {
  width:100%; height: 420px; border-radius: var(--radius-lg);
  border:1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 28px; overflow:hidden;
  background: var(--surface-2); z-index: 0;
}
/* Find-a-dealer country search box */
.dealer-search {
  position: relative; display: flex; align-items: center;
  margin: 0 0 18px; max-width: 460px;
}
.dealer-search i {
  position: absolute; left: 16px; color: var(--text-3); font-size: 15px; pointer-events: none;
}
.dealer-search input {
  width: 100%; padding: 13px 16px 13px 42px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text); font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.dealer-search input:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); }
.dealer-noresults { color: var(--text-2); margin: 0 0 18px; }

.dealer-countries { display:grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 18px; }
.dealer-country { padding: 20px 22px; }
.dealer-country-head {
  display:flex; align-items:center; gap:10px; font-size:18px; margin-bottom:14px;
  padding-bottom:12px; border-bottom:1px solid var(--border);
}
.dealer-country-head .badge {
  margin-left:auto; background: var(--brand-100); color: var(--brand-700);
  border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight:700;
}
.dealer-list { display:flex; flex-direction:column; gap:16px; }
.dealer-list li { list-style:none; }
.dealer-name { font-weight:700; font-size:15px; display:flex; gap:8px; align-items:center; }
.dealer-name i { color: var(--brand-600); }
.dealer-meta { display:flex; flex-direction:column; gap:4px; margin-top:6px; font-size:13.5px; color: var(--text-2); }
.dealer-meta i { width: 16px; color: var(--text-3); }
.dealer-meta a { color: var(--brand-600); }
.dealer-meta a:hover { text-decoration: underline; }
.dealer-cta {
  margin-top: 30px; padding: 26px 28px; display:flex; align-items:center; justify-content:space-between;
  gap: 20px; flex-wrap: wrap; background: var(--surface-2);
}
.dealer-cta h2 { font-size: 20px; }

/* ---------- Public conversion and control consistency ---------- */
.hero {
  padding: clamp(64px, 8vw, 104px) 0 clamp(68px, 8vw, 96px);
  background:
    radial-gradient(circle at 12% 18%, rgba(47,107,237,.12), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(34,211,238,.12), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 72%, #fff 100%);
}
.hero::before { opacity: .55; }
.hero-copy { position: relative; z-index: 2; }
.hero-single .hero-copy { max-width: 900px; }
.hero h1 {
  max-width: 760px; margin-left: auto; margin-right: auto;
  font-size: clamp(28px, 3.7vw, 44px); line-height: 1.14; letter-spacing: -.035em;
}
.hero p.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.7; }
.hero-single p.lead { max-width: 680px; }
.hero-single .search-tabs { margin-top: 8px; }
.hero-single .search-box { max-width: 720px; }
.search-tabs { gap: 10px; margin-bottom: 12px; }
.search-tab { border-radius: 10px; padding: 10px 18px; }
.search-box {
  border-radius: 18px; border-color: rgba(191,211,254,.9); padding: 10px;
  box-shadow: 0 28px 70px rgba(30,82,214,.14), 0 8px 24px rgba(16,27,53,.08);
}
.search-box .field { min-height: 54px; }
.search-box .btn { border-radius: 10px; min-height: 50px; padding: 14px 28px; }
.hero-trust { margin-top: 20px; }
.hero-stats { margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(191,211,254,.7); }
.hero-single .hero-stats { width: min(100%, 680px); justify-content: space-around; }
.hero-stats > div { min-width: 120px; }
.hero--has-photo .hero-copy { text-align: left; }
.hero--has-photo .hero-photo img { box-shadow: 0 30px 80px rgba(16,27,53,.2); }

main > .section { padding-block: clamp(64px, 8vw, 96px); }
main > .section:nth-of-type(even) { background: linear-gradient(180deg, rgba(246,248,252,.72), rgba(255,255,255,.9)); }
.country-card, .feature, .step, .testi { border-color: rgba(230,235,244,.9); box-shadow: 0 10px 30px rgba(16,27,53,.055); }

button, .btn, .selector-btn, .search-tab, .search-box .btn,
.auth-card button, .social-btn, .pay-method, .pay-logo,
.mobile-nav .btn, .back-to-top, #backToTop, .toast,
.cookie-actions button, .suggest-item { border-radius: 10px; }

.burger, .burger:hover, .burger:focus, .burger:focus-visible,
.burger:active, .burger.is-open {
  width: 44px; height: 40px; border-radius: 10px;
  background: #fff; background-image: none; color: var(--text) !important;
}
.burger:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 2px; }
.burger { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid var(--border); }
.burger span,
.burger span::before,
.burger span::after,
.burger.is-open span,
.burger.is-open span::before,
.burger.is-open span::after {
  position: static; display: block; width: 20px; height: 2px;
  border-radius: 2px; background: var(--text); content: normal;
  transform: none; opacity: 1; transition: none;
}
.mobile-nav,
.mobile-nav.open,
.mobile-nav .mnav-head,
.mobile-nav .mnav-selectors,
.mobile-nav .selector,
.mobile-nav .selector-menu {
  background-color: #fff !important;
  background-image: none !important;
}
@media (max-width: 900px) { .burger { display: flex; } }

@media (max-width: 640px) {
  .hero { padding: 52px 0 64px; }
  .hero h1 { max-width: 620px; font-size: clamp(28px, 8.5vw, 36px); line-height: 1.16; }
  .search-box { border-radius: 12px; padding: 8px; }
  .search-box .field, .search-box .btn { width: 100%; }
  .hero-stats { gap: 18px; }
  .hero-stats > div { flex: 1 1 90px; }
}

/* ============================================================
   Public homepage redesign — final cascade
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(230,235,244,.9);
  box-shadow: none; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header-inner { height: 68px; gap: 20px; }
.nav { gap: 20px; margin-left: 18px; }
.nav a { font-size: 14px; letter-spacing: -.01em; }
.header-actions { gap: 8px; }
.header-actions > .btn-primary { border-radius: 8px; box-shadow: none; }

.hero {
  padding: clamp(72px, 8vw, 108px) 0;
  background: linear-gradient(135deg, #f8faff 0%, #fff 58%, #f3f7ff 100%);
  border-bottom: 1px solid var(--border);
}
.hero::before, .hero::after, .hero .aurora { display: none; }
.hero-grid { grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); gap: clamp(48px, 7vw, 88px); }
.hero-copy { text-align: left; }
.hero h1 { max-width: 650px; margin: 18px 0; font-size: clamp(36px, 4.2vw, 48px); line-height: 1.08; }
.hero p.lead { max-width: 590px; margin: 0 0 28px; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-height: 50px; border-radius: 8px; }
.hero-trust { justify-content: flex-start; margin-top: 26px; gap: 10px 20px; font-size: 13px; }
.hero-product { position: relative; }
.hero-search-card { padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 50px rgba(15,27,53,.09); }
.hero-search-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.hero-search-head strong, .hero-search-head small { display: block; }
.hero-search-head strong { font-family: var(--font-head); font-size: 18px; }
.hero-search-head small { margin-top: 3px; color: var(--text-2); }
.hero-search-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--brand-600); }
.hero-search-card .search-box { max-width: none; margin: 0; border-radius: 12px; box-shadow: none; background: #f8faff; }
.hero-product-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; font-weight: 600; }
.hero-product-meta i { color: var(--brand-600); margin-right: 6px; }
.hero-photo { margin-bottom: 14px; }
.hero-photo img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); box-shadow: none; }

main > .container:has(.trust), main > .container:has(.marquee) { padding-top: 28px; padding-bottom: 28px; }
.trust, .marquee { border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: none; }
main > .section { padding-block: clamp(56px, 6vw, 88px); }
main > .section:nth-of-type(even) { background: #f8faff; }
.section-title { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; margin-bottom: 12px; }
.section-sub { font-size: 17px; line-height: 1.65; }
.card, .feature, .step, .testi, .faq-list details { border-radius: 12px; box-shadow: 0 4px 18px rgba(15,27,53,.045); }
.feature { padding: 22px 20px; }
.step { padding: 24px; }
.feature .ic, .step .n { border-radius: 11px; box-shadow: none; }
.feature:hover, .step:hover, .testi:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,27,53,.08); }
.faq-list { gap: 10px; }
.faq-list details { box-shadow: none; }
.cta { border-radius: 14px; padding: clamp(42px, 6vw, 68px); background: #1740ad; }
.cta::before { display: none; }
.footer { padding-top: 64px; }
.footer-grid { gap: 48px; }

.burger, .burger:hover, .burger:active, .burger.is-open { background: #fff !important; box-shadow: none; transform: none; color: var(--text); }
.burger span { background: var(--text); }
.burger, .mobile-nav .close, .mobile-nav a, .mobile-nav button, .mobile-nav .selector-btn { -webkit-tap-highlight-color: transparent; }
.mobile-nav { background: #fff !important; box-shadow: -18px 0 50px rgba(15,27,53,.12); }
.mobile-nav::before { background: rgba(15,27,53,.28); }
.mobile-nav .close, .mobile-nav .close:hover, .mobile-nav .close:active,
.mobile-nav a:not(.btn), .mobile-nav a:not(.btn):hover, .mobile-nav a:not(.btn):active,
.mobile-nav .selector-btn, .mobile-nav .selector-btn:hover, .mobile-nav .selector-menu,
.mobile-nav .selector-menu a, .mobile-nav .selector-menu a:hover,
.mobile-nav .mnav-head, .mobile-nav .mnav-selectors {
  background: #fff !important; background-image: none !important; box-shadow: none;
}
.mobile-nav .close { border: 0; color: var(--text); }
.mobile-nav a:not(.btn):hover { color: var(--brand-700); transform: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero h1, .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-product { width: min(100%, 680px); margin: auto; }
}
@media (max-width: 640px) {
  .header-inner { height: 62px; }
  .hero { padding: 52px 0 64px; }
  .hero h1 { font-size: clamp(30px, 9vw, 36px); }
  .hero p.lead { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-search-card { padding: 18px; }
  .hero-product-meta { align-items: flex-start; flex-direction: column; }
  main > .section { padding-block: 64px; }
  .features, .steps, .testi-grid { gap: 14px; }
  .cta { padding: 40px 22px; }
}

/* Precision homepage pass: measured against the saved local reference. */
:root { --maxw: 1140px; --header-h: 72px; }
.container { width: min(100% - 32px, var(--maxw)); }
.desktop-header { height: 72px; }
.desktop-header .header-inner { height: 72px; min-height: 72px; }
.logo { font-size: 20px; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; }
.nav { gap: 24px; }
.header-actions .selector-btn { min-height: 40px; padding: 8px 11px; }
.header-actions .btn { min-height: 40px; }

.hero { min-height: 590px; padding: 82px 0 76px; }
.hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr); gap: 72px; }
.hero h1 { font-size: clamp(40px, 4.25vw, 56px); line-height: 1.06; }
.hero p.lead { max-width: 560px; font-size: 18px; line-height: 1.6; }
.hero-search-card { padding: 24px; border-radius: 18px; box-shadow: 0 18px 45px rgba(16,32,68,.1); }
.hero-search-card .search-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 7px; border-radius: 30px; background: #fff; border: 1px solid #dce4f2; }
.hero-search-card .search-box .field { min-height: 48px; border: 0; border-radius: 24px; background: #fff; }
.hero-search-card .search-box .btn { min-width: 112px; min-height: 48px; border-radius: 24px; }
.hero-product-meta { padding-inline: 4px; }

.home-popular { background: #fff !important; }
.section { padding: 88px 0; }
.section-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; margin-bottom: 12px; }

.home-split-section { background: #f5f7fb !important; }
.home-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 88px; }
.home-split-visual { position: relative; min-height: 500px; display: grid; place-items: center; overflow: hidden; border-radius: 24px; background: linear-gradient(145deg,#dce8ff,#f7faff 58%,#dff8f2); }
.signal-orbit { position: absolute; border: 1px solid rgba(36,99,235,.2); border-radius: 50%; }
.signal-orbit--one { width: 390px; height: 390px; }
.signal-orbit--two { width: 520px; height: 520px; }
.travel-phone { position: relative; z-index: 2; width: 230px; height: 430px; padding: 12px; border: 7px solid #102044; border-radius: 34px; background: #102044; box-shadow: 0 30px 60px rgba(16,32,68,.22); transform: rotate(4deg); }
.travel-phone__speaker { position: absolute; z-index: 3; top: 15px; left: 50%; width: 64px; height: 6px; border-radius: 6px; background: #102044; transform: translateX(-50%); }
.travel-phone__screen { height: 100%; display: flex; flex-direction: column; align-items: center; padding: 54px 18px 20px; border-radius: 22px; color: #102044; background: linear-gradient(180deg,#fff,#edf4ff); }
.travel-phone__screen > i { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; color: #fff; background: #2463eb; }
.travel-phone__screen strong { font: 700 20px var(--font-head); }
.travel-phone__screen > span { margin-top: 6px; color: #059669; font-weight: 700; }
.travel-phone__map { width: 100%; flex: 1; display: grid; place-items: center; margin-top: 24px; border-radius: 18px; color: #2463eb; font-size: 34px; background: radial-gradient(circle at 30% 30%,#dbe6fe 0 12%,transparent 13%),linear-gradient(135deg,#f7faff,#dce8ff); }
.home-split-copy .section-title { margin: 16px 0 18px; }
.home-split-copy .section-sub { margin: 0; }
.home-checks { display: grid; gap: 18px; margin: 30px 0; list-style: none; }
.home-checks li { display: flex; gap: 14px; align-items: flex-start; }
.home-checks li > i { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #10b981; font-size: 12px; }
.home-checks strong,.home-checks small { display: block; }
.home-checks strong { margin-bottom: 4px; font: 700 16px var(--font-head); }
.home-checks small { color: var(--text-2); font-size: 14px; line-height: 1.55; }

.steps { gap: 24px; }
.step { padding: 32px; }
.step .n { width: 52px; height: 52px; margin-bottom: 28px; }
.features { grid-template-columns: repeat(4,1fr); gap: 18px; }
.feature { padding: 28px 24px; }

.home-app-section { background: #fff !important; }
.home-app-panel { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 56px; overflow: hidden; padding: 64px 72px; border-radius: 24px; color: #fff; background: linear-gradient(125deg,#123fa9,#2463eb 58%,#2f7cf4); }
.home-app-copy .eyebrow { color: #dbeafe; background: rgba(255,255,255,.12); }
.home-app-copy .section-title { max-width: 560px; margin: 16px 0; color: #fff; }
.home-app-copy p { max-width: 560px; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.7; }
.home-app-actions { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.home-app-link { color: #fff; font-weight: 700; }
.home-app-link i { margin-left: 6px; }
.home-app-preview { position: relative; min-height: 300px; }
.app-preview-card { position: absolute; width: 270px; min-height: 210px; padding: 28px; border-radius: 22px; color: #102044; background: #fff; box-shadow: 0 24px 60px rgba(5,20,70,.25); }
.app-preview-card span,.app-preview-card strong,.app-preview-card small { display: block; }
.app-preview-card--back { top: 10px; right: 0; opacity: .72; transform: rotate(8deg); }
.app-preview-card--front { right: 70px; bottom: 0; }
.app-preview-card--front i { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 13px; color: #fff; background: #2463eb; }
.app-preview-card strong { margin: 8px 0; font: 700 22px var(--font-head); }
.app-preview-card small { color: var(--text-2); line-height: 1.5; }

.testi-grid { gap: 20px; }
.testi { padding: 30px; }
.faq-list { max-width: 850px; margin: 42px auto 0; }
.faq-list details { padding: 0 24px; }
.faq-list summary { padding: 22px 0; }
.footer { padding-top: 72px; }

@media (max-width: 980px) {
  .hero-grid,.home-split,.home-app-panel { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .features { grid-template-columns: repeat(2,1fr); }
  .home-split { gap: 48px; }
  .home-split-visual { min-height: 430px; }
  .home-app-panel { padding: 52px; }
  .home-app-preview { width: min(100%,430px); margin: auto; }
}
@media (max-width: 900px) {
  .mobile-header { height: 64px; background: #fff; border-bottom: 1px solid var(--border); }
  .mobile-header-inner { height: 64px; }
  .mobile-nav { width: min(86vw, 340px); padding: 22px; background: #fff !important; }
  .mobile-nav-backdrop { position: fixed; inset: 0; z-index: 399; background: rgba(15,27,53,.42); }
  .mobile-nav-backdrop[hidden] { display: none; }
  .mobile-nav .mnav-head { padding: 8px 0 20px; }
  .mobile-nav-links { margin-top: 12px; }
  .mobile-nav-links a { min-height: 46px; padding: 12px 10px; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--maxw)); }
  .features { grid-template-columns: 1fr; }
  .home-split-visual { min-height: 360px; }
  .travel-phone { width: 190px; height: 350px; }
  .signal-orbit--one { width: 300px; height: 300px; }
  .signal-orbit--two { width: 420px; height: 420px; }
  .home-app-panel { min-height: 0; padding: 40px 24px; border-radius: 18px; }
  .home-app-actions { align-items: flex-start; flex-direction: column; }
  .home-app-preview { min-height: 270px; transform: scale(.88); transform-origin: center top; }
  .app-preview-card--front { right: 30px; }
  .section { padding: 64px 0; }
}

/* Authoritative homepage hero and mobile drawer states. */
.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  padding: 0;
  background: #eef4ff;
  border-bottom: 1px solid var(--border);
}
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 78% 28%, rgba(47,107,237,.22), transparent 28%),
    radial-gradient(circle at 18% 12%, rgba(34,211,238,.18), transparent 30%),
    linear-gradient(120deg, #f8fbff 0%, #edf4ff 55%, #dce9ff 100%);
  background-position: center;
  background-size: cover;
}
.hero--has-photo .hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248,251,255,.96) 0%, rgba(248,251,255,.82) 43%, rgba(248,251,255,.18) 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  gap: 2rem;
  align-items: end;
  padding-top: 4rem;
}
.hero-copy { align-self: stretch; padding-bottom: 4rem; text-align: left; }
.hero h1 { max-width: 38rem; margin: 1rem 0; font-size: clamp(2.25rem,4vw,3.25rem); line-height: 1.08; }
.hero p.lead { max-width: 30rem; margin: 0 0 1.5rem; font-size: 1.08rem; line-height: 1.65; }
.hero-search { width: 100%; max-width: 30rem; margin: 0; background: #fff; box-shadow: 0 14px 36px rgba(15,27,53,.12); }
.hero-review { max-width: 30rem; margin: 1rem 0 0; color: var(--text-2); font-size: .84rem; font-weight: 600; }
.hero-review i { margin-right: .4rem; color: var(--amber-500); }
.hero-visual { width: min(100%,430px); justify-self: center; align-self: end; display: flex; justify-content: center; }
.hero-device { width: 270px; height: 470px; padding: 12px; border: 7px solid #102044; border-bottom: 0; border-radius: 38px 38px 0 0; background: #102044; box-shadow: 0 28px 60px rgba(15,27,53,.25); }
.hero-device__speaker { width: 72px; height: 6px; margin: 0 auto 10px; border-radius: 999px; background: #33466d; }
.hero-device__screen { height: calc(100% - 16px); display: flex; flex-direction: column; align-items: center; padding: 28px 20px; border-radius: 25px 25px 0 0; color: #102044; background: linear-gradient(160deg,#fff,#e8f1ff); text-align: center; }
.hero-device__status { align-self: stretch; color: var(--brand-700); font-size: .78rem; font-weight: 700; text-align: left; }
.hero-device__globe { margin: 72px 0 24px; color: var(--brand-600); font-size: 72px; filter: drop-shadow(0 12px 18px rgba(47,107,237,.2)); }
.hero-device__screen strong { font: 700 1.25rem var(--font-head); }
.hero-device__screen small { margin-top: 8px; color: var(--text-2); }
.hero-device__pill { margin-top: 28px; padding: 9px 16px; border-radius: 999px; color: #047857; background: #d1fae5; font-size: .8rem; font-weight: 700; }

.mobile-nav {
  left: 0 !important;
  right: auto !important;
  transform: translateX(-100%) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  background: #fff !important;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.mobile-nav[aria-hidden="true"] {
  transform: translateX(-100%) !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.mobile-nav.open,
.mobile-nav[aria-hidden="false"] {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition-delay: 0s;
}
.mobile-nav-backdrop[hidden] { display: none !important; }

@media (max-width: 991px) {
  .hero { min-height: 0; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-copy { padding-bottom: 3.25rem; }
  .hero-visual { display: none; }
  .hero--has-photo .hero-background::after { background: rgba(248,251,255,.82); }
  /* Home hero: pull up under the fixed (white) header so there is no white
     strip between the header and the hero gradient on mobile. main has
     padding-top:var(--header-h); the home hero must cancel it and re-add the
     space as its own padding so the gradient/photo starts right under the bar. */
  body[data-page=""] .hero { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + 24px); }
  body[data-page=""] .hero-grid { padding-top: 1.5rem; }
}
@media (max-width: 640px) {
  .hero-grid { padding-top: 2.75rem; }
  .hero-copy { padding-bottom: 3rem; }
  .hero h1 { font-size: clamp(2rem,9vw,2.4rem); }
  .hero-search { grid-template-columns: 1fr; padding: 8px; }
  .hero-search .btn { width: 100%; }
}

/* =====================================================================
   AUTHORITATIVE FINAL PASS — compact country cards, tighter sections,
   right-aligned visible mobile hamburger. Placed last so it wins the
   cascade without relying on earlier accidental ordering.
   ===================================================================== */

/* ---------- (1) Country / destination cards: compact, flat, reference-like ---------- */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
/* === Clean destination card: NO tear/strip line. Flag + full country name on
   the left (name wraps, never clipped); price pill on the right. === */
.country-card {
  min-height: 86px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,27,53,.06);
  overflow: hidden;
  isolation: isolate;
}
.country-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15,27,53,.12);
  border-color: var(--brand-200);
}
/* one horizontal row, comfortably padded */
.country-card .body {
  min-height: 86px;
  height: auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
/* LEFT: flag + full country name (allowed to wrap to 2 lines) */
.country-card .info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
}
.country-card .name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}
/* generous rounded-rect flag */
.country-card .flag-img {
  width: 46px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(16,27,53,.14);
  border: 1px solid var(--border);
  flex: none;
}
.country-card .flag-img--globe {
  border-radius: 7px;
  font-size: 20px;
}
/* RIGHT: a soft price pill — no dashed line, no notches */
.country-card .stub {
  position: relative;
  flex: none;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 8px 14px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 12px;
}
/* no tear notches on this design */
.country-card .stub::before,
.country-card .stub::after {
  content: none !important;
  display: none !important;
}
.country-card .from {
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
}
.country-card .from.browse { color: var(--brand-600); }
.country-card .price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--brand-600);
  line-height: 1;
}

/* ---------- (1b) Remove phantom top gap on DESKTOP only: the desktop header is
   sticky (in flow), so main must NOT also be pushed down by an earlier
   `main{padding-top:var(--header-h)}` rule meant for a fixed header.
   On MOBILE the header is position:fixed, so main MUST keep that clearance or
   the first block slides underneath the header. Scope the reset to desktop. */
@media (min-width: 901px) {
  main { padding-top: 0 !important; }
}
@media (max-width: 900px) {
  main, .site-main { padding-top: var(--header-h) !important; }
}

/* ---------- (2) Sections: tighter rhythm, no forced min-heights ---------- */
main > .section,
.section { padding-block: clamp(56px, 6vw, 88px); padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.section-title { font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.step, .feature, .testi, .home-app-panel { min-height: 0; }
.steps .step { padding: 24px; }
.step .n { width: 46px; height: 46px; margin-bottom: 18px; }
.features .feature { padding: 22px 20px; }
.testi-grid .testi { padding: 24px; }
.home-app-panel { padding: 48px 56px; }

/* ---------- (3) Mobile header: burger RIGHT, logo centered, visible dark bars ---------- */
@media (max-width: 900px) {
  /* Edge-to-edge bar: kill the .container width clamp + big side padding so the
     logo hugs the LEFT edge and the buttons hug the RIGHT edge. */
  .mobile-header .container.mobile-header-inner,
  .mobile-header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 14px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  /* burger hard-left, logo next with margin-right:auto pushing the action
     group (cart + account) to the far right. Cart + account live inside
     .mobile-header-actions, so we order THAT wrapper, not the icons. */
  .mobile-header .burger { order: 1; margin: 0; grid-column: auto; justify-self: auto; flex: none; }
  .mobile-header .logo { order: 2; margin: 0 auto 0 0; justify-self: start; grid-column: auto; min-width: 0; }
  .mobile-header .logo .logo-img { max-width: 150px; }
  .mobile-header .mobile-header-actions { order: 3; display: flex; align-items: center; gap: 8px; margin: 0; flex: none; }

  /* ensure the burger button itself is a visible flex column of three bars */
  .mobile-header .burger {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
  }
  /* style the three real spans as the bars — explicit dark ink, never white/transparent */
  .mobile-header .burger span,
  .mobile-header .burger.is-open span {
    position: static;
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text) !important; /* dark brand ink #0f1b35 */
    content: normal;
    transform: none;
    opacity: 1;
  }
  /* kill any inherited pseudo-element bars so only the three spans render */
  .mobile-header .burger span::before,
  .mobile-header .burger span::after {
    content: none !important;
    display: none !important;
  }
}

/* =====================================================================
   LAST-WORD OVERRIDE (placed at the very end so it beats every earlier
   conflicting block). Two things, rebuilt from scratch:
     A) Popular-destination cards = real airplane BOARDING-PASS tickets
        (3 per row on desktop), country on the left, perforated stub with
        the price on the right, punched notches top & bottom.
     B) Mobile header buttons (hamburger + user) rebuilt cleanly.
   ===================================================================== */

/* ---------- A) COMPACT TEAR-OFF TICKET CARDS ----------
   A small airline-ticket look: ONE horizontal row — flag + country name on a
   single line (left), a perforated tear line, then a clean price stub (right).
   No barcode / no gradient fill behind the price. */
.country-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* 3 per row on PC */
  gap: 16px !important;
}
.country-card {
  position: relative;
  display: block;
  min-height: 0 !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(15,27,53,.06) !important;
  overflow: visible !important;              /* let the punched notches show */
  isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.country-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15,27,53,.12) !important;
  border-color: var(--brand-200) !important;
}
.country-card .body {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
/* LEFT section: flag + country name STRICTLY on one line (ellipsis if long) */
.country-card .info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 12px 12px 14px !important;
}
.country-card .info::after { content: none !important; display: none !important; } /* kill old divider */
.country-card .flag,
.country-card .info .flag { flex: none !important; display: inline-flex !important; }
.country-card .flag-img {
  width: 34px !important; height: 24px !important;
  border-radius: 4px !important;
  object-fit: cover !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 1px 3px rgba(16,27,53,.12) !important;
}
.country-card .flag-img--globe {
  display: inline-grid !important; place-items: center !important;
  color: var(--brand-500) !important; background: var(--brand-50) !important;
  border-color: var(--brand-100) !important; font-size: 15px !important;
}
.country-card .name {
  font-family: var(--font-head) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  color: var(--text) !important;
  white-space: nowrap !important;        /* flag + country on ONE line */
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
}
/* RIGHT detachable stub = clean white column; LEFT BORDER is the dashed tear.
   No gradient / no barcode — just the price sitting on plain surface. */
.country-card .stub {
  position: relative !important;
  flex: 0 0 84px !important;
  width: 84px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 0 10px !important;
  background: #fff !important;
  border: 0 !important;
  border-left: 2px dashed var(--brand-200) !important;
  border-radius: 0 14px 14px 0 !important;
}
.country-card .from {
  color: var(--text-2) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}
.country-card .from.browse { color: var(--brand-600) !important; }
.country-card .price {
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  color: var(--brand-600) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
/* Two small PUNCHED NOTCHES on the tear line (top & bottom) — the perforation */
.country-card .stub::before,
.country-card .stub::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: -7px !important;
  width: 12px !important; height: 12px !important;
  border-radius: 50% !important;
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  z-index: 2 !important;
}
.country-card .stub::before { top: -6px !important; bottom: auto !important; }
.country-card .stub::after  { bottom: -6px !important; top: auto !important; }

/* Tablet: 2 compact tickets per row. Phone: keep 2 up (they're small now). */
@media (max-width: 900px) {
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 460px) {
  .country-grid { grid-template-columns: 1fr !important; }
}

/* ---------- B) MOBILE HEADER BUTTONS — rebuilt from scratch ---------- */
@media (max-width: 900px) {
  /* edge-to-edge single row: logo left, user + hamburger right */
  .mobile-header .container.mobile-header-inner,
  .mobile-header-inner {
    width: 100%; max-width: none; margin: 0; padding: 0 14px;
    display: flex; flex-wrap: nowrap; align-items: center; gap: 10px;
    height: var(--header-h);
  }
  .mobile-header .burger { order: 1 !important; grid-column: auto !important; justify-self: auto !important; }
  .mobile-header .logo   { order: 2 !important; margin: 0 auto 0 0 !important; justify-self: start !important; grid-column: auto !important; min-width: 0 !important; }
  .mobile-header .logo .logo-img { max-width: 150px !important; }
  /* cart + account are grouped on the far right inside .mobile-header-actions */
  .mobile-header .mobile-header-actions { order: 3 !important; display: flex !important; align-items: center !important; gap: 8px !important; margin: 0 !important; flex: none !important; }

  /* identical clean pill-square buttons for cart + user + hamburger */
  .mobile-header .mobile-cart,
  .mobile-header .mobile-account,
  .mobile-header .burger {
    flex: none !important;
    width: 44px !important; height: 44px !important;
    padding: 0 !important; margin: 0 !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    background: #fff !important; background-image: none !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    color: var(--text) !important;
    box-shadow: 0 1px 2px rgba(16,27,53,.06) !important;
    cursor: pointer !important;
    transition: background .15s ease, border-color .15s ease, transform .12s ease !important;
  }
  .mobile-header .mobile-cart:hover,
  .mobile-header .mobile-account:hover,
  .mobile-header .burger:hover { background: var(--surface-2) !important; border-color: var(--brand-200) !important; }
  .mobile-header .mobile-cart:active,
  .mobile-header .mobile-account:active,
  .mobile-header .burger:active { transform: scale(.94) !important; }
  .mobile-header .mobile-cart i,
  .mobile-header .mobile-account i { font-size: 18px !important; line-height: 1 !important; color: var(--text) !important; }
  /* cart count badge sits on the top-right corner of the cart button */
  .mobile-header .mobile-cart { position: relative !important; }
  .mobile-header .mobile-cart .header-cart__count {
    position: absolute !important; top: -5px !important; right: -5px !important;
    min-width: 18px !important; height: 18px !important; padding: 0 5px !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    font-size: 11px !important; font-weight: 700 !important; line-height: 1 !important;
    color: #fff !important; background: var(--brand-600) !important;
    border-radius: 999px !important; box-shadow: 0 0 0 2px #fff !important;
  }
  .mobile-header .mobile-cart .header-cart__count.hidden,
  .mobile-header .mobile-cart .header-cart__count[hidden] { display: none !important; }

  /* hamburger: three crisp dark bars, centered via flex column */
  .mobile-header .burger {
    flex-direction: column !important;
    gap: 4px !important;
  }
  .mobile-header .burger span {
    position: static !important;
    display: block !important;
    width: 20px !important; height: 2px !important;
    margin: 0 !important;
    border-radius: 2px !important;
    background: var(--text) !important;
    transform: none !important; opacity: 1 !important;
    transition: transform .22s ease, opacity .18s ease !important;
  }
  .mobile-header .burger span::before,
  .mobile-header .burger span::after {
    content: none !important;
    display: none !important;
  }
  /* animate the three bars into an X when the drawer is open */
  .mobile-header .burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg) !important; }
  .mobile-header .burger.is-open span:nth-child(2) { opacity: 0 !important; }
  .mobile-header .burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg) !important; }
}

/* ============================================================================
   UI polish overrides (loaded last — authoritative)
   1) Prevent mobile input zoom   2) Compact country cards
   3) Consistent mobile "How it works" steps   4) Compact plan stat cards
   ============================================================================ */

/* 1) No zoom-in when focusing any form field on mobile (iOS zooms < 16px). */
input, select, textarea,
.input, .select,
.search-box input, .search-inline input, .field input {
  font-size: 16px;
}

/* 3) "How it works" steps: single, consistent left-badge layout on all phones.
   Fixes the step number badge overlapping the card title (esp. Step 3). */
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps .step,
  .step {
    padding: 16px 16px 16px 68px !important;
    text-align: left !important;
    min-height: 0 !important;
    position: relative !important;
  }
  .step .n {
    position: absolute !important;
    left: 16px !important; top: 16px !important;
    margin: 0 !important;
    width: 40px !important; height: 40px !important;
    font-size: 16px !important;
    display: grid !important; place-items: center !important;
  }
  .step h3 { font-size: 16px !important; margin: 2px 0 4px !important; }
  .step p  { font-size: 14px !important; line-height: 1.5 !important; margin: 0 !important; }
}

/* (Country ticket sizing is handled by the authoritative boarding-pass block
   further down; no override here to avoid card/inner height mismatch.) */

/* 4) Plan page: Data / Validity / Total stat cards must never overflow. */
.plan-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.plan-stats .card { padding: 14px 12px; min-width: 0; }
.plan-stats .stat-val {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(16px, 4.6vw, 22px);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 420px) {
  .plan-stats { grid-template-columns: 1fr; gap: 10px; }
}

/* 5) Country page: sort bar + compact plan cards (less scrolling). */
.plan-sortbar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px 14px; margin: 0 0 20px;
}
.plan-sortbar__label { font-weight: 700; color: var(--text-2); font-size: 14px; }
.plan-sortbar__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-sortbar .pill { cursor: pointer; }
.plan-sortbar .pill.is-active {
  background: var(--brand-500); color: #fff; border-color: var(--brand-500);
}

/* Compact HORIZONTAL plan rows on the country page (less scrolling). */
.plan-grid--compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-grid--compact .card.plan {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  text-align: left;
}
.plan-grid--compact .card.plan .ribbon { top: 8px; right: 8px; }
/* 1) data badge */
.plan-grid--compact .card.plan .data {
  font-size: 22px; margin: 0; line-height: 1.1; white-space: nowrap;
}
/* 2) title + eyebrow stack */
.plan-grid--compact .card.plan .eyebrow { grid-row: 1; order: 0; margin: 0 0 2px; }
.plan-grid--compact .card.plan .meta { font-size: 14px; margin: 0; }
.plan-grid--compact .card.plan .plan-desc { display: none; }
/* 3) hide the bullet list in the horizontal row to keep it slim */
.plan-grid--compact .card.plan ul.inc { display: none; }
/* 4) price */
.plan-grid--compact .card.plan .price {
  margin: 0; font-size: 20px; white-space: nowrap;
}
.plan-grid--compact .card.plan .price::before { position: static; display: block; font-size: 10px; }
/* 5) CTA button compact */
.plan-grid--compact .card.plan .btn {
  width: auto; margin: 0; padding: 10px 18px; white-space: nowrap;
}
/* Reorder children: data | (eyebrow+meta) | price | button.
   The eyebrow and meta are separate elements, so wrap them visually by
   letting the grid place them in column 2 across two rows. */
.plan-grid--compact .card.plan {
  grid-template-columns: 84px 1fr auto auto;
  grid-template-areas: "data info price cta";
}
.plan-grid--compact .card.plan .data  { grid-area: data; }
.plan-grid--compact .card.plan .eyebrow,
.plan-grid--compact .card.plan .meta  { grid-column: 2; }
.plan-grid--compact .card.plan .price { grid-area: price; }
.plan-grid--compact .card.plan .btn   { grid-area: cta; }

@media (max-width: 640px) {
  .plan-grid--compact .card.plan {
    grid-template-columns: 70px 1fr auto;
    grid-template-areas:
      "data info price"
      "data info cta";
    gap: 6px 14px; padding: 12px 14px;
  }
  .plan-grid--compact .card.plan .data { font-size: 19px; align-self: center; }
  .plan-grid--compact .card.plan .price { font-size: 17px; align-self: end; }
  .plan-grid--compact .card.plan .btn { padding: 8px 12px; font-size: 13px; align-self: start; }
  .plan-grid--compact .card.plan .meta { font-size: 13px; }
}

/* ============================================================================
   Quick-buy wizard — "Plan in 3 clicks"
   ============================================================================ */
.quickbuy-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 350;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--gradient); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 30px rgba(47,107,237,.42);
  transition: transform .2s ease, box-shadow .2s ease;
  /* slow soft pulse so the button always reads as "live" */
  animation: qbFabPulse 2.6s ease-in-out infinite;
  isolation: isolate;
}
/* slowly running light that travels around the whole perimeter */
.quickbuy-fab::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 2px;                 /* border thickness */
  background: conic-gradient(from 0deg,
              rgba(255,255,255,0) 0deg,
              rgba(255,255,255,.95) 60deg,
              rgba(255,255,255,0) 150deg,
              rgba(255,255,255,0) 360deg);
  /* mask so the gradient only shows as a border ring */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: qbFabSpin 3.4s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.quickbuy-fab > * { position: relative; z-index: 2; }
.quickbuy-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(47,107,237,.5); animation-play-state: paused; }
.quickbuy-fab:hover::before { animation-duration: 1.6s; }
.quickbuy-fab i { font-size: 15px; }

@keyframes qbFabSpin { to { transform: rotate(360deg); } }
@keyframes qbFabPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(47,107,237,.42); }
  50%      { box-shadow: 0 12px 30px rgba(47,107,237,.42), 0 0 0 6px rgba(47,107,237,.12); }
}
@media (prefers-reduced-motion: reduce) {
  .quickbuy-fab, .quickbuy-fab::before { animation: none; }
}

.quickbuy-overlay {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10,18,40,.55); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .26s ease;
  padding: 0;
}
/* CRITICAL: when closed the overlay must NOT capture clicks. Without this the
   full-viewport fixed overlay (z-index:500, opacity:0) sat on top of the whole
   page and swallowed every click — menu, links, FAB and back-to-top all dead. */
.quickbuy-overlay[hidden] { display: none !important; }
.quickbuy-overlay.is-open { opacity: 1; }

.quickbuy {
  width: 100%; max-width: 460px;
  background: var(--surface); color: var(--text);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 50px rgba(10,18,40,.4);
  transform: translateY(24px); transition: transform .3s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; max-height: 88vh; overflow: hidden;
}
.quickbuy-overlay.is-open .quickbuy { transform: translateY(0); }
@media (min-width: 600px) {
  .quickbuy-overlay { align-items: center; }
  .quickbuy { border-radius: 22px; }
}

.quickbuy__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 8px; }
.quickbuy__progress { flex: 1; height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.quickbuy__progress span { display: block; height: 100%; background: var(--gradient); border-radius: 999px; transition: width .3s ease; }
.quickbuy__close {
  flex: none; width: 32px; height: 32px; border: none; cursor: pointer;
  border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-size: 15px;
}
.quickbuy__close:hover { background: var(--border); }

.quickbuy__viewport { overflow: hidden; flex: 1; }
.quickbuy__track { display: flex; width: 100%; transition: transform .34s cubic-bezier(.22,1,.36,1); }
.qb-step {
  flex: 0 0 100%; width: 100%; box-sizing: border-box;
  padding: 10px 20px 18px; overflow-y: auto;
}
.qb-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin: 6px 0 4px; }
.qb-sub { color: var(--text-3); font-size: 14px; margin: 0 0 16px; }

.qb-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
}
.qb-search i { color: var(--text-3); }
.qb-search input { flex: 1; border: none; outline: none; background: transparent; font-size: 16px; color: var(--text); font-family: inherit; }

.qb-suggest { margin-top: 8px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.qb-suggest-item { display: block; width: 100%; text-align: left; border: none; background: var(--surface); padding: 11px 14px; font-size: 15px; cursor: pointer; color: var(--text); }
.qb-suggest-item:hover { background: var(--surface-2); }

.qb-pop-label { margin: 18px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.qb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qb-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text);
  transition: border-color .15s, background .15s;
}
.qb-chip .flag-img { width: 22px; height: 16px; }
.qb-chip:hover { border-color: var(--brand-200); }
.qb-chip.is-active { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }

.qb-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qb-option {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px; border: 1.5px solid var(--border); border-radius: 16px;
  background: var(--surface); cursor: pointer; color: var(--text);
  font-family: var(--font-head); transition: border-color .15s, background .15s, transform .12s;
}
.qb-option i { font-size: 22px; color: var(--brand-500); }
.qb-option strong { font-size: 15px; font-weight: 700; }
.qb-option:hover { border-color: var(--brand-200); transform: translateY(-2px); }
.qb-option.is-active { border-color: var(--brand-500); background: var(--brand-50); }

.qb-slider-val { text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 32px; color: var(--brand-600); margin: 18px 0 14px; }
.qb-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px;
  border-radius: 999px; outline: none;
  background: linear-gradient(to right, var(--brand-500) var(--qb-fill, 20%), var(--surface-2) var(--qb-fill, 20%));
}
.qb-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-500); cursor: pointer; box-shadow: 0 3px 10px rgba(47,107,237,.4);
}
.qb-range::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: #fff;
  border: 3px solid var(--brand-500); cursor: pointer; box-shadow: 0 3px 10px rgba(47,107,237,.4);
}
.qb-range-scale { display: flex; justify-content: space-between; margin-top: 10px; color: var(--text-3); font-size: 12px; }

.qb-results { display: flex; flex-direction: column; gap: 10px; }
.qb-result {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); text-decoration: none; color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.qb-result:hover { border-color: var(--brand-300, var(--brand-200)); box-shadow: 0 8px 20px rgba(10,18,40,.08); transform: translateY(-1px); }
.qb-result__data { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--brand-600); }
.qb-result__meta { color: var(--text-3); font-size: 13px; }
.qb-result__price { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.qb-result__go { color: var(--brand-500); }
.qb-loading { text-align: center; padding: 30px; color: var(--brand-500); font-size: 24px; }
.qb-empty { text-align: center; color: var(--text-3); font-size: 14px; padding: 20px; }

.quickbuy__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.quickbuy__foot [data-qb-next] { margin-left: auto; }

/* ============================================================================
   Country cards — real boarding-pass ticket (authoritative, final)
   Card and inner share ONE height so they never mismatch.
   ============================================================================ */
.country-card,
/* [removed] stale "boarding-pass" overrides (fa-plane eyebrow, barcode stub,
   column-stacked centered name, forced 108px height). They fought the clean
   ticket design and pushed the country name to the middle of the card.
   The authoritative country-card rules live in the FINAL override block. */

/* ============================================================================
   Standardized header spacing.
   Desktop header is sticky (in flow). The MOBILE header is position:fixed, so
   content must clear it by exactly one header height — applied once, globally,
   so every page has identical top spacing on phones.
   ============================================================================ */
@media (max-width: 860px) {
  .site-main { padding-top: var(--header-h) !important; }
  /* The hero already accounts for its own spacing; avoid doubling it. */
  .site-main > .hero:first-child { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + 24px); }
}

/* ============================================================================
   Account area — responsive top-tab layout (replaces off-canvas sidebar)
   ============================================================================ */
/* Dashboard spans the same width as the header (logo -> Buy now), i.e. the
   standard page container width, instead of the old narrow 920px column. */
.acc-wrap { max-width: var(--maxw); }

.acc-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 26px;
}
.acc-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acc-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--gradient);
  font-family: var(--font-head); font-weight: 800; font-size: 18px;
}
.acc-id__name { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.2; }
.acc-id__email { color: var(--text-3); font-size: 13px; word-break: break-all; }

.acc-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 5px;
}
.acc-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px;
  font-weight: 600; font-size: 14px; color: var(--text-2);
  text-decoration: none; white-space: nowrap; transition: background .15s, color .15s;
}
.acc-tab i { font-size: 14px; }
.acc-tab:hover { color: var(--text); background: var(--surface); }
.acc-tab.is-active { background: var(--surface); color: var(--brand-600); box-shadow: 0 1px 3px rgba(16,27,53,.08); }
.acc-tab--logout { color: var(--text-3); }

.acc-section-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin: 26px 0 14px; }
.acc-section-title--lead { margin-top: 0; }

.acc-empty { padding: 40px 24px; text-align: center; }
.acc-empty__ic { font-size: 34px; color: var(--text-3); margin-bottom: 12px; }
.acc-empty p { color: var(--text-2); margin: 0 0 18px; }

/* Orders list: stack neatly on phones. */
.order-row__main { min-width: 0; }
@media (max-width: 560px) {
  .order-row { flex-direction: column; align-items: flex-start !important; gap: 8px; }
  .order-right { width: 100%; display: flex; align-items: center; justify-content: space-between; }
}

/* On mobile the account area is just a normal single column — the old
   off-canvas sidebar rules must never apply here. */
@media (max-width: 860px) {
  .acc-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .acc-tab span { font-size: 13px; }
}

/* Mobile: give the account dashboard more room by trimming the big side
   gutters so the cards are wider and use the full screen width. */
@media (max-width: 640px) {
  body[data-page="account"] .container.acc-wrap,
  body[data-page="account/esims"] .container.acc-wrap {
    width: 100%;
    max-width: none;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* ---------- My eSIMs ---------- */
.esim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.esim-card { padding: 18px; }
.esim-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.esim-card__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 15px; min-width: 0; }
.esim-card__title > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esim-card__flag { font-size: 18px; }
.esim-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; color: var(--text-3); font-size: 13px; }
.esim-card__meta i { margin-right: 4px; }
.esim-card__pending { margin: 14px 0 0; padding: 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-3); font-size: 13px; text-align: center; }

/* QR + details spoiler */
.esim-spoiler { margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.esim-spoiler > summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--brand-600);
  background: var(--surface-2);
}
.esim-spoiler > summary::-webkit-details-marker { display: none; }
.esim-spoiler > summary > span { flex: 1; }
.esim-spoiler__chev { transition: transform .2s ease; font-size: 12px; color: var(--text-3); }
.esim-spoiler[open] > summary .esim-spoiler__chev { transform: rotate(180deg); }
.esim-spoiler__body { padding: 16px 14px; }
.esim-card .qr-box {
  width: 200px; max-width: 70%; margin: 0 auto 14px; padding: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
}
.esim-card .qr-box img { width: 100%; height: auto; display: block; }
.esim-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.esim-details dt { color: var(--text-3); font-weight: 600; white-space: nowrap; }
.esim-details dd { margin: 0; font-family: monospace; word-break: break-all; color: var(--text); }

/* ---------- Live usage (data left + status) ---------- */
.esim-usage {
  margin: 12px 0 0; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface-2);
}
.esim-usage__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.esim-usage__amount { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.esim-usage__label { font-size: 12px; font-weight: 700; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.esim-usage__label i { color: var(--brand-500); }
.esim-usage__val { font-size: 14px; color: var(--text); text-align: right; min-width: 0; }
.esim-usage__val b { font-family: var(--font-head); font-weight: 800; }
.esim-usage__of { color: var(--text-3); font-weight: 600; font-size: 12px; }
.esim-usage__muted { color: var(--text-3); font-size: 13px; }
.esim-usage__bar {
  height: 7px; border-radius: 999px; background: var(--border);
  overflow: hidden; margin: 10px 0 8px;
}
.esim-usage__bar > span {
  display: block; height: 100%; border-radius: 999px;
  background: var(--gradient); transition: width .4s ease;
}
.esim-usage__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.esim-usage__updated { font-size: 11px; color: var(--text-3); min-width: 0; word-break: break-word; }
.esim-usage .esim-usage__refresh {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 30px; width: 30px; height: 30px; min-width: 30px; min-height: 30px;
  padding: 0; gap: 0; border-radius: 8px; line-height: 1;
  color: var(--text-2); box-shadow: none; transform: none;
}
.esim-usage__refresh svg { display: block; flex: none; width: 16px; height: 16px; margin: 0; }
.esim-usage .esim-usage__refresh:hover:not(:disabled) { color: var(--brand-600); background: var(--brand-50); border-color: var(--brand-200); }
.esim-usage .esim-usage__refresh:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; }
.esim-usage .esim-usage__refresh:disabled { opacity: .55; cursor: wait; }
.esim-usage__refresh[aria-busy="true"] svg { animation: esim-usage-spin 1s linear infinite; }
.esim-usage__status { font-size: 10px; padding: 4px 8px; line-height: 1.4; }
.esim-usage__status[hidden] { display: none; }
@keyframes esim-usage-spin { to { transform: rotate(360deg); } }

/* Keep every eSIM card strictly inside the viewport on mobile (no horizontal
   overflow): the card itself can shrink, long codes wrap, and the QR image
   scales down to fit the card width. */
.esim-card { min-width: 0; overflow: hidden; }
.esim-card__title > span:last-child { min-width: 0; }
.esim-install { min-width: 0; }
.esim-install__qr img { max-width: 100%; height: auto; }

@media (max-width: 560px) {
  .esim-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   AUTHORITATIVE FINAL OVERRIDES (loaded last — beat everything above)
   1) Country card = clean airplane ticket with a real tear-off stub
   2) Quick-buy FAB = single comet dot running around the perimeter
   3) Mobile: country grid keeps a gap, pages wider, header->hero gap smaller
   ============================================================================ */

/* ---------- 1) AIRPLANE TICKET COUNTRY CARD (rebuilt) ----------
   Layout: [ flag | country name ]  ||tear||  [ price stub ]
   Flag and name are vertically centered on the SAME line. The stub is a
   detachable right column separated by a dashed perforation with two punched
   notches, exactly like the tear-off part of a boarding pass. */
.country-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 16px !important;
}
.country-card {
  position: relative !important;
  display: block !important;
  min-height: 0 !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(15,27,53,.06) !important;
  overflow: visible !important;
  isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
.country-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 30px rgba(15,27,53,.13) !important;
  border-color: var(--brand-200) !important;
}
.country-card .body {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
/* LEFT: flag + country name, centered on one baseline */
.country-card .info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;      /* flag + name same level */
  gap: 11px !important;
  padding: 14px 14px 14px 16px !important;
}
.country-card .info::after { content: none !important; display: none !important; }
.country-card .flag,
.country-card .info .flag {
  flex: none !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 0 !important;           /* kill baseline offset so flag aligns to name */
}
.country-card .flag-img {
  display: block !important;
  width: 36px !important; height: 26px !important;
  border-radius: 5px !important;
  object-fit: cover !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 1px 3px rgba(16,27,53,.14) !important;
}
.country-card .flag-img--globe {
  display: inline-grid !important; place-items: center !important;
  color: var(--brand-500) !important; background: var(--brand-50) !important;
  border-color: var(--brand-100) !important; font-size: 15px !important;
}
.country-card .name {
  display: inline-block !important;
  font-family: var(--font-head) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  color: var(--text) !important;
  white-space: nowrap !important;      /* strictly one line */
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
}
/* RIGHT: detachable price stub (clean, no barcode/gradient) */
.country-card .stub {
  position: relative !important;
  flex: 0 0 76px !important;
  width: 76px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 10px 8px !important;
  background: linear-gradient(135deg, var(--brand-50), #fff) !important;
  border: 0 !important;
  border-left: 2px dashed var(--brand-200) !important;
  border-radius: 0 14px 14px 0 !important;
}
.country-card .from {
  color: var(--text-2) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}
.country-card .from.browse { color: var(--brand-600) !important; }
.country-card .price {
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  color: var(--brand-600) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
/* No perforation notches — the two punched dots on the tear line looked messy,
   so they are explicitly removed. The soft vertical divider alone reads clean. */
.country-card .stub::before,
.country-card .stub::after {
  content: none !important;
  display: none !important;
}

/* ---------- 2) QUICK-BUY FAB: single comet dot running the perimeter ----------
   Kill the old rotating conic "ring" (it looked like a flying shadow) and
   replace it with a small bright dot + fading tail that travels around the
   button border using offset-path, to draw the eye. */
   Smooth rotating conic-gradient glowing border (lootdepo-style): one clean
   neon ring sweeps continuously around the pill — no choppy dot/comet loop. */
.quickbuy-fab {
  animation: none !important;             /* stop the box-shadow pulse */
  overflow: visible !important;
}
/* ::before = the spinning conic-gradient, masked to a thin ring = the border */
.quickbuy-fab::before {
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;                 /* sit just outside the pill edge */
  border-radius: inherit !important;
  padding: 2px !important;                /* ring thickness */
  background: conic-gradient(from var(--qb-angle, 0deg),
              rgba(255,255,255,0)        0deg,
              rgba(255,255,255,0)      200deg,
              rgba(173,210,255,.9)     270deg,
              #ffffff                  320deg,
              rgba(173,210,255,.9)     350deg,
              rgba(255,255,255,0)      360deg) !important;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  -webkit-mask-composite: xor !important;
          mask-composite: exclude !important;
  animation: qbFabRing 4s linear infinite !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
/* ::after = a soft diffused glow that follows the same sweep behind the pill */
.quickbuy-fab::after {
  content: "" !important;
  position: absolute !important;
  inset: -3px !important;
  border-radius: inherit !important;
  background: conic-gradient(from var(--qb-angle, 0deg),
              transparent 0deg, transparent 250deg,
              rgba(120,170,255,.55) 320deg, transparent 360deg) !important;
  filter: blur(9px) !important;
  opacity: .8 !important;
  animation: qbFabRing 4s linear infinite !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
.quickbuy-fab:hover::before,
.quickbuy-fab:hover::after { animation-duration: 2.2s !important; }
/* Angle is animated via a registered custom property so the conic-gradient can
   rotate smoothly; browsers without @property fall back to the transform spin. */
@property --qb-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes qbFabRing {
  to { --qb-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .quickbuy-fab::before,
  .quickbuy-fab::after { animation: none !important; }
}

/* ---------- 3) MOBILE: grid gap, wider body, tighter header->hero gap ---------- */
@media (max-width: 900px) {
  .country-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 12px !important; }
}
@media (max-width: 640px) {
  /* Phones: ONE ticket per row (full width), with a real gap between them. */
  .country-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  /* wider page body: trim the big side gutters so content fills the screen */
  .container { padding-left: 14px !important; padding-right: 14px !important; }
  /* shrink the empty gap between the fixed header and the first block on
     inner pages (NOT the home hero). The first .section on a page gets a much
     smaller top padding; the home page leads with .hero so it is unaffected. */
  main > .section:first-child { padding-top: 18px !important; }
  .page-head { padding-top: 14px !important; }
}

/* ============================================================================
   PLAN CARDS (country page) — compact rows + smart grouping accordions
   - The big scope "Country/Region/Global" eyebrow becomes a tiny subtle pill.
   - Each card is a clean horizontal row: [data] [title+validity] [price] [CTA].
   - Plans are bucketed into collapsible <details> groups by trip length.
   ============================================================================ */

/* ---- Grouping accordion ---- */
.plan-group {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  margin: 0 0 14px;
  overflow: hidden;
}
.plan-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  user-select: none;
}
.plan-group__head::-webkit-details-marker { display: none; }
.plan-group__title { flex: 1 1 auto; min-width: 0; }
.plan-group__count {
  flex: none;
  display: inline-grid; place-items: center;
  min-width: 26px; height: 22px; padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-50); color: var(--brand-600);
  font-size: 12px; font-weight: 800;
}
.plan-group__chev { flex: none; color: var(--text-3); transition: transform .2s ease; }
.plan-group[open] .plan-group__chev { transform: rotate(180deg); }
.plan-group[open] .plan-group__head { border-bottom: 1px solid var(--border); }
.plan-group > .plan-grid { padding: 14px; }

/* ---- Compact plan row (authoritative) ---- */
.plan-grid--compact { display: flex; flex-direction: column; gap: 10px; }
.plan-grid--compact .card.plan {
  position: relative;
  display: grid !important;
  grid-template-columns: 82px 1fr auto auto !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 14px 16px !important;
  text-align: left !important;
  min-height: 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
}
.plan-grid--compact .card.plan:hover {
  border-color: var(--brand-200) !important;
  box-shadow: 0 8px 20px rgba(15,27,53,.08) !important;
  transform: translateY(-1px) !important;
}
.plan-grid--compact .card.plan.featured { border-color: var(--brand-300, var(--brand-200)) !important; }

/* 1) data amount (big, column 1) */
.plan-grid--compact .card.plan .data {
  grid-column: 1 !important; grid-row: 1 / span 2 !important;
  margin: 0 !important;
  font-family: var(--font-head) !important; font-weight: 800 !important;
  font-size: 20px !important; line-height: 1.05 !important;
  white-space: nowrap !important;
}
/* 2) scope eyebrow -> tiny subtle pill above the title (NOT a giant tag) */
.plan-grid--compact .card.plan .eyebrow {
  grid-column: 2 !important; grid-row: 1 !important;
  align-self: end !important;
  margin: 0 !important;
  font-size: 10px !important; font-weight: 700 !important;
  letter-spacing: .04em !important; text-transform: uppercase !important;
  color: var(--text-3) !important; background: none !important;
  padding: 0 !important; border: 0 !important;
  display: inline-flex !important; align-items: center !important; gap: 5px !important;
}
.plan-grid--compact .card.plan .eyebrow i { font-size: 10px !important; color: var(--brand-400) !important; }
/* 3) plan title (column 2, row 2) */
.plan-grid--compact .card.plan .meta {
  grid-column: 2 !important; grid-row: 2 !important;
  align-self: start !important;
  margin: 0 !important;
  font-size: 14px !important; font-weight: 600 !important; color: var(--text-2) !important;
  overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important;
}
/* 4) hide verbose bits in the compact row */
.plan-grid--compact .card.plan .plan-desc,
.plan-grid--compact .card.plan ul.inc { display: none !important; }
.plan-grid--compact .card.plan .ribbon { top: -1px !important; right: 96px !important; }
/* 5) price (column 3) */
.plan-grid--compact .card.plan .price {
  grid-column: 3 !important; grid-row: 1 / span 2 !important;
  margin: 0 !important; padding: 0 !important;
  font-family: var(--font-head) !important; font-weight: 800 !important;
  font-size: 18px !important; color: var(--brand-600) !important; white-space: nowrap !important;
}
.plan-grid--compact .card.plan .price::before {
  content: attr(data-label);
  display: block; font-size: 9px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-3); position: static; margin-bottom: 2px;
}
/* 6) CTA button (column 4) */
.plan-grid--compact .card.plan .btn,
.plan-grid--compact .card.plan .btn-block {
  grid-column: 4 !important; grid-row: 1 / span 2 !important;
  width: auto !important; margin: 0 !important;
  padding: 10px 16px !important; white-space: nowrap !important;
}

/* Mobile: wrap to two lines so nothing is cramped */
@media (max-width: 560px) {
  .plan-grid--compact .card.plan {
    grid-template-columns: auto 1fr auto !important;
    grid-template-areas:
      "data meta meta"
      "data price cta" !important;
    gap: 6px 12px !important;
    row-gap: 8px !important;
  }
  .plan-grid--compact .card.plan .data  { grid-area: data !important; grid-row: auto !important; font-size: 18px !important; }
  .plan-grid--compact .card.plan .eyebrow { display: none !important; } /* too noisy on phones */
  .plan-grid--compact .card.plan .meta  { grid-area: meta !important; grid-row: auto !important; white-space: normal !important; }
  .plan-grid--compact .card.plan .price { grid-area: price !important; grid-row: auto !important; font-size: 16px !important; }
  .plan-grid--compact .card.plan .price::before { display: inline; margin: 0 6px 0 0; }
  .plan-grid--compact .card.plan .btn,
  .plan-grid--compact .card.plan .btn-block { grid-area: cta !important; grid-row: auto !important; padding: 8px 14px !important; }
  .plan-grid--compact .card.plan .ribbon { display: none !important; }
}

/* ============================================================================
   FINAL PASS 2 — quick-buy results scroll, smarter sort bar, plan preview tidy
   ============================================================================ */

/* ---- Quick-buy modal: the results step must scroll when there are many ---- */
.quickbuy { max-height: 90vh !important; }
.quickbuy__viewport { min-height: 0 !important; }
.qb-step[data-qb-step="4"] {
  max-height: min(60vh, 460px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
.qb-results { gap: 10px !important; }
/* a subtle grouping heading inside the results list */
.qb-results-group {
  margin: 4px 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-3);
}
.qb-results-group:first-child { margin-top: 0; }
.qb-result--exact { border-color: var(--brand-300, var(--brand-200)); background: var(--brand-50); }

/* ---- Smarter, mobile-friendly sort bar (segmented control) ---- */
.plan-sortbar {
  gap: 10px 12px !important;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.plan-sortbar__btns {
  display: inline-flex !important;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px !important;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.plan-sortbar__btns .pill {
  border: 0 !important;
  background: transparent !important;
  color: var(--text-2) !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.plan-sortbar__btns .pill::before { font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; opacity: .7; }
.plan-sortbar__btns .pill[data-sort="mb"]::before    { content: "\f0c9"; }  /* bars */
.plan-sortbar__btns .pill[data-sort="days"]::before   { content: "\f073"; }  /* calendar */
.plan-sortbar__btns .pill[data-sort="price"]::before  { content: "\f155"; }  /* dollar */
.plan-sortbar__btns .pill.is-active {
  background: var(--brand-500) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(47,107,237,.3);
}
.plan-sortbar__btns .pill.is-active::before { opacity: 1; }
@media (max-width: 560px) {
  .plan-sortbar { flex-direction: column; align-items: stretch; }
  .plan-sortbar__btns { width: 100%; justify-content: space-between; }
  .plan-sortbar__btns .pill { flex: 1 1 auto; justify-content: center; padding: 9px 8px !important; }
}

/* ---- Plan preview card: remove empty space under the data headline ---- */
/* When the data value is short (e.g. "Unlimited" / "100 MB") the big headline
   row left a gap; align the whole compact row's text column to center so the
   title sits right under the data with no dead space. */
.plan-grid--compact .card.plan {
  align-items: center !important;
  row-gap: 2px !important;
}
.plan-grid--compact .card.plan .data { align-self: center !important; }
.plan-grid--compact .card.plan .data small,
.plan-grid--compact .card.plan .data .unit {
  display: inline; font-size: 12px; font-weight: 700; color: var(--text-3); margin-left: 3px;
}

/* ---- Hero: "Instant delivery" badge sits snug directly above the headline ---- */
.hero .hero-copy .eyebrow {
  display: inline-flex !important;
  margin-bottom: 10px !important;   /* tight gap under the badge */
  order: -1;                        /* guarantee it is the first copy element */
}
.hero .hero-copy h1 { margin-top: 0 !important; }
.hero-copy { display: flex; flex-direction: column; }
@media (max-width: 640px) {
  .hero .hero-copy .eyebrow { margin-bottom: 8px !important; }
}

/* ============================================================================
   FINAL v2 — Tariff plan card (country page). Authoritative; appended last.
   Vertical card: TITLE on top, then two columns [ big data | specs list ],
   then a footer row with the real PRICE and the "View plan" button on the
   same baseline. 2 cards per row on desktop, 1 per row on phones.
   ============================================================================ */
.plan-grid--compact {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.plan-grid--compact .card.plan {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  align-items: stretch !important;
  text-align: left !important;
  padding: 18px 18px 16px !important;
  min-height: 0 !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  background: var(--surface) !important;
  box-shadow: 0 2px 10px rgba(15,27,53,.05) !important;
  overflow: hidden !important;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}
.plan-grid--compact .card.plan::after {
  content: "" !important; position: absolute !important; inset: 0 0 auto 0 !important;
  height: 3px !important; background: var(--gradient) !important; opacity: 0 !important;
  transition: opacity .16s ease !important;
}
.plan-grid--compact .card.plan:hover {
  border-color: var(--brand-200) !important;
  box-shadow: 0 14px 32px rgba(15,27,53,.12) !important;
  transform: translateY(-3px) !important;
}
.plan-grid--compact .card.plan:hover::after { opacity: 1 !important; }
.plan-grid--compact .card.plan.featured {
  border-color: var(--brand-300, var(--brand-200)) !important;
  box-shadow: 0 2px 10px rgba(15,27,53,.05), inset 0 3px 0 var(--brand-500) !important;
}

/* Scope eyebrow is no longer shown on the card — it added noise. */
.plan-grid--compact .card.plan .eyebrow { display: none !important; }
.plan-grid--compact .card.plan .plan-desc { display: none !important; }

/* TITLE — top of the card */
.plan-grid--compact .card.plan .meta {
  order: 0 !important;
  margin: 0 0 14px 0 !important;
  font-family: var(--font-head) !important;
  font-size: 17px !important; font-weight: 800 !important; line-height: 1.2 !important;
  color: var(--text) !important;
  white-space: normal !important; overflow: visible !important;
}

/* BODY — two columns: big data (left) | specs list (right) */
.plan-grid--compact .card.plan .plan-body {
  order: 1 !important;
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--brand-50), rgba(255,255,255,.4)) !important;
  border: 1px solid var(--brand-100) !important;
}
.plan-grid--compact .card.plan .data-col {
  display: flex !important; flex-direction: column !important; align-items: flex-start !important;
  padding-right: 14px !important; border-right: 1px solid var(--brand-100) !important;
  min-width: 84px !important;
}
.plan-grid--compact .card.plan .data {
  margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important;
  font-family: var(--font-head) !important; font-weight: 800 !important;
  font-size: 26px !important; line-height: 1 !important; color: var(--text) !important;
  white-space: nowrap !important;
  -webkit-text-fill-color: initial !important; background-clip: border-box !important;
}
.plan-grid--compact .card.plan .data-lbl {
  margin-top: 4px !important;
  font-size: 11px !important; font-weight: 700 !important; letter-spacing: .04em !important;
  text-transform: uppercase !important; color: var(--text-3) !important;
}
.plan-grid--compact .card.plan ul.inc {
  display: flex !important; flex-direction: column !important; gap: 8px !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; list-style: none !important;
}
.plan-grid--compact .card.plan ul.inc li {
  display: flex !important; align-items: center !important; gap: 8px !important;
  margin: 0 !important; padding: 0 !important;
  font-size: 13px !important; font-weight: 600 !important; color: var(--text-2) !important;
  line-height: 1.25 !important;
}
.plan-grid--compact .card.plan ul.inc li .tick {
  display: inline-grid !important; place-items: center !important;
  flex: none !important; width: 20px !important; height: 20px !important;
  border-radius: 6px !important; background: #fff !important; border: 1px solid var(--brand-100) !important;
  color: var(--brand-500) !important; font-size: 10px !important;
}

/* FOOTER — real price (left) + View button (right), same baseline */
.plan-grid--compact .card.plan .plan-foot {
  order: 2 !important;
  display: flex !important; align-items: center !important; justify-content: space-between !important;
  gap: 12px !important; margin-top: 16px !important;
}
.plan-grid--compact .card.plan .price {
  margin: 0 !important; padding: 0 !important; text-align: left !important;
  font-family: var(--font-head) !important; font-weight: 800 !important;
  font-size: 24px !important; color: var(--brand-600) !important; white-space: nowrap !important;
}
.plan-grid--compact .card.plan .price::before { content: none !important; display: none !important; }
.plan-grid--compact .card.plan .btn,
.plan-grid--compact .card.plan .btn-block {
  width: auto !important; margin: 0 !important;
  padding: 11px 20px !important; white-space: nowrap !important; flex: none !important;
}
.plan-grid--compact .card.plan .ribbon {
  top: 12px !important; right: 12px !important; left: auto !important; bottom: auto !important;
}

/* Tablet/phone: single column of cards (one per row). */
@media (max-width: 760px) {
  .plan-grid--compact { grid-template-columns: 1fr !important; }
}

/* ============================================================================
   FINAL v2 — Wider page body on phones for the Country & Plan pages, so plan
   cards get more room. Trim the big side gutters of the content container.
   ============================================================================ */
@media (max-width: 640px) {
  body[data-page="country"] .container,
  body[data-page="plan"] .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  /* The grouping accordion wrapper also hugged the edges with its own padding. */
  body[data-page="country"] .plan-group > .plan-grid,
  body[data-page="plan"] .plan-group > .plan-grid {
    padding: 10px !important;
  }
}

/* ============================================================================
   FINAL v2 — Country page hero: flag + title strictly share one line, and the
   title wraps/scales inside the card on phones instead of being clipped.
   ============================================================================ */
.page-head h1 {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;      /* flag + title on the same baseline */
  flex-wrap: nowrap !important;        /* flag never drops below the title */
  gap: 14px !important;
  min-width: 0 !important;
}
.page-head h1 .flag {
  flex: none !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 0 !important;
}
.page-head h1 .flag .flag-img,
.page-head h1 .flag img {
  display: block !important;
  width: clamp(34px, 7vw, 52px) !important;
  height: auto !important;
}
/* The title text takes the remaining width and wraps to as many lines as it
   needs — it never overflows or gets clipped by the card. */
.page-head h1 > :not(.flag),
.page-head h1 {
  min-width: 0 !important;
}
.page-head h1 {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
/* TASK A — the title span is the second flex child; it takes remaining width
   and wraps/scales so it is never clipped on small cards. */
.page-head h1 .page-head__title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
@media (max-width: 560px) {
  .page-head { padding: 24px 18px !important; }
  .page-head h1 { font-size: clamp(22px, 6.4vw, 30px) !important; gap: 10px !important; }
  .page-head .sub { font-size: 15px !important; }
}

/* ============================================================================
   TASK B — Plan sort bar: explicit ASC/DESC caret inside each pill.
   The caret element (.pill__dir) lives inside every button.pill[data-sort].
   It is hidden on inactive pills and revealed (opacity 1) only on the active
   one; app.js swaps the FontAwesome icon class to show up/down direction.
   ============================================================================ */
.pill__dir { margin-left: 6px; opacity: 0; font-size: 11px; transition: opacity .15s ease; }
.pill.is-active .pill__dir { opacity: 1; }
/* Keep label + caret on one line within each pill. */
.plan-sortbar .pill { display: inline-flex; align-items: center; }

/* ============================================================================
   FINAL v2 — Home (mobile): kill the white strip that appeared above the hero.
   On phones `main.site-main` gets padding-top (to clear the fixed header). The
   home hero must stretch up THROUGH that padding so its gradient reaches the
   header edge — otherwise the bare padding shows as a white band. We pull the
   hero up by the header height and add matching internal padding so the hero
   copy still clears the header. Scoped to the home page only (data-page="").
   ============================================================================ */
@media (max-width: 900px) {
  body[data-page=""] .site-main > .hero:first-child {
    margin-top: calc(-1 * var(--header-h)) !important;
    padding-top: calc(var(--header-h) + 20px) !important;
  }
  /* TASK D - belt & suspenders: neutralize any residual top gap/background
     above the home hero so no white band shows under the fixed header. */
  body[data-page=""] .site-main { background: transparent !important; }
  body[data-page=""] .hero { margin-top: calc(-1 * var(--header-h)) !important; }
}

/* ============================================================================
   FINAL v2 — Home: "Our partners" heading above the logo marquee, and a
   tighter gap between the partners strip and the Popular destinations block.
   ============================================================================ */
.home-partners { padding-top: 10px !important; padding-bottom: 0 !important; }
.home-partners__title {
  text-align: center;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 18px;
}
/* Pull the destinations section up so it sits closer to the partners strip. */
.home-popular.home-popular--lead { padding-top: 28px !important; }
@media (max-width: 640px) {
  .home-partners { padding-top: 6px !important; }
  .home-partners__title { font-size: 12px; margin-bottom: 12px; }
  .home-popular.home-popular--lead { padding-top: 18px !important; }
}

/* ============================================================================
   FINAL v2 — Plan page: nicer Data / Validity / Total stat cards, especially
   on mobile (crisp mini-cards in a row that stays readable, then 3-up grid).
   ============================================================================ */
.plan-stats {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin: 0 0 24px !important;
}
.plan-stats .card {
  display: flex !important; flex-direction: column !important; gap: 6px !important;
  align-items: flex-start !important;
  padding: 16px !important;
  border: 1px solid var(--border) !important; border-radius: 14px !important;
  background: linear-gradient(160deg, var(--brand-50), #fff) !important;
  box-shadow: 0 2px 8px rgba(15,27,53,.04) !important;
}
.plan-stats .card .eyebrow {
  margin: 0 !important;
  font-size: 10px !important; font-weight: 800 !important; letter-spacing: .07em !important;
  text-transform: uppercase !important; color: var(--text-3) !important;
}
.plan-stats .card .stat-val {
  font-family: var(--font-head) !important; font-weight: 800 !important;
  font-size: clamp(18px, 4.5vw, 24px) !important; line-height: 1.05 !important;
  white-space: nowrap !important;
}
@media (max-width: 480px) {
  /* Three narrow phones: keep the 3-up row but tighten it so values fit. */
  .plan-stats { gap: 8px !important; }
  .plan-stats .card { padding: 12px 10px !important; align-items: center !important; text-align: center !important; }
  .plan-stats .card .stat-val { font-size: 16px !important; }
}

/* ============================================================================
   FINAL v2 — Plan page: mobile sticky purchase bar (price + Buy). Pinned to the
   bottom; hidden on desktop. Floating corner buttons (quick-buy, chat,
   back-to-top) are lifted above it on the plan page so nothing overlaps.
   ============================================================================ */
.plan-buybar { display: none; }          /* desktop: the sticky buy card covers it */
@media (max-width: 900px) {
  .plan-buybar {
    display: flex !important; align-items: center; gap: 14px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 360;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(15,27,53,.12);
  }
  .plan-buybar__info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
  .plan-buybar__price { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--brand-600); line-height: 1.1; }
  .plan-buybar__meta { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .plan-buybar__btn { flex: none; padding: 12px 22px !important; }

  /* Lift the corner FAB stack above the buy bar ONLY on the plan page. */
  body[data-page="plan"] .quickbuy-fab { bottom: calc(20px + 64px) !important; }
  body[data-page="plan"] .support-fab  { bottom: calc(20px + 64px + 60px) !important; }
  body[data-page="plan"] #backToTop,
  body[data-page="plan"] .back-to-top { bottom: calc(84px + 64px) !important; }
}

/* ============================================================================
   TASK C — Plan page: compact/cleaner stat cards on phones + robust guarantee
   that the floating quick-buy FAB is lifted above the sticky .plan-buybar so
   they never overlap. The FAB element is <button class="quickbuy-fab"
   data-quickbuy-open> (see layout_footer.php). We expose the buybar height as
   a CSS variable (--buybar-h) and lift the FAB by it using :has(), which works
   regardless of the page's data-page value. The data-page rules above remain
   as a fallback for browsers without :has() support.
   ============================================================================ */
@media (max-width: 640px) {
  /* Compact 3-up stat row: tighter padding, centered text, smaller eyebrow,
     and clamp()-scaled values so Data/Validity/Total never overflow. */
  .plan-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .plan-stats .card {
    padding: 12px 8px !important;
    align-items: center !important;
    text-align: center !important;
    border-radius: 14px !important;
  }
  .plan-stats .card .eyebrow {
    font-size: 9px !important;
    letter-spacing: .06em !important;
    margin-bottom: 2px !important;
  }
  .plan-stats .card .stat-val {
    font-size: clamp(13px, 4.2vw, 18px) !important;
    white-space: nowrap !important;
  }
}

/* The sticky buy bar carries its own height as a variable so FABs can offset
   by exactly the right amount. Height matches the mobile padding/content. */
.plan-buybar { --buybar-h: 76px; }

/* Primary (modern) rule: whenever the buy bar is present in the DOM, lift the
   quick-buy FAB above it. Works on any page, not just data-page="plan". */
body:has(.plan-buybar) .quickbuy-fab {
  bottom: calc(var(--buybar-h, 76px) + 16px) !important;
}
/* Lift the back-to-top FAB too so the stack stays clear of the buy bar. */
body:has(.plan-buybar) #toTop {
  bottom: calc(var(--buybar-h, 76px) + 80px) !important;
}
/* Lift the support launcher above the buy bar too (it stacks above quickbuy-fab). */
body:has(.plan-buybar) .support-fab {
  bottom: calc(var(--buybar-h, 76px) + 16px + 60px) !important;
}

/* ============================================================================
   SUPPORT LIVE-CHAT WIDGET — launcher FAB + chat panel
   The launcher <button class="support-fab" data-support-open> is a sibling of
   the quick-buy FAB in layout_footer.php. The quick-buy FAB sits at
   right:20px; bottom:20px (z-index:350). We stack the support FAB directly
   ABOVE it in the same bottom-right corner so the two never overlap. The whole
   widget (panel + state) lives under <div class="support-widget"
   data-support-root ...> which also carries the data-support-url + data-csrf
   contract read by the JS in app.js.
   ============================================================================ */

/* ---------- Launcher FAB (circular, gradient, pulse ring) ---------- */
.support-fab {
  position: fixed; right: 20px; bottom: calc(20px + 60px); z-index: 351;
  width: 60px; height: 60px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: var(--gradient); color: #fff;
  box-shadow: 0 12px 30px rgba(47,107,237,.45);
  transition: transform .2s ease, box-shadow .2s ease;
  isolation: isolate;
}
.support-fab i { font-size: 24px; line-height: 1; position: relative; z-index: 2; }
.support-fab:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(47,107,237,.55); }
.support-fab:focus-visible { outline: 3px solid var(--brand-200); outline-offset: 3px; }

/* Gentle attention pulse ring behind the circle. */
.support-fab__ring {
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(47,107,237,.45);
  animation: supportFabPulse 2.4s ease-out infinite;
}
@keyframes supportFabPulse {
  0%   { box-shadow: 0 0 0 0 rgba(47,107,237,.45); }
  70%  { box-shadow: 0 0 0 14px rgba(47,107,237,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,107,237,0); }
}

/* When the panel is open, flip the launcher icon to a down-chevron feel via a
   subtle rotate and stop the pulse so it reads as "active". */
.support-widget.is-open .support-fab { transform: none; }
.support-widget.is-open .support-fab__ring { animation: none; }

/* ---------- Chat panel (modern card) ---------- */
.support-panel {
  position: fixed; right: 20px; bottom: calc(20px + 60px + 74px); z-index: 352;
  width: 360px; max-width: calc(100vw - 24px);
  max-height: 70vh; min-height: 0;
  display: none; flex-direction: column; overflow: hidden;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(10,18,40,.28);
  transform: translateY(14px) scale(.98); opacity: 0;
  transform-origin: bottom right;
  transition: transform .24s cubic-bezier(.22,1,.36,1), opacity .2s ease;
}
.support-widget.is-open .support-panel {
  display: flex; transform: translateY(0) scale(1); opacity: 1;
}

/* Header — gradient bar with avatar, title, online dot and close. */
.support-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; color: #fff;
  background: var(--gradient);
}
.support-panel__ident { display: flex; align-items: center; gap: 11px; min-width: 0; }
.support-panel__avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px;
  background: rgba(255,255,255,.18); color: #fff;
}
.support-panel__titles { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.support-panel__title { font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.support-panel__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; opacity: .92; }
.support-panel__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: supportDotPulse 2s ease-out infinite;
}
@keyframes supportDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
  70%  { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.support-panel__close {
  flex: none; width: 32px; height: 32px; border: none; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; font-size: 15px;
  background: rgba(255,255,255,.16); color: #fff; transition: background .15s;
}
.support-panel__close:hover { background: rgba(255,255,255,.3); }

/* Messages area — scrollable, bubbles. */
.support-panel__messages {
  flex: 1 1 auto; min-height: 160px; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface-2);
  overscroll-behavior: contain;
}
.support-empty {
  margin: auto; max-width: 260px; text-align: center;
  color: var(--text-3); font-size: 13.5px; line-height: 1.55;
}

.support-msg { max-width: 82%; display: flex; flex-direction: column; gap: 4px; }
.support-msg__bubble {
  padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45;
  white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere;
}
.support-msg__time { font-size: 10.5px; color: var(--text-3); padding: 0 4px; }

/* Visitor — right aligned, brand gradient bubble. */
.support-msg--visitor { align-self: flex-end; align-items: flex-end; }
.support-msg--visitor .support-msg__bubble {
  background: var(--gradient); color: #fff; border-bottom-right-radius: 5px;
}
/* Operator / system — left aligned, surface bubble. */
.support-msg--operator,
.support-msg--system { align-self: flex-start; align-items: flex-start; }
.support-msg--operator .support-msg__bubble {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-bottom-left-radius: 5px;
}
.support-msg--system .support-msg__bubble {
  background: transparent; color: var(--text-3);
  border: 1px dashed var(--border); font-size: 12.5px; text-align: center;
}

/* Attachment thumbnails inside a bubble. */
.support-msg__attach {
  display: block; margin-top: 8px; max-width: 200px;
  border-radius: 10px; overflow: hidden; line-height: 0;
}
.support-msg__attach img {
  display: block; width: 100%; height: auto; max-height: 180px; object-fit: cover;
  border-radius: 10px; cursor: zoom-in;
}

/* Composer. */
.support-composer {
  flex: none; border-top: 1px solid var(--border); background: var(--surface);
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px;
}
.support-composer__error {
  margin: 0 2px; padding: 8px 10px; border-radius: 10px;
  background: #fff1f2; color: #b91c1c; border: 1px solid #fecaca;
  font-size: 12.5px;
}
.support-composer__preview {
  position: relative; align-self: flex-start;
  width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
}
.support-composer__preview-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.support-composer__preview-remove {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px;
  border: none; border-radius: 50%; cursor: pointer; font-size: 11px;
  background: rgba(15,27,53,.72); color: #fff; display: grid; place-items: center;
}
.support-composer__preview-remove:hover { background: rgba(15,27,53,.9); }

.support-composer__row { display: flex; align-items: flex-end; gap: 8px; }
.support-composer__attach {
  flex: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 16px;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.support-composer__attach:hover { background: var(--brand-50); color: var(--brand-600); }
.support-composer__input {
  flex: 1 1 auto; min-width: 0; resize: none; max-height: 120px;
  padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.4;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
}
.support-composer__input:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 3px var(--brand-50); }
.support-composer__send {
  flex: none; width: 40px; height: 40px; border: none; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center; font-size: 15px;
  color: #fff; background: var(--gradient);
  box-shadow: 0 6px 16px rgba(47,107,237,.4); transition: transform .15s, opacity .15s;
}
.support-composer__send:hover { transform: translateY(-1px); }
.support-composer__send:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Mobile: near-fullscreen bottom-anchored panel ---------- */
@media (max-width: 560px) {
  .support-panel {
    right: 12px; left: 12px; bottom: 12px;
    width: auto; max-width: none;
    /* Use the dynamic viewport height so the panel tracks the VISIBLE area
       (excludes the mobile browser URL bar) instead of the larger 100vh,
       which made the panel too tall and pushed its top off-screen.
       100vh is kept first as a fallback for browsers without dvh. */
    max-height: calc(100vh - 24px);
    height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    height: calc(100dvh - 24px);
    border-radius: 16px;
  }
  .support-fab { right: 16px; bottom: calc(16px + 60px); }
}

/* ---------- Respect reduced-motion for the pulse / panel transition ---------- */
@media (prefers-reduced-motion: reduce) {
  .support-fab__ring,
  .support-panel__dot { animation: none !important; }
  .support-panel { transition: none !important; }
}

/* ============================================================================
   TASK D — Home: tighten the gap between the partners marquee and the next
   "Popular destinations" block on ALL breakpoints (not just mobile). The hero
   white-strip fix already lives in the FINAL v2 home block above.
   ============================================================================ */
.home-partners { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.home-popular.home-popular--lead { padding-top: 16px !important; }
@media (max-width: 640px) {
  .home-partners { padding-bottom: 0 !important; margin-bottom: 0 !important; }
  .home-popular.home-popular--lead { padding-top: 12px !important; }
}

/* ===== Checkout v2 (cart) ===== */
.co-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}
.co-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.co-card { padding: 22px 24px; }
.co-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 16px;
  color: var(--text);
}
.co-bonus {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 14px;
}
.co-bonus input { width: 18px; height: 18px; accent-color: var(--brand-600); }

/* Payment method radio cards (reuse the existing pay-opt pattern) */
.co-pay { display: flex; gap: 12px; flex-wrap: wrap; }
.co-pay .pay-opt {
  flex: 1 1 150px;
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.co-pay .pay-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.co-pay .pay-opt__body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
}
.co-pay .pay-opt__body i { color: var(--brand-600); font-size: 18px; }
.co-pay .pay-opt:hover { border-color: var(--brand-200); }
.co-pay .pay-opt input:checked + .pay-opt__body { color: var(--text); }
.co-pay .pay-opt:has(input:checked) {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
  background: var(--brand-50);
}
.co-crypto__hint { font-size: 12px; color: var(--text-3); margin: 8px 0 0; }
.co-login-hint { font-size: 13px; color: var(--text-3); margin: 2px 0 0; }
.co-login-hint a { color: var(--brand-600); font-weight: 700; }

.co-alert { padding: 16px; border-color: #fca5a5; margin-bottom: 20px; }
.co-alert p { color: #b91c1c; margin: 0; }
.co-alert p + p { margin-top: 6px; }

/* Sticky order summary */
.co-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.co-summary { padding: 22px 24px; }
.co-summary__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 16px;
}
.co-lines { display: flex; flex-direction: column; gap: 14px; }
.co-line { display: flex; align-items: flex-start; gap: 12px; }
.co-line__media { flex: 0 0 auto; }
.co-line__media img, .co-line__media .flag img {
  width: 34px; height: 24px; border-radius: 4px; object-fit: cover; display: block;
}
.co-line__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.co-line__title { font-weight: 600; font-size: 14px; color: var(--text); }
.co-line__meta { font-size: 12px; color: var(--text-3); }
.co-line__qty { font-size: 12px; color: var(--text-2); }
.co-line__price { font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; }

.co-totals { margin: 16px 0 4px; padding-top: 16px; border-top: 1px solid var(--border); }
.co-totals__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.co-totals__row--neg span:last-child { color: var(--accent-600); }
.co-totals__grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 18px;
  font-weight: 800;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.co-totals__grand .text-grad { font-family: var(--font-head); font-size: 22px; }
.co-submit { margin-top: 18px; }

.co-trust {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.co-trust li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.co-trust li i { color: var(--accent-500); width: 16px; text-align: center; }
.co-currency { font-size: 12px; color: var(--text-3); margin: 12px 0 0; }

/* Thank-you state */
.co-thanks { max-width: 760px; margin: 0 auto; }
.co-thanks__head { padding: 32px; text-align: center; }
.co-thanks__icon { font-size: 56px; color: var(--accent-500); }
.co-esims {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.co-esim { padding: 20px; text-align: center; }
.co-esim__title { font-family: var(--font-head); font-weight: 700; font-size: 15px; margin: 0 0 14px; }
.co-esim__qr img { width: 100%; max-width: 180px; height: auto; border-radius: var(--radius-sm); }
.co-esim__lpa {
  font-family: monospace;
  font-size: 12px;
  word-break: break-all;
  color: var(--text-2);
  margin: 12px 0 0;
}
.co-thanks__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---- Checkout v2 polish: fill gaps between markup + styles ---- */

/* Alert now renders an icon + a message body */
.co-alert { display: flex; align-items: flex-start; gap: 12px; }
.co-alert__icon { color: #b91c1c; font-size: 18px; line-height: 1.5; flex: 0 0 auto; }
.co-alert__body { min-width: 0; }
.co-alert__msg { color: #b91c1c; margin: 0; }
.co-alert__msg + .co-alert__msg { margin-top: 6px; }

/* LEFT cart item list (distinct from the right summary .co-line*) */
.co-items__list { display: flex; flex-direction: column; gap: 14px; }
.co-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.co-item__media { flex: 0 0 auto; }
.co-item__media img, .co-item__media .flag img {
  width: 40px; height: 28px; border-radius: 4px; object-fit: cover; display: block;
}
.co-item__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.co-item__title { font-weight: 700; font-size: 14px; color: var(--text); }
.co-item__meta { font-size: 12px; color: var(--text-3); }
.co-item__qty { font-size: 12px; color: var(--text-2); }
.co-item__price { font-weight: 800; font-size: 15px; color: var(--text); white-space: nowrap; }

/* Promo code: input + inline apply button */
.co-promo-row { display: block; }
.co-promo { display: flex; gap: 10px; align-items: stretch; }
.co-promo__input { flex: 1 1 auto; text-transform: uppercase; }
.co-promo__input::placeholder { text-transform: none; }
.co-promo__apply { flex: 0 0 auto; white-space: nowrap; }

/* Payment option inner label + selected check */
.pay-opt__label { flex: 1 1 auto; }
.pay-opt__check { opacity: 0; color: var(--brand-600); transition: opacity .2s ease; }
.co-pay .pay-opt:has(input:checked) .pay-opt__check { opacity: 1; }

/* Crypto picker + currency note */
.co-crypto { margin-top: 14px; }
.co-currency--note { text-align: center; text-transform: uppercase; letter-spacing: .04em; }

/* Sticky summary wrapper */
.co-aside__sticky { position: sticky; top: calc(var(--header-h) + 16px); }

/* Thank-you / success polish */
.co-success-card {
  background:
    radial-gradient(120% 120% at 50% -20%, var(--brand-50), transparent 60%),
    var(--surface);
}
.co-thanks__badge {
  width: 72px; height: 72px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--accent-500);
  font-size: 40px;
}
.co-thanks__heading { margin: 0 0 6px; }
.co-thanks__ref { margin: 0 0 4px; }
.co-thanks__email { font-size: 13px; color: var(--text-3); margin: 0; }

/* Collapse to a single column and un-stick the summary on small screens. */
@media (max-width: 860px) {
  .co-layout { grid-template-columns: 1fr; }
  .co-aside { position: static; top: auto; }
  .co-aside__sticky { position: static; top: auto; }
}

/* ===== Home hero mobile white-strip fix (authoritative, v2) ===== */
/* Scoped to phones/tablets AND the home page only (body[data-page=""]).
   The mobile header is position:fixed, so .site-main carries a padding-top
   equal to the header height to clear it. The previous attempt pulled the
   hero up with a HARDCODED -64px !important on a broad selector, which
   over-pulled the whole page under the fixed header on breakpoints where the
   real header height differs (symptom: "only the menu is visible"). This v2
   makes the compensation self-correcting: the hero is pulled up by EXACTLY
   the live --header-h (so it always equals .site-main's own padding-top,
   whatever that resolves to per breakpoint) and re-adds the same amount of
   internal padding so the hero copy still clears the header. The hero also
   gets an opaque light-brand top so no white band shows. We only target the
   hero that is the FIRST child of .site-main (never a broad body .hero), so
   nested/other heroes are never shifted. Desktop (min-width:901px, where the
   header is sticky/in-flow) and non-home pages are untouched. */
@media (max-width: 900px) {
  body[data-page=""] .site-main {
    background: transparent !important;
  }
  body[data-page=""] .site-main > .hero:first-child {
    margin-top: calc(-1 * var(--header-h)) !important;
    padding-top: calc(var(--header-h) + 20px) !important;
    overflow: hidden;
    /* Light brand gradient — opaque and NOT white at the very top, so the
       area behind the fixed mobile header is always covered. */
    background: linear-gradient(135deg, #e6eeff 0%, #eff4ff 46%, #edf4ff 100%) !important;
  }
}

/* ============================================================================
   Country / Plan page — plan-card footer actions ("Add to cart" + "View").
   The footer holds TWO buttons inside .plan-foot__actions; earlier rules were
   written for a single CTA, so the pair looked mismatched and could wrap. Keep
   them on ONE line, smaller, and equal height. Placed last to win the cascade.
   ============================================================================ */
.plan-grid--compact .card.plan .plan-foot__actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;      /* never wrap to a second line */
  gap: 8px !important;
  flex: 0 0 auto !important;
}
.plan-grid--compact .card.plan .plan-foot__actions .btn {
  /* Compact + identical sizing for BOTH buttons (overrides btn-sm vs full). */
  width: auto !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
/* Trim the cart-icon gap so the compact button stays tight. */
.plan-grid--compact .card.plan .plan-foot__actions .btn i { margin-right: 4px; }

/* Very narrow phones: shrink a touch more but still keep them side by side. */
@media (max-width: 380px) {
  .plan-grid--compact .card.plan .plan-foot__actions { gap: 6px !important; }
  .plan-grid--compact .card.plan .plan-foot__actions .btn {
    padding: 7px 10px !important;
    font-size: 12.5px !important;
  }
}

/* ============================================================================
   CART PAGE — full styling (markup was previously unstyled: cart-grid,
   cart-line*, cart-qty*, cart-summary*, cart-empty*).
   ============================================================================ */
.cart-container { max-width: 1040px; }
.cart-page-title { margin-bottom: 22px; }

.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.cart-lines { padding: 8px 10px; display: flex; flex-direction: column; }

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 14px;
}
.cart-line + .cart-line { border-top: 1px solid var(--border); }

.cart-line__info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cart-line__info img, .cart-line__info .flag img {
  width: 44px; height: 30px; border-radius: 5px; object-fit: cover; display: block; flex: none;
}
.cart-line__title {
  display: block; font-weight: 700; font-size: 15px; color: var(--text);
  text-decoration: none; line-height: 1.25;
}
.cart-line__title:hover { color: var(--brand-600); }
.cart-line__meta { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* Quantity stepper */
.cart-qty {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface);
}
.cart-qty__btn {
  width: 34px; height: 34px; border: none; background: var(--surface-2);
  color: var(--text-2); font-size: 16px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .15s, color .15s;
}
.cart-qty__btn:hover { background: var(--brand-50); color: var(--brand-600); }
.cart-qty__val {
  width: 42px; height: 34px; border: none; text-align: center;
  font-weight: 700; font-size: 14px; color: var(--text); background: var(--surface);
  -moz-appearance: textfield;
}
.cart-qty__val:focus { outline: none; }

.cart-line__price { text-align: right; white-space: nowrap; }
.cart-line__price strong { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--text); }
.cart-line__unit { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.cart-line__remove { margin: 0; }
.cart-remove-btn {
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-3);
  display: grid; place-items: center; font-size: 14px;
  transition: background .15s, color .15s, border-color .15s;
}
.cart-remove-btn:hover { background: #fff1f2; color: #e11d48; border-color: #fecaca; }

/* Cart summary (sticky on desktop) */
.cart-summary {
  padding: 22px 24px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.cart-summary__title { font-family: var(--font-head); font-weight: 800; font-size: 16px; margin: 0 0 16px; }
.cart-summary__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--text-2); margin-bottom: 10px;
}
.cart-summary__sep { border: none; border-top: 1px solid var(--border); margin: 6px 0 14px; }
.cart-summary__row--total { font-size: 16px; color: var(--text); margin-bottom: 0; }
.cart-summary__row--total strong { font-family: var(--font-head); font-size: 22px; color: var(--brand-600); }
.cart-summary__cta { margin-top: 18px; }
.cart-summary__clear { margin: 10px 0 0; }
.cart-summary__clearbtn { color: var(--text-3); }
.cart-summary__currency {
  text-align: center; font-size: 12px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 0;
}

/* Empty cart state (was completely unstyled) */
.cart-empty { max-width: 460px; margin: 10px auto 0; padding: 44px 28px; text-align: center; }
.cart-empty__icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px;
  background: var(--brand-50); color: var(--brand-500);
}
.cart-empty__text { margin: 0 0 20px; }

/* Add-to-cart button feedback states (JS toggles these classes) */
[data-add-to-cart].is-loading, [data-buy-now].is-loading { opacity: .65; pointer-events: none; }
[data-add-to-cart].is-added { background: var(--accent-500) !important; border-color: var(--accent-500) !important; color: #fff !important; }

@media (max-width: 760px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; top: auto; }
  .cart-line {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "info   remove"
      "qty    price";
    row-gap: 12px;
  }
  .cart-line__info   { grid-area: info; }
  .cart-line__remove { grid-area: remove; justify-self: end; }
  .cart-line__qty    { grid-area: qty; }
  .cart-line__price  { grid-area: price; justify-self: end; }
}

/* ============================================================================
   CHECKOUT PAGE — extra polish on top of the earlier "Checkout v2" styles.
   ============================================================================ */
.checkout-page-title { margin-bottom: 22px; }
.co-card {
  border-radius: 16px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.co-card:hover { border-color: var(--brand-200); }
.co-card__title {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
/* Slight lift + brand ring on the item rows and summary. */
.co-item { transition: border-color .15s ease, box-shadow .15s ease; }
.co-item:hover { border-color: var(--brand-200); box-shadow: 0 4px 14px rgba(10,18,40,.06); }
.co-summary {
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(10,18,40,.10);
  border-color: var(--brand-100);
}
.co-promo__input { height: 44px; }
.co-promo__apply { height: 44px; display: inline-flex; align-items: center; }
.co-submit { box-shadow: 0 10px 26px rgba(47,107,237,.35); }

/* ============================================================================
   CHECKOUT SUCCESS / THANK-YOU — modern, structured QR layout.
   ============================================================================ */
.co-thanks { max-width: 820px; }
.co-success-card {
  padding: 40px 32px 34px;
  border-radius: 20px;
  border-color: var(--brand-100);
  box-shadow: 0 24px 60px rgba(10,18,40,.12);
}
.co-thanks__badge {
  width: 84px; height: 84px; font-size: 46px;
  box-shadow: 0 0 0 10px var(--brand-50);
  animation: coBadgePop .45s cubic-bezier(.22,1,.36,1);
}
@keyframes coBadgePop {
  0%   { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.co-thanks__heading { font-size: 26px; }
.co-thanks__ref { font-size: 15px; }
.co-thanks__ref strong { color: var(--brand-600); }

/* QR cards: cleaner grid, framed QR, copyable LPA. */
.co-esims { margin-top: 24px; }
.co-esim {
  padding: 22px 20px 20px;
  border-radius: 16px;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.co-esim:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(10,18,40,.12); }
.co-esim__title { margin: 0 0 16px; }
.co-esim__qr {
  padding: 12px; border-radius: 14px; background: #fff;
  border: 1px solid var(--border); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
  line-height: 0;
}
.co-esim__lpa {
  width: 100%; margin-top: 14px; padding: 10px 12px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; color: var(--text-2); word-break: break-all; text-align: center;
}
.co-thanks__cta { margin-top: 28px; }

/* ============================================================================
   CRYPTO PAYMENT PAGE (checkout/crypto) — design-system styling + auto-poll UI.
   Replaces the old inline-styled markup.
   ============================================================================ */
.cp-container { max-width: 560px; }
.cp-head { text-align: center; margin-bottom: 20px; }
.cp-head__title { margin: 0 0 6px; }
.cp-head__sub { margin: 0 auto; max-width: 440px; }

.cp-pay { padding: 24px; border-radius: 18px; box-shadow: 0 18px 44px rgba(10,18,40,.10); }

/* Live status pill */
.cp-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 auto 16px; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 12.5px; font-weight: 700;
}
.cp-status { display: flex; width: max-content; }
.cp-status__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand-500);
  box-shadow: 0 0 0 0 rgba(47,107,237,.5); animation: cpPulse 1.6s ease-out infinite;
}
@keyframes cpPulse {
  0% { box-shadow: 0 0 0 0 rgba(47,107,237,.5); }
  70% { box-shadow: 0 0 0 8px rgba(47,107,237,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,107,237,0); }
}

/* Countdown */
.cp-countdown { text-align: center; margin-bottom: 18px; }
.cp-countdown__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3);
}
.cp-countdown__time {
  font-family: var(--font-head); font-size: 38px; font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--brand-600); line-height: 1.1; margin-top: 2px;
}

/* Amount to send */
.cp-amount { text-align: center; padding: 16px; margin-bottom: 18px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; }
.cp-amount__label { margin: 0 0 6px; font-size: 13px; color: var(--text-2); }
.cp-amount__value { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--text); }
.cp-amount__code { color: var(--brand-600); }
.cp-amount__usd { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }
.cp-amount__hint { margin: 6px 0 0; font-size: 12px; color: var(--text-3); }
.cp-tag {
  display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.cp-tag--free { background: #ecfdf5; color: var(--accent-600); }
.cp-tag--fee { background: var(--brand-50); color: var(--brand-700); }

/* QR */
.cp-qr {
  margin: 0 auto 18px; padding: 14px; width: max-content;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; line-height: 0;
}
.cp-qr img { width: 190px; height: 190px; display: block; border-radius: 8px; }
.cp-qr--esim img { width: 180px; height: 180px; }

/* Wallet address + copy */
.cp-wallet { margin-bottom: 16px; }
.cp-wallet__label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.cp-wallet__row { display: flex; gap: 8px; }
.cp-wallet__input { flex: 1 1 auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.cp-wallet__copy { flex: none; padding: 0 14px; }

/* Auto-detect note */
.cp-autonote {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin: 0 0 16px; padding: 10px 12px; border-radius: 10px;
  background: var(--brand-50); color: var(--brand-700); font-size: 12.5px; text-align: center;
}
.cp-spin { animation: cpSpin 1.6s linear infinite; }
@keyframes cpSpin { to { transform: rotate(360deg); } }

.cp-form__row { margin-bottom: 12px; }
.cp-form__label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.cp-form__input { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cp-cancel { margin-top: 10px; }

/* Done states (confirmed / expired) */
.cp-done { max-width: 520px; margin: 0 auto; padding: 36px 28px; text-align: center; border-radius: 18px; }
.cp-done--ok { border-color: var(--brand-100); box-shadow: 0 20px 50px rgba(10,18,40,.12); }
.cp-done--warn { border-color: #fde68a; }
.cp-done__badge {
  width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 42px;
}
.cp-done__badge--ok { background: #ecfdf5; color: var(--accent-500); box-shadow: 0 0 0 10px rgba(16,185,129,.08); }
.cp-done__badge--warn { background: #fffbeb; color: #f59e0b; box-shadow: 0 0 0 10px rgba(245,158,11,.08); }
.cp-done__title { margin: 0 0 6px; }
.cp-done__ref { margin: 0 auto 6px; }
.cp-done__ref strong { color: var(--brand-600); }
.cp-done__email { font-size: 13px; color: var(--text-3); margin: 0; }
.cp-done__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.cp-qr--esim { margin-top: 20px; }
.cp-lpa {
  max-width: 420px; margin: 14px auto 0; padding: 10px 12px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; color: var(--text-2); word-break: break-all; text-align: center;
}

/* ---------------------------------------------------------------------------
   eSIM install card (QRSIM-style): one-tap install buttons + QR + manual.
   Reusable partial _esim_install.php — used on checkout thank-you, crypto
   confirmation and the "My eSIMs" account page.
--------------------------------------------------------------------------- */
.esim-install {
  margin-top: 18px; padding: 20px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2);
}
.esim-install__title {
  margin: 0 0 6px; font-family: var(--font-head); font-weight: 800;
  font-size: 18px; color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.esim-install__title i { color: var(--brand-500); }
.esim-install__hint {
  margin: 0 auto 16px; max-width: 420px;
  font-size: 13px; line-height: 1.5; color: var(--text-2);
}
.esim-install__actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  align-items: stretch; margin-bottom: 18px;
}
/* Small, responsive install buttons: share the row evenly, shrink to fit, and
   wrap to two rows only when the container is genuinely too narrow — text never
   spills outside the button. The btn-lg sizing from the markup is overridden
   here so the buttons stay compact. */
.esim-install__btn,
.esim-install__btn.btn-lg {
  flex: 1 1 130px; min-width: 0; max-width: 100%;
  padding: 8px 10px; font-size: clamp(11px, 2.4vw, 13px); border-radius: 9px;
  justify-content: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.esim-install__btn i { margin-right: 6px; flex: none; font-size: .95em; }
.esim-install__qr {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
}
.esim-install__qr img {
  display: block; padding: 10px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.esim-install__scan { margin: 0; font-size: 12px; color: var(--text-3); }
.esim-install__manual {
  margin: 18px auto 0; max-width: 460px; text-align: left;
  border-top: 1px solid var(--border); padding-top: 14px;
}
.esim-install__manual > summary {
  cursor: pointer; font-weight: 700; font-size: 13px; color: var(--text-2);
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.esim-install__manual > summary::-webkit-details-marker { display: none; }
.esim-install__manual > summary i { color: var(--brand-500); }
.esim-install__dl {
  margin: 12px 0 0; display: grid; grid-template-columns: 1fr; gap: 10px;
}
.esim-install__dl dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); margin-bottom: 2px; }
.esim-install__dl dd {
  margin: 0 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.esim-install__dl code {
  flex: 1 1 auto; min-width: 0; padding: 8px 10px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--text); word-break: break-all;
}
.esim-install__copy { flex: 0 0 auto; }
@media (max-width: 480px) {
  /* Very narrow screens: let each button take the full row so long labels like
     "Install on Android" always fit without being clipped. */
  .esim-install__actions { gap: 8px; }
  .esim-install__btn { flex: 1 1 100%; padding: 11px 12px; font-size: 14px; }
}

/* ---------- eSIM: Share link (guest read-only link) ---------- */
.esim-share {
  min-width: 0;
  margin-top: 16px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.esim-share__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.esim-share__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.esim-share__label i { color: var(--brand-500); }
.esim-share__hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}
.esim-share__box {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.esim-share__box[hidden] { display: none; }
.esim-share__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.esim-share__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.esim-share__input:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: var(--ring);
}
.esim-share__row .btn { flex: 0 0 auto; }
.esim-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.esim-share__danger { color: var(--red-500); }
.esim-share__danger:hover {
  border-color: var(--red-500);
  color: var(--red-500);
}

@media (max-width: 520px) {
  .esim-share__row { flex-wrap: wrap; }
  .esim-share__row .btn { flex: 1 1 100%; justify-content: center; }
  .esim-share__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Account: Earnings / profit dashboard ---------- */
.earn-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.earn-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
}
.earn-kpi__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-3);
}
.earn-kpi__label i { color: var(--brand-500); }
.earn-kpi__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  color: var(--text);
}
.earn-kpi__sub { font-size: 12px; color: var(--text-2); }
.earn-kpi--accent .earn-kpi__value { color: var(--accent-600); }
.earn-kpi--accent .earn-kpi__label i { color: var(--accent-500); }
.earn-kpi--neg .earn-kpi__value { color: var(--red-500); }

/* Provider balance card */
.earn-balance {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
  background: var(--surface-2);
}
.earn-balance__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 20px;
}
.earn-balance__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.earn-balance__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-3);
}
.earn-balance__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
}
.earn-balance__value--muted { color: var(--text-3); font-size: 18px; }
.earn-balance__native { font-size: 13px; color: var(--text-2); }
.earn-balance__hint { font-size: 12px; color: var(--text-3); }

/* Orders / earnings table */
.earn-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.earn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.earn-table th,
.earn-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.earn-table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-3);
  background: var(--surface-2);
}
.earn-table tbody tr:last-child td { border-bottom: 0; }
.earn-table tbody tr:hover { background: var(--surface-2); }
.earn-num { text-align: right; font-variant-numeric: tabular-nums; }
.earn-order-no { display: block; font-weight: 600; color: var(--text); }
.earn-date { display: block; font-size: 12px; color: var(--text-3); }
.earn-flag { font-size: 1.1em; }
.earn-profit { font-weight: 700; }
.earn-profit.is-pos { color: var(--accent-600); }
.earn-profit.is-neg { color: var(--red-500); }

.earn-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.earn-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.earn-tag--bonus { background: rgba(16,185,129,.12); color: var(--accent-600); }
.earn-tag--promo { background: var(--brand-50); color: var(--brand-600); }
.earn-tag--none  { color: var(--text-3); font-weight: 500; }

@media (max-width: 860px) {
  .earn-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  /* Stack the table into cards: each cell shows its header via data-label. */
  .earn-table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .earn-table, .earn-table thead, .earn-table tbody, .earn-table tr, .earn-table th, .earn-table td { display: block; }
  .earn-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .earn-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .earn-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    white-space: normal;
    text-align: right;
  }
  .earn-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-3);
    text-align: left;
  }
  .earn-num { text-align: right; }
  .earn-order-no, .earn-date { display: inline; }
  .earn-tags { justify-content: flex-end; }
}

/* ============================================================================
   Partner login-links tiles (standalone partner sign-in) + B2C auth partner
   hint. Scoped to the .pll-* classes and .auth-partner-hint so nothing else
   is affected.
   ============================================================================ */
.pll-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.pll-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pll-tile:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}
.pll-tile i {
  flex: none;
  font-size: 20px;
  color: var(--brand-500);
}
.pll-tile span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
}
.pll-tile b {
  display: block;
  color: var(--text);
}
.pll-primary,
.pll-meta,
.pll-back { text-align: center; }
.pll-meta { font-size: 13px; }
.pll-back { margin-top: 10px; }

.auth-partner-hint {
  text-align: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.auth-partner-hint i { color: var(--brand-500); }
.auth-partner-hint a {
  color: var(--brand-600);
  font-weight: 600;
}

@media (max-width: 480px) {
  .pll-grid { grid-template-columns: 1fr; }
}

/* ---------- Brand logo image (login + partner shell) ---------- */
.brand-logo { display:block; max-height:40px; width:auto; max-width:200px; object-fit:contain; }
.admin-side .brand { display:flex; align-items:center; padding:4px 0 8px; }
.admin-side .brand-logo { max-height:38px; max-width:180px; }
.login-card .brand { display:flex; justify-content:center; margin-bottom:4px; }
.login-card .brand-logo { max-height:44px; max-width:220px; }
.auth-logo-img { display:block; max-height:42px; width:auto; max-width:220px; object-fit:contain; }

/* ============================================================
   Document pages (terms / privacy / support / faq / contact / about)
   Polished, official layout: hero, table of contents, icon section
   cards, and a help call-out. Uses existing design tokens.
   ============================================================ */
.doc-page { padding-top: clamp(18px, 3vw, 34px); }

/* ---- Hero ---- */
.doc-hero {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(26px, 4vw, 42px);
  padding: clamp(26px, 4vw, 44px) clamp(20px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 50% -20%, var(--brand-50) 0%, rgba(255,255,255,0) 60%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.doc-hero .eyebrow { margin: 0 auto 14px; }
.doc-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 14px;
}
.doc-hero__sub {
  max-width: 64ch;
  margin: 0 auto;
  color: var(--text-2);
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  line-height: 1.7;
}
.doc-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
}
.doc-updated i { color: var(--brand-500); }

/* ---- Layout: TOC + main ---- */
.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: flex-start;
  max-width: var(--maxw);
  margin: 0 auto;
}
.doc-layout:only-child { grid-template-columns: minmax(0, 1fr); }

/* ---- Table of contents ---- */
.doc-toc { position: sticky; top: 92px; }
.doc-toc__inner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}
.doc-toc__title {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-3);
}
.doc-toc__title i { color: var(--brand-500); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.doc-toc li { counter-increment: toc; margin: 0; }
.doc-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.doc-toc a:hover { background: var(--brand-50); color: var(--brand-700); }

/* ---- Section cards ---- */
.doc-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.doc-section {
  scroll-margin-top: 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.doc-section:hover { box-shadow: var(--shadow); border-color: var(--brand-200); }
.doc-section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}
.doc-section__icon {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(31,64,173,.28);
}
.doc-section__body > p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.doc-section__body > p:last-child { margin-bottom: 0; }
.doc-section__body .doc-list { margin: 4px 0 0; padding-left: 4px; list-style: none; }
.doc-section__body .doc-list li {
  position: relative;
  padding: 0 0 0 30px;
  margin: 0 0 11px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
}
.doc-section__body .doc-list li:last-child { margin-bottom: 0; }
.doc-section__body .doc-list li::before {
  content: "\f00c"; /* fa-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0; top: 2px;
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 10px;
}

/* ---- Help call-out ---- */
.doc-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius);
  border: 1px solid var(--brand-200);
  background: linear-gradient(135deg, var(--brand-50), var(--surface));
  box-shadow: var(--shadow-sm);
}
.doc-help__icon {
  flex: none;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(31,64,173,.3);
}
.doc-help__text { flex: 1 1 260px; min-width: 0; }
.doc-help__text h3 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--text);
}
.doc-help__text p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.doc-help__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-help__actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.btn.btn-ghost {
  border: 1px solid var(--brand-200);
  background: var(--surface);
  color: var(--brand-700);
  font-weight: 700;
}
.btn.btn-ghost:hover { background: var(--brand-50); border-color: var(--brand-400); }

/* ---- Related links (icons) ---- */
.doc-links { max-width: none; }
.doc-links a { gap: 8px; }
.doc-links a i { color: var(--brand-500); font-size: 13px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; order: -1; top: auto; }
  .doc-toc__inner { padding: 14px; }
}
@media (max-width: 560px) {
  .doc-section__head { gap: 11px; }
  .doc-section__icon { width: 38px; height: 38px; font-size: 15px; }
  .doc-help { flex-direction: column; align-items: flex-start; text-align: left; }
  .doc-help__actions { width: 100%; }
  .doc-help__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   eSIMStock — Partner-program presentation (/partner-program)
   Namespaced pp-* classes. Reuses core tokens from :root above.
   ============================================================ */
.pp-hero { position: relative; padding: clamp(48px, 7vw, 92px) 0; background:
  radial-gradient(1100px 420px at 18% -10%, rgba(47,107,237,.14), transparent 60%),
  radial-gradient(900px 380px at 100% 0%, rgba(34,211,238,.12), transparent 55%);
  overflow: hidden; }
.pp-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.pp-hero-title { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.05; margin: 14px 0 16px; letter-spacing: -.5px; }
.pp-hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 36em; margin-bottom: 26px; }
.pp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.pp-hero-trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-3); font-size: 13.5px; font-weight: 600; }
.pp-hero-trust i { color: var(--brand-500); margin-right: 6px; }
.pp-hero-card { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg, 20px); padding: 22px; box-shadow: var(--shadow); }
.pp-stat { padding: 14px; border-radius: 14px; background: var(--surface-2); text-align: center; }
.pp-stat-num { display: block; font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--brand-600);
  font-family: var(--font-head, inherit); }
.pp-stat-lbl { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-3); }

.pp-head { max-width: 760px; margin: 0 auto 36px; }
.pp-sub { color: var(--text-2); font-size: 16px; margin-top: 10px; }
.center { text-align: center; }
.pp-soft { background: var(--surface-2); }

.pp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pp-step { position: relative; padding: 28px 22px 22px; }
.pp-step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-weight: 800; margin-bottom: 14px; box-shadow: 0 6px 16px rgba(47,107,237,.3); }
.pp-step h3 { font-size: 18px; margin-bottom: 8px; }
.pp-step p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

.pp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pp-feature, .pp-who { padding: 24px 22px; }
.pp-feature h3, .pp-who h3 { font-size: 17px; margin: 12px 0 8px; }
.pp-feature p, .pp-who p { color: var(--text-2); font-size: 14px; line-height: 1.6; }
.pp-ic, .pp-who i { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-50); color: var(--brand-600); font-size: 20px; }
.pp-who i { margin-bottom: 12px; }

.pp-price-rail { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pp-price-step { flex: 1 1 200px; max-width: 260px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.pp-price-step--sell { border-color: var(--brand-200); }
.pp-price-step--profit { background: linear-gradient(160deg, #ecfdf5, #ffffff); border-color: #a7f3d0; }
.pp-price-tag { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); }
.pp-price-val { display: block; font-size: 40px; font-weight: 800; margin: 8px 0 4px; color: var(--text); }
.pp-price-step--profit .pp-price-val { color: #047857; }
.pp-price-note { display: block; font-size: 12.5px; color: var(--text-3); }
.pp-price-arrow { display: flex; align-items: center; color: var(--brand-400); font-size: 22px; }
.pp-fineprint { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 18px; max-width: 760px; margin-left: auto; margin-right: auto; }

.pp-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pp-calc { padding: 26px 24px; }
.pp-calc-title { font-size: 19px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.pp-calc-title i { color: var(--brand-500); }
.pp-calc-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; margin-bottom: 16px; }
.pp-calc-row > span { grid-column: 1 / 2; font-size: 14px; color: var(--text-2); font-weight: 600; }
.pp-calc-row output { grid-column: 2 / 3; font-weight: 800; color: var(--brand-600); min-width: 64px; text-align: right; }
.pp-calc-row input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--brand-500); }
.pp-calc-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); text-align: center; }
.pp-calc-big { display: block; font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; color: var(--text); }
.pp-calc-big.pp-accent { color: #047857; }
.pp-calc-cap { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }

.pp-faq-wrap { max-width: 820px; }
.pp-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; }
.pp-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after { content: "\002B"; position: absolute; right: 4px; top: 12px; font-size: 20px; color: var(--brand-500); }
.pp-faq details[open] summary::after { content: "\2212"; }
.pp-faq p { color: var(--text-2); font-size: 14.5px; line-height: 1.65; padding: 0 0 14px; margin: 0; }

.pp-cta { background: var(--gradient); color: #fff; border-radius: var(--radius-xl, 24px); padding: clamp(32px, 5vw, 56px); text-align: center; box-shadow: var(--shadow); }
.pp-cta h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 10px; color: #fff; }
.pp-cta p { color: rgba(255,255,255,.9); max-width: 44em; margin: 0 auto 22px; font-size: 16px; }
.pp-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pp-cta .btn-primary { background: #fff; color: var(--brand-700); box-shadow: none; }
.pp-cta .btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.7); color: #fff; }
.pp-cta .btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

@media (max-width: 920px) {
  .pp-hero-grid { grid-template-columns: 1fr; }
  .pp-steps, .pp-grid-3, .pp-calc-grid { grid-template-columns: 1fr; }
  .pp-price-arrow { transform: rotate(90deg); }
}
@media (max-width: 560px) {
  .pp-hero-card { grid-template-columns: 1fr; }

  /* Keep both hero buttons on ONE line (no wrap) and make them smaller so they fit. */
  .pp-hero-actions { flex-wrap: nowrap; gap: 8px; }
  .pp-hero-actions .btn-lg { padding: 11px 14px; font-size: 14px; white-space: nowrap; flex: 1 1 0; min-width: 0; }

  /* Stacked pricing cards: force every step + arrow to the same full width and
     center them, so the green profit card lines up with the first two. */
  .pp-price-rail { flex-direction: column; align-items: center; }
  .pp-price-step { flex: 0 0 auto; width: 100%; max-width: 320px; }
  .pp-price-arrow { width: 100%; justify-content: center; }
}

/* =====================================================================
   Combined language + currency preference button + modal (desktop)
   Solid, modern, theme-aware. No gradients.
   ===================================================================== */
.pref-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 8px 13px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: 600 14px/1 inherit; white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.pref-btn:hover { border-color: var(--brand-200); color: var(--brand-600); }
.pref-btn .fa-globe { font-size: 14px; color: var(--brand-500); }
.pref-btn-sep { width: 1px; height: 14px; background: var(--border); display: inline-block; }
.pref-btn-caret { font-size: 10px; color: var(--text-3); margin-left: 1px; }

/* Overlay + centered card */
.pref-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pref-modal[hidden] { display: none; }
.pref-modal-overlay { position: absolute; inset: 0; background: rgba(15,27,53,.55); backdrop-filter: blur(2px); }
.pref-modal-card {
  position: relative; width: 100%; max-width: 420px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15,27,53,.28);
  overflow: hidden;
  animation: prefPop .16s ease-out;
}
@keyframes prefPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.pref-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.pref-modal-title { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.pref-modal-title .fa-globe { color: var(--brand-500); }
.pref-modal-x { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); }
.pref-modal-x:hover { background: var(--surface-2); color: var(--text); }

.pref-modal-body { padding: 18px 20px 22px; display: grid; gap: 20px; }
.pref-section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); margin-bottom: 10px; }
.pref-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pref-options-cur { display: grid; grid-template-columns: repeat(3, 1fr); }

.pref-option {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; min-width: 64px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text);
  font: 600 14px/1 inherit; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.pref-option:hover { border-color: var(--brand-200); background: var(--surface-2); }
.pref-option.is-active { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }
.pref-option-sym { color: var(--text-3); font-weight: 700; }
.pref-option.is-active .pref-option-sym { color: var(--brand-600); }
.pref-option-main { flex: 1; }
.pref-option-check { font-size: 11px; color: var(--brand-500); opacity: 0; }
.pref-option.is-active .pref-option-check { opacity: 1; }

/* Language options: one per row with a flag + native name. */
.pref-options-lang { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pref-option-flag { flex: none; display: inline-flex; align-items: center; }
.pref-option-flag .flag-img { width: 24px; height: 18px; border-radius: 3px; }
.pref-option-flag .flag-img--globe { width: 24px; height: 18px; }

/* Mobile language selector: flag next to the native name. */
.selector-flag { display: inline-flex; align-items: center; vertical-align: -3px; }
.selector-flag .flag-img, .selector-flag .flag-img--globe { width: 22px; height: 16px; border-radius: 3px; }

.pref-modal.is-busy .pref-modal-card { pointer-events: none; opacity: .75; }

@media (max-width: 991px) {
  /* The combined button is a desktop control; the mobile header keeps its own
     selectors, so hide the desktop button on small screens as a safeguard. */
  .desktop-header .pref-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pref-modal-card { animation: none; }
}
