/* ==========================================================================
   eSIM Store — storefront styles
   Brand colors come from Admin → Settings (--brand, --accent).
   ========================================================================== */
:root {
  --brand: #5b3df5;
  --accent: #14d6a4;
  --ink: #0f0c29;
  --ink-2: #3b3a55;
  --muted: #6e6c85;
  --line: #e9e7f3;
  --bg: #ffffff;
  --bg-soft: #f6f5fc;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 12, 41, .06);
  --shadow: 0 10px 30px -12px rgba(15, 12, 41, .18);
  --shadow-lg: 0 30px 60px -20px rgba(40, 20, 120, .35);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, white);
  --brand-dark: color-mix(in srgb, var(--brand) 75%, black);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
.h3 { font-size: 1.5rem; font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page-narrow { max-width: 480px; }
.page-mid { max-width: 860px; }
.section { padding: 80px 0; }
.section.pt-0 { padding-top: 0; }
.section-alt { background: var(--bg-soft); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .6rem; }
.eyebrow.light { color: var(--accent); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .95rem; padding: 12px 22px; border-radius: 12px; transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none !important; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px var(--brand); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 24px -8px var(--brand); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26224d; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.home .nav:not(.scrolled) { background: transparent; backdrop-filter: none; }
.home .nav:not(.scrolled) .nav-links a, .home .nav:not(.scrolled) .brand, .home .nav:not(.scrolled) .btn-ghost { color: #fff; }
.home .nav:not(.scrolled) .btn-ghost { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.home .nav:not(.scrolled) .btn-dark { background: #fff; color: var(--ink); }
.home .nav:not(.scrolled) .nav-toggle span { background: #fff; }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none !important; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; }
.brand-logo { height: 34px; width: auto; }
.brand-light { color: #fff; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #0d0a2b; color: #fff; margin-top: -72px; padding: 150px 0 110px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .7; }
.o1 { width: 620px; height: 620px; background: var(--brand); top: -220px; right: -120px; animation: drift 14s ease-in-out infinite alternate; }
.o2 { width: 460px; height: 460px; background: var(--accent); bottom: -260px; left: -120px; opacity: .35; animation: drift 18s ease-in-out infinite alternate-reverse; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.08); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.lead { font-size: 1.15rem; color: rgba(255,255,255,.75); max-width: 560px; margin-bottom: 32px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .85rem; font-weight: 600; margin-bottom: 24px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.search-box { position: relative; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--muted); border-radius: 16px; padding: 6px 6px 6px 20px; max-width: 560px; box-shadow: var(--shadow-lg); }
.search-box input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.05rem; padding: 14px 0; color: var(--ink); background: transparent; min-width: 0; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; display: none; z-index: 20; max-height: 360px; overflow-y: auto; }
.search-results.open { display: block; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: var(--ink); text-decoration: none !important; }
.sr-item:hover, .sr-item.active { background: var(--bg-soft); }
.sr-item img { width: 32px; height: 24px; object-fit: cover; border-radius: 5px; }
.sr-item .sr-kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sr-item .sr-price { margin-left: auto; font-weight: 700; font-size: .9rem; color: var(--brand); }
.sr-empty { padding: 16px 18px; color: var(--muted); }
.hero-trust { display: flex; gap: 40px; margin-top: 36px; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust b { font-size: 1.6rem; font-weight: 800; }
.hero-trust span { font-size: .85rem; color: rgba(255,255,255,.6); }

/* phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone { width: 290px; height: 590px; border-radius: 46px; background: #15123a; padding: 12px; box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 50px 100px -30px rgba(0,0,0,.7); position: relative; transform: rotate(4deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(4deg) translateY(-14px); } }
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.phone-screen { height: 100%; border-radius: 36px; background: linear-gradient(170deg, #f7f6ff, #eceaff); color: var(--ink); padding: 20px 18px; overflow: hidden; }
.ps-head { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 700; padding: 0 8px; margin-bottom: 40px; }
.ps-signal { display: flex; align-items: flex-end; gap: 2px; }
.ps-signal i { width: 3px; background: var(--ink); border-radius: 1px; }
.ps-signal i:nth-child(1) { height: 4px } .ps-signal i:nth-child(2) { height: 6px } .ps-signal i:nth-child(3) { height: 8px } .ps-signal i:nth-child(4) { height: 10px; margin-right: 4px }
.ps-card { background: #fff; border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.ps-row { display: flex; gap: 12px; align-items: center; }
.ps-flag { font-size: 2rem; }
.ps-row b { display: block; } .ps-row small { color: var(--muted); font-size: .78rem; }
.ps-ring { position: relative; width: 150px; height: 150px; margin: 18px auto; }
.ps-ring svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--bg-soft); stroke-width: 12; }
.ring-fg { fill: none; stroke: var(--brand); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 80; animation: ring 2.4s ease-out; }
@keyframes ring { from { stroke-dashoffset: 314; } }
.ps-ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ps-ring-label b { font-size: 2rem; font-weight: 800; line-height: 1; } .ps-ring-label small { color: var(--muted); }
.ps-bars { display: flex; align-items: flex-end; gap: 6px; height: 50px; }
.ps-bars span { flex: 1; height: var(--h); background: linear-gradient(var(--brand), var(--accent)); border-radius: 4px; opacity: .85; }
.ps-chip { margin-top: 16px; text-align: center; font-size: .8rem; font-weight: 700; color: #0a8f6b; background: #dcfaf0; padding: 8px; border-radius: 12px; }
.float-card { position: absolute; display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.95); color: var(--ink); padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: .85rem; }
.float-card span { font-size: 1.4rem; } .float-card b { display: block; } .float-card small { color: var(--muted); }
.fc1 { top: 70px; left: -30px; animation: float2 7s ease-in-out infinite; }
.fc2 { bottom: 70px; right: -20px; animation: float2 8s ease-in-out infinite reverse; }
@keyframes float2 { 50% { transform: translateY(-10px); } }

/* ---------- Popular ---------- */
.popular-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pop-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.pop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pop-flag img { width: 52px; height: 38px; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.pop-name { font-weight: 700; font-size: 1.08rem; }
.pop-price { color: var(--muted); font-size: .9rem; } .pop-price b { color: var(--brand); }

/* ---------- Destination grid ---------- */
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.tab { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .92rem; padding: 10px 18px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.tab.active { background: var(--ink); color: #fff; }
.tab-count { font-size: .75rem; opacity: .6; margin-left: 2px; }
.filter-row { margin-bottom: 20px; max-width: 360px; }
.input, .form input, .form select, .form textarea { width: 100%; font: inherit; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tab-panel { display: none; } .tab-panel.active { display: grid; }
.dest-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dest-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dest-card:hover { border-color: var(--brand); box-shadow: 0 6px 18px -10px var(--brand); transform: translateY(-1px); }
.dest-flag img { width: 40px; height: 30px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.dest-flag .globe { font-size: 1.6rem; }
.dest-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dest-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dest-sub { font-size: .78rem; color: var(--muted); }
.dest-price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; font-size: .95rem; line-height: 1.2; }
.dest-price small { font-weight: 500; font-size: .7rem; color: var(--muted); }
.dest-arrow { color: var(--muted); transition: transform .15s; } .dest-card:hover .dest-arrow { transform: translateX(3px); color: var(--brand); }
.no-match { text-align: center; color: var(--muted); padding: 30px; }
.empty-state { text-align: center; padding: 60px 20px; background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty-icon { font-size: 2.6rem; margin-bottom: 10px; }

/* ---------- Steps / features ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 32px; border-radius: var(--radius); background: var(--bg-soft); }
.step-n { position: absolute; top: 24px; right: 28px; font-size: 3.5rem; font-weight: 800; color: var(--brand); opacity: .12; line-height: 1; }
.step-ico { font-size: 2rem; width: 60px; height: 60px; display: grid; place-items: center; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; }
.section-dark { background: var(--ink); color: #fff; }
.features { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.features-copy p { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.feature span { font-size: 1.5rem; } .feature h4 { margin: 10px 0 4px; } .feature p { color: rgba(255,255,255,.6); margin: 0; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: var(--brand); transform: translate(-50%, -50%); transition: transform .2s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item p { color: var(--muted); padding-bottom: 20px; margin: 0; }

.cta-section { padding: 0 0 80px; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 56px; border-radius: 28px; background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); color: #fff; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; } .cta p { margin: 0; opacity: .85; }

/* ---------- Destination page ---------- */
.dest-hero { padding: 40px 0 36px; }
.back-link { display: inline-block; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 20px; }
.dest-hero-inner { display: flex; gap: 24px; align-items: center; }
.dest-hero-flag { width: 110px; height: 80px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); flex-shrink: 0; display: grid; place-items: center; font-size: 3rem; background: var(--bg-soft); }
.dest-hero-flag img { width: 100%; height: 100%; object-fit: cover; }
.dest-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 4px; }
.lead-sm { color: var(--muted); margin: 0; }
.lead-sm b { color: var(--ink); }
.coverage { margin-top: 20px; background: var(--bg-soft); border-radius: 14px; padding: 14px 18px; }
.coverage summary { cursor: pointer; font-weight: 700; }
.coverage-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: #fff; border-radius: 999px; font-size: .82rem; border: 1px solid var(--line); }
.chip img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }
.dest-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.plan-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip-btn { border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 600; font-size: .85rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.chip-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.plan-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); padding: 22px; transition: border-color .15s, box-shadow .2s, transform .2s; overflow: hidden; }
.plan-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.plan-ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(45deg); background: var(--accent); color: var(--ink); font-size: .68rem; font-weight: 800; padding: 4px 40px; text-transform: uppercase; letter-spacing: .06em; }
.plan-top { padding-bottom: 16px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.plan-data { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.plan-days { color: var(--muted); font-weight: 600; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; color: var(--ink-2); flex: 1; }
.plan-feats li { display: flex; gap: 8px; } .plan-feats .ico { width: 18px; flex-shrink: 0; }
.plan-feats .fup { color: var(--muted); font-size: .8rem; }
.plan-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.plan-price { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.plan-perday { font-size: .78rem; color: var(--muted); }
.dest-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info-card.soft { background: var(--bg-soft); border: 0; display: flex; flex-direction: column; gap: 14px; }
.info-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 14px; font-size: .88rem; }
.info-list b { display: block; } .info-list span { color: var(--muted); }
.link-arrow { font-weight: 700; font-size: .9rem; }
.guarantee { display: flex; gap: 12px; align-items: center; } .guarantee span { font-size: 1.4rem; } .guarantee b { display: block; font-size: .92rem; } .guarantee small { color: var(--muted); }

/* ---------- Cards, forms, alerts ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 16px; color: var(--ink-2); }
.form label input, .form label select, .form label textarea { margin-top: 6px; }
.form small, .hint { color: var(--muted); font-weight: 500; font-size: .8rem; display: block; margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.alert { padding: 14px 18px; border-radius: 12px; margin: 16px 0; font-weight: 500; font-size: .93rem; }
.alert-error { background: #fff0f1; color: #b4232f; border: 1px solid #ffd3d7; }
.alert-success { background: #e8fbf3; color: #0b7a57; border: 1px solid #b9f0da; }
.alert-warn { background: #fff8e6; color: #8a5a00; border: 1px solid #ffe4a3; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge-gray { background: #eef0f4; color: #4b5162; } .badge-blue { background: #e6efff; color: #2655c9; }
.badge-amber { background: #fff3d6; color: #8a5a00; } .badge-green { background: #dcfaf0; color: #0a7a57; }
.badge-red { background: #ffe4e6; color: #b4232f; } .badge-purple { background: #efe8ff; color: #6033c9; }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.form-step { display: flex; align-items: center; gap: 10px; margin: 8px 0 18px; }
.form-step span { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: .85rem; }
.form-step:not(:first-of-type) { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.qty-row { display: flex !important; align-items: center; justify-content: space-between; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { border: 0; background: var(--bg-soft); width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 56px !important; text-align: center; border: 0 !important; margin: 0 !important; padding: 8px !important; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.account-opt { background: var(--bg-soft); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; }
.account-opt summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.account-opt label { margin: 12px 0 4px; }
.pay-options { display: grid; gap: 10px; margin-bottom: 18px; }
.pay-option { margin: 0 !important; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; }
.pay-box { display: flex; flex-direction: column; padding: 16px 18px 16px 50px; border: 1.5px solid var(--line); border-radius: 14px; position: relative; transition: border-color .15s, background .15s; }
.pay-box::before { content: ''; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.pay-option input:checked + .pay-box { border-color: var(--brand); background: var(--brand-soft); }
.pay-option input:checked + .pay-box::before { border: 5px solid var(--brand); }
.pay-box b { color: var(--ink); } .pay-box small { margin: 0; }
.check-row { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.check-row input { width: auto !important; margin-top: 4px !important; accent-color: var(--brand); }
.fineprint { font-size: .8rem; color: var(--muted); text-align: center; margin: 14px 0 0; }
.summary h3 { margin-bottom: 18px; }
.sticky { position: sticky; top: 92px; }
.sum-item { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.sum-flag { width: 54px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: var(--bg-soft); font-size: 1.4rem; }
.sum-flag img { width: 100%; height: 100%; object-fit: cover; }
.sum-item b { display: block; line-height: 1.3; } .sum-item small { color: var(--muted); font-size: .82rem; }
.sum-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.sum-specs div { background: var(--bg-soft); border-radius: 12px; padding: 12px; }
.sum-specs small { display: block; color: var(--muted); font-size: .75rem; } .sum-specs b { font-size: 1.05rem; }
.sum-line, .sum-total { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-2); }
.sum-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.sum-perks { list-style: none; padding: 16px 0 0; margin: 12px 0 0; border-top: 1px solid var(--line); font-size: .86rem; color: #0a7a57; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Order page ---------- */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.order-head .h2 { margin-bottom: 4px; }
.state-card { text-align: center; padding: 48px 28px; margin-bottom: 20px; }
.state-card.success { background: linear-gradient(180deg, #effcf6, #fff); }
.state-ico { font-size: 2.6rem; margin-bottom: 8px; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--brand-soft); border-top-color: var(--brand); margin: 0 auto 18px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-banner { display: flex; gap: 14px; align-items: center; padding: 18px 22px; border-radius: var(--radius); background: linear-gradient(110deg, #dcfaf0, #eef9ff); margin-bottom: 20px; }
.success-banner span { font-size: 1.6rem; } .success-banner b { display: block; } .success-banner small { color: var(--ink-2); }
.esim-card { margin-bottom: 20px; }
.esim-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.install-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.itab { border: 0; background: none; font: inherit; font-weight: 700; padding: 12px 14px; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.itab.active { color: var(--brand); border-bottom-color: var(--brand); }
.ipanel { display: none; } .ipanel.active { display: block; }
.qr-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.qr-box { width: 240px; height: 240px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; }
.qr-box img, .qr-box canvas, .qr-box svg { width: 210px !important; height: 210px !important; display: block; }
.pop-flag .globe, .dest-hero-flag .globe, .sum-flag .globe { font-size: 2rem; display: block; margin-bottom: 8px; }
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); font-size: .93rem; }
.copy-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.copy-field { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-soft); border-radius: 12px; }
.copy-field small { color: var(--muted); font-weight: 600; } .copy-field code { word-break: break-all; font-size: .9rem; }
.copy-btn { border: 0; background: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; box-shadow: var(--shadow-sm); color: var(--brand); }
.copy-btn.copied { background: var(--accent); color: var(--ink); }
.provider-html { font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; }
.esim-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.usage, .topups { background: var(--bg-soft); border-radius: 14px; padding: 18px; }
.usage-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.usage-empty small { color: var(--muted); margin-bottom: 8px; }
.usage-meter { height: 10px; border-radius: 999px; background: #fff; overflow: hidden; margin: 10px 0; }
.usage-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 999px; transition: width .8s; }
.usage-stats { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.usage-big { font-size: 1.6rem; font-weight: 800; }
.topup-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.topup-item:last-child { border-bottom: 0; }
.topup-item b { display: block; } .topup-item small { color: var(--muted); }
.help-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 14px; background: var(--bg-soft); flex-wrap: wrap; }
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; color: var(--ink); text-decoration: none !important; transition: border-color .15s; }
.order-row:hover { border-color: var(--brand); }
.or-ico { font-size: 1.4rem; } .or-main { flex: 1; min-width: 0; } .or-main b { display: block; } .or-main small { color: var(--muted); } .or-amt { font-weight: 700; }
.auth-card-front { text-align: left; }
.auth-card-front .state-ico { text-align: center; }
.auth-card-front h1 { text-align: center; }
.seg-tabs { display: flex; background: var(--bg-soft); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.seg-tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 9px; font-weight: 700; color: var(--muted); text-decoration: none; }
.seg-tabs a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Prose pages ---------- */
.prose h3 { margin-top: 1.8em; }
.prose ol, .prose ul { padding-left: 22px; color: var(--ink-2); }
.prose li { margin-bottom: 6px; }
.device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.device-card { padding: 22px; } .device-card h3 { margin-top: 0; } .device-card ul { margin: 0; font-size: .92rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 64px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer a { display: block; color: rgba(255,255,255,.65); margin-bottom: 10px; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer-text { margin: 16px 0; max-width: 300px; }
.pay-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-icons span { font-size: .72rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 24px; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner, .features, .faq-wrap { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .popular-grid { grid-template-columns: repeat(2, 1fr); }
  .dest-layout, .checkout-grid { grid-template-columns: 1fr; }
  .dest-aside, .sticky { position: static; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s; box-shadow: var(--shadow); }
  .nav-open .nav-links { transform: none; }
  .home .nav:not(.scrolled) .nav-links a { color: var(--ink); }
  .nav-toggle { display: block; }
  .hide-sm { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .qr-wrap { grid-template-columns: 1fr; justify-items: center; }
  .esim-tools { grid-template-columns: 1fr; }
  .copy-field { grid-template-columns: 1fr auto; } .copy-field small { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero { padding: 120px 0 70px; }
  .hero-trust { gap: 24px; }
  .feature-grid, .grid-2, .device-grid { grid-template-columns: 1fr; }
  .popular-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pop-card { padding: 16px; }
  .cta { padding: 36px 26px; }
  .card { padding: 20px; }
  .tabs { width: 100%; } .tab { flex: 1; padding: 10px 8px; }
  .order-head { flex-direction: column; }
  .dest-hero-inner { flex-direction: column; align-items: flex-start; }
}
@media print {
  .nav, .footer, .install-tabs, .esim-tools, .help-strip, .btn { display: none !important; }
  .ipanel { display: block !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
