* {
    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 ==================== */
.main-content {
    min-height: calc(100vh - 80px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
    display: block;
}

/* ==================== BET PAGE ==================== */
.bet-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ==================== GAMES CONTAINER ==================== */
.games-container {
    background: white;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    width: 100%;
    margin-bottom: 40px;
}

/* ==================== GAMES HEADER ==================== */
.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 ==================== */
.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: var(--gray-500);
    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 ==================== */
.games-list {
    min-height: 200px;
    width: 100%;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* ==================== GAME ITEMS - DESKTOP ==================== */
.game-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #E2E8F0;
    width: 100%;
    transition: background 0.2s ease;
}

.game-item:last-child {
    border-bottom: none;
}

.game-time {
    min-width: 70px;
    color: #64748B;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: monospace;
}

.game-match {
    flex: 1;
    font-weight: 500;
    color: #334155;
    font-size: 0.95rem;
    margin: 0 16px;
}

.game-prediction {
    padding: 5px 16px;
    background: #F4F7F6 !important;
    color: #64748B !important;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.game-prediction-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==================== RESULT ICONS ==================== */
.result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.75rem;
}

.result-icon.won {
    background: #06D6A0;
    color: white;
}

.result-icon.lost {
    background: #E63946;
    color: white;
}

.result-icon.pending {
    background: #F4F7F6;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

/* ==================== MULTI-DAY GAMES LIST ==================== */
.multi-day-games-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

/* Day Section */
.day-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    margin-bottom: 32px;
}

/* Multi-day mobile separation spacing tweak */
@media (max-width: 768px) {
    .day-section {
        margin-bottom: 16px !important;
    }
}

.day-section + .day-section {
    margin-top: 0;
}

.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);
}

/* REMOVE TOGGLE ICON - Hide the arrow completely */
.toggle-icon {
    display: none !important;
}

.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;
}

.day-content {
    display: none;
}

.day-content.open {
    display: block;
}

.day-games-container {
    width: 100%;
}

.day-games-container .game-item {
    padding: 12px 16px;
    border-bottom: 1px solid #E2E8F0;
}

.day-games-container .game-item:last-child {
    border-bottom: none;
}

/* Mobile multi-day styles */
@media (max-width: 768px) {
    .multi-day-games-list {
        padding: 12px;
        gap: 12px;
    }
    
    .day-section-header {
        padding: 12px;
    }
    
    .day-name {
        font-size: 0.85rem;
    }
    
    .day-date {
        font-size: 0.7rem;
    }
    
    .day-games-container .game-item {
        padding: 14px;
    }
}

/* ==================== 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-data-message {
    text-align: center;
    padding: 60px 20px;
    color: #94A3B8;
}

.no-data-message i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
    color: #F5A623;
}

.no-games-message {
    text-align: center;
    padding: 40px 20px;
    color: #94A3B8;
}

.no-games-message i {
    font-size: 1.8rem;
    color: #F5A623;
    margin-bottom: 12px;
    display: block;
}

/* ==================== 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, #1A2A2A, #0F2B1F);
}

.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%;
    transition: all 0.2s;
}

.calendar-modal-close:hover {
    background: rgba(230, 57, 70, 0.2);
    color: #E63946;
}

.calendar-modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #F4F7F6;
    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: #EDF2EC;
    color: #F5A623;
}

#calendarModalMonthYear {
    font-weight: 700;
    color: #1B4D3E;
    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: rgba(245, 166, 35, 0.1);
    color: #F5A623;
    transform: scale(1.05);
}

.calendar-modal-day.empty {
    visibility: hidden;
    cursor: default;
}

.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;
    border-top: 1px solid #E2E8F0;
    background: #F4F7F6;
}

.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, #F5A623, #E8871E);
    color: #1B4D3E;
}

.calendar-modal-today:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.calendar-modal-cancel {
    background: #F4F7F6;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

/* ==================== 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;
}

.faq-answer p {
    margin-bottom: 10px;
}

.faq-answer ul, .faq-answer ol {
    margin: 10px 0 10px 20px;
}

.faq-answer li {
    margin-bottom: 5px;
}

/* ==================== 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;
}

/* ==================== MOBILE RESPONSIVE (UPDATED) ==================== */
@media (max-width: 768px) {
    /* Make games container full width */
    .main-content {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
    
    .bet-page {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .games-container {
        border-radius: 0 !important;
        margin-bottom: 0 !important;
        border-left: none !important;
        border-right: none !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 on mobile */
    .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;
    }
    
    /* Game items - row layout */
    .game-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 16px !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
        width: 100%;
    }
    
    .game-teams {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        min-width: 0 !important;
    }
    
    .game-time {
        min-width: auto;
        font-size: 0.7rem;
        font-weight: 600;
        color: #64748B;
        font-family: monospace;
        background: transparent;
        padding: 0;
    }
    
    .game-match {
        font-size: 0.85rem;
        font-weight: 500;
        color: #1B4D3E;
        margin: 0;
        padding: 0;
        flex: 1;
        text-align: left;
    }
    
    .game-prediction-wrapper {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }
    
    .game-prediction {
        padding: 4px 12px;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .result-icon {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
    
    .mobile-footer {
        display: flex;
    }
    
    /* FAQ Mobile */
    .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 Mobile */
    .calendar-modal-content {
        width: 95%;
    }
    
    .calendar-modal-day {
        font-size: 0.75rem;
    }
    
    /* Multi-day mobile */
    .multi-day-games-list {
        padding: 12px;
    }
    
    .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: 480px) {
    .date-tab {
        padding: 4px 8px !important;
        font-size: 0.65rem !important;
    }
    
    .game-match {
        font-size: 0.8rem;
    }
    
    .game-prediction {
        padding: 3px 10px;
        font-size: 0.65rem;
    }
    
    .calendar-btn {
        padding: 4px 10px !important;
        min-width: 34px !important;
    }
}

/* ==================== ODDS GAME ROW STYLES (for any odds games) ==================== */
@media (max-width: 768px) {
    /* Sets the row wrapper to align items horizontally from left to right */
    .odds-game-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        padding: 14px 16px !important;
        text-align: left !important;
    }

    /* Styles the time badge to be compact and self-contained on the left edge */
    .odds-game-time {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
        background: rgba(245, 166, 35, 0.1) !important;
        color: #F5A623 !important;
        border-radius: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: auto !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    /* Forces team names to align immediately next to the time badge */
    .odds-game-name {
        margin: 0 !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #1A1A1A !important;
        text-align: left !important;
        flex: 1 !important;
    }

    /* Controls tip/prediction elements right placement alignment */
    .odds-game-tip-wrapper {
        width: auto !important;
        margin-top: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-shrink: 0 !important;
    }
}

/* Remove toggle icon from day sections completely - additional selector */
.day-section-header .toggle-icon,
.day-section-header i.fa-chevron-down,
[class*="toggle-icon"] {
    display: none !important;
}