:root {
    --bg0: #050B16;
    --bg1: #071429;
    --panel: #0A1B35;
    --border: rgba(255, 255, 255, .08);
    --text: #EAF2FF;
    --muted: rgba(234, 242, 255, .62);

    --gold: #F5C84C;
    --gold2: #EAB93C;
    --blue-accent: #5CA8FF;

    --r16: 16px;
    --shadow: 0 12px 28px rgba(0, 0, 0, .38);
    --shadow2: 0 10px 22px rgba(0, 0, 0, .28);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    /* Global size slightly reduced across project */
    font-size: 14px;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1000px 420px at 20% 0%, rgba(245, 200, 76, .10), transparent 55%),
        radial-gradient(900px 420px at 80% 5%, rgba(86, 160, 255, .08), transparent 50%),
        linear-gradient(145deg, var(--bg1), var(--bg0));
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
html {
    font-size: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 200, 76, .55) rgba(255, 255, 255, .06);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(245, 200, 76, .85), rgba(245, 200, 76, .45));
    border-radius: 999px;
    border: 2px solid rgba(6, 18, 37, .9);
}

/* Layout */
.topbars-full-width {
    padding: 16px 16px 0 16px;
    max-width: 100%;
}
.app {
    display: flex;
    gap: 16px;
    padding: 16px;
    max-width: 100%;
    overflow-x: hidden;
}

/* Bet slip toggle chip (used on home page, mobile) */
.betslip-toggle {
    display: none;
}

/* Register chip hidden on mobile only */
.chip-register-hide-mobile {
    display: inline-flex;
}

@media (max-width: 1024px) {
    .app {
        flex-direction: column;
        align-items: stretch;
    }
    .right-bet-panel {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        position: static;
        align-self: stretch;
    }
}

@media (max-width: 768px) {
    .chip-register-hide-mobile {
        display: none !important;
    }
    .betslip-toggle {
        display: inline-flex;
        padding: 0 10px;
    }
    .betslip-toggle span {
        display: none !important;
    }

    /* Fix logo overlapping first chip on mobile:
       make logo part of flex flow instead of absolutely centered */
    .topbar-actions .topbar-logo-link {
        position: static !important;
        left: auto !important;
        transform: none !important;
        margin: 0 auto;
    }
}

/* Sidebar (Desktop) */
.sidebar {
    width: 272px;
    background: linear-gradient(180deg, #081A33, #061225);
    border: 1px solid var(--border);
    border-radius: var(--r16);
    box-shadow: var(--shadow);
    padding: 14px;
    position: sticky;
    top: 16px;
    height: calc(100vh - 32px);
    overflow: auto;
    overflow-x: hidden;
    flex-shrink: 0;
}

/* Right panel: Bet slip & My bets (vertical tabs) */
.right-bet-panel {
    display: flex;
    flex-shrink: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--r16);
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 320px;
    max-width: 320px;
    min-height: 380px;
    position: sticky;
    top: 16px;
    align-self: flex-start;
    transition: width 0.25s ease, min-width 0.25s ease, max-width 0.25s ease;
}
.right-bet-tabs {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, .25);
    border-left: 1px solid var(--border);
}
.right-bet-tab {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 16px 12px;
    min-width: 44px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}
.right-bet-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .05);
}
.right-bet-tab.active {
    background: rgba(245, 200, 76, .15);
    color: var(--gold);
    border-left: 2px solid var(--gold);
}
.right-bet-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.right-bet-pane {
    display: none;
    flex: 1;
    flex-direction: column;
    padding: 0;
    overflow: auto;
}
.right-bet-pane.active {
    display: flex;
}
.right-bet-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.right-bet-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.04em;
}
.right-bet-title i {
    margin-right: 6px;
    color: var(--gold);
}
/* Collapsed state: only tabs strip visible */
.right-bet-panel.collapsed {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
}
.right-bet-panel.collapsed .right-bet-content {
    display: none;
}
.right-bet-body {
    padding: 20px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.right-bet-empty-wrap {
    text-align: center;
    margin: auto 0;
}
.right-bet-empty {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 12px 0;
}
.right-bet-hint {
    color: rgba(234, 242, 255, .4);
    font-size: 12px;
    margin: 0;
}

/* Bet slip selections (Back / Lay) */
.betslip-items {
    width: 100%;
    max-height: 360px;
    overflow-y: auto;
    margin-bottom: 10px;
}
.betslip-item {
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    padding: 10px 10px 8px;
    margin-bottom: 10px;
    background: rgba(6,18,37,.9);
}
.betslip-item-main {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.betslip-item-line1 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.betslip-item-team {
    font-size: 13px;
    font-weight: 700;
    color: #EAF2FF;
}
.betslip-item-market {
    font-size: 11px;
    color: rgba(234,242,255,.65);
}
.betslip-item-line2 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 11px;
}
.betslip-item-type {
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}
.betslip-item-type.type-back {
    background: rgba(37,99,235,.22);
    color: #bfdbfe;
}
.betslip-item-type.type-lay {
    background: rgba(185,28,28,.28);
    color: #fecaca;
}
.betslip-item-odds {
    color: rgba(234,242,255,.8);
}
.betslip-remove {
    border: none;
    background: transparent;
    color: rgba(234,242,255,.6);
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    align-self: flex-start;
}
.betslip-remove:hover {
    color: #fff;
}
.betslip-item-stake-row {
    margin-top: 6px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 8px;
    align-items: center;
    font-size: 11px;
}
.betslip-item-stake-row label {
    color: rgba(234,242,255,.7);
}
.betslip-stake-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(15,23,42,.9);
    border-radius: 6px;
    padding: 2px 6px;
    border: 1px solid rgba(148,163,184,.4);
}
.betslip-stake-input {
    border: none;
    background: transparent;
    color: #EAF2FF;
    width: 80px;
    font-size: 12px;
    outline: none;
}
.betslip-stake-input::-webkit-outer-spin-button,
.betslip-stake-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.betslip-stake-input[type=number] {
    -moz-appearance: textfield;
}
.betslip-stake-currency {
    font-size: 11px;
    color: rgba(234,242,255,.6);
}
.betslip-pnl {
    grid-column: 1 / -1;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.betslip-pnl span:first-child {
    color: rgba(190,242,100,.86);
}
.betslip-pnl span:last-child {
    color: rgba(248,113,113,.9);
}
.betslip-footer {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 8px;
    margin-top: 4px;
}
.betslip-footer-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}
.betslip-footer-row span:first-child {
    color: rgba(234,242,255,.7);
}
.betslip-footer-row span:last-child {
    font-weight: 700;
}
.betslip-place-btn {
    width: 100%;
    margin-top: 6px;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: linear-gradient(135deg,#22c55e,#16a34a);
    color: #fff;
    cursor: pointer;
    transition: .16s ease;
}
.betslip-place-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.betslip-place-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(34,197,94,.45);
}
.right-bet-btn-register {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 24px;
    background: #22c55e;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
}
.right-bet-btn-register:hover {
    background: #1ea34e;
    color: #fff;
}
/* (Mobile) right-bet-panel is now shown below content; no display:none here */
[dir="rtl"] .right-bet-panel {
    order: -1;
}
[dir="rtl"] .main {
    order: 0;
}
[dir="rtl"] .right-bet-tabs {
    border-left: none;
    border-right: 1px solid var(--border);
}
[dir="rtl"] .right-bet-tab.active {
    border-left: none;
    border-right: 2px solid var(--gold);
}

/* First Topbar - Actions - FIXED */
.topbar-actions {
    padding: 8px 12px !important;
    min-height: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    position: relative !important;
}

/* Logo in center of topbar */
.topbar-logo-link {
    pointer-events: auto;
    display: flex;
    align-items: center;
}
.topbar-logo {
    max-height: 40px;
    height: 40px;
    width: auto;
    object-fit: contain;
}

.left-actions-top {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.top-actions-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
}

/* Menu Button - Fixed Height */
.menu-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px;
    display: grid !important;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    color: var(--text);
    cursor: pointer;
    transition: .16s ease;
    flex-shrink: 0 !important;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, .10);
}

/* User Action Chips - Smaller */
.topbar-actions .chip {
    height: 40px !important;
    padding: 0 10px;
    gap: 8px;
    flex-shrink: 0 !important;
}

.topbar-actions .chip i {
    font-size: 16px;
}

.topbar-actions .chip.user span {
    font-size: 13px;
    font-weight: 800;
}

/* Second Topbar - Navigation */
.topbar-nav {
    padding: 8px 12px;
    min-height: auto;
    overflow: visible !important;
    position: relative;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow: visible !important;
    position: relative;
}

/* Navigation Dropdown Styles - FINAL FIX */
.nav-dropdown {
    position: relative !important;
    display: inline-block !important;
    z-index: 1;
}

.dropdown-menu {
    display: none !important;
    position: fixed !important;
    background: #0A1B35 !important;
    border: 1px solid rgba(255, 255, 255, .15) !important;
    border-radius: 12px !important;
    min-width: 180px !important;
    z-index: 999999 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8) !important;
    padding: 8px 0 !important;
    margin-top: 4px !important;
    overflow: hidden !important;
    max-height: none !important;
}

.dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dropdown-item {
    display: block !important;
    padding: 12px 20px !important;
    color: rgba(234, 242, 255, .8) !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    cursor: default !important;
    background: transparent !important;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #EAF2FF !important;
}

.dropdown-toggle.active .bi-chevron-down {
    transform: rotate(180deg) !important;
    transition: transform 0.3s ease !important;
}

/* Trophy Icon in Nav Topbar */
.icon-btn-nav {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #061225;
    border: 1px solid rgba(255, 255, 255, .10);
    color: var(--text);
    cursor: pointer;
    transition: .16s ease;
    flex-shrink: 0;
}

.icon-btn-nav:hover {
    background: rgba(255, 255, 255, .06);
    transform: translateY(-1px);
}

.icon-btn-nav i {
    color: var(--gold);
    font-size: 18px;
}

/* Scrollable Navigation */
.main-nav-scroll {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 200, 76, .3) transparent;
    padding: 4px 0;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.main-nav-scroll::-webkit-scrollbar {
    height: 4px;
}

.main-nav-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .03);
    border-radius: 4px;
}

.main-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(245, 200, 76, .3);
    border-radius: 4px;
}

.main-nav-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 200, 76, .5);
}

/* Navigation Buttons - Adjusted Size */
.main-nav-scroll .nav-btn {
    height: 40px;
    font-size: 12px;
    padding: 0 10px;
    gap: 5px;
}

.main-nav-scroll .nav-btn i {
    font-size: 9px;
}

/* Location Chip in Nav Bar */
.location-chip-nav {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #061225;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    padding: 0 10px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: .16s ease;
    flex-shrink: 0;
}

.location-chip-nav:hover {
    background: rgba(255, 255, 255, .06);
    transform: translateY(-1px);
}

.location-chip-nav i {
    color: var(--gold);
    font-size: 18px;
}

.location-chip-nav .val {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .icon-btn-nav {
        display: none;
    }

    .main-nav-scroll {
        gap: 3px;
    }

    .main-nav-scroll .nav-btn {
        font-size: 11px;
        padding: 0 8px;
    }
}

@media (max-width: 768px) {

    .topbar-actions,
    .topbar-nav {
        padding: 8px 10px !important;
    }

    .topbar-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .topbar-logo {
        max-height: 36px;
        height: 36px;
    }

    .top-actions-right {
        gap: 6px !important;
    }

    .topbar-actions .chip {
        height: 38px !important;
        padding: 0 8px;
    }

    .menu-btn {
        width: 38px !important;
        height: 38px !important;
    }

    .icon-btn-nav,
    .location-chip-nav {
        height: 38px;
    }

    .main-nav-scroll .nav-btn {
        height: 38px;
    }

    /* Wallet: show only icon in topbar; balance in dropdown */
    .topbar-actions .wallet-balance-inline {
        display: none !important;
    }
    /* Profile: hide chevron so chip = icon only, row fits and profit icon doesn't overflow */
    .topbar-actions .chip-user-chevron {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .topbar-actions .chip.user span {
        display: none;
    }

    .location-chip-nav .val {
        display: none;
    }

    .topbar-actions .chip {
        width: 38px !important;
        padding: 0 !important;
        justify-content: center;
    }

    .topbar-actions .chip i {
        margin: 0;
    }

    .top-actions-right {
        gap: 5px !important;
    }
}

@media (max-width: 400px) {

    .topbar-actions,
    .topbar-nav {
        padding: 6px 8px !important;
    }

    .topbar-actions {
        gap: 6px !important;
    }

    .topbar-logo {
        max-height: 32px;
        height: 32px;
    }

    .menu-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .topbar-actions .chip {
        width: 36px !important;
        height: 36px !important;
    }

    .main-nav-scroll .nav-btn {
        font-size: 10px;
        padding: 0 7px;
    }
}

.brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    margin-bottom: 12px;
}

.brand-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gold);
    color: #1A1400;
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: .6px;
    flex: 0 0 auto;
}

.brand-title {
    min-width: 0;
    line-height: 1.15;
}

.brand-title .name {
    font-weight: 900;
    font-size: 15px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-title .sub {
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    margin-top: 2px;
    display: block;
}

.pill-live {
    font-size: 12px;
    font-weight: 900;
    color: rgba(234, 242, 255, .9);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    padding: 7px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.pill-live .dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: #3DFFB3;
    margin-right: 7px;
    box-shadow: 0 0 0 4px rgba(61, 255, 179, .12);
    vertical-align: middle;
}

.nav-label {
    color: rgba(234, 242, 255, .55);
    font-size: 11px;
    letter-spacing: .14em;
    font-weight: 900;
    text-transform: uppercase;
    padding: 10px 10px 6px;
}

.nav-itemx {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(234, 242, 255, .92);
    font-weight: 700;
    border: 1px solid transparent;
    transition: .16s ease;
    margin: 6px 6px;
}

.nav-itemx i {
    color: rgba(245, 200, 76, .95);
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.nav-itemx:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .08);
    transform: translateY(-1px);
}

.nav-itemx.active {
    background: rgba(245, 200, 76, .12);
    border-color: rgba(245, 200, 76, .22);
}

/* Main */
.main {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

/* ================================
   TOPBAR - PROFESSIONAL STYLING
   ================================ */

.topbar {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #081A33, #07162D);
    border: 1px solid var(--border);
    border-radius: var(--r16);
    box-shadow: var(--shadow2);
}

.left-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.left-actions::-webkit-scrollbar {
    display: none;
}

/* Mobile Menu Button */
.menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: none;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    color: var(--text);
    cursor: pointer;
    transition: .16s ease;
    flex-shrink: 0;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, .10);
}

/* Trophy/Icon Button */
.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #061225;
    border: 1px solid rgba(255, 255, 255, .10);
    color: var(--text);
    cursor: pointer;
    transition: .16s ease;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, .06);
    transform: translateY(-1px);
}

.icon-btn i {
    color: var(--gold);
    font-size: 18px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.nav-dropdown {
    position: relative;
    flex-shrink: 0;
}

.nav-btn {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 12px;
    color: rgba(234, 242, 255, .90);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: .16s ease;
    white-space: nowrap;
    text-decoration: none;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .10);
}

.nav-dropdown.active .nav-btn {
    background: rgba(86, 160, 255, .18);
    border-color: rgba(86, 160, 255, .28);
    color: var(--blue-accent);
}



/* Right Actions */
.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.chip {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #061225;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    padding: 0 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: .16s ease;
}

.chip:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .15);
    transform: translateY(-1px);
}

.chip i {
    color: var(--gold);
    font-size: 18px;
}

.chip .val {
    color: var(--text);
    font-weight: 900;
}

.chip.user {
    gap: 8px;
}

.chip.user span {
    font-size: 14px;
    font-weight: 800;
}

/* Location Chip */
.location-chip {
    background: #061225;
    border: 1px solid rgba(255, 255, 255, .10);
}

.location-chip i {
    color: var(--gold);
    font-size: 20px;
}

.location-chip .val {
    font-size: 13px;
    font-weight: 800;
}

/* Cards/Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.cardx {
    background: linear-gradient(180deg, #0A1B35, #07162D);
    border: 1px solid var(--border);
    border-radius: var(--r16);
    box-shadow: var(--shadow2);
    padding: 16px;
    min-width: 0;
}

/* span helpers */
.span-3 {
    grid-column: span 3;
}

.span-4 {
    grid-column: span 4;
}

.span-8 {
    grid-column: span 8;
}

.span-12 {
    grid-column: span 12;
}

/* Section header */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.section-title {
    font-weight: 900;
    font-size: 18px;
    margin: 0;
}

.section-sub {
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
    font-size: 13px;
}

.btn-gold {
    background: var(--gold);
    color: #1A1400;
    border: none;
    font-weight: 900;
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
    transition: .16s ease;
}

.btn-gold:hover {
    background: var(--gold2);
}

.seg {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.seg .seg-btn {
    height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, .12);
    background: transparent;
    color: rgba(234, 242, 255, .86);
    cursor: pointer;
    transition: .16s ease;
}

.seg .seg-btn:hover {
    background: rgba(255, 255, 255, .04);
}

.seg .seg-btn.active {
    background: rgba(245, 200, 76, .14);
    border-color: rgba(245, 200, 76, .22);
    color: var(--text);
}

/* Live match list */
.match {
    padding: 14px;
    border-radius: 14px;
    background: #061225;
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    transition: .15s ease;
    margin-bottom: 10px;
}

.match:hover {
    border-color: rgba(245, 200, 76, .18);
    transform: translateY(-1px);
}

.match .name {
    font-weight: 900;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.match .meta {
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    margin-top: 4px;
}

.live-tag {
    font-weight: 900;
    color: #44F1A6;
    white-space: nowrap;
}

/* Odds table */
.odds-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #061225;
}

.odds-head,
.odds-row {
    display: grid;
    grid-template-columns: 2.2fr 1fr .8fr .8fr .8fr 1fr;
    gap: 10px;
    padding: 12px 14px;
    align-items: center;
}

.odds-head {
    background: rgba(255, 255, 255, .03);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: rgba(234, 242, 255, .60);
    font-weight: 900;
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: 12px;
}

.odds-row {
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding: 14px;
}

.odds-row:last-child {
    border-bottom: none;
}

.event {
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status {
    font-weight: 900;
    color: #44F1A6;
    white-space: nowrap;
}

.odd {
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #1A1400;
    background: rgba(245, 200, 76, .95);
    border: 1px solid rgba(245, 200, 76, .25);
}

.bet-btn {
    height: 36px;
    border-radius: 12px;
    font-weight: 900;
    border: 1px solid rgba(245, 200, 76, .25);
    background: rgba(245, 200, 76, .16);
    color: var(--text);
    cursor: pointer;
    transition: .16s ease;
}

.bet-btn:hover {
    background: rgba(245, 200, 76, .22);
}

/* =========================
   RESPONSIVE - PROFESSIONAL
   ========================= */

/* Large Desktops */
@media (max-width: 1400px) {
    .nav-btn {
        font-size: 12px;
        padding: 0 10px;
    }
}

/* Large tablets */
@media (max-width: 1200px) {
    .span-3 {
        grid-column: span 4;
    }

    .nav-btn {
        font-size: 11px;
        padding: 0 9px;
        gap: 4px;
    }

    .nav-btn i {
        font-size: 9px;
    }
}

/* Tablets / small laptops */
@media (max-width: 992px) {
    .sidebar {
        display: none;
    }

    .menu-btn {
        display: grid;
    }

    .app {
        padding: 12px;
        gap: 12px;
    }

    .topbar {
        padding: 10px;
    }

    .main-nav {
        display: none;
    }

    .icon-btn {
        display: none;
    }

    .span-3 {
        grid-column: span 6;
    }

    .span-4,
    .span-8 {
        grid-column: span 12;
    }

    .search {
        max-width: 100%;
    }

    .top-actions {
        gap: 8px;
    }

    .chip {
        padding: 0 10px;
    }

    .location-chip .val {
        display: none;
    }
}

/* Medium Mobile */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .left-actions {
        width: 100%;
        overflow-x: visible;
    }

    .search {
        max-width: 100%;
        min-width: 0 !important;
    }

    .top-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .chip.user span {
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .app {
        padding: 8px;
    }

    .topbar {
        padding: 10px;
    }

    .menu-btn,
    .chip,
    .search input {
        height: 46px;
    }

    .span-3 {
        grid-column: span 12;
    }

    /* Odds on mobile: hide Away + Bet */
    .odds-head,
    .odds-row {
        grid-template-columns: 2.2fr 1fr .9fr .9fr;
    }

    .odds-head div:nth-child(5),
    .odds-head div:nth-child(6),
    .odds-row div:nth-child(5),
    .odds-row button {
        display: none !important;
    }

    .stat .v {
        font-size: 24px;
    }

    .top-actions {
        gap: 6px;
    }

    .chip {
        padding: 0 10px;
        gap: 8px;
    }

    .chip.user span {
        font-size: 12px;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .chip.user span {
        display: none;
    }

    .chip i {
        font-size: 20px;
    }
}

/* EXTRA SAFETY: horizontal scroll kill */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

.app,
.main,
.topbar,
.left-actions {
    max-width: 100%;
    overflow-x: hidden !important;
}

/* =========================
   OFFCANVAS – FORCE DARK THEME
   ========================= */

.offcanvas.custom-offcanvas {
    background: linear-gradient(180deg, #081A33, #061225) !important;
    color: #EAF2FF !important;
}

.offcanvas.custom-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.offcanvas.custom-offcanvas .offcanvas-title,
.offcanvas.custom-offcanvas h5,
.offcanvas.custom-offcanvas h6 {
    color: #EAF2FF !important;
    font-weight: 900;
}

.offcanvas.custom-offcanvas .nav-itemx {
    color: rgba(234, 242, 255, .9) !important;
    background: transparent;
}

.offcanvas.custom-offcanvas .nav-itemx:hover {
    background: rgba(255, 255, 255, .06) !important;
}

.offcanvas.custom-offcanvas .nav-itemx.active {
    background: rgba(245, 200, 76, .18) !important;
    border-color: rgba(245, 200, 76, .35) !important;
    color: #EAF2FF !important;
}

.offcanvas.custom-offcanvas .nav-itemx i {
    color: #F5C84C !important;
}

.offcanvas.custom-offcanvas .nav-label {
    color: rgba(234, 242, 255, .45) !important;
}

.offcanvas.custom-offcanvas .btn-close {
    filter: invert(1);
    opacity: .9;
}

/* Mobile Menu Items (for offcanvas) */
.mobile-menu-section {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    margin-bottom: 12px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: rgba(234, 242, 255, .92);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: .16s ease;
    cursor: pointer;
    margin: 4px 0;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .10);
}

.mobile-menu-item.active {
    background: rgba(86, 160, 255, .18);
    border-color: rgba(86, 160, 255, .28);
    color: var(--blue-accent);
}

.mobile-menu-item i {
    font-size: 10px;
    color: rgba(234, 242, 255, .70);
}

/* Slide Css */


/* Promo Slider Wrapper */
.promo-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    border-radius: 16px;
    height: 280px;
}

.promo-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.promo-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #0A1B35 0%, #1a3a5a 50%, #2a4a6a 100%);
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
    gap: 30px;
}

.promo-text {
    flex: 1;
    z-index: 2;
}

.promo-title {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.promo-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 24px 0;
    font-weight: 600;
    line-height: 1.4;
}

.btn-promo {
    background: var(--gold);
    color: #1A1400;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(245, 200, 76, 0.4);
}

.btn-promo:hover {
    background: var(--gold2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 200, 76, 0.6);
}

.promo-image {
    flex: 1;
    max-width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.promo-image img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 16px 16px 0;
    opacity: 0.9;
}

/* Navigation Dots */
.promo-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--gold);
    border-color: var(--gold);
    width: 32px;
    border-radius: 6px;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: grid;
    place-items: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: 16px;
}

.next-arrow {
    right: 16px;
}

.slider-arrow i {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .promo-slider-wrapper {
        height: 240px;
    }

    .promo-content {
        padding: 0 30px;
    }

    .promo-title {
        font-size: 36px;
    }

    .promo-subtitle {
        font-size: 16px;
    }

    .promo-image {
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    .promo-slider-wrapper {
        height: 200px;
    }

    .promo-content {
        padding: 0 20px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .promo-title {
        font-size: 28px;
    }

    .promo-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .promo-image {
        display: none;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .prev-arrow {
        left: 12px;
    }

    .next-arrow {
        right: 12px;
    }
}

@media (max-width: 576px) {
    .promo-slider-wrapper {
        height: 180px;
    }

    .promo-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .promo-subtitle {
        font-size: 13px;
    }

    .btn-promo {
        padding: 10px 24px;
        font-size: 13px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 24px;
    }
}

/* Games Cards */


.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.games-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all {
    color: #ffd700;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.view-all:hover {
    gap: 0.6rem;
}

.games-slider {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.games-slider::-webkit-scrollbar {
    height: 8px;
}

.games-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.games-slider::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

.games-slider::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

.game-card {
    min-width: 200px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.game-image {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: none;
    border-radius: 25px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.game-info {
    padding: 1rem;
}

.game-info h4 {
    margin: 0 0 0.3rem 0;
    color: #fff;
    font-size: 1rem;
}

.game-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .game-card {
        min-width: 160px;
    }

    .game-image {
        height: 120px;
    }

    .games-slider {
        padding: 1rem;
    }
}

/* ==================== TOP EVENTS SECTION ==================== */
.top-events-container {
    width: 100%;
    height: 120px;
    display: flex;
    background: var(--panel);
    border-radius: var(--r16);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 0 !important;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

/* Left Side - 30% Stuck */
.top-events-sidebar {
    width: 30%;
    height: 100%;
    background: var(--bg1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
}

.top-events-sidebar h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.top-events-sidebar h2 i {
    color: var(--gold);
    font-size: 1.2rem;
}

.events-nav-controls {
    display: flex;
    gap: 0.4rem;
}

.events-nav-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.events-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.1);
}

/* Right Side - 70% Scrollable */
.top-events-content {
    width: 70%;
    height: 100%;
    overflow: hidden;
}

.top-events-slider {
    height: 100%;
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    align-items: center;
}

.top-events-slider::-webkit-scrollbar {
    height: 6px;
}

.top-events-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.top-events-slider::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
    opacity: 0.6;
}

.top-events-slider::-webkit-scrollbar-thumb:hover {
    background: var(--gold2);
    opacity: 0.8;
}

/* Event Cards */
.top-event-item {
    min-width: 240px;
    height: 90px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.top-event-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(245, 200, 76, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.top-event-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow2);
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.top-event-item:hover::before {
    opacity: 1;
}

.top-event-flag {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.top-event-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-event-details {
    flex: 1;
    z-index: 1;
}

.top-event-details h3 {
    margin: 0 0 0.3rem 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.top-event-details p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

/* Responsive for Top Events */
@media (max-width: 992px) {
    .top-events-container {
        flex-direction: column;
        height: auto;
    }

    .top-events-sidebar {
        width: 100%;
        height: auto;
        padding: 1rem 1.5rem;
        flex-direction: row;
        justify-content: space-between;
    }

    .top-events-content {
        width: 100%;
        height: 120px;
    }

    .top-events-slider {
        padding: 1rem;
    }

    .top-event-item {
        min-width: 220px;
        height: 85px;
    }
}

@media (max-width: 768px) {
    .top-events-sidebar h2 {
        font-size: 1.1rem;
    }

    .top-event-item {
        min-width: 200px;
        height: 80px;
    }

    .top-event-flag {
        width: 50px;
        height: 50px;
    }

    .events-nav-btn {
        width: 30px;
        height: 30px;
    }
}

/* Betting Matches Wrapper */
.betting-matches-wrapper {
    padding: 0 !important;
    background: var(--panel);
    border-radius: var(--r16);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* Sports Filter Bar */
.sports-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #2b5278 0%, #3d6a94 100%);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    flex: 1;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stream Toggle */
.stream-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-right: 0.5rem;
}

.stream-toggle input {
    display: none;
}

.toggle-slider {
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.stream-toggle input:checked+.toggle-slider {
    background: var(--gold);
}

.stream-toggle input:checked+.toggle-slider::before {
    left: 20px;
}

.toggle-label {
    color: var(--text);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Sport Tabs */
.sport-tab {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 8px;
    color: var(--text);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sport-tab:hover {
    background: rgba(255, 255, 255, 0.12);
}

.sport-tab.active {
    background: var(--gold);
    color: #000;
    font-weight: 600;
}

.sport-tab i {
    font-size: 1rem;
}

.more-btn {
    padding: 0.5rem 0.7rem;
}

/* Search */
.search-match {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.85rem;
    width: 200px;
}

.search-match::placeholder {
    color: var(--muted);
}

.game-controller-btn {
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-controller-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Main Tabs Bar */
.main-tabs-bar {
    display: flex;
    gap: 0;
    background: var(--bg1);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.main-tabs-bar::-webkit-scrollbar {
    height: 3px;
}

.main-tab {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.main-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    font-weight: 600;
}

/* Matches Container */
.matches-container {
    padding: 0;
}

/* Cricket themed loading state */
.cricket-loader-wrap {
    text-align: center;
    padding: 44px 20px;
    color: rgba(234, 242, 255, .72);
}

.cricket-loader-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.cricket-loader-video,
.cricket-loader-gif {
    width: 96px;
    height: 96px;
    margin: 0 auto 12px auto;
    display: block;
    object-fit: contain;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.cricket-loader-ball {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px auto;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 35% 35%, #ff8383 0%, #d13838 45%, #8a1212 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    animation: cricketBallSpin 1.1s linear infinite;
}

.cricket-loader-ball::before,
.cricket-loader-ball::after {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: rgba(255, 255, 255, .85);
    border-radius: 10px;
}

.cricket-loader-ball::before {
    left: 16px;
}

.cricket-loader-ball::after {
    right: 16px;
}

@keyframes cricketBallSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.06); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Match Group */
.match-group {
    border-bottom: 1px solid var(--border);
}

/* Match Header */
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.match-league {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}

.league-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
}

.odds-headers {
    display: flex;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.odds-headers span {
    width: 70px;
    text-align: center;
}

/* Match Row */
.match-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    gap: 1rem;
}

.match-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.match-teams {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
}

/* Exchange odds container: keep odds block tight and right-aligned */
.exchange-odds {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.exchange-odds .selection-label {
    font-size: 11px;
    color: rgba(234, 242, 255, 0.6);
}

.exchange-row {
    display: inline-flex;
    gap: 0.25rem;
}

.team-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
}

.team-name {
    min-width: 150px;
}

.live-score {
    color: var(--gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.team-score {
    color: var(--muted);
}

.odds-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.match-actions {
    display: flex;
    gap: 0.3rem;
    margin-left: auto;
}

.action-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

/* Odds Values */
.odds-values {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.odd-btn {
    width: 70px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.odd-btn:hover:not(.disabled) {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
}

.odd-btn.disabled {
    color: var(--muted);
    cursor: not-allowed;
}

.odd-btn.more-odds {
    background: rgba(245, 200, 76, 0.1);
    color: var(--gold);
    border-color: var(--gold);
}

/* Exchange: Back = blue (depth light, current dark). Lay = red (depth light, current dark). */
.odd-btn.back {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(96, 165, 250, 0.6);
    color: #bfdbfe;
    font-weight: 600;
}
.odd-btn.back:hover:not(.disabled) {
    background: rgba(37, 99, 235, 0.5);
    color: #f9fafb;
}
.odd-btn.lay {
    background: rgba(248, 113, 113, 0.25);
    border-color: rgba(248, 113, 113, 0.6);
    color: #fecaca;
    font-weight: 600;
}
.odd-btn.lay:hover:not(.disabled) {
    background: rgba(239, 68, 68, 0.5);
    color: #f9fafb;
}

/* Current odd — dark blue / dark red */
.odd-btn.back.current {
    background: rgba(29, 78, 216, 0.85);
    border-color: rgba(59, 130, 246, 1);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}
.odd-btn.lay.current {
    background: rgba(185, 28, 28, 0.85);
    border-color: rgba(239, 68, 68, 1);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4);
}

/* Depth placeholder — khali slot (—) */
.odd-btn.depth-placeholder {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(234, 242, 255, 0.5);
    opacity: 0.8;
    cursor: default;
    font-size: 0.85em;
    margin: 0 5px;
}
.odd-btn.depth-placeholder:hover {
    transform: none;
}

/* Back/Lay depth boxes — buttons ke beech margin (chipka na ho) */
.depth-boxes {
    gap: 10px !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.depth-boxes .odd-btn {
    margin-right: 8px;
    margin-bottom: 4px;
}
.depth-boxes .odd-btn:last-child {
    margin-right: 0;
}

/* Back/Lay help trigger + modal */
.back-lay-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(234, 242, 255, 0.8);
    font-size: 12px;
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.2s, color 0.2s;
}
.back-lay-help-btn:hover {
    background: rgba(245, 200, 76, 0.25);
    color: var(--gold);
}
.back-lay-help-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}
.back-lay-help-modal.show {
    visibility: visible;
    opacity: 1;
}
.back-lay-help-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}
.back-lay-help-modal__content {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow: auto;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.back-lay-help-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.back-lay-help-modal__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
}
.back-lay-help-modal__close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(234, 242, 255, 0.7);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.back-lay-help-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.back-lay-help-modal__body {
    padding: 16px;
    font-size: 13px;
    color: rgba(234, 242, 255, 0.9);
    line-height: 1.5;
}
.back-lay-help-block {
    margin-bottom: 14px;
}
.back-lay-help-block:last-of-type {
    margin-bottom: 0;
}
.back-lay-help-block__title {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 700;
    color: #93c5fd;
}
.back-lay-help-block ul {
    margin: 0;
    padding-left: 18px;
}
.back-lay-help-block li {
    margin-bottom: 4px;
}
.back-lay-help-example {
    margin: 14px 0 0 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 12px;
    color: rgba(234, 242, 255, 0.8);
}

/* Match odds two-column layout: BACK | LAY headers */
.odds-columns-header {
    display: flex;
    gap: 0;
    align-items: stretch;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.odds-columns-header .col-back {
    min-width: 120px;
    padding: 6px 8px;
    background: rgba(29, 78, 216, 0.35);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 6px 0 0 6px;
    color: #93c5fd;
    text-align: center;
}
.odds-columns-header .col-lay {
    min-width: 120px;
    padding: 6px 8px;
    background: rgba(185, 28, 28, 0.35);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-left: none;
    border-radius: 0 6px 6px 0;
    color: #fca5a5;
    text-align: center;
}

/* Index: Back / Lay column labels above odds */
.exchange-row-cols {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.exchange-row-cols .exchange-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}
.exchange-row-cols .odds-col-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.exchange-row-cols .odds-col-label.col-back {
    color: #93c5fd;
}
.exchange-row-cols .odds-col-label.col-lay {
    color: #fca5a5;
}

@media (max-width: 768px) {
    /* Index page mobile: depth off, only current odd visible */
    .matches-container .exchange-row-cols {
        width: 100%;
        gap: 6px;
        flex-wrap: nowrap;
    }
    .matches-container .exchange-row-cols .exchange-col {
        flex: 1 1 0;
        min-width: 0;
    }
    .matches-container .exchange-row-cols .exchange-col .depth-boxes {
        gap: 0 !important;
        flex-wrap: nowrap;
    }
    .matches-container .exchange-row-cols .exchange-col .depth-boxes .odd-btn:not(.current) {
        display: none !important;
    }
    .matches-container .exchange-row-cols .exchange-col .depth-boxes .odd-btn.current {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 74px;
    }
    .matches-container .exchange-row-cols .exchange-col .depth-boxes.no-current .odd-btn.depth-placeholder:last-child {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 74px;
    }
}


.expand-btn {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.expand-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

/* ========== Next match: single card – theme layout (left: time, right: odds) ========== */
.next-match-single-wrapper {
    max-width: 820px;
    margin: 1.5rem auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.next-match-league-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(90deg, var(--bg1) 0%, var(--panel) 50%, var(--bg1) 100%);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-bottom: 1px solid rgba(245, 200, 76, 0.25);
    border-radius: var(--r16) var(--r16) 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.next-match-league-header .bi-trophy-fill {
    font-size: 1.1rem;
    color: var(--gold);
}

.next-match-single-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--r16) var(--r16);
    overflow: hidden;
    box-shadow: var(--shadow2);
}

/* Left: time section */
.next-match-single-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    border-right: 1px solid var(--border);
}

.next-match-single-teams {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.next-match-single-team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.next-match-single-flag {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.next-match-single-team-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.next-match-single-vs {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.next-match-single-time-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.next-match-countdown-big {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.next-match-countdown-hms {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.next-match-countdown-labels {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: lowercase;
}

.next-match-single-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.15rem;
}

.next-match-single-time {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.next-match-single-date {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.next-match-single-event {
    font-size: 0.78rem;
    color: var(--muted);
}

.next-match-single-start-line {
    font-size: 0.78rem;
    color: rgba(234, 242, 255, 0.82);
}

.next-match-single-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(245, 200, 76, 0.18);
    color: var(--gold);
    border: 1px solid rgba(245, 200, 76, 0.4);
    border-radius: 8px;
    text-decoration: none;
    width: fit-content;
    transition: all 0.2s ease;
}

.next-match-single-cta:hover {
    background: var(--gold);
    color: #050B16;
    border-color: var(--gold);
}

/* Right: odds & markets */
.next-match-single-right {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem;
    min-width: 0;
}

.next-match-single-odds-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.next-match-single-odds-title .bi-graph-up-arrow {
    color: var(--gold);
}

.next-match-single-odds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
}

.next-single-odds-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
}

.next-single-odds-label {
    font-size: 0.68rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.next-single-odd-btn {
    width: 100%;
    padding: 0.45rem 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.next-single-odd-btn:hover {
    background: rgba(245, 200, 76, 0.15);
    border-color: rgba(245, 200, 76, 0.35);
    color: var(--gold);
}

@media (max-width: 640px) {
    .next-match-single-card {
        grid-template-columns: 1fr;
    }
    .next-match-single-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .next-match-countdown-hms {
        font-size: 1.2rem;
    }
}

/* Legacy: keep old class names in case any other template references them */
.next-matches-cards-row {
    display: block;
    padding: 0;
}

.next-matches-cards-row .match-group {
    border-bottom: none;
}

.next-card-header,
.next-card-league,
.next-card-league-name,
.next-match-badge,
.next-card-body,
.next-card-left,
.next-card-vs-block,
.next-card-team,
.next-card-team-flag,
.next-card-team-name,
.next-card-vs,
.next-match-countdown-block,
.next-match-countdown-label,
.next-match-countdown-value,
.next-match-start-time,
.next-card-cta,
.next-card-right,
.next-card-odds-title,
.next-card-odds-grid,
.next-card-odds-item,
.next-card-odds-label,
.next-card-odd-btn {
    /* Kept for backwards compatibility if old markup is ever rendered */
}

/* Legacy next-match-row (if still used) */
.next-match-row {
    flex-wrap: wrap;
    gap: 1rem;
}

.next-match-row .match-teams {
    flex: 1;
    min-width: 200px;
}

.next-match-actions {
    display: flex;
    align-items: center;
}

.next-match-actions .view-match-btn {
    min-width: 120px;
}

/* Responsive */
@media (max-width: 1200px) {

    .odds-headers,
    .odds-values {
        gap: 0.5rem;
    }

    .odd-btn,
    .odds-headers span {
        width: 60px;
    }
}

@media (max-width: 992px) {
    .sports-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-left {
        overflow-x: auto;
    }

    .match-row {
        flex-direction: column;
        align-items: stretch;
    }

    .next-match-row {
        align-items: flex-start;
    }

    .next-match-actions {
        width: 100%;
    }

    .next-match-actions .view-match-btn {
        width: 100%;
    }

    .odds-values {
        justify-content: space-between;
    }
}

/* Grid System for Accumulators */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

/* Accumulator Cards Styling - Fixed to match screenshot */
.accumulator-card {
    background: var(--bg1);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow2);
    width: 100%;
    max-width: 100%;
}

.accumulator-card.span-6 {
    grid-column: span 6;
}

.accumulator-header {
    background: rgba(10, 27, 53, 0.8);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accumulator-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-arrow {
    background: transparent;
    border: none;
    color: rgba(234, 242, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
    padding: 2px;
    transition: color 0.2s;
    line-height: 1;
}

.nav-arrow:hover {
    color: var(--text);
}

.counter {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    color: rgba(234, 242, 255, 0.6);
    font-weight: 400;
    min-width: 35px;
    text-align: center;
}

.accumulator-title {
    flex: 1;
    margin: 0 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.3px;
}

.close-btn {
    background: transparent;
    border: none;
    color: rgba(234, 242, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text);
}

.accumulator-body {
    padding: 16px;
    background: var(--bg1);
}

.accumulator-bet-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
}

.bet-time-col {
    display: flex;
    flex-direction: column;
    min-width: 42px;
    gap: 1px;
    padding-top: 2px;
}

.bet-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.bet-time {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.3;
}

.bet-teams-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-flag-sm {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 1px;
    flex-shrink: 0;
}

.team-name {
    font-size: 12px;
    color: var(--text);
    line-height: 1.4;
}

.bet-odds-col {
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--text);
    min-width: 50px;
    text-align: center;
    font-size: 13px;
    align-self: center;
}

.bet-league-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0 12px 52px;
    font-size: 10px;
    color: var(--blue-accent);
    line-height: 1.4;
    border-bottom: 1px solid var(--border);
}

.bet-league-info i {
    font-size: 11px;
    flex-shrink: 0;
}

.league-id {
    flex: 1;
    color: var(--blue-accent);
}

.bet-type-label {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.accumulator-summary {
    margin-top: 8px;
    padding-top: 12px;
}

.bonus-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
}

.bonus-label {
    color: var(--blue-accent);
    font-weight: 400;
}

.bonus-value {
    font-weight: 700;
    color: var(--text);
    font-size: 13px;
}

.total-odds-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}

.total-label {
    font-size: 13px;
    color: var(--text);
    font-weight: 400;
}

.total-odds {
    font-size: 17px;
    color: var(--text);
    font-weight: 700;
}

.add-betslip-btn {
    width: 100%;
    background: linear-gradient(135deg, #1fa855 0%, #1a9249 100%);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.add-betslip-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #1fa855 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(31, 168, 85, 0.3);
}

.add-betslip-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .accumulator-card.span-6 {
        grid-column: span 12 !important;
    }

    .accumulator-bet-item {
        flex-wrap: wrap;
    }

    .bet-time-col {
        min-width: 38px;
    }

    .team-name {
        font-size: 11px;
    }

    .bet-odds-col {
        padding: 5px 10px;
        font-size: 12px;
    }

    .bet-league-info {
        padding-left: 48px;
    }
}

@media (max-width: 1024px) {
    .accumulator-card.span-6 {
        grid-column: span 12 !important;
    }
}