:root {
    --bg: #0a0a0c;
    --surface: #121216;
    --surface-2: #1a1a1f;
    --border: #26262c;
    --border-hover: #3a3a42;
    --text: #f0f0f2;
    --muted: #8b8b93;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --success: #22c55e;
    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border-bottom: 1px solid var(--border);
    background: rgba(18, 18, 22, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    font-size: 17px;
    letter-spacing: -0.3px;
}
.brand-mark {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.topbar nav { display: flex; gap: 4px; }
.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--text); background: rgba(99,102,241,0.12); }
.badge-live {
    font-size: 12px;
    color: var(--success);
    background: rgba(34, 197, 94, 0.12);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.hero {
    padding: 52px 28px 40px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}
.hero-content h1 {
    font-size: 32px;
    font-weight: 650;
    letter-spacing: -0.6px;
    margin-bottom: 8px;
}
.hero-content p { color: var(--muted); font-size: 15px; }
.hero-stats { display: flex; gap: 28px; }
.stat { text-align: center; }
.stat-num {
    display: block;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.3px;
}
.stat-label { font-size: 12px; color: var(--muted); }

.section {
    padding: 0 28px 48px;
    max-width: 1000px;
    margin: 0 auto;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.section-title { display: flex; align-items: center; gap: 10px; }
.section-title h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.section-logo { border-radius: 6px; }
.section-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(99, 102, 241, 0.12);
    padding: 4px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.product {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
    animation: fadeUp 0.4s ease both;
}
.product:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.product.featured {
    border-color: rgba(99, 102, 241, 0.35);
    background: linear-gradient(160deg, var(--surface) 0%, rgba(99,102,241,0.06) 100%);
}

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

.product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e1e24;
}
.product-icon-wrap img { display: block; }
.product-icon-wrap.roblox { background: #E2231A; }
.product-icon-wrap.ps { background: #003087; }
.product-icon-wrap.apple { background: #333; }
.product-icon-wrap.gp { background: #34a853; }
.product-icon-wrap.steam { background: #1b2838; }
.product-icon-wrap.amz { background: #ff9900; }
.product-icon-wrap.nflx { background: #e50914; }
.product-icon-wrap.spot { background: #1db954; }
.product-icon-wrap.fn { background: #9d4dbb; color: #fff; font-weight: 700; font-size: 12px; }
.product-icon-wrap.xbox { background: #107c10; }
.product-icon-wrap.nin { background: #e60012; }

.product-badge {
    font-size: 11px;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    padding: 3px 7px;
    border-radius: 5px;
}
.product-badge.best {
    color: var(--accent-hover);
    background: rgba(99, 102, 241, 0.15);
}

.product-info h3 {
    font-size: 14.5px;
    font-weight: 560;
    margin-bottom: 2px;
}
.product-sub {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 6px;
}
.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.price {
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.2px;
}
.price-old {
    font-size: 13px;
    color: var(--muted);
    text-decoration: line-through;
}

.buy-btn {
    margin-top: auto;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 520;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    width: 100%;
}
.buy-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.product.featured .buy-btn {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}
.product.featured .buy-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

footer {
    border-top: 1px solid var(--border);
    padding: 36px 28px;
    margin-top: 20px;
}
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.footer-brand {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
}
footer p { color: var(--muted); font-size: 13px; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.hidden { display: none; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}
.modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px 22px;
    width: 100%;
    max-width: 380px;
    animation: modalIn 0.25s ease;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.close-btn:hover { color: var(--text); }

.modal-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}
.modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.modal-icon img { display: block; }
.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.modal-desc { font-size: 13px; color: var(--muted); }

.field-label {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 7px;
    font-weight: 500;
}
.phone-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.phone-row select,
.phone-row input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s;
}
.phone-row select:focus,
.phone-row input:focus { border-color: var(--accent); }
.phone-row select { width: 108px; cursor: pointer; }
.phone-row input { flex: 1; }

.btn-primary {
    width: 100%;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 560;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.modal-secure {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 14px;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    animation: modalIn 0.3s ease;
}
.card h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 22px;
}
@keyframes spin { to { transform: rotate(360deg); } }

#otp {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 22px;
    letter-spacing: 8px;
    text-align: center;
    color: var(--text);
    margin-bottom: 16px;
    outline: none;
}
#otp:focus { border-color: var(--accent); }

.progress {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 18px;
}
.bar {
    height: 100%;
    width: 8%;
    background: linear-gradient(90deg, var(--accent), #a78bfa);
    transition: width 0.4s;
    border-radius: 2px;
}
.hint, .msg { font-size: 13px; color: var(--muted); margin-top: 12px; }
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 520;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}
.btn:hover { background: var(--accent-hover); }

@media (max-width: 700px) {
    .topbar { padding: 12px 16px; }
    .topbar nav { display: none; }
    .topbar-right { display: none; }
    .hero { padding: 36px 16px 28px; }
    .hero-content h1 { font-size: 24px; }
    .hero-stats { gap: 18px; }
    .section { padding: 0 16px 36px; }
    .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product { padding: 14px; }
}
@media (max-width: 400px) {
    .grid { grid-template-columns: 1fr; }
}

.price.free {
    color: #22c55e;
    font-size: 15px;
}
.brand { text-decoration: none; color: inherit; }

