/* ===== Tokens ===== */

:root {
    --bg: #f5f6fa;
    --bg-2: #f1f2f7;
    --card: #ffffff;
    --card-2: #ffffff;
    --line: rgba(20, 20, 45, .1);
    --text: #1b1b2b;
    --muted: #6c6c82;
    --brand: #ff7a18;
    --brand-2: #ff3d3d;
    --accent: #7b5cff;
    --cyan: #0284c7;
    --good: #16a34a;
    --grad: linear-gradient(135deg, #ff7a18, #ff3d3d 55%, #ff007a);
    --grad-soft: linear-gradient(135deg, rgba(255, 122, 24, .12), rgba(255, 61, 61, .08));
    --radius: 18px;
    --shadow: 0 14px 40px rgba(30, 30, 60, .12);
    --ring: 0 0 0 3px rgba(255, 122, 24, .2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    background-image: linear-gradient(180deg, rgba(245, 246, 250, .74), rgba(245, 246, 250, .88) 55%, var(--bg) 88%), url(../home.jpg);
    background-repeat: no-repeat, no-repeat;
    background-position: center top, center top;
    background-size: cover, cover;
    background-attachment: fixed, fixed;
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}

/* Premium emoji (Twemoji) sizing */

img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 .04em 0 .08em;
    vertical-align: -.125em;
    display: inline-block
}

.p-icon img.emoji,
.avatar img.emoji {
    margin: 0
}

.container {
    width: min(1160px, 92%);
    margin-inline: auto
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Russo One', sans-serif;
    letter-spacing: .3px
}

a {
    color: inherit;
    text-decoration: none
}

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.muted {
    color: var(--muted)
}

.center {
    text-align: center
}

/* ===== Animated background orbs ===== */

.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px)
}

.orb {
    position: absolute;
    border-radius: 50%;
    opacity: .12;
    animation: drift 18s ease-in-out infinite
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: #ff3d3d;
    top: -120px;
    left: -80px
}

.orb-2 {
    width: 380px;
    height: 380px;
    background: #7b5cff;
    bottom: -120px;
    right: -60px;
    animation-delay: -6s
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #22d3ee;
    top: 40%;
    left: 60%;
    opacity: .08;
    animation-delay: -12s
}

@keyframes drift {
    0%,
    100% {
        transform: translate(0, 0)
    }
    33% {
        transform: translate(40px, -30px)
    }
    66% {
        transform: translate(-30px, 40px)
    }
}

/* ===== Buttons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 999px;
    padding: .85rem 1.5rem;
    transition: transform .15s ease, box-shadow .2s ease, background .2s;
    color: #fff;
}

.btn:active {
    transform: scale(.97)
}

.btn-primary {
    background: var(--grad);
    box-shadow: 0 10px 30px rgba(255, 61, 61, .35)
}

.btn-primary:hover {
    box-shadow: 0 14px 40px rgba(255, 61, 61, .5);
    transform: translateY(-2px)
}

.btn-ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text)
}

.btn-ghost:hover {
    background: #f3f4f9;
    border-color: var(--brand)
}

.btn-text {
    background: none;
    color: var(--muted);
    padding: .5rem;
    font-weight: 500
}

.btn-text:hover {
    color: var(--text)
}

.btn-block {
    width: 100%
}

.btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
    transform: none
}

/* ===== Header (official white top bar) ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #ececf1;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06)
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    height: 74px
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem
}

.brand-logo {
    height: 42px;
    width: auto;
    display: block
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1
}

.brand-text strong {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: #1c1c28;
    letter-spacing: -.3px
}

.brand-text small {
    font-weight: 600;
    font-size: 1rem;
    color: #9a9ab0;
    margin-top: 1px
}

.main-nav {
    display: flex;
    gap: 1.8rem;
    margin-left: auto
}

.main-nav a {
    color: #4a4a5e;
    font-weight: 600;
    font-size: .95rem;
    position: relative;
    transition: color .2s
}

.main-nav a:hover {
    color: var(--brand-2)
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    height: 3px;
    width: 0;
    background: var(--grad);
    border-radius: 3px;
    transition: width .25s
}

.main-nav a:hover::after {
    width: 100%
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #1c1c28;
    border-radius: 2px;
    transition: .3s
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

/* ===== Banner carousel ===== */

.carousel {
    position: relative;
    width: min(1160px, 94%);
    margin: 1.5rem auto 0;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow)
}

.carousel-viewport {
    overflow: hidden;
    width: 100%
}

.carousel-track {
    display: flex;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
    will-change: transform
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
    font-size: 0
}

.slide img {
    display: block;
    width: 100%;
    height: auto
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, .3);
    backdrop-filter: blur(6px);
    transition: background .2s, opacity .2s;
    opacity: 0
}

.carousel:hover .carousel-btn {
    opacity: 1
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, .55)
}

.carousel-btn.prev {
    left: 14px
}

.carousel-btn.next {
    right: 14px
}

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: .5rem
}

.carousel-dots button {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    padding: 0;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    transition: width .3s, background .3s
}

.carousel-dots button.active {
    width: 24px;
    background: var(--grad)
}

/* ===== Game banner ===== */

.game-banner {
    padding: 1.4rem 0 0
}

.game-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 1.5rem 1.7rem;
    min-height: 128px;
    box-shadow: var(--shadow);
    background-image: linear-gradient(90deg, rgba(18, 8, 14, .94) 0%, rgba(18, 8, 14, .6) 42%, rgba(18, 8, 14, .1) 100%), url(../g/FF.jpg);
    background-size: cover;
    background-position: center right
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    flex: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .45)
}

.game-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    align-items: flex-start
}

.game-title {
    color: #fff;
    font-family: 'Russo One';
    font-size: clamp(1.4rem, 4vw, 2.1rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55)
}

.secure-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .92rem;
    color: #37d979;
    background: rgba(0, 0, 0, .38);
    border: 1.5px solid rgba(55, 217, 121, .65);
    border-radius: 999px;
    padding: .42rem .95rem;
    backdrop-filter: blur(4px)
}

.secure-pill svg {
    width: 15px;
    height: 15px;
    color: #37d979
}

@media(max-width:520px) {
    .game-card {
        gap: .9rem;
        padding: 1.1rem 1.2rem;
        min-height: 104px
    }
    .game-icon {
        width: 62px;
        height: 62px;
        border-radius: 14px
    }
    .secure-pill {
        font-size: .82rem;
        padding: .36rem .8rem
    }
}

/* ===== Store: verified account bar ===== */

.store-hero {
    padding: 1.8rem 0 0
}

.verified-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.3rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden
}

.verified-bar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--grad)
}

.vb-left {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap
}

.vb-avatar {
    width: 54px;
    height: 54px;
    flex: none;
    border-radius: 14px;
    display: grid;
    place-content: center;
    font-size: 1.6rem;
    background: var(--grad-soft);
    border: 1px solid var(--line);
    overflow: hidden
}

.vb-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35
}

.vb-label {
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600
}

.vb-info strong {
    font-size: 1.2rem
}

.vb-meta {
    font-size: .86rem;
    color: var(--muted)
}

.vb-meta b {
    color: var(--text);
    font-weight: 600
}

.vb-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--good);
    background: rgba(22, 163, 74, .1);
    border: 1px solid rgba(22, 163, 74, .4);
    border-radius: 999px;
    padding: .3rem .7rem
}

.vb-change {
    font-weight: 600;
    font-size: .9rem;
    color: var(--brand-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .55rem 1.1rem;
    background: #fff;
    transition: .2s;
    white-space: nowrap
}

.vb-change:hover {
    border-color: var(--brand);
    background: #fff6ef
}

@media(max-width:520px) {
    .verified-bar {
        padding: .9rem 1rem
    }
    .vb-change {
        width: 100%;
        text-align: center
    }
    .vb-badge {
        order: 3
    }
}

/* ===== Section heads ===== */

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 2.5rem
}

.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem)
}

.section-head p {
    color: var(--muted);
    margin-top: .6rem
}

section {
    padding: 4rem 0
}

/* ===== UID Top-up ===== */

.uid-card {
    max-width: 520px;
    margin: 0 auto;
    background: linear-gradient(160deg, var(--card-2), var(--card));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden
}

.uid-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: var(--radius);
    background: var(--grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .4;
    pointer-events: none
}

.field {
    margin-bottom: 1.2rem
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: .5rem;
    font-size: .92rem
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .2rem .9rem;
    transition: border-color .2s, box-shadow .2s
}

.input-wrap:focus-within {
    border-color: var(--brand);
    box-shadow: var(--ring)
}

.input-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center
}

.input-icon img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain
}

.input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font: inherit;
    font-size: 1.1rem;
    padding: .85rem 0;
    letter-spacing: 1px
}

.input-wrap input::placeholder {
    color: #5a5a72;
    letter-spacing: 0
}

.hint {
    display: block;
    margin-top: .5rem;
    color: var(--muted);
    font-size: .82rem;
    transition: .2s
}

.hint.error {
    color: #d61f1f;
    font-weight: 600;
    background: rgba(255, 61, 61, .08);
    border: 1px solid rgba(255, 61, 61, .32);
    border-left: 4px solid #ff3d3d;
    border-radius: 9px;
    padding: .6rem .8rem;
    display: flex;
    align-items: center;
    gap: .45rem;
    animation: shake .35s
}

.hint.error::before {
    content: "⚠";
    font-size: 1rem;
    line-height: 1
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0)
    }
    25% {
        transform: translateX(-5px)
    }
    75% {
        transform: translateX(5px)
    }
}

.input-wrap.invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, .2)
}

/* spinner */

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rot .7s linear infinite
}

@keyframes rot {
    to {
        transform: rotate(360deg)
    }
}

/* ===== Tabs ===== */

.tabs {
    display: flex;
    gap: .6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem
}

.tab {
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .6rem 1.1rem;
    transition: .2s
}

.tab:hover {
    color: var(--text);
    border-color: var(--brand)
}

.tab-ic {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: .15rem
}

.tab.active {
    color: #fff;
    background: var(--grad);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(255, 61, 61, .3)
}

/* ===== Product grid ===== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem
}

.product {
    position: relative;
    background: linear-gradient(160deg, var(--card-2), var(--card));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    cursor: pointer;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    animation: fadeUp .5s both
}

.product:hover {
    transform: translateY(-6px);
    border-color: var(--brand);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .4)
}

.product .p-icon {
    font-size: 3.4rem;
    filter: drop-shadow(0 6px 14px rgba(255, 122, 24, .28));
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .2rem
}

.product .p-img {
    width: 118px;
    height: 118px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .22))
}

.product .p-amount {
    font-family: 'Russo One';
    font-size: 1.5rem;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.product .p-name {
    font-weight: 600
}

.product .p-sub {
    color: var(--muted);
    font-size: .85rem;
    flex: 1
}

.product .p-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .6rem
}

.product .p-price {
    font-weight: 700;
    font-size: 1.15rem
}

.product .p-old {
    color: var(--muted);
    text-decoration: line-through;
    font-size: .85rem;
    margin-left: .4rem;
    font-weight: 400
}

.product .p-buy {
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand)
}

.product .p-stock {
    font-size: .76rem;
    font-weight: 600;
    color: #34c759;
    display: flex;
    align-items: center;
    gap: .35rem
}

.product .p-stock::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor
}

.product .p-stock.low {
    color: #ff9f0a
}

.product .p-stock.out {
    color: var(--muted)
}

.product.is-out {
    opacity: 1
}

.product.is-out> :not(.out-badge) {
    opacity: .62;
    filter: grayscale(.45)
}

.product.is-out:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: none
}

.product.is-out .p-buy {
    color: var(--muted)
}

.product.is-out .p-amount {
    -webkit-text-fill-color: initial
}

.out-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff3d3d, #e01010);
    color: #fff;
    border: 1px solid rgba(255, 80, 80, .6);
    box-shadow: 0 2px 8px rgba(224, 16, 16, .4)
}

.tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: var(--grad);
    color: #fff
}

.tag.hot {
    background: linear-gradient(135deg, #ff3d3d, #ff007a)
}

.tag.best {
    background: linear-gradient(135deg, #22c55e, #16a34a)
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ===== Steps ===== */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem
}

.step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.9rem 1.4rem 1.7rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s
}

.step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s
}

.step:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 22px 48px rgba(255, 61, 61, .16)
}

.step:hover::before {
    transform: scaleX(1)
}

.step-num {
    width: 52px;
    height: 52px;
    display: grid;
    place-content: center;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: var(--grad);
    font-family: 'Russo One';
    font-size: 1.35rem;
    color: #fff;
    position: relative;
    box-shadow: 0 10px 24px rgba(255, 61, 61, .4);
    transition: transform .25s
}

.step-num::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(255, 61, 61, .28)
}

.step:hover .step-num {
    transform: scale(1.12) rotate(-4deg)
}

.step h3 {
    font-size: 1.08rem;
    margin-bottom: .45rem
}

.step p {
    color: var(--muted);
    font-size: .9rem
}

/* ===== FAQ ===== */

.accordion {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .8rem
}

.acc-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden
}

.acc-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font: inherit;
    font-weight: 600;
    text-align: left;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 1.1rem 1.3rem
}

.acc-q span {
    color: var(--brand);
    font-size: 1.4rem;
    transition: transform .25s
}

.acc-item.open .acc-q span {
    transform: rotate(45deg)
}

.acc-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease
}

.acc-a p {
    padding: 0 1.3rem 1.1rem;
    color: var(--muted)
}

/* ===== Footer ===== */

.footer {
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
    background: #fff
}

.brand-footer .brand-logo {
    height: 36px
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap
}

.footer-inner .muted {
    margin-top: .8rem;
    max-width: 30ch;
    font-size: .9rem
}

.footer-cols {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap
}

.footer-cols h4 {
    margin-bottom: .8rem;
    font-size: .95rem
}

.footer-cols a {
    display: block;
    color: var(--muted);
    font-size: .9rem;
    padding: .25rem 0;
    transition: color .2s
}

.footer-cols a:hover {
    color: var(--text)
}

.copyright {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .85rem;
    text-align: center
}

/* ===== Modal ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1.2rem;
    background: rgba(5, 5, 12, .7);
    backdrop-filter: blur(8px);
    animation: fadeIn .25s
}

.modal-overlay[hidden] {
    display: none
}

@keyframes fadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

.modal {
    position: relative;
    width: min(440px, 100%);
    margin: 0;
    flex: 0 0 auto;
    background: linear-gradient(160deg, var(--card-2), var(--card));
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: pop .35s cubic-bezier(.2, .9, .3, 1.4)
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.94)
    }
    to {
        opacity: 1;
        transform: none
    }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f2f7;
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    font-size: .9rem
}

.modal-close:hover {
    background: #e6e7ee
}

.modal-body {
    padding: 2.2rem 1.8rem 1.8rem;
    text-align: center
}

.modal-title {
    font-size: 1.5rem
}

.modal-sub {
    color: var(--muted);
    margin: .3rem 0 1.4rem
}

.success-ring {
    width: 74px;
    height: 74px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-content: center;
    background: radial-gradient(circle, rgba(34, 197, 94, .25), transparent 70%);
    border: 2px solid var(--good);
    animation: ringPop .5s both
}

.success-ring .check {
    font-size: 2rem;
    color: var(--good)
}

@keyframes ringPop {
    0% {
        transform: scale(0);
        opacity: 0
    }
    60% {
        transform: scale(1.15)
    }
    100% {
        transform: scale(1);
        opacity: 1
    }
}

.player-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.1rem;
    margin-bottom: 1.4rem;
    text-align: left
}

.avatar {
    width: 58px;
    height: 58px;
    flex: none;
    border-radius: 14px;
    display: grid;
    place-content: center;
    font-size: 1.8rem;
    background: var(--grad-soft);
    border: 1px solid var(--line);
    overflow: hidden
}

.avatar img,
.vb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block
}

.player-meta {
    flex: 1;
    display: grid;
    gap: .35rem
}

.p-row {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    gap: 1rem
}

.p-row span {
    color: var(--muted)
}

.p-row strong {
    text-align: right
}

/* ===== Player (congrats) modal — stylish profile card ===== */

.player-modal {
    width: min(410px, 100%);
    padding: 0;
    overflow: hidden
}

.player-modal .modal-body {
    padding: 0 1.6rem 1.6rem
}

.player-modal .modal-close {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
    z-index: 4
}

.player-modal .modal-close:hover {
    background: rgba(255, 255, 255, .4)
}

.pm-hero {
    position: relative;
    height: 104px;
    background: var(--grad);
    border-radius: 24px 24px 0 0;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center
}

.pm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .35), transparent 40%), radial-gradient(circle at 85% 60%, rgba(255, 255, 255, .2), transparent 45%)
}

.pm-spark {
    position: absolute;
    color: rgba(255, 255, 255, .85);
    font-size: .9rem;
    animation: twinkleStar 2.2s ease-in-out infinite
}

.pm-spark.s1 {
    top: 22px;
    left: 32px;
    font-size: 1.1rem
}

.pm-spark.s2 {
    top: 46px;
    right: 48px;
    animation-delay: .6s
}

.pm-spark.s3 {
    top: 18px;
    right: 90px;
    font-size: .7rem;
    animation-delay: 1.1s
}

@keyframes twinkleStar {
    0%,
    100% {
        opacity: .3;
        transform: scale(.8)
    }
    50% {
        opacity: 1;
        transform: scale(1.2)
    }
}

.pm-avatar {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    border-radius: 24px;
    overflow: hidden;
    border: 4px solid var(--card);
    background: var(--card);
    transform: translateY(34%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3)
}

.pm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.pm-body {
    text-align: center;
    padding-top: 46px !important
}

.pm-verified {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--good);
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .4);
    border-radius: 999px;
    padding: .28rem .75rem
}

.pm-name {
    font-family: 'Russo One';
    font-size: 1.55rem;
    line-height: 1.15;
    margin: .55rem 0 .25rem;
    word-break: break-word
}

.player-modal .modal-sub {
    margin-bottom: 1.3rem
}

.pm-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-bottom: 1rem
}

.pm-stat {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .85rem .3rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    transition: transform .2s, border-color .2s
}

.pm-stat:hover {
    transform: translateY(-3px);
    border-color: var(--brand)
}

.pm-stat strong {
    font-family: 'Russo One';
    font-size: 1.2rem;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.pm-stat small {
    color: var(--muted);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .5px
}

.pm-rows {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .3rem 1rem;
    margin-bottom: 1.3rem
}

.pm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .6rem 0;
    font-size: .92rem;
    border-bottom: 1px solid var(--line)
}

.pm-row:last-child {
    border-bottom: none
}

.pm-row span {
    color: var(--muted)
}

.pm-row strong {
    text-align: right;
    word-break: break-all
}

.pm-cta {
    margin-bottom: .3rem
}

/* payment modal */

.modal-pay {
    width: min(420px, 100%)
}

.pay-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    color: var(--muted)
}

.spinner.big {
    width: 34px;
    height: 34px;
    border-width: 3px;
    border-color: rgba(255, 122, 24, .3);
    border-top-color: var(--brand)
}

.qr-box {
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    width: max-content;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1)
}

.qr-box img {
    display: block;
    border-radius: 6px
}

.pay-amount {
    font-family: 'Russo One';
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.pay-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600
}

.promo-row {
    display: flex;
    gap: .5rem;
    margin: .4rem 0 .2rem
}

.promo-row input {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .7rem .9rem;
    color: var(--text);
    font: inherit;
    outline: none;
    text-transform: uppercase
}

.promo-row input:focus {
    border-color: var(--brand);
    box-shadow: var(--ring)
}

.promo-row .btn {
    border-radius: 10px;
    white-space: nowrap;
    background: var(--grad);
    color: #fff;
    border: none;
    padding: .7rem 1.3rem
}

.promo-row .btn:hover {
    filter: brightness(1.07)
}

.promo-msg {
    font-size: .82rem;
    min-height: 1rem;
    margin-bottom: .6rem;
    color: var(--good);
    font-weight: 600
}

.promo-msg.err {
    color: #d61f1f
}

.promo-applied {
    font-size: .85rem;
    font-weight: 600;
    color: var(--good);
    background: rgba(22, 163, 74, .1);
    border: 1px solid rgba(22, 163, 74, .3);
    border-radius: 10px;
    padding: .6rem .8rem;
    margin-bottom: .9rem;
    text-align: center
}

.pay-notice {
    margin: 0 0 .9rem;
    padding: .7rem .9rem;
    border-radius: 10px;
    font-size: .86rem;
    font-weight: 600;
    color: #d61f1f;
    background: rgba(255, 61, 61, .08);
    border: 1px solid rgba(255, 61, 61, .32);
    border-left: 4px solid #ff3d3d
}

.pay-notice[hidden] {
    display: none
}

.pay-notice.shake {
    animation: shake .35s
}

.success-ring.err {
    border-color: #ff3d3d;
    background: radial-gradient(circle, rgba(255, 61, 61, .2), transparent 70%)
}

.success-ring.err .check {
    color: #ff3d3d
}

/* checkout */

.checkout-summary {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.2rem;
    margin: 1.2rem 0;
    text-align: left
}

.cs-row {
    display: flex;
    justify-content: space-between;
    padding: .4rem 0;
    font-size: .95rem
}

.cs-row.total {
    border-top: 1px solid var(--line);
    margin-top: .5rem;
    padding-top: .8rem;
    font-weight: 700;
    font-size: 1.1rem
}

.cs-row .grad {
    font-family: 'Russo One'
}

/* confetti */

.confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden
}

.confetti i {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 14px;
    opacity: .9;
    animation: fall linear forwards
}

@keyframes fall {
    to {
        transform: translateY(520px) rotate(540deg);
        opacity: 0
    }
}

/* ===== Toast ===== */

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 200;
    background: var(--card-2);
    border: 1px solid var(--line);
    color: var(--text);
    padding: .9rem 1.4rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: .3s;
    font-size: .92rem;
    max-width: 90%
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
}

.toast[hidden] {
    display: none
}

.toast.err {
    border-color: #ff6b6b
}

.toast.ok {
    border-color: var(--good)
}

/* ===== Purchase activity popup ===== */
.sale-pop {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: .8rem;
    width: min(320px, 86vw);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .75rem .85rem;
    box-shadow: var(--shadow);
    transform: translateX(-130%);
    opacity: 0;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s
}
.sale-pop.show { transform: none; opacity: 1 }
.sale-pop[hidden] { display: none }
.sp-icon {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    display: grid;
    place-content: center;
    font-size: 1.35rem;
    background: var(--grad-soft);
    border: 1px solid var(--line);
    overflow: hidden
}
.sp-icon img { width: 38px; height: 38px; object-fit: contain }
.sp-body { display: flex; flex-direction: column; line-height: 1.35; min-width: 0 }
.sp-body strong { font-size: .9rem }
.sp-state { font-weight: 500; font-size: .78rem; color: var(--muted) }
.sp-body span { font-size: .85rem; color: var(--text) }
.sp-body small { color: var(--muted); font-size: .74rem; margin-top: 2px; display: flex; align-items: center; gap: .4rem }
.sp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 6px var(--good); flex: none }
@media(max-width:520px) {
    .sale-pop { left: 10px; bottom: 10px; width: min(290px, 80vw) }
}

.deep-payment-options { display: grid; gap: .65rem; margin: 1rem 0; }
.deep-payment-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); color: var(--text); cursor: pointer; text-align: left; }
.deep-payment-option.selected { border-color: var(--brand-1); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-1) 18%, transparent); }
.deep-payment-left { display: flex; align-items: center; gap: .7rem; }
.deep-payment-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--grad-soft); font-size: 1.1rem; overflow: hidden; }
.deep-payment-icon img { width: 28px; height: 28px; object-fit: contain; }
.qr-close { position: absolute; top: .7rem; right: .7rem; }
.generated-qr { display: block; width: 280px; height: 280px; max-width: 100%; margin: auto; image-rendering: crisp-edges; }
.qr-box { display: grid; place-items: center; min-height: 280px; padding: 1rem; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.deep-payment-left b, .deep-payment-left small { display: block; }
.deep-payment-left small { color: var(--muted); font-size: .75rem; margin-top: .15rem; }
.deep-payment-radio { width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%; }
.deep-payment-option.selected .deep-payment-radio { border-color: var(--brand-1); box-shadow: inset 0 0 0 4px var(--surface, #fff); background: var(--brand-1); }

/* reveal on scroll */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s, transform .6s
}

.reveal.in {
    opacity: 1;
    transform: none
}

/* ===== Responsive ===== */

@media(max-width:880px) {
    .steps {
        grid-template-columns: repeat(2, 1fr)
    }
    .main-nav {
        display: none
    }
    .nav-toggle {
        display: flex
    }
    .main-nav.open {
        display: flex;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid #ececf1;
        box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
        padding: .5rem 6%
    }
    .main-nav.open a {
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f4;
        font-size: 1rem
    }
    .main-nav.open a::after {
        display: none
    }
    .carousel-btn {
        opacity: 1;
        width: 36px;
        height: 36px;
        font-size: 1.25rem
    }
}

@media(max-width:520px) {
    section {
        padding: 3rem 0
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: .8rem
    }
    .step {
        padding: 1.3rem .9rem 1.2rem
    }
    .step-num {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
        margin-bottom: .8rem
    }
    .step h3 {
        font-size: .95rem
    }
    .step p {
        font-size: .82rem
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .8rem
    }
    .product {
        padding: 1.1rem
    }
    .product .p-icon {
        font-size: 3rem;
        min-height: 96px
    }
    .product .p-img {
        width: 92px;
        height: 92px
    }
    .modal-body {
        padding: 2rem 1.2rem 1.4rem
    }
    .brand-text strong {
        font-size: 1.05rem
    }
    .brand-text small {
        font-size: .8rem
    }
    .brand-logo {
        height: 34px
    }
    .header-inner {
        height: 62px
    }
    .main-nav.open {
        top: 62px
    }
    .carousel {
        width: 100%;
        margin-top: 0;
        border-radius: 0
    }
    .carousel-dots button.active {
        width: 20px
    }
}

/* ===== Theme toggle + dark mode ===== */

.theme-toggle {
    margin-left: .5rem;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.05rem;
    display: grid;
    place-content: center;
    line-height: 1;
    background: rgba(20, 20, 45, .05);
    border: 1px solid var(--line);
    color: var(--text);
    transition: .2s
}

.theme-toggle:hover {
    background: rgba(20, 20, 45, .1);
    transform: translateY(-1px)
}

html.dark {
    --bg: #0b0b14;
    --bg-2: #15151f;
    --card: #16161f;
    --card-2: #1c1c28;
    --line: rgba(255, 255, 255, .09);
    --text: #f3f3f7;
    --muted: #9a9ab0;
    --shadow: 0 18px 50px rgba(0, 0, 0, .55);
}

html.dark body {
    background-image: linear-gradient(180deg, rgba(8, 8, 16, .80), rgba(8, 8, 16, .93) 55%, #0b0b14 88%), url(../home.jpg);
}

html.dark .site-header {
    background: rgba(11, 11, 20, .85);
    border-bottom-color: rgba(255, 255, 255, .08);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .4)
}

html.dark .brand-text strong {
    color: #fff
}

html.dark .main-nav a {
    color: #cfcfe0
}

html.dark .main-nav.open {
    background: #0e0e18;
    border-bottom-color: rgba(255, 255, 255, .08)
}

html.dark .main-nav.open a {
    border-bottom-color: rgba(255, 255, 255, .06)
}

html.dark .nav-toggle span {
    background: #f3f3f7
}

html.dark .theme-toggle {
    background: rgba(255, 255, 255, .06)
}

html.dark .theme-toggle:hover {
    background: rgba(255, 255, 255, .12)
}

html.dark .tab {
    background: #16161f
}

html.dark .btn-ghost {
    background: #16161f
}

html.dark .btn-ghost:hover {
    background: #1f1f2b
}

html.dark .verified-bar {
    background: #14141e
}

html.dark .vb-change {
    background: #16161f
}

html.dark .sale-pop { background: #16161f }

html.dark .footer {
    background: #0d0d16
}

html.dark .modal-close {
    background: #23232f
}

html.dark .modal-close:hover {
    background: #2c2c3a
}

html.dark .input-wrap input::placeholder {
    color: #6a6a82
}

@media(max-width:880px) {
    .theme-toggle {
        margin-left: auto
    }
    .nav-toggle {
        margin-left: .3rem
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}