* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-white: #ffffff;
    --bg-soft: #f8f9fc;
    --card-white: #ffffff;
    --primary-red: #dc2626;
    --primary-red-dark: #b91c1c;
    --primary-red-light: #fee2e2;
    --accent-red: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --border-subtle: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --gradient-red: linear-gradient(115deg, #dc2626, #ef4444);
    --glow-red: 0 0 12px rgba(220, 38, 38, 0.15);
}

body {
    font-family: "Inter", "Outfit", system-ui, -apple-system, sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-primary);
    line-height: 1.5;
    scroll-behavior: smooth;
}

.row {
    display: flex;
}

.col {
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 8px;
}

.glass-header {
    backdrop-filter: blur(12px);
    background: hsla(0, 0%, 100%, 0.95);
    border-bottom: 1px solid rgba(220, 38, 38, 0.15);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.logo-image {
    width: 100%;
    max-width: 179px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-image img {
        width: 100%;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }

.home-btn {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-red);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

    .home-btn:hover {
        background: var(--primary-red);
        color: #fff;
        border-color: var(--primary-red);
        transform: translateY(-2px);
    }

.user-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 8px 20px;
    border-radius: 60px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.vip-chip {
    background: var(--gradient-red);
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
}

.action-links {
    display: flex;
    gap: 20px;
}

    .action-links a {
        color: var(--text-secondary);
        transition: 0.2s;
        font-size: 0.9rem;
        text-decoration: none;
        white-space: nowrap;
    }

        .action-links a:hover {
            color: var(--primary-red);
        }

.tnc-btn {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--primary-red);
    padding: 6px 14px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-red);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

    .tnc-btn span {
        list-style: 1;
    }

    .tnc-btn:hover {
        background: var(--primary-red);
        color: #fff;
    }

.lang-switch {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-red);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0);
    border: 0;
}

.hero-banner {
    border-radius: 1rem;
    margin: 10px 0 8px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center 30%;
    box-shadow: var(--shadow-xl);
    min-height: 470px;
    min-height: 47vmin;
    width: 100%;
    background-image: url("../image/new_banner.png");
}

@media (max-width: 768px) {
    .hero-banner {
        background-image: url("../image/new_banner.png");
        min-height: 140px;
        margin: 20px 0 24px;
        border-radius: 0.2rem;
        background-position: center;
    }
}

.section-card {
    margin-bottom: 6px;
    transition: all 0.2s;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

    .section-title h2 {
        font-size: 1.6rem;
        font-weight: 700;
        background: linear-gradient(135deg, #1f2937, #dc2626);
        -webkit-background-clip: text;
        background-clip: text;
        color: rgba(0, 0, 0, 0);
    }

.deposit-quota-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.deposit-tiers-col {
    flex: 2;
    min-width: 240px;
    background: var(--card-white);
    border-radius: 28px;
    padding: 15px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .deposit-tiers-col:hover {
        border-color: rgba(220, 38, 38, 0.3);
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }

.quota-col {
    flex: 1.2;
    min-width: 280px;
}

.deposit-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 6px;
}

.tier-item {
    background: var(--bg-soft);
    padding: 20px 12px;
    border-radius: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-subtle);
}

    .tier-item:hover {
        transform: translateY(-4px);
        border-color: var(--primary-red);
    }

.tier-highlight {
    background: #e02d2d;
    border: 2px solid var(--primary-red);
    box-shadow: var(--glow-red);
    color: #fff;
}

    .tier-highlight .tier-amount,
    .tier-highlight .tier-count {
        color: #fff;
    }

.tier-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-red);
}

.tier-count {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 0.85rem;
}

.quota-card {
    background: var(--card-white);
    border-radius: 28px;
    padding: 15px;
    border: 1px solid var(--border-subtle);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s;
}

.quota-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    margin: 5px;
}

.quota-left-img {
    flex-shrink: 0;
    width: 64px;
    text-align: center;
}

    .quota-left-img img {
        width: 100%;
        max-width: 60px;
        height: auto;
        display: block;
        margin: 0 auto;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
    }

.quota-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
    letter-spacing: 1px;
    background: rgba(220, 38, 38, 0.08);
    padding: 7px 23px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .quota-number span {
        display: inline-block;
    }

.quota-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 8px 0 20px 0;
    background: linear-gradient(115deg, #1f2937, #4b5563);
    -webkit-background-clip: text;
    background-clip: text;
    color: rgba(0, 0, 0, 0);
    letter-spacing: -0.3px;
    width: 100%;
    text-align: left;
}

.quota-btn {
    background: var(--gradient-red);
    border: none;
    padding: 9px 24px;
    border-radius: 40px;
    font-weight: 700;
    color: #fff;
    margin: 8px 0 16px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: 0.2s;
    box-shadow: var(--shadow-sm);
}

    .quota-btn:hover {
        transform: translateY(-2px);
        filter: brightness(1.02);
        box-shadow: var(--shadow-md);
    }

.quota-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(220, 38, 38, 0.05);
    padding: 8px 12px;
    border-radius: 30px;
    text-align: center;
    width: 100%;
}

@media (max-width: 550px) {
    .quota-card {
        padding: 20px;
    }

    .quota-top-row {
        gap: 12px;
        margin-bottom: 12px;
    }

    .quota-left-img {
        width: 52px;
    }

        .quota-left-img img {
            max-width: 48px;
        }

    .quota-number {
        font-size: 2rem;
    }

    .quota-title {
        font-size: 1.3rem;
        margin: 4px 0 12px;
    }
}

.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 8px;
}

.stat-card {
    background: #fff;
    border-radius: 24px;
    padding: 18px 20px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
}

    .stat-card .row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

        .stat-card .row .stat-icon img {
            width: 50px;
            height: 50px;
            -o-object-fit: cover;
            object-fit: cover;
            -o-object-position: center;
            object-position: center;
            filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.3));
        }

    .stat-card:hover {
        transform: translateY(-3px);
        border-color: var(--primary-red);
        box-shadow: var(--shadow-md);
    }

.stat-icon {
    font-size: 2.2rem;
    color: var(--primary-red);
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    margin-top: 4px;
}

.stat-value-label {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-link {
    font-size: 0.75rem;
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(220, 38, 38, 0.05);
    padding: 6px 12px;
    border-radius: 30px;
    transition: 0.2s;
    cursor: pointer;
    margin-top: auto;
    width: auto;
    align-self: center;
}

    .stat-link:hover {
        background: var(--primary-red);
        color: #fff;
    }

.deposit-link {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-red-dark);
}

#matchesWrap {
    background: #fff;
    border-radius: 24px;
    padding: 18px 20px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 700px) {
    .stats-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 14px 16px;
        gap: 12px;
    }

    .stat-icon {
        font-size: 1.8rem;
        width: 48px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-value-label {
        gap: 6px;
        margin-bottom: 10px;
    }
}

#matchListContainer {
    max-height: 292.537px;
    overflow: auto;
}

.match-item {
    background: var(--bg-soft);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border-subtle);
    width: 97%;
    margin-left: 10px;
}
}

    .match-item .col {
        gap: 20px;
    }

.rank-list li.active {
    background: rgba(255, 141, 141, 0.281);
}

.match-teams-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

.team-logo-img {
    width: 54px;
    height: 54px;
    -o-object-fit: contain;
    object-fit: contain;
    padding: 6px;
}

.team-name-short {
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 6px;
    text-align: center;
}

.vs-image {
    width: 65px;
    height: 30px;
}

.vs-img-svg {
    width: 100%;
    height: auto;
}

.match-time {
    font-size: 0.8rem;
    color: black;
    /*margin-top: 6px;*/
    text-align: center;
    margin-bottom: 5px;
    font-weight: bold;
}

.btn-predict {
    background: var(--primary-red);
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    color: #fff;
    transition: 0.2s;
    white-space: nowrap;
}

    .btn-predict:hover {
        background: var(--primary-red-dark);
        transform: translateY(-1px);
    }

.prize-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin: 8px 0;
}

.prize-card {
    background: #fff;
    border-radius: 28px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

    .prize-card:hover {
        transform: translateY(-6px);
        border-color: var(--primary-red);
        box-shadow: var(--shadow-lg);
    }

.prize-icon {
    font-size: 2.2rem;
    color: var(--primary-red);
    margin-bottom: 12px;
}

    .prize-icon img {
        width: 60px;
    }

.prize-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.prize-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    margin: 10px 0;
}

.reward-tier-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.reward-tier-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-subtle);
    padding: 8px 0;
    font-size: 0.95rem;
}

    .reward-tier-item strong {
        color: var(--primary-red);
    }

.grand-points-note {
    background: #fff3e0;
    border-radius: 24px;
    padding: 12px;
    margin: 16px 0 8px;
    font-size: 0.85rem;
    color: #b45309;
}

.leaderboard-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.leaderboard-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    padding: 6px 0;
}

.champion-highlight {
    font-weight: 800;
    color: var(--primary-red);
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.rank_main_block {
    background: #fff;
    border-radius: 24px;
    padding: 18px 20px;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.rank-list {
    list-style: none;
    overflow: auto;
    max-height: 328.132px;
}

    .rank-list li {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-subtle);
        font-size: 0.9rem;
    }

.rules-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(247, 247, 247, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
    padding: 20px 12px;
    backdrop-filter: none;
}

    .modal-overlay.active {
        visibility: visible;
        opacity: 1;
    }

.prediction-modal {
    width: 390px;
    max-width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 0 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    text-align: left;
    overflow: hidden;
}

.top_header {
    display: flex;
    height: 58px;
    line-height: 58px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    border-bottom: 1px solid #f3f3f3;
    position: relative;
    padding: 0 20px;
}

    .top_header p {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.modal-vs-header {
    margin: 14px;
    padding: 24px 18px 12px;
    border: 1px solid #f1f1f1;
    border-radius: 14px 14px 0 0;
    border-bottom: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.modal-team {
    width: 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-team-logo {
    width: 76px;
    height: 76px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0);
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

    .modal-team-logo img {
        width: 100%;
        height: 100%;
        -o-object-fit: contain;
        object-fit: contain;
    }

.modal-team-name,
.modal-team span,
.modal-team p {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #222;
    line-height: 1.25;
}

.modal-vs {
    margin-top: 26px;
    font-size: 28px;
    font-weight: 800;
    color: #111;
    background: rgba(0, 0, 0, 0);
    padding: 0;
    border-radius: 0;
}

.modal-match-time {
    margin: -14px 14px 0;
    padding: 0 18px 20px;
    text-align: center;
    font-size: 18px;
    color: #555;
    border-left: 1px solid #f1f1f1;
    border-right: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
    border-radius: 0 0 14px 14px;
}

    .modal-match-time i {
        display: none;
    }

.guess-score-area,
.guess-total-area {
    padding: 0 22px;
}

.guess-score-area {
    padding-top: 26px;
    border-top: 1px solid #eee;
}

.guess-label {
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

    .guess-label i {
        display: none;
    }

.score-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 28px;
}

.score-box {
    flex: 1;
}

    .score-box label {
        display: none;
    }

    .score-box input,
    .total-goals-input input {
        width: 100%;
        border: 1px solid #eee;
        border-radius: 8px;
        background: #fff;
        outline: none;
        text-align: center;
        font-size: 18px;
        font-weight: 700;
        color: #222;
        font-weight: 400;
        padding: 12px 16px;
        box-shadow: none;
    }

.score-colon {
    color: #d7d7d7;
    font-size: 18px;
    font-weight: 600;
}

.guess-total-area {
    margin-bottom: 0;
}

.total-goals-input {
    margin: 0 0 28px;
}

    .total-goals-input input {
        max-width: none;
    }

.modal-note {
    margin: 0 22px 22px;
    padding: 0;
    background: rgba(0, 0, 0, 0);
    border-radius: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

    .modal-note i {
        display: none;
    }

    .modal-note::before {
        content: "* ";
    }

.submit-predict-btn {
    display: block;
    width: calc(100% - 44px);
    height: 58px;
    margin: 0 22px 20px;
    border: none;
    border-radius: 8px;
    background: #e91717;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(233, 23, 23, 0.25);
    transition: 0.2s ease;
}

    .submit-predict-btn:hover {
        background: #d91414;
    }

    .submit-predict-btn:active {
        transform: scale(0.98);
    }

.close-modal {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .rules-double {
        grid-template-columns: 1fr;
    }

    .header-inner {
        justify-content: center;
        text-align: center;
        gap: 12px;
    }

    .logo-area {
        justify-content: center;
        width: 100%;
    }

    .action-links a,
    .home-btn,
    .user-badge {
        white-space: nowrap;
    }

    .user-badge {
        padding: 6px 12px;
        gap: 8px;
        font-size: 0.8rem;
    }

    .home-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }
}

.promo-rules {
    width: 100%;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 10px;
}

.rule-card {
    position: relative;
    min-height: 220px;
    padding: 24px;
    border: 1px solid #d8e7f3;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
    box-shadow: 0 6px 16px rgba(40, 92, 145, 0.08);
    opacity: 0;
    transform: translateY(18px);
}

    .rule-card.is-visible {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.45s ease, transform 0.45s ease;
    }

    .rule-card h3 {
        margin: 0 0 18px;
        font-size: 24px;
        font-weight: 800;
        color: #273b59;
    }

.score-content {
    display: grid;
    grid-template-columns: 150px 1fr 145px;
    gap: 10px;
    align-items: stretch;
}

.goal-box,
.target-box {
    padding: 16px 12px;
    border-radius: 12px;
    background: #f7fbff;
    border: 1px solid #e4eff7;
    text-align: center;
}

    .goal-box p,
    .target-box p {
        margin: 0 0 12px;
        font-size: 15px;
        font-weight: 700;
        color: #394b65;
    }

    .goal-box strong,
    .target-box strong {
        display: block;
        margin-top: 12px;
        font-size: 28px;
        line-height: 1;
        font-weight: 900;
        color: #12b37c;
    }

.goal-icon {
    width: 88px;
    height: 75px;
    margin: 0 auto;
    position: relative;
    border-radius: 4px;
}

    .goal-icon img {
        width: 100%;
    }

.score-list {
    padding: 14px 18px;
    border-radius: 12px;
    background: #f7fbff;
    border: 1px solid #e4eff7;
}

    .score-list p {
        margin: 0 0 10px;
        text-align: center;
        font-size: 15px;
        font-weight: 700;
        color: #394b65;
    }

    .score-list ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .score-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 31px;
        padding: 0 4px;
        font-size: 15px;
        border-bottom: 1px dashed #d6e5f0;
    }

        .score-list li:last-child {
            border-bottom: 0;
        }

        .score-list li span {
            color: #27364f;
            font-weight: 600;
        }

        .score-list li b {
            color: #16b873;
            font-weight: 900;
        }

.target-icon {
    font-size: 60px;
    line-height: 1.1;
    filter: drop-shadow(0 4px 4px rgba(201, 55, 55, 0.18));
}

.activity-card {
    display: flex;
    overflow: hidden;
}

    .activity-card .text {
        position: relative;
        z-index: 2;
        width: 68%;
    }

    .activity-card ol {
        margin: 0;
        padding-left: 20px;
        font-size: 14px;
        line-height: 1.65;
        font-weight: 600;
        color: #31435f;
    }

    .activity-card img {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
        -o-object-position: center;
        object-position: center;
    }

@media (max-width: 900px) {
    .promo-rules {
        grid-template-columns: 1fr;
    }

    .score-content {
        grid-template-columns: 1fr;
    }

    .activity-card .text {
        width: 100%;
    }
}

.reward-section {
    width: 100%;
    margin: 0 auto 8px;
    display: grid;
    grid-template-columns: 1.45fr 0.62fr 1fr;
    gap: 5px;
}

.reward-card {
    padding: 10px 20px;
    border: 1px solid #deebf4;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    box-shadow: 0 6px 16px rgba(47, 96, 145, 0.08);
    opacity: 0;
    transform: translateY(18px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .reward-card.is-visible {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.45s ease, transform 0.45s ease;
    }

    .reward-card h3 {
        margin: 0;
        font-size: 22px;
        line-height: 1.2;
        font-weight: 900;
        color: #293b58;
    }

.weekly-card h3 {
    margin-bottom: 16px;
}

    .weekly-card h3 span {
        font-size: 18px;
        color: #63738b;
    }

.weekly-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.weekly-item {
    padding: 14px 8px 12px;
    text-align: center;
    border: 1px solid #e5eef6;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(244, 248, 252, 0.8);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rp-disabled-click {
    opacity: 0.5;
    filter: grayscale(100%);
    pointer-events: none;
    cursor: not-allowed;
}

.weekly-item.is-hovered {
    transform: translateY(-4px);
    box-shadow: 0 10px 18px rgba(40, 92, 145, 0.14);
}

    .weekly-item strong {
        display: block;
        font-size: 22px;
        font-weight: 900;
        color: #2c2f38;
    }

    .weekly-item .red-packet {
        width: 100%;
        font-size: 47px;
        line-height: 1;
        filter: drop-shadow(0 5px 5px rgba(210, 42, 42, 0.16));
        display: grid;
        place-items: center;
    }

        .weekly-item .red-packet img {
            width: 50%;
        }

    .weekly-item b {
        display: block;
        font-size: 21px;
        font-weight: 900;
        color: #df3d48;
    }

.total-card {
    text-align: center;
}

    .total-card h3 {
        margin-bottom: 3px;
    }

    .total-card p {
        margin: 0 0 10px;
        font-size: 18px;
        font-weight: 800;
        color: #313f56;
    }

        .total-card p span {
            color: #e9404e;
            font-size: 24px;
            font-size: 14px;
            font-weight: 900;
        }

    .total-card small {
        display: block;
        margin-top: 8px;
        font-size: 15px;
        font-weight: 800;
        color: #4b5669;
    }

.big-red-packet {
    width: 100%;
    margin: 0 auto;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 16px 16px 22px 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

    .big-red-packet.is-hovered {
        transform: translateY(-4px);
    }

    .big-red-packet img {
        width: 100%;
        max-width: 120px;
    }

.champion-card {
    position: relative;
    overflow: hidden;
}

    .champion-card h3 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin-bottom: 7px;
        text-align: center;
    }

        .champion-card h3 span {
            width: 10px;
            height: 2px;
            background: #7c8795;
        }

    .champion-card > p {
        margin: 0 0 14px;
        text-align: center;
        font-size: 17px;
        font-weight: 800;
    }

        .champion-card > p b {
            color: #e33e4c;
            font-size: 21px;
        }

    .champion-card em {
        display: block;
        margin-top: 10px;
        text-align: right;
        font-style: normal;
        font-size: 15px;
        font-weight: 800;
        color: #454f61;
    }

.champion-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cup {
    font-size: 102px;
    line-height: 1;
    filter: drop-shadow(0 8px 8px rgba(164, 112, 28, 0.2));
}

    .cup img {
        width: 100%;
        max-width: 120px;
    }

.champion-prize {
    min-height: 78px;
    padding: 12px 18px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fffdf5 0%, #fff1cc 100%);
    border: 1px solid #f4dfaa;
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

    .champion-prize.is-hovered {
        transform: translateY(-4px);
        box-shadow: 0 10px 18px rgba(40, 92, 145, 0.14);
    }

    .champion-prize small {
        display: block;
        margin-bottom: 3px;
        font-size: 16px;
        font-weight: 800;
        color: #3f4b5d;
    }

    .champion-prize strong {
        display: block;
        font-size: 31px;
        line-height: 1.1;
        font-weight: 900;
        color: #d64237;
    }

.cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

    .cover .rule-card {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95%;
        max-width: 800px;
        opacity: 1;
    }

        .cover .rule-card .close {
            position: absolute;
            z-index: 3;
            top: 10px;
            right: 10px;
            font-size: 18px;
            cursor: pointer;
        }

.tnc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
}

    .tnc-modal-overlay.active {
        visibility: visible;
        opacity: 1;
    }

.tnc-modal-content {
    background: #fff;
    border-radius: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px 24px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

    .tnc-modal-content::-webkit-scrollbar {
        display: none;
    }

.tnc-modal-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .tnc-modal-content h3 {
        font-size: 1.8rem;
        font-weight: 800;
        margin-bottom: 20px;
        color: var(--primary-red);
        text-align: center;
    }

    .tnc-modal-content h4 {
        font-size: 1.2rem;
        font-weight: 700;
        margin: 20px 0 10px;
        color: var(--text-primary);
    }

    .tnc-modal-content p,
    .tnc-modal-content ul {
        margin-bottom: 12px;
        line-height: 1.6;
        color: var(--text-secondary);
    }

    .tnc-modal-content ul {
        margin-left: 20px;
    }

    .tnc-modal-content li {
        margin-bottom: 8px;
    }

.close-tnc-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

    .close-tnc-modal:hover {
        color: var(--primary-red);
    }

@media (max-width: 980px) {
    .reward-section {
        grid-template-columns: 1fr;
    }

    .weekly-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .champion-content {
        grid-template-columns: 110px 1fr;
    }
}

@media (max-width: 520px) {
    .weekly-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .champion-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .champion-card em {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .tnc-btn span {
        display: none;
    }

    .tnc-btn i {
        margin: 0;
    }
}

.modal-cover {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(247, 247, 247, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
    padding: 20px 12px;
    backdrop-filter: none;
}

    .modal-cover.active {
        visibility: visible;
        opacity: 1;
    }

#tablePopup {
    width: 95%;
    max-width: 560px;
}

.table-popup {
    width: 560px;
    max-width: 100%;
    max-height: 91vh;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    /*transform: translateY(12px);*/
    transition: 0.2s ease;
}

.popup-overlay.active .table-popup {
    transform: translateY(0);
}

.popup-header {
    position: relative;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}

    .popup-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #222;
    }

.popup-close {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.popup-table-wrap {
    padding: 16px;
    max-height: 52vh;
    overflow: auto;
}

.prediction-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    color: #222;
}

    .prediction-table thead {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .prediction-table th {
        padding: 13px 10px;
        background: #f8f8f8;
        color: #555;
        font-size: 13px;
        font-weight: 700;
        text-align: center;
        border-bottom: 1px solid #eee;
        white-space: nowrap;
    }

        .prediction-table th:first-child {
            border-radius: 10px 0 0 10px;
            text-align: left;
        }

        .prediction-table th:last-child {
            border-radius: 0 10px 10px 0;
        }

    .prediction-table td {
        padding: 14px 10px;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
        vertical-align: middle;
    }

        .prediction-table td:first-child {
            text-align: left;
        }

    .prediction-table tbody tr:last-child td {
        border-bottom: none;
    }

    .prediction-table tbody tr:hover {
        background: #fafafa;
    }

.match-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #222;
}

    .match-cell strong {
        font-size: 12px;
        color: #e91717;
    }

.prediction-table small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

    .status-badge.pending {
        background: #fff7e6;
        color: #b45309;
    }

    .status-badge.success {
        background: #ecfdf3;
        color: #15803d;
    }

    .status-badge.failed {
        background: #fef2f2;
        color: #dc2626;
    }

.popup-main-btn {
    display: block;
    width: calc(100% - 32px);
    height: 52px;
    margin: 0 16px 18px;
    border: none;
    border-radius: 10px;
    background: #e91717;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

    .popup-main-btn:hover {
        background: #d91414;
    }

@media (max-width: 480px) {
    .table-popup {
        width: 100%;
        border-radius: 16px;
    }

    .popup-table-wrap {
        padding: 12px;
    }
}

.popup_next {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(247, 247, 247, 0.96);
    visibility: hidden;
    opacity: 0;
    transition: 0.2s ease;
}

    .popup_next .table-popup {
        width: 760px;
        max-width: 100%;
        max-height: 91vh;
        background: #fff;
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
        transform: translateY(12px);
        transition: 0.2s ease;
    }

    .popup_next .popup-overlay.active .table-popup {
        transform: translateY(0);
    }

    .popup_next .popup-header {
        position: relative;
        height: 62px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
    }

        .popup_next .popup-header h3 {
            margin: 0;
            font-size: 20px;
            font-weight: 800;
            color: #111827;
        }

    .popup_next .popup-close {
        position: absolute;
        right: 18px;
        top: 50%;
        width: 34px;
        height: 34px;
        transform: translateY(-50%);
        border: none;
        border-radius: 50%;
        background: #f5f5f5;
        color: #333;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .popup_next .popup-table-wrap {
        padding: 18px;
        max-height: 65vh;
        overflow: auto;
    }

    .popup_next .popup-data-table {
        display: none;
    }

        .popup_next .popup-data-table.active {
            display: table;
        }

    .popup_next .points-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 14px;
        color: #1f2937;
    }

        .popup_next .points-table thead {
            position: sticky;
            top: 0;
            z-index: 2;
        }

        .popup_next .points-table th {
            padding: 14px 12px;
            background: #fff5f5;
            color: #dc2626;
            font-size: 13px;
            font-weight: 800;
            text-align: center;
            border-bottom: 1px solid #fee2e2;
            white-space: nowrap;
        }

            .popup_next .points-table th:first-child {
                border-radius: 12px 0 0 12px;
            }

            .popup_next .points-table th:last-child {
                border-radius: 0 12px 12px 0;
            }

        .popup_next .points-table td {
            padding: 15px 12px;
            text-align: center;
            border-bottom: 1px solid #f1f1f1;
            vertical-align: middle;
            white-space: nowrap;
        }

        .popup_next .points-table tbody tr:hover {
            background: #fafafa;
        }

        .popup_next .points-table tbody tr:last-child td {
            border-bottom: none;
        }

    .popup_next .points-plus {
        color: #dc2626;
        font-weight: 800;
    }

    .popup_next .points-zero {
        color: #9ca3af;
        font-weight: 700;
    }

    .popup_next .status-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 68px;
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 800;
    }

        .popup_next .status-badge.pending {
            background: #fff7ed;
            color: #c2410c;
        }

        .popup_next .status-badge.success {
            background: #ecfdf3;
            color: #15803d;
        }

        .popup_next .status-badge.failed {
            background: #fef2f2;
            color: #dc2626;
        }

@media (max-width: 640px) {
    .popup_next .table-popup {
        width: 100%;
        border-radius: 18px;
    }

    .popup_next .popup-table-wrap {
        padding: 14px;
    }

    .popup_next .points-table {
        min-width: 620px;
    }
}

.popup_next.active {
    visibility: visible;
    opacity: 1;
}

.lang-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

    .lang-popup .lang-popup-content {
        position: relative;
        width: 260px;
        padding: 20px 18px 18px;
        border-radius: 16px;
        background: hsla(0, 0%, 100%, 0.95);
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
        animation: popupFade 0.25s ease;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .lang-popup .close {
        position: absolute;
        top: 10px;
        right: 12px;
        font-size: 18px;
        color: #888;
        cursor: pointer;
        transition: 0.2s;
    }

        .lang-popup .close:hover {
            color: #e11d48;
            transform: rotate(90deg);
        }

    .lang-popup .lang-option {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 15px;
        font-weight: 500;
        color: #333;
    }

        .lang-popup .lang-option img {
            width: 26px;
            border-radius: 3px;
        }

        .lang-popup .lang-option:hover {
            background: #f3f4f6;
            transform: translateY(-2px);
        }

        .lang-popup .lang-option:active {
            transform: scale(0.97);
        }

    .lang-popup.active {
        display: flex;
    }

@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-switch {
    cursor: pointer;
}

    .lang-switch img {
        width: 28px;
    }

.popup_filter {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 10px;
}

    .popup_filter .textbox_block {
        width: 98%;
        gap: 8px;
        margin: 0px auto;
        align-items: center;
        max-width: 300px;
    }

        .popup_filter .textbox_block .textbox_title {
            font-size: 12px;
            font-weight: 700;
            color: #58595b;
            min-width: 70px;
        }

            .popup_filter .textbox_block .textbox_title span {
                color: #ed1c24;
                margin-right: 2px;
            }

    .popup_filter .textbox_wrap {
        width: 70%;
        gap: 3px;
        position: relative;
    }

        .popup_filter .textbox_wrap input {
            width: 100%;
            background: #f9f9f9;
            border: 1px solid #cdcdcd;
            box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
            color: #58595b;
            font-weight: 700;
            font-size: 12px;
            border-radius: 8px;
            min-width: 80px;
            height: 40px;
            outline: none;
        }

            .popup_filter .textbox_wrap input::-webkit-calendar-picker-indicator {
                opacity: 0;
                width: 100%;
            }

        .popup_filter .textbox_wrap span {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 12px;
            font-size: 12px;
            font-weight: 600;
            color: gray !important;
        }

        .popup_filter .textbox_wrap .textbox {
            width: 100%;
            background: #fff;
            border: 1px solid #cdcdcd;
            box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
            color: #ed1c24;
            border-radius: 10px;
            outline: 0;
            font-size: 12px;
            font-weight: 700;
        }

        .popup_filter .textbox_wrap span {
            color: #ed1c24;
        }

        .popup_filter .textbox_wrap i {
            position: absolute;
            top: 50%;
            right: 20px;
            transform: translateY(-50%);
            color: #ed1c24;
            cursor: pointer;
            pointer-events: none;
        }

        .popup_filter .textbox_wrap select {
            width: 100%;
            background: #fff;
            padding: 14px 20px;
            border: 1px solid #cdcdcd;
            box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
            color: #ed1c24;
            border-radius: 10px;
            outline: 0;
            font-size: 12px;
            font-weight: 700;
        }

    .popup_filter .submit-btn {
        background: var(--gradient-red);
        border: none;
        padding: 9px 24px;
        border-radius: 40px;
        font-weight: 700;
        color: #fff;
        margin: 8px 0 16px;
        cursor: pointer;
        width: -moz-fit-content;
        width: fit-content;
        font-size: 14px;
        transition: 0.2s;
        box-shadow: var(--shadow-sm);
        margin: 0 auto;
    }

        .popup_filter .submit-btn:hover {
            transform: translateY(-10px);
        }

        .popup_filter .submit-btn:active {
            transform: scale(0.97);
        }

/*Prediction Modal Select Popup*/
.score-display-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    min-width: 80px;
    user-select: none;
}

    .score-display-box:hover {
        background: #ffe8e8;
    }

.score-pick-btn {
    padding: 12px;
    background: #f5f5f5;
    border: 1.5px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

    .score-pick-btn:hover {
        background: #e9242c;
        color: #fff;
        border-color: #e9242c;
    }

    .score-pick-btn.selected {
        background: #e9242c;
        color: #fff;
        border-color: #e9242c;
    }

/*Pagination*/
.popup-container {
    display: flex;
    flex-direction: column;
    height: 80vh;
    overflow: hidden;
}

.rank-list-content {
    flex: 1;
    overflow-y: auto;
}

#rankPagination {
    flex-shrink: 0;
    background: #fff;
}

/*Nickname popup*/
.nickname-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nickname-popup-content {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

    .nickname-popup-content h2 {
        margin: 0;
        font-size: 20px;
    }

    .nickname-popup-content input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 16px;
        box-sizing: border-box;
    }

.nickname-submit-btn {
    background: #DC2626;
    color: #fff;
}