:root {
    --bg-dark: #0a0b1e;
    --bg-card: #151632;
    --primary: #6b46c1;
    --primary-glow: rgba(107, 70, 193, 0.5);
    --secondary: #d4af37;
    --secondary-glow: rgba(212, 175, 55, 0.5);
    --accent: #9f7aea;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Utility */
.glass {
    background: rgba(21, 22, 50, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 11, 30, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

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

.nav-auth {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--primary);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content .highlight {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
    width: 50%;
}

.hero-image img {
    width: 100%;
}

/* Sections common */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Draw Cards */
.draw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.draw-card {
    padding: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.draw-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.draw-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.draw-card h3 {
    margin-bottom: 10px;
}

.draw-card .price {
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.2rem;
}

.draw-card .status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-upcoming { background: #3182ce; }
.status-live { background: #e53e3e; animation: pulse 2s infinite; }
.status-completed { background: #38a169; }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Wheel Section */
.wheel-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    flex-wrap: wrap;
}

.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

#wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid var(--secondary);
    box-shadow: 0 0 30px var(--secondary-glow);
    transition: transform 5s cubic-bezier(0.15, 0, 0.15, 1);
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--secondary);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
}

/* Stats Section */
.stats {
    padding: 40px 0;
}

.p-40 { padding: 40px; }
.p-25 { padding: 25px; }
.p-20 { padding: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-5 { margin-bottom: 5px; }
.italic { font-style: italic; }
.x-small { font-size: 0.75rem; }
.mt-15 { margin-top: 15px; }

/* Winner Card Glow */
.winner-card {
    border: 1px solid var(--secondary-glow);
    transition: 0.3s;
}

.winner-card:hover {
    box-shadow: 0 0 20px var(--secondary-glow);
    transform: translateY(-5px);
}
.mb-25 { margin-bottom: 25px; }
.mt-20 { margin-top: 20px; }
.mt-50 { margin-top: 50px; }
.mb-50 { margin-bottom: 50px; }

/* Timer */
.timer-item h4 {
    font-size: 1.5rem;
    color: var(--secondary);
}

.timer-item small {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.7rem;
}
.text-center { text-align: center; }
.mt-15 { margin-top: 15px; }
.w-100 { width: 100%; }

.color-primary { color: var(--primary); }
.color-secondary { color: var(--secondary); }
.color-accent { color: var(--accent); }
.color-success { color: #38a169; }

/* How It Works */
.glass-bg {
    background: linear-gradient(135deg, rgba(10, 11, 30, 1) 0%, rgba(21, 22, 50, 1) 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--primary-glow);
}

.step-card h4 {
    margin-bottom: 10px;
    color: var(--secondary);
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Draw Meta */
.draw-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 10px 0;
}

.draw-meta i {
    color: var(--primary);
    margin-right: 5px;
}

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-danger {
    background: rgba(229, 62, 62, 0.2);
    border: 1px solid #e53e3e;
    color: #feb2b2;
}

.alert-success {
    background: rgba(56, 161, 105, 0.2);
    border: 1px solid #38a169;
    color: #9ae6b4;
}

.mb-20 { margin-bottom: 20px; }
.mb-15 { margin-bottom: 15px; }
.text-right { text-align: right; }
.small { font-size: 0.8rem; }
.text-muted { color: var(--text-muted); }

/* Footer */
footer {
    padding: 60px 0 20px;
    background: #050614;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo p {
    margin-top: 15px;
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        width: 100%;
    }
    
    .nav-links {
        display: none; /* Add mobile menu later */
    }
}
