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

:root {
    --bg-primary: #0B0F1A;
    --bg-secondary: #1A1F2E;
    --color-gold: #E6B85C;
    --color-purple: #7B61FF;
    --color-orange: #FF8A00;
    --color-green: #22C55E;
    --color-text: #FFFFFF;
    --color-text-muted: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-gold: 0 0 40px rgba(230, 184, 92, 0.5);
    --glow-purple: 0 0 40px rgba(123, 97, 255, 0.5);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #0B0F1A 0%, #1A1F2E 50%, #0B0F1A 100%);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.btn-ghost {
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-ghost:hover {
    background: var(--color-gold);
    color: var(--bg-primary);
    box-shadow: var(--glow-gold);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(230, 184, 92, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle-2 {
    top: 60%;
    right: 15%;
    animation-delay: 7s;
}

.particle-3 {
    bottom: 20%;
    left: 50%;
    animation-delay: 14s;
}

.bokeh {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 8s infinite ease-in-out;
}

.bokeh-1 {
    top: 30%;
    right: 20%;
}

.bokeh-2 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Main Container */
.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 2rem 2rem;
    min-height: 100vh;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.875rem;
}

/* Form Card */
.form-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.1), inset 0 0 20px rgba(123, 97, 255, 0.05);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-gold);
}

.form-checkbox label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-gold) 100%);
    color: var(--color-text);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 138, 0, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-secondary:hover {
    border-color: var(--color-purple);
    color: var(--color-purple);
}

/* Wheel Section */
.wheel-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.wheel-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(230, 184, 92, 0.2) 0%, transparent 60%);
    filter: blur(40px);
    animation: rotate 20s linear infinite;
}

.wheel-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    border-radius: 50%;
    box-shadow: 0 0 100px rgba(230, 184, 92, 0.3), inset 0 0 100px rgba(230, 184, 92, 0.1);
}

/* Pointer */
.pointer {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    filter: drop-shadow(0 5px 20px rgba(230, 184, 92, 0.6));
    animation: pointerBounce 2s infinite ease-in-out;
}

@keyframes pointerBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
}

.pointer.click {
    animation: pointerClick 0.2s ease-out;
}

@keyframes pointerClick {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(0.9); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Wheel */
.wheel {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #2C1810 0deg 45deg,
        #4A2C1A 45deg 90deg,
        #2C1810 90deg 135deg,
        #4A2C1A 135deg 180deg,
        #2C1810 180deg 225deg,
        #4A2C1A 225deg 270deg,
        #2C1810 270deg 315deg,
        #4A2C1A 315deg 360deg
    );
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), inset 0 0 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s, filter 0.1s;
    will-change: transform, filter;
}

.wheel-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.wheel.spinning {
    animation: none;
}

/* Wheel Center */
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--color-gold) 0%, var(--color-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--bg-primary);
    box-shadow: 0 0 30px rgba(230, 184, 92, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.3);
    z-index: 50;
}

.center-highlight {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Particle Container */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 200;
}

.light-particle {
    position: absolute;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
    transform-origin: center;
    animation: particleFly 0.5s linear;
}

@keyframes particleFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.5);
    }
}

/* Win Modal */
.win-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1A1F2E 0%, #0B0F1A 100%);
    border: 2px solid var(--color-gold);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 0 100px rgba(230, 184, 92, 0.5);
    animation: modalAppear 0.5s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(230, 184, 92, 0.3) 0%, transparent 50%);
    filter: blur(60px);
    z-index: -1;
}

.win-animation {
    margin-bottom: 2rem;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.trophy {
    filter: drop-shadow(0 10px 30px rgba(230, 184, 92, 0.5));
}

.win-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.win-prize {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.win-code {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.win-code span {
    font-family: monospace;
    font-size: 1.25rem;
    color: var(--color-gold);
    background: rgba(230, 184, 92, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-claim {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--color-green) 0%, #10B981 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.btn-share {
    padding: 0.875rem 2rem;
    background: var(--glass-bg);
    color: var(--color-text);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-share:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Confetti Canvas */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1500;
}

/* Countdown Timer */
.countdown-timer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.countdown-timer p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.timer-display {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-orange);
    text-shadow: 0 0 20px rgba(255, 138, 0, 0.5);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.faq-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-purple);
    box-shadow: 0 10px 30px rgba(123, 97, 255, 0.1);
}

.faq-item h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-gold);
}

.faq-item p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.legal-text {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .wheel-container {
        width: min(88vw, 500px);
        height: min(88vw, 500px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .brand-logo {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo img {
        height: 40px;
    }

    .main-container {
        display: flex;
        flex-direction: column-reverse;
        padding-top: 80px;
    }

    .wheel-section {
        width: 100%;
        min-height: 60vh;
        padding: 2rem 0;
    }

    .hero-section {
        position: relative;
        z-index: 100;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        display: none;
    }

    .brand-logo-container {
        display: none;
    }

    .trust-badges {
        display: none;
    }

    .form-card {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 24px 24px 0 0;
        padding: 1.5rem;
        background: rgba(26, 31, 46, 0.98);
        backdrop-filter: blur(30px);
        border: 2px solid var(--color-gold);
        border-bottom: none;
        box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(230, 184, 92, 0.3);
        z-index: 1000;
    }

    .countdown-timer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 24px 24px 0 0;
        padding: 1.5rem;
        background: rgba(26, 31, 46, 0.98);
        backdrop-filter: blur(30px);
        border: 2px solid var(--color-gold);
        border-bottom: none;
        box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .sound-toggle {
        display: none;
    }

    .btn-secondary {
        display: none;
    }

    .badge {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 140px;
    }

    .wheel-container {
        width: 88vw;
        height: 88vw;
        max-width: 400px;
        max-height: 400px;
    }

    .pointer {
        top: -30px;
    }

    .pointer svg {
        width: 45px;
        height: 60px;
    }

    .wheel-center {
        width: 80px;
        height: 80px;
        font-size: 1rem;
    }

    .modal-content {
        width: 90%;
        padding: 2rem 1.5rem;
    }

    .win-title {
        font-size: 2rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .form-card {
        padding: 1.25rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .wheel-container {
        width: 90vw;
        height: 90vw;
    }

    .badge {
        flex: 1 1 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading State */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Error State */
.error {
    animation: shake 0.5s;
    border-color: #EF4444 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.3s ease-out;
    z-index: 3000;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}