/* Essential betting UI — Kuball gold theme (tokens in kuball-theme.css) */
/* Intentionally do not override global --bottom-nav-height.
   Global bottom-nav spacing is handled by site-nav.css via body padding. */

body {
    background: var(--ui-bg);
    color: var(--ui-text);
}

.loading-text { text-align: center; padding: 1rem; color: var(--ui-muted); }
.error-text { color: #dc2626; text-align: center; padding: 1rem; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; color: var(--ui-text); }
.data-table thead { background: #f3f3f3; color: var(--gold-dark); text-transform: uppercase; font-size: .7rem; }
.data-table th, .data-table td { padding: .6rem .8rem; border: 1px solid var(--ui-border); }
.data-table tbody tr:nth-child(even) { background: #fafafa; }
.data-table tbody tr:hover { background: var(--gold-softer); }
.data-table .text-right { text-align: right; }
.data-table .text-center { text-align: center; }
.data-table .text-positive { color: var(--gold); }
.data-table .text-negative { color: #f87171; }

.match-list-wrapper { width: 100%; }
.match-list-full-width { display: flex; flex-direction: column; gap: 1rem; }

/* Chỉ hiển thị section đang active — lịch sử/đại lý tách khỏi trang trận đấu */
.content-section {
    display: none;
}   
.content-section.active {
    display: block;
}

.match-list-group {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-card);
}
.match-list-group-header {
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, var(--gold-softer) 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
}
.league-header-inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.league-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}
.league-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.match-list-item {
    display: block;
    padding: 1rem 1.1rem;
    border-radius: 0;
    cursor: pointer;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: none;
    transition: background .2s, box-shadow .2s;
}
.match-list-group .match-list-item:last-child { border-bottom: none; }
.match-list-item:hover {
    background: #fafbfc;
}
.match-list-item.selected {
    background: var(--gold-softer);
    box-shadow: inset 0 0 0 1px var(--gold-border);
}
.match-item-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.match-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    width: 100%;
    min-width: 0;
}
.match-bottom-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    flex-wrap: wrap;
}
.match-center-stack {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}
.match-bet-now-btn {
    width: auto;
    min-width: 120px;
}
.match-team {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1 1 0;
    min-width: 0;
}
.match-team--home { justify-content: flex-start; }
.match-team--away { justify-content: flex-end; }
.match-team-name {
    font-weight: 700;
    font-size: .9rem;
    color: #0f172a;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #f8fafc;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.team-logo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 800;
    color: #475569;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}
.match-vs-badge {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--dark);
    background: var(--gold-gradient);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.22);
}
.match-vs-badge--score {
    font-size: .58rem;
    letter-spacing: 0;
}
.match-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    color: #111111;
    line-height: 1;
}
.match-meta-row i { font-size: .72rem; opacity: 0.9; color: #111111; }
.match-meta-row--live {
    color: #dc2626;
    font-weight: 800;
    letter-spacing: .03em;
}
.match-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
    animation: match-live-pulse 1.4s ease-in-out infinite;
}
@keyframes match-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .65; transform: scale(.92); }
}
.match-meta-row--finished { color: #94a3b8; }

/* Legacy selectors kept for odds modal / older markup */
.match-teams-two-side { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; }
.match-side { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.match-side-away { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.match-side-text { min-width: 0; }
.match-center { display: flex; flex-direction: column; align-items: center; gap: .35rem; min-width: 80px; }
.match-vs { font-size: .75rem; font-weight: 800; color: #1a1200; background: linear-gradient(135deg, #f0d875, #d4af37); padding: .25rem .7rem; border-radius: 10px; box-shadow: 0 2px 8px rgba(201, 162, 39, 0.25); }
.match-time-inline { font-size: .78rem; color: #6b5d45; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.match-result-score { display: inline-flex; gap: .2rem; padding: .2rem .65rem; border-radius: 999px; background: #fdf8ec; border: 1px solid #e8dfc8; color: #9a7b0a; font-weight: 800; font-size: .9rem; }
.match-time { font-size: .75rem; color: var(--ui-muted); display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; background: #f1f5f9; border: 1px solid var(--ui-border); }
.match-league-tag { font-size: .68rem; color: var(--ui-muted); }
.match-action-btn { padding: .55rem 1rem; background: var(--gold-gradient); color: var(--dark); border: none; border-radius: 999px; font-size: .78rem; font-weight: 700; cursor: pointer; box-shadow: var(--gold-shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.match-action-btn:hover { transform: translateY(-2px); box-shadow: var(--gold-shadow); }

/* match-item-action removed (button is under VS on desktop) */

.match-bet-now-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    white-space: nowrap;
}

@media (min-width: 700px) {
    .match-bet-now-btn {
        width: auto;
        min-width: 140px;
    }
}

#odds-modal { position: fixed; inset: 0; z-index: 99999; align-items: flex-start; justify-content: center; padding: 1rem 0.75rem; background: rgba(15, 23, 42, 0.85); }
.odds-modal-content { max-width: min(98vw,640px); width: 100%; max-height: calc(100vh - 96px); background: #ffffff; border: 1px solid var(--ui-border); border-radius: 16px; padding: .85rem 1rem; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18); }
.odds-modal-body { overflow-y: auto; flex: 1; min-height: 0; max-height: calc(100vh - 176px); }
#odds-modal .limit-cell { display: none; }
#odds-modal .odds-table thead th:last-child { width: 1%; }
#odds-modal .odds-table td, #odds-modal .odds-table th { white-space: nowrap; }
#odds-modal .bet-button { min-width: 120px; }
@media (max-width: 760px) {
    #odds-modal { padding: 0.8rem 0.5rem; }
    #odds-modal .odds-modal-content { max-width: 100%; width: 100%; border-radius: 14px; }
    #odds-modal .odds-modal-body { max-height: calc(100vh - 160px); }
    #odds-modal .odds-table { font-size: 11px; }
    #odds-modal .odds-table thead th, #odds-modal .odds-table tbody td { padding: 6px 5px; }
    #odds-modal .bet-button { min-width: 100px; font-size: 11px; } 
}
.odds-match-head { margin: 0 0 .75rem; padding-bottom: .65rem; border-bottom: 1px solid var(--ui-border); flex-shrink: 0; }
.odds-match-meta { text-align: center; margin-bottom: .55rem; }
.odds-match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .65rem; }
.odds-match-team { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-width: 0; text-align: center; }
.odds-match-league { font-size: .72rem; font-weight: 600; color: var(--ui-muted); line-height: 1.35; }
.odds-match-time { font-size: .75rem; color: #475569; margin-top: .15rem; }
.odds-match-team-name { font-size: .82rem; font-weight: 600; color: var(--ui-text); line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.odds-match-team-logo { width: 42px; height: 42px; max-width: 42px; max-height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #f8fafc; border: 1px solid var(--ui-border); display: block; }
.odds-match-team-fallback { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 700; color: #475569; background: #f1f5f9; border: 1px solid var(--ui-border); flex-shrink: 0; }
.odds-match-vs { font-size: .68rem; font-weight: 800; color: var(--dark); background: var(--gold-gradient); padding: .2rem .55rem; border-radius: 8px; align-self: center; flex-shrink: 0; }
.odds-table { width: 100%; border-collapse: collapse; }
.odds-table td { padding: .45rem .65rem; font-size: 14px; color: var(--ui-text); }
.odds-table .action-cell { text-align: right; }
.odds-table thead th { padding: .5rem .65rem; text-align: left; font-size: 12px; font-weight: 700; color: #475569; text-transform: uppercase; border-bottom: 1px solid var(--ui-border); background: #f8fafc; }
.odds-table tbody tr { border-bottom: 1px solid #f1f5f9; }
.odds-table tbody tr:hover { background: #f8fafc; }
.odds-table .score-cell { font-weight: 800; color: var(--ui-text); }
.odds-table .percentage-cell { font-weight: 800; color: #16a34a; text-align: center; }
.odds-table .limit-cell { color: var(--ui-muted); text-align: center; font-size: 13px; }
.odds-table .bet-button { background: var(--gold-gradient); color: var(--dark); padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; border: none; cursor: pointer; box-shadow: var(--gold-shadow-sm); }
.odds-table .bet-button:hover { transform: translateY(-1px); box-shadow: var(--gold-shadow); }

.bet-type-card { width: min(96vw,420px); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.bet-type-card__head { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; background: #065f46; color: #fff; font-weight: 600; }
.bet-type-card__body { padding: 1rem; display: grid; gap: .65rem; }
.bet-type-option { display: flex; align-items: flex-start; gap: .75rem; width: 100%; text-align: left; border: 1px solid #e5e7eb; border-radius: 12px; padding: .75rem; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.bet-type-option:hover { border-color: var(--gold); box-shadow: var(--gold-shadow-sm); }
.bet-type-option__icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.bet-type-option--anti .bet-type-option__icon { background: var(--gold-soft); color: var(--gold-dark); }
.bet-type-option--trad .bet-type-option__icon { background: var(--gold-soft); color: var(--gold-dark); }
.bet-type-option__title { font-weight: 700; color: #111827; font-size: .92rem; }
.bet-type-option__desc { font-size: .75rem; color: #6b7280; margin-top: .15rem; }

.trad-odds-table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; font-size: 12px; }
.trad-odds-table thead th { background: #006633; color: #fff; padding: 6px 4px; text-align: center; border: 1px solid rgba(255,255,255,.1); font-size: 11px; }
.trad-odds-table tbody td { border-bottom: 1px solid #e5e7eb; padding: 4px; vertical-align: middle; }
.trad-odds-line { color: #dc2626; font-weight: 700; font-size: 11px; display: block; }
.trad-odds-val { color: #111827; font-weight: 700; font-size: 12px; }
.trad-odds-btn { display: flex; flex-direction: column; align-items: center; width: 100%; min-height: 34px; border: 1px solid #e5e7eb; border-radius: 4px; background: #fff; cursor: pointer; padding: .2rem .35rem; }
.trad-odds-btn:hover { background: var(--gold-softer); border-color: var(--gold); }
.trad-league-row td { background: #c8e6c9; color: #1b5e20; padding: 6px 10px; font-weight: 700; font-size: 12px; }
.trad-wrap { background: #f3f4f6; border-radius: 8px; overflow: hidden; }
.trad-scroll { overflow-x: auto; }

/* Modal cược truyền thống — rộng gần full màn hình */
#odds-modal.odds-modal--traditional {
    padding: .75rem;
    align-items: flex-start;
}
#odds-modal.odds-modal--traditional .odds-modal-content {
    max-width: min(98vw, 1180px);
    width: min(98vw, 1180px);
    max-height: calc(100vh - 48px);
    min-height: min(78vh, 720px);
    padding: 1rem 1.15rem 1.1rem;
}
#odds-modal.odds-modal--traditional #odds-modal-title {
    font-size: 1.05rem;
}
#odds-modal.odds-modal--traditional .odds-modal-body {
    overflow: auto;
}
#odds-modal.odds-modal--traditional .odds-match-head {
    margin-bottom: .85rem;
}
.trad-odds-wrap {
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dbe4ee;
}
.trad-league-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .85rem;
    background: linear-gradient(90deg, var(--gold-softer), #fff);
    color: var(--text);
    font-weight: 700;
    font-size: .88rem;
    border-bottom: 1px solid var(--border);
}
.trad-kickoff { font-size: .78rem; font-weight: 600; opacity: .9; white-space: nowrap; }
.trad-odds-scroll { overflow-x: auto; overflow-y: visible; }
#odds-modal.odds-modal--traditional .trad-odds-table {
    min-width: 980px;
    font-size: 13px;
}
#odds-modal.odds-modal--traditional .trad-odds-table thead th {
    padding: 8px 6px;
    font-size: 12px;
    white-space: nowrap;
}
#odds-modal.odds-modal--traditional .trad-odds-table tbody td {
    padding: 6px 5px;
}
#odds-modal.odds-modal--traditional .trad-col-time { width: 72px; min-width: 72px; text-align: center; }
#odds-modal.odds-modal--traditional .trad-col-match { width: 150px; min-width: 130px; }
#odds-modal.odds-modal--traditional .trad-market-cell { min-width: 88px; }
#odds-modal.odds-modal--traditional .trad-team {
    font-size: .82rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    padding: .15rem 0;
}
#odds-modal.odds-modal--traditional .trad-time-stack {
    font-size: .78rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}
#odds-modal.odds-modal--traditional .trad-odds-line { font-size: 12px; }
#odds-modal.odds-modal--traditional .trad-odds-val { font-size: 13px; }
#odds-modal.odds-modal--traditional .trad-odds-btn {
    min-height: 42px;
    padding: .3rem .45rem;
    border-radius: 6px;
}
#odds-modal.odds-modal--traditional .trad-handicap-pair,
#odds-modal.odds-modal--traditional .trad-1x2-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#odds-modal.odds-modal--traditional .trad-odds-cell--empty {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
}

.btn { border-radius: .375rem; font-weight: 600; cursor: pointer; }

.inv-stats { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.inv-stats-panel__head { margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--ui-border); }
.inv-stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: .75rem; }
.inv-stats-tile__accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 10px 0 0 10px; background: var(--gold-gradient); }
.inv-stats-tile--commission .inv-stats-tile__accent { background: var(--gold-gradient); }
.inv-stats-tile__icon { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold-dark); border: 1px solid var(--gold-border); }
.inv-stats-tile--commission .inv-stats-tile__icon { background: var(--gold-soft); color: var(--gold-dark); border-color: var(--gold-border); }
.inv-stats-fbadge { font-size: .65rem; font-weight: 800; }

.btn-primary { background: var(--gold-gradient); color: var(--dark); border: none; border-radius: 999px; box-shadow: var(--gold-shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--gold-shadow); }
.btn-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.inv-stats-panel { background: #fff; border: 1px solid var(--ui-border); border-radius: 12px; padding: 1.25rem; box-shadow: 0 4px 14px rgba(15,23,42,.04); }
.inv-stats-panel__title { margin: 0; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #64748b; }
.inv-stats-tile { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .65rem .9rem; padding: .95rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.inv-stats-tile__label { display: block; font-size: .6875rem; font-weight: 500; color: #64748b; text-transform: uppercase; margin-bottom: .35rem; }
.inv-stats-tile__value { display: block; font-size: 1.0625rem; font-weight: 700; color: #0f172a; }
.inv-stats--error { padding: 1.25rem; border-radius: 12px; border: 1px solid #fecaca; background: #fef2f2; }
.inv-stats-error { margin: 0; text-align: center; color: #dc2626; }

.contact-toggle-btn {
    position: fixed; right: 1rem; bottom: 1.25rem; z-index: 90;
    background: var(--gold-gradient);
    border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 1.4rem; color: var(--dark); cursor: pointer;
    box-shadow: var(--gold-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-toggle-btn:hover { transform: translateY(-2px); }
.contact-icons { position: fixed; right: 1rem; bottom: 5rem; display: flex; flex-direction: column; gap: .75rem; z-index: 90; }
.contact-icon { display: flex; justify-content: center; align-items: center; width: 45px; height: 45px; background: rgba(255,255,255,.9); border-radius: 50%; box-shadow: 0 4px 8px rgba(0,0,0,.2); opacity: 0; transform: translateY(8px); transition: all .3s; }
.contact-icons.is-open .contact-icon { animation: icon-pop .35s ease forwards; opacity: 1; transform: none; }
.contact-icon img { width: 65%; height: 65%; object-fit: contain; }
@keyframes icon-pop { 0% { opacity: 0; transform: translateY(10px) scale(.85); } 100% { opacity: 1; transform: none; } }

.support-chat-messages { scrollbar-width: thin; }
.support-chat-bubble { max-width: 88%; font-size: .875rem; line-height: 1.45; word-break: break-word; white-space: pre-wrap; }
.support-chat-bubble--user { padding: .65rem .85rem; border-radius: 1rem 1rem .35rem 1rem; background: var(--gold-gradient); color: var(--dark); font-weight: 600; }
.support-chat-bubble--staff { padding: .65rem .85rem; border-radius: 1rem 1rem 1rem .35rem; background: rgba(51,65,85,.88); color: #e2e8f0; border: 1px solid rgba(148,163,184,.22); }

.date-filter-wrapper { display: flex; gap: .4rem; overflow-x: auto; padding: .25rem 0; }
.date-filter-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.15rem 0;
    scrollbar-width: thin;
}
.date-filter-btn {
    flex-shrink: 0;
    min-width: 78px;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--ui-border);
    background: #fff;
    color: var(--ui-muted);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.date-filter-day { font-size: 0.7rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.date-filter-date { font-size: 0.65rem; margin-top: 0.12rem; opacity: 0.92; line-height: 1.2; }
.date-filter-btn:hover:not(.active):not(.date-filter-btn-active) {
    border-color: var(--gold-border);
    background: var(--gold-soft);
    color: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: var(--gold-shadow-sm);
}
.date-filter-btn.active,
.date-filter-btn.date-filter-btn-active {
    background: var(--gold-gradient);
    color: var(--dark);
    border-color: transparent;
    box-shadow: var(--gold-shadow-sm);
}
.date-filter-btn.active .date-filter-day,
.date-filter-btn.active .date-filter-date,
.date-filter-btn.date-filter-btn-active .date-filter-day,
.date-filter-btn.date-filter-btn-active .date-filter-date {
    color: var(--dark);
}
.date-filter-calendar-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    border: 1px solid var(--ui-border);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.date-filter-calendar-btn:hover {
    border-color: var(--gold-border);
    background: var(--gold-soft);
    transform: translateY(-1px);
    box-shadow: var(--gold-shadow-sm);
}

#home-section .odds-table thead th:nth-child(3),
#home-section .odds-table tbody td:nth-child(3),
#home-section .odds-table .limit-cell { display: none !important; }
#transactions-section #history-table thead th:nth-child(2),
#transactions-section #history-table tbody td:nth-child(2) { display: none; }

@media (min-width: 769px) {
    .match-list-full-width { gap: 1.25rem; }
    .match-list-group-header { padding: 0.9rem 1.25rem; }
    .league-logo { width: 36px; height: 36px; }
    .league-name { font-size: 1.05rem; }
    .match-list-item { padding: 1.35rem 1.5rem; }
    .match-teams-row { gap: 1rem; }
    .match-team { gap: 0.85rem; }
    .team-logo { width: 48px; height: 48px; }
    .team-logo.placeholder { font-size: 1rem; }
    .match-team-name { font-size: 1rem; font-weight: 800; }
    .match-vs-badge { width: 40px; height: 40px; font-size: .68rem; }
    .match-meta-row { font-size: .85rem; }
}

@media (max-width: 768px) {
    #date-filter-container .date-filter-wrapper {
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        overflow: visible;
    }
    #date-filter-container .date-filter-scroll {
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 11px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 .25rem .15rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    #date-filter-container .date-filter-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
    #date-filter-container .date-filter-btn {
        width: 70px;
        min-width: 70px;
        height: 60px;
        padding: 0;
        border-radius: 18px;
        background: #fff;
        border: 1px solid #E5E7EB;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        scroll-snap-align: center;
        transition: all .3s ease;
        touch-action: pan-x;
    }
    #date-filter-container .date-filter-day {
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
    }
    #date-filter-container .date-filter-date {
        margin-top: 4px;
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
    }
    #date-filter-container .date-filter-btn.active,
    #date-filter-container .date-filter-btn-active {
        background: var(--gold-gradient);
        border-color: transparent;
        color: var(--dark);
        box-shadow: var(--gold-shadow-sm);
        transform: scale(1.05);
    }
    #date-filter-container .date-filter-btn.active .date-filter-day,
    #date-filter-container .date-filter-btn.active .date-filter-date,
    #date-filter-container .date-filter-btn-active .date-filter-day,
    #date-filter-container .date-filter-btn-active .date-filter-date {
        color: #fff;
    }
    #date-filter-container .date-filter-calendar-btn {
        width: 55px;
        min-width: 55px;
        height: 55px;
        margin-left: 0;
        border-radius: 16px;
        background: #fff;
        border: 1px solid #E5E7EB;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
        color: #0f172a;
        scroll-snap-align: center;
        transition: all .3s ease;
    }
    #date-filter-container .date-filter-calendar-btn i { color: #0f172a; }
    #date-filter-container .date-filter-calendar-btn:hover { transform: translateY(-1px); }

    /* Disable hover highlight on touch/mobile so date swipe/select không nhảy mờ sang ngày khác */
    @media (hover: none) {
        #date-filter-container .date-filter-btn:hover:not(.active):not(.date-filter-btn-active) {
            transform: none;
            background: #fff;
            border-color: #E5E7EB;
            color: var(--ui-muted);
            box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
        }
    }

    /* Match cards — premium horizontal layout */
    .match-list-full-width { gap: 1.25rem; }
    .match-list-group {
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: .65rem;
    }
    .match-list-group-header {
        padding: 0 .25rem .35rem;
        background: transparent;
        border: none;
    }
    .league-name {
        font-size: 1rem;
        font-weight: 800;
        color: #0f172a;
        letter-spacing: -.02em;
    }
    .league-logo { width: 24px; height: 24px; }
    .match-list-item {
        border-radius: 22px;
        padding: 14px 14px;
        border: 1px solid #f1f5f9;
        box-shadow: 0 3px 14px rgba(15, 23, 42, 0.05);
        background: #fff;
    }
    .match-list-group .match-list-item:last-child { border-bottom: 1px solid #f1f5f9; }
    .match-list-item:hover {
        background: #fff;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
    }
    .match-item-main {
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }
    .match-teams-row {
        gap: 6px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        min-width: 0;
        flex: 1 1 auto;
    }
    .match-bottom-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        flex-wrap: wrap;
    }
    .match-team {
        gap: 6px;
        min-width: 0;
        flex: 1 1 0;
    }
    .match-team--home,
    .match-team--away {
        min-width: 0;
    }
    .match-team-name {
        font-size: .78rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .team-logo { width: 32px; height: 32px; }
    .match-center-stack {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex-wrap: nowrap;
        min-width: 0;
    }
    .match-vs-badge {
        width: 26px;
        height: 26px;
        font-size: .65rem;
    }
    .match-meta-row {
        font-size: .68rem;
        gap: .25rem;
        justify-content: center;
    }
    .match-bet-now-btn {
        width: 98px;
        height: 34px;
        padding: 0 .75rem;
        font-size: .72rem;
    }

    .odds-modal-content { max-width: none; width: 96vw; max-height: calc(100vh - 100px); }
    /* Prevent bottom-nav from covering the last rows while scrolling */
    .odds-modal-body {
        padding-bottom: calc(var(--bottom-nav-height, 92px) + var(--safe-bottom, 0px) + var(--vv-bottom-offset, 0px) + 12px);
        scroll-padding-bottom: calc(var(--bottom-nav-height, 92px) + var(--safe-bottom, 0px) + var(--vv-bottom-offset, 0px) + 12px);
    }
    #odds-modal.odds-modal--traditional { padding: .35rem; }
    #odds-modal.odds-modal--traditional .odds-modal-content {
        width: 98vw;
        max-width: 98vw;
        min-height: calc(100vh - 70px);
        max-height: calc(100vh - 70px);
        padding: .75rem .65rem;
    }
    #odds-modal.odds-modal--traditional .odds-modal-body {
        padding-bottom: calc(var(--bottom-nav-height, 92px) + var(--safe-bottom, 0px) + var(--vv-bottom-offset, 0px) + 12px);
        scroll-padding-bottom: calc(var(--bottom-nav-height, 92px) + var(--safe-bottom, 0px) + var(--vv-bottom-offset, 0px) + 12px);
    }
    #odds-modal.odds-modal--traditional .trad-odds-table { min-width: 860px; font-size: 12px; }
    .odds-match-team-logo, .odds-match-team-fallback { width: 36px; height: 36px; max-width: 36px; max-height: 36px; }
    .odds-match-team-name { font-size: .76rem; }
    .trad-odds-table { min-width: 680px; }
}
