:root {
    --primary: #2563EB;
    --bg: #081429;
    --surface: #0F2242;
    --text: #F1F5F9;
    --text-muted: #94A3B8;
    --btn-color: #2563EB;
    --header-bg: #061022;
    --footer-bg: #050D1C;
    --border: rgba(148, 163, 184, 0.16);
    --radius: 16px;
    --shadow: 0 18px 45px rgba(2, 6, 23, 0.45);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 42%),
        radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.12), transparent 40%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.site-header {
    position: sticky; top: 0; z-index: 80;
    background: color-mix(in srgb, var(--header-bg) 88%, transparent);
    backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.08rem; letter-spacing: 0.4px; white-space: nowrap; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #38BDF8);
    display: grid; place-items: center; font-weight: 900; color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 45%, transparent); overflow: hidden; flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.search-bar { flex: 1; max-width: 320px; position: relative; }
.search-bar input {
    width: 100%; padding: 10px 42px 10px 16px; border-radius: 999px;
    border: 1px solid var(--border); background: rgba(15, 34, 66, 0.7); color: var(--text); font-size: 0.9rem; outline: none;
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 8px 13px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; color: var(--text-muted); transition: all 0.2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.08); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.balance-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.35); color: #86EFAC; font-weight: 700; font-size: 0.88rem; white-space: nowrap;
}
.mobile-menu-btn { display: none; background: rgba(255,255,255,0.08); border: 1px solid var(--border); color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; place-items: center; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px;
    border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 0.92rem; cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease, opacity 0.2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-color); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--btn-color) 40%, transparent); }
.btn-outline { background: rgba(255, 255, 255, 0.05); border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.11); }
.btn-gold { background: linear-gradient(135deg, #F59E0B, #EA580C); color: #fff; box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35); }
.btn-sm { padding: 7px 13px; font-size: 0.84rem; border-radius: 10px; }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.flash-stack { margin: 18px 0 0; display: grid; gap: 10px; }
.alert { padding: 13px 18px; border-radius: 12px; border: 1px solid var(--border); font-weight: 500; font-size: 0.92rem; }
.alert-success { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.4); color: #A7F3D0; }
.alert-danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.42); color: #FECACA; }
.alert-warning { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.42); color: #FDE68A; }
.alert-info { background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.38); color: #BAE6FD; }

.hero-section { padding: 26px 0 18px; }
.hero-slider { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(135deg, #0D2144 0%, #16366B 52%, #0A1833 100%); box-shadow: var(--shadow); min-height: 330px; }
.hero-slide { display: none; position: relative; min-height: 330px; padding: 46px 48px; align-items: center; background-size: cover; background-position: center; }
.hero-slide.active { display: flex; animation: fadeIn 0.45s ease; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(6, 16, 34, 0.92) 0%, rgba(6, 16, 34, 0.65) 55%, rgba(6, 16, 34, 0.25) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 650px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(56, 189, 248, 0.16); border: 1px solid rgba(56, 189, 248, 0.35); color: #7DD3FC; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 14px; }
.hero-content h1 { margin: 0 0 12px; font-size: clamp(1.8rem, 3.6vw, 2.85rem); line-height: 1.15; font-weight: 900; }
.hero-content p { margin: 0 0 24px; color: #CBD5E1; font-size: 1.02rem; }
.hero-dots { position: absolute; bottom: 18px; left: 48px; z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.3); border: none; cursor: pointer; transition: all 0.25s; }
.hero-dot.active { width: 28px; background: var(--primary); }

.section { padding: 38px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-title { margin: 0; font-size: 1.55rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.section-sub { margin: 4px 0 0; color: var(--text-muted); font-size: 0.94rem; }

.platform-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.platform-card { position: relative; padding: 28px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(145deg, var(--surface), rgba(15, 34, 66, 0.55)); display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; transition: transform 0.22s, border-color 0.22s; }
.platform-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 65%, transparent); }
.platform-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0; }
.platform-icon.ios { background: linear-gradient(135deg, #1E293B, #475569); color: #F8FAFC; border: 1px solid rgba(255,255,255,0.18); }
.platform-icon.android { background: linear-gradient(135deg, #15803D, #22C55E); color: #fff; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.category-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s, transform 0.2s; }
.category-card:hover, .category-card.active { border-color: var(--primary); transform: translateY(-2px); }
.cat-thumb { width: 52px; height: 52px; border-radius: 12px; background: rgba(37, 99, 235, 0.16); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; font-weight: 800; color: #93C5FD; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 20px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.product-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--primary) 65%, transparent); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #0B1B36, #173566); overflow: hidden; display: grid; place-items: center; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.badge-row { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.3px; }
.badge-ios { background: rgba(15, 23, 42, 0.88); color: #F8FAFC; border: 1px solid rgba(255,255,255,0.22); }
.badge-android { background: rgba(22, 163, 74, 0.9); color: #fff; }
.badge-hot { background: rgba(245, 158, 11, 0.92); color: #111827; }
.badge-out { background: rgba(239, 68, 68, 0.92); color: #fff; }
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 0.78rem; color: #60A5FA; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.product-title { margin: 5px 0 8px; font-size: 1.05rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-desc { margin: 0 0 14px; color: var(--text-muted); font-size: 0.86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.price-tag { font-size: 1.12rem; font-weight: 900; color: #60A5FA; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; color: #CBD5E1; }
.form-control { width: 100%; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--border); background: rgba(6, 16, 34, 0.65); color: var(--text); font-size: 0.94rem; outline: none; }
.form-control:focus { border-color: var(--primary); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.4px; }

.denom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.denom-card { padding: 18px 14px; border-radius: 14px; border: 2px solid var(--border); background: rgba(6, 16, 34, 0.55); text-align: center; cursor: pointer; transition: all 0.2s; }
.denom-card:hover, .denom-card.selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 16%, rgba(6,16,34,0.7)); transform: translateY(-2px); }
.denom-amount { font-size: 1.15rem; font-weight: 900; color: #fff; }
.denom-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

.blindbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.box-card { background: linear-gradient(160deg, #12274D 0%, #0A1833 100%); border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 22px; padding: 24px; box-shadow: 0 20px 50px rgba(2, 6, 23, 0.55); }
.box-visual { height: 190px; border-radius: 16px; background: radial-gradient(circle at center, rgba(245, 158, 11, 0.25), rgba(15, 23, 42, 0.9)); display: grid; place-items: center; overflow: hidden; margin-bottom: 18px; }
.box-visual img { width: 100%; height: 100%; object-fit: cover; }

@keyframes shakeBox {
    0%, 100% { transform: rotate(0deg) scale(1); }
    20% { transform: rotate(-10deg) scale(1.08); }
    40% { transform: rotate(10deg) scale(1.12); }
    60% { transform: rotate(-12deg) scale(1.14); }
    80% { transform: rotate(8deg) scale(1.08); }
}
.shaking { animation: shakeBox 0.7s ease-in-out infinite; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.modal-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.76); backdrop-filter: blur(6px); display: none; place-items: center; padding: 20px; z-index: 200; }
.modal-backdrop.open { display: grid; animation: fadeIn 0.22s ease; }
.modal-box { width: 100%; max-width: 460px; border-radius: 22px; padding: 28px; border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 28px 65px rgba(0, 0, 0, 0.65); text-align: center; position: relative; }
.modal-close-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 999px; border: none; background: rgba(255,255,255,0.1); color: inherit; cursor: pointer; font-size: 1.1rem; }

.music-dock { position: fixed; right: 18px; bottom: 18px; z-index: 120; background: rgba(9, 20, 42, 0.92); backdrop-filter: blur(14px); border: 1px solid rgba(96, 165, 250, 0.35); border-radius: 999px; padding: 8px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); max-width: calc(100vw - 36px); }
.music-btn { width: 34px; height: 34px; border-radius: 999px; border: none; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.music-btn.ghost { background: rgba(255,255,255,0.08); color: var(--text); }
.music-title { font-size: 0.8rem; font-weight: 700; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-vol { width: 66px; accent-color: var(--primary); }

.site-footer { margin-top: auto; background: var(--footer-bg); border-top: 1px solid var(--border); padding: 44px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: 26px; }
.footer-bottom { padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--text-muted); font-size: 0.85rem; }

.st-pending { color: #FDE68A; background: rgba(245,158,11,0.16); padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.st-paid { color: #86EFAC; background: rgba(34,197,94,0.16); padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.st-failed, .st-expired { color: #FCA5A5; background: rgba(239,68,68,0.16); padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }

@media (max-width: 960px) {
    .main-nav, .search-bar { display: none; }
    .mobile-menu-btn { display: grid; }
    .platform-split, .footer-grid { grid-template-columns: 1fr; }
    .hero-slide { padding: 32px 24px; min-height: 270px; }
    .hero-dots { left: 24px; }
    .music-vol { display: none; }
}
.mobile-drawer { display: none; background: var(--header-bg); border-bottom: 1px solid var(--border); padding: 16px 20px; }
.mobile-drawer.open { display: grid; gap: 10px; }
