:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --base: #101311;
  --surface: #171b18;
  --surface-up: #1c211d;
  --line: #2a322c;
  --text: #f1f5ef;
  --muted: #acb9b0;
  --quiet: #93a198;
  --accent: #a7efc7;
  --accent-ink: #10291d;
  --accent-bg: #22382c;
  --hero-base: #17271f;
  --hero-edge: #30463a;
  --hero-hue: 0deg;
  --page: 1136px;
}
[data-theme="amber"] {
  --base: #17130f;
  --surface: #211b15;
  --surface-up: #292118;
  --line: #392f24;
  --text: #faf1e5;
  --muted: #c5b8a7;
  --quiet: #aea092;
  --accent: #ffce87;
  --accent-ink: #32200c;
  --accent-bg: #41301d;
  --hero-base: #302319;
  --hero-edge: #55402a;
  --hero-hue: -96deg;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 143px; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--base); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
svg { flex: none; vertical-align: middle; }
.container { width: min(var(--page), calc(100% - 32px)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: 8px; padding: 12px; background: var(--accent); color: var(--accent-ink); border-radius: 6px; transform: translateY(-160%); z-index: 12; }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 4; background: var(--base); border-bottom: 1px solid var(--line); }
.header-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 11px 12px; padding-block: 11px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-size: 20px; font-weight: 760; letter-spacing: -.055em; white-space: nowrap; }
.brand-mark { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--accent-bg); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); }
.head-actions { display: flex; align-items: center; gap: 6px; }
.head-action, .icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; height: 44px; position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 650; font-size: 13px; }
.head-action .label, .head-orders { display: none; }
.head-action:hover, .icon-btn:hover { border-color: var(--quiet); }
.count-dot { position: absolute; min-width: 17px; height: 17px; padding-inline: 3px; display: grid; place-items: center; border-radius: 10px; right: -3px; top: -5px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.search-box { grid-row: 2; grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; min-width: 0; height: 44px; align-self: center; padding-inline: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--quiet); }
.search-box:focus-within { border-color: var(--accent); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: none; padding: 0; background: none; color: var(--text); font-size: 16px; }
.search-box input::placeholder { color: var(--quiet); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box .clear-search { color: var(--muted); width: 30px; height: 35px; border: 0; padding: 0; background: none; flex: none; }
.main { min-height: 63vh; padding-block: 17px 30px; }
.loading { padding-block: 35px; color: var(--muted); }
.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; min-height: 235px; padding: 19px; border: 1px solid var(--hero-edge); border-radius: 16px; background: radial-gradient(ellipse at 85% 30%, var(--hero-edge), var(--hero-base) 65%); }
.hero-visual { position: absolute; z-index: -2; top: 0; bottom: 0; right: -12%; width: 84%; height: 100%; object-fit: cover; object-position: 57% 49%; filter: hue-rotate(var(--hero-hue)); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--hero-base) 9%, var(--hero-base) 28%, color-mix(in srgb, var(--hero-base) 80%, transparent) 46%, transparent 81%); }
.hero-copy { max-width: 280px; }
.hero-label { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; margin-bottom: 12px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); background: color-mix(in srgb, var(--hero-base) 45%, transparent); border-radius: 20px; font-size: 11px; font-weight: 650; }
.hero-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(30px, 8.8vw, 45px); line-height: 1.02; font-weight: 790; letter-spacing: -.06em; }
.hero h1 span { display: block; color: var(--accent); }
.hero p { font-size: 13px; margin-top: 10px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; border-radius: 9px; padding: 9px 14px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 750; text-align: center; }
.button:hover { filter: brightness(1.07); }
.button.secondary { background: var(--surface-up); color: var(--text); border-color: var(--line); }
.hero .button { margin-top: 16px; }
.market { display: grid; gap: 23px; margin-top: 22px; align-items: start; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.section-head h2 { font-size: 20px; font-weight: 760; letter-spacing: -.045em; }
.section-extra { color: var(--quiet); font-size: 12px; text-align: right; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.category {
  display: flex; align-items: center; gap: 9px; min-height: 62px; min-width: 0; padding: 9px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--surface); color: var(--text); text-align: left; font-size: 13px; font-weight: 700;
}
.category:hover, .category[aria-pressed="true"] { border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); background: var(--surface-up); }
.category-name { overflow-wrap: anywhere; }
.category-icon, .product-mark, .view-icon, .avatar { flex: none; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: var(--accent-bg); color: var(--accent); }
.category[data-category="streaming"] .category-icon { background: var(--accent-bg); color: var(--accent); }
.category[data-category="music"] .category-icon { background: #243045; color: #b9cffa; }
.category[data-category="cards"] .category-icon { background: #3d3020; color: #f1c989; }
.category[data-category="topups"] .category-icon { background: #352940; color: #dfb5ef; }
[data-theme="amber"] .category[data-category="cards"] .category-icon { background: #2b3b2b; color: #b2e2b9; }
.text-btn { padding: 5px 0; border: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 650; }
.text-btn:hover { text-decoration: underline; }
.product-list { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--surface); }
.product-row { display: flex; align-items: center; gap: 11px; min-height: 68px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; padding: 9px 11px; }
.product-row:last-child { border-bottom: 0; }
.product-row:hover { background: var(--surface-up); }
.product-row:focus-visible { outline-offset: -3px; }
.product-mark { width: 42px; height: 42px; border-radius: 10px; font-size: 19px; font-weight: 850; letter-spacing: -.05em; }
.product-mark.netflix { background: #2b191d; color: #fa4b59; font-size: 25px; font-family: Impact, "Arial Black", sans-serif; }
.product-mark.spotify { background: #14281e; color: #67ec95; }
.product-mark.disney { background: #1c2740; color: #baceff; font-style: italic; }
.product-mark.xbox { background: #203023; color: #a5e9a7; }
.product-mark.freefire { background: #372b1c; color: #ffd282; }
.product-mark.crunchyroll { background: #392619; color: #ff9b5d; }
.product-mark.youtube, .product-mark.nintendo { background: #372123; color: #ff9c9f; }
.product-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.product-name { font-size: 14px; font-weight: 720; }
.line-note, .product-note { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.product-price { display: grid; gap: 2px; color: var(--accent); text-align: right; flex: none; font-size: 14px; white-space: nowrap; }
.product-price small { font-size: 10px; color: var(--quiet); }
.product-row > svg { color: var(--quiet); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px 20px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 12px; padding-block: 17px 94px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a:hover { color: var(--accent); }
.bottom-nav { position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 7px 9px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--base); }
.bottom-nav a { display: grid; align-content: center; justify-items: center; gap: 4px; min-height: 49px; border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 670; }
.bottom-nav a[aria-current="page"] { background: var(--accent-bg); color: var(--accent); }
.nav-icon { position: relative; }
.view { max-width: 740px; margin-inline: auto; }
.view.wide { max-width: 920px; }
.view-head { margin: 5px 0 18px; }
.view-head .back-link { margin-bottom: 13px; }
.view h1 { font-size: clamp(27px, 6.2vw, 38px); line-height: 1.12; letter-spacing: -.055em; }
.view-head p { margin-top: 7px; font-size: 14px; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); font-weight: 650; font-size: 13px; min-height: 35px; }
.inset { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.inset + .inset, .stack + .inset, .inset + .stack { margin-top: 12px; }
.inset h2 { font-size: 17px; letter-spacing: -.025em; }
.inset h2 + p { margin-top: 6px; }
.inset p, .empty p { font-size: 14px; color: var(--muted); line-height: 1.52; }
.empty { text-align: center; padding: 27px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.empty .view-icon { margin: 0 auto 11px; width: 47px; height: 47px; }
.empty h3 { font-size: 17px; margin-bottom: 5px; }
.empty .button { margin-top: 14px; }
.stack { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.cart-item .cart-total { font-size: 14px; text-align: right; white-space: nowrap; }
.quantity { grid-column: 2 / -1; display: flex; align-items: center; gap: 9px; }
.quantity .icon-btn { min-width: 36px; height: 36px; }
.quantity output { min-width: 16px; text-align: center; font-size: 13px; }
.quantity .remove { margin-left: auto; }
.summary-line, .profile-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.summary-line strong { color: var(--accent); }
.summary-line + .button, .inset form .button { width: 100%; margin-top: 12px; }
.payment { display: flex; gap: 11px; align-items: center; margin-top: 11px; background: var(--accent-bg); border: 1px solid var(--hero-edge); border-radius: 10px; padding: 11px; }
.payment input, .plan input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: none; }
.payment strong { display: block; font-size: 14px; }
.notice { color: var(--accent); background: var(--accent-bg); border-radius: 10px; padding: 12px; font-size: 14px; line-height: 1.4; margin-bottom: 13px; }
.notice.error { color: #ffd9d4; background: #542a2a; margin: 12px 0 0; }
.tabs { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); margin-bottom: 12px; }
.tabs button { flex: 1; padding: 9px 5px; min-height: 40px; border-radius: 8px; border: 0; color: var(--muted); background: none; font-size: 13px; font-weight: 680; }
.tabs button[aria-pressed="true"] { color: var(--accent); background: var(--accent-bg); }
.order-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding-bottom: 11px; flex-wrap: wrap; }
.order-head strong { display: block; font-size: 14px; }
.pill { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 20px; color: var(--accent); background: var(--accent-bg); font-size: 11px; font-weight: 680; }
.order-line { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 9px; margin-top: 5px; }
.order-line > strong { flex: none; font-size: 13px; }
.profile-line { justify-content: start; }
.profile-line strong { display: block; font-size: 15px; }
.avatar { font-size: 14px; font-weight: 750; }
.account-link { display: flex; align-items: center; gap: 12px; }
.account-link > svg:last-child { color: var(--quiet); margin-left: auto; }
.stats { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }
.stat { min-width: 0; padding: 10px; }
.stat .view-icon { width: 32px; height: 32px; margin-bottom: 8px; }
.stat strong { display: block; margin-top: 3px; font-size: clamp(15px, 4.8vw, 24px); letter-spacing: -.035em; overflow-wrap: anywhere; }
.stat .line-note { font-size: 11px; }
.wallet-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wallet-line + .wallet-line { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.wallet-line strong { font-size: 14px; }
.wallet-line .credit { color: var(--accent); }
.sheet { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 17px 16px max(18px, env(safe-area-inset-bottom)); max-width: min(100%, 520px); width: 100%; max-height: min(88vh, 690px); margin: auto auto 0; overflow: auto; }
.sheet::backdrop { background: #060907ae; backdrop-filter: blur(2px); }
body:has(.sheet[open]) { overflow: hidden; }
.sheet-head { display: flex; align-items: center; gap: 11px; }
.sheet-head h2 { flex: 1; font-size: 21px; line-height: 1.15; letter-spacing: -.04em; }
.sheet-desc { color: var(--muted); font-size: 14px; margin: 10px 0 15px; line-height: 1.45; }
.sheet fieldset { margin: 0; padding: 0; border: 0; }
.sheet legend { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.plan { display: flex; gap: 9px; align-items: center; padding: 11px; min-height: 50px; border-radius: 10px; border: 1px solid var(--line); background: var(--base); font-size: 14px; }
.plan + .plan { margin-top: 7px; }
.plan:has(input:checked) { border-color: var(--accent); }
.plan strong { margin-left: auto; color: var(--accent); }
.sheet .button { width: 100%; margin-top: 14px; }
.toast { position: fixed; bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; left: 12px; margin-inline: auto 0; width: fit-content; max-width: calc(100% - 24px); z-index: 8; color: var(--text); }
.toast:empty { display: none; }
.toast-message { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--surface-up); border: 1px solid var(--hero-edge); border-radius: 10px; box-shadow: 0 8px 28px #0006; font-size: 13px; }
.toast-message svg, .toast-message a { color: var(--accent); }
.toast-message a { font-weight: 700; white-space: nowrap; min-height: 32px; display: grid; align-items: center; }
@media (min-width: 570px) {
  .container { width: min(var(--page), calc(100% - 48px)); }
  .hero { min-height: 246px; padding: 25px 30px; }
  .hero-copy { max-width: 360px; }
  .hero-visual { width: 75%; right: -4%; }
  .hero p { font-size: 14px; }
  .sheet { margin: auto; border-radius: 17px; padding: 22px; }
  .inset { padding: 17px; }
}
@media (min-width: 800px) {
  html { scroll-padding-top: 96px; }
  .header-grid { min-height: 71px; grid-template-columns: minmax(165px, 1fr) minmax(230px, 420px) minmax(max-content, 1fr); gap: 26px; }
  .head-actions { justify-content: end; }
  .head-action { padding-inline: 11px; }
  .head-action .label, .head-orders { display: inline-flex; }
  .head-orders { align-items: center; gap: 6px; min-height: 44px; padding-inline: 8px; color: var(--muted); font-size: 13px; font-weight: 650; }
  .head-orders:hover, .head-orders[aria-current="page"] { color: var(--accent); }
  .search-box { grid-row: 1; grid-column: 2; }
  .search-box input { font-size: 14px; }
  .main { padding-block: 23px 36px; }
  .hero { min-height: 304px; padding: 30px 47px; border-radius: 19px; }
  .hero-copy { max-width: 410px; }
  .hero-visual { width: 67%; right: 0; object-position: 55% 51%; }
  .hero h1 { font-size: 57px; }
  .hero p { margin-top: 14px; }
  .hero .button { margin-top: 21px; }
  .market { margin-top: 27px; grid-template-columns: minmax(230px, 297px) minmax(0, 1fr); gap: 27px; }
  .category-grid { gap: 10px; }
  .category { display: grid; padding: 13px; min-height: 91px; }
  .category-icon { width: 37px; height: 37px; }
  .product-row { padding-inline: 14px; gap: 13px; }
  .bottom-nav { display: none; }
  .site-footer { padding-bottom: 24px; }
  .view-head { margin-top: 10px; }
  .toast { right: 25px; bottom: 23px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .product-row, .category, .head-action { transition: background-color .16s ease, border-color .16s ease, filter .16s ease; }
}
