/* Layout: sticky top bar, split hero (headline + eSIM device illustration), destination grid, plan picker, three-step guide, compatibility, FAQ. Nomad-route motif: dotted lines between stops. */
:root {
  --bg: #080b19;
  --surface: #12182a;
  --surface-2: #1b2339;
  --fg: #edf1ff;
  --fg-muted: #a6b0c9;
  --line: #303a56;
  --accent: #80d8e8;
  --accent-fg: #07151a;
  --accent-soft: #173943;
  --warm: #f0aa57;
  --ok: #66d59b;
  --ok-soft: #173a32;
  --font-display: "Unbounded", "Montserrat", "Arial Black", system-ui, sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1614;
    --surface: #15221f;
    --surface-2: #1c2d29;
    --fg: #e8f0ed;
    --fg-muted: #9fb3ac;
    --line: #2b403b;
    --accent: #7ea0ff;
    --accent-fg: #0a1230;
    --accent-soft: #1d2b52;
    --warm: #f0a850;
    --ok: #5fd38a;
    --ok-soft: #173a27;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1614;
  --surface: #15221f;
  --surface-2: #1c2d29;
  --fg: #e8f0ed;
  --fg-muted: #9fb3ac;
  --line: #2b403b;
  --accent: #7ea0ff;
  --accent-fg: #0a1230;
  --accent-soft: #1d2b52;
  --warm: #f0a850;
  --ok: #5fd38a;
  --ok-soft: #173a27;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 18px 24px, rgba(255,255,255,.82) 99%, transparent),
    radial-gradient(1px 1px at 72px 91px, rgba(180,210,255,.7) 99%, transparent),
    radial-gradient(1.5px 1.5px at 124px 43px, rgba(255,255,255,.78) 99%, transparent),
    radial-gradient(ellipse at 14% 4%, rgba(56,86,174,.3), transparent 48%),
    radial-gradient(ellipse at 88% 20%, rgba(153,64,148,.22), transparent 42%),
    radial-gradient(ellipse at 52% 78%, rgba(24,117,135,.2), transparent 48%);
  background-size: 137px 137px, 193px 193px, 227px 227px, auto, auto, auto;
  background-attachment: fixed;
  background-position: 0 0, 20px 30px, 60px 10px, 0 0, 0 0, 0 0;
  animation: star-drift 60s ease-in-out infinite alternate;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  padding-inline: 20px;
  padding-block: 0 48px;
}
@keyframes star-drift {
  0% { background-position: 0 0, 20px 30px, 60px 10px, 0 0, 0 0, 0 0; }
  100% { background-position: 30px 18px, 90px 110px, 170px 70px, 0 0, 0 0, 0 0; }
}
.wrap { max-width: 1120px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }

/* top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); margin-inline: -20px; padding-inline: 20px; }
.bar-in { max-width: 1120px; margin-inline: auto; display: flex; align-items: center; gap: 12px; padding-block: 12px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 16px; height: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-family: var(--font-mono); color: var(--fg-muted); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; padding-block: 56px 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin-top: 18px; max-width: 52ch; color: var(--fg-muted); font-size: 18px; }
.search { margin-top: 28px; display: flex; gap: 10px; max-width: 520px; position: relative; }
.search input { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; }
.search input::placeholder { color: var(--fg-muted); }
.search-suggestions { position: absolute; top: calc(100% + 6px); left: 0; right: 90px; z-index: 25; max-height: 280px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 5px; box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.search-suggestions[hidden] { display: none; }
.search-suggestions button { display: block; width: 100%; text-align: left; border: 0; border-radius: 8px; padding: 10px 12px; background: transparent; color: var(--fg); }
.search-suggestions button:hover, .search-suggestions button:focus-visible { background: var(--surface-2); }
.search-suggestions .code { float: right; color: var(--fg-muted); font: 12px var(--font-mono); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: var(--fg-muted); }
.trust span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; }

.hero-art { width: min(100%, 500px); justify-self: end; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .24)); }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }

/* sections */
section { padding-block: 40px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(22px, 3vw, 30px); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.tab[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.popular-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.country-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 16px; }
.country-list-head h3 { font-size: clamp(18px, 2.5vw, 24px); }
.country-list-count { margin-left: 8px; color: var(--fg-muted); font: 12px var(--font-mono); }
.country-list-toggle { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--fg); background: var(--surface); font-weight: 600; }
.country-list-toggle:hover { border-color: var(--accent); }
.all-country-content { margin-top: 16px; }
.all-country-content[hidden] { display: none; }
.dest { text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dest:hover { border-color: var(--accent); }
.dest[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.dest .code { font-family: var(--font-mono); font-size: 12px; background: var(--surface-2); border-radius: 6px; padding: 2px 8px; align-self: flex-start; color: var(--fg-muted); }
.dest .nm { font-weight: 600; }
.dest .from { font-size: 13px; color: var(--fg-muted); }
.empty { padding: 28px; border: 1.5px dashed var(--line); border-radius: 14px; color: var(--fg-muted); text-align: center; }

/* plans */
.plans-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; scroll-margin-top: 80px; }
.plans-wrap h3 { font-size: 22px; }
.plans-sub { color: var(--fg-muted); margin-top: 6px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 20px; }
.plan { text-align: left; border: 1.5px solid var(--line); background: var(--bg); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plan:hover { border-color: var(--accent); }
.plan[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft); }
.plan .gb { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.plan .days { color: var(--fg-muted); font-size: 14px; }
.plan .price { margin-top: 10px; font-weight: 600; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.plan .per { font-size: 12px; color: var(--fg-muted); font-family: var(--font-mono); }
.buy-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.buy-row .sum { font-size: 15px; color: var(--fg-muted); }
.buy-row .sum strong { color: var(--fg); font-size: 20px; font-family: var(--font-mono); margin-left: 6px; }
.btn { border: 0; background: var(--accent); color: var(--accent-fg); border-radius: 12px; padding: 13px 22px; font-weight: 600; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; position: relative; }
.step { padding: 8px 24px 8px 0; min-width: 0; }
.step .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); margin-bottom: 14px; position: relative; }
.step .dot::after { content: ""; position: absolute; left: 22px; top: 6px; width: calc(100vw); max-width: 220px; border-top: 2px dotted var(--line); }
.step:last-child .dot::after { display: none; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--fg-muted); }

/* compat */
.compat { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-width: 0; }
.card h3 { font-size: 17px; margin-bottom: 12px; }
.card ul { margin: 0; padding-left: 18px; color: var(--fg-muted); display: grid; gap: 6px; }
.kbd { font-family: var(--font-mono); background: var(--surface-2); border-radius: 6px; padding: 2px 8px; color: var(--fg); }

/* faq */
details { border-top: 1px solid var(--line); padding-block: 16px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
details[open] summary::after { content: "−"; }
summary::-webkit-details-marker { display: none; }
details p { margin-top: 10px; color: var(--fg-muted); max-width: 70ch; }

footer { border-top: 1px solid var(--line); padding-top: 24px; color: var(--fg-muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.admin-btn { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 8px 14px; font-weight: 600; }
.admin-shell { max-width: 1120px; margin: 24px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.admin-shell[hidden] { display: none; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.admin-head h2 { font-size: clamp(22px, 3vw, 30px); }
.admin-badges { display: inline-flex; gap: 8px; }
.admin-badge { background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 5px 10px; font-family: var(--font-mono); font-size: 12px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.admin-card .label { color: var(--fg-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-mono); }
.admin-card strong { display: block; margin-top: 10px; font-size: clamp(20px, 3vw, 28px); font-family: var(--font-mono); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.admin-table th { color: var(--fg-muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-mono); }
.admin-status { display: inline-block; padding: 4px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-family: var(--font-mono); font-size: 11px; }
.admin-status.paused { background: rgba(240,170,87,0.12); color: var(--warm); }
.admin-catalog { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.admin-catalog-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0 8px; }
.admin-catalog-form .field { flex: 1; min-width: 180px; margin: 0; }
.admin-catalog-status { min-height: 1.5em; color: var(--fg-muted); }
.admin-price-input { width: 130px; max-width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
.admin-product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-product-actions .btn { padding: 8px 12px; }
.store-catalog { margin-top: 20px; }
.store-product { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.store-product .gb { display: block; min-height: 27px; padding-right: 145px; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.store-product .store-product-name { display: block; margin-top: 6px; }
.store-product .store-product-meta { display: grid; gap: 6px; margin-top: 12px; }
.store-product .store-product-detail { color: var(--fg-muted); overflow-wrap: anywhere; }
.store-product .price { display: block; margin-top: 10px; font: 600 18px var(--font-mono); }
.checkbox-wrapper-33 { --checkbox-accent: #20d9f5; --checkbox-accent-soft: rgba(32, 217, 245, .2); position: absolute; top: 16px; right: 16px; color: var(--fg-muted); font-size: 12px; }
.checkbox-wrapper-33 .visuallyhidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.checkbox-wrapper-33 .checkbox { display: flex; align-items: center; cursor: pointer; }
.checkbox-wrapper-33 .checkbox__symbol { position: relative; display: inline-flex; width: 1.5em; height: 1.5em; flex: 0 0 1.5em; margin-right: .55em; border: 1px solid var(--checkbox-accent); border-radius: .3em; box-shadow: 0 0 0 0 rgba(32, 217, 245, .1); transition: box-shadow .4s cubic-bezier(.11,.29,.18,.98), background-color .4s; }
.checkbox-wrapper-33 .checkbox__symbol::after { position: absolute; top: .5em; left: .5em; width: .25em; height: .25em; border-radius: 3em; background: var(--checkbox-accent-soft); content: ""; opacity: 0; transform: scale(1); transform-origin: 50% 50%; pointer-events: none; }
.checkbox-wrapper-33 .icon-checkbox { width: 1em; height: 1em; margin: auto; fill: none; stroke: var(--checkbox-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-miterlimit: 10; }
.checkbox-wrapper-33 .icon-checkbox path { stroke-dasharray: 30px, 31px; stroke-dashoffset: 31px; transition: stroke-dashoffset .2s ease-in; }
.checkbox-wrapper-33 .checkbox__textwrapper { margin: 0; }
.checkbox-wrapper-33 .checkbox__trigger:checked + .checkbox__symbol { background: var(--checkbox-accent); }
.checkbox-wrapper-33 .checkbox__trigger:checked + .checkbox__symbol::after { animation: checkbox-ripple-33 1.5s cubic-bezier(.11,.29,.18,.98); }
.checkbox-wrapper-33 .checkbox__trigger:checked + .checkbox__symbol .icon-checkbox { color: #07151a; }
.checkbox-wrapper-33 .checkbox__trigger:checked + .checkbox__symbol .icon-checkbox path { stroke: #07151a; stroke-dashoffset: 0; transition: stroke-dashoffset .4s cubic-bezier(.11,.29,.18,.98); }
.checkbox-wrapper-33 .checkbox__trigger:focus-visible + .checkbox__symbol { box-shadow: 0 0 0 3px var(--checkbox-accent-soft); outline: 2px solid var(--checkbox-accent); outline-offset: 3px; }
.checkbox-wrapper-33 .checkbox__trigger:disabled + .checkbox__symbol, .checkbox-wrapper-33 .checkbox__trigger:disabled ~ .checkbox__textwrapper { cursor: not-allowed; opacity: .5; }
@keyframes checkbox-ripple-33 { from { opacity: 1; transform: scale(0); } to { opacity: 0; transform: scale(20); } }
.store-product.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.store-order-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.store-order-count { margin-right: auto; color: var(--fg-muted); }
.store-order-actions .btn { min-width: 180px; }
.country-flag { display: inline-flex; flex: 0 0 28px; align-items: center; justify-content: center; width: 28px; height: 20px; margin-right: 8px; overflow: hidden; border: 1px solid rgba(141, 156, 220, .28); border-radius: 3px; background: var(--surface-2); font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: 16px; line-height: 1; vertical-align: -2px; }
.country-flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.country-flag-fallback { color: var(--fg-muted); font: 9px var(--font-mono); }
.search-suggestions .country-flag { margin-right: 6px; }
.dest-name { display: flex; align-items: center; gap: 8px; }
.dest-name .country-flag { margin: 0; }
.admin-modal { position: fixed; inset: 0; background: rgba(5, 9, 16, 0.7); display: grid; place-items: center; z-index: 60; }
.admin-modal[hidden] { display: none; }
.admin-modal-box { width: min(420px, calc(100% - 24px)); background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.admin-modal-box h3 { font-size: 24px; margin-bottom: 8px; }
.admin-modal-box p { color: var(--fg-muted); margin-bottom: 18px; }
.admin-form { display: grid; gap: 12px; }
.admin-form .err { color: #ff8a7a; min-height: 1em; font-size: 13px; }
.admin-form button { width: 100%; }

/* drawer */
.overlay { position: fixed; inset: 0; background: rgba(5, 12, 10, 0.55); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); border-left: 1px solid var(--line); z-index: 40; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 18px; }
.x { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; width: 36px; height: 36px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 14px; align-content: start; }
.line-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; min-width: 0; }
.line-item .t { font-weight: 600; }
.line-item .s { color: var(--fg-muted); font-size: 14px; }
.line-item .p { font-family: var(--font-mono); font-weight: 500; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; }
.qty .remove-item { margin-left: 4px; color: var(--fg-muted); }
.qty .remove-item:hover { border-color: #ff7b8a; color: #ff7b8a; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select { padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; min-width: 0; }
.field .err { color: #c0392b; font-size: 13px; min-height: 1em; }
:root[data-theme="dark"] .field .err { color: #ff8a7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .err { color: #ff8a7a; } }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--bg); }
.drawer.payment-view, .drawer.payment-view .drawer-head, .drawer.payment-view .drawer-body, .drawer.payment-view .drawer-foot { background: #fff; color: #172033; }
.drawer.payment-view { border-left-color: #e2e8f0; }
.drawer.payment-view .drawer-head, .drawer.payment-view .drawer-foot { border-color: #e2e8f0; }
.drawer.payment-view .line-item, .drawer.payment-view .field input, .drawer.payment-view .field select, .drawer.payment-view .x, .drawer.payment-view .qty button { background: #f8fafc; border-color: #d7dee8; color: #172033; }
.drawer.payment-view .line-item .s, .drawer.payment-view .notice { color: #526174; }
.drawer.payment-view .notice { background: #f1f5f9; }
.total { display: flex; justify-content: space-between; font-weight: 600; }
.total span:last-child { font-family: var(--font-mono); font-size: 18px; }
.notice { font-size: 13px; color: var(--fg-muted); background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }
.done { background: var(--ok-soft); border-radius: 14px; padding: 18px; display: grid; gap: 8px; }
.done h4 { margin: 0; font-family: var(--font-display); font-size: 18px; color: var(--ok); }
.code-box { font-family: var(--font-mono); font-size: 12.5px; background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.balance-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.balance-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; margin-top: 18px; }
.balance-form input { flex: 1; min-width: 200px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; }
.balance-result { margin-top: 16px; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.balance-result[hidden] { display: none; }
.balance-result p + p { margin-top: 6px; }
.balance-error { color: #ff8a7a; margin-top: 10px; min-height: 1em; }
.order-qr { width: 192px; height: 192px; padding: 8px; background: #fff; border-radius: 10px; }
.email-status { padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.email-status.failed { background: rgba(240,170,87,0.12); color: var(--warm); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 24px; }
  .compat { grid-template-columns: 1fr; }
  .step { padding-right: 0; padding-bottom: 20px; }
  .step .dot::after { display: none; }
  .bar-in { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .search { flex-direction: column; }
  .brand { font-size: 16px; }
}

/* Futuristic visual layer */
:root {
  color-scheme: dark;
  --bg: #070817;
  --surface: rgba(17, 22, 43, 0.88);
  --surface-2: #1b2342;
  --fg: #f1f3ff;
  --fg-muted: #a4accb;
  --line: rgba(141, 156, 220, 0.22);
  --accent: #60f0ff;
  --accent-fg: #07131d;
  --accent-soft: rgba(37, 210, 235, 0.14);
  --warm: #ffb85c;
  --ok: #6cf7c5;
  --ok-soft: rgba(47, 223, 172, 0.13);
}
:root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #070817;
  --surface: rgba(17, 22, 43, 0.88);
  --surface-2: #1b2342;
  --fg: #f1f3ff;
  --fg-muted: #a4accb;
  --line: rgba(141, 156, 220, 0.22);
  --accent: #60f0ff;
  --accent-fg: #07131d;
  --accent-soft: rgba(37, 210, 235, 0.14);
  --warm: #ffb85c;
  --ok: #6cf7c5;
  --ok-soft: rgba(47, 223, 172, 0.13);
}
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 12% 8%, rgba(52, 72, 220, .24), transparent 34%),
    radial-gradient(ellipse at 88% 18%, rgba(198, 45, 205, .18), transparent 32%),
    radial-gradient(ellipse at 54% 76%, rgba(0, 205, 220, .12), transparent 38%),
    linear-gradient(rgba(111, 134, 212, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 134, 212, .045) 1px, transparent 1px);
  background-size: auto, auto, auto, 44px 44px, 44px 44px;
  background-attachment: fixed;
  animation: ambient-pan 32s ease-in-out infinite alternate;
}
@keyframes ambient-pan {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 28px 20px, -24px 18px, 14px -24px, 22px 18px, 22px 18px; }
}
.bar {
  background: rgba(7, 8, 23, .78);
  border-bottom-color: rgba(96, 240, 255, .18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand-mark {
  background: linear-gradient(135deg, #60f0ff, #7a7cff 58%, #e35bff);
  box-shadow: 0 0 22px rgba(96, 240, 255, .38);
}
.seg, .admin-btn {
  border-color: var(--line);
  background: rgba(18, 24, 48, .82);
}
.seg button[aria-pressed="true"] {
  background: linear-gradient(110deg, #60f0ff, #9a8bff);
  box-shadow: 0 0 18px rgba(96, 240, 255, .2);
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  padding-block: 72px 52px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(58vw, 650px);
  aspect-ratio: 1;
  right: 7%;
  top: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 91, 255, .16), rgba(31, 217, 240, .07) 38%, transparent 70%);
  filter: blur(8px);
  animation: glow-breathe 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glow-breathe {
  from { opacity: .58; transform: scale(.92); }
  to { opacity: 1; transform: scale(1.08); }
}
.eyebrow { color: #87eefa; }
.hero h1 {
  max-width: 13ch;
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: -.055em;
}
.hero h1 em {
  background: linear-gradient(100deg, #60f0ff 8%, #9d8aff 54%, #ff75cf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(106, 170, 255, .23));
}
.hero p.lead { color: #b6bfdc; }
.plans-wrap, .balance-wrap, .card, .admin-shell, .admin-card {
  background: linear-gradient(145deg, rgba(21, 28, 56, .94), rgba(11, 15, 34, .94));
  border-color: rgba(129, 151, 224, .24);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .035);
}
section { padding-block: 48px; }
.sec-head h2, .plans-wrap h3 { letter-spacing: -.035em; }
.tab, .dest, .plan, .search input, .balance-form input, .field input, .field select {
  border-color: rgba(129, 151, 224, .24);
  background-color: rgba(15, 20, 42, .88);
}
.tab, .dest, .plan, .btn, .admin-btn, .seg button, .search-suggestions button, .x {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background-color .22s ease, filter .22s ease;
}
.dest, .plan { box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
.dest:hover, .plan:hover, .tab:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 240, 255, .72);
  box-shadow: 0 12px 30px rgba(41, 207, 238, .12);
}
.dest[aria-pressed="true"], .plan[aria-pressed="true"] {
  border-color: #60f0ff;
  background: linear-gradient(145deg, rgba(31, 91, 126, .56), rgba(48, 47, 105, .48));
  box-shadow: inset 0 0 0 1px rgba(96, 240, 255, .48), 0 0 24px rgba(59, 219, 245, .12);
}
.btn {
  background: linear-gradient(105deg, #60f0ff, #78b9ff 52%, #ad8bff);
  box-shadow: 0 8px 24px rgba(82, 185, 255, .18);
}
.btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(82, 185, 255, .28);
}
.btn.ghost {
  background: rgba(19, 25, 50, .78);
  border-color: rgba(129, 151, 224, .32);
  box-shadow: none;
}
.search input:focus, .balance-form input:focus, .field input:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96, 240, 255, .12), 0 0 24px rgba(96, 240, 255, .08);
  outline: none;
}
.search-suggestions {
  background: #10152d;
  border-color: rgba(96, 240, 255, .28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42), 0 0 22px rgba(96, 240, 255, .08);
}
.search-suggestions button:hover, .search-suggestions button:focus-visible {
  background: rgba(96, 240, 255, .1);
}
.balance-result, .admin-card, .code-box {
  border-color: rgba(96, 240, 255, .2);
  background: rgba(8, 12, 29, .72);
}
.step .dot {
  box-shadow: 0 0 0 6px rgba(96, 240, 255, .1), 0 0 22px rgba(96, 240, 255, .55);
}
.trust span::before {
  background: #6cf7c5;
  box-shadow: 0 0 12px rgba(108, 247, 197, .65);
}
footer { border-top-color: rgba(129, 151, 224, .22); }
.overlay { backdrop-filter: blur(5px); }
.drawer {
  background: linear-gradient(160deg, #10152c, #080a1b);
  border-left-color: rgba(96, 240, 255, .22);
  box-shadow: -24px 0 70px rgba(0, 0, 0, .4);
}
.admin-modal-box {
  background: linear-gradient(145deg, #171d3a, #0b0e22);
  border-color: rgba(96, 240, 255, .28);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .5), 0 0 35px rgba(96, 240, 255, .08);
}
@media (max-width: 820px) {
  .hero { min-height: auto; padding-block: 48px 32px; }
  .hero::before { width: min(90vw, 650px); right: 0; top: 8%; }
}
@media (max-width: 480px) {
  body { padding-inline: 14px; }
  .bar { margin-inline: -14px; padding-inline: 14px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  section { padding-block: 32px; }
  .plans-wrap, .balance-wrap, .card { padding: 18px; }
  .store-product { padding: 14px; }
  .store-product .gb { padding-right: 122px; font-size: 19px; }
  .checkbox-wrapper-33 { top: 13px; right: 13px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
