﻿/* ===== BASE STYLES ===== */
* {
    font-family: 'Inter', system-ui, sans-serif;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
    min-height: 100vh;
    margin: 0;
    padding-top: 200px;
}

.d-desktop{
    display: block;
}

.d-mobile{
    display: none;
}

/* ===== FIXED HEADER ===== */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    z-index: 1090;
    border-bottom: 3px solid #77c16a;
}

/* Countdown Section */
.countdown-full {
    background: #0a1a2a;
    padding: 0.5rem;
    border-bottom: 2px solid #77c16a;
}

.countdown-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.countdown-numbers {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.countdown-item {
    text-align: center;
}

    .countdown-item h4 {
        margin: 0;
        font-size: 2.2rem;
        font-weight: 800;
        color: #77c16a;
        line-height: 1.2;
        text-shadow: 0 2px 5px rgba(119,193,106,0.3);
    }

    .countdown-item small {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #a0b8cc;
        font-weight: 500;
    }

/* Navigation Section */
.nav-section {
    background: white;
    padding: 0.6rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

    .nav-container div.d-flex a,
    .nav-links a {
        text-decoration: none;
        color: #1e2f3d;
        font-weight: 600;
        padding: 0.5rem 1rem;
        border-radius: 40px;
        background: #f0f5fa;
        transition: all 0.2s;
    }

        .nav-container div.d-flex a:hover,
        .nav-links a:hover {
            background: #77c16a;
            color: white;
        }

        .nav-container div.d-flex a.active,
        .nav-links a.active {
            background: #77c16a;
            color: white;
        }

/* Date Navigation */
.date-nav-wrapper {
    flex: 0 0 auto;
    width: 100%;
}

.hover-scrollbar {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition: all 0.3s ease;
}

    .hover-scrollbar::-webkit-scrollbar {
        display: none;
        height: 4px;
    }

    .hover-scrollbar:hover {
        scrollbar-width: thin;
        scrollbar-color: #77c16a #f1f1f1;
    }

        .hover-scrollbar:hover::-webkit-scrollbar {
            display: block;
        }

.date-nav-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    flex-wrap: nowrap;
}

    .date-nav-list li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        background: #f0f5fa;
        color: #1e2f3d;
        padding: 0.5rem 1.2rem;
        border-radius: 5px;
        font-weight: 600;
        transition: all 0.2s;
        border: 1px solid transparent;
        white-space: nowrap;
    }

        .date-nav-list li a:hover {
            background: #e2eaf3;
            border-color: #77c16a;
        }

        .date-nav-list li a.active {
            background: #77c16a;
            color: white;
        }

/* ===== MAIN CONTENT ===== */
.container-custom {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#matchCardsContainer {
    margin-top: 10px;
}

/* ===== MATCH CARDS ===== */
.match-card {
    border: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .match-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 30px 50px -15px rgba(0,0,0,0.25);
    }

    .match-card .card-header {
        background: #1a2c3e;
        color: white;
        border-bottom: 3px solid #77c16a;
        padding: 0.3rem 1.5rem;
    }

        .match-card .card-header .d-flex {
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

.date-badge {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: #e0e7ff;
}

.view-link {
    color: #77c16a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.35rem 1.2rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    transition: all 0.15s;
    border: 1px solid rgba(119,193,106,0.3);
}

    .view-link:hover {
        background: #77c16a;
        color: white;
        border-color: #77c16a;
    }

/* Team Columns */
.team-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e2f3d;
    margin-bottom: 0.25rem;
}

.team-flag {
    /*width: 48px;
    height: 48px;
    background: #eef3f9;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 50%;*/
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0 0.25rem;
    width: 48px;
    height: 32px;
    border-radius: 5px;
    border: 2px solid #e1e1e1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

    .team-flag img {
        width: 38px;
        height: 27px;
        object-fit: cover;
    }

.team-score {
    font-size: 1rem;
    font-weight: 700;
    color: #1e2f3d;
    line-height: 1.2;
}

.time-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

    .time-divider h2 {
        font-size: 2rem;
        font-weight: 600;
        color: #1e2f3d;
        background: #f0f5fa;
        padding: 0.5rem 1.2rem;
        border-radius: 10px;
        display: inline-block;
        border: 1px solid rgba(119,193,106,0.3);
        margin-bottom: 0.5rem;
    }

.match-info {
    margin-top: 0;
    padding-top: 5px;
    border-top: 1px solid #e9edf4;
}

/* Bet Buttons */
.bet {
    background: #77c16a;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

    .bet:hover:not(.bet-btn-disabled) {
        background: #5fa856;
        transform: translateY(-2px);
    }

.bet-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Countdown Timer */
.countdown-timer {
    font-size: 0.7rem;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 8px;
}

    .countdown-timer small {
        font-size: 0.65rem;
        color: #6c757d;
    }

.countdown-display {
    font-weight: 700;
    font-family: monospace;
    font-size: 0.75rem;
}

/* ===== PROFILE ICON ===== */
#profileIcon {
    width: 35px;
    height: 35px;
    text-align: center;
    padding: 6px 10px;
    color: #fff;
    background-color: #77c16a !important;
}

#language {
    width: 35px;
    height: 35px;
    text-align: center;
    padding: 6px;
    color: #fff;
}

/* Date Navigation Active States */
.date-nav-list li a.active {
    background: #77c16a;
    color: white;
    border-color: #77c16a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(119, 193, 106, 0.3);
}

    .date-nav-list li a.active h2,
    .date-nav-list li a.active span {
        color: white;
    }

.date-nav-list li a.today {
    border: 2px solid #77c16a;
    background: #f0f9ec;
}

    .date-nav-list li a.today h2,
    .date-nav-list li a.today span {
        color: #77c16a;
    }

/* Smooth transition for match cards */
#matchCardsContainer .col-12 {
    transition: all 0.3s ease;
}

/* No matches message */
#noMatchesMessage {
    animation: fadeInUp 0.3s ease;
}

/* ===== MOBILE FOOTER ===== */
.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1090;
    display: none;
    border-top: 2px solid #77c16a;
}

    .mobile-footer .footer-btn {
        flex: 1;
        text-align: center;
        padding: 12px;
        background: #77c16a;
        color: white;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.2s;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

        .mobile-footer .footer-btn:hover {
            background: #5fa856;
        }

/* ===== MODALS ===== */
.modal-group,
.login-modal,
.register-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-group-content,
.login-modal-content,
.register-modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 25px;
    border-radius: 8px;
    width: 95%;
    max-width: 450px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

.modal-group-content {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #77c16a;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

    .modal-header h2 {
        color: #1a2c3e;
        font-weight: 700;
        margin: 0;
        font-size: 1.3rem;
    }

.close-modal,
.close-login,
.close-register,
.close-sidebar {
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

    .close-modal:hover,
    .close-login:hover,
    .close-register:hover,
    .close-sidebar:hover {
        color: #77c16a;
    }

/* ===== PROFILE SIDEBAR ===== */
.profile-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0,0,0,0.1);
    z-index: 1100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .profile-sidebar.open {
        right: 0;
    }

.profile-sidebar-header {
    background: #1a2c3e;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

    .profile-sidebar-header h5 {
        font-size: 1rem;
    }

.profile-sidebar .profile-content {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
}

.profile-sidebar-footer {
    flex-shrink: 0;
    background: white;
    padding: 15px 20px;
    border-top: 1px solid #e9edf4;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1099;
    display: none;
}

    .sidebar-overlay.active {
        display: block;
    }

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    min-width: 280px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GROUP TABLE ===== */
.group-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

    .group-table th,
    .group-table td {
        padding: 8px 4px;
        text-align: center;
    }

        .group-table td img{
            width: 100%;
        }

        .group-table th:first-child,
        .group-table td:first-child {
            text-align: left;
        }

.team-flag-small {
    width: 38px;
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
}

.highlight-team {
    background-color: #d4edda !important;
    border-left: 3px solid #77c16a;
}

/* ===== KNOCKOUT PREDICTION STYLES ===== */
.knockout-prediction-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #ffc107;
    transition: all 0.2s;
}

    .knockout-prediction-item:hover {
        transform: translateX(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.knockout-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 10px 0;
    padding: 0px;
    background: #f8f9fa;
    border-radius: 16px;
}

.knockout-team {
    text-align: center;
    flex: 1;
}

    .knockout-team img {
        width: 25px;
        height: 25px;
        border-radius: 50%;
        margin-bottom: 8px;
        border: 3px solid #77c16a;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.2s;
    }

        .knockout-team img:hover {
            transform: scale(1.05);
        }

    .knockout-team span {
        display: block;
        font-weight: 600;
        font-size: 0.9rem;
    }

.knockout-vs {
    font-size: 1.8rem;
    font-weight: bold;
    color: #77c16a;
    padding: 0 15px;
}

.knockout-round {
    font-size: 0.65rem;
    color: #ffc107;
    font-weight: 500;
    margin-top: 5px;
}

.profile-section-title.knockout-title {
    border-bottom-color: #ffc107;
    margin-top: 20px;
}

    .profile-section-title.knockout-title i {
        color: #ffc107;
    }

/* ===== SCORE PREDICTION STYLES ===== */
.score-prediction-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #17a2b8;
    transition: all 0.2s;
}

    .score-prediction-item:hover {
        transform: translateX(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.score-prediction-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.score-prediction-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

    .score-prediction-team img {
        width: 25px;
        height: 25px;
        border-radius: 50%;
    }

.score-prediction-vs {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 600;
}

.score-prediction-scores {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9edf4;
}

    .score-prediction-scores span {
        font-weight: 700;
        font-size: 0.9rem;
    }

    .score-prediction-scores .home-score {
        color: #77c16a;
    }

    .score-prediction-scores .away-score {
        color: #dc3545;
    }

.profile-section-title.score-title {
    border-bottom-color: #17a2b8;
    margin-top: 20px;
}

    .profile-section-title.score-title i {
        color: #17a2b8;
    }

/* ===== FORM STYLES ===== */
.input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

    .input-group input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
    }

.btn-verify {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

    .btn-verify:disabled {
        background: #adb5bd;
        cursor: not-allowed;
    }

/* ===== UTILITY CLASSES ===== */
.empty-bets,
.loading-bets {
    text-align: center;
    padding: 30px 15px;
    color: #6c757d;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .logout-btn:hover {
        background: #c82333;
    }

/* ===== AVATAR STACK STYLES ===== */
.avatar-stack-advanced {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .avatar-stack-advanced .avatar-list {
        display: flex;
        position: relative;
    }

    .avatar-stack-advanced .avatar-item {
        position: relative;
        width: 48px;
        height: 32px;
        border-radius: 3px;
        border: 0px solid white;
        overflow: hidden;
        background: #f0f5fa;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
        transition: all 0.2s ease;
        margin-right:18px;
    }

        /* Show only first 3 avatars visible by default */
        .avatar-stack-advanced .avatar-item:nth-child(1) {
            z-index: 5;
            transform: translateX(0);
        }

        .avatar-stack-advanced .avatar-item:nth-child(2) {
            margin-left: -12px;
            z-index: 4;
        }

        .avatar-stack-advanced .avatar-item:nth-child(3) {
            margin-left: -12px;
            z-index: 3;
        }

        /* Hide avatars beyond 3 by default */
        .avatar-stack-advanced .avatar-item:nth-child(n+4) {
            display: none;
        }

    /* More indicator */
    .avatar-stack-advanced .more-indicator {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #e9ecef;
        border: 2px solid white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: 600;
        color: #6c757d;
        margin-left: -12px;
        cursor: pointer;
        transition: all 0.2s;
        z-index: 2;
    }

        .avatar-stack-advanced .more-indicator:hover {
            background: #77c16a;
            color: white;
            transform: scale(1.05);
        }

    /* Hover effect - show all avatars */
    .avatar-stack-advanced:hover .avatar-item:nth-child(n+4) {
        display: flex;
        margin-left: -12px;
    }

    .avatar-stack-advanced:hover .more-indicator {
        display: none;
    }

    .avatar-stack-advanced .avatar-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .avatar-stack-advanced .count-text {
        font-size: 0.85rem;
        color: #6c757d;
        margin-left: 8px;
    }

/* ===== PREDICTION BADGE STYLES ===== */
.team-flag-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.bet-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    z-index: 10;
}

    .bet-badge:hover {
        transform: scale(1.1);
    }

.home-badge {
    background: #77c16a;
    color: white;
}

.draw-badge {
    background: #ffc107;
    color: #1e2f3d;
}

.away-badge {
    background: #dc3545;
    color: white;
}

.time-divider-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    cursor: pointer;
}

    .time-divider-wrapper .time-divider {
        transition: all 0.2s ease;
    }

    .time-divider-wrapper:hover .time-divider {
        transform: scale(1.02);
        background: #f8f9fa;
    }

.prediction-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffc107;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 10;
}

    .prediction-badge:hover {
        transform: scale(1.1);
    }

    .prediction-badge img {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        object-fit: cover;
    }

    /* For predictions that have been made */
    .prediction-badge.has-prediction {
        background: #77c16a;
        width: 24px;
        height: 24px;
    }

        .prediction-badge.has-prediction img {
            width: 16px;
            height: 16px;
        }

    /* For predictions that haven't been made yet */
    .prediction-badge.no-prediction {
        background: #ffc107;
    }

    .prediction-badge.checked {
        background: #77c16a;
    }

    .prediction-badge.pending {
        background: #ffc107;
    }

/* ===== BALANCE CARD ===== */
.balance-card {
    background: linear-gradient(135deg, #77c16a 0%, #5fa856 100%);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

    .balance-card h4 {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 10px;
        opacity: 0.9;
    }

    .balance-card .balance-amount {
        font-size: 2rem;
        font-weight: 800;
        margin: 0;
    }

/* ===== BET ITEMS ===== */
.bet-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #77c16a;
}

.bet-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

    .bet-team img {
        width: 48px;
        height: 32px;
        border-radius: 3px;
    }

.bet-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9edf4;
    font-size: 0.75rem;
}

.bet-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

    .bet-status.pending {
        background: #fff3cd;
        color: #856404;
    }

    .bet-status.won {
        background: #d4edda;
        color: #155724;
    }

    .bet-status.lost {
        background: #f8d7da;
        color: #721c24;
    }

.delete-bet {
    color: #dc3545;
    cursor: pointer;
    padding: 4px;
}

/* ===== INFORMATION SECTION ===== */
.info-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-top: 15px;
}

    .info-section h5 {
        font-size: 0.9rem;
        margin-bottom: 8px;
        border-left: 3px solid #77c16a;
        padding-left: 8px;
    }

    .info-section p {
        font-size: 0.75rem;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .info-section .prize-item {
        display: flex;
        justify-content: space-between;
        font-size: 0.75rem;
        padding: 3px 0;
    }

/* ===== SCORE MODAL ===== */
.score-modal {
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.score-modal-content {
    background-color: white;
    margin: 100px auto;
    padding: 25px;
    border-radius: 20px;
    width: 95%;
    max-width: 450px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

.score-input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.score-input {
    flex: 1;
    text-align: center;
}

    .score-input label {
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
    }

    .score-input input {
        text-align: center;
        font-size: 1.2rem;
        padding: 10px;
    }

.score-vs {
    font-size: 1.2rem;
    font-weight: 700;
    color: #77c16a;
}

.score-prediction-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

    .score-prediction-buttons button {
        flex: 1;
        padding: 10px;
    }

.clickable-score {
    cursor: pointer;
    transition: all 0.2s;
}

    .clickable-score:hover {
        transform: scale(1.05);
        color: #77c16a;
    }

.score-bet-placed {
    opacity: 0.6;
    cursor: not-allowed;
}

#MainContent_matchCardsContainer {
    margin-top: 1rem;
}

/* Language Sidebar Styles */
.language-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .language-overlay.show {
        opacity: 1;
    }

.language-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .language-sidebar.open {
        right: 0;
    }

.language-sidebar-header {
    background: #77c16a;
    color: white;
    padding: 5px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

    .language-sidebar-header h3 {
        margin: 0;
        font-size: 1rem;
        font-weight: 400;
    }

        .language-sidebar-header h3 i {
            margin-right: 8px;
        }

.close-language {
    font-size: 28px;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

    .close-language:hover {
        color: #ffc107;
        transform: scale(1.1);
    }

.language-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
    position: relative;
}

    .language-item:hover {
        background: #e9ecef;
        transform: translateX(5px);
    }

    .language-item.selected {
        background: #d4edda;
        border-color: #77c16a;
    }

    .language-item img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #ddd;
    }

    .language-item span {
        font-size: 1rem;
        font-weight: 500;
        flex: 1;
    }

    .language-item .check-icon {
        color: #77c16a;
        font-size: 1.2rem;
        opacity: 0;
        transition: opacity 0.2s;
    }

    .language-item.selected .check-icon {
        opacity: 1;
    }

.language-sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    text-align: center;
}

/* Language Button */
#languageBtn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.2s;
}

    #languageBtn:hover {
        background-color: #ddd !important;
    }

#currentLanguageFlag {
    transition: transform 0.3s ease;
}

    #currentLanguageFlag.flag-changing {
        transform: scale(1.2);
    }

/* Language Notification */
.language-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #77c16a;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10002;
    animation: slideInUp 0.3s ease;
    font-weight: 500;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .language-sidebar {
        max-width: 100%;
    }

    .language-item {
        padding: 12px;
    }

        .language-item img {
            width: 35px;
            height: 35px;
        }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .container-custom {
        margin: 1.5rem auto;
    }

    .team-score {
        font-size: 2.2rem;
    }

    .time-divider h2 {
        font-size: 1.5rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
        padding-top: 180px;
    }

    .desktop-profile {
        display: none !important;
    }

    .mobile-footer {
        display: flex;
    }

    .container-custom {
        margin: 1rem auto;
    }

    .countdown-item h4 {
        font-size: 1.3rem;
    }

    .countdown-item small {
        font-size: 0.65rem;
    }

    .date-nav-list li a {
        padding: 0.4rem 0.8rem;
        font-size: 10px;
        min-width: 48px;
    }

    .match-card .card-header {
        padding: 0.7rem 1rem;
    }

    .date-badge {
        font-size: 0.75rem;
    }

    .view-link {
        font-size: 0.7rem;
        padding: 0.2rem 0.8rem;
    }

    .team-name {
        font-size: 0.9rem;
    }

    .team-flag {
        width: 50px;
        height: 35px;
    }

        .team-flag img {
            width: 30px;
            height: 30px;
        }

    .team-score {
        font-size: 1.6rem;
    }

    .time-divider h2 {
        font-size: 1.1rem;
        padding: 0.3rem 0.7rem;
    }

    .bet {
        font-size: 0.8rem;
        padding: 0.4rem !important;
    }

    .profile-sidebar {
        width: 100%;
        right: -100%;
    }

    .modal-group-content,
    .login-modal-content,
    .register-modal-content {
        margin: 30px auto;
        padding: 8px 20px;
    }

    /* Mobile footer enhancements */
    .mobile-footer .footer-btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* Knockout teams responsive */
    .knockout-teams {
        gap: 15px;
    }

    .knockout-team img {
        width: 50px;
        height: 50px;
    }

    .knockout-vs {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 65px;
    }

    .mobile-footer {
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        border-top: 3px solid #77c16a;
    }

        .mobile-footer .active {
            color: #77c16a !important;
        }

        .mobile-footer a:active,
        .mobile-footer button:active {
            background-color: #f0f5fa;
            transform: scale(0.98);
        }

        .mobile-footer a,
        .mobile-footer button {
            transition: all 0.2s ease;
        }

        .mobile-footer .active i,
        .mobile-footer .active span {
            color: #77c16a;
            font-weight: 600;
        }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .countdown-item h4 {
        font-size: 1rem !important;
    }

    .countdown-item small {
        font-size: 0.55rem;
    }

    .date-nav-list li a {
        padding: 0.3rem 0.6rem;
        font-size: 9px;
        min-width: 42px;
    }

        .date-nav-list li a span {
            font-size: 8px;
        }

    .nav-container div.d-flex a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 5px !important;
    }

    .match-card .card-header {
        padding: 0.5rem 0.8rem;
    }

    .date-badge {
        font-size: 0.7rem;
    }

    .view-link {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }

    .team-name {
        font-size: 0.8rem;
    }

    .team-flag {
        width: 50px;
        height: 35px;
    }

        .team-flag img {
            width: 25px;
            height: 25px;
        }

    .team-score {
        font-size: 1.3rem;
    }

    .time-divider h2 {
        font-size: 0.9rem;
        padding: 0.2rem 0.5rem;
    }

    .bet {
        font-size: 0.7rem;
        padding: 0.35rem !important;
    }

    .balance-card .balance-amount {
        font-size: 1.5rem;
    }

    .balance-card h4 {
        font-size: 0.75rem;
    }

    .bet-item {
        padding: 10px;
    }

    .bet-team {
        font-size: 0.8rem;
    }

    .modal-group-content,
    .login-modal-content,
    .register-modal-content {
        margin: 20px auto;
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .mobile-footer .footer-btn {
        padding: 8px;
        font-size: 0.8rem;
    }

        .mobile-footer .footer-btn i {
            font-size: 1.2rem;
        }

    /* Knockout teams responsive */
    .knockout-teams {
        gap: 10px;
        flex-direction: column;
    }

    .knockout-team img {
        width: 60px;
        height: 60px;
    }

    .knockout-vs {
        font-size: 1rem;
        padding: 5px 0;
    }
}

@media (max-width: 480px) {
    .nav-section{
        padding: 0;
    }

    .d-desktop {
        display: none !important;
    }

    .d-mobile {
        display: block !important;
    }

    .winners-card{
        margin-top:20px;
    }

    .fixed-header div.nav-section {
    }

    #mobileFooter span.small {
        font-size: 10px;
    }

    #mobileFooterBtn {
        font-size: 10px;
    }

    #mobileFooter i {
        font-size: 18px;
    }

    #MainContent_matchCardsContainer {
        margin-top: 0;
    }

        #MainContent_matchCardsContainer > div:first-child {
            margin-top: 0px;
        }

    #dateNavList li a span {
        height: 10px !important;
    }

    #MainContent_matchCardsContainer .match-card {
        border-radius: 8px;
    }

    .countdown-numbers {
        gap: 0.5rem;
    }

    .date-nav-list li a {
        padding: 0 0 5px;
        font-size: 8px;
        min-width: 38px;
        border-radius: 5px;
    }

    .team-col {
        padding: 0 2px;
    }

    .team-name {
        font-size: 0.7rem;
    }

    .team-score {
        font-size: 1.1rem;
    }

    .time-divider h2 {
        font-size: 0.8rem;
        padding: 0.15rem 0.4rem;
    }

    .bet {
        font-size: 0.65rem;
        padding: 0.3rem !important;
    }

    .view-link {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
    }
}
