/* ==========================================================================
   SmartTopup — design system
   Palet diambil dari logo: ink (hitam) + brand pink #FF0054 di atas kertas hangat.
   ========================================================================== */

:root {
    --brand: #FF0054;
    --brand-600: #E0004A;
    --brand-700: #B8003D;
    --brand-50: #FFF1F5;
    --brand-100: #FFE0EA;

    --ink: #0E0E13;
    --ink-2: #17171F;
    --ink-3: #24242E;
    --text: #18181F;
    --muted: #6E6E7A;
    --subtle: #9A9AA5;

    --paper: #F8F7F4;
    --surface: #FFFFFF;
    --line: #EAE8E3;
    --line-2: #F1EFEB;

    --success: #0F9D58;
    --success-50: #E9F7EF;
    --warning: #C77700;
    --warning-50: #FFF5E0;
    --danger: #D92D3A;
    --danger-50: #FDECEE;
    --info: #2563EB;
    --info-50: #EBF1FE;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(14, 14, 19, .05);
    --shadow: 0 1px 2px rgba(14, 14, 19, .04), 0 8px 24px -8px rgba(14, 14, 19, .10);
    --shadow-lg: 0 24px 60px -20px rgba(14, 14, 19, .28);
    --ring: 0 0 0 4px rgba(255, 0, 84, .14);

    --container: 1200px;
    --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.text-brand { color: var(--brand); }
.text-muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px;
    border: 1px solid transparent; border-radius: 12px;
    font-weight: 700; font-size: 14px; letter-spacing: -0.005em;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .1s, box-shadow .2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 0, 84, .6); }
.btn-primary:hover { background: var(--brand-600); }
.btn-primary:disabled { background: #D6D4CF; box-shadow: none; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }
.btn-light:hover { background: rgba(255,255,255,.14); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(248, 247, 244, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; height: 72px; gap: 32px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a {
    padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted);
    transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 0; }
.hero-card {
    position: relative; overflow: hidden;
    border-radius: 32px;
    background: var(--ink);
    color: #fff;
    padding: 64px 56px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
    isolation: isolate;
}
.hero-card::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(600px 400px at 85% 20%, rgba(255, 0, 84, .38), transparent 60%),
        radial-gradient(500px 360px at 0% 110%, rgba(255, 0, 84, .16), transparent 60%);
}
.hero-card::after {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 8px; border-radius: 999px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #2BD576; box-shadow: 0 0 0 4px rgba(43, 213, 118, .2); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin: 20px 0 16px; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { color: rgba(255,255,255,.68); font-size: 17px; max-width: 480px; }
.hero-search {
    margin-top: 32px; display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 16px; padding: 6px 6px 6px 18px; max-width: 480px;
    color: var(--text);
}
.hero-search input { flex: 1; border: 0; outline: 0; background: none; height: 44px; min-width: 0; }
.hero-search .icon { color: var(--subtle); }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; }
.hero-stats strong { display: block; font-size: 22px; font-weight: 800; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.55); }

.hero-visual { position: relative; height: 380px; }
.hero-tile {
    position: absolute; width: 200px; aspect-ratio: 3/4; border-radius: 22px;
    padding: 18px; display: flex; flex-direction: column; justify-content: flex-end;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.12);
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.hero-tile .initials { position: absolute; top: 16px; left: 18px; font-size: 44px; font-weight: 800; opacity: .9; letter-spacing: -0.04em; }
.hero-tile b { font-size: 15px; line-height: 1.25; }
.hero-tile small { font-size: 12px; opacity: .7; }
.hero-tile:nth-child(1) { left: 0; top: 60px; transform: rotate(-8deg); }
.hero-tile:nth-child(2) { left: 30%; top: 0; z-index: 2; transform: rotate(2deg); }
.hero-tile:nth-child(3) { right: 0; top: 90px; transform: rotate(9deg); }
.hero-visual:hover .hero-tile:nth-child(1) { transform: rotate(-11deg) translateX(-8px); }
.hero-visual:hover .hero-tile:nth-child(3) { transform: rotate(12deg) translateX(8px); }

/* ---------- Sections ---------- */
.section { padding: 72px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 6px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; display: block; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.feature {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.feature-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.feature b { display: block; font-size: 14.5px; }
.feature span { font-size: 13px; color: var(--muted); line-height: 1.5; display: block; margin-top: 2px; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.tab { border: 0; background: none; padding: 8px 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: all .2s; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--ink); color: #fff; }

/* ---------- Game cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.game-card { display: block; }
.game-thumb {
    position: relative; overflow: hidden;
    aspect-ratio: 1; border-radius: 22px;
    display: grid; place-items: center; color: #fff;
    box-shadow: var(--shadow);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-thumb .initials { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; text-shadow: 0 4px 20px rgba(0,0,0,.25); }
.game-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(255,255,255,.22) 0%, transparent 40%);
    pointer-events: none;
}
.game-card:hover .game-thumb { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game-card .meta { padding: 12px 4px 0; }
.game-card h3 { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.game-card .publisher { font-size: 12.5px; color: var(--muted); }
.game-card .from { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.game-card .from b { color: var(--text); }
.badge-hot {
    position: absolute; top: 10px; left: 10px; z-index: 1;
    padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
    background: rgba(255,255,255,.95); color: var(--brand);
}

.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.popular-card {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.popular-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.popular-card .game-thumb { width: 72px; border-radius: 16px; box-shadow: none; flex-shrink: 0; }
.popular-card .game-thumb .initials { font-size: 24px; }
.popular-card h3 { font-size: 15px; font-weight: 700; }
.popular-card p { font-size: 13px; color: var(--muted); }
.popular-card .arrow { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: background .2s, color .2s; flex-shrink: 0; }
.popular-card:hover .arrow { background: var(--brand); color: #fff; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
    counter-increment: step; content: '0' counter(step);
    display: block; font-size: 13px; font-weight: 800; color: var(--brand); margin-bottom: 28px; letter-spacing: .04em;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- Payment logos ---------- */
.pay-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-logo {
    display: inline-flex; align-items: center; justify-content: center;
    height: 40px; min-width: 92px; padding: 0 14px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--line);
    font-weight: 800; font-size: 13px; letter-spacing: -0.01em;
}
.pay-logo.sm { height: 32px; min-width: 76px; font-size: 11.5px; padding: 0 10px; border-radius: 8px; }

.cta-band {
    margin-top: 72px; border-radius: 28px; padding: 44px 48px;
    background: linear-gradient(120deg, var(--brand) 0%, #FF3D7F 100%);
    color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.cta-band::after { content: ''; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 50px solid rgba(255,255,255,.1); }
.cta-band h2 { font-size: 26px; font-weight: 800; }
.cta-band p { opacity: .85; margin-top: 4px; }
.cta-band .btn { background: #fff; color: var(--ink); position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 88px; background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .logo img { height: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin-top: 16px; line-height: 1.7; max-width: 320px; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; }
.contact-line .icon { margin-top: 2px; color: var(--brand); }
.footer-bottom {
    margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.secured { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.secured b { color: #fff; }

/* ---------- Order page ---------- */
.game-hero { position: relative; overflow: hidden; color: #fff; padding: 40px 0 120px; }
.game-hero::before { content: ''; position: absolute; inset: 0; background: var(--hero-bg); z-index: -2; }
.game-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,14,19,.25), rgba(14,14,19,.75)); }
.game-hero { isolation: isolate; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 28px; }
.crumbs a:hover { color: #fff; }
.game-hero-inner { display: flex; gap: 24px; align-items: center; }
.game-hero .game-thumb { width: 112px; border-radius: 26px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.2); }
.game-hero h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.game-hero .publisher { color: rgba(255,255,255,.75); margin-top: 4px; }
.chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }

.order-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 380px; gap: 24px; margin-top: -84px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px 0; }
.panel-num { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.panel-head h2 { font-size: 17px; font-weight: 700; }
.panel-head p { font-size: 13px; color: var(--muted); }
.panel-body { padding: 20px 24px 24px; }

.field-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field-row.has-zone { grid-template-columns: 1.6fr 1fr; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field label .opt { color: var(--subtle); font-weight: 500; }
.input {
    width: 100%; height: 48px; padding: 0 14px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
    transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
.input::placeholder { color: var(--subtle); }
.input:focus { background: #fff; border-color: var(--brand); box-shadow: var(--ring); }
.input.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 6px; }
.hint-toggle { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--brand); background: none; border: 0; padding: 0; cursor: pointer; }
.hint { margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: var(--paper); font-size: 13px; color: var(--muted); display: none; }
.hint.is-open { display: block; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-card {
    height: 100%; padding: 14px; border-radius: 14px;
    border: 1.5px solid var(--line); background: var(--surface);
    transition: border-color .15s, background .15s, box-shadow .15s;
    display: flex; flex-direction: column; gap: 4px;
}
.option:hover .option-card { border-color: #CFCCC5; }
.option input:checked + .option-card { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(255,0,84,.08); }
.option input:focus-visible + .option-card { box-shadow: var(--ring); }
.option-card .name { font-weight: 700; font-size: 14px; line-height: 1.35; }
.option-card .price { font-size: 13.5px; font-weight: 600; color: var(--brand); }
.option-card .strike { font-size: 12px; color: var(--subtle); text-decoration: line-through; margin-left: 4px; font-weight: 500; }
.option-card .tag {
    position: absolute; top: -8px; right: 10px;
    padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
    background: var(--ink); color: #fff;
}
.option-card .check {
    position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%;
    border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; color: transparent; transition: all .15s;
}
.option input:checked + .option-card .check { background: var(--brand); border-color: var(--brand); color: #fff; }
.product-grid .option-card { padding-right: 34px; }

.method-group { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.method-group + .method-group { margin-top: 10px; }
.method-group summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; font-weight: 700; font-size: 14.5px; background: var(--surface);
}
.method-group summary::-webkit-details-marker { display: none; }
.method-group summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.method-group[open] summary .chev { transform: rotate(180deg); }
.method-group summary .mini-logos { display: flex; gap: 4px; margin-left: auto; }
.method-group[open] summary .mini-logos { display: none; }
.method-group .methods { padding: 0 12px 12px; display: grid; gap: 8px; }
.method-row .option-card { flex-direction: row; align-items: center; gap: 14px; padding: 12px 44px 12px 12px; }
.method-row .option-card .info { flex: 1; min-width: 0; }
.method-row .option-card .info small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.method-row .option-card .total { font-weight: 700; font-size: 14px; white-space: nowrap; }
.method-row .option-card .check { top: 50%; transform: translateY(-50%); }
.method-row.is-disabled { opacity: .45; pointer-events: none; }

.summary { position: sticky; top: 92px; }
.summary .panel-body { padding-top: 22px; }
.summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.summary-game { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.summary-game .game-thumb { width: 48px; border-radius: 12px; box-shadow: none; }
.summary-game .game-thumb .initials { font-size: 16px; }
.summary-game b { display: block; font-size: 14px; }
.summary-game span { font-size: 12.5px; color: var(--muted); }
.kv { display: grid; gap: 10px; padding: 16px 0; font-size: 13.5px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.kv-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px dashed var(--line); }
.kv-total span { font-weight: 600; }
.kv-total strong { font-size: 24px; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 4px 0 16px; cursor: pointer; }
.agree input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex-shrink: 0; }
.agree a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 14px; }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 13.5px; margin-bottom: 16px; }
.alert-danger { background: var(--danger-50); color: var(--danger); }
.alert-warning { background: var(--warning-50); color: #8A5300; }
.alert-info { background: var(--info-50); color: #1E40AF; }
.alert ul { margin: 0; padding-left: 18px; }

.mobile-bar { display: none; }

/* ---------- Invoice ---------- */
.invoice-wrap { max-width: 1040px; margin: 0 auto; padding-top: 32px; }
.invoice-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tone-warning { background: var(--warning-50); color: var(--warning); }
.tone-success { background: var(--success-50); color: var(--success); }
.tone-danger { background: var(--danger-50); color: var(--danger); }
.tone-info { background: var(--info-50); color: var(--info); }
.tone-muted { background: var(--line-2); color: var(--muted); }
.tone-warning .dot, .tone-info .dot { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.invoice-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.invoice-top h1 { font-size: 26px; font-weight: 800; margin-top: 10px; }
.invoice-no { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 6px; }
.invoice-no b { color: var(--text); font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .02em; }

.countdown-card {
    background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 24px 26px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.countdown-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 200px at 100% 0%, rgba(255,0,84,.35), transparent 70%); }
.countdown-card > * { position: relative; }
.countdown-card small { color: rgba(255,255,255,.6); font-size: 13px; display: block; }
.countdown-card .deadline { font-weight: 600; margin-top: 2px; }
.timer { display: flex; gap: 8px; align-items: center; }
.timer .unit { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 8px 10px; min-width: 62px; text-align: center; }
.timer .unit b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.1; }
.timer .unit span { font-size: 10.5px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }
.timer .sep { font-size: 22px; font-weight: 700; color: rgba(255,255,255,.35); }
.progress { position: absolute !important; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.progress span { display: block; height: 100%; background: var(--brand); transition: width 1s linear; }

.pay-box { text-align: center; padding: 32px 24px; }
.pay-box .label { font-size: 13px; color: var(--muted); }
.pay-code {
    display: inline-flex; align-items: center; gap: 12px; margin-top: 8px;
    font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: .06em; font-variant-numeric: tabular-nums;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.copy-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 600; cursor: pointer; color: var(--muted);
    font-family: var(--font); letter-spacing: 0; transition: all .15s;
}
.copy-btn:hover { color: var(--text); border-color: var(--text); }
.copy-btn.is-copied { color: var(--success); border-color: var(--success); }
.pay-amount { margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--line); }
.pay-amount strong { display: inline-flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 800; color: var(--brand); margin-top: 4px; letter-spacing: -0.02em; }
.pay-method-head { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 22px; }
.qr-frame { display: inline-block; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: #fff; margin-top: 8px; position: relative; }
.qr-frame img, .qr-frame svg { width: 220px; height: 220px; }
.qr-frame .demo-stamp { position: absolute; inset: 0; display: grid; place-items: center; }
.qr-frame .demo-stamp span { background: var(--brand); color: #fff; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 6px; letter-spacing: .1em; }
.qr-brand { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

.result-box { text-align: center; padding: 40px 24px; }
.result-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.result-icon .icon { width: 34px; height: 34px; }
.result-box h2 { font-size: 22px; font-weight: 800; }
.result-box p { color: var(--muted); margin-top: 6px; max-width: 420px; margin-left: auto; margin-right: auto; }
.sn-box { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--paper); font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

.howto { border-top: 1px solid var(--line); }
.howto details { border-bottom: 1px solid var(--line-2); }
.howto details:last-child { border-bottom: 0; }
.howto summary { list-style: none; cursor: pointer; padding: 16px 24px; font-weight: 600; font-size: 14px; display: flex; align-items: center; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary .chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
.howto details[open] summary .chev { transform: rotate(180deg); }
.howto ol { margin: 0; padding: 0 24px 18px 44px; font-size: 13.5px; color: var(--muted); display: grid; gap: 6px; }

.demo-banner { border: 1.5px dashed var(--brand); background: var(--brand-50); border-radius: 16px; padding: 16px 18px; margin-top: 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.demo-banner p { flex: 1; min-width: 200px; font-size: 13px; color: var(--brand-700); }
.demo-banner b { color: var(--brand-700); }

/* ---------- Pages ---------- */
.page-hero { padding: 56px 0 8px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; }
.page-hero p { color: var(--muted); margin-top: 10px; max-width: 620px; font-size: 16px; }
.page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; margin-top: 32px; align-items: start; }
.page-nav { position: sticky; top: 92px; display: grid; gap: 2px; }
.page-nav a { padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.page-nav a:hover { color: var(--text); }
.page-nav a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 44px; font-size: 15px; line-height: 1.75; color: #33333D; }
.prose h2 { font-size: 19px; font-weight: 700; margin: 32px 0 10px; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 20px; margin: 10px 0; display: grid; gap: 6px; }
.prose a { color: var(--brand); font-weight: 600; }
.prose .updated { font-size: 13px; color: var(--subtle); margin-bottom: 24px; display: block; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card .feature-icon { margin-bottom: 18px; }
.contact-card h3 { font-size: 15px; font-weight: 700; }
.contact-card p { color: var(--muted); font-size: 14px; margin-top: 4px; word-break: break-word; }
.contact-card a.link { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--brand); }

.faq { margin-top: 48px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq details + details { margin-top: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 14px; }

.track-card { max-width: 560px; margin: 40px auto 0; }
.track-form { display: flex; gap: 10px; }
.track-form .input { flex: 1; text-transform: uppercase; font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .game-grid { grid-template-columns: repeat(4, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-card { grid-template-columns: 1fr; padding: 48px 36px; }
    .hero-visual { display: none; }
    .order-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .invoice-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    body { font-size: 14.5px; }
    .container { padding: 0 16px; }
    .site-header .container { height: 64px; }
    .logo img { height: 28px; }
    .menu-toggle { display: block; }
    .nav, .header-actions { display: none; }
    .site-header.is-open .nav {
        display: grid; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 16px 16px; box-shadow: var(--shadow);
    }
    .site-header.is-open .nav a { padding: 12px 14px; }
    .hero { padding-top: 12px; }
    .hero-card { padding: 36px 22px; border-radius: 24px; }
    .hero-stats { gap: 20px; }
    .hero-stats strong { font-size: 18px; }
    .section { padding-top: 52px; }
    .section-head h2 { font-size: 22px; }
    .features { grid-template-columns: 1fr; }
    .game-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .game-thumb { border-radius: 18px; }
    .game-thumb .initials { font-size: 28px; }
    .game-card h3 { font-size: 13px; }
    .game-card .publisher { display: none; }
    .popular-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .tabs { width: 100%; overflow-x: auto; }
    .cta-band { padding: 32px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .game-hero { padding: 24px 0 100px; }
    .game-hero-inner { gap: 16px; }
    .game-hero .game-thumb { width: 80px; border-radius: 20px; }
    .game-hero .game-thumb .initials { font-size: 26px; }
    .panel { border-radius: 20px; }
    .panel-head { padding: 18px 18px 0; }
    .panel-body { padding: 16px 18px 20px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .field-row.has-zone { grid-template-columns: 1.4fr 1fr; }
    .summary .btn-block[type=submit] { display: none; }
    .mobile-bar {
        display: flex; align-items: center; gap: 12px; justify-content: space-between;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        box-shadow: 0 -10px 30px -10px rgba(0,0,0,.12);
    }
    .mobile-bar small { display: block; font-size: 12px; color: var(--muted); }
    .mobile-bar strong { font-size: 18px; font-weight: 800; color: var(--brand); }
    .has-mobile-bar .site-footer { padding-bottom: 100px; }

    .countdown-card { padding: 20px; }
    .timer .unit { min-width: 54px; }
    .timer .unit b { font-size: 22px; }
    .page-layout { grid-template-columns: 1fr; }
    .page-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
    .page-nav a { white-space: nowrap; }
    .prose { padding: 28px 22px; }
    .contact-grid { grid-template-columns: 1fr; }
    .track-form { flex-direction: column; }
    .game-hero-inner > div { min-width: 0; }
}

@media (max-width: 440px) {
    .method-group summary .mini-logos { display: none; }
    .hero-stats { gap: 16px; }
    .game-grid { grid-template-columns: repeat(2, 1fr); }
}
