@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #090812;
    --bg-card: rgba(22, 19, 43, 0.75);
    --border-card: rgba(168, 85, 247, 0.2);
    --neon-purple: #9333ea;
    --neon-amber: #f59e0b;
    --neon-gold: #fbbf24;
    --neon-cyan: #06b6d4;
    --neon-green: #10b981;
}

body {
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: #f1f5f9;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(147, 51, 234, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 80% 40%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: 1.25rem;
    box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.6), 0 0 20px -2px rgba(147, 51, 234, 0.12);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 15px 45px -5px rgba(0, 0, 0, 0.7), 0 0 25px -2px rgba(147, 51, 234, 0.2);
}

/* Neon Glow Buttons */
.btn-amber-glow {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4), 0 0 10px rgba(251, 191, 36, 0.2);
    transition: all 0.25s ease;
}
.btn-amber-glow:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 28px rgba(245, 158, 11, 0.6), 0 0 18px rgba(251, 191, 36, 0.4);
}
.btn-amber-glow:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}
.btn-amber-glow:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.5);
}

.btn-purple-glow {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
    transition: all 0.25s ease;
}
.btn-purple-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.65);
}

/* Wheel Canvas Wrapper */
.wheel-container {
    position: relative;
    width: 100%;
    max-width: min(88vw, 340px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 480px) {
    .wheel-container {
        max-width: 390px;
    }
}

@media (min-width: 640px) {
    .wheel-container {
        max-width: 440px;
    }
}

@media (min-width: 1024px) {
    .wheel-container {
        max-width: 480px;
    }
}

.wheel-outer-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, #fde047 0%, #d97706 60%, #78350f 100%);
    box-shadow: 
        0 0 25px rgba(245, 158, 11, 0.5),
        inset 0 0 12px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(251, 191, 36, 0.6);
    z-index: 1;
    pointer-events: none;
}

@media (min-width: 640px) {
    .wheel-outer-ring {
        inset: -14px;
        box-shadow: 
            0 0 35px rgba(245, 158, 11, 0.5),
            inset 0 0 15px rgba(0, 0, 0, 0.8),
            0 0 10px rgba(251, 191, 36, 0.6);
    }
}

.wheel-canvas {
    position: relative;
    z-index: 2;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.65);
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Light Bulbs along the Rim */
.bulb {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px #fff, 0 0 10px #fbbf24;
    transition: all 0.2s ease;
    z-index: 3;
}
@media (min-width: 640px) {
    .bulb {
        width: 10px;
        height: 10px;
        box-shadow: 0 0 8px #fff, 0 0 14px #fbbf24;
    }
}
.bulb-alt {
    animation: bulbPulse 1.2s infinite alternate;
}
@keyframes bulbPulse {
    0% { opacity: 0.4; box-shadow: 0 0 4px #fbbf24; }
    100% { opacity: 1; box-shadow: 0 0 12px #fff, 0 0 18px #fbbf24; }
}

/* Wheel Center Hub */
.wheel-center-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fbbf24, #b45309 70%, #451a03 100%);
    border: 3px solid #fef08a;
    box-shadow: 
        0 0 18px rgba(245, 158, 11, 0.7),
        inset 0 3px 5px rgba(255, 255, 255, 0.4),
        0 6px 12px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

@media (min-width: 640px) {
    .wheel-center-hub {
        width: 82px;
        height: 82px;
        border-width: 4px;
        box-shadow: 
            0 0 25px rgba(245, 158, 11, 0.7),
            inset 0 4px 6px rgba(255, 255, 255, 0.4),
            0 8px 16px rgba(0, 0, 0, 0.7);
    }
}

/* Pointer Indicator at 12 o'clock */
.wheel-pointer {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
    transform-origin: 50% 20%;
    width: 36px;
    height: 46px;
}

.wheel-pointer svg {
    width: 100%;
    height: 100%;
}

@media (min-width: 640px) {
    .wheel-pointer {
        top: -24px;
        width: 46px;
        height: 58px;
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
    }
}

.pointer-wiggle {
    animation: pointerTick 0.12s ease;
}

@keyframes pointerTick {
    0% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(-12deg); }
    100% { transform: translateX(-50%) rotate(0deg); }
}

/* Navigation Tabs */
.nav-tab-active {
    border-color: #fbbf24;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}

/* Wheel Categories Tab Bar */
.wheel-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}
.wheel-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(168, 85, 247, 0.3);
}
.wheel-tab-active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(147, 51, 234, 0.25) 100%) !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
    color: #ffffff !important;
}

/* 3D Reel Track & Cards */
.reel-container {
    position: relative;
    width: 100%;
    height: 290px;
    overflow: hidden;
    perspective: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.reel-card {
    position: absolute;
    width: 155px;
    height: 206px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    will-change: transform, opacity;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(168, 85, 247, 0.25);
    background-color: #1e1b4b;
    transition: box-shadow 0.2s ease;
}

.reel-card:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.45), 0 0 0 2px #fbbf24;
}

.reel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    border-radius: 16px;
    display: block;
}

.reel-card.active-center {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.6), 0 0 0 2px #fbbf24;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 13, 27, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.4);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.7);
}

/* Modal Backdrop */
.modal-backdrop {
    background: rgba(7, 6, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Animated RGB / Rainbow Glowing Border for Sponsor Cards */
.sponsor-card-glow {
    position: relative;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6, #3b82f6, #10b981, #f59e0b);
    background-size: 400% 400%;
    animation: rainbowBorder 6s linear infinite;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(147, 51, 234, 0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, filter 0.3s ease;
}

.sponsor-card-glow:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.5), 0 0 35px rgba(168, 85, 247, 0.3);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.sponsor-card-inner {
    background: radial-gradient(circle at 50% 0%, #161131 0%, #0a0818 100%);
    border-radius: 18px;
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes rainbowBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 300x100 Sponsor Logo Frame */
.sponsor-logo-banner {
    width: 100%;
    height: 95px;
    border-radius: 14px;
    background: rgba(8, 6, 18, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7);
}

.sponsor-logo-banner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
    transition: transform 0.3s ease;
}

.sponsor-card-glow:hover .sponsor-logo-banner img {
    transform: scale(1.06);
}

/* Telegram Announcement Banner */
.telegram-banner {
    background: linear-gradient(90deg, #7e22ce 0%, #9333ea 50%, #6b21a8 100%);
    box-shadow: 0 2px 15px rgba(126, 34, 206, 0.4);
}

