/* ============================================
   AI LOTTO - Modern Analytics Design System
   ============================================ */

/* Import fonts first (must be at the top) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Variables - AI Tech Palette */
:root {
    /* Core Background Colors - Deep Tech */
    --color-bg-primary: #0a0e1a;
    --color-bg-secondary: #0f1420;
    --color-bg-card: #141925;
    --color-bg-elevated: #1a2030;

    /* AI Accent Colors */
    --color-ai-blue: #4da6ff;
    --color-ai-purple: #a78bfa;
    --color-ai-cyan: #22d3ee;
    --color-ai-mint: #34d399;
    --color-ai-pink: #f472b6;

    /* Gradient Presets */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #4da6ff 0%, #22d3ee 100%);
    --gradient-accent: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
    --gradient-warm: linear-gradient(135deg, #f472b6 0%, #a78bfa 100%);

    /* Text Colors */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #64748b;
    --color-text-dim: #475569;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Fortune & Neon Colors */
    --color-fortune-gold: #ffd700;
    --color-fortune-red: #e63946;
    --color-neon-cyan: #22d3ee;
    --color-neon-violet: #8b5cf6;

    /* Glassmorphism */
    --glass-bg: rgba(20, 25, 37, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows - Subtle & Professional */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    --shadow-glow-blue: 0 0 20px rgba(77, 166, 255, 0.3);
    --shadow-glow-purple: 0 0 20px rgba(167, 139, 250, 0.3);
    --shadow-glow-cyan: 0 0 20px rgba(34, 211, 238, 0.3);

    /* Glow Effects */
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);
    --glow-cyan: 0 0 20px rgba(34, 211, 238, 0.4);
}

/* ============================================
   Korean Typography
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Modern Gradient Mesh Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(77, 166, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.05) 0%, transparent 50%);
    z-index: -2;
    animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Geometric Grid Pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(77, 166, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 166, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Typography - Modern & Professional */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--space-lg);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.text-gradient-fortune {
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: aiGradientFlow 8s ease infinite;
}

.text-gradient {
    background: var(--gradient-secondary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aiGradientFlow 8s ease infinite;
}

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

.number-font {
    font-family: 'Space Grotesk', 'Inter', monospace;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ============================================
   Layout Components
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    width: 100%;
}

.section {
    padding: var(--space-xl) 0;
    animation: fadeInUp 0.8s ease-out;
}

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

/* ============================================
   Navigation - Modern Glassmorphism
   ============================================ */

.nav {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.nav-logo {
    font-family: 'Space Grotesk', 'Noto Sans KR', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: all var(--transition-base);
    letter-spacing: -0.02em;
    position: relative;
}

.nav-logo::before {
    content: '🎯';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.nav-logo:hover {
    filter: brightness(1.2);
}

.nav-menu {
    display: flex;
    gap: var(--space-sm);
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9375rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: var(--gradient-secondary);
    transition: transform var(--transition-base);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--color-ai-blue);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--color-ai-blue);
    background: rgba(77, 166, 255, 0.1);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--color-ai-blue);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ============================================
   Cards - Modern Glassmorphism
   ============================================ */

.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    border-color: rgba(77, 166, 255, 0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

.card-body {
    color: var(--color-text-secondary);
    position: relative;
    z-index: 1;
}

/* ============================================
   Buttons - Modern & Clean
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-warning:hover {
    box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 158, 11, 0.3);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    box-shadow: var(--shadow-lg), 0 0 20px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gradient-warm);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-ai-blue);
    color: var(--color-ai-blue);
}

.btn-outline:hover {
    background: rgba(77, 166, 255, 0.1);
    border-color: var(--color-ai-cyan);
    color: var(--color-ai-cyan);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   Lotto Balls - Modern & Clean
   ============================================ */

.lotto-balls {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin: var(--space-lg) 0;
}

.lotto-ball {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', 'Inter', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    animation: ballFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

@keyframes ballFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lotto-ball:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Number color ranges - Official Lotto Colors */
.lotto-ball.range-1 {
    background: #f2b620;
    color: white;
}

.lotto-ball.range-2 {
    background: #4172aa;
    color: white;
}

.lotto-ball.range-3 {
    background: #de4d0e;
    color: white;
}

.lotto-ball.range-4 {
    background: #9295a4;
    color: white;
}

.lotto-ball.range-5 {
    background: #13be4b;
    color: white;
}

.lotto-ball.bonus {
    border: 3px solid var(--color-ai-cyan);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    color: var(--color-ai-cyan);
    box-shadow: var(--shadow-glow-cyan);
    position: relative;
    animation: bonusGlow 2s ease-in-out infinite;
}

@keyframes bonusGlow {
    0%, 100% {
        box-shadow: var(--shadow-glow-cyan);
    }
    50% {
        box-shadow: 0 0 30px rgba(34, 211, 238, 0.6);
    }
}

.lotto-ball.bonus::before {
    content: 'BONUS';
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    font-weight: 700;
    font-family: 'Space Grotesk', 'Noto Sans KR', sans-serif;
    letter-spacing: 0.1em;
    color: var(--color-ai-cyan);
    white-space: nowrap;
}

/* Large balls for hero */
.lotto-ball-large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

/* Small balls for lists */
.lotto-ball-small {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
}

/* ============================================
   Forms - Modern Input Style
   ============================================ */

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.9375rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-ai-blue);
    box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.1);
    background: var(--color-bg-card);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

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

.form-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.form-success {
    color: var(--color-success);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

/* ============================================
   Tables - Modern Data Display
   ============================================ */

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
}

.table thead {
    background: var(--color-bg-elevated);
    border-bottom: 2px solid var(--glass-border);
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-ai-blue);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.table td {
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
}

.table tbody tr {
    transition: all var(--transition-fast);
}

.table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05);
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.1);
}

/* ============================================
   Alerts & Messages
   ============================================ */

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: slideIn 0.3s ease-out;
    font-weight: 500;
    font-size: 0.9375rem;
}

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

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--color-info);
    color: var(--color-info);
}

/* ============================================
   Loading & Spinners
   ============================================ */

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(77, 166, 255, 0.2);
    border-top-color: var(--color-ai-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: var(--space-xl) auto;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ============================================
   Stats & Metrics - Modern Analytics
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    border-color: rgba(77, 166, 255, 0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
    transform: translateY(-2px);
}

.stat-value {
    font-family: 'Space Grotesk', 'Inter', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-xs);
    line-height: 1;
}

.stat-label {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================
   Hero Section - Modern Landing
   ============================================ */

.hero {
    text-align: center;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-lg);
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: var(--space-md);
    line-height: 1.1;
    position: relative;
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================
   Footer - Modern Bottom
   ============================================ */

.footer {
    background: linear-gradient(180deg, transparent, var(--color-bg-secondary));
    border-top: 1px solid var(--glass-border);
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
    text-align: center;
    position: relative;
}

.footer-content {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
    font-weight: 500;
    font-size: 0.875rem;
}

.footer-link:hover {
    color: var(--color-ai-blue);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    :root {
        --space-xl: 2.5rem;
        --space-2xl: 3.5rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(20, 25, 37, 0.9);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        padding: var(--space-md);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .lotto-ball {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    .lotto-ball-large {
        width: 72px;
        height: 72px;
        font-size: 1.625rem;
    }

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

    .card {
        padding: var(--space-md);
    }

    .nav-logo::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .lotto-balls {
        gap: var(--space-xs);
    }

    .lotto-ball {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9375rem;
    }

	.stat-card {
		padding: var(--space-md);
	}

	.stat-value {
		font-size: 2rem;
	}
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

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

.hidden { display: none; }
.visible { display: block; }

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   Special Animation Effects
   ============================================ */

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

.fortune-float {
    animation: floatSoft 3s ease-in-out infinite;
}

.fortune-shake {
    transition: transform var(--transition-base);
}

.fortune-shake:hover {
    animation: none;
}
