/* ========================================================================
   surebasket.css — Apple Blue Design System
   Single source of truth for all public-facing styles.
   ======================================================================== */

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
    /* Colors - Light Theme */
    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --accent-soft: rgba(59, 130, 246, 0.08);
    --accent-glow: rgba(59, 130, 246, 0.3);
    
    --bg-primary: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-card-secondary: #F5F7FA;
    --bg-navbar: rgba(255, 255, 255, 0.85);
    --bg-overlay: rgba(0, 0, 0, 0.4);
    
    --text-primary: #2C2C3A;
    --text-secondary: #6B7385;
    --text-tertiary: #9EA3B0;
    --text-quaternary: #C0C5CE;
    
    --border-color: #E8ECF1;
    --border-light: #F0F2F5;
    --border-input: #D0D5DD;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-alt: 'Sofia Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing / Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    /* Transitions */
    --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --sidebar-width: 260px;
    --navbar-height: 72px;
    --content-max-width: 900px;

    /* Navbar */
    --nav-bg: rgba(255, 255, 255, 0.82);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
    --nav-text: #6B7385;
    --nav-text-active: #3B82F6;
    --nav-border: rgba(0, 0, 0, 0.06);
    --nav-dropdown-bg: rgba(255, 255, 255, 0.98);
    --nav-dropdown-text: #6B7385;
    --nav-dropdown-hover: #F5F7FA;
    --nav-mobile-bg: #FFFFFF;
    --nav-mobile-divider: rgba(0, 0, 0, 0.06);
    --nav-icon-bg: rgba(0, 0, 0, 0.04);

    /* Footer */
    --footer-bg: #F5F5F7;
    --footer-text: #6B7385;
    --footer-text-heading: #2C2C3A;
    --footer-border: rgba(0, 0, 0, 0.06);
    --footer-link-hover: #3B82F6;
    --footer-bottom-bg: #EEEEF0;

    /* Hero banners */
    --hero-bg: linear-gradient(135deg, #EEF2F6 0%, #E2E8F0 100%);
    --hero-text: #1E293B;
    --hero-text-secondary: #64748B;
    --hero-badge-bg: rgba(255, 255, 255, 0.7);
    --hero-badge-border: rgba(59, 130, 246, 0.2);
    --hero-badge-text: var(--accent);
    --hero-accent-glow: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    --hero-grid-color: rgba(0, 0, 0, 0.03);
    --hero-logo-ring: rgba(59, 130, 246, 0.2);
}

/* Dark Theme */
html[data-theme="dark"] {
    --accent: #60A5FA;
    --accent-hover: #93BBFC;
    --accent-soft: rgba(96, 165, 250, 0.12);
    --accent-glow: rgba(96, 165, 250, 0.3);
    
    --bg-primary: #0E0E12;
    --bg-card: #1A1A1E;
    --bg-card-secondary: #232329;
    --bg-navbar: rgba(14, 14, 18, 0.9);
    --bg-overlay: rgba(0, 0, 0, 0.7);
    
    --text-primary: #E8E8ED;
    --text-secondary: #9B9BA8;
    --text-tertiary: #6B6B7A;
    --text-quaternary: #4A4A55;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    --border-input: rgba(255, 255, 255, 0.12);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* Hero banners */
    --hero-bg: linear-gradient(135deg, #16161E 0%, #1A1A24 100%);
    --hero-text: #F1F5F9;
    --hero-text-secondary: #94A3B8;
    --hero-badge-bg: rgba(255, 255, 255, 0.06);
    --hero-badge-border: rgba(96, 165, 250, 0.25);
    --hero-badge-text: var(--accent);
    --hero-accent-glow: radial-gradient(ellipse, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    --hero-grid-color: rgba(255, 255, 255, 0.03);
    --hero-logo-ring: rgba(96, 165, 250, 0.25);

    /* Navbar */
    --nav-bg: rgba(14, 14, 18, 0.82);
    --nav-bg-scrolled: rgba(14, 14, 18, 0.95);
    --nav-text: #9B9BA8;
    --nav-text-active: #60A5FA;
    --nav-border: rgba(255, 255, 255, 0.06);
    --nav-dropdown-bg: rgba(30, 30, 35, 0.98);
    --nav-dropdown-text: #9B9BA8;
    --nav-dropdown-hover: rgba(255, 255, 255, 0.04);
    --nav-mobile-bg: #1A1A1E;
    --nav-mobile-divider: rgba(255, 255, 255, 0.06);
    --nav-icon-bg: rgba(255, 255, 255, 0.06);

    /* Footer - 80% dark */
    --footer-bg: rgba(0, 0, 0, 0.8);
    --footer-text: #9B9BA8;
    --footer-text-heading: #E8E8ED;
    --footer-border: rgba(255, 255, 255, 0.06);
    --footer-link-hover: #60A5FA;
    --footer-bottom-bg: rgba(0, 0, 0, 0.9);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--accent-hover);
}
img {
    max-width: 100%;
}
ul, ol {
    padding-left: 20px;
}
input, textarea, select, button {
    font-family: var(--font-sans);
}

/* ============================================================
   3. LAYOUT — Navbar, Sidebar, Footer
   ============================================================ */

/* ---- Navbar (Apple-inspired) ---- */
.header,
.header.header-two {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 999;
}
.header.header-two {
    background: var(--nav-bg);
    backdrop-filter: saturate(1.8) blur(20px);
    -webkit-backdrop-filter: saturate(1.8) blur(20px);
    border-bottom: 1px solid var(--nav-border);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.header.header-two.fixed {
    background: var(--nav-bg-scrolled);
}
body.betmines-theme .bm-main-content {
    padding-top: 124px;
}
@media (max-width: 991.98px) {
    body.betmines-theme .bm-main-content {
        padding-top: 110px;
    }
}

/* .header .header-nav */
.header .header-nav {
    align-items: center;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    min-height: 124px;
    padding: 16px 24px 0;
    margin-bottom: 0;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
@media (max-width: 991.98px) {
    .header .header-nav {
        min-height: 60px;
        padding: 0 16px;
    }
}
.header .header-nav .main-nav > li > a {
    line-height: 54px;
    display: inline-block;
    font-weight: 500;
    color: var(--nav-text);
    font-size: 15px;
    letter-spacing: 0.2px;
    transition: color 0.15s ease;
    position: relative;
}
@media (max-width: 991.98px) {
    .header .header-nav .main-nav > li > a {
        color: var(--nav-text);
        line-height: normal;
    }
}
.header .header-nav .main-nav > li > a:hover {
    color: var(--nav-text-active);
}
.header .header-nav .main-nav > li.active > a {
    color: var(--nav-text-active);
}
@media (min-width: 992px) {
    .header .header-nav .main-nav > li > a:hover::after,
    .header .header-nav .main-nav > li.active > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--accent);
        border-radius: 3px 3px 0 0;
    }
}
.header .header-nav .main-nav > li .submenu li {
    position: relative;
}
.header .header-nav .main-nav > li .submenu li.active > a {
    color: var(--nav-text-active);
}
.header .header-nav .main-nav > li .submenu li a {
    display: block;
    padding: 8px 20px;
    clear: both;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
    width: 100%;
    font-weight: 500;
    font-size: 14px;
    color: var(--nav-dropdown-text);
}
.header .header-nav .main-nav > li .submenu li a:hover {
    background: var(--nav-dropdown-hover);
    color: var(--nav-text-active);
}
.header .header-nav .main-nav > li .login-link {
    display: none;
}
.header.header-two .header-nav .main-nav > li > a:before {
    content: unset;
}

.live-badge-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border-radius: 9px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    animation: live-badge-pulse 2s ease infinite;
}

@keyframes live-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

@media (max-width: 991.98px) {
    .live-badge-nav {
        display: inline-flex;
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        font-size: 11px;
        border-radius: 10px;
        margin-left: 6px;
    }
}

/* .navbar-header */
.header .navbar-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
@media (max-width: 991.98px) {
    .header .navbar-header {
        gap: 16px;
        width: 100%;
    }
}
@media (max-width: 991.98px) {
    .header .navbar-header {
        padding-top: 6px;
    }
    .header .navbar-header #mobile_btn {
        margin-left: -6px;
    }
    .header .navbar-header .navbar-brand.logo {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    .header .navbar-header .mobile-header-actions {
        margin-left: auto;
    }
}
.header .navbar-header #mobile_btn {
    display: none;
}
@media (max-width: 991.98px) {
    .header .navbar-header #mobile_btn {
        display: inline-flex;
    }
}
#mobile_btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    background: var(--nav-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--nav-text);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    flex-shrink: 0;
}
#mobile_btn:hover {
    background: var(--accent);
    color: #fff;
}
#mobile_btn i, #mobile_btn svg {
    color: inherit;
}
.header .navbar-header .navbar-brand.logo {
    display: flex;
    align-items: center;
}
.header .navbar-header .navbar-brand.logo img {
    max-height: 32px;
}

/* .main-menu-wrapper */
.header .main-menu-wrapper {
    margin: 0;
}
@media (min-width: 992px) {
    .header .main-menu-wrapper {
        flex: 0 0 100%;
        order: 3;
        border-top: 1px solid var(--nav-border);
        margin-top: 16px;
        display: flex;
        justify-content: flex-start;
    }
}
@media (max-width: 991.98px) {
    .header .main-menu-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100%;
        z-index: 9999;
        background: var(--nav-mobile-bg);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-280px);
        margin: 0;
        display: flex;
        flex-direction: column;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }
}
.header .main-menu-wrapper .menu-header {
    display: none;
}
@media (max-width: 991.98px) {
    .header .main-menu-wrapper .menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        padding: 0 16px;
        border-bottom: 1px solid var(--nav-mobile-divider);
        flex-shrink: 0;
    }
    .header .main-menu-wrapper .main-nav .has-submenu ul {
        padding-left: 12px;
    }
}
.menu-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-text);
    background: var(--nav-icon-bg);
    transition: background 0.15s;
    font-size: 14px;
    text-decoration: none;
}
.menu-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* .main-nav */
.header .main-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 16px;
}
@media (max-width: 991.98px) {
    .header .main-nav {
        flex-direction: column;
        padding: 8px 0;
        gap: 0;
        flex: 1;
        overflow-y: auto;
    }
}
.header .main-nav > li {
    position: relative;
}
.header .main-nav > li > a {
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--nav-text);
    text-decoration: none;
    transition: color 0.15s ease;
    display: block;
    line-height: 72px;
}
@media (max-width: 991.98px) {
    .header .main-nav > li > a {
        line-height: normal;
        padding: 12px 20px;
        border-bottom: 1px solid var(--nav-mobile-divider);
        font-size: 15px;
    }
    .header .main-nav > li:last-child > a {
        border-bottom: none;
    }
}

/* .has-submenu */
.header .main-nav > li.has-submenu {
    position: relative;
}

/* .submenu */
.header .main-nav > li .submenu {
    position: absolute;
    background: var(--nav-dropdown-bg);
    padding: 8px 0;
    left: 0;
    top: 100%;
    min-width: 200px;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin-top: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--nav-border);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateY(4px);
}
.header .main-nav > li:hover > .submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.header .main-nav > li .submenu li a {
    color: var(--nav-dropdown-text);
}
@media (max-width: 991.98px) {
    .header .main-nav > li .submenu {
        position: static;
        background: transparent;
        padding: 0;
        margin-top: 0;
        visibility: visible;
        opacity: 1;
        box-shadow: none;
        border-radius: 0;
        backdrop-filter: none;
        border: none;
        transform: none;
        display: none;
    }
    .header .main-nav > li .submenu li a {
        color: var(--nav-text);
        padding-left: 32px;
    }
}

/* .header-navbar-rht */
.header .header-navbar-rht {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}
@media (max-width: 575.98px) {
    .header .header-navbar-rht {
        display: none;
    }
}
.header .header-navbar-rht > li {
    align-items: center;
    display: inline-flex;
}
.header .header-navbar-rht .logged-in .nav-link {
    padding: 0;
}

/* Desktop profile toggle (custom, no Bootstrap JS dependency) */
.desktop-profile-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}
#desktop-profile-wrap {
    position: relative;
}
#desktop-profile-wrap .dropdown-menu {
    display: none;
}
#desktop-profile-wrap .dropdown-menu.show {
    display: block;
}

/* Desktop theme toggle */
.bm-theme-toggle-desktop {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.15s;
    color: var(--nav-text);
    width: 36px;
    height: 36px;
}
.bm-theme-toggle-desktop:hover {
    background: var(--nav-icon-bg);
    color: var(--nav-text-active);
}

/* .dropdown-menu in header */
.header .header-navbar-rht > li .dropdown-menu {
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 8px 0;
    background: var(--nav-dropdown-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--nav-border);
    margin-top: 8px;
}
.header .header-navbar-rht > li .dropdown-menu .dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--nav-dropdown-text);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s, color 0.15s;
}
.header .header-navbar-rht > li .dropdown-menu .dropdown-item:hover {
    background: var(--nav-dropdown-hover);
    color: var(--nav-text-active);
}
.user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 16px;
    border-bottom: 1px solid var(--nav-border);
    margin-bottom: 4px;
}
.user-header .user-text h6 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--nav-text-active);
}
.user-header .user-text .text-profile {
    font-size: 12px;
    color: var(--nav-text);
    text-decoration: none;
    transition: color 0.15s;
}
.user-header .user-text .text-profile:hover {
    color: var(--nav-text-active);
}
.avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    flex-shrink: 0;
}
.avatar-sm .avatar-initials {
    width: 40px;
    height: 40px;
    font-size: 17px;
}

/* Login/Register buttons */
.header .header-navbar-rht .nav-item .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.header .header-navbar-rht .nav-item .btn-primary {
    background: var(--accent);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    cursor: pointer;
}
.header .header-navbar-rht .nav-item .btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: #fff;
}
.header .header-navbar-rht .login-link .header-login-btn {
    color: var(--nav-text);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    background: transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.header .header-navbar-rht .login-link .header-login-btn:hover {
    background: var(--nav-icon-bg);
    color: var(--nav-text-active);
}
.header .header-navbar-rht .register-link .header-register-btn {
    font-weight: 600;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 8px;
}

/* menu-opened */
.menu-opened .main-menu-wrapper {
    transform: translateX(0px);
}
body.menu-opened::before {
    content: "";
    background-color: rgba(0, 0, 0, 0.4);
    height: 100%;
    width: 100%;
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Mobile header actions (visible on mobile only) */
.mobile-header-actions {
    display: none;
    align-items: center;
}
@media (max-width: 991.98px) {
    .mobile-header-actions {
        display: flex;
        gap: 4px;
        margin-right: -10px; 
        justify-content: flex-end;
    }
}
.mha-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--nav-icon-bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-text);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    flex-shrink: 0;
}
.mha-icon-btn:hover {
    background: var(--accent);
    color: #fff;
}
.mha-profile-wrap {
    position: relative;
}
.mha-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

/* Mobile header action dropdown */
.mha-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--nav-dropdown-bg);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    overflow: hidden;
    padding: 8px 0;
    border: 1px solid var(--nav-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.mha-dropdown.open {
    display: block;
}
.mha-dropdown-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--nav-border);
    margin-bottom: 4px;
}
.mha-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}
.mha-dropdown-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}
.mha-dropdown-sub {
    font-size: 12px;
    color: var(--text-tertiary);
}
.mha-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--nav-dropdown-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}
.mha-dropdown-item:hover {
    background: var(--nav-dropdown-hover);
    color: var(--nav-text-active);
    text-decoration: none;
}
.mha-dropdown-logout {
    color: #EF4444 !important;
}
.mha-dropdown-logout:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #DC2626 !important;
}

/* Mobile sidebar content — hidden on desktop */
.mobile-sidebar-content {
    display: none;
}
@media (max-width: 991.98px) {
    .header .main-menu-wrapper {
        height: 100vh;
    }
    .menu-opened .mobile-sidebar-content {
        display: block !important;
    }
    .main-menu-wrapper .main-nav {
        display: none !important;
    }
}

/* Push content for fixed navbar */
.bm-layout-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bm-main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ---- Sidebar (Home page) ---- */
.bm-sidebar {
    display: block;
}
.bm-sidebar-section {
    padding: 0;
}
.bm-sidebar-title {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    padding: 14px 16px 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}
.bm-sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    gap: 10px;
    transition: background 0.15s, color 0.15s;
}
.bm-sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}
.bm-sidebar-link:hover,
.bm-sidebar-link.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
}

/* ---- Footer (Apple-inspired) ---- */
.bm-footer {
    background: var(--footer-bg);
    padding: 64px 0 0;
    color: var(--footer-text);
    font-size: 13px;
    line-height: 1.6;
    backdrop-filter: saturate(1.1);
    -webkit-backdrop-filter: saturate(1.1);
    border-top: 1px solid var(--footer-border);
}
.bm-footer .container {
    max-width: 980px;
}
.bm-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--footer-border);
}
.bm-footer-col {
    flex: 1 1 180px;
    min-width: 140px;
}
.bm-footer-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 16px;
    color: var(--footer-text-heading);
}
.bm-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bm-footer-link {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s ease;
}
.bm-footer-link:hover {
    color: var(--footer-link-hover);
    text-decoration: none;
}
.bm-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.bm-footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    background: var(--footer-border);
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.bm-footer-social a:hover {
    background: var(--footer-link-hover);
    color: #fff;
}
.bm-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 12px;
    color: var(--footer-text);
    flex-wrap: wrap;
    gap: 8px;
}
.bm-copyright span {
    color: var(--footer-text-heading);
    font-weight: 500;
}
.bm-footer-extra-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.bm-footer-extra-link {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.15s;
}
.bm-footer-extra-link:hover {
    color: var(--footer-link-hover);
    text-decoration: none;
}
.bm-partner-link {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 12px;
    padding: 0 8px;
    border-right: 1px solid var(--footer-border);
    transition: color 0.15s ease;
    line-height: 1.8;
    display: inline-block;
}
.bm-partner-link:hover {
    color: var(--footer-link-hover);
    text-decoration: none;
}
.bm-partner-link:last-child {
    border-right: none;
}
.bm-footer-partners-container {
    padding: 16px 0;
    border-bottom: 1px solid var(--footer-border);
}
.bm-footer-partners-box {
    max-height: 40px;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.bm-footer-partners-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--footer-text-heading);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 8px;
}
.bm-footer-partners-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
}
.bm-partners-unfold-wrapper {
    text-align: center;
    margin-top: 8px;
}
.bm-partners-unfold-btn {
    background: none;
    border: none;
    color: var(--footer-text);
    cursor: pointer;
    font-size: 12px;
    padding: 4px 12px;
    transition: color 0.15s;
}
.bm-partners-unfold-btn:hover {
    color: var(--footer-link-hover);
}

@media (max-width: 767.98px) {
    .bm-footer {
        padding: 40px 0 0;
    }
    .bm-footer-inner {
        flex-direction: column;
        gap: 32px;
    }
    .bm-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ---- Mobile Bottom Nav ---- */

/* Mobile Sport Switcher (in navbar) */
.mb-navbar-switcher {
    display: none;
    width: 100%;
    padding: 6px 16px 2px;
    gap: 6px;
}
@media (max-width: 991.98px) {
    .mb-navbar-switcher {
        display: flex;
    }
}

.mb-navbar-sport-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}
.mb-navbar-sport-tab:hover {
    color: var(--text-secondary);
    background: var(--bg-primary);
    text-decoration: none;
}
.mb-navbar-sport-tab.active {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: var(--accent);
}

html[data-theme="dark"] .mb-navbar-sport-tab {
    color: var(--text-tertiary);
}
html[data-theme="dark"] .mb-navbar-sport-tab:hover {
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
}
html[data-theme="dark"] .mb-navbar-sport-tab.active {
    color: var(--accent);
    background: rgba(96,165,250,0.08);
    border-color: var(--accent);
}

/* Fixed wrapper to stick bottom nav to viewport bottom */
.mb-nav-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

@media (min-width: 992px) {
    .mb-nav-fixed {
        display: none !important;
    }
}

/* Sport Switcher Tabs */
.mb-nav-sport-tabs {
    display: flex;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}
.mb-sport-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}
.mb-sport-tab:hover {
    color: var(--text-secondary);
    background: var(--bg-primary);
}
.mb-sport-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--accent-soft);
}
.mb-sport-icon {
    flex-shrink: 0;
}
.mb-sport-label {
    white-space: nowrap;
}
.mb-nav-row {
    display: flex;
    flex-direction: column;
}
.mb-nav-links {
    display: flex;
    justify-content: space-around;
    padding: 4px 0;
}

/* Dark mode */
html[data-theme="dark"] .mb-sport-tab {
    color: var(--text-tertiary);
}
html[data-theme="dark"] .mb-sport-tab:hover {
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
}
html[data-theme="dark"] .mb-sport-tab.active {
    color: var(--accent);
    background: rgba(96,165,250,0.08);
}

/* ============================================================
   4. PREDICTIONS PAGE — Shared Layout
   ============================================================ */
.predictions-page-wrapper {
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 0 0 40px 0;
    max-width: 100%;
    overflow-x: hidden;
}
.predictions-page-wrapper .container {
    max-width: var(--content-max-width);
    flex: 1;
    min-width: 0;
}
.home-content-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ---- Minimal Page / Category / League Headers ---- */
.category-hero-minimal {
    padding: 4px 0 12px;
}
.category-hero-title-minimal {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.15;
    margin: 0 0 4px;
}
.hero-sub-minimal {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 4px;
    line-height: 1.5;
}
.hero-date-minimal {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
}

/* Minimal page header (for league/country pages) */
.page-minimal-header {
    padding: 12px 0 8px;
    margin-bottom: 8px;
}
.page-minimal-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin: 0 0 2px;
}
.page-minimal-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 991px) {
    .category-hero-title-minimal { font-size: 1.4rem; }
    .page-minimal-title { font-size: 1.3rem; }
}
@media (max-width: 767.98px) {
    .category-hero-minimal { padding: 0 0 8px; }
    .category-hero-title-minimal { font-size: 1.2rem; }
    .page-minimal-header { padding: 8px 0 4px; }
    .page-minimal-title { font-size: 1.1rem; }
}

/* ---- Page Title (article header_content shown at top) ---- */
.bm-page-title {
    font-family: var(--font-display, inherit);
    font-size: 22px;
    font-weight: 800;
    color: var(--accent, #3B82F6);
    margin: 0 0 8px 0;
    padding: 0 4px;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

/* ---- Page Subheader ---- */
.bm-page-subheader {
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 4px;
}

/* ---- Home with sidebar: push content down to align with sidebar start ---- */
.home-with-sidebar .container {
    padding-top: 20px;
}
.home-sidebar {
    padding-top: 20px;
}

/* ---- League Header (Collapsible) ---- */
.predictions-league-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: color-mix(in srgb, var(--text-primary) 6%, var(--bg-card));
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    min-width: 0;
    overflow: hidden;
}
.predictions-league-header:hover {
    background: color-mix(in srgb, var(--text-primary) 10%, var(--bg-card));
}
.predictions-league-header img {
    max-height: 18px;
    width: auto;
    flex-shrink: 0;
}
.predictions-league-header .league-name-text,
.predictions-league-header span:not(.lh-game-count):not(.league-star) {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.predictions-league-header .league-star {
    font-size: 14px;
    color: var(--accent);
}

/* Collapse Toggle Button */
.lh-collapse-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--text-tertiary);
    transition: transform 0.2s var(--ease-spring), color 0.15s;
    flex-shrink: 0;
}
.lh-collapse-btn:hover { color: var(--text-primary); }
.lh-chevron {
    font-size: 12px;
    transition: transform 0.2s var(--ease-spring);
}
.predictions-league-header.collapsed .lh-chevron {
    transform: rotate(-90deg);
}

/* Game count badge */
.lh-game-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--text-tertiary);
    background: color-mix(in srgb, var(--text-primary) 8%, transparent);
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Show more button */
.lh-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s;
}
.lh-show-more:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
    color: var(--accent);
}
.lh-show-more .lh-show-more-icon {
    transition: transform 0.2s;
}
.lh-show-more.expanded .lh-show-more-icon {
    transform: rotate(180deg);
}

/* ============================================
   BETTING / PREDICTION CARD ROW
   ============================================ */

.bm-match-row-premium {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 14px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    min-height: 72px;
    position: relative;
}

.bm-match-row-premium:first-child {
    border-radius: 12px 12px 0 0;
}

.bm-match-row-premium:last-child {
    border-radius: 0 0 12px 12px;
    border-bottom: none;
}

.bm-match-row-premium:only-child {
    border-radius: 12px;
}

.bm-match-row-premium:hover {
    background: color-mix(in srgb, var(--accent) 6%, var(--bg-card));
    z-index: 1;
}

.bm-match-row-premium.status-won {
    border-left: 3px solid #22c55e;
}

.bm-match-row-premium.status-lost {
    border-left: 3px solid #ef4444;
}

/* Column Base */
.bm-col {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

/* FAV Column (Star) */
.bm-col-fav {
    width: 36px;
    min-width: 36px;
}
.bm-star-icon {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.bm-star-icon:hover {
    color: #f59e0b;
    transform: scale(1.15);
}

/* TIME Column */
.bm-col-time {
    width: 60px;
    min-width: 60px;
}
.bm-time-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}
.bm-time-live {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blink_me {
    animation: blinker 1.2s ease-in-out infinite;
}
@keyframes blinker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Vertical Divider */
.bm-col-divider {
    width: 1px;
    min-width: 1px;
    height: 40px;
    background: var(--border-color);
    flex-shrink: 0;
    margin: 0 10px;
}

/* MATCHES Column (Main - grows) */
.bm-col-matches {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    padding: 2px 0;
    align-items: stretch;
}

.bm-match-team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.bm-team-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.bm-team-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bm-score-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 20px;
    text-align: center;
    margin-right: 2px;
    font-variant-numeric: tabular-nums;
}

.bm-score-winner {
    color: #22c55e;
}

.bm-winner .bm-team-name {
    font-weight: 700;
    color: var(--text-primary);
}

/* ANALYTICS Column */
.bm-col-analytics {
    width: 36px;
    min-width: 36px;
}
.bm-analytics-icon {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.2s;
}
.bm-analytics-icon:hover {
    color: var(--accent);
}

/* MARKET Column */
.bm-col-market {
    width: 80px;
    min-width: 80px;
}
.bm-market-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
}

/* PREDICTION Column (Prob Ring) */
.bm-col-prediction {
    width: 60px;
    min-width: 60px;
}
.bm-prob-ring-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}
.bm-prob-ring {
    position: absolute;
    inset: 0;
}
.bm-prob-ring-fg {
    stroke: var(--accent);
}
.bm-prob-ring-bg {
    stroke: color-mix(in srgb, var(--accent) 15%, transparent);
}
.bm-prob-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 1;
    line-height: 1;
}
.bm-prob-text small {
    font-size: 8px;
    font-weight: 600;
}
.bm-prob-none {
    color: var(--text-tertiary);
}


/* ODDS Column */
.bm-col-odds {
    width: 70px;
    min-width: 70px;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}
.bm-odds-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.bm-odds-value small {
    font-size: 10px;
    font-weight: 600;
}

.bm-odds-none {
    color: var(--text-tertiary);
}

/* Hide mobile-only elements on desktop */
.bm-prediction-info {
    display: none;
}

/* ══════════════════════════════════════════════════════════
   MOBILE CARD LAYOUT  (≤ 767.98px)
   Single flex row: FAV → TIME → TEAMS → PROB+TIP → STATS
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {

    /* Reset to single flex row */
    .bm-match-row-premium {
        display: flex;
        align-items: center;
        gap: 0;
        padding: 10px 8px;
        min-height: 56px;
        border-bottom: 1px solid var(--border-color);
    }
    .bm-match-row-premium:first-child { border-radius: 12px 12px 0 0; }
    .bm-match-row-premium:last-child  { border-radius: 0 0 12px 12px; border-bottom: none; }
    .bm-match-row-premium:only-child  { border-radius: 12px; }

    /* Hide columns not used on mobile */
    .bm-col-market,
    .bm-col-odds,
    .bm-col-divider {
        display: none !important;
    }

    /* Show key columns on mobile */
    .bm-col-fav,
    .bm-col-time,
    .bm-col-matches,
    .bm-col-analytics,
    .bm-col-prediction {
        display: flex !important;
    }

    /* ── FAV Column ── */
    .bm-col-fav {
        width: 26px;
        min-width: 26px;
    }
    .bm-star-icon {
        width: 14px;
        height: 14px;
    }

    /* ── TIME Column ── */
    .bm-col-time {
        width: 34px;
        min-width: 34px;
    }
    .bm-time-text {
        font-size: 10px;
        font-weight: 700;
        color: var(--text-secondary);
        white-space: nowrap;
    }
    .bm-time-live {
        font-size: 9px;
        padding: 1px 5px;
        border-radius: 3px;
    }

    /* ── MATCHES Column (grows to fill space) ── */
    .bm-col-matches {
        flex: 1;
        min-width: 0;
        flex-direction: column;
        gap: 4px;
        padding: 0 6px;
    }
    .bm-match-team-row { gap: 5px; padding: 0; }
    .bm-team-logo      { width: 16px; height: 16px; }
    .bm-team-name      { font-size: 11px; font-weight: 500; }
    .bm-score-num      { font-size: 11px; font-weight: 700; min-width: 14px; text-align: right; }


    /* ── PREDICTION Column (prob ring + market/odds/tip inline) ── */
    .bm-col-prediction {
        width: auto;
        min-width: auto;
        gap: 5px;
        padding: 0 4px;
        flex-direction: row;
        align-items: center;
    }
    .bm-prediction-info {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-width: 0;
        flex: 1;
    }
    .bm-prob-ring-wrap {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    .bm-prob-ring {
        width: 32px;
        height: 32px;
    }
    .bm-prob-text {
        font-size: 9px;
        font-weight: 700;
    }
    .bm-prob-text small { font-size: 6px; }

    .bm-mobile-tip {
        font-size: 9px;
        font-weight: 600;
        color: var(--accent);
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: 0.2px;
        line-height: 1;
    }

    /* Mobile market + odds in prediction column */
    .bm-mobile-market {
        font-size: 8px;
        font-weight: 500;
        color: var(--text-tertiary);
        text-transform: uppercase;
        letter-spacing: 0.2px;
        line-height: 1.2;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .bm-mobile-odds {
        font-size: 9px;
        font-weight: 700;
        color: var(--text-primary);
        white-space: nowrap;
        line-height: 1.1;
    }

    /* ── ANALYTICS Column ── */
    .bm-col-analytics {
        width: 26px;
        min-width: 26px;
    }
    .bm-analytics-icon {
        width: 14px;
        height: 14px;
    }
}

/* ---- Table Column Header Row ---- */
.bm-table-header {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 16px;
    background: color-mix(in srgb, var(--accent) 4%, var(--bg-card));
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 32px;
    user-select: none;
}
.bm-th {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.bm-th-fav {
    width: 36px;
    min-width: 36px;
    justify-content: center;
}
.bm-th-time {
    width: 60px;
    min-width: 60px;
    justify-content: center;
}
.bm-th-matches {
    flex: 1;
    min-width: 0;
    padding-left: 4px;
}
.bm-th-analytics {
    width: 36px;
    min-width: 36px;
    justify-content: center;
}
.bm-th-market {
    width: 80px;
    min-width: 80px;
    justify-content: center;
}
.bm-th-prediction {
    width: 60px;
    min-width: 60px;
    justify-content: center;
}
.bm-th-odds {
    width: 70px;
    min-width: 70px;
    justify-content: center;
}
.bm-th-divider {
    width: 1px;
    min-width: 1px;
    height: 16px;
    background: var(--border-color);
    flex-shrink: 0;
    margin: 0 10px;
}
/* Add space between league groups on flat (non-football) pages */
.predictions-league-header ~ .predictions-league-header {
    margin-top: 20px;
}

/* Mobile responsive for column header */
@media (max-width: 767.98px) {
    .bm-table-header {
        display: none !important;
    }
}

/* Hidden cards */
.bm-match-row-premium.lh-hidden {
    display: none !important;
}

/* Football page-level show more */
.bm-match-row-premium.fm-prediction-hidden {
    display: none !important;
}

/* ---- Match List Wrapper ---- */
.predictions-match-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
}

/* ---- Empty State ---- */
.predictions-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.predictions-empty svg,
.predictions-empty i {
    margin-bottom: 16px;
}
.predictions-empty i {
    font-size: 48px;
    color: var(--accent);
    opacity: 0.4;
}
.predictions-empty p {
    font-size: 15px;
    color: var(--text-tertiary);
    margin: 0;
}
.predictions-empty h4 {
    font-family: var(--font-display);
    color: var(--text-tertiary);
    font-size: 18px;
    margin-bottom: 4px;
}

/* ============================================================
   5. SEARCH BAR & AUTOCOMPLETE
   ============================================================ */
.predictions-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.predictions-search-bar .search-input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 100px;
    position: relative;
    gap: 8px;
    transition: border-color 0.2s;
}
.predictions-search-bar .search-input-wrap:focus-within {
    border-color: var(--accent);
}
.predictions-search-bar .search-input-wrap input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--text-primary);
}
.predictions-search-bar .search-input-wrap input::placeholder {
    color: var(--text-tertiary);
}

.predictions-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    border-radius: 100px;
    transition: all 0.2s ease;
}
.predictions-sort-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.predictions-table-headers {
    display: flex;
    gap: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-quaternary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.predictions-table-headers span {
    width: 60px;
    text-align: center;
}

/* ---- Autocomplete Dropdown ---- */
.bm-autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
}
.bm-autocomplete-dropdown.visible { display: block; }
.bm-autocomplete-group {
    padding: 8px 14px 4px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-light);
}
.bm-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.1s;
    cursor: pointer;
}
.bm-autocomplete-item:hover {
    background: var(--bg-primary);
    text-decoration: none;
    color: var(--text-primary);
}
.bm-autocomplete-item .ac-team {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bm-autocomplete-item .ac-vs { color: var(--text-tertiary); font-size: 11px; flex-shrink: 0; }
.bm-autocomplete-item .ac-league {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-left: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.bm-autocomplete-item .ac-league-tag {
    padding: 2px 8px;
    background: var(--border-light);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: auto;
    font-weight: 500;
}
.bm-autocomplete-item .ac-icon {
    width: 18px;
    text-align: center;
    color: var(--accent);
    font-size: 12px;
    flex-shrink: 0;
}
.bm-autocomplete-empty {
    padding: 16px 14px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
}

/* ============================================================
   6. FILTER BAR (NEW DROPDOWN DESIGN)
   ============================================================ */
.bm-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 4px;
    /* Bleed out of parent padding so the scroll area is never clipped */
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}
.bm-filter-bar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}
.bm-filter-bar::after {
    content: '';
    display: block;
    min-width: 20px;
    flex-shrink: 0;
}

.bm-filter-spacer {
    flex: 1;
}

/* Dropdown wrapper */
.bm-dd-wrap {
    position: relative;
    flex-shrink: 0;
}

/* Dropdown trigger button */
.bm-dd-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px 6px 12px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 100px;
    font-family: var(--font-sans, sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary, #555);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    user-select: none;
}
.bm-dd-btn:hover {
    border-color: var(--accent, #3B82F6);
    color: var(--text-primary, #111);
    background: var(--accent-soft, rgba(59,130,246,0.06));
}
.bm-dd-wrap.open .bm-dd-btn {
    border-color: var(--accent, #3B82F6);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
    color: var(--text-primary, #111);
}

/* Label part (e.g. "MATCHES:") */
.bm-dd-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent, #3B82F6);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Selected value part (e.g. "ALL") */
.bm-dd-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary, #111);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* Chevron arrow */
.bm-dd-arrow {
    flex-shrink: 0;
    color: var(--text-tertiary, #888);
    transition: transform 0.2s ease;
}
.bm-dd-wrap.open .bm-dd-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.bm-dd-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    animation: ddSlideIn 0.15s ease;
    overflow: hidden;
}
.bm-dd-wrap.open .bm-dd-menu {
    display: block;
}
@keyframes ddSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Menu items */
.bm-dd-item {
    padding: 9px 18px;
    font-family: var(--font-sans, sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #555);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    user-select: none;
    white-space: nowrap;
}
.bm-dd-item:hover {
    background: var(--bg-primary, #f8fafc);
    color: var(--accent, #3B82F6);
}
.bm-dd-item.active {
    color: var(--accent, #3B82F6);
    font-weight: 700;
    background: var(--accent-soft, rgba(59,130,246,0.06));
}

/* Dark mode support */
html[data-theme="dark"] .bm-dd-btn {
    background: #1a1a1e;
    border-color: #2a2a30;
    color: #9EA3B0;
}
html[data-theme="dark"] .bm-dd-btn:hover,
html[data-theme="dark"] .bm-dd-wrap.open .bm-dd-btn {
    background: rgba(59,130,246,0.08);
    border-color: var(--accent, #3B82F6);
    color: #E8E8ED;
}
html[data-theme="dark"] .bm-dd-value {
    color: #E8E8ED;
}
html[data-theme="dark"] .bm-dd-menu {
    background: #1a1a1e;
    border-color: #2a2a30;
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
html[data-theme="dark"] .bm-dd-item {
    color: #9EA3B0;
}
html[data-theme="dark"] .bm-dd-item:hover {
    background: #252530;
    color: #E8E8ED;
}
html[data-theme="dark"] .bm-dd-item.active {
    background: rgba(59,130,246,0.12);
    color: var(--accent, #3B82F6);
}

/* Responsive: stack on small screens */
@media (max-width: 767.98px) {
    .bm-filter-bar {
        gap: 6px;
        display: none;
    }
    .bm-dd-btn {
        padding: 5px 11px 5px 10px;
        font-size: 11px;
    }
    .bm-dd-label {
        font-size: 10px;
    }
    .bm-dd-value {
        font-size: 11px;
    }
    .bm-filter-spacer {
        display: none;
    }
}

/* ============================================================
   6b. FILTER MODAL (kept for league/category pages)
   ============================================================ */
.bm-filter-toggle-row {
    display: none;
    margin-bottom: 16px;
}
@media (max-width: 991.98px) {
    .bm-filter-toggle-row { display: block; }
}

.bm-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 100px;
    flex-shrink: 0;
    white-space: nowrap;
}
.bm-filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.bm-filter-btn svg { flex-shrink: 0; }

.predictions-market-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
@media (max-width: 991.98px) {
    .predictions-market-filters { display: none; }
}

.predictions-market-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 100px;
}
.predictions-market-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    text-decoration: none;
}
.predictions-market-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.bm-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s var(--ease-smooth);
}
.bm-filter-overlay.open {
    display: flex;
    opacity: 1;
}
.bm-filter-modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s var(--ease-spring);
}
.bm-filter-overlay.open .bm-filter-modal {
    transform: translateY(0);
}
@media (max-width: 991.98px) {
    .bm-filter-modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(100%);
        transition: transform 0.4s var(--ease-spring);
    }
    .bm-filter-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .bm-filter-overlay.open .bm-filter-modal {
        transform: translateY(0);
    }
}

.bm-filter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
}
.bm-filter-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.bm-filter-modal-close {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: color 0.2s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bm-filter-modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-primary);
}
.bm-filter-modal-body {
    padding: 18px 22px 22px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bm-filter-modal-body .predictions-market-btn {
    flex: 0 1 auto;
}
/* Full-width dropdowns inside the filter modal wrapper */
#bm-filter-modal-body .bm-dd-wrap {
    width: 100%;
}
#bm-filter-modal-body .bm-dd-btn {
    width: 100%;
    justify-content: space-between;
}

/* ============================================================
   6c. FILTER SLIDE-OVER PANEL
   ============================================================ */
.bm-filter-panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 10000;
    justify-content: flex-end;
    transition: background 0.35s var(--ease-smooth);
}
.bm-filter-panel-overlay.open {
    display: flex;
}
.bm-filter-panel {
    width: min(380px, 85vw);
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    border-radius: 24px 0 0 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-spring);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
}
.bm-filter-panel-overlay.open .bm-filter-panel {
    transform: translateX(0);
}
@media (max-width: 767.98px) {
    .bm-filter-panel {
        width: 100%;
        border-radius: 0;
    }
}
.bm-filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.bm-filter-panel-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}
.bm-filter-panel-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    flex-shrink: 0;
}
.bm-filter-panel-close:hover {
    background: var(--accent);
    color: #fff;
}
.bm-filter-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.bm-filter-panel-body .bm-dd-wrap {
    width: 100%;
}
.bm-filter-panel-body .bm-dd-btn {
    width: 100%;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 13px;
}

/* ── Filter Panel Footer ── */
.bm-filter-panel-footer {
    display: flex;
    gap: 10px;
    padding: 16px 22px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}
.bm-filter-btn-reset,
.bm-filter-btn-apply {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.bm-filter-btn-reset {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.bm-filter-btn-reset:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}
.bm-filter-btn-apply {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.bm-filter-btn-apply:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* ============================================================
   7. HOME SECTION CARDS
   ============================================================ */
.home-section-card {
    background: var(--bg-card);
    padding: 24px;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
}
.home-section-card .section-title {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.home-section-card .section-title i {
    color: var(--accent);
}
@media (max-width: 767.98px) {
    .home-section-card { padding: 12px; }
    .home-section-card .section-title { font-size: 16px; }
}

/* ============================================================
   8. MATCH FIXTURE PAGE
   ============================================================ */
.fixture-detail-wrapper {
    background: var(--bg-primary);
    padding: 40px 0 60px;
}

/* ---- Fixture Section Headers ---- */
.fixture-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.fixture-section-header .section-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}
.fixture-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Fixture Cards ---- */
.fixture-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.fixture-card-header { padding: 18px 24px 0; }
.fixture-card-body { padding: 24px; }
.fixture-card-body:first-child { padding-top: 24px; }

/* ---- Match Header Card ---- */
.match-header-card {
    background: linear-gradient(135deg, #1E293B 0%, #253245 50%, #1E293B 100%);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}
.match-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.match-header-card .league-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-bottom: 24px;
}
.match-header-card .league-badge img {
    height: 16px;
    width: 16px;
    object-fit: contain;
}
.match-header-card .team-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.match-header-card .team-block {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.match-header-card .team-block.home {
    justify-content: flex-end;
    text-align: right;
}
.match-header-card .team-block.away {
    justify-content: flex-start;
    text-align: left;
}
.match-header-card .team-block .team-logo-wrap {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.match-header-card .team-block .team-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.match-header-card .team-block .team-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.match-header-card .team-block .team-name {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    font-family: var(--font-display);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.match-header-card .team-block .team-form {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}
.match-header-card .team-block.home .team-info { align-items: flex-end; }
.match-header-card .team-block.home .team-form { justify-content: flex-end; }
.match-header-card .team-block.away .team-info { align-items: flex-start; }
.match-header-card .team-block.away .team-form { justify-content: flex-start; }
.match-header-card .team-block .team-form .form-badge {
    width: 20px;
    height: 20px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
}
.match-header-card .score-block {
    text-align: center;
    min-width: 100px;
    flex-shrink: 0;
}
.match-header-card .score-block .score-display {
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    font-family: var(--font-display);
    line-height: 1;
}
.match-header-card .score-block .score-display .score-sep {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 6px;
}
.match-header-card .score-block .badge-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 3, 3, 0.15);
    color: #FF4444;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}
.match-header-card .score-block .badge-live .dot {
    width: 6px;
    height: 6px;
    background: #FF4444;
    border-radius: 50%;
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.match-header-card .score-block .time-display {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}
.match-header-card .match-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.match-header-card .match-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}
@media (max-width: 768px) {
    .match-header-card { padding: 24px 16px; }
    .match-header-card .team-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .match-header-card .team-block.home,
    .match-header-card .team-block.away {
        flex-direction: row;
        justify-content: center;
    }
    .match-header-card .team-block.home .team-info {
        align-items: flex-start;
        order: 2;
    }
    .match-header-card .team-block.home .team-logo-wrap { order: 1; }
    .match-header-card .team-block.home .team-form { justify-content: flex-start; }
    .match-header-card .team-block .team-logo-wrap { width: 56px; height: 56px; }
    .match-header-card .team-block .team-name { font-size: 16px; }
    .match-header-card .score-block .score-display { font-size: 36px; }
    .match-header-card .match-meta { flex-direction: column; align-items: center; gap: 8px; }
}

/* ---- Prediction Highlight Card ---- */
.prediction-highlight {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 28px 24px;
    margin-bottom: 24px;
}
.prediction-highlight .prediction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}
.prediction-highlight .prediction-grid .pred-item {
    padding: 12px 8px;
    border-right: 1px solid var(--border-color);
}
.prediction-highlight .prediction-grid .pred-item:last-child { border-right: none; }
.prediction-highlight .prediction-grid .pred-item .pred-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 6px;
}
.prediction-highlight .prediction-grid .pred-item .pred-value {
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
}
.prediction-highlight .prediction-grid .pred-item .pred-value.market-value {
    font-size: 12px;
    font-family: var(--font-sans);
    padding: 4px 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    display: inline-block;
    color: var(--text-secondary);
}
.prediction-highlight .prediction-grid .pred-item .pred-value.tip-value {
    font-size: 26px;
    color: var(--accent);
}
.prediction-highlight .prediction-grid .pred-item .pred-value.prob-value { font-size: 22px; }
.prediction-highlight .prediction-grid .pred-item .pred-value.odds-value { font-size: 22px; }
@media (max-width: 768px) {
    .prediction-highlight .prediction-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prediction-highlight .prediction-grid .pred-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 16px;
    }
    .prediction-highlight .prediction-grid .pred-item:nth-child(2n) { border-right: none; }
    .prediction-highlight .prediction-grid .pred-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ---- H2H Table ---- */
.h2h-table-modern {
    width: 100%;
    border-collapse: collapse;
}
.h2h-table-modern td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
}
.h2h-table-modern tr:last-child td { border-bottom: none; }
.h2h-table-modern td.h2h-date {
    width: 20%;
    font-size: 12px;
    color: var(--text-tertiary);
}
.h2h-table-modern td.h2h-home {
    width: 30%;
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
}
.h2h-table-modern td.h2h-score {
    width: 20%;
    text-align: center;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--accent);
}
.h2h-table-modern td.h2h-away {
    width: 30%;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

/* ---- Stats Bars ---- */
.stats-row { margin-bottom: 20px; }
.stats-row:last-child { margin-bottom: 0; }
.stats-row .stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.stats-row .stats-header .stat-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.stats-row .stats-header .stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
}
.stats-row .progress-bar-wrap {
    height: 6px;
    border-radius: 3px;
    background: var(--border-light);
    display: flex;
    overflow: hidden;
}
.stats-row .progress-bar-wrap .bar-home {
    background: var(--accent);
    transition: width 0.6s ease;
}
.stats-row .progress-bar-wrap .bar-away {
    background: var(--text-secondary);
    transition: width 0.6s ease;
}

/* ---- Standings Table ---- */
.standings-group { margin-bottom: 32px; }
.standings-group:last-child { margin-bottom: 0; }
.standings-group h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}
.standings-table-modern { width: 100%; border-collapse: collapse; }
.standings-table-modern th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    font-weight: 600;
    padding: 10px 8px;
    border-bottom: 2px solid var(--border-color);
}
.standings-table-modern td {
    font-size: 13px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.standings-table-modern tr.active-team td {
    background: var(--accent-soft);
    font-weight: 600;
    color: var(--text-primary);
}
.standings-table-modern tr:last-child td { border-bottom: none; }
.standings-table-modern .rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

/* ---- Discussion ---- */
.discussion-card .comment-input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    width: 100%;
    transition: border-color 0.3s;
}
.discussion-card .comment-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.discussion-card .comment-input::placeholder { color: var(--text-tertiary); }

/* ---- Empty State (small) ---- */
.empty-state-sm {
    padding: 32px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ---- Back Link ---- */
.back-to-home,
.blog-back-nav,
.back-to-home:hover,
.blog-back-nav:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ============================================================
   9. BLOG CARDS
   ============================================================ */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.blog-card .blog-card-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    position: relative;
}
.blog-card .blog-card-img .blog-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}
.blog-card .blog-card-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card .blog-card-date {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.blog-card .blog-card-date i { font-size: 13px; }
.blog-card .blog-card-title {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card .blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card .blog-card-title a:hover { color: var(--accent); }
.blog-card .blog-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.blog-card .blog-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    transition: gap 0.2s;
}
.blog-card .blog-card-readmore:hover {
    gap: 10px;
    text-decoration: none;
}
.blog-card .blog-card-readmore i {
    font-size: 11px;
    transition: transform 0.2s;
}
.blog-card .blog-card-readmore:hover i { transform: translateX(3px); }
@media (max-width: 991.98px) {
    .blog-card .blog-card-img { height: 160px; }
    .blog-card .blog-card-title { font-size: 16px; }
}

/* ---- Blog Index Page ---- */
.blog-index-wrapper {
    background: var(--bg-primary);
    padding: 40px 0 60px;
}
.blog-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}
.blog-section-header .section-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}
.blog-section-header .section-text h2 {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-section-header .section-text p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 0;
}

/* ---- Blog Empty State ---- */
.blog-empty-state {
    padding: 60px 20px;
    text-align: center;
}
.blog-empty-state .empty-icon {
    font-size: 48px;
    color: var(--text-quaternary);
    margin-bottom: 16px;
}
.blog-empty-state h4 {
    font-family: var(--font-display);
    color: var(--text-tertiary);
    font-size: 18px;
    margin-bottom: 4px;
}
.blog-empty-state p {
    color: var(--text-quaternary);
    font-size: 14px;
    margin-bottom: 0;
}

/* ---- Blog Pagination ---- */
.blog-pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.blog-pagination-wrapper .pagination { gap: 4px; }
.blog-pagination-wrapper .page-item .page-link {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: all 0.2s;
}
.blog-pagination-wrapper .page-item .page-link:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
    color: var(--accent);
}
.blog-pagination-wrapper .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
}
.blog-pagination-wrapper .page-item.disabled .page-link {
    color: var(--text-quaternary);
    pointer-events: none;
}

/* ---- Recent Winnings Pagination ---- */
.rw-pagination-wrapper {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}
.rw-pagination-wrapper .pagination { gap: 4px; margin: 0; }
.rw-pagination-wrapper .page-item .page-link {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: all 0.2s;
}
.rw-pagination-wrapper .page-item .page-link:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
    color: var(--accent);
}
.rw-pagination-wrapper .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
}
.rw-pagination-wrapper .page-item.disabled .page-link {
    color: var(--text-quaternary);
    pointer-events: none;
    opacity: 0.5;
}

/* ---- Blog Show Page ---- */
.blog-show-wrapper {
    background: var(--bg-primary);
    padding: 40px 0 60px;
}
.blog-article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-bottom: 40px;
}
.blog-article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}
.blog-article-header .article-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.blog-article-header .article-title {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 12px;
}
.blog-article-header .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}
.blog-article-header .article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.blog-article-header .article-meta .meta-item i { font-size: 14px; color: var(--text-quaternary); }
.blog-article-header .article-meta .meta-sep { color: var(--border-input); }
.blog-article-featured-img {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 32px;
}
.blog-article-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-secondary);
}
.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4,
.blog-article-content h5 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 14px;
    font-weight: 700;
}
.blog-article-content h2 { font-size: 24px; }
.blog-article-content h3 { font-size: 20px; }
.blog-article-content p { margin-bottom: 16px; }
.blog-article-content a {
    color: var(--accent);
    font-weight: 600;
}
.blog-article-content a:hover { color: var(--accent-hover); }
.blog-article-content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}
.blog-article-content blockquote {
    border-left: 4px solid var(--accent);
    background: var(--bg-primary);
    padding: 16px 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-secondary);
}
.blog-article-content ul,
.blog-article-content ol { padding-left: 24px; margin-bottom: 16px; }
.blog-article-content li { margin-bottom: 6px; }
.blog-article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.blog-article-content table th,
.blog-article-content table td { padding: 10px 14px; border: 1px solid var(--border-color); font-size: 14px; }
.blog-article-content table th {
    background: var(--bg-primary);
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-share-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}
.blog-share-row .share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
}
.blog-share-row .share-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.blog-share-row .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.blog-share-row .share-btn.fb { background: #1877F2; }
.blog-share-row .share-btn.tw { background: #1DA1F2; }
.blog-share-row .share-btn.wa { background: #25D366; }

/* ---- Related Article Card ---- */
.related-article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.related-article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.related-article-card .related-img {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.related-article-card .related-body { padding: 16px; }
.related-article-card .related-date {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 6px;
}
.related-article-card .related-title {
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-article-card .related-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.related-article-card .related-title a:hover { color: var(--accent); }

@media (max-width: 991.98px) {
    .blog-index-wrapper,
    .blog-show-wrapper { padding: 24px 0 40px; }
    .blog-index-wrapper .container,
    .blog-show-wrapper .container { padding-left: 8px; padding-right: 8px; }
    .blog-article-card { padding: 24px 20px; }
    .blog-article-header .article-title { font-size: 24px; }
    .blog-article-featured-img { height: 240px; }
    .blog-article-content { font-size: 15px; }
}

/* ============================================================
   10. VIP PAGES
   ============================================================ */
/* ============================================================
   11. LEAGUES DIRECTORY
   ============================================================ */
.leagues-page-wrapper {
    min-height: 100vh;
    padding: 40px 0 60px;
}
.leagues-page-wrapper .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}
.leagues-header { margin-bottom: 36px; }
.leagues-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.leagues-header p {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin: 0;
}
.leagues-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.leagues-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}
.leagues-stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Country Sections */
.league-country-section {
    margin-bottom: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.league-country-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.league-country-header:hover { background: var(--bg-primary); }
.league-country-header .country-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.league-country-header .country-flag-placeholder {
    width: 28px;
    height: 20px;
    border-radius: 2px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-tertiary);
}
.league-country-header h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex: 1;
}
.league-country-header .league-count {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}
.league-country-header .collapse-icon {
    color: var(--text-tertiary);
    transition: transform 0.2s;
}
.league-country-header .collapse-icon.collapsed { transform: rotate(-90deg); }
.league-country-body { padding: 8px 8px; }
.league-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.league-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    transition: all 0.15s;
    border-radius: var(--radius-sm);
}
.league-card:hover {
    background: var(--bg-primary);
    text-decoration: none;
}
.league-card .league-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}
.league-card .league-logo-placeholder {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 600;
}
.league-card .league-info { flex: 1; min-width: 0; }
.league-card .league-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.league-card .league-type {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.league-card .league-arrow {
    color: var(--text-quaternary);
    font-size: 12px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
}
.league-card:hover .league-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Search */
.leagues-search-wrap {
    position: relative;
    margin-bottom: 28px;
}
.leagues-search-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 16px;
}
.leagues-search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    box-shadow: var(--shadow-sm);
}
.leagues-search-input:focus { border-color: var(--accent); }
.leagues-search-input::placeholder { color: var(--text-quaternary); }

@media (max-width: 767px) {
    .leagues-page-wrapper { padding: 20px 0 40px; }
    .leagues-header h1 { font-size: 1.6rem; }
    .league-grid { grid-template-columns: 1fr; }
    .league-country-body { padding: 4px; }
    .leagues-stats { gap: 16px; flex-wrap: wrap; }
}

/* ============================================================
   14. LEAGUE RANKING / STANDINGS
   ============================================================ */
.bm-ranking-tabs-wrapper { padding: 16px 0; }
.bm-ranking-tabs-main {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}
.bm-rank-tab {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    cursor: pointer;
}
.bm-rank-tab.active { color: var(--text-primary); }
.bm-rank-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}
.bm-ranking-subtabs {
    display: flex;
    gap: 8px;
    padding: 0 20px;
}
.bm-subtab {
    background: var(--bg-primary);
    border: none;
    color: var(--text-tertiary);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}
.bm-subtab.active {
    background: var(--accent);
    color: #FFFFFF;
}
.bm-table-ranking {
    color: var(--text-primary);
    font-size: 13px;
}
.bm-table-ranking th {
    border: none;
    color: var(--text-tertiary);
    font-size: 11px;
    padding: 12px;
}
.bm-table-ranking td {
    border-top: 1px solid var(--border-color);
    padding: 10px 12px;
    vertical-align: middle;
}
.bm-rank-indicator {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    background: var(--bg-primary);
    color: var(--text-primary);
}
.bm-rank-team {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bm-team-logo-tiny { width: 20px; height: 20px; object-fit: contain; }

/* ============================================================
   15. SEARCH BAR (Rounded)
   ============================================================ */
.bm-search-bar-rounded { max-width: 100%; }
.bm-search-inner {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}
.bm-search-inner i {
    color: var(--text-tertiary);
    margin-right: 12px;
}
.bm-search-input-field {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 14px;
}
.bm-search-input-field:focus { outline: none; }
.bm-search-input-field::placeholder { color: var(--text-tertiary); }

/* ============================================================
   16. BUTTON OVERRIDES
   ============================================================ */
.btn-primary {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 12px 28px !important;
    transition: all 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--accent-glow);
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
}

/* ============================================================
   17. CATEGORY HERO
   ============================================================ */
/* (Uses the component's inline styles — kept minimal) */

/* ============================================================
   18. DATE NAVIGATION
   ============================================================ */
/* (Uses the component's inline styles — kept minimal) */

/* ============================================================
   19. INFO ARTICLE
   ============================================================ */
.bm-info-article-dynamic {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
    padding: 32px !important;
}
.bm-info-article-dynamic,
.bm-article-content {
    color: var(--text-secondary) !important;
    line-height: 1.8;
}
.bm-info-article-dynamic h1, .bm-article-content h1,
.bm-info-article-dynamic h2, .bm-article-content h2,
.bm-info-article-dynamic h3, .bm-article-content h3,
.bm-info-article-dynamic h4, .bm-article-content h4 {
    color: var(--accent, #3B82F6) !important;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-left: none !important;
    padding-left: 0 !important;
}
.bm-info-article-dynamic p, .bm-article-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.bm-info-article-dynamic ul, .bm-article-content ul,
.bm-info-article-dynamic ol, .bm-article-content ol {
    padding-left: 20px;
    margin-bottom: 1rem;
}
.bm-info-article-dynamic li, .bm-article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}
.bm-info-article-dynamic a, .bm-article-content a {
    color: var(--accent);
    text-decoration: underline;
}
.bm-info-article-dynamic strong, .bm-article-content strong {
    color: var(--text-primary);
    font-weight: 800;
}
.bm-info-article-dynamic * {
    color: var(--text-secondary) !important;
}
.bm-info-article-dynamic h1,
.bm-info-article-dynamic h2,
.bm-info-article-dynamic h3,
.bm-info-article-dynamic h4 {
    color: var(--accent, #3B82F6) !important;
}
.bm-info-article-dynamic strong {
    color: var(--text-primary) !important;
}
.bm-info-article-dynamic a,
.bm-info-article-dynamic a * {
    color: var(--accent) !important;
    text-decoration: underline !important;
}

/* ============================================================
   20. MISC / UTILITY
   ============================================================ */
.bm-no-sidebars .bm-main-content { margin-left: 0 !important; }
.bm-no-sidebars .bm-content-body {
    padding: 0;
    background: var(--bg-primary);
}

/* Hide mobile break cells */
.hide-mobile-cell { display: table-cell; }
@media (max-width: 767px) {
    .hide-mobile-cell { display: none !important; }
}

/* Back to Home button (predictions.all) */
.predictions-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    background: var(--accent);
    color: #FFFFFF;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.predictions-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    color: #FFFFFF;
}

/* Featured Match Carousel */
/* (Uses the component's inline styles — kept minimal) */

/* Confirm Modal */
/* (Uses the component's inline styles — kept minimal) */

/* Category Tabs */
/* (Uses the component's inline styles — kept minimal) */

/* ============================================================
   21. RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 900px) {
    body.home-page .bm-main-content {
        margin-left: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .leagues-page-wrapper .container,
    .predictions-page-wrapper .container,
    .blog-index-wrapper .container,
    .blog-show-wrapper .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    .predictions-page-wrapper { padding: 0 0 16px 0; }
    .predictions-page-wrapper .container { overflow: hidden; }
    .predictions-league-header { padding: 10px 12px; gap: 6px; }
    .predictions-table-headers { display: none; }
    .home-content-row { padding: 0; }
    .hideSM { display: none !important; }
}

/* ============================================================
   22. TEMPLATE LAYOUT OVERRIDES (for pages using template-style)
   ============================================================ */
body.template-layout .bm-sidebar {
    display: none !important;
}
body.template-layout .bm-main-content {
    margin-left: 0 !important;
}
body.template-layout .bm-content-body {
    padding: 0 !important;
    background: transparent !important;
}
body.template-layout .bm-layout-wrapper {
    background: var(--bg-primary);
}

/* ============================================================
   23. NAVBAR — Link & Dropdown Styles
   ============================================================ */
.nav-link-custom {
    position: relative;
    transition: all 0.3s ease;
}
.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link-custom:hover::after {
    width: 80%;
}
.nav-link-custom:hover {
    color: var(--accent) !important;
    transform: translateY(-2px);
}

.dropdown-menu .dropdown-item {
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 2px 8px;
}
.dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #04145dff !important;
    transform: translateX(5px);
}

.nav-btn-custom {
    transition: all 0.3s ease;
    border-color: rgba(255, 255, 255, 0.5) !important;
}
.nav-btn-custom:hover {
    background-color: #fff !important;
    color: #04145dff !important;
    border-color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.vip-btn-custom {
    transition: all 0.3s ease;
}
.vip-btn-custom:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.5) !important;
}
.nav-item.active .nav-link {
    color: var(--accent) !important;
}
@media (max-width: 768px) {
    .navbar-nav .nav-item {
        margin: 5px 0 !important;
    }
    .nav-btn-custom {
        display: block;
        text-align: center;
    }
}

/* ============================================================
   24. MOBILE SIDEBAR (in navbar)
   ============================================================ */
.mobile-sidebar-content {
    overflow-y: auto;
    height: 100%;
    position: relative;
    z-index: 1;
    background: var(--nav-mobile-bg);
}
@media (max-width: 991.98px) {
    .menu-opened .mobile-sidebar-content {
        display: block !important;
        height: calc(100vh - 60px);
    }
}
.ms-sidebar {
    padding: 12px 0 20px;
}
.ms-section {
    margin-bottom: 6px;
}
.ms-title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--nav-text-active);
    padding: 14px 20px 8px;
    margin: 0;
}
.ms-list {
    display: flex;
    flex-direction: column;
}
.ms-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}
.ms-link:hover {
    background: var(--nav-dropdown-hover);
    color: var(--nav-text-active);
    text-decoration: none;
}
.ms-link-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-link-icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--nav-text-active);
    flex-shrink: 0;
}
.ms-flag {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}
.ms-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    margin-bottom: 4px;
}
.ms-search-wrap svg {
    color: var(--nav-text);
    flex-shrink: 0;
}
.ms-search-input {
    width: 100%;
    background: var(--nav-icon-bg);
    border: 1px solid var(--nav-border);
    border-radius: 20px;
    padding: 7px 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-sans);
    outline: none;
    box-sizing: border-box;
}
.ms-search-input:focus {
    border-color: var(--nav-text-active);
    background: transparent;
}
.ms-search-input::placeholder {
    color: var(--text-tertiary);
}
.ms-countries-list {
    max-height: none;
    overflow-y: visible;
}
.ms-country-link {
    padding: 7px 20px;
}
.ms-empty {
    padding: 10px 20px 14px;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ============================================================
   25. HOME SIDEBAR
   ============================================================ */
.home-sidebar {
    width: 240px;
    flex-shrink: 0;
    align-self: flex-start;
}
.hs-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    overflow: hidden;
}
.hs-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    padding: 14px 16px 8px;
    margin: 0;
}
.hs-list {
    display: flex;
    flex-direction: column;
}
.hs-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 500;
    transition: all 0.15s;
}
.hs-link:last-child {
    padding-bottom: 10px;
}
.hs-link:hover {
    background: var(--accent-soft);
    color: var(--text-primary);
    text-decoration: none;
}
.hs-link.active,
.hs-market-link.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-right: 3px solid var(--accent);
}
/* Sub-market grouping */
.hs-subtitle {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px 4px;
    margin: 0;
    border-top: 1px solid var(--border-light);
}
.hs-subtitle:first-of-type {
    border-top: none;
}
.hs-sublist {
    display: flex;
    flex-direction: column;
}
.hs-sublist .hs-link {
    padding: 6px 16px 6px 20px;
    font-size: 12px;
}
.hs-sublist .hs-link .hs-link-text {
    font-size: 12px;
}

/* Mobile sidebar - Markets section link sizing */
.ms-sidebar .hs-sublist .ms-link {
    padding: 6px 16px 6px 20px;
    font-size: 12px;
}
.ms-sidebar .hs-subtitle {
    padding: 8px 16px 4px;
}


.hs-link-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hs-link-icon {
    width: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--accent);
    flex-shrink: 0;
}
.hs-flag {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}
.hs-search-wrap {
    position: relative;
    padding: 0 16px;
    margin-bottom: 6px;
}
.hs-search-wrap i {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 13px;
}
.hs-search-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 7px 12px 7px 30px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-sans);
    outline: none;
    box-sizing: border-box;
}
.hs-search-input:focus {
    border-color: var(--accent);
}
.hs-search-input::placeholder {
    color: var(--text-tertiary);
}
.hs-countries-list {
    max-height: 400px;
    overflow-y: auto;
}
.hs-country-link {
    padding: 7px 16px;
}
.hs-empty {
    padding: 10px 16px 14px;
    font-size: 13px;
    color: var(--text-tertiary);
    font-family: var(--font-sans);
}
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #E0E0E0;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #C0C0C0;
}
@media (max-width: 991.98px) {
    .home-sidebar {
        display: none;
    }
}

/* ============================================================
   26. MOBILE BOTTOM NAV
   ============================================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--nav-border);
    padding: 6px 0 constant(safe-area-inset-bottom);
    padding: 6px 0 env(safe-area-inset-bottom);
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
@media (max-width: 991.98px) {
    .mobile-bottom-nav {
        display: flex;
    }
}
.mb-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    text-decoration: none;
    color: var(--nav-text);
    transition: color 0.2s ease;
    min-width: 56px;
}
.mb-nav-item:hover,
.mb-nav-item.active {
    color: var(--accent);
    text-decoration: none;
}
.mb-nav-icon {
    display: block;
    transition: transform 0.2s ease;
}
.mb-nav-item.active .mb-nav-icon {
    transform: scale(1.1);
}
.mb-nav-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1;
}
@media (max-width: 991.98px) {
    .bm-main-content {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }
}

/* ============================================================
   27. PREMIUM HERO BANNER
   ============================================================ */
.premium-hero {
    min-height: 620px;
    background: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    width: 100%;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 1;
}
.hero-accent-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: heroGlow 4s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    width: 100%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    animation: fadeInUp 0.6s ease-out;
}
.hero-badge .badge-text {
    font-family: var(--font-display);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 1.5px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}
.hero-highlight {
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-display);
}
.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    margin-top: 0.5rem;
    text-transform: uppercase;
}
.hero-description {
    font-size: 1.125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 580px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}
.hero-cta {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}
.btn-hero-primary {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 20px var(--accent-glow);
    cursor: pointer;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    color: #FFFFFF;
}
.btn-hero-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}
.hero-stats {
    animation: fadeInUp 0.6s ease-out 0.4s both;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-item {
    text-align: center;
}
.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 991px) {
    .premium-hero { min-height: 500px; padding: 3rem 1.5rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-description { font-size: 1rem; }
}
@media (max-width: 767px) {
    .premium-hero { min-height: auto; padding: 3rem 1.25rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-cta { flex-direction: column; width: 100%; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
    .stat-value { font-size: 2rem; }
    .hero-stats { gap: 1.5rem !important; }
}



/* ============================================================
   29. CATEGORY TABS
   ============================================================ */
.category-section {
    padding: 48px 0;
}
.category-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: -0.3px;
}
.category-tabs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}
.category-wrapper {
    flex: 0 0 auto;
}
.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}
.category-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    text-decoration: none;
}
.category-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.category-tab.active .category-icon {
    color: #fff;
}
.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent);
    transition: color 0.2s;
}
.category-tab:hover .category-icon {
    color: var(--accent);
}
.category-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}
.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}
.view-more-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
@media (max-width: 768px) {
    .category-section { padding: 32px 0; }
    .category-section-title { font-size: 18px; margin-bottom: 20px; }
    .category-tab { padding: 8px 16px; font-size: 13px; }
}

/* ============================================================
   30. DATE NAVIGATION
   ============================================================ */
/* ---- Date Nav: Reference-style dark pill ---- */
.bm-date-nav {
    display: flex;
    align-items: center;
    background: #18181b;
    border: none;
    border-radius: 14px;
    padding: 4px 6px;
    gap: 0;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.22);
    margin-bottom: 16px;
    width: 100%;
}

/* Scrollable date items area */
.bm-date-items-wrapper {
    display: flex;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    align-items: center;
    gap: 0;
}
.bm-date-items-wrapper::-webkit-scrollbar { display: none; }

/* LIVE link */
.bm-date-live {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px 8px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 10px;
    transition: color 0.15s;
    flex-shrink: 0;
    gap: 0;
    line-height: 1;
    min-width: 52px;
}
.bm-date-live:hover { color: #fff; text-decoration: none; }
.bm-date-live.active {
    color: #3b82f6;
}
.bm-date-live .badge {
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    margin-top: 3px;
    line-height: 1.4;
}

/* Vertical divider */
.bm-date-divider {
    width: 1px;
    height: 28px;
    background: #2d2d35;
    flex-shrink: 0;
    margin: 0 2px;
}

/* Individual date item */
.bm-date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
    min-width: 54px;
    gap: 2px;
    flex-shrink: 0;
}
.bm-date-item:hover {
    background: #27272a;
    text-decoration: none;
}
.bm-date-item.active {
    background: transparent;
}
.bm-date-item.active .bm-date-day {
    color: #3b82f6;
    font-weight: 800;
}
.bm-date-item.active .bm-date-label {
    color: #3b82f6;
    font-weight: 700;
}

/* Day number (large) */
.bm-date-day {
    font-size: 17px;
    font-weight: 700;
    color: #d1d5db;
    line-height: 1;
    font-family: var(--font-display, sans-serif);
}

/* Day label (THU / TODAY / SAT etc.) */
.bm-date-label {
    font-size: 9px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
}

/* Calendar picker wrapper */
.bm-calendar-wrapper {
    padding: 0 4px 0 2px;
    flex-shrink: 0;
}
#bm-calendar-picker {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: color 0.2s, background 0.2s;
    border-radius: 10px;
}
#bm-calendar-picker:hover {
    background: #27272a;
    color: #d1d5db;
}
#bm-calendar-picker i {
    font-size: 15px;
    line-height: 1;
}
#bm-calendar-picker .bm-date-label {
    font-size: 9px;
    color: inherit;
}

/* Light-mode override: keep readable on white backgrounds */
html:not([data-theme="dark"]) .bm-date-nav {
    background: #1e1e24;
}


/* ============================================================
   31. FEATURED MATCH CAROUSEL
   ============================================================ */
.featured-matches-section {
    background: var(--bg-primary);
    padding: 40px 0;
}
.featured-carousel-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}
.carousel-track-container {
    overflow: hidden;
    margin-bottom: 20px;
}
.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.featured-slide {
    min-width: 100%;
    padding: 5px;
}
.fixture-card {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.fixture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none !important;
    transition: background 0.2s;
}
.fixture-header:hover { background: var(--bg-primary); }
.fixture-header .league-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.league-logo { width: 24px; height: 24px; object-fit: contain; }
.league-text { display: flex; flex-direction: column; line-height: 1.2; }
.league-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.country-name { font-size: 12px; color: var(--text-tertiary); }
.header-arrow { color: var(--text-quaternary); font-size: 12px; }
.fixture-body {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    min-height: 80px;
}
.time-column { width: 60px; flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--text-primary); padding-top: 4px; }
.teams-column { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.team-row { display: flex; align-items: center; gap: 12px; }
.team-logo { width: 20px; height: 20px; object-fit: contain; }
.team-name { font-size: 15px; color: var(--text-primary); font-weight: 500; }
.action-column { display: flex; align-items: center; gap: 15px; }
.tip-display { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.tip-badge { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 4px; }
.odds-display { font-size: 12px; color: var(--text-tertiary); }
.predict-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    white-space: nowrap;
}
.predict-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}
.nav-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.nav-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}
.dots { display: flex; gap: 6px; }
.dot { width: 8px; height: 8px; background: var(--text-quaternary); border-radius: 50%; cursor: pointer; transition: background 0.2s; }
.dot.active { background: var(--accent); }
@media (max-width: 576px) {
    .fixture-body { padding: 15px; }
    .time-column { width: 50px; font-size: 13px; }
    .team-name { font-size: 14px; }
    .action-column { flex-direction: column; gap: 8px; align-items: flex-end; margin-left: 10px; }
    .predict-btn { padding: 4px 10px; font-size: 12px; }
}

/* ============================================================
   32. LEAGUE STANDINGS
   ============================================================ */
.nav-pills .nav-link {
    outline: none !important;
    box-shadow: none !important;
}
.league-tab-btn {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}
.league-tab-btn:hover {
    background-color: var(--bg-card-secondary);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}
.league-tab-btn.active {
    background: linear-gradient(135deg, #1E293B 0%, var(--accent) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}
.standings-header {
    background: linear-gradient(135deg, #1E293B 0%, var(--accent) 100%);
    border-radius: 10px 10px 0 0;
    padding: 1rem 0.5rem;
    margin-bottom: 0;
}
.standings-header-cell {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.standings-body {
    background: var(--bg-card);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}
.standings-row {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
}
.standings-row:last-child { border-bottom: none; }
.standings-row:hover { background: var(--bg-primary); }
.team-cell { gap: 12px; }
.team-logo { width: 32px; height: 32px; object-fit: contain; }
.team-name { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
}
.stat-cell { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.points-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}
.form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.7rem;
    margin: 0 2px;
}
@media (max-width: 768px) {
    .team-name { font-size: 0.85rem; max-width: 150px; }
    .team-logo { width: 24px; height: 24px; }
    .rank-badge { width: 24px; height: 24px; font-size: 0.8rem; }
    .standings-row { padding: 0.75rem 0.25rem; }
    .standings-header { padding: 0.75rem 0.25rem; }
    .standings-header-cell { font-size: 0.75rem; }
    .league-tab-btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; margin-right: 0.25rem; margin-bottom: 0.25rem; }
    .nav-pills { gap: 0.25rem !important; }
}

/* ============================================================
   33. QUICK STATS
   ============================================================ */
.quick-stats-section {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.quick-stats-section .stat-card {
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.quick-stats-section .stat-card:hover {
    transform: translateY(-5px);
}
.quick-stats-section .stat-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}
.quick-stats-section .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.quick-stats-section .stat-text {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}
@media (max-width: 767px) {
    .quick-stats-section .stat-number { font-size: 1.5rem; }
    .quick-stats-section .stat-text { font-size: 0.75rem; }
    .quick-stats-section .stat-icon svg { width: 30px; height: 30px; }
}

/* ============================================================
   34. TIPS BAR
   ============================================================ */
.btn-success {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}
.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-secondary);
}
.btn-outline-secondary:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-input);
}

/* ============================================================
   35. COOKIE CONSENT
   ============================================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    padding: 20px;
    animation: slideUp 0.5s ease-out;
    border-top: 3px solid var(--accent);
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}
.cookie-consent.hiding {
    animation: slideDown 0.3s ease-out forwards;
}
.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}
.cookie-consent-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 5px;
}
.cookie-consent-icon svg { width: 32px; height: 32px; }
.cookie-consent-text h4 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}
.cookie-consent-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.cookie-btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.cookie-btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}
.cookie-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}
.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .cookie-consent { padding: 15px; }
    .cookie-consent-container { flex-direction: column; align-items: stretch; }
    .cookie-consent-content { flex-direction: column; text-align: center; align-items: center; }
    .cookie-consent-icon { margin-top: 0; }
    .cookie-consent-text h4 { font-size: 16px; }
    .cookie-consent-text p { font-size: 13px; }
    .cookie-consent-actions { width: 100%; flex-direction: column-reverse; }
    .cookie-btn { width: 100%; padding: 14px 20px; }
}

/* ============================================================
   36. NEWSLETTER POPUP
   ============================================================ */
.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
.newsletter-modal.hiding {
    animation: fadeOut 0.3s ease-out forwards;
}
.newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}
.newsletter-container {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(30, 41, 59, 0.3);
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
    border: 3px solid var(--accent);
}
.newsletter-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.newsletter-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}
.newsletter-content { padding: 40px 30px; text-align: center; }
.newsletter-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1E293B 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}
.newsletter-title { font-size: 28px; font-weight: 700; color: var(--text-primary); margin: 0 0 12px 0; }
.newsletter-description { font-size: 15px; color: var(--text-tertiary); line-height: 1.6; margin: 0 0 30px 0; }
.newsletter-input-group { display: flex; gap: 10px; margin-bottom: 15px; }
.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}
.newsletter-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.newsletter-submit {
    padding: 14px 32px;
    background: var(--accent);
    border: none;
    border-radius: 50px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
    position: relative;
}
.newsletter-submit:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}
.newsletter-message { padding: 12px 18px; border-radius: 10px; font-size: 14px; margin-top: 15px; }
.newsletter-message.success {
    background: rgba(16, 185, 129, 0.15);
    border-left: 4px solid #10b981;
    color: #047857;
}
.newsletter-message.error {
    background: rgba(239, 68, 68, 0.15);
    border-left: 4px solid #ef4444;
    color: #dc2626;
}
.newsletter-dismiss {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}
.newsletter-dismiss:hover { color: var(--accent); text-decoration: none; }
.newsletter-privacy { font-size: 12px; color: var(--text-quaternary); margin: 15px 0 0 0; }
@media (max-width: 768px) {
    .newsletter-container { max-width: 95%; border-radius: 15px; }
    .newsletter-content { padding: 30px 20px; }
    .newsletter-icon { width: 60px; height: 60px; }
    .newsletter-title { font-size: 24px; }
    .newsletter-input-group { flex-direction: column; }
    .newsletter-submit { width: 100%; }
}

/* ============================================================
   37. PRELOADER
   ============================================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
#preloader img {
    width: 80px;
    height: auto;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* ============================================================
   38. CONFIRM MODAL
   ============================================================ */
@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@font-face {
	font-family: 'Feather';
	src:
	url('../fonts/Feather.ttf') format('truetype'),
	url('../fonts/Feather.woff') format('woff'),
	url('../images/Feather.svg#Feather') format('svg');
	font-weight: normal;
	font-style: normal;
}
[class^="feather-"], [class*=" feather-"] {
	font-family: 'feather' !important;
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px;
}
.account-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}
.account-value {
    color: var(--text-primary);
    font-weight: 600;
}
.bm-btn.btn-sm {
    padding: 7px 16px;
    font-size: 13px;
}

/* ============================================================
   GENERIC CARD & SECTION TITLE
   ============================================================ */
.bm-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}
.bm-section-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 22px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

/* ============================================================
   APPLE ALERTS & BADGES
   ============================================================ */
.bm-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}
.bm-alert-success {
    background: color-mix(in srgb, var(--accent) 12%, var(--bg-card));
    border-color: color-mix(in srgb, var(--accent) 25%, var(--border-color));
    color: var(--accent);
}
.bm-alert-error {
    background: color-mix(in srgb, #EF4444 10%, var(--bg-card));
    border-color: color-mix(in srgb, #EF4444 25%, var(--border-color));
    color: #EF4444;
}
.bm-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.4;
}
.bm-badge-active {
    background: color-mix(in srgb, #22C55E 15%, var(--bg-card));
    color: #22C55E;
    border: 1px solid color-mix(in srgb, #22C55E 25%, var(--border-color));
}
.bm-badge-inactive {
    background: color-mix(in srgb, var(--text-tertiary) 12%, var(--bg-card));
    color: var(--text-tertiary);
    border: 1px solid color-mix(in srgb, var(--text-tertiary) 20%, var(--border-color));
}
.bm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.15s;
    text-decoration: none;
    line-height: 1.2;
}
.bm-btn-primary {
    background: var(--accent);
    color: #fff;
}
.bm-btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}
.bm-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.bm-btn-ghost:hover {
    background: color-mix(in srgb, var(--text-primary) 6%, transparent);
    color: var(--text-primary);
}
.bm-btn-danger {
    background: color-mix(in srgb, #EF4444 10%, var(--bg-card));
    color: #EF4444;
    border: 1px solid color-mix(in srgb, #EF4444 20%, var(--border-color));
}
.bm-btn-danger:hover {
    background: #EF4444;
    color: #fff;
}

/* ============================================================
   AUTH PAGES (Apple-inspired)
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-primary);
    box-sizing: border-box;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px 36px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}
.auth-card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}
.auth-card-logo img {
    max-height: 36px;
}
.auth-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}
.auth-card-sub {
    font-size: 14px;
    color: var(--text-tertiary);
    text-align: center;
    margin: 0 0 28px;
}
.auth-form-group {
    margin-bottom: 16px;
}
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    pointer-events: none;
    flex-shrink: 0;
}
.auth-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--border-input);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-card);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.auth-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-input::placeholder {
    color: var(--text-quaternary);
}
.auth-input.is-invalid {
    border-color: #EF4444;
}
.auth-input-error {
    font-size: 13px;
    color: #EF4444;
    margin-top: 4px;
    display: block;
}
.auth-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}
.auth-toggle-pass:hover {
    color: var(--text-primary);
}
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}
.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--border-input);
    accent-color: var(--accent);
    cursor: pointer;
}
.auth-forgot {
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.auth-forgot:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}
.auth-btn {
    width: 100%;
    padding: 13px 24px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.auth-btn:active {
    transform: translateY(0);
}
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-tertiary);
}
.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.auth-footer a:hover {
    text-decoration: underline;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-quaternary);
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }
    .auth-card-title { font-size: 20px; }
}

.feather-activity:before {
	content: "\e900";
}
.feather-airplay:before {
	content: "\e901";
}
.feather-alert-circle:before {
	content: "\e902";
}
.feather-alert-octagon:before {
	content: "\e903";
}
.feather-alert-triangle:before {
	content: "\e904";
}
.feather-align-center:before {
	content: "\e905";
}
.feather-align-justify:before {
	content: "\e906";
}
.feather-align-left:before {
	content: "\e907";
}
.feather-align-right:before {
	content: "\e908";
}
.feather-anchor:before {
	content: "\e909";
}
.feather-aperture:before {
	content: "\e90a";
}
.feather-archive:before {
	content: "\e90b";
}
.feather-arrow-down:before {
	content: "\e90c";
}
.feather-arrow-down-circle:before {
	content: "\e90d";
}
.feather-arrow-down-left:before {
	content: "\e90e";
}
.feather-arrow-down-right:before {
	content: "\e90f";
}
.feather-arrow-left:before {
	content: "\e910";
}
.feather-arrow-left-circle:before {
	content: "\e911";
}
.feather-arrow-right:before {
	content: "\e912";
}
.feather-arrow-right-circle:before {
	content: "\e913";
}
.feather-arrow-up:before {
	content: "\e914";
}
.feather-arrow-up-circle:before {
	content: "\e915";
}
.feather-arrow-up-left:before {
	content: "\e916";
}
.feather-arrow-up-right:before {
	content: "\e917";
}
.feather-at-sign:before {
	content: "\e918";
}
.feather-award:before {
	content: "\e919";
}
.feather-bar-chart:before {
	content: "\e91a";
}
.feather-bar-chart-2:before {
	content: "\e91b";
}
.feather-battery:before {
	content: "\e91c";
}
.feather-battery-charging:before {
	content: "\e91d";
}
.feather-bell:before {
	content: "\e91e";
}
.feather-bell-off:before {
	content: "\e91f";
}
.feather-bluetooth:before {
	content: "\e920";
}
.feather-bold:before {
	content: "\e921";
}
.feather-book:before {
	content: "\e922";
}
.feather-book-open:before {
	content: "\e923";
}
.feather-bookmark:before {
	content: "\e924";
}
.feather-box:before {
	content: "\e925";
}
.feather-briefcase:before {
	content: "\e926";
}
.feather-calendar:before {
	content: "\e927";
}
.feather-camera:before {
	content: "\e928";
}
.feather-camera-off:before {
	content: "\e929";
}
.feather-cast:before {
	content: "\e92a";
}
.feather-check:before {
	content: "\e92b";
}
.feather-check-circle:before {
	content: "\e92c";
}
.feather-check-square:before {
	content: "\e92d";
}
.feather-chevron-down:before {
	content: "\e92e";
}
.feather-chevron-left:before {
	content: "\e92f";
}
.feather-chevron-right:before {
	content: "\e930";
}
.feather-chevron-up:before {
	content: "\e931";
}
.feather-chevrons-down:before {
	content: "\e932";
}
.feather-chevrons-left:before {
	content: "\e933";
}
.feather-chevrons-right:before {
	content: "\e934";
}
.feather-chevrons-up:before {
	content: "\e935";
}
.feather-chrome:before {
	content: "\e936";
}
.feather-circle:before {
	content: "\e937";
}
.feather-clipboard:before {
	content: "\e938";
}
.feather-clock:before {
	content: "\e939";
}
.feather-cloud:before {
	content: "\e93a";
}
.feather-cloud-drizzle:before {
	content: "\e93b";
}
.feather-cloud-lightning:before {
	content: "\e93c";
}
.feather-cloud-off:before {
	content: "\e93d";
}
.feather-cloud-rain:before {
	content: "\e93e";
}
.feather-cloud-snow:before {
	content: "\e93f";
}
.feather-code:before {
	content: "\e940";
}
.feather-codepen:before {
	content: "\e941";
}
.feather-command:before {
	content: "\e942";
}
.feather-compass:before {
	content: "\e943";
}
.feather-copy:before {
	content: "\e944";
}
.feather-corner-down-left:before {
	content: "\e945";
}
.feather-corner-down-right:before {
	content: "\e946";
}
.feather-corner-left-down:before {
	content: "\e947";
}
.feather-corner-left-up:before {
	content: "\e948";
}
.feather-corner-right-down:before {
	content: "\e949";
}
.feather-corner-right-up:before {
	content: "\e94a";
}
.feather-corner-up-left:before {
	content: "\e94b";
}
.feather-corner-up-right:before {
	content: "\e94c";
}
.feather-cpu:before {
	content: "\e94d";
}
.feather-credit-card:before {
	content: "\e94e";
}
.feather-crop:before {
	content: "\e94f";
}
.feather-crosshair:before {
	content: "\e950";
}
.feather-database:before {
	content: "\e951";
}
.feather-delete:before {
	content: "\e952";
}
.feather-disc:before {
	content: "\e953";
}
.feather-dollar-sign:before {
	content: "\e954";
}
.feather-download:before {
	content: "\e955";
}
.feather-download-cloud:before {
	content: "\e956";
}
.feather-droplet:before {
	content: "\e957";
}
.feather-edit:before {
	content: "\e958";
}
.feather-edit-2:before {
	content: "\e959";
}
.feather-edit-3:before {
	content: "\e95a";
}
.feather-external-link:before {
	content: "\e95b";
}
.feather-eye:before {
	content: "\e95c";
}
.feather-eye-off:before {
	content: "\e95d";
}
.feather-facebook:before {
	content: "\e95e";
}
.feather-fast-forward:before {
	content: "\e95f";
}
.feather-feather:before {
	content: "\e960";
}
.feather-file:before {
	content: "\e961";
}
.feather-file-minus:before {
	content: "\e962";
}
.feather-file-plus:before {
	content: "\e963";
}
.feather-file-text:before {
	content: "\e964";
}
.feather-film:before {
	content: "\e965";
}
.feather-filter:before {
	content: "\e966";
}
.feather-flag:before {
	content: "\e967";
}
.feather-folder:before {
	content: "\e968";
}
.feather-folder-minus:before {
	content: "\e969";
}
.feather-folder-plus:before {
	content: "\e96a";
}
.feather-gift:before {
	content: "\e96b";
}
.feather-git-branch:before {
	content: "\e96c";
}
.feather-git-commit:before {
	content: "\e96d";
}
.feather-git-merge:before {
	content: "\e96e";
}
.feather-git-pull-request:before {
	content: "\e96f";
}
.feather-github:before {
	content: "\e970";
}
.feather-gitlab:before {
	content: "\e971";
}
.feather-globe:before {
	content: "\e972";
}
.feather-grid:before {
	content: "\e973";
}
.feather-hard-drive:before {
	content: "\e974";
}
.feather-hash:before {
	content: "\e975";
}
.feather-headphones:before {
	content: "\e976";
}
.feather-heart:before {
	content: "\e977";
}
.feather-help-circle:before {
	content: "\e978";
}
.feather-home:before {
	content: "\e979";
}
.feather-image:before {
	content: "\e97a";
}
.feather-inbox:before {
	content: "\e97b";
}
.feather-info:before {
	content: "\e97c";
}
.feather-instagram:before {
	content: "\e97d";
}
.feather-italic:before {
	content: "\e97e";
}
.feather-layers:before {
	content: "\e97f";
}
.feather-layout:before {
	content: "\e980";
}
.feather-life-buoy:before {
	content: "\e981";
}
.feather-link:before {
	content: "\e982";
}
.feather-link-2:before {
	content: "\e983";
}
.feather-linkedin:before {
	content: "\e984";
}
.feather-list:before {
	content: "\e985";
}
.feather-loader:before {
	content: "\e986";
}
.feather-lock:before {
	content: "\e987";
}
.feather-log-in:before {
	content: "\e988";
}
.feather-log-out:before {
	content: "\e989";
}
.feather-mail:before {
	content: "\e98a";
}
.feather-map:before {
	content: "\e98b";
}
.feather-map-pin:before {
	content: "\e98c";
}
.feather-maximize:before {
	content: "\e98d";
}
.feather-maximize-2:before {
	content: "\e98e";
}
.feather-menu:before {
	content: "\e98f";
}
.feather-message-circle:before {
	content: "\e990";
}
.feather-message-square:before {
	content: "\e991";
}
.feather-mic:before {
	content: "\e992";
}
.feather-mic-off:before {
	content: "\e993";
}
.feather-minimize:before {
	content: "\e994";
}
.feather-minimize-2:before {
	content: "\e995";
}
.feather-minus:before {
	content: "\e996";
}
.feather-minus-circle:before {
	content: "\e997";
}
.feather-minus-square:before {
	content: "\e998";
}
.feather-monitor:before {
	content: "\e999";
}
.feather-moon:before {
	content: "\e99a";
}
.feather-more-horizontal:before {
	content: "\e99b";
}
.feather-more-vertical:before {
	content: "\e99c";
}
.feather-move:before {
	content: "\e99d";
}
.feather-music:before {
	content: "\e99e";
}
.feather-navigation:before {
	content: "\e99f";
}
.feather-navigation-2:before {
	content: "\e9a0";
}
.feather-octagon:before {
	content: "\e9a1";
}
.feather-package:before {
	content: "\e9a2";
}
.feather-paperclip:before {
	content: "\e9a3";
}
.feather-pause:before {
	content: "\e9a4";
}
.feather-pause-circle:before {
	content: "\e9a5";
}
.feather-percent:before {
	content: "\e9a6";
}
.feather-phone:before {
	content: "\e9a7";
}
.feather-phone-call:before {
	content: "\e9a8";
}
.feather-phone-forwarded:before {
	content: "\e9a9";
}
.feather-phone-incoming:before {
	content: "\e9aa";
}
.feather-phone-missed:before {
	content: "\e9ab";
}
.feather-phone-off:before {
	content: "\e9ac";
}
.feather-phone-outgoing:before {
	content: "\e9ad";
}
.feather-pie-chart:before {
	content: "\e9ae";
}
.feather-play:before {
	content: "\e9af";
}
.feather-play-circle:before {
	content: "\e9b0";
}
.feather-plus:before {
	content: "\e9b1";
}
.feather-plus-circle:before {
	content: "\e9b2";
}
.feather-plus-square:before {
	content: "\e9b3";
}
.feather-pocket:before {
	content: "\e9b4";
}
.feather-power:before {
	content: "\e9b5";
}
.feather-printer:before {
	content: "\e9b6";
}
.feather-radio:before {
	content: "\e9b7";
}
.feather-refresh-ccw:before {
	content: "\e9b8";
}
.feather-refresh-cw:before {
	content: "\e9b9";
}
.feather-repeat:before {
	content: "\e9ba";
}
.feather-rewind:before {
	content: "\e9bb";
}
.feather-rotate-ccw:before {
	content: "\e9bc";
}
.feather-rotate-cw:before {
	content: "\e9bd";
}
.feather-rss:before {
	content: "\e9be";
}
.feather-save:before {
	content: "\e9bf";
}
.feather-scissors:before {
	content: "\e9c0";
}
.feather-search:before {
	content: "\e9c1";
}
.feather-send:before {
	content: "\e9c2";
}
.feather-server:before {
	content: "\e9c3";
}
.feather-settings:before {
	content: "\e9c4";
}
.feather-share:before {
	content: "\e9c5";
}
.feather-share-2:before {
	content: "\e9c6";
}
.feather-shield:before {
	content: "\e9c7";
}
.feather-shield-off:before {
	content: "\e9c8";
}
.feather-shopping-bag:before {
	content: "\e9c9";
}
.feather-shopping-cart:before {
	content: "\e9ca";
}
.feather-shuffle:before {
	content: "\e9cb";
}
.feather-sidebar:before {
	content: "\e9cc";
}
.feather-skip-back:before {
	content: "\e9cd";
}
.feather-skip-forward:before {
	content: "\e9ce";
}
.feather-slack:before {
	content: "\e9cf";
}
.feather-slash:before {
	content: "\e9d0";
}
.feather-sliders:before {
	content: "\e9d1";
}
.feather-smartphone:before {
	content: "\e9d2";
}
.feather-speaker:before {
	content: "\e9d3";
}
.feather-square:before {
	content: "\e9d4";
}
.feather-star:before {
	content: "\e9d5";
}
.feather-stop-circle:before {
	content: "\e9d6";
}
.feather-sun:before {
	content: "\e9d7";
}
.feather-sunrise:before {
	content: "\e9d8";
}
.feather-sunset:before {
	content: "\e9d9";
}
.feather-tablet:before {
	content: "\e9da";
}
.feather-tag:before {
	content: "\e9db";
}
.feather-target:before {
	content: "\e9dc";
}
.feather-terminal:before {
	content: "\e9dd";
}
.feather-thermometer:before {
	content: "\e9de";
}
.feather-thumbs-down:before {
	content: "\e9df";
}
.feather-thumbs-up:before {
	content: "\e9e0";
}
.feather-toggle-left:before {
	content: "\e9e1";
}
.feather-toggle-right:before {
	content: "\e9e2";
}
.feather-trash:before {
	content: "\e9e3";
}
.feather-trash-2:before {
	content: "\e9e4";
}
.feather-trending-down:before {
	content: "\e9e5";
}
.feather-trending-up:before {
	content: "\e9e6";
}
.feather-triangle:before {
	content: "\e9e7";
}
.feather-truck:before {
	content: "\e9e8";
}
.feather-tv:before {
	content: "\e9e9";
}
.feather-twitter:before {
	content: "\e9ea";
}
.feather-type:before {
	content: "\e9eb";
}
.feather-umbrella:before {
	content: "\e9ec";
}
.feather-underline:before {
	content: "\e9ed";
}
.feather-unlock:before {
	content: "\e9ee";
}
.feather-upload:before {
	content: "\e9ef";
}
.feather-upload-cloud:before {
	content: "\e9f0";
}
.feather-user:before {
	content: "\e9f1";
}
.feather-user-check:before {
	content: "\e9f2";
}
.feather-user-minus:before {
	content: "\e9f3";
}
.feather-user-plus:before {
	content: "\e9f4";
}
.feather-user-x:before {
	content: "\e9f5";
}
.feather-users:before {
	content: "\e9f6";
}
.feather-video:before {
	content: "\e9f7";
}
.feather-video-off:before {
	content: "\e9f8";
}
.feather-voicemail:before {
	content: "\e9f9";
}
.feather-volume:before {
	content: "\e9fa";
}
.feather-volume-1:before {
	content: "\e9fb";
}
.feather-volume-2:before {
	content: "\e9fc";
}
.feather-volume-x:before {
	content: "\e9fd";
}
.feather-watch:before {
	content: "\e9fe";
}
.feather-wifi:before {
	content: "\e9ff";
}
.feather-wifi-off:before {
	content: "\ea00";
}
.feather-wind:before {
	content: "\ea01";
}
.feather-x:before {
	content: "\ea02";
}
.feather-x-circle:before {
	content: "\ea03";
}
.feather-x-square:before {
	content: "\ea04";
}
.feather-youtube:before {
	content: "\ea05";
}
.feather-zap:before {
	content: "\ea06";
}
.feather-zap-off:before {
	content: "\ea07";
}
.feather-zoom-in:before {
	content: "\ea08";
}
.feather-zoom-out:before {
	content: "\ea09";
}

/* ============================================================
   INLINE DATE NAV
   ============================================================ */
.bm-inline-date-nav {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 100px;
    padding: 0 4px;
    height: 38px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.bm-inline-date-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #6B7385;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.bm-inline-date-arrow:hover {
    background: #F5F7FA;
    color: #1E293B;
    text-decoration: none;
}

.bm-inline-date-text {
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: #4B5563;
    padding: 0 12px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.bm-inline-date-text:hover {
    color: #3B82F6;
}

/* Dark mode overrides */
html[data-theme="dark"] .bm-inline-date-nav {
    background: #18181b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}
html[data-theme="dark"] .bm-inline-date-arrow {
    color: #9EA3B0;
}
html[data-theme="dark"] .bm-inline-date-arrow:hover {
    background: #27272a;
    color: #FFFFFF;
}
html[data-theme="dark"] .bm-inline-date-text {
    color: #E8E8ED;
}

/* ============================================================
   FLATPICKR CALENDAR OVERRIDES (APPLE STYLE)
   ============================================================ */
.flatpickr-calendar {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-xl) !important;
    border-radius: 16px !important;
    font-family: inherit !important;
    padding: 8px !important;
}
.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
    border-bottom-color: var(--bg-card) !important;
}
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
    border-top-color: var(--bg-card) !important;
}
.flatpickr-months {
    background: transparent !important;
    margin-bottom: 8px !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: transparent !important;
}
span.flatpickr-weekday {
    color: var(--text-tertiary) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}
.flatpickr-day {
    color: var(--text-primary) !important;
    border-radius: 50% !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
    margin: 2px !important;
}
.flatpickr-day:hover, .flatpickr-day:focus {
    background: var(--bg-card-secondary) !important;
    border-color: transparent !important;
}
.flatpickr-day.today {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}
.flatpickr-day.selected, .flatpickr-day.selected:hover,
.flatpickr-day.startRange, .flatpickr-day.endRange {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px var(--accent-soft) !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.notAllowed,
.flatpickr-day.notAllowed.prevMonthDay,
.flatpickr-day.notAllowed.nextMonthDay {
    color: var(--text-secondary) !important;
    background: transparent !important;
    border-color: transparent !important;
    opacity: 0.5 !important;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: var(--text-primary) !important;
    fill: var(--text-primary) !important;
    border-radius: 50% !important;
    margin: 4px !important;
    transition: background 0.2s !important;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: var(--bg-card-secondary) !important;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--accent) !important;
}

/* ============================================================
   25. VIP GATE — Football Predictions (Non-VIP Blur + Overlay)
   ============================================================ */

/* League group wrapper (gated) */
.league-group {
    position: relative;
    margin-bottom: 20px;
    display: block;
}
/* Gated match card wrapper — blurs a single card instead of the whole group */
.match-gated {
    position: relative;
    overflow: hidden;
}
.match-gated .bm-match-row-premium {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.3s ease;
}
.match-gated .bm-match-row-premium:hover {
    background: var(--bg-card);
}

/* VIP Gate Overlay — centered within each league group */
.vip-gate-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: background 0.3s ease;
    overflow: hidden;
}

.vip-gate-overlay:hover {
    background: rgba(0, 0, 0, 0.45);
}

.vip-gate-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    padding: 24px 16px;
}

.vip-gate-link:hover {
    text-decoration: none;
}

.vip-gate-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    flex-wrap: nowrap;
}
.vip-gate-content .vip-gate-text {
    flex-shrink: 0;
}

.vip-gate-lock {
    color: #fff;
    opacity: 0.9;
    width: 24px;
    height: 24px;
}

.vip-gate-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    font-family: var(--font-sans);
}

.vip-gate-text strong {
    color: #fff;
    font-weight: 700;
}

.vip-gate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 20px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    white-space: nowrap;
}

.vip-gate-link:hover .vip-gate-btn {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Dark mode adjustments */
html[data-theme="dark"] .vip-gate-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

html[data-theme="dark"] .vip-gate-overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .vip-gate-text {
    color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .vip-gate-text strong {
    color: #fff;
}

/* Responsive touch target */
@media (max-width: 767.98px) {
    .vip-gate-link {
        padding: 16px 12px;
    }
    .vip-gate-content {
        gap: 4px;
    }
    .vip-gate-lock {
        width: 18px;
        height: 18px;
    }
    .vip-gate-text {
        font-size: 11px;
        line-height: 1.3;
    }
    .vip-gate-btn {
        padding: 5px 14px;
        font-size: 10px;
    }
}

/* ============================================================
   27. RECENT WINNINGS PAGE  (Mobile Overrides)
   Show MARKET and ODDS columns, hide FAV and STATS
   ============================================================ */
@media (max-width: 767.98px) {
    .rw-day-group .bm-col-fav,
    .rw-day-group .bm-col-analytics {
        display: none !important;
    }
    .rw-day-group .bm-col-market {
        display: flex !important;
        width: 52px;
        min-width: 52px;
    }
    .rw-day-group .bm-col-market .bm-market-text {
        font-size: 9px;
        font-weight: 600;
    }
    .rw-day-group .bm-col-odds {
        display: flex !important;
        width: 44px;
        min-width: 44px;
    }
    .rw-day-group .bm-col-odds .bm-odds-value {
        font-size: 12px;
        font-weight: 700;
    }
    .rw-day-group .bm-col-prediction {
        width: auto;
        min-width: auto;
        gap: 2px;
    }
    .rw-day-group .bm-prob-ring-wrap {
        width: 26px;
        height: 26px;
    }
    .rw-day-group .bm-prob-ring {
        width: 26px;
        height: 26px;
    }
    .rw-day-group .bm-prob-text {
        font-size: 8px;
    }
    .rw-day-group .bm-prob-text small {
        font-size: 5px;
    }
    /* Dividers stay hidden on mobile (avoids orphaned lines from hidden columns) */
}
