/* ==========================================================================
   IndoLinessa Store — "Obsidian Glass"
   Lapisan di atas store.css. Kanvas obsidian, kaca cair, tipografi editorial.
   Tanpa gradient dekoratif: cahaya datang dari satu lampu panggung + kursor.
   ========================================================================== */

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/assets/fonts/spacegrotesk-latin.woff2') format('woff2');
}

/* ---------- 1. Token ---------- */

:root {
    --obsidian: #07070a;
    --obsidian-2: #0a0a0f;
    --glass-bg: rgba(13, 13, 19, 0.56);
    --glass-bg-hi: rgba(20, 20, 28, 0.66);
    --glass-line: rgba(255, 255, 255, 0.10);
    --glass-line-hi: rgba(255, 255, 255, 0.20);
    --glass-blur: 14px;
    --glass-sat: 150%;

    --r-xs: 10px;
    --r-sm: 14px;
    --r-md: 20px;
    --r-lg: 26px;
    --r-xl: 34px;

    --ease-cine: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

    --lift-1: 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 50px -38px #000;
    --lift-2: 0 1px 0 rgba(255, 255, 255, 0.06), 0 50px 100px -70px #000;

    --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- 2. Kanvas ---------- */

html {
    background: var(--obsidian);
    scroll-padding-top: calc(var(--head-h) + 84px);
}

body {
    background-color: var(--obsidian);
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
    background-size: 48px 48px;
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::selection,
::selection {
    background: var(--gold);
    color: #16110a;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Latar: satu warna obsidian, tanpa lapisan blur atau butir film. */

main,
.site-foot,
.head-strip {
    position: relative;
    z-index: 2;
}

/* ---------- 3. Tipografi ---------- */

.hero-title,
.section-title,
h2,
h3 {
    font-family: var(--display);
    letter-spacing: -0.028em;
    text-wrap: balance;
}

.hero-title {
    font-size: clamp(46px, 5.8vw, 78px);
    line-height: 0.94;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-mark {
    color: var(--gold);
    text-shadow: none;
}

.section-title {
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.02;
    font-weight: 600;
}

.hero-lead,
.catalog-sub,
.cat-desc {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.62;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 0.26em;
    color: rgba(242, 242, 244, 0.52);
}

.eyebrow-line {
    width: 22px;
    height: 1px;
    background: var(--gold);
    box-shadow: none;
}

.mono,
.rail-num,
.cat-index,
.cat-count,
.strip-row {
    font-family: var(--mono);
    letter-spacing: 0.08em;
}

/* ---------- 4. Header kaca ---------- */

.head-strip {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.strip-row {
    min-height: 32px;
    font-size: 9.5px;
    letter-spacing: 0.16em;
    color: rgba(242, 242, 244, 0.44);
}

.strip-live {
    color: rgba(242, 242, 244, 0.62);
}

.strip-notes {
    color: rgba(242, 242, 244, 0.38);
}

.site-head {
    background: rgba(7, 7, 10, 0.42);
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    transition:
        background 0.4s var(--ease-soft),
        border-color 0.4s var(--ease-soft),
        box-shadow 0.4s var(--ease-soft);
}

body.is-scrolled .site-head {
    background: rgba(8, 8, 12, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 24px 50px -44px #000;
}

.brand-logo {
    width: 44px;
    height: auto;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}

.brand-name {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand-sub {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(242, 242, 244, 0.45);
}

.head-link {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(242, 242, 244, 0.60);
}

.head-link:hover {
    color: var(--text);
}

.head-link::after {
    background: var(--gold);
    height: 1px;
}

.cart-pill {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: var(--display);
    font-weight: 500;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.cart-pill svg {
    color: var(--gold);
}

.cart-pill-label {
    letter-spacing: -0.01em;
}

.cart-count {
    border-radius: 7px;
    background: var(--gold);
    color: #191204;
    font-family: var(--mono);
    font-weight: 700;
}

.cart-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.20);
    color: var(--text);
}

.player-chip {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
}

/* ---------- 5. Hero ---------- */

.hero {
    background: transparent;
    border-bottom: 0;
    overflow: hidden;
    padding-top: clamp(24px, 4vw, 56px);
}

.hero::before {
    content: none;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-grid {
    position: relative;
    padding-top: clamp(24px, 5vh, 56px);
    padding-bottom: clamp(28px, 5vh, 56px);
    gap: clamp(32px, 4vw, 64px);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 20px;
}

/* Kata hantu raksasa sudah dihapus. */

.hero-facts {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(242, 242, 244, 0.48);
}

.fact-dot {
    border-radius: 50%;
    box-shadow: none;
}

/* Vault jadi slab kaca dengan bibir cahaya. */
.hero-vault {
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
    border: 1px solid var(--glass-line);
    border-radius: var(--r-lg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        var(--lift-2);
    overflow: hidden;
    will-change: transform;
}

.hero-vault::before,
.hero-vault::after {
    content: none;
}

.vault-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.vault-label,
.vault-live,
.vault-meta,
.vault-foot {
    font-family: var(--mono);
    letter-spacing: 0.12em;
    font-size: 9.5px;
    text-transform: uppercase;
}

.vault-grid {
    gap: 1px;
    background: rgba(255, 255, 255, 0.055);
}

.vault-slot {
    background: rgba(10, 10, 15, 0.72);
}

.vault-name {
    letter-spacing: -0.01em;
}

.vault-icon {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

/* Rail tiga langkah. */
.hero-rail {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.012);
}

.rail-item {
    padding-top: 22px;
    padding-bottom: 22px;
}

.rail-num {
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 0.2em;
}

.rail-item p strong {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.rail-item p span {
    color: var(--muted);
    font-size: 13px;
}

.hero-rail-grid .rail-item + .rail-item {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-pay-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-pay-label,
.hero-pay-note {
    color: rgba(242, 242, 244, 0.38);
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Petunjuk gulir */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(242, 242, 244, 0.58);
    background: rgba(8, 8, 12, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    pointer-events: none;
    z-index: 4;
}

.scroll-cue i {
    display: block;
    width: 22px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-cue i::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 40%;
    background: var(--text);
    animation: cue-slide 2.2s var(--ease-soft) infinite;
}

@keyframes cue-slide {
    0% { transform: translateX(-110%); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateX(260%); opacity: 0; }
}

/* ---------- 6. Katalog ---------- */

.catalog {
    padding-top: clamp(56px, 8vw, 104px);
    padding-bottom: clamp(64px, 8vw, 112px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-head {
    padding-bottom: 22px;
}

.catalog-support {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(242, 242, 244, 0.44);
}

.catalog-support strong {
    color: var(--gold);
}

.cat-nav-shell {
    position: sticky;
    top: var(--head-h);
    z-index: 30;
    background: rgba(7, 7, 10, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
}

.cat-nav-link {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(242, 242, 244, 0.64);
    transition:
        background 0.3s var(--ease-soft),
        border-color 0.3s var(--ease-soft),
        color 0.3s var(--ease-soft);
    scroll-margin-top: calc(var(--head-h) + 70px);
}

.cat-nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.20);
    color: var(--text);
}

.cat-nav-link.is-active {
    border-color: rgba(233, 180, 76, 0.42);
    background: rgba(233, 180, 76, 0.10);
    color: var(--gold);
}

.cat-nav-count {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 9px;
}

.cat-block {
    padding-top: clamp(34px, 4vw, 56px);
    scroll-margin-top: calc(var(--head-h) + 76px);
}

.cat-head {
    position: relative;
    margin-bottom: 22px;
}

.cat-index {
    font-size: 10px;
    color: rgba(242, 242, 244, 0.34);
}

.cat-title {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.03em;
    font-size: clamp(24px, 2.8vw, 34px);
}

.cat-rule {
    background: rgba(255, 255, 255, 0.10);
    height: 1px;
}

.cat-count {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(242, 242, 244, 0.36);
}

.cat-desc {
    max-width: 62ch;
    font-size: 14.5px;
}

/* ---------- 7. Kartu ---------- */

.rank-grid,
.item-grid {
    gap: 14px;
}

.rank-card,
.item-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-line);
    border-radius: var(--r-md);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(0, 0, 0, 0.45),
        var(--lift-1);
    transition:
        transform 0.5s var(--ease-cine),
        border-color 0.5s var(--ease-cine),
        background 0.5s var(--ease-cine);
}

.rank-card {
    border-top: 1px solid var(--glass-line);
    padding: 22px 20px 20px;
}

.rank-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 1px;
    background: var(--tone, var(--gold));
    opacity: 0.55;
}

.rank-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-line-hi);
    background: var(--glass-bg-hi);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.45),
        var(--lift-2);
}

.rank-card.is-popular {
    border-color: rgba(233, 180, 76, 0.34);
    background: rgba(28, 22, 12, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 0 0 1px rgba(233, 180, 76, 0.06),
        var(--lift-2);
}

.rank-card.is-popular:hover {
    border-color: rgba(233, 180, 76, 0.48);
    background: rgba(34, 26, 14, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        var(--lift-2);
}

.popular-flag {
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 999px;
    background: var(--gold);
    color: #191204;
    box-shadow: none;
}

.item-card {
    padding: 16px;
}

.item-card:hover {
    transform: translateY(-3px);
    border-color: rgba(233, 180, 76, 0.30);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        var(--lift-2);
}

.item-slot,
.rank-slot {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: none;
}

.rank-name,
.item-name {
    font-family: var(--display);
    letter-spacing: -0.02em;
}

.rank-price,
.item-price,
.price {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--gold);
}

.rank-perks li,
.item-meta,
.item-desc {
    color: var(--muted);
}

/* ---------- 8. Tombol ---------- */

.btn {
    border-radius: 12px;
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: -0.005em;
    transition:
        transform 0.18s var(--ease-soft),
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.btn:active {
    transform: translateY(1px) scale(0.985);
}

.btn-primary {
    background: var(--gold);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #191204;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 18px 36px -28px rgba(233, 180, 76, 0.9);
}

.btn-primary:hover {
    background: var(--gold-hi);
}

.btn-ghost,
.btn-outline {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover,
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.22);
}

/* ---------- 9. Footer ---------- */

.site-foot {
    background: var(--obsidian-2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-title {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(242, 242, 244, 0.44);
}

.site-foot {
    color: rgba(242, 242, 244, 0.68);
}

.site-foot a {
    color: rgba(242, 242, 244, 0.74);
}

.site-foot a:hover {
    color: var(--text);
}

.foot-note,
.foot-legal,
.foot-copy,
.foot-base {
    color: rgba(242, 242, 244, 0.52);
}

.foot-base {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pay-band {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- 10. Reveal sinematik (scroll-driven, tanpa JS) ---------- */

@supports (animation-timeline: view()) {
    .hero-copy,
    .hero-vault {
        animation: scene-in linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 62%;
    }

    .catalog-head,
    .cat-head,
    .rank-card,
    .item-card,
    .foot-grid {
        animation: rise-in linear both;
        animation-timeline: view();
        animation-range: entry 4% cover 26%;
    }

    @keyframes scene-in {
        from { opacity: 0; transform: translateY(14px); }
        to { opacity: 1; transform: none; }
    }

    @keyframes rise-in {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: none; }
    }
}

/* ---------- 11. Layar kecil ---------- */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .scroll-cue {
        display: none;
    }

    .hero-rail-grid .rail-item + .rail-item {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .cat-nav-shell {
        top: 0;
    }

    .cat-nav {
        padding-right: 18px;
    }
}

@media (max-width: 620px) {
    .hero-title {
        font-size: clamp(38px, 11vw, 52px);
    }

    .rank-card:hover,
    .item-card:hover {
        transform: none;
    }
}

/* ---------- 12. Reduced transparency (bukan motion) ---------- */

@media (prefers-reduced-transparency: reduce) {
    .site-head,
    .cat-nav-shell,
    .hero-vault,
    .rank-card,
    .item-card,
    .btn-ghost,
    .cart-pill {
        background: rgba(10, 10, 14, 0.97);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

/* ==========================================================================
   13. Halaman pesanan — terminal pembayaran
   QR sebagai pusat, kaca gelap, garis emas tipis. Tanpa glow dekoratif.
   ========================================================================== */

.order-shell {
    padding: 26px 0 clamp(56px, 7vw, 88px);
}

.order-top {
    margin-bottom: 20px;
}

.back-link {
    gap: 8px;
    font-size: 9.5px;
    letter-spacing: 0.16em;
    color: rgba(242, 242, 244, 0.46);
    transition: color 0.25s var(--ease-soft);
}

.order-code-box {
    gap: 14px;
    padding: 7px 7px 7px 14px;
    border: 1px solid var(--glass-line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.028);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.order-code-label {
    font-size: 8px;
    letter-spacing: 0.18em;
    color: rgba(242, 242, 244, 0.4);
}

.order-code-value {
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text);
}

.order-code-box .copy-btn {
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--gold);
}

/* ---------- Status ---------- */

.status-band {
    position: relative;
    gap: 24px;
    padding: 24px 26px;
    border: 1px solid var(--glass-line);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.022);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

/* Aksen status: garis rambut, bukan blok warna. */
.status-band::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--faint);
}

.status-band.tone-wait::before { background: var(--gold); }
.status-band.tone-info::before { background: var(--violet); }
.status-band.tone-good::before { background: var(--green); }
.status-band.tone-bad::before { background: var(--red); }

.status-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    font-size: 9px;
    letter-spacing: 0.22em;
    color: rgba(242, 242, 244, 0.42);
}

.status-kicker::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--gold);
}

.status-title {
    font-family: var(--display);
    font-size: clamp(23px, 2.4vw, 30px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.status-sub {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(242, 242, 244, 0.56);
}

.status-pill {
    padding: 6px 12px;
    border-width: 1px;
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: 0.16em;
}

.status-pill::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-updated {
    font-size: 9.5px;
    letter-spacing: 0.04em;
    color: rgba(242, 242, 244, 0.34);
}

/* ---------- Rel progres ---------- */

.order-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 26px 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
}

.order-track li {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 9px;
    padding: 0;
    border-right: 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(242, 242, 244, 0.38);
    transition: color 0.3s var(--ease-soft);
}

.order-track li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 30px;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.13);
}

.order-track li.is-done:not(:last-child)::after {
    background: rgba(233, 180, 76, 0.34);
}

.track-dot {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 21px;
    height: 21px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    border-radius: 50%;
    z-index: 1;
}

.order-track li.is-done {
    color: rgba(242, 242, 244, 0.68);
}

.order-track li.is-done .track-dot {
    border-color: var(--gold);
    background: var(--gold);
}

.order-track li.is-active {
    background: none;
    color: var(--gold);
}

.order-track li.is-active .track-dot {
    border-color: var(--gold);
    background: transparent;
    animation: none;
    box-shadow: none;
}

.order-track li.is-active .track-dot::before {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    animation: track-ring 2.4s var(--ease-soft) infinite;
}

.order-track li.is-active .track-dot::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

@keyframes track-ring {
    0% { transform: scale(1); opacity: 0.7; }
    70%, 100% { transform: scale(1.75); opacity: 0; }
}

.order-track.is-closed li.is-done .track-dot {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.24);
}

/* ---------- Grid & permukaan ---------- */

.order-grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(310px, 0.68fr);
    gap: 18px;
}

.order-main-col {
    gap: 18px;
}

.order-side {
    gap: 14px;
}

.order-shell .panel {
    padding: 24px;
    border: 1px solid var(--glass-line);
    border-radius: var(--r-md);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 30px 60px -50px #000;
}

/* ---------- Panel bayar ---------- */

.pay-panel {
    display: grid;
    grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(22px, 2.6vw, 34px);
    row-gap: 0;
    align-items: start;
    padding: 26px;
    border-color: rgba(233, 180, 76, 0.24);
    background: rgba(17, 16, 13, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 0 1px rgba(233, 180, 76, 0.045),
        0 40px 80px -60px #000;
}

.pay-head {
    display: block;
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 18px;
}

.pay-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.pay-panel .panel-title {
    font-family: var(--display);
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    max-width: 26ch;
}

.pay-sub {
    max-width: 48ch;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(242, 242, 244, 0.55);
}

.countdown {
    min-width: 104px;
    padding: 10px 14px 9px;
    gap: 3px;
    border: 1px solid rgba(233, 180, 76, 0.28);
    border-radius: 12px;
    background: rgba(233, 180, 76, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Di dalam kartu QR, countdown jadi baris tipis di bawah nominal. */
.qr-card .countdown {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin-top: 12px;
    padding: 11px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.qr-card .countdown-label {
    font-size: 8.5px;
    letter-spacing: 0.18em;
    color: rgba(242, 242, 244, 0.46);
}

.qr-card .countdown-value {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--gold);
}

.qr-card .countdown.is-urgent {
    border-top-color: rgba(255, 110, 110, 0.38);
    background: none;
}

.qr-card .countdown.is-urgent .countdown-value {
    color: #ff8d80;
}

.countdown-label {
    font-size: 8px;
    letter-spacing: 0.18em;
    color: rgba(242, 242, 244, 0.46);
}

.countdown-value {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--gold);
}

.countdown.is-urgent {
    border-color: rgba(255, 110, 110, 0.48);
    background: rgba(255, 110, 110, 0.07);
}

.countdown.is-urgent .countdown-value {
    color: #ff8d80;
}

.pay-body {
    grid-column: 2;
    grid-row: 2;
    display: contents;
}

/* Kartu QR */

.qr-card {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    display: grid;
    align-content: start;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.026);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.qr-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.qr-card-label {
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(242, 242, 244, 0.42);
}

.qr-brand {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
}

.qr-brand img {
    display: block;
    width: 64px;
    height: auto;
}

.qr-amount {
    display: block;
    margin-top: 10px;
    font-family: var(--display);
    font-size: clamp(30px, 3.4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.qr-amount-note {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(240, 205, 138, 0.78);
}

.qr-frame {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    height: auto;
    margin: 14px auto 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(233, 180, 76, 0.05);
}

.qr-frame::before,
.qr-frame::after {
    content: none;
}

.qr-plate {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.qr-plate canvas,
.qr-plate img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    image-rendering: pixelated;
}

.qr-corner {
    position: absolute;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(233, 180, 76, 0.85);
    pointer-events: none;
    z-index: 3;
}

.qr-corner--tl {
    top: -1px;
    left: -1px;
    border-right: 0;
    border-bottom: 0;
    border-top-left-radius: 14px;
}

.qr-corner--tr {
    top: -1px;
    right: -1px;
    border-left: 0;
    border-bottom: 0;
    border-top-right-radius: 14px;
}

.qr-corner--bl {
    bottom: -1px;
    left: -1px;
    border-right: 0;
    border-top: 0;
    border-bottom-left-radius: 14px;
}

.qr-corner--br {
    bottom: -1px;
    right: -1px;
    border-left: 0;
    border-top: 0;
    border-bottom-right-radius: 14px;
}

.qr-scan {
    position: absolute;
    inset: 0;
    border-top: 2px solid rgba(233, 180, 76, 0.7);
    box-shadow: 0 0 10px rgba(233, 180, 76, 0.35);
    opacity: 0;
    pointer-events: none;
    animation: qr-scan 4s var(--ease-soft) infinite;
}

@keyframes qr-scan {
    0% { transform: translateY(0); opacity: 0; }
    12% { opacity: 0.5; }
    74% { opacity: 0.4; }
    92%, 100% { transform: translateY(100%); opacity: 0; }
}

.qr-loading {
    font-size: 11px;
    font-weight: 500;
    color: #4a4030;
    text-align: center;
    padding: 0 14px;
    animation: qrPulse 1.4s ease-in-out infinite;
}

.qr-hint {
    margin-top: 12px;
    font-size: 10.5px;
    line-height: 1.5;
    text-align: center;
    color: rgba(242, 242, 244, 0.52);
}

.qr-card .btn {
    margin-top: 10px;
    width: 100%;
}

/* Langkah */

.pay-side {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 2px;
}

.pay-side .pay-kicker {
    margin-bottom: 0;
}

.pay-steps {
    gap: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(242, 242, 244, 0.72);
}

.pay-steps li {
    position: relative;
    padding: 0 0 16px 38px;
    min-height: 24px;
}

.pay-steps li:last-child {
    padding-bottom: 0;
}

.pay-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 27px;
    bottom: 3px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.pay-steps li::before {
    content: counter(paystep, decimal-leading-zero);
    left: 0;
    top: -1px;
    width: 23px;
    height: 23px;
    border: 1px solid rgba(233, 180, 76, 0.34);
    border-radius: 50%;
    background: rgba(233, 180, 76, 0.07);
    color: var(--gold);
    font-size: 9px;
    font-weight: 600;
}

.pay-steps strong {
    color: #fff;
}

.pay-apps {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pay-apps-label {
    font-size: 8.5px;
    letter-spacing: 0.18em;
    color: rgba(233, 180, 76, 0.9);
}

.pay-apps-note {
    width: 100%;
    margin-left: 0;
    font-size: 10px;
    color: rgba(242, 242, 244, 0.46);
}

.pay-foot {
    grid-column: 1 / -1;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.pay-ref {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(242, 242, 244, 0.42);
}

.pay-ref strong {
    margin-left: 4px;
    font-family: var(--display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--gold-soft);
}

.pay-foot .copy-btn {
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(242, 242, 244, 0.72);
}

.pay-foot .copy-btn:hover {
    border-color: rgba(233, 180, 76, 0.4);
    color: var(--gold);
}

/* ---------- Panel total ---------- */

.total-panel {
    position: relative;
    padding: 24px;
    border: 1px solid rgba(233, 180, 76, 0.26);
    border-radius: var(--r-md);
    background: rgba(30, 24, 13, 0.55);
    color: var(--text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 30px 70px -60px #000;
    overflow: hidden;
}

.total-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: rgba(233, 180, 76, 0.5);
}

.total-label {
    font-size: 8.5px;
    letter-spacing: 0.24em;
    color: rgba(233, 180, 76, 0.72);
}

.total-value {
    margin-top: 8px;
    font-family: var(--display);
    font-size: clamp(32px, 3.2vw, 40px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--gold-soft);
    font-variant-numeric: tabular-nums;
}

.total-currency {
    margin-top: 7px;
    font-size: 8.5px;
    letter-spacing: 0.2em;
    color: rgba(242, 242, 244, 0.38);
}

.total-meta {
    display: grid;
    gap: 2px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.13);
}

.total-mini {
    gap: 14px;
    padding: 4px 0;
    font-size: 11.5px;
    color: rgba(242, 242, 244, 0.46);
}

.total-mini strong {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(242, 242, 244, 0.86);
    text-align: right;
    word-break: break-word;
    min-width: 0;
}

/* ---------- Panel pendamping ---------- */

.help-panel p,
.token-panel p {
    margin: 6px 0 14px;
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(242, 242, 244, 0.5);
}

.help-panel .panel-title,
.token-panel .panel-title,
#items-panel .panel-title,
#details-panel .panel-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.help-panel .btn {
    min-height: 40px;
}

.token-panel {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--glass-bg);
}

.token-reveal code {
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    color: rgba(242, 242, 244, 0.72);
}

/* ---------- Sukses & tertutup ---------- */

.success-panel {
    padding: 40px 26px;
    border-color: rgba(62, 213, 152, 0.28);
    background: rgba(14, 30, 24, 0.5);
}

.success-mark {
    width: 66px;
    height: 66px;
    margin-bottom: 20px;
    border: 1px solid rgba(62, 213, 152, 0.62);
    background: rgba(62, 213, 152, 0.08);
    box-shadow: 0 0 0 7px rgba(62, 213, 152, 0.045);
    font-size: 27px;
    font-weight: 500;
}

.success-panel .panel-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.success-panel .page-lead {
    max-width: 48ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(242, 242, 244, 0.6);
}

.success-panel .field-help {
    display: block;
    max-width: 46ch;
    margin: 12px auto 0;
    font-size: 11.5px;
    line-height: 1.6;
    color: rgba(242, 242, 244, 0.36);
}

.delivery-line {
    margin: 20px auto 6px;
    padding: 10px 18px;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.03);
    font-size: 12.5px;
    font-weight: 400;
}

.closed-panel {
    padding: 40px 26px;
    border-color: rgba(255, 110, 110, 0.26);
    background: rgba(34, 15, 15, 0.5);
}

.closed-mark {
    width: 66px;
    height: 66px;
    margin-bottom: 20px;
    border-width: 1px;
    border-color: rgba(255, 110, 110, 0.55);
    border-radius: 50%;
    background: rgba(255, 110, 110, 0.08);
    font-size: 26px;
    font-weight: 500;
}

.closed-panel .panel-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.closed-actions {
    margin-top: 22px;
}

/* ---------- Token gate ---------- */

.token-gate {
    padding: 30px;
}

.token-gate .panel-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.token-gate .page-lead {
    font-size: 13.5px;
    color: rgba(242, 242, 244, 0.55);
}

/* ---------- Layar menengah ---------- */

@media (max-width: 1080px) {
    .order-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    /* Panel total naik tepat di bawah pembayaran, bukan di dasar halaman. */
    .order-main-col,
    .order-side {
        display: contents;
    }

    #pay-panel,
    #paid-panel,
    #closed-panel {
        order: 1;
    }

    #total-panel {
        order: 2;
    }

    #items-panel {
        order: 3;
    }

    #details-panel {
        order: 4;
    }

    .help-panel {
        order: 5;
    }

    .token-panel {
        order: 6;
    }

    .total-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
        align-items: end;
        gap: 8px 40px;
    }

    .total-head {
        min-width: 200px;
    }

    .total-meta {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 2px 24px;
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .total-mini {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        min-width: 0;
        padding: 0;
    }

    .total-mini span {
        font-size: 9px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(242, 242, 244, 0.36);
    }

    .total-mini strong {
        text-align: left;
    }
}

/* ---------- Ponsel ---------- */

@media (max-width: 820px) {
    .pay-panel {
        display: block;
        padding: 22px;
    }

    .pay-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .qr-card,
    .pay-side {
        grid-column: auto;
        grid-row: auto;
    }

    .qr-card {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .pay-foot {
        margin-top: 18px;
    }
}

@media (max-width: 720px) {
    .order-shell {
        padding-top: 18px;
        padding-bottom: 56px;
    }

    .order-shell .panel {
        padding: 18px;
        border-radius: var(--r-md);
    }

    .pay-panel {
        padding: 18px;
    }

    .order-top {
        gap: 12px;
        margin-bottom: 14px;
    }

    .status-band {
        padding: 20px 18px;
        gap: 16px;
    }

    .status-sub {
        font-size: 12.5px;
    }

    .order-track {
        margin: 22px 0;
    }

    .order-track li {
        font-size: 9.5px;
        gap: 8px;
    }

    .order-track li:not(:last-child)::after {
        left: 27px;
        top: 9px;
    }

    .track-dot {
        width: 19px;
        height: 19px;
    }

    .pay-head {
        gap: 14px;
        margin-bottom: 18px;
    }

    .qr-card .countdown-value {
        font-size: 20px;
    }

    .pay-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .qr-card {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        padding: 15px;
    }

    .qr-frame {
        margin-top: 12px;
    }

    .qr-amount {
        font-size: 32px;
    }

    .pay-apps {
        padding-top: 16px;
    }

    .pay-apps-note {
        width: 100%;
    }

    .pay-foot {
        margin-top: 18px;
    }

    .total-panel {
        display: block;
        padding: 20px;
    }

    .total-meta {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
        margin-top: 16px;
        padding-top: 14px;
        border-top: 1px dashed rgba(255, 255, 255, 0.13);
    }

    .total-mini {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
        min-width: 0;
        padding: 4px 0;
    }

    .total-mini span {
        font-size: 11.5px;
        letter-spacing: 0;
        text-transform: none;
        color: rgba(242, 242, 244, 0.46);
    }

    .total-mini strong {
        text-align: right;
    }

    .total-value {
        font-size: 34px;
    }

    .success-panel,
    .closed-panel {
        padding: 32px 20px;
    }

    .token-gate {
        padding: 22px;
    }
}

@media (max-width: 420px) {
    .order-code-box {
        gap: 10px;
        padding-left: 12px;
    }

    .order-code-value {
        font-size: 12.5px;
    }

    .qr-frame {
        max-width: 100%;
    }

    .qr-amount {
        font-size: 29px;
    }

    .pay-ref strong {
        font-size: 14.5px;
    }

    .total-value {
        font-size: 31px;
    }
}

/* ---------- Kurangi transparansi ---------- */

@media (prefers-reduced-transparency: reduce) {
    .order-shell .panel,
    .qr-card,
    .total-panel {
        background: #0d0d12;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}
