/* ── Base ───────────────────────────────────────────────────────────── */
html, body {
    margin: 0; padding: 0;
    background: #0a0a0a;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Reels Feed ─────────────────────────────────────────────────────── */
.reels-container {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}
.reels-container::-webkit-scrollbar { display: none; }

.reel {
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.reel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.reel-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px) brightness(0.4);
    transform: scale(1.3);
}
.reel-main {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    background: transparent !important;
    z-index: 1;
}

.reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 25%, transparent 55%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 2;
}

.reel-info {
    position: absolute;
    bottom: 90px;
    left: 20px;
    right: 70px;
    z-index: 3;
}

.reel-brand {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.reel-title {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.reel-reward {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.3);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
}

.reel-actions {
    position: absolute;
    bottom: 90px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 3;
}

.reel-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.reel-action-btn:active { color: #a78bfa; }
.reel-action-btn svg { width: 32px; height: 32px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7)); }

/* Mute indicator */
.mute-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    cursor: pointer;
    transition: opacity 0.3s;
}
.mute-indicator svg { width: 24px; height: 24px; }

/* Progress bar */
.reels-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 10px 16px 6px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7), transparent);
}
.reels-progress-bar {
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}
.reels-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Bottom nav */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 62px;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #555;
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}
.bottom-nav a.active { color: #a78bfa; }
.bottom-nav a svg { width: 22px; height: 22px; }

/* ── Cabinet ────────────────────────────────────────────────────────── */
.cabinet-page {
    min-height: 100vh;
    padding-bottom: 80px;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 14px 8px;
    text-align: center;
    transition: border-color 0.2s;
}
.stat-card:active { border-color: rgba(139,92,246,0.3); }

.stat-value {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.section-title {
    font-size: 17px;
    font-weight:700;
    letter-spacing: -0.01em;
}

.promo-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px;
    transition: transform 0.15s, border-color 0.2s;
}
.promo-card:active { transform: scale(0.98); border-color: rgba(139,92,246,0.2); }

.promo-code-box {
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'Inter', monospace;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #a78bfa;
    text-align: center;
    cursor: pointer;
    user-select: all;
    transition: background 0.2s;
}
.promo-code-box:active { background: rgba(139,92,246,0.15); }

.badge-source {
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-ad { background: rgba(255,255,255,0.06); color: #888; }
.badge-wheel { background: rgba(139,92,246,0.15); color: #a78bfa; }

/* ── Wheel of Fortune ───────────────────────────────────────────────── */
.wheel-section {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
}

.wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    box-shadow: 0 0 0 6px #161616, 0 0 0 8px rgba(139,92,246,0.5), 0 16px 40px rgba(0,0,0,0.6);
}

.wheel-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 24px solid #8b5cf6;
    z-index: 10;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.wheel-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #161616;
    border: 2px solid rgba(139,92,246,0.4);
    z-index: 10;
}

.spin-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-weight: 600;
    padding: 13px 36px;
    border-radius: 12px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.2s;
    letter-spacing: 0.01em;
}
.spin-btn:active { transform: scale(0.96); }
.spin-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Modal ──────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    background: #161616;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 32px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
}

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.35s ease; }

@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
.confetti-piece {
    position: fixed;
    width: 8px; height: 8px;
    top: 0;
    animation: confetti-fall 3s linear forwards;
    z-index: 300;
}

/* ── Utility ────────────────────────────────────────────────────────── */
.glass {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
