/* 
 * SportOdds Premium Design System - Landing Page
 * Consolidated styling for a high-end, responsive sportsbook experience.
 */

:root {
    --brand-primary: #09ff8d;
    --brand-danger: #ef4444;
    --bg-main: #060c1f;
    --bg-darker: #080c16;
    --bg-card: #111a2d;
    --text-muted: #a4adc9;
    --sidebar-left-width: 260px;
    --sidebar-right-width: 320px;
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skeleton Loader */
.sk-sidebar-item {
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: sk-shimmer 1.5s infinite;
}

@keyframes sk-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}


.landing-page-main {
    background: var(--bg-main);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* ── Layout Structures (Desktop) ── */
@media (min-width: 992px) {
    .lp-desktop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--sidebar-left-width);
        height: 100vh;
        background: var(--bg-darker);
        padding-top: 75px;
        border-right: 1px solid rgba(255, 255, 255, .05);
        z-index: 1000;
        overflow-y: auto;
        scrollbar-width: none;
        transition: var(--transition-standard);
    }

    .lp-desktop-sidebar::-webkit-scrollbar {
        width: 0;
    }

    .lp-desktop-betslip {
        position: fixed;
        top: 0;
        right: 0;
        width: var(--sidebar-right-width);
        height: 100vh;
        background: var(--bg-darker);
        padding-top: 75px;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }

    .lp-center-col {
        margin-left: var(--sidebar-left-width);
        margin-right: var(--sidebar-right-width);
        width: calc(100% - var(--sidebar-left-width) - var(--sidebar-right-width));
        flex: 0 0 auto;
        padding: 20px;
        /* Added top padding */
        min-height: 100vh;
    }

    .footer__section {
        margin-left: var(--sidebar-left-width);
        margin-right: var(--sidebar-right-width);
        width: calc(100% - var(--sidebar-left-width) - var(--sidebar-right-width));
    }
}

@media (max-width: 991px) {
    .lp-center-col {
        width: 100%;
        margin: 0;
        padding: 0;
        /* Ensure content isn't hidden behind sticky headers */
        padding-top: 10px;
    }
}

/* ── Sidebar Components ── */
.sports-menu-list {
    padding: 10px 12px;
}

.sports-menu-list .menu-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    margin: 4px 0;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--transition-standard);
    position: relative;
}

.sports-menu-list .menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transform: translateX(4px);
}

.sports-menu-list .menu-item.active {
    background: rgba(9, 255, 141, 0.08);
    color: var(--brand-primary);
}

.sports-menu-list .menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3.5px;
    background: var(--brand-primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(9, 255, 141, 0.6);
}

.sports-menu-list .menu-item i {
    font-size: 14px;
    width: 20px;
    text-align: center;
    opacity: 0.6;
    margin-right: 12px;
}

.sports-menu-list .menu-item.active i {
    opacity: 1;
    color: var(--brand-primary);
    transform: scale(1.1);
}

.menu-count {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
    min-width: 24px;
    text-align: center;
}

.menu-item.active .menu-count {
    color: var(--brand-primary);
    background: rgba(9, 255, 141, 0.15);
}

/* Sidebar Search */
.sidebar-search-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.sidebar-search-box:focus-within {
    border-color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(9, 255, 141, 0.1);
}

.sidebar-search-box i {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

.sidebar-search-box input {
    background: none;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    outline: none;
}

.sidebar-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    margin: 15px 0;
}

.sidebar-section-header {
    padding: 12px 24px 8px;
    font-size: 10px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sports-menu-list .menu-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 2px 10px;
}

.sports-menu-list .menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding-left: 25px;
}

.sports-menu-list .menu-item.active {
    background: linear-gradient(90deg, rgba(9, 255, 141, 0.1) 0%, transparent 100%);
    color: var(--brand-primary);
}

/* ── Center Content Components ── */
.market-filters-sticky {
    background: #0d1221;
    position: sticky;
    top: 0;
    z-index: 1010;
    border-bottom: 2px solid rgba(255, 255, 255, .05);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

@media (max-width: 991px) {
    .market-filters-sticky {
        position: relative;
        /* Change from sticky/fixed to relative on mobile to prevent hiding content */
        top: 0;
        z-index: 1010;
        margin-bottom: 0px;
        border-bottom: 2px solid rgba(255, 255, 255, .05);
        box-shadow: none;
    }
}

/* League Specific Accents */
.menu-item[data-sport="soccer_epl"]:hover {
    color: #3d195b;
}

/* EPL Purple */
.menu-item[data-sport="soccer_epl"].active {
    color: #3d195b;
    border-left: 3px solid #3d195b;
}

.menu-item[data-sport="soccer_uefa_champs_league"]:hover {
    color: #003399;
}

/* UCL Blue */
.menu-item[data-sport="soccer_uefa_champs_league"].active {
    color: #003399;
    border-left: 3px solid #003399;
}

.menu-item[data-sport="basketball_nba"]:hover {
    color: #ef4444;
}

/* NBA Red */
.menu-item[data-sport="basketball_nba"].active {
    color: #ef4444;
    border-left: 3px solid #ef4444;
}

.badge.bg-danger {
    background-color: #ef4444 !important;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

@media (max-width: 991px) {
    .sidebar-search-wrap {
        display: none;
    }
}

.market-nav-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    gap: 24px;
    padding: 12px 20px;
    scrollbar-width: none;
}

.market-nav-scroll::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .market-nav-scroll {
        gap: 18px;
        padding: 8px 16px;
    }
}

.m-nav-link {
    color: var(--text-muted);
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: all 0.2s;
}

.m-nav-link.active {
    color: var(--brand-primary);
}

.m-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-primary);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .m-nav-link.active::after {
        bottom: -11px;
    }
}

/* ── Content Layout ── */
.main-content-wrapper {
    border-right: 1px solid rgba(255, 255, 255, .05);
}

/* ── Promotion Banner ── */
.landing-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 20px;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: var(--transition-standard);
}

.landing-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    border-color: rgba(9, 255, 141, 0.2);
}

.banner-content {
    display: flex;
    width: 100%;
    padding: 30px;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.prize-title {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--brand-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.prize-pool {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 4px;
    color: #fff;
    line-height: 1;
}

.prize-pool span {
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.prize-desc {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.banner-img img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-15px) rotate(0deg);
    }
}

@media (max-width: 768px) {
    .landing-banner {
        min-height: 110px;
    }

    .banner-content {
        padding: 12px 18px;
    }

    .prize-title {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .prize-pool {
        font-size: 20px;
    }

    .prize-desc {
        font-size: 10px;
        padding: 4px 10px;
    }

    .banner-img img {
        width: 80px;
    }
}

/* ── League Division Headers ── */
.league-division-header {
    background: linear-gradient(90deg, rgba(9, 255, 141, 0.06) 0%, rgba(13, 18, 33, 0.95) 40%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--brand-primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 5;
}

.league-division-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.league-division-icon {
    font-size: 13px;
    color: var(--brand-primary);
    opacity: 0.8;
}

.league-division-name {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.league-division-count {
    font-size: 10px;
    font-weight: 800;
    color: var(--brand-primary);
    background: rgba(9, 255, 141, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
}

@media (max-width: 768px) {
    .league-division-inner {
        padding: 8px 12px;
    }

    .league-division-name {
        font-size: 11px;
    }

    .league-division-icon {
        font-size: 12px;
    }
}

/* ── Match Cards ── */
.betika-match-card {
    background: var(--bg-card);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 18px 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.betika-match-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.team-name-lp {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.league-text {
    color: rgba(255, 255, 255, 0.7) !important;
    /* Brighter than 50% for mobile readability */
}

.time-text {
    color: rgba(255, 255, 255, 0.6) !important;
}

.odd-btn-lp {
    background: rgba(26, 38, 61, 0.8);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    min-width: 75px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-standard);
}

.odd-btn-lp:hover:not(.odds-na) {
    background: var(--brand-primary);
    color: #000;
    transform: translateY(-2px);
    border-color: var(--brand-primary);
    box-shadow: 0 4px 15px rgba(9, 255, 141, 0.3);
}

.odd-btn-lp.selected {
    background: var(--brand-primary) !important;
    color: #000 !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 15px rgba(9, 255, 141, 0.4);
}

/* ── Multi-Market Card Tabs ── */
.card-market-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.card-market-tabs::-webkit-scrollbar {
    display: none;
}

.cmt-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.cmt-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.cmt-btn.active {
    background: rgba(9, 255, 141, 0.12);
    color: var(--brand-primary);
    border-color: rgba(9, 255, 141, 0.4);
    box-shadow: 0 0 8px rgba(9, 255, 141, 0.15);
}

/* ── Market Odds Layout ── */
.market-odds-panels {
    width: 100%;
}

.mkt-panel {
    width: 100%;
}

.odds-bubbles-lp {
    width: 100%;
}

.odds-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.odds-label-sm {
    font-size: 9px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}

.odds-col .odd-btn-lp {
    width: 100%;
    min-width: 0;
    padding: 9px 8px;
    font-size: 13px;
}


/* ── Betslip components ── */
.betslip-wrapper {
    margin: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Fixed height constraints for scrollability */
    height: calc(100vh - 100px);
    position: sticky;
    top: 85px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.betslip-main-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 10px 15px 15px 15px;
}

#view-slip,
#bs-content,
#view-mybets {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    /* Important for flex-scroll */
}

.betslip-tabs {
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    display: flex;
}

.b-tab {
    flex: 1;
    padding: 14px 5px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
}

.b-tab.active {
    color: var(--brand-primary);
    border-bottom: 2px solid var(--brand-primary);
}

.bs-selections-list {
    padding: 12px 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

.bs-selections-list::-webkit-scrollbar {
    width: 4px;
}

.bs-selections-list::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 10px;
}

.bs-selection-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.bs-match {
    color: rgba(255, 255, 255, 0.8) !important;
    /* Significantly lighter for readability */
    font-weight: 500;
}

.bs-pick {
    color: #fff;
}

.bs-remove-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    color: var(--brand-danger);
    background: transparent;
    border: none;
    cursor: pointer;
}

.bs-quick-stakes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.qs-btn {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.qs-btn:hover,
.qs-btn.active {
    background: var(--brand-primary);
    color: #000;
    border-color: var(--brand-primary);
}

.betslip-field {
    background: #000 !important;
    color: #fff !important;
    border-radius: 10px !important;
    text-align: center;
    font-weight: 800;
    padding: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.btn-place-bet {
    background: linear-gradient(135deg, #09ff8d, #00d97e);
    color: #060c1f;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.2s;
    width: 100%;
}

.btn-place-bet:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9, 255, 141, 0.3);
}

/* ── Mobile UI ── */
.mobile-sports-nav {
    background: #111a2d;
    border-bottom: 1px solid rgba(255, 255, 255, .03);
    overflow: hidden;
}

.nav-scroll-inner {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-scroll-inner::-webkit-scrollbar {
    display: none;
}

.nav-scroll-inner .d-flex {
    flex-wrap: nowrap;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
    color: var(--text-muted);
    text-decoration: none !important;
    gap: 2px;
}

.nav-item.active {
    color: #fff;
}

.nav-item i {
    font-size: 18px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 700;
}

.mobile-bs-fab {
    position: fixed;
    bottom: 95px;
    /* Lifted slightly more for visibility */
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #09ff8d 0%, #00d27a 100%);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    box-shadow: 0 8px 32px rgba(9, 255, 141, 0.4), 0 0 0 4px rgba(9, 255, 141, 0.1);
    font-size: 22px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.mobile-bs-fab:active {
    transform: scale(0.9) translateY(5px);
}

.fab-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #fff;
    color: #000;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid #000;
}

.mobile-bs-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #16213e 0%, #0d162d 100%);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 1000001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.mobile-bs-drawer.open {
    transform: translateY(0);
}

.mobile-bs-body {
    flex: 1;
    overflow-y: hidden;
    /* Scroll is handled by selections list */
    display: flex;
    flex-direction: column;
}

.bs-selections-list {
    padding: 12px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.mobile-bs-footer {
    background: rgba(13, 22, 45, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: env(safe-area-inset-bottom, 20px);
}


/* Pull Handle for Drawer */
.mobile-bs-drawer::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.mobile-bs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
    z-index: 1000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.mobile-bs-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}


.text-white-70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-white-90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.mobile-bs-drawer {
    /* Existing properties... but ensuring text color is bright */
    color: #fff;
}

.total-display {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bs-selection-item .bs-match {
    color: rgba(255, 255, 255, 0.85) !important;
}

.bs-selection-item .bs-pick {
    color: #fff !important;
}

.mobile-bs-header .fw-bold {
    color: #fff !important;
}


.mbs-selections-list .bs-selection-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Animations & Utilities ── */
@keyframes lpulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(1.3);
    }
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-danger);
    border-radius: 50%;
    display: inline-block;
    animation: lpulse 1.4s infinite;
}

.live-badge-card {
    background: var(--brand-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
    animation: lpulse 1.4s infinite;
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.api-status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(9, 255, 141, 0.08);
    color: var(--brand-primary);
    border: 1px solid rgba(9, 255, 141, 0.2);
}

.api-status-pill.error {
    background: rgba(239, 68, 68, 0.08);
    color: var(--brand-danger);
    border-color: rgba(239, 68, 68, 0.2);
}

/* ── Pagination Styling ── */
.pg-btn,
.pg-num {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition-standard);
    text-decoration: none;
}

.pg-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.01);
}

.pg-btn:not(:disabled):hover,
.pg-num:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pg-num.active {
    background: var(--brand-primary);
    color: #000;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 15px rgba(9, 255, 141, 0.2);
}

#pg-info {
    font-size: 12px;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-top: -10px;
}

/* ── Event Detail Modal ── */
.event-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.event-detail-container {
    background: linear-gradient(180deg, #0d1424 0%, #111a2d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    margin-top: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.event-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.event-detail-header i:first-child {
    color: var(--brand-primary);
    font-size: 14px;
}

.event-detail-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px 20px 8px;
}

.edm-team {
    text-align: center;
    flex: 1;
}

.edm-team span:first-child {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
}

.edm-score {
    font-size: 32px;
    font-weight: 900;
    color: var(--brand-primary);
    display: block !important;
}

.edm-vs {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    opacity: 0.5;
}

.edm-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.edm-markets-scroll {
    max-height: 55vh;
    overflow-y: auto;
    padding: 12px 22px 24px;
    scrollbar-width: thin;
}

.edm-markets-scroll::-webkit-scrollbar {
    width: 4px;
}

.edm-markets-scroll::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 8px;
}

.edm-market-group {
    margin-bottom: 16px;
}

.edm-market-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0 8px;
    border-bottom: 1px solid rgba(9, 255, 141, 0.1);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edm-market-title i {
    font-size: 10px;
    opacity: 0.6;
}

.edm-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}

.edm-outcome-btn {
    background: rgba(26, 38, 61, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.edm-outcome-btn:hover {
    background: rgba(9, 255, 141, 0.12);
    border-color: rgba(9, 255, 141, 0.3);
    transform: translateY(-1px);
}

.edm-outcome-btn.selected {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.edm-outcome-btn.selected .edm-outcome-name,
.edm-outcome-btn.selected .edm-outcome-price {
    color: #000 !important;
}

.edm-outcome-name {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edm-outcome-price {
    font-size: 15px;
    font-weight: 900;
    color: #fff;
}

.edm-outcome-point {
    font-size: 9px;
    font-weight: 700;
    color: var(--brand-primary);
    margin-top: 2px;
}

.edm-no-markets {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

@media (max-width: 576px) {
    .event-detail-overlay {
        padding: 0;
    }

    .event-detail-container {
        border-radius: 0;
        margin-top: 0;
        min-height: 100vh;
        max-width: 100%;
    }

    .event-detail-teams {
        padding: 16px 12px 4px;
        gap: 12px;
    }

    .edm-team span:first-child {
        font-size: 15px;
    }

    .edm-score {
        font-size: 26px;
    }

    .edm-markets-scroll {
        max-height: none;
        padding: 10px 14px 100px;
    }

    .edm-outcomes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Match card +markets button ── */
.more-markets-btn-lp {
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.more-markets-btn-lp:hover {
    background: rgba(9, 255, 141, 0.1);
}

.more-markets-btn-lp:hover span {
    color: var(--brand-primary) !important;
}

.more-markets-btn-lp:hover i {
    color: var(--brand-primary) !important;
}