* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    color: #1e293b;
    min-height: 100vh;
}

/* Desktop Header */
.desktop-header {
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(242, 168, 58, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-text .accent {
    color: #f2a83a;
}

.desktop-nav {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 60px;
}

.nav-link {
    padding: 8px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: #94a3b8;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    color: #f2a83a;
    background: rgba(242, 168, 58, 0.15);
}

.nav-link.active {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    color: #1f2a44;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.btn-login,
.btn-register {
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-login {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
}

.btn-login:hover {
    border-color: #f2a83a;
    color: #f2a83a;
    background: rgba(242, 168, 58, 0.1);
}

.btn-register {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    color: #1f2a44;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 168, 58, 0.3);
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.user-avatar:hover {
    background: rgba(242, 168, 58, 0.15);
}

.user-avatar i:first-child {
    font-size: 1.2rem;
    color: #f2a83a;
}

.user-avatar span {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

.user-avatar i:last-child {
    font-size: 0.7rem;
    color: #94a3b8;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #475569;
    font-size: 0.85rem;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #fef9f0;
    color: #f2a83a;
}

.user-dropdown a i {
    width: 20px;
    color: #f2a83a;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(242, 168, 58, 0.2);
    padding: 12px 16px;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
}

.mobile-logo a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.mobile-logo .accent {
    color: #f2a83a;
}

.mobile-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu-btn i {
    font-size: 1.2rem;
    color: white;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.sidebar-overlay.open {
    display: block;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(15, 23, 42, 0.95);
}

.sidebar-logo {
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}

.sidebar-logo .accent {
    color: #f2a83a;
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.sidebar-menu {
    padding: 16px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-link:hover {
    background: #fef9f0;
    color: #f2a83a;
    padding-left: 28px;
}

.sidebar-link i {
    width: 24px;
    color: #f2a83a;
}

.sidebar-divider {
    margin-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 80px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.predictions-page {
    width: 100%;
}

/* Pills */
.pills-container {
    margin-bottom: 20px;
    padding: 10px 0;
}

.pills-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 4px 12px;
}

.pill {
    padding: 10px 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pill:hover {
    border-color: #f2a83a;
    color: #f2a83a;
    transform: translateY(-2px);
    background: #fef9f0;
}

.pill.active {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    border-color: #f2a83a;
    color: white;
    box-shadow: 0 4px 12px rgba(242, 168, 58, 0.25);
}

/* Games Container */
.games-container {
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    width: 100%;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    flex-wrap: wrap;
    gap: 15px;
}

.title-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 5px;
}

.selected-date {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
}

.date-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.date-tabs {
    display: flex;
    gap: 8px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 48px;
}

.date-tab {
    padding: 8px 24px;
    border: none;
    border-radius: 40px;
    background: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.date-tab:hover {
    color: #f2a83a;
    background: rgba(242, 168, 58, 0.1);
}

.date-tab.active {
    background: #1f2a44;
    color: white;
}

.calendar-wrapper {
    position: relative;
}

.games-list {
    min-height: 300px;
    width: 100%;
}

/* Game Items */
.game-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}

.game-time {
    min-width: 80px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
}

.game-match {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
    margin: 0 20px;
}

.game-prediction {
    padding: 6px 18px;
    background: #f2a83a;
    color: #0f172a;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    /* Remove min-width */
    /* min-width: 80px; */
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.game-prediction.won {
    background: #10b981 !important;
    color: white !important;
}

.game-prediction.lost {
    background: #ef4444 !important;
    color: white !important;
}

.loading-spinner {
    text-align: center;
    padding: 60px;
    color: #94a3b8;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
    color: #f2a83a;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-data-message {
    text-align: center;
    padding: 60px;
    color: #94a3b8;
}

.no-data-message i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    color: #f2a83a;
}

/* Status Message Card */
.status-message-card {
    max-width: 500px;
    margin: 40px auto;
    padding: 32px;
    background: white;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
    color: white;
}

.status-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2a44;
    margin-bottom: 12px;
}

.status-message {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

.status-details {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.status-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.status-btn {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.status-btn.primary {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    color: #1f2a44;
}

.status-btn.secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .main-content {
        padding: 12px;
        padding-top: 70px;
        padding-bottom: 80px;
    }
    
    .games-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    
    .date-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .date-tab {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .game-item {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .game-match {
        width: 100%;
        order: 2;
        margin: 8px 0;
    }
    
    .game-prediction {
        order: 3;
    }
}

@media (min-width: 769px) {
    .mobile-footer {
        display: none !important;
    }
}
/* ==================== CALENDAR MODAL ==================== */
.calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.calendar-modal.show {
    display: flex;
}

.calendar-modal-content {
    background: white;
    border-radius: 28px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #1f2a44, #2d3a5e);
}

.calendar-modal-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.calendar-modal-header h3 i {
    color: #f2a83a;
    margin-right: 8px;
}

.calendar-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s;
}

.calendar-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.calendar-modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-modal-nav-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1rem;
    transition: all 0.2s;
}

.calendar-modal-nav-btn:hover {
    background: #fef9f0;
    color: #f2a83a;
}

#calendarModalMonthYear {
    font-weight: 700;
    color: #1f2a44;
    font-size: 1rem;
}

.calendar-modal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 12px 8px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-modal-weekdays span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.calendar-modal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 16px;
    gap: 4px;
    background: white;
}

.calendar-modal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
}

.calendar-modal-day:hover:not(.empty) {
    background: #fef9f0;
    color: #f2a83a;
    transform: scale(1.05);
}

.calendar-modal-day.empty {
    visibility: hidden;
    cursor: default;
}

.calendar-modal-day.selected {
    background: #f2a83a;
    color: #1f2a44;
    font-weight: 700;
}

.calendar-modal-day.today {
    border: 2px solid #f2a83a;
    font-weight: 700;
}

.calendar-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.calendar-modal-today,
.calendar-modal-cancel {
    flex: 1;
    padding: 10px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.calendar-modal-today {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    color: #1f2a44;
}

.calendar-modal-today:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 168, 58, 0.3);
}

.calendar-modal-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.calendar-modal-cancel:hover {
    background: #e2e8f0;
}

/* Mobile Calendar Bottom Sheet */
@media (max-width: 768px) {
    .calendar-modal {
        align-items: flex-end;
    }
    
    .calendar-modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 28px 28px 0 0;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
}
/* Ensure only one view is visible at a time */
.predictions-page {
    display: block;
}

.pricing-view-container,
.contact-view-container,
.auth-view-container {
    display: block;
}

/* Hide predictions page when showing other views */
.predictions-page.hide {
    display: none;
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 60px;
    color: #94a3b8;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
    color: #f2a83a;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Odds Groups Styling - Add to index.css */
.odds-groups {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.odds-group {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    width: 100%;
}

.odds-header {
    background: #f8fafc;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #1f2a44;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.slip-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.slip-status.won {
    background: #d1fae5;
    color: #059669;
}

.slip-status.lost {
    background: #fee2e2;
    color: #dc2626;
}

.slip-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.odds-games {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.odds-game-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}

.odds-game-row:last-child {
    border-bottom: none;
}

.odds-game-time {
    min-width: 70px;
    width: 70px;
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
    font-family: monospace;
}

.odds-game-name {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
    margin: 0 20px;
    text-align: left;
}

.odds-game-tip {
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    /* Remove min-width */
    /* min-width: 70px; */
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.odds-game-tip.won {
    background: #10b981;
    color: white;
}

.odds-game-tip.lost {
    background: #ef4444;
    color: white;
}

.odds-game-tip.pending {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .odds-game-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .odds-game-time {
        order: 1;
        width: auto;
    }
    
    .odds-game-name {
        order: 2;
        margin: 0;
        width: 100%;
        margin-top: 8px;
        margin-bottom: 8px;
    }
    
    .odds-game-tip {
        order: 3;
    }
}
/* Add to index.css */
[class*="-view-container"] {
    will-change: opacity;
    background: transparent; /* Prevents the white flash */
}