:root {
    /* Premium Dark Mode Palette */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Metallic Accents */
    --gold-start: #fbbf24;
    --gold-mid: #fef08a;
    --gold-end: #b45309;
    
    --platinum-start: #f8fafc;
    --platinum-mid: #e2e8f0;
    --platinum-end: #94a3b8;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* 3D Lotto Ball Colors */
    --ball-yellow-light: #fef08a;
    --ball-yellow-dark: #ca8a04;
    
    --ball-blue-light: #93c5fd;
    --ball-blue-dark: #2563eb;
    
    --ball-red-light: #fca5a5;
    --ball-red-dark: #dc2626;
    
    --ball-gray-light: #cbd5e1;
    --ball-gray-dark: #475569;
    
    --ball-green-light: #86efac;
    --ball-green-dark: #16a34a;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(circle at top right, var(--bg-dark), var(--bg-darker));
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1.5rem;
    overflow-x: hidden;
}

/* Language Toggle */
.lang-toggle-container {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.btn-lang {
    background: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.btn-lang:hover {
    transform: scale(1.2);
}

/* Glassmorphic App Container */
.app-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    padding: 3rem;
    width: 100%;
    max-width: 650px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle ambient background glow inside container */
.app-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.03) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.header {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

/* Shimmering Metallic Gold Title */
.title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-start), var(--gold-mid), var(--gold-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Control Panel & Buttons */
.control-panel {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.btn {
    position: relative;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:disabled {
    cursor: not-allowed;
    filter: grayscale(1) opacity(0.5);
    transform: none !important;
    box-shadow: none !important;
}

.btn-platinum {
    background: linear-gradient(135deg, var(--platinum-start), var(--platinum-mid), var(--platinum-end));
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(226, 232, 240, 0.15);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-start), var(--gold-mid), var(--gold-end));
    color: #fff;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn:hover:not(:disabled) {
    transform: translateY(-3px);
}

.btn-platinum:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(226, 232, 240, 0.3);
}

.btn-gold:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* Sweeping Light Glow Animation on Hover */
.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    z-index: 1;
    transition: all 0.5s ease;
}

.btn:hover:not(:disabled) .btn-glow {
    animation: sweepLight 1.5s infinite;
}

@keyframes sweepLight {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Deep Glassmorphic Stats Panel */
.stats-panel {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: inset 0 2px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-green {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

/* Results Container */
.results-container {
    min-height: 180px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Slide-up Fade Glassmorphic Rows */
.lotto-row {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.lotto-row:nth-child(1) { animation-delay: 0.1s; }
.lotto-row:nth-child(2) { animation-delay: 0.2s; }
.lotto-row:nth-child(3) { animation-delay: 0.3s; }
.lotto-row:nth-child(4) { animation-delay: 0.4s; }
.lotto-row:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lotto-row-label {
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--gold-start);
    margin-right: 2rem;
    width: 70px;
    text-align: right;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.lotto-balls {
    display: flex;
    gap: 1rem;
}

/* 3D Realistic Sphere Lotto Balls */
.lotto-ball {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 
        inset -8px -8px 15px rgba(0, 0, 0, 0.6), 
        inset 5px 5px 12px rgba(255, 255, 255, 0.5),
        0 10px 20px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.3);
    animation: ballPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: scale(0);
    opacity: 0;
}

/* Dynamic staggering for the balls appearing */
.lotto-balls .lotto-ball:nth-child(1) { animation-delay: 0.3s; }
.lotto-balls .lotto-ball:nth-child(2) { animation-delay: 0.4s; }
.lotto-balls .lotto-ball:nth-child(3) { animation-delay: 0.5s; }
.lotto-balls .lotto-ball:nth-child(4) { animation-delay: 0.6s; }
.lotto-balls .lotto-ball:nth-child(5) { animation-delay: 0.7s; }
.lotto-balls .lotto-ball:nth-child(6) { animation-delay: 0.8s; }

@keyframes ballPop {
    from {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* Radial gradients to simulate light hitting a 3D sphere */
.ball-yellow { background: radial-gradient(circle at 30% 30%, var(--ball-yellow-light), var(--ball-yellow-dark) 80%); }
.ball-blue { background: radial-gradient(circle at 30% 30%, var(--ball-blue-light), var(--ball-blue-dark) 80%); }
.ball-red { background: radial-gradient(circle at 30% 30%, var(--ball-red-light), var(--ball-red-dark) 80%); }
.ball-gray { background: radial-gradient(circle at 30% 30%, var(--ball-gray-light), var(--ball-gray-dark) 80%); }
.ball-green { background: radial-gradient(circle at 30% 30%, var(--ball-green-light), var(--ball-green-dark) 80%); }

.empty-state {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-style: italic;
    padding: 3rem 0;
    animation: fadeIn 1s ease forwards;
}

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

/* Responsive Mobile Adjustments */
@media (max-width: 576px) {
    .app-container {
        padding: 3rem 1.5rem 2rem 1.5rem;
    }

    .lang-toggle-container {
        top: 1rem;
        right: 1rem;
    }
    
    .title {
        font-size: 2.2rem;
    }

    .control-panel {
        flex-direction: column;
    }

    .lotto-row {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
    
    .lotto-row-label {
        margin-right: 0;
        text-align: center;
        width: 100%;
        font-size: 1.5rem;
    }
    
    .lotto-balls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .lotto-ball {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
}
```