
:root {
    /* Primary Color Palette - From Logo */
    --primary-900: #0D2238;
    --primary-800: #1A3D6D;
    --primary-700: #2B5F9E;
    --primary-600: #4A8FD9;
    --primary-500: #87CEEB;
    --primary-400: #A3D5FF;
    --primary-300: #C2E3FF;
    --primary-200: #E0F2FF;
    --primary-100: #F0F8FF;
    --primary-50: #F8FCFF;

    /* Accent Colors - Nature Inspired */
    --accent-green-600: #2FA549;
    --accent-green-500: #4BC65E;
    --accent-green-400: #6DD47E;

    --accent-sand-600: #E69138;
    --accent-sand-500: #FFB347;
    --accent-sand-400: #FFCB7D;
    --accent-sand-300: #FFD6A5;

    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Neutral Palette - Balanced */
    --neutral-950: #020617;
    --neutral-900: #0F172A;
    --neutral-800: #1E293B;
    --neutral-700: #334155;
    --neutral-600: #475569;
    --neutral-500: #64748B;
    --neutral-400: #94A3B8;
    --neutral-300: #CBD5E1;
    --neutral-200: #E2E8F0;
    --neutral-100: #F1F5F9;
    --neutral-50: #F8FAFC;
    --white: #FFFFFF;

    /* Spacing System - 8pt Grid */
    --space-0: 0;
    --space-1: 0.25rem; /* 4px */
    --space-2: 0.5rem; /* 8px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem; /* 16px */
    --space-5: 1.5rem; /* 24px */
    --space-6: 2rem; /* 32px */
    --space-8: 3rem; /* 48px */
    --space-10: 4rem; /* 64px */
    --space-12: 5rem; /* 80px */
    --space-16: 8rem; /* 128px */

    /* Typography Scale - Modular */
    --font-xs: 0.75rem; /* 12px */
    --font-sm: 0.875rem; /* 14px */
    --font-base: 1rem; /* 16px */
    --font-lg: 1.125rem; /* 18px */
    --font-xl: 1.25rem; /* 20px */
    --font-2xl: 1.5rem; /* 24px */
    --font-3xl: 1.875rem; /* 30px */
    --font-4xl: 2.25rem; /* 36px */
    --font-5xl: 3rem; /* 48px */
    --font-6xl: 3.75rem; /* 60px */

    /* Shadows - Elevation System */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 2px 4px -1px rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
    --shadow-md: 0 4px 6px -2px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);

    /* Border Radius - Consistent */
    --radius-sm: 0.375rem; /* 6px */
    --radius-md: 0.5rem; /* 8px */
    --radius-lg: 0.75rem; /* 12px */
    --radius-xl: 1rem; /* 16px */
    --radius-2xl: 1.5rem; /* 24px */
    --radius-full: 9999px;

    /* Animation Timing */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-Index Scale */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: var(--font-base);
    line-height: 1.6;
    color: var(--neutral-900);
    background: linear-gradient(180deg, var(--primary-50) 0%, var(--white) 40%, var(--primary-50) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   BACKGROUND PATTERN - Premium Glass Effect
   ============================================ */

.background-pattern {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.background-pattern::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle at 20% 30%, var(--primary-200) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, var(--accent-sand-300) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, var(--primary-100) 0%, transparent 60%);
    opacity: 0.4;
    animation: floatPattern 30s ease-in-out infinite;
}

@keyframes floatPattern {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    33% {
        transform: rotate(120deg) scale(1.1);
    }
    66% {
        transform: rotate(240deg) scale(0.95);
    }
}

/* Floating Orbs */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-sand-400), var(--accent-sand-500));
    bottom: 20%;
    right: -50px;
    animation-delay: 5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--accent-green-500), var(--accent-green-400));
    top: 50%;
    left: 40%;
    animation-delay: 10s;
}

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

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.app-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-10) var(--space-5);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .app-container {
        padding: var(--space-6) var(--space-4);
    }
}

/* ============================================
   HEADER SECTION - Premium Branding
   ============================================ */

.header-section {
    text-align: center;
    margin-bottom: var(--space-10);
    animation: revealFadeIn 0.8s var(--ease-out);
}

@keyframes revealFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary-200);
    animation: logoFloat 4s ease-in-out infinite;
}

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

.logo {
    width: 240px;
    height: auto;
}

.header-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: var(--font-5xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 50%, var(--primary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: var(--font-lg);
    color: var(--neutral-600);
    font-weight: 500;
    margin-bottom: var(--space-4);
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, var(--accent-sand-500), var(--accent-sand-400));
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.event-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ============================================
   MAIN CONTENT GRID
   ============================================ */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.content-grid.single-column {
    grid-template-columns: 1fr !important;
}

.content-grid.single-column > .glass-card {
    max-width: 100%;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
}

/* ============================================
   GLASS CARD COMPONENT - Glassmorphism
   ============================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
    padding: var(--space-6);
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.5) 20%,
    rgba(255, 255, 255, 0.5) 80%,
    transparent
    );
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
}

/* ============================================
   WHEEL SECTION - Premium Design
   ============================================ */

.wheel-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.wheel-wrapper {
    position: relative;
    padding-top: 100%;
    filter: drop-shadow(0 20px 40px rgba(43, 95, 158, 0.2));
}

#wheelCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s var(--ease-out);
}

.wheel-pointer {
    position: absolute;
    top: -8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.wheel-pointer svg {
    width: 70px;
    height: 70px;
}

/* ============================================
   PRIMARY BUTTON - Following Material You
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, var(--accent-green-600), var(--accent-green-500));
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-lg);
    font-weight: 600;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    box-shadow: 0 4px 14px 0 rgba(47, 165, 73, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: var(--space-6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--ease-out), height 0.6s var(--ease-out);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px 0 rgba(47, 165, 73, 0.5),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

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

/* ============================================
   COUNTDOWN TIMER - Modern Design
   ============================================ */

.countdown-section {
    margin-bottom: var(--space-5);
}

.countdown-title {
    font-size: var(--font-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neutral-600);
    margin-bottom: var(--space-4);
    text-align: center;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.countdown-item {
    text-align: center;
    padding: var(--space-3);
    background: linear-gradient(145deg, var(--primary-100), var(--primary-50));
    border-radius: var(--radius-xl);
    border: 1px solid var(--primary-200);
    transition: all 0.3s var(--ease-out);
}

.countdown-item:hover {
    transform: scale(1.05);
    background: linear-gradient(145deg, var(--primary-200), var(--primary-100));
}

.countdown-value {
    display: block;
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--primary-700);
    line-height: 1;
    margin-bottom: var(--space-1);
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: var(--font-xs);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--neutral-500);
    letter-spacing: 0.05em;
}

/* ============================================
   STATS CARDS - Data Visualization
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.stat-card {
    padding: var(--space-4);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    text-align: center;
    transition: all 0.2s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-sand-500));
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-out);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-300);
}

.stat-value {
    font-size: var(--font-2xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
}

/* ============================================
   PARTICIPANTS CAROUSEL - Smooth Animation
   ============================================ */

.carousel-section {
    padding: var(--space-5);
    background: linear-gradient(135deg, var(--primary-50), var(--white));
    border-radius: var(--radius-xl);
    border: 1px solid var(--primary-200);
}

.carousel-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--primary-700);
    text-align: center;
    margin-bottom: var(--space-4);
}

.carousel-viewport {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 90%;
    max-width: 360px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow-xl);
    transition: all 0.5s var(--spring);
    opacity: 0;
    transform: translateX(100%) scale(0.8) rotateY(25deg);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1) rotateY(0);
    z-index: 10;
}

.carousel-slide.prev {
    opacity: 0.4;
    transform: translateX(-120%) scale(0.8) rotateY(-25deg);
    z-index: 5;
}

.carousel-slide.next {
    opacity: 0.4;
    transform: translateX(120%) scale(0.8) rotateY(25deg);
    z-index: 5;
}

.slide-number {
    font-size: var(--font-4xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: var(--space-2);
}

.slide-name {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--neutral-800);
    text-align: center;
    margin-bottom: var(--space-3);
}

.slide-tickets {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--font-base);
    color: var(--neutral-600);
}

.carousel-indicator {
    text-align: center;
    margin-top: var(--space-4);
    font-size: var(--font-base);
    color: var(--neutral-600);
}

.indicator-current {
    font-weight: 700;
    color: var(--primary-600);
    font-size: var(--font-lg);
}

/* ============================================
   PARTICIPANTS LIST - Clean Grid
   ============================================ */

.participants-section {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--space-8);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--neutral-100);
}

.section-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--neutral-900);
}

.participants-count-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-sm);
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-4);
    max-height: 480px;
    overflow-y: auto;
    padding-right: var(--space-2);
}

/* Custom Scrollbar */
.participants-grid::-webkit-scrollbar {
    width: 8px;
}

.participants-grid::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: var(--radius-full);
}

.participants-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-500), var(--primary-600));
    border-radius: var(--radius-full);
}

.participant-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    transition: all 0.2s var(--ease-out);
    cursor: default;
}

.participant-card:hover {
    background: var(--white);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-300);
}

.participant-info {
    flex: 1;
}

.participant-name {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-1);
}

.participant-tickets {
    font-size: var(--font-sm);
    color: var(--neutral-600);
}

.participant-card.winner {
    background: linear-gradient(135deg, var(--accent-green-600), var(--accent-green-500));
    border-color: var(--accent-green-600);
    animation: winnerPulse 2s ease-in-out infinite;
}

.participant-card.winner .participant-name,
.participant-card.winner .participant-tickets {
    color: var(--white);
}

@keyframes winnerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(47, 165, 73, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(47, 165, 73, 0);
    }
}

/* ============================================
   VERIFICATION PANEL - Trust & Security
   ============================================ */

.verification-section {
    background: linear-gradient(135deg, var(--neutral-50), var(--white));
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    border: 1px solid var(--neutral-200);
}

.verification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
}

.verification-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.security-icon {
    width: 24px;
    height: 24px;
    fill: var(--success);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--white);
    color: var(--primary-700);
    border: 2px solid var(--primary-600);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.btn-secondary:hover {
    background: var(--primary-600);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.verification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.verification-item {
    padding: var(--space-4);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
}

.verification-label {
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
    margin-bottom: var(--space-2);
}

.verification-value {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: var(--font-sm);
    color: var(--primary-700);
    word-break: break-all;
    line-height: 1.5;
    font-weight: 600;
}

/* ============================================
   WINNER MODAL - Premium Celebration
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: var(--space-5);
    animation: fadeIn 0.3s var(--ease-out);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    animation: slideUp 0.4s var(--spring);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600), var(--primary-500));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Confetti Animation */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-sand-500);
}

.confetti:nth-child(2n) {
    width: 8px;
    height: 8px;
    background: var(--accent-green-500);
    animation-duration: 3.2s;
}

.confetti:nth-child(3n) {
    width: 6px;
    height: 6px;
    background: var(--primary-400);
    animation-duration: 2.8s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.trophy-icon-large {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: trophyBounce 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes trophyBounce {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.trophy-icon-large svg {
    width: 50px;
    height: 50px;
    fill: var(--accent-sand-500);
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    z-index: 20;
}

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

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    stroke-width: 2.5;
}

.modal-body {
    padding: var(--space-8);
    text-align: center;
}

.congrats-text {
    font-size: var(--font-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neutral-500);
    margin-bottom: var(--space-3);
}

.winner-name {
    font-size: var(--font-4xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-5);
    line-height: 1.2;
}

.prize-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(135deg, var(--accent-green-600), var(--accent-green-500));
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-lg);
}

.winner-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.winner-stat {
    padding: var(--space-4);
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
}

.winner-stat-value {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--primary-700);
    margin-bottom: var(--space-1);
}

.winner-stat-label {
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
}

.verification-code-display {
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: var(--radius-lg);
    border: 2px dashed var(--primary-400);
    margin-bottom: var(--space-6);
}

.verification-code-label {
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-600);
    margin-bottom: var(--space-2);
}

.verification-code-value {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--primary-700);
    letter-spacing: 0.1em;
}

.share-section {
    margin-bottom: var(--space-6);
}

.share-title {
    font-size: var(--font-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-600);
    margin-bottom: var(--space-3);
}

.share-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-out);
    position: relative;
}

.share-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.share-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877F2, #0C5FCD);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0C8BD9);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #20B857);
}

.share-btn.download {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
}

.btn-continue {
    width: 100%;
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hidden Canvas */
#certificateCanvas {
    display: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-title {
        font-size: var(--font-4xl);
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .winner-stats {
        grid-template-columns: 1fr;
    }

    .participants-section {
        padding: var(--space-5);
    }

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

    .share-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: var(--font-3xl);
    }

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