/* tips-common.css - Shared styles for all tips category pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f1f5f9;
    color: #0F172A;
    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 ==================== */
.games-container {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    width: 100%;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.games-header {
    padding: 20px 24px;
    border-bottom: 1px solid #F1F5F9;
    background: #ffffff;
}

.title-section {
    text-align: left;
    margin-bottom: 16px;
}

.title-section h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    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: #0EA5E9;
    background: rgba(14, 165, 233, 0.08);
    padding: 2px 10px;
    border-radius: 40px;
    font-size: 0.75rem;
    border: 1px solid rgba(14, 165, 233, 0.12);
}

/* ==================== DATE CONTROLS ==================== */
.date-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.date-tabs {
    display: flex;
    gap: 6px;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 48px;
}

.date-tab {
    padding: 8px 20px;
    border: none;
    border-radius: 40px;
    background: transparent;
    font-weight: 600;
    font-size: 0.8rem;
    color: #94A3B8;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.date-tab:hover {
    color: #0EA5E9;
    background: rgba(14, 165, 233, 0.08);
}

.date-tab.active {
    background: #0EA5E9;
    color: white;
}

.calendar-wrapper {
    position: relative;
}

.calendar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.calendar-btn:hover {
    border-color: #0EA5E9;
    color: #0EA5E9;
    background: rgba(14, 165, 233, 0.04);
}

.calendar-btn i {
    color: #94A3B8;
    transition: color 0.2s ease;
}

.calendar-btn:hover i {
    color: #0EA5E9;
}

.games-list,
.multi-day-games-list {
    min-height: 200px;
    width: 100%;
}

/* ==================== ODDS GROUPING ==================== */
.odds-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.odds-group {
    background: #ffffff;
    border-radius: 16px;
    border: 0px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.odds-games-inner {
    overflow: hidden;
    padding: 0 16px;
}

.odds-header {
    background: #FAFBFC;
    padding: 12px 16px;
    border-bottom: 1px solid #F1F5F9;
    font-weight: 600;
    color: #0F172A;
    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(16, 185, 129, 0.12);
    color: #10B981;
}

.slip-status.lost {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.slip-status.pending {
    background: rgba(14, 165, 233, 0.08);
    color: #0EA5E9;
}

/* ==================== GAME ROW - DESKTOP ==================== */
.odds-game-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    background: #ffffff;
}

.odds-game-row:last-child {
    border-bottom: none;
}

.odds-game-row:hover {
    background: #FAFBFC;
}

.odds-game-time {
    min-width: 60px;
    color: #94A3B8;
    font-weight: 600;
    font-size: 0.75rem;
    font-family: monospace;
}

.odds-game-name {
    flex: 1;
    font-weight: 500;
    color: #0F172A;
    font-size: 0.85rem;
    margin: 0 12px;
}

.odds-game-tip-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.odds-game-tip {
    padding: 4px 10px;
    color: #475569 !important;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    text-align: left;
}

.odds-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.odds-result-icon.won {
    background: #66cc00 !important;
    color: #ffffff;
}

.odds-result-icon .fa-check,
.odds-result-icon .fa-times,
.odds-result-icon i {
    font-size: 1rem !important;
    line-height: 1 !important;
}

.odds-result-icon.lost {
    background: #EF4444;
    color: white;
}

.odds-result-icon.pending {
    background: #F1F5F9;
    color: #94A3B8;
    border: 1px solid #E2E8F0;
    display: none !important;
}

/* ==================== DAY SECTION - ALWAYS OPEN ==================== */
.day-section {
    background: #ffffff;
    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: #FAFBFC;
    border-bottom: 1px solid #F1F5F9;
    cursor: default;
}

.day-section-header:hover {
    background: #FAFBFC;
}

.toggle-icon {
    display: none !important;
}

.day-info {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.day-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0F172A;
}

.day-date {
    font-size: 0.75rem;
    color: #64748B;
}

.day-stats .stats-record {
    font-weight: 600;
    color: #0EA5E9;
    background: rgba(14, 165, 233, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.day-content {
    display: block !important;
}

.day-games-container {
    padding: 6px 6px;
}

/* ==================== 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: #0EA5E9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-centered-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #94A3B8;
}

.loader-small {
    width: 20px;
    height: 20px;
    border: 2px solid #E2E8F0;
    border-top-color: #0EA5E9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 16px;
    color: #94A3B8;
    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: #0EA5E9;
    opacity: 0.5;
}

/* ==================== STATUS MESSAGE CARD ==================== */
.status-message-card {
    max-width: 500px;
    margin: 60px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.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, #0EA5E9, #3B82F6);
}

.status-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0F172A;
    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;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.status-btn.primary {
    background: linear-gradient(135deg, #0EA5E9, #3B82F6);
    color: white;
}

.status-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.status-btn.secondary {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.status-btn.secondary:hover {
    background: #E2E8F0;
}

/* ==================== CALENDAR MODAL ==================== */
.calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.calendar-modal.show {
    display: flex;
}

.calendar-modal-content {
    background: #ffffff;
    border-radius: 28px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@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, #0EA5E9, #3B82F6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-modal-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.calendar-modal-header h3 i {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 8px;
}

.calendar-modal-close {
    background: rgba(255, 255, 255, 0.15);
    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(255, 255, 255, 0.25);
}

.calendar-modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #FAFBFC;
    border-bottom: 1px solid #F1F5F9;
}

.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: rgba(14, 165, 233, 0.08);
    color: #0EA5E9;
}

#calendarModalMonthYear {
    font-weight: 700;
    color: #0F172A;
    font-size: 1rem;
}

.calendar-modal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    padding: 12px 8px;
    background: #ffffff;
    border-bottom: 1px solid #F1F5F9;
}

.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: #ffffff;
}

.calendar-modal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #0F172A;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
}

.calendar-modal-day:hover:not(.empty) {
    background: rgba(14, 165, 233, 0.08);
    color: #0EA5E9;
}

.calendar-modal-day.empty {
    visibility: hidden;
    cursor: default;
}

.calendar-modal-day.selected {
    background: #0EA5E9;
    color: white;
    font-weight: 700;
}

.calendar-modal-day.today {
    border: 2px solid #0EA5E9;
    font-weight: 700;
}

.calendar-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #F1F5F9;
    background: #FAFBFC;
}

.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;
    font-family: 'Inter', sans-serif;
}

.calendar-modal-today {
    background: linear-gradient(135deg, #0EA5E9, #3B82F6);
    color: white;
}

.calendar-modal-today:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.calendar-modal-cancel {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #E2E8F0;
}

.calendar-modal-cancel:hover {
    background: #E2E8F0;
}

/* ==================== AUTH MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 28px;
    width: 90%;
    max-width: 420px;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.auth-modal {
    text-align: center;
}

.auth-icon {
    font-size: 3rem;
    color: #0EA5E9;
    margin-bottom: 16px;
}

.auth-modal h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0F172A;
    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, #0EA5E9, #3B82F6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.btn-login-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-register-modal {
    background: #ffffff;
    color: #64748B;
    border: 1px solid #E2E8F0;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.btn-register-modal:hover {
    border-color: #0EA5E9;
    color: #0EA5E9;
    background: rgba(14, 165, 233, 0.04);
}

.subscribe-link {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #F1F5F9;
}

.subscribe-link a {
    color: #0EA5E9;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.subscribe-link a:hover {
    color: #3B82F6;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94A3B8;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
}

/* ==================== TOAST ==================== */
#customToast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0F172A;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.85rem;
    z-index: 10000;
    display: none;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==================== PENDING RESULTS ==================== */
.pending-results-message {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
}

.pending-icon {
    font-size: 3rem;
    color: #0EA5E9;
    margin-bottom: 16px;
}

.pending-icon i {
    font-size: 3rem;
}

.pending-text {
    font-size: 1rem;
    color: #64748B;
    font-weight: 500;
}

/* ==================== VIEW ALL ==================== */
.view-all {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid #F1F5F9;
}

.view-all a {
    color: #0EA5E9;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.view-all a:hover {
    gap: 10px;
    color: #3B82F6;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .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: 0 !important;
        margin-bottom: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .games-header {
        padding: 16px !important;
    }

    .title-section h1 {
        font-size: 1.2rem;
    }

    .selected-date {
        font-size: 0.75rem;
    }

    .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 {
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
        background: #F1F5F9;
        padding: 4px;
        border-radius: 48px;
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .date-tab {
        padding: 6px 12px !important;
        font-size: 0.65rem !important;
        white-space: nowrap !important;
        width: auto !important;
        min-width: auto !important;
        flex: 0 0 auto !important;
    }

    .calendar-wrapper {
        flex-shrink: 0 !important;
    }

    .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;
    }

    .calendar-btn span {
        display: none !important;
    }

    .calendar-btn i {
        font-size: 1rem !important;
        margin: 0 !important;
        color: #94A3B8 !important;
    }

    /* Mobile Game Row - Vertical 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 0px !important;
        border-bottom: 1px solid rgba(226, 232, 240, 0.4) !important;
    }

    .odds-game-time {
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        color: #94A3B8 !important;
        font-family: monospace !important;
        min-width: 45px !important;
        background: transparent !important;
        padding-top: 2px !important;
        flex-shrink: 0 !important;
    }

    .odds-game-teams {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    .odds-game-name {
        font-size: 0.75rem !important;
        font-weight: 500 !important;
        color: #0F172A !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
        text-align: left !important;
    }

    .odds-game-name.away {
        font-size: 0.7rem !important;
        font-weight: 400 !important;
        color: #64748B !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
        text-align: left !important;
    }

    .odds-game-tip-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    .odds-game-tip {
        padding: 4px 10px !important;
        background: #F1F5F9 !important;
        color: #64748B !important;
        border-radius: 30px !important;
        font-weight: 700 !important;
        font-size: 0.6rem !important;
        white-space: nowrap !important;
    }

    .odds-result-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .odds-result-icon .fa-check,
    .odds-result-icon .fa-times,
    .odds-result-icon i {
        font-size: 0.95rem !important;
        font-weight: 900 !important;
        -webkit-text-stroke: 0.8px #ffffff !important;
        line-height: 1 !important;
    }
    .odds-groups {
        padding: 0px;
        gap: 0px;
    }

    .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;
    }

    .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%;
    }

    .pending-results-message {
        padding: 40px 20px;
    }

    .pending-icon {
        font-size: 2.5rem;
    }

    .pending-icon i {
        font-size: 2.5rem;
    }

    .pending-text {
        font-size: 0.9rem;
    }

    /* ===== FIXED: Mobile Footer - SHOW on mobile ===== */
    .mobile-footer {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999999 !important;
    }
}

@media (min-width: 769px) {
    /* ===== FIXED: Mobile Footer - HIDE on desktop ===== */
    .mobile-footer {
        display: none !important;
    }
}


/* 5-odds.css - Analytics styles for 5 Odds page */

/* Analytics Button */
.analytics-btn {
    border: 1px solid #e2e8f0;
    color: #94A3B8;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 40px;
    background: #ffffff;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    height: 40px;
    width: 40px;
}

.analytics-btn i {
    color: #94A3B8;
    transition: color 0.2s ease;
}

.analytics-btn:hover,
.analytics-btn:active {
    background: rgba(14, 165, 233, 0.08);
}

@media (max-width: 768px) {
    .analytics-btn i {
        font-size: 1rem !important;
        margin: 0 !important;
        color: #94A3B8 !important;
    }
    .analytics-btn{
        justify-content: center !important;
        align-items: center !important;
        padding: 6px 12px !important;
        font-size: 0 !important;
        gap: 0 !important;
        min-width: 38px !important;
       
    }
    
    .analytics-btn:hover i,
    .analytics-btn:active i {
        color: #0EA5E9 !important;
    }
}

.analytics-btn:hover i,
.analytics-btn:active i {
    color: #0EA5E9;
}

/* Date Controls Right */
.date-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Analytics Modal - Desktop */
.analytics-modal .modal-content {
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.analytics-modal .modal-header {
    background: #0f172a;
    color: white;
    border-radius: 28px 28px 0 0;
    border-bottom: none;
    flex-shrink: 0;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.analytics-modal .modal-header h2 {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.2rem;
}
.analytics-modal .modal-header h2 i {
    color: #0EA5E9;
}
.analytics-modal .modal-header .modal-close {
    color: white;
    opacity: 0.7;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.analytics-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: #ffffff;
}

/* Analytics Controls */
.analytics-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

/* Month Selector */
.month-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}
.month-selector .month-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}
.month-selector .month-display {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
    min-width: 120px;
}
.month-selector .nav-btn {
    padding: 2px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}
.month-selector .nav-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.month-selector .nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Stake Display */
.stake-display {
    display: flex;
    align-items: center;
    gap: 6px;
}
.stake-display .stake-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}
.stake-display .stake-value {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.85rem;
}

/* Stats Row */
.analytics-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.analytics-stats-row .stat-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}
.analytics-stats-row .stat-item .num {
    font-weight: 800;
    font-size: 1.1rem;
}
.analytics-stats-row .stat-item .num.green { color: #10b981; }
.analytics-stats-row .stat-item .num.red { color: #ef4444; }
.stat-divider {
    color: #cbd5e1;
    font-weight: 300;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0 16px 0;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #10b981, #0EA5E9);
    transition: width 0.3s ease;
}

/* Slips Container */
.analytics-slips-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.analytics-slips-header {
    background: #f8fafc;
    padding: 8px 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.analytics-slips-header span:first-child {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}
.analytics-slips-header span:last-child {
    font-size: 0.65rem;
    color: #94a3b8;
}

#analyticsContent {
    max-height: 350px;
    overflow-y: auto;
    padding: 0 16px;
}
#analyticsContent::-webkit-scrollbar {
    width: 4px;
}
#analyticsContent::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
#analyticsContent::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Slip Row */
.slip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}
.slip-row:last-child {
    border-bottom: none;
}
.slip-row .date {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 110px;
}
.slip-row .odds {
    color: #0f172a;
    font-weight: 600;
    font-size: 0.85rem;
    flex: 1;
    margin: 0 12px;
}
.slip-row .amount {
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 80px;
    text-align: right;
}
.slip-row .amount.green { color: #10b981; }
.slip-row .amount.red { color: #ef4444; }

/* Financial Breakdown */
.financial-breakdown {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}
.financial-breakdown .row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.9rem;
}
.financial-breakdown .row .label { color: #64748b; }
.financial-breakdown .row .value { font-weight: 600; }
.financial-breakdown .row .value.green { color: #10b981; }
.financial-breakdown .row .value.red { color: #ef4444; }
.financial-breakdown .divider {
    border-top: 1px solid #e2e8f0;
    margin: 8px 0;
}
.financial-breakdown .profit-row .value {
    font-size: 1.1rem;
    font-weight: 800;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.modal-actions .action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    min-height: 44px;
}
.modal-actions .action-btn.copy {
    background: #0f172a;
    color: white;
}
.modal-actions .action-btn.copy:hover {
    background: #1e293b;
}
.modal-actions .action-btn.share {
    background: #0EA5E9;
    color: white;
}
.modal-actions .action-btn.share:hover {
    background: #3B82F6;
}

/* Analytics Footer */
.analytics-footer {
    margin-top: 12px;
    text-align: center;
    font-size: 0.65rem;
    color: #94a3b8;
}
.analytics-footer span {
    margin: 0 4px;
}

/* Loading State */
.analytics-loading {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
    font-size: 0.85rem;
}
.analytics-loading .loader {
    margin: 0 auto;
    width: 24px;
    height: 24px;
    border-width: 2px;
}
.analytics-loading p {
    margin-top: 8px;
}

/* ==================== MOBILE BOTTOM SHEET ==================== */
@media (max-width: 768px) {
    .analytics-modal {
        align-items: flex-end !important;
        justify-content: flex-end !important;
        background: rgba(0, 0, 0, 0.5) !important;
    }
    
    .analytics-modal .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 90vh !important;
        max-height: 90vh !important;
        border-radius: 24px 24px 0 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transform: none !important;
        position: relative !important;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%) !important;
        }
        to {
            transform: translateY(0) !important;
        }
    }
    
    /* Drag handle at top */
    .analytics-modal .modal-content::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #cbd5e1;
        border-radius: 4px;
        z-index: 20;
    }
    
    .analytics-modal .modal-header {
        border-radius: 0 !important;
        flex-shrink: 0;
        padding: 24px 20px 16px 20px !important;
        min-height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 10;
        padding-top: 24px !important;
    }
    
    .analytics-modal .modal-header h2 {
        font-size: 1rem;
        margin: 0;
    }
    
    .analytics-modal .modal-header .modal-close {
        font-size: 1.8rem;
        padding: 8px 12px;
        margin: -8px -12px -8px 0;
        color: white;
        opacity: 0.8;
        background: none;
        border: none;
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .analytics-modal .modal-header .modal-close:hover {
        opacity: 1;
    }
    
    .analytics-modal .modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 16px 16px 20px 16px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Modal Actions - Horizontal */
    .modal-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px;
        flex-wrap: nowrap;
        padding-top: 12px;
        border-top: 1px solid #e2e8f0;
    }
    
    .modal-actions .action-btn {
        flex: 1;
        padding: 12px 16px;
        border: none;
        border-radius: 30px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.2s;
        font-family: 'Inter', sans-serif;
        font-size: 0.85rem;
        min-height: 44px;
        min-width: 0;
        white-space: nowrap;
    }
    
    .modal-actions .action-btn.copy {
        background: #0f172a;
        color: white;
    }
    
    .modal-actions .action-btn.share {
        background: #0EA5E9;
        color: white;
    }
    
    /* Analytics Controls */
    .analytics-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
        padding: 0 2px;
    }
    
    /* Stats Row */
    .analytics-stats-row {
        gap: 6px;
        padding: 12px 14px;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 10px;
    }
    
    .analytics-stats-row .stat-item {
        font-size: 0.75rem;
        padding: 4px 0;
    }
    
    .analytics-stats-row .stat-item .num {
        font-size: 0.9rem;
        padding: 0 2px;
    }
    
    /* Slip rows */
    .slip-row {
        padding: 10px 0;
        min-height: 44px;
    }
    
    .slip-row .date {
        font-size: 0.7rem;
        min-width: 70px;
    }
    
    .slip-row .odds {
        font-size: 0.7rem;
        margin: 0 8px;
    }
    
    .slip-row .amount {
        font-size: 0.7rem;
        min-width: 60px;
        padding: 4px 0;
    }
    
    /* Financial Breakdown */
    .financial-breakdown {
        padding: 14px 16px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .financial-breakdown .row {
        font-size: 0.8rem;
        padding: 4px 0;
    }
    
    .financial-breakdown .profit-row .value {
        font-size: 1rem;
    }
    
    /* Progress bar */
    .progress-bar-container {
        margin: 8px 0 14px 0;
        height: 8px;
    }
    
    /* Month selector */
    .month-selector .nav-btn {
        padding: 4px 12px;
        font-size: 0.7rem;
        min-height: 32px;
        min-width: 32px;
    }
    
    .month-selector .month-display {
        font-size: 0.8rem;
        min-width: 90px;
    }
    
    /* Stake display */
    .stake-display .stake-value {
        font-size: 0.8rem;
    }
    
    /* Footer */
    .analytics-footer {
        margin-top: 12px;
        padding: 4px 0;
        font-size: 0.6rem;
    }
    
    /* Analytics slips container */
    .analytics-slips-container {
        border-radius: 10px;
        margin-bottom: 12px;
    }
    
    .analytics-slips-header {
        padding: 8px 14px;
    }
    
    #analyticsContent {
        padding: 0 14px;
        max-height: none;
        flex: 1;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .analytics-modal .modal-header {
        padding: 20px 16px 12px 16px !important;
        min-height: 52px;
    }
    
    .analytics-modal .modal-header h2 {
        font-size: 0.9rem;
    }
    
    .analytics-modal .modal-header .modal-close {
        font-size: 1.6rem;
        padding: 6px 10px;
        margin: -6px -10px -6px 0;
        min-width: 40px;
        min-height: 40px;
    }
    
    .analytics-modal .modal-body {
        padding: 12px 12px 16px 12px;
    }
    
    .modal-actions .action-btn {
        font-size: 0.75rem;
        padding: 10px 12px;
        min-height: 40px;
    }
    
    .analytics-stats-row {
        gap: 4px;
        padding: 10px 12px;
    }
    
    .analytics-stats-row .stat-item {
        font-size: 0.65rem;
    }
    
    .analytics-stats-row .stat-item .num {
        font-size: 0.8rem;
    }
    
    .slip-row {
        padding: 8px 0;
        min-height: 38px;
    }
    
    .slip-row .date {
        font-size: 0.6rem;
        min-width: 55px;
    }
    
    .slip-row .odds {
        font-size: 0.65rem;
        margin: 0 4px;
    }
    
    .slip-row .amount {
        font-size: 0.65rem;
        min-width: 50px;
    }
    
    .financial-breakdown {
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .financial-breakdown .row {
        font-size: 0.7rem;
        padding: 3px 0;
    }
    
    .financial-breakdown .profit-row .value {
        font-size: 0.9rem;
    }
    
    .month-selector .month-label {
        font-size: 0.7rem;
    }
    
    .month-selector .month-display {
        font-size: 0.7rem;
        min-width: 70px;
    }
    
    .month-selector .nav-btn {
        padding: 2px 8px;
        font-size: 0.6rem;
        min-height: 28px;
        min-width: 28px;
    }
    
    .analytics-slips-header {
        padding: 6px 12px;
    }
    
    .analytics-slips-header span:first-child {
        font-size: 0.65rem;
    }
    
    .analytics-slips-header span:last-child {
        font-size: 0.55rem;
    }
    
    #analyticsContent {
        padding: 0 10px;
    }
}

/* Android Chrome fix for safe areas */
@supports (padding: max(0px)) {
    .analytics-modal .modal-content {
        padding-top: max(env(safe-area-inset-top, 0px), 0px);
    }
}

/* ==================== RESPONSIVE FOOTER / NAV TOGGLE ==================== */
/* This is the FIX - placed at the VERY END to override all previous rules */
@media (max-width: 768px) {
    /* Show the mobile nav bar on screens smaller than 768px */
    .mobile-footer {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999999 !important;
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        border-top: 1px solid rgba(14, 165, 233, 0.2) !important;
        padding: 8px 12px 20px !important;
        padding-bottom: env(safe-area-inset-bottom, 20px) !important;
        justify-content: space-around !important;
        align-items: center !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4) !important;
        min-height: 64px !important;
    }

    .footer-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
        cursor: pointer !important;
        padding: 4px 8px !important;
        border-radius: 12px !important;
        flex: 1 !important;
        max-width: 70px !important;
        background: transparent !important;
        border: none !important;
        font-family: 'Inter', sans-serif !important;
        position: relative !important;
        color: #94A3B8 !important;
        z-index: 1000000 !important;
        min-height: 44px !important;
        justify-content: center !important;
    }

    .footer-nav-item i {
        font-size: 1.2rem !important;
        color: #94A3B8 !important;
        display: block !important;
    }

    .footer-nav-item span {
        font-size: 0.6rem !important;
        font-weight: 500 !important;
        color: #94A3B8 !important;
        display: block !important;
    }

    .footer-nav-item.active i,
    .footer-nav-item.active span {
        color: #0EA5E9 !important;
    }

    .footer-nav-item.active::after {
        content: '' !important;
        position: absolute !important;
        top: -4px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 6px !important;
        height: 6px !important;
        background: #0EA5E9 !important;
        border-radius: 50% !important;
    }
}

@media (min-width: 769px) {
    /* Keep it hidden on desktop screens */
    .mobile-footer {
        display: none !important;
    }
}

/* ==================== FIX: Chat Widget Overlap ==================== */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 80px !important;
        /* Forced above the .mobile-footer's 999999 layer */
        z-index: 1000002 !important; 
    }

    .chat-window {
        bottom: 100px !important;
        max-height: calc(100vh - 120px) !important;
        z-index: 1000003 !important;
    }

    .engagement-modal-container {
        /* Lifted up slightly more to avoid sitting under the nav layout bar edge */
        margin-bottom: 88px !important;
        z-index: 1000005 !important;
    }
    
    .engagement-modal {
        z-index: 1000005 !important;
    }
}
/* ==================== FIX: Analytics Modal Z-Index ==================== */
/* Ensure analytics modal appears above mobile nav and chat widget */
.analytics-modal {
    z-index: 1000002 !important;
}

.analytics-modal .modal-content {
    z-index: 1000003 !important;
    position: relative !important;
}

.analytics-modal .modal-overlay {
    z-index: 1000001 !important;
}

/* When modal is open, ensure overlay is visible */
.analytics-modal.show {
    display: flex !important;
    z-index: 1000006 !important;
}

/* Ensure modal content stays above overlay */
.analytics-modal.show .modal-content {
    z-index: 1000006 !important;
}

/* Mobile responsive fix */
@media (max-width: 768px) {
    .analytics-modal {
        z-index: 1000005 !important;
    }
    
    .analytics-modal .modal-content {
        z-index: 1000006 !important;
        position: relative !important;
    }
}
.game-prediction {
    padding: 4px 10px;
    color: #475569;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}
.simple-games-list .game-item:last-child {
    border-bottom: none !important;
}
@media (max-width: 768px) {
    .analytics-btn,
    .calendar-btn {
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
    }

    .analytics-btn i,
    .calendar-btn i {
        font-size: 1.1rem !important;
        margin: 0 !important;
        color: #94A3B8 !important;
    }

    .analytics-btn:hover i,
    .analytics-btn:active i,
    .calendar-btn:hover i,
    .calendar-btn:active i {
        color: #0EA5E9 !important;
    }
}