/* ============================================================
   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 */
  --brand-50:  #ecfeff;
  --brand-100: #cffafe;
  --brand-200: #a5f3ec;
  --brand-400: #2dd4bf;
  --brand-500: #0ea5a4;
  --brand-600: #0b8382;
  --brand-700: #086b6a;

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

  --violet-500: #06b6d4;
  --pink-500:   #84cc16;
  --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, #06b6d4 0%, #0ea5a4 45%, #22c55e 100%);
  --gradient-accent: linear-gradient(120deg, #22c55e 0%, #14b8a6 50%, #06b6d4 100%);
  --gradient-vivid: linear-gradient(100deg, #06b6d4, #14b8a6, #84cc16);

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

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}
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: 999px;
  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(14,165,164,.35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(14,165,164,.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,.8); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.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(14,165,164,.4);
}
.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; }

.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 {
  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);
}
.selector-menu button:hover { background: var(--surface-2); color: var(--text); }
.selector-menu button.active { color: var(--brand-600); background: var(--brand-50); }

/* Burger: hidden on desktop; shown on mobile via media query, and always
   shown for the dashboard sidebar toggle [data-side-toggle]. */
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; align-items:center; justify-content:center; }
.burger:hover { background: var(--surface-2); }
.burger span { display:block; width: 20px; height: 2px; background: var(--text); border-radius:2px; position: relative; }
.burger span::before, .burger span::after { content:''; position:absolute; left:0; width:20px; height:2px; background: var(--text); border-radius:2px; }
.burger span::before { top:-6px; } .burger span::after { top:6px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 90px; }
.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(14,165,164,.12), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.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: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 10px; display: flex; gap: 8px; align-items: center;
  max-width: 540px;
}
.search-box .field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.search-box input {
  flex: 1; border: none; outline: none; font-size: 16px; font-family: inherit;
  color: var(--text); background: transparent; min-width: 0;
}
.search-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.search-tab {
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.search-tab.active { background: var(--text); color: #fff; border-color: var(--text); }

/* 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); }

/* ---------- Feature / USP ---------- */
.features { display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.feature { padding: 28px; }
.feature .ic { width:54px;height:54px;border-radius:15px;display:grid;place-items:center;color:#fff;font-size:24px;margin-bottom:16px; }
.feature h3 { font-size:19px; margin-bottom:8px; }
.feature p { color: var(--text-2); font-size:15px; }

/* ---------- How it works ---------- */
.steps { display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; position: relative; }
.step { padding: 32px 28px; text-align:center; position: relative; }
.step .n {
  width: 56px; height:56px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--gradient); color:#fff; display:grid; place-items:center;
  font-family: var(--font-head); font-weight:800; font-size:22px; box-shadow: 0 10px 24px rgba(14,165,164,.35);
}
.step h3 { font-size: 19px; margin-bottom: 10px; }

/* ---------- Country cards ---------- */
.country-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; }
.country-card { overflow: hidden; cursor: pointer; }
.country-flag { font-size: 40px; line-height:1; }
.country-card .body { padding: 20px; display:flex; flex-direction:column; gap:6px; }
.country-card .top { display:flex; align-items:center; justify-content:space-between; }
.country-card .name { font-family: var(--font-head); font-weight: 800; font-size:18px; }
.country-card .from { color: var(--text-3); font-size:13px; }
.country-card .price { font-family: var(--font-head); font-weight:800; font-size: 22px; color: var(--brand-500); }
.country-card .foot { display:flex; align-items:center; justify-content:space-between; margin-top: 10px; padding-top: 14px; border-top:1px solid var(--border); }

/* ---------- 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 page ---------- */
.plan-grid { display:grid; grid-template-columns: 1fr 1fr 1fr; gap:20px; }
.plan { padding: 26px; display:flex; flex-direction:column; position: relative; }
.plan.featured { border-color: var(--brand-500); box-shadow: 0 14px 40px rgba(14,165,164,.18); }
.plan.featured::before { content:'Popular'; position:absolute; top:-12px; left:50%; transform:translateX(-50%); background: var(--gradient); color:#fff; font-size:12px; font-weight:700; padding:5px 14px; border-radius:999px; }
.plan .data { font-family: var(--font-head); font-weight:800; font-size: 32px; }
.plan .meta { color: var(--text-3); font-size:14px; margin-bottom: 18px; }
.plan .price { font-family: var(--font-head); font-weight:800; font-size: 30px; margin: 10px 0; }
.plan ul.inc { display:flex; flex-direction:column; gap:10px; margin: 18px 0; }
.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; }

/* ---------- 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); }
.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 { padding:28px; }
.testi .stars { color: var(--amber-500); margin-bottom:12px; font-size:16px; }
.testi p { font-size:15px; color: var(--text-2); margin-bottom:18px; }
.testi .who { display:flex; align-items:center; gap:12px; }
.avatar { width:44px;height:44px;border-radius:50%; display:grid; place-items:center; color:#fff; font-weight:800; font-family: var(--font-head); }

/* ---------- 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 { background: #0f1b35; color: #c7d2e8; padding: 56px 0 28px; }
.footer a { color:#aab7d6; } .footer a:hover { color:#fff; }
.footer-grid { display:grid; grid-template-columns: 1.5fr repeat(3,1fr); gap:40px; margin-bottom:40px; }
.footer h4 { color:#fff; font-size:15px; margin-bottom:16px; }
.footer ul li { margin-bottom:10px; font-size:14px; }
.footer .logo { color:#fff; margin-bottom:14px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; color:#8a97b4; }

/* ============================================================
   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); }

/* ============================================================
   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: responsive inline nav (NO hamburger drawer) ---------- */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; height: auto; row-gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .header-actions { gap: 8px; }
  /* full desktop nav hidden on mobile; use hamburger drawer instead */
  .nav { display: none; }
  /* show the public hamburger button */
  .header .burger, .header-actions .burger { display: flex; }
  /* hide the login text button on very tight widths, keep primary CTA */
  .header-actions .btn-ghost.btn-sm { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .features { grid-template-columns: 1fr; }
  .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; }
}

/* ---------- Mobile nav off-canvas drawer ---------- */
.mobile-nav {
  position: fixed; top: 0; right: -100%;
  width: min(320px, 82vw); height: 100vh; height: 100dvh;
  background: var(--surface); box-shadow: var(--shadow-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  z-index: 400; transition: right .3s ease; overflow-y: auto;
}
.mobile-nav::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: rgba(16,27,53,.4); 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: 14px; right: 16px;
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--text-2);
}
.mobile-nav .close:hover { background: var(--surface-2); color: var(--text); }
.mobile-nav a {
  display: block; padding: 12px; font-weight: 600;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.mobile-nav a.btn { border-bottom: none; }

/* ============================================================
   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 ---------- */
.hero { padding-top: 96px; }
.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 accent bar */
.testi { position: relative; overflow: hidden; }
.testi::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background: var(--gradient); opacity:0; transition: opacity .25s; }
.testi:hover::before { opacity:1; }

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

/* ---------- Sidebar active glow (dashboards) ---------- */
.side-link.active { box-shadow: 0 8px 20px rgba(14,165,164,.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(14,165,164,.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 {
  position: fixed; right:22px; bottom:22px; 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:120;
}
#toTop.show { opacity:1; transform: none; pointer-events:auto; }
#toTop:hover { transform: translateY(-3px) scale(1.06); }

/* ============================================================
   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; }
}
