/* vip-common.css - Shared styles for all VIP category pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #F4F7F6 0%, #E8EDEB 100%);
    color: #334155;
    min-height: 100vh;
}

.main-content {
    min-height: calc(100vh - 80px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
    display: block;
}

.odds-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.games-container {
    background: white;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    width: 100%;
    margin-bottom: 40px;
}

.games-header {
    padding: 20px 24px;
    border-bottom: 1px solid #E2E8F0;
    background: white;
}

.title-section {
    text-align: left;
    margin-bottom: 16px;
}

.title-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B4D3E;
    margin-bottom: 4px;
}

.selected-date {
    font-size: 0.85rem;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stats-inline {
    font-weight: 600;
    color: #F5A623;
    background: rgba(245, 166, 35, 0.1);
    padding: 2px 10px;
    border-radius: 40px;
    font-size: 0.75rem;
}

.date-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.date-tabs {
    display: flex;
    gap: 8px;
    background: #F4F7F6;
    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: #F5A623;
    background: rgba(245, 166, 35, 0.1);
}

.date-tab.active {
    background: #1B4D3E;
    color: white;
}

.calendar-wrapper {
    position: relative;
}

.calendar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-btn:hover {
    border-color: #F5A623;
    color: #F5A623;
    background: rgba(245, 166, 35, 0.05);
}

.calendar-btn i {
    color: #F5A623;
}

.games-list, .multi-day-games-list {
    min-height: 200px;
    width: 100%;
}

.odds-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.odds-group {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 0px solid #E2E8F0;
}

.odds-header {
    background: #F8FAFC;
    padding: 12px 16px;
    border-bottom: 0px solid #E2E8F0;
    font-weight: 600;
    color: #1B4D3E;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slip-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.slip-status.won { background: rgba(6, 214, 160, 0.15); color: #059669; }
.slip-status.lost { background: rgba(230, 57, 70, 0.1); color: #DC2626; }
.slip-status.pending { background: rgba(245, 166, 35, 0.1); color: #E8871E; }

/* Desktop Game Row */
.odds-game-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.odds-game-row:last-child { border-bottom: none; }

.odds-game-time {
    min-width: 60px;
    color: #64748B;
    font-weight: 600;
    font-size: 0.75rem;
    font-family: monospace;
}

.odds-game-name {
    flex: 1;
    font-weight: 500;
    color: #334155;
    font-size: 0.85rem;
    margin: 0 12px;
}

.odds-game-tip-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.odds-game-tip {
    padding: 4px 14px;
    background: #F4F7F6 !important;
    color: #64748B !important;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
}

.odds-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
}

.odds-result-icon.won { background: #06D6A0; color: white; }
.odds-result-icon.lost { background: #E63946; color: white; }
.odds-result-icon.pending { background: #F4F7F6; color: #64748B; border: 1px solid #E2E8F0; }

/* Day Section */
.day-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    margin-bottom: 16px;
}

.day-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #F8FAFC;
    cursor: pointer;
    border-bottom: 1px solid #E2E8F0;
}

.day-section-header.open .toggle-icon { transform: rotate(180deg); }

.day-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.day-name { font-size: 0.9rem; font-weight: 700; color: #1B4D3E; }
.day-date { font-size: 0.75rem; color: #64748B; }

.day-stats .stats-record {
    font-weight: 600;
    color: #F5A623;
    background: rgba(245, 166, 35, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
}

.toggle-icon { color: #F5A623; font-size: 0.9rem; transition: transform 0.3s ease; }
.day-content { display: none; }
.day-content.open { display: block; }
.day-games-container { width: 100%; }

/* Loader */
.loader-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
    padding: 40px;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid #E2E8F0;
    border-top-color: #F5A623;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-centered-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #64748B;
}

.loader-small {
    width: 20px;
    height: 20px;
    border: 2px solid #E2E8F0;
    border-top-color: #F5A623;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text { margin-top: 16px; color: #64748B; font-size: 0.85rem; }

.no-data-message, .no-games-message {
    text-align: center;
    padding: 60px 20px;
    color: #94A3B8;
}

.no-data-message i, .no-games-message i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    color: #F5A623;
}

/* Status Message Card */
.status-message-card {
    max-width: 500px;
    margin: 60px auto;
    padding: 32px;
    background: white;
    border-radius: 24px;
    text-align: center;
    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;
    background: linear-gradient(135deg, #f2a83a, #e5982b);
}

.status-title { font-size: 1.5rem; font-weight: 800; color: #1B4D3E; margin-bottom: 12px; }
.status-message { font-size: 1rem; color: #475569; line-height: 1.6; margin-bottom: 16px; }
.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, #F5A623, #E8871E); color: #1B4D3E; }
.status-btn.secondary { background: #F4F7F6; color: #64748B; border: 1px solid #E2E8F0; }

/* 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;
}

@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;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
    border-bottom: 1px solid rgba(245,166,35,0.2);
}

.calendar-modal-header h3 { color: white; font-size: 1.1rem; font-weight: 700; margin: 0; }
.calendar-modal-header h3 i { color: #F5A623; 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%;
}

.calendar-modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #F4F7F6;
}

.calendar-modal-nav-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #64748B;
}

#calendarModalMonthYear { font-weight: 700; color: #1B4D3E; }

.calendar-modal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 12px 8px;
    background: white;
}

.calendar-modal-weekdays span { font-size: 0.7rem; font-weight: 600; color: #64748B; }

.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: rgba(245,166,35,0.1); color: #F5A623; }
.calendar-modal-day.empty { visibility: hidden; }
.calendar-modal-day.selected { background: #F5A623; color: #1B4D3E; font-weight: 700; }
.calendar-modal-day.today { border: 2px solid #F5A623; font-weight: 700; }

.calendar-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #F4F7F6;
}

.calendar-modal-today, .calendar-modal-cancel {
    flex: 1;
    padding: 10px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
}

.calendar-modal-today { background: linear-gradient(135deg, #F5A623, #E8871E); color: #1B4D3E; }
.calendar-modal-cancel { background: #F4F7F6; color: #64748B; border: 1px solid #E2E8F0; }

/* Auth Modal */
.modal-overlay {
    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: 10001;
}

.modal-overlay.show { display: flex; }

.modal-content {
    background: white;
    border-radius: 28px;
    width: 90%;
    max-width: 420px;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
}

.auth-modal { text-align: center; }
.auth-icon { font-size: 3rem; color: #F5A623; margin-bottom: 16px; }
.auth-modal h3 { font-size: 1.3rem; font-weight: 700; color: #1B4D3E; margin-bottom: 12px; }
.auth-modal p { color: #64748B; font-size: 0.9rem; margin-bottom: 24px; line-height: 1.5; }

.auth-buttons-modal {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.btn-login-modal {
    background: linear-gradient(135deg, #F5A623, #E8871E);
    color: #1B4D3E;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}

.btn-register-modal {
    background: white;
    color: #64748B;
    border: 1px solid #E2E8F0;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}

.subscribe-link { margin-top: 16px; padding-top: 16px; border-top: 1px solid #E2E8F0; }
.subscribe-link a { color: #F5A623; text-decoration: none; font-size: 0.85rem; }

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94A3B8;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.faq-header {
    text-align: center;
    padding: 24px 20px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.faq-header i { font-size: 2rem; color: #F5A623; margin-bottom: 8px; }
.faq-header h2 { font-size: 1.2rem; font-weight: 700; color: #1B4D3E; margin-bottom: 4px; }
.faq-header p { color: #64748B; font-size: 0.8rem; }

.faq-container { padding: 0; }
.faq-item { border-bottom: 1px solid #E2E8F0; }
.faq-item:last-child { border-bottom: none; }

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover { background: #F8FAFC; }
.faq-question i:first-child { color: #F5A623; font-size: 0.85rem; transition: transform 0.2s; }
.faq-item.active .faq-question i:first-child { transform: rotate(90deg); }
.faq-question span { font-weight: 600; font-size: 0.9rem; color: #1B4D3E; flex: 1; }

.faq-answer {
    display: none;
    padding: 0 20px 20px 48px;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer { display: block; }

/* Mobile Footer */
.mobile-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1A2A2A, #0F2B1F);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(245,166,35,0.2);
    padding: 8px 16px;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
}

.footer-nav-item, a.footer-nav-item {
    text-decoration: none;
    color: #94A3B8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 8px 0;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
    flex: 1;
}

.footer-nav-item.active, a.footer-nav-item.active { color: #F5A623; }

/* Hide toggle icons completely */
.toggle-icon {
    display: none !important;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    /* Make games container full width on mobile */
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
    
    .odds-page {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .games-container {
        border-radius: 16 !important;
        margin-bottom: 0 !important;
        border-left: 16 !important;
        border-right: 16 !important;
        width: 100% !important;
    }
    
    .games-header {
        padding: 16px !important;
    }
    
    .title-section h2 {
        font-size: 1.2rem;
    }
    
    .selected-date {
        font-size: 0.75rem;
    }
    
    /* Date controls - horizontal row, text-sized buttons */
    .date-controls {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }
    
    /* Date tabs - auto width based on content */
    .date-tabs {
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
        background: #F4F7F6;
        padding: 4px;
        border-radius: 48px;
        width: auto !important;
        flex: 0 0 auto !important;
    }
    
    /* Each date tab - size based on text content */
    .date-tab {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        width: auto !important;
        min-width: auto !important;
        flex: 0 0 auto !important;
    }
    
    /* Calendar wrapper - fixed width */
    .calendar-wrapper {
        flex-shrink: 0 !important;
    }
    
    /* Calendar button - icon only on mobile */
    .calendar-btn {
        justify-content: center !important;
        align-items: center !important;
        padding: 6px 12px !important;
        font-size: 0 !important;
        gap: 0 !important;
        min-width: 38px !important;
    }
    
    /* Hide text on mobile */
    .calendar-btn span {
        display: none !important;
    }
    
    /* Show only icon */
    .calendar-btn i {
        font-size: 1rem !important;
        margin: 0 !important;
        color: #F5A623 !important;
    }
    
    /* ==================== VERTICAL TEAM LAYOUT ON MOBILE (LIKE YOUR IMAGE) ==================== */
    /* Game row - vertical layout for teams */
    .odds-game-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 14px 16px !important;
        border-bottom: 1px solid #F1F5F9 !important;
    }
    
    /* Time column - stays on left, top aligned */
    .odds-game-time {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        color: #64748B !important;
        font-family: monospace !important;
        min-width: 45px !important;
        background: transparent !important;
        padding-top: 2px !important;
        flex-shrink: 0 !important;
    }
    
    /* Teams container - vertical column */
    .odds-game-teams {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }
    
    /* Home team - top */
    .odds-game-name {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        color: #1B4D3E !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
        text-align: left !important;
    }
    
    /* Away team - bottom */
    .odds-game-name.away {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        color: #475569 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
        text-align: left !important;
    }
    
    /* Tip and result wrapper - right aligned column */
    .odds-game-tip-wrapper {
        display: flex !important;
        flex-direction: row !important;  /* ← Horizontal layout */
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }
    
    /* Tip button */
    .odds-game-tip {
        padding: 5px 12px !important;
        background: #F4F7F6 !important;
        color: #64748B !important;
        border-radius: 30px !important;
        font-weight: 700 !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }
    
    /* Result icon */
    .odds-result-icon {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.65rem !important;
    }
    
    .odds-groups {
        padding: 12px;
        gap: 12px;
    }
    
    .mobile-footer {
        display: flex;
    }
    
    .faq-header {
        padding: 20px 16px;
    }
    
    .faq-header h2 {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 12px 16px;
    }
    
    .faq-question span {
        font-size: 0.85rem;
    }
    
    .faq-answer {
        padding: 0 16px 16px 44px;
        font-size: 0.8rem;
    }
    
    .calendar-modal-content {
        width: 95%;
    }
    
    .calendar-modal-day {
        font-size: 0.75rem;
    }
    
    .status-message-card {
        margin: 40px 16px;
        padding: 24px;
    }
    
    .status-title {
        font-size: 1.2rem;
    }
    
    .auth-buttons-modal {
        flex-direction: column;
    }
    
    .btn-login-modal, .btn-register-modal {
        width: 100%;
    }
    
    /* Multi-day spacing */
    .multi-day-games-list {
        gap: 20px;
        padding: 0px;
        width:100%;
    }
    
    .day-section-header {
        padding: 12px;
    }
    
    .day-name {
        font-size: 0.85rem;
    }
    
    .day-date {
        font-size: 0.7rem;
    }
}

@media (min-width: 769px) {
    .mobile-footer {
        display: none !important;
    }
}
@media (max-width: 768px) {
    /* Pulls the sub-category selector container right up below the primary header */
    .categories-pills, 
    .categories-nav, 
    .vip-categories-pills {
        margin-top: 0 !important;
        padding-top: 4px !important; /* Minimal cushion just to keep it looking clean */
    }

    /* Adjusts the top layout padding of the content section underneath the header */
    .main-content {
        padding-top: 0 !important;
    }
}