* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    /* Main Light Yellow Gradient */
    background: linear-gradient(135deg, #fff9e6 0%, #fef2c0 100%);
    color: #4a3700;
}

/* Background Image with Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.iplt20.com/assets/images/ipl-logo-new.svg');
    background-size: 40%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* Cricket Stadium Background - Lightened */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1540747913346-19e32dc3e97e?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    filter: sepia(100%) hue-rotate(10deg) brightness(1.2);
}

.container {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Frosted Gold Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px rgba(184, 134, 11, 0.15);
    padding: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(184, 134, 11, 0.2);
    border-color: #d4af37;
}

/* Typography */
h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #b8860b, #8b6508);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #8b6508;
    text-align: center;
    margin-bottom: 15px;
}

.subtitle {
    text-align: center;
    color: #6d5612;
    margin-bottom: 25px;
    font-size: 0.85rem;
    font-weight: 500;
}

.section-title {
    color: #8b6508;
    margin: 20px 5px 15px 5px;
    font-size: 1.2rem;
    font-weight: 700;
    border-left: 4px solid #d4af37;
    padding-left: 12px;
}

/* Form Elements */
input, select {
    width: 100%;
    padding: 14px 18px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 40px;
    font-size: 1rem;
    color: #4a3700;
    outline: none;
}

input:focus, select:focus {
    border-color: #d4af37;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: white;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e5c158, #d4af37);
    transform: translateY(-2px);
}

.vote-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.vote-btn {
    background: #ffffff;
    border: 2px solid #d4af37;
    padding: 12px;
    font-weight: 700;
    color: #8b6508;
    border-radius: 40px;
    cursor: pointer;
}

.vote-btn:hover {
    background: #d4af37;
    color: white;
}

/* Leaderboard */
.leaderboard-table th {
    text-align: left;
    padding: 12px 8px;
    color: #8b6508;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.leaderboard-table td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    color: #4a3700;
}

.pts-number {
    font-weight: 800;
    color: #b8860b;
}

/* Badges */
.prediction-badge {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
    border-radius: 20px;
    padding: 8px;
    text-align: center;
}

.winner-badge {
    background: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
    font-weight: 800;
    border-radius: 20px;
    padding: 8px;
    text-align: center;
}

/* User Header */
.user-header {
    background: rgba(212, 175, 55, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.welcome-text {
    font-weight: 700;
    color: #8b6508;
}

.logout-btn {
    background: #ffffff;
    color: #8b6508;
    border: 1px solid #d4af37;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    width: auto;
    margin: 0;
}

/* Status */
.status-open {
    background: #4caf50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
}

/* Add this to your style.css if not already present */
.hidden {
    display: none !important;
}

/* Mobile Adjustments */
@media (max-width: 550px) {
    body { padding: 12px; }
    h1 { font-size: 1.7rem; }
    .glass-card { padding: 15px; }
}


/* Center the login screen */
.login-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 10vh;
}

.login-form {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

/* Big Centered Button */
.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-top: 15px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.btn-full:active {
    transform: scale(0.95);
}

.button-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Visibility Control */
.hidden {
    display: none !important;
}

.ipl-logo {
    font-size: 3.5rem;
    margin-bottom: 10px;
}