/* Member header styles.
   Lifted out of static/header.js, where it lived as a 66KB template literal
   injected at DOMContentLoaded. As a real stylesheet the browser fetches it in
   parallel with header.js and caches it on its own. Every template that loads
   header.js must also link this file. */

/* Modern Header Styles */
#modernHeader {
    background-color: #000000;
    border-bottom: 2px solid #4CAF50;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Roboto', sans-serif;
}

#modernNav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Show mobile-nav-content on desktop */
.mobile-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 20px;
    flex-shrink: 1;
    min-width: 0;
    justify-content: center;
}

.header-logo-link {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 48px;
    width: auto;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

/* Market Navigation Arrows */
.market-nav-arrow {
    background: none;
    border: none;
    color: #4CAF50;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 8px;
    transition: all 0.2s ease;
    display: none;
    line-height: 1;
}

.market-nav-arrow:hover:not(:disabled) {
    color: #5fd662;
    transform: scale(1.1);
}

.market-nav-arrow:disabled {
    color: #333;
    cursor: not-allowed;
    opacity: 0.5;
}

.market-nav-arrow:active:not(:disabled) {
    transform: scale(0.95);
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Hide mobile wrapper on desktop */
.mobile-nav-wrapper {
    display: none;
}

/* Desktop logo section */
.desktop-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 20px;
    padding-top: 12px;
    padding-bottom: 10px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 16px 20px;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    font-size: 16px;
}

.nav-link:hover {
    background-color: #1a1a1a;
    color: #5fd662;
}

.nav-link.active {
    background-color: #4CAF50;
    color: #000;
    font-weight: 700;
}

/* Mega Menu Styles */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000000;
    border: 2px solid #4CAF50;
    border-top: none;
    min-width: 800px;
    display: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.nav-item:hover .mega-menu,
.mega-menu:hover {
    display: block;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding: 30px;
}

.menu-toggle-container {
    padding: 10px 30px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #0f0f0f;
}

.menu-toggle-container .toggle-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle-container input[type="checkbox"] {
    display: none;
}

.menu-toggle-container .toggle-label {
    color: #9a9a9a;
    font-size: 11px;
    font-weight: 500;
}

.menu-toggle-container .toggle-slider {
    position: relative;
    width: 28px;
    height: 16px;
    background-color: #333;
    border-radius: 16px;
    transition: background-color 0.3s;
}

.menu-toggle-container .toggle-slider:before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.menu-toggle-container input[type="checkbox"]:checked + .toggle-slider {
    background-color: #4CAF50;
}

.menu-toggle-container input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(12px);
}

.mega-menu-section {
    min-width: 180px;
    margin-bottom: 12px;
}

.mega-menu-section:last-child {
    margin-bottom: 0;
}

.mega-menu-title {
    color: #4CAF50;
    font-weight: 700;
    margin-bottom: 2px;
    padding-bottom: 2px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu-subheading {
    color: #888;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    margin-bottom: 2px;
    padding-left: 12px;
}
.mega-menu-subheading:first-child { margin-top: 0; }

.mega-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Sport divider between leagues */
.sport-divider {
    height: 1px;
    background-color: #4CAF50;
    opacity: 0.3;
    margin: 8px 0;
    width: 100%;
}

.mega-menu-link {
    color: #e8e8e8;
    text-decoration: none;
    padding: 3px 12px;
    transition: all 0.2s ease;
    font-size: 15px;
    position: relative;
}

.mega-menu-link:hover {
    color: #4CAF50;
}

.mega-menu-link.active-market {
    color: #e8e8e8;
    font-weight: 500;
}

.mega-menu-link.active-market:hover {
    color: #4CAF50;
}

.mega-menu-link.inactive-market {
    color: #555;
    cursor: not-allowed;
    position: relative;
}

.mega-menu-link.inactive-market:hover {
    color: #555;
}

/* Tooltip for inactive markets in mega menu */
.mega-menu-link.inactive-market::after {
    content: 'Market Inactive or No Odds Available';
    position: absolute;
    bottom: 100%;
    left: 12px;
    margin-bottom: 5px;
    padding: 8px 12px;
    background-color: #2a2a2a;
    color: #e8e8e8;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1002;
    border: 1px solid #444;
}

.mega-menu-link.inactive-market:hover::after {
    opacity: 1;
}

/* Arrow for tooltip */
.mega-menu-link.inactive-market::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 22px;
    margin-bottom: -4px;
    border: 5px solid transparent;
    border-top-color: #444;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1003;
}

.mega-menu-link.inactive-market:hover::before {
    opacity: 1;
}

/* Tools Dropdown */
.tools-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000000;
    border: 2px solid #4CAF50;
    border-top: none;
    min-width: 600px;
    display: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.nav-item:hover .tools-dropdown {
    display: block;
}

.tools-dropdown .mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.tools-dropdown .mega-menu-section {
    min-width: 180px;
}

.tools-dropdown .mega-menu-title {
    color: #4CAF50;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tools-dropdown .mega-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tool-link {
    color: #e8e8e8;
    text-decoration: none;
    padding: 10px 15px;
    transition: all 0.2s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.tool-link:hover {
    background-color: #1a1a1a;
    color: #4CAF50;
}

.tool-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* User Menu */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #000000;
    border: 2px solid #4CAF50;
    border-top: none;
    min-width: 250px;
    display: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

/* (Removed mobile-only-item CSS as we're now using conditional rendering) */

.status-section {
    padding: 15px;
    background-color: #111;
}

/* Desktop view toggle in status section */
.desktop-view-dropdown-toggle {
    cursor: pointer;
}

/* Toggle switch styles in user dropdown */
.user-dropdown .toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Desktop view toggle uses div instead of checkbox */
.user-dropdown .desktop-view-toggle-container {
    cursor: pointer;
}

.user-dropdown .toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #333;
    border-radius: 24px;
    transition: background-color 0.3s;
    order: 1;
    flex-shrink: 0;
}

.user-dropdown .toggle-slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.user-dropdown .toggle-slider.checked {
    background-color: #4CAF50;
}

.user-dropdown .toggle-slider.checked:before {
    transform: translateX(20px);
}

.user-dropdown .toggle-label {
    color: #e8e8e8;
    font-size: 14px;
    font-weight: 500;
    order: 2;
}

.status-item {
    margin-bottom: 10px;
    font-size: 14px;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-message {
    display: block;
    font-weight: 500;
    color: #4CAF50;
}

/* (Removed old refresh-toggle styles - now using toggle-switch) */

.countdown {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
    order: 3;
}

/* Ensure toggle switches are aligned properly */
.user-dropdown .toggle-switch {
    width: 100%;
}

.dropdown-divider {
    height: 1px;
    background-color: #2a2a2a;
    margin: 0;
}


.user-menu-link {
    display: block;
    color: #e8e8e8;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #1a1a1a;
    white-space: nowrap;
}

.user-menu-link:last-child {
    border-bottom: none;
}

.user-menu-link:hover {
    background-color: #1a1a1a;
    color: #4CAF50;
}


/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #0a0a0a;
    border: 2px solid #4CAF50;
    border-top: none;
    min-width: 350px;
    display: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 1001;
}

/* Show search dropdown on hover */
.nav-item:hover .search-dropdown {
    display: block;
}

/* Show user dropdown on hover */
.nav-item:hover .user-dropdown {
    display: block;
}

.search-dropdown-content {
    padding: 20px;
}

.search-input {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #4CAF50;
    background-color: #0f0f0f;
}

.search-input::placeholder {
    color: #666;
}

/* Top Bar - Removed but keeping CSS for potential future use */
/*
.top-bar {
    background-color: #4CAF50;
    color: #000;
    padding: 4px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
}

.top-bar a {
    color: #000;
    text-decoration: underline;
}
*/

/* Betslip button removed - now in odds tables */
/*
#betslip-toggle {
    background-color: #4CAF50;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 20px;
    border-radius: 4px;
}

#betslip-toggle:hover {
    background-color: #5fd662;
}
*/

/* Responsive adjustments */
@media (max-width: 1200px) {
    .mega-menu-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Start scaling down nav elements */
    .nav-link {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .header-title {
        font-size: 18px;
        max-width: 300px;
    }
    
    .mega-menu-link {
        font-size: 17px;
    }
}

/* Override styles.css 1024px media query */
@media (max-width: 1024px) {
    #modernNav .nav-item {
        width: auto !important;
        padding: 0 !important;
    }
    
    #modernNav .dropdown {
        position: absolute !important;
    }
    
    /* Further scale down at 1024px */
    .nav-link {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .header-title {
        font-size: 17px;
        max-width: 250px;
    }
    
    .header-logo {
        height: 44px;
    }
    
    .mega-menu-link {
        font-size: 16px;
    }
}

/* Additional breakpoint for smooth transition */
@media (max-width: 900px) {
    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .header-title {
        font-size: 16px;
        max-width: 220px;
    }
    
    .header-logo {
        height: 40px;
    }
    
    /* Reduce mega menu min-width */
    .mega-menu {
        min-width: 600px;
    }
}

/* Final adjustment before mobile */
@media (max-width: 820px) {
    .nav-link {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .header-title {
        font-size: 15px;
    }
    
    /* Adjust nav spacing */
    #modernNav {
        padding: 0 15px;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    flex-shrink: 0;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #4CAF50;
    margin: 4px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Search Icon Button - Mobile Only */
.search-icon-button {
    display: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    background: none;
    border: none;
    padding: 0;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-icon-button svg {
    width: 28px;
    height: 28px;
    fill: #4CAF50;
    transition: fill 0.3s ease;
}

.search-icon-button:hover svg,
.search-icon-button:active svg {
    fill: #5fd662;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    border-bottom: 2px solid #4CAF50;
    z-index: 1003;
    padding: 61px 20px 21px 20px; /* 1px more top padding to make it bigger */
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    /* iOS keyboard fixes */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

.mobile-search-overlay.active {
    transform: translateY(0);
}

.mobile-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.mobile-search-input {
    width: 100%;
    background-color: #1a1a1a;
    border: 2px solid #2a2a2a;
    color: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 16px;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-search-input:focus {
    outline: none;
    border-color: #4CAF50;
    background-color: #0f0f0f;
}

.mobile-search-close {
    position: absolute;
    right: 20px;
    top: 15px;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #4CAF50;
    font-size: 32px;
    line-height: 1;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-close:hover {
    color: #5fd662;
}

.mobile-search-results {
    margin-top: 20px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Wrapper */
.mobile-nav-wrapper {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    position: relative;
    min-height: 60px;
    box-sizing: border-box;
}

.mobile-logo {
    color: #4CAF50;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

/* Hide desktop nav sections on mobile */
@media (min-width: 769px) {
    .mobile-nav-wrapper {
        display: none !important;
    }
    
    .mobile-nav-content {
        display: block !important;
        position: static !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        overflow: visible !important;
        max-height: none !important;
    }
}

/* Mobile Sport Containers */
.mobile-sport-container {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    margin: 10px 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-sport-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #0f0f0f;
    border-bottom: 1px solid #2a2a2a;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-sport-header:active {
    background-color: #1a1a1a;
}

.mobile-sport-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #4CAF50;
}

.mobile-sport-emoji {
    font-size: 20px;
}

.mobile-sport-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-market-count {
    font-size: 12px;
    color: #9a9a9a;
    font-weight: 500;
}

.mobile-sport-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.mobile-sport-container.expanded .mobile-sport-arrow {
    transform: rotate(180deg);
}

.mobile-sport-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-sport-container.expanded .mobile-sport-content {
    max-height: 2000px;
}

.mobile-sport-markets {
    padding: 10px 0;
}

/* Hide mobile sport containers on desktop */
@media (min-width: 769px) {
    .mobile-sport-container {
        display: none !important;
    }
    
    .desktop-only-content {
        display: block !important;
    }
}

/* Mobile Inactive Markets Toggle */
.mobile-inactive-markets-toggle-container {
    display: none;
}

/* (Removed mobile desktop view toggle - now in Account dropdown) */

/* Mobile styles - tablets and below */
@media (max-width: 768px) {
    .desktop-only-content {
        display: none !important;
    }

    /* Mobile futures sub-bucket headings */
    .mega-menu-subheading {
        text-align: center !important;
        padding-left: 0 !important;
        font-size: 13px !important;
        margin-top: 12px !important;
    }

    /* Sport divider on mobile */
    .sport-divider {
        margin: 12px 0;
        opacity: 0.2;
    }
    /* Global box-sizing for mobile nav elements */
    .mobile-nav-wrapper *,
    .mobile-nav-content *,
    #modernNav * {
        box-sizing: border-box !important;
    }
    
    /* Ensure header stays fixed on mobile */
    #modernHeader {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }
    
    /* Add padding to body to account for fixed header */
    body {
        padding-top: 60px !important;
    }
    
    /* Show mobile wrapper and hamburger menu */
    .mobile-nav-wrapper {
        display: flex !important;
    }
    
    .hamburger-menu {
        display: flex !important;
        margin-right: 8px !important;
    }

    /* Mobile market navigation arrows */
    .market-nav-arrow {
        font-size: 20px !important;
        padding: 0 4px !important;
    }

    /* Show search icon on mobile */
    .search-icon-button {
        display: block !important;
    }
    
    /* Hide search from mobile navigation */
    .nav-item:has(.search-dropdown) {
        display: none !important;
    }
    
    /* Mobile logo/title styles */
    .mobile-nav-wrapper .logo-title-section {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 auto !important;
    }
    
    .mobile-nav-wrapper .header-logo {
        height: 36px !important;
    }
    
    .mobile-nav-wrapper .header-title {
        font-size: 16px !important;
        max-width: calc(100vw - 140px) !important; /* Account for hamburger, search icon, logo */
        white-space: normal !important;
        line-height: 1.2 !important;
        text-align: center !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Override styles.css nav positioning */
    #tabNav {
        display: block !important;
        flex-direction: unset !important;
        position: static !important;
    }
    
    /* Hide stats bar on mobile */
    .quick-stats {
        display: none !important;
    }
    
    /* Hide desktop logo on mobile */
    .desktop-logo-section {
        display: none !important;
    }
    
    /* Mobile navigation container */
    #modernNav {
        position: relative !important;
        flex-direction: column !important;
        padding: 0 !important;
        display: flex !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Mobile navigation sections */
    .mobile-nav-content {
        display: none;
        width: 100%;
        background-color: #000000;
        position: fixed;
        top: 60px; /* Adjust based on header height */
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        overflow-x: hidden; /* Prevent horizontal scroll */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        box-shadow: 0 8px 16px rgba(0,0,0,0.5);
        border-bottom: 2px solid #4CAF50;
        z-index: 1001;
        max-width: 100vw; /* Ensure it doesn't exceed viewport width */
    }
    
    .mobile-nav-content.active {
        display: block !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important; /* Explicitly prevent horizontal scroll */
    }
    
    .nav-section {
        width: 100% !important;
        max-width: 100% !important; /* Prevent overflow */
        flex-direction: column !important;
        gap: 0 !important;
        display: flex !important;
        padding: 10px 0 !important;
        box-sizing: border-box !important; /* Include padding in width calculation */
    }
    
    /* Add padding at the bottom of mobile menu for better scrolling */
    .mobile-nav-content .nav-section:last-child {
        padding-bottom: 80px !important;
    }
    
    /* Override styles.css nav-item styles */
    #modernNav .nav-item {
        position: relative !important;
        width: 100% !important;
        padding: 0 !important;
        z-index: auto !important;
    }
    
    #modernNav .nav-item > .nav-link {
        padding: 10px 24px !important;
        font-size: 30px !important;
        font-weight: 700 !important;
        min-height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        border-bottom: 2px solid #2a2a2a !important;
        border: none !important;
        border-bottom: 2px solid #2a2a2a !important;
        text-align: left !important;
        background-color: #0a0a0a !important;
        letter-spacing: 0.5px !important;
        color: #4CAF50 !important; /* Ensure text stays green */
        line-height: 1.1 !important;
    }
    
    /* Force size on all nav links in mobile */
    .mobile-nav-content .nav-link {
        font-size: 30px !important;
    }

    /* Convert mega menus to simple dropdowns */
    #modernNav .mega-menu {
        position: static !important;
        width: 100% !important;
        min-width: unset !important;
        box-shadow: none !important;
        border: none !important;
        background-color: #1a1a1a !important;
        display: none !important;
        top: auto !important;
        left: auto !important;
    }
    
    #modernNav .nav-item.mobile-open .mega-menu {
        display: block !important;
    }
    
    #modernNav .mega-menu-content {
        display: block !important;
        padding: 0 !important;
        gap: 0 !important;
        grid-template-columns: none !important;
    }
    
    #modernNav .mega-menu-section {
        display: none !important; /* Hide default sections on mobile */
    }
    
    /* Mobile sport containers replace mega-menu-sections */
    #modernNav .mobile-sport-container {
        display: block !important;
    }
    
    #modernNav .mega-menu-title {
        font-size: 12px !important;
        margin-bottom: 8px !important;
        border: none !important;
        padding-bottom: 8px !important;
    }
    
    #modernNav .mega-menu-links {
        gap: 0 !important;
        display: block !important;
        flex-direction: column !important;
    }
    
    #modernNav .mega-menu-link {
        padding: 8px 0 !important;
        font-size: 17px !important;
        min-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        padding-left: 12px !important;
    }
    
    #modernNav .mega-menu-link:before {
        display: none !important;
    }
    
    /* Hide menu toggle container on mobile */
    #modernNav .menu-toggle-container {
        display: none !important;
    }
    
    /* Show mobile inactive markets toggle */
    .mobile-inactive-markets-toggle-container {
        display: block !important;
        padding: 15px 24px;
        background-color: #0a0a0a;
        border-bottom: 2px solid #2a2a2a;
    }
    
    
    .mobile-toggle-switch {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        width: 100%;
    }
    
    .mobile-toggle-switch input[type="checkbox"] {
        display: none;
    }
    
    .mobile-toggle-label {
        color: #4CAF50;
        font-size: 18px;
        font-weight: 600;
        order: 1;
    }
    
    .mobile-toggle-slider {
        position: relative;
        width: 48px;
        height: 26px;
        background-color: #333;
        border-radius: 26px;
        transition: background-color 0.3s;
        order: 2;
    }
    
    .mobile-toggle-slider:before {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: #fff;
        top: 3px;
        left: 3px;
        transition: transform 0.3s;
    }
    
    .mobile-toggle-switch input[type="checkbox"]:checked + .mobile-toggle-slider {
        background-color: #4CAF50;
    }
    
    .mobile-toggle-switch input[type="checkbox"]:checked + .mobile-toggle-slider:before {
        transform: translateX(22px);
    }
    
    /* Adjust search dropdown on mobile */
    #modernNav .search-dropdown {
        position: static !important;
        width: 100% !important;
        min-width: unset !important;
        box-shadow: none !important;
        border: none !important;
        background-color: #1a1a1a !important;
        display: none !important;
    }
    
    #modernNav .nav-item:hover .search-dropdown {
        display: none !important;
    }
    
    #modernNav .nav-item.mobile-open .search-dropdown {
        display: block !important;
    }
    
    #modernNav .search-dropdown-content {
        padding: 10px 16px !important;
    }
    
    #modernNav .search-input {
        width: 100% !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
        -webkit-appearance: none !important; /* Prevent iOS styling */
        -webkit-tap-highlight-color: transparent !important; /* Remove tap highlight */
        touch-action: manipulation !important; /* Prevent double-tap zoom */
    }
    
    #modernNav .search-results-dropdown {
        max-height: 250px !important;
    }
    
    /* Betslip button removed from header - now in odds tables */
    
    /* Tools and user dropdowns */
    #modernNav .tools-dropdown,
    #modernNav .user-dropdown {
        position: static !important;
        width: 100% !important;
        min-width: unset !important;
        box-shadow: none !important;
        border: none !important;
        background-color: #1a1a1a !important;
        padding: 0 !important;
        display: none !important;
        top: auto !important;
        left: auto !important;
    }
    
    /* Mobile tools dropdown specific styles */
    #modernNav .tools-dropdown .mega-menu-content {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
    }
    
    #modernNav .tools-dropdown .mega-menu-section {
        display: block !important; /* Override the mobile hide rule */
        margin-bottom: 20px !important;
    }
    
    #modernNav .tools-dropdown .mega-menu-section:last-child {
        margin-bottom: 0 !important;
    }
    
    #modernNav .nav-item:hover .tools-dropdown,
    #modernNav .nav-item:hover .user-dropdown {
        display: none !important;
    }
    
    #modernNav .nav-item.mobile-open .tools-dropdown,
    #modernNav .nav-item.mobile-open .user-dropdown {
        display: block !important;
    }
    
    /* Ensure status items display properly on mobile */
    #modernNav .user-dropdown .status-item {
        display: block !important;
        padding: 10px 0;
    }
    
    /* Ensure the desktop view toggle is visible and properly styled */
    #modernNav .user-dropdown .desktop-view-toggle-container {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }
    
    #modernNav .tool-link,
    #modernNav .user-menu-link {
        min-height: 44px !important;
        padding: 12px 16px !important;
        border-bottom: 1px solid #2a2a2a !important;
        display: block !important;
    }
    
    /* Add dropdown indicator */
    #modernNav .nav-link::after {
        content: '▼' !important;
        font-size: 18px !important;
        color: #666 !important;
        transition: transform 0.3s !important;
        margin-left: 10px !important;
    }
    
    #modernNav .nav-item.mobile-open .nav-link::after {
        transform: rotate(180deg) !important;
    }
    
    /* Remove hover effects on mobile */
    #modernNav .nav-item:hover .mega-menu,
    #modernNav .mega-menu:hover {
        display: none !important;
    }
    
    #modernNav .nav-item.mobile-open .mega-menu {
        display: block !important;
    }
    
    /* Override styles.css dropdown positioning */
    #modernNav .dropdown {
        position: relative !important;
    }
    
    #modernNav .dropdown-content {
        position: static !important;
        display: block !important;
        box-shadow: none !important;
        border: none !important;
        min-width: unset !important;
        width: 100% !important;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    #modernNav .nav-link {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }
    
    #modernNav .mega-menu-link {
        font-size: 16px !important;
    }
    
    /* Full width search */
    #modernNav .search-input:focus {
        width: 100% !important;
    }
    
    /* Responsive title sizing for small screens */
    .mobile-nav-wrapper .header-title {
        font-size: 14px !important;
        max-width: calc(100vw - 120px) !important;
    }
    
    .mobile-nav-wrapper .header-logo {
        height: 32px !important;
    }
}

/* Extra small devices - handle very long titles */
@media (max-width: 380px) {
    .mobile-nav-wrapper .header-title {
        font-size: 12px !important;
        max-width: calc(100vw - 110px) !important;
    }
    
    .mobile-nav-wrapper .header-logo {
        height: 28px !important;
    }
    
    .mobile-nav-wrapper {
        padding: 12px 15px !important;
    }
    
    .hamburger-menu {
        width: 25px !important;
        height: 25px !important;
    }
    
    .search-icon-button {
        width: 30px !important;
        height: 30px !important;
    }
    
    .search-icon-button svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Lines navigation removed - now handled by odds tables */

/* Live indicator */
.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ff4444;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Desktop View on Mobile */
html.mobile-desktop-view,
body.mobile-desktop-view {
    /* Allow zooming but disable pull-to-refresh */
    touch-action: pan-x pan-y pinch-zoom !important;
    -webkit-text-size-adjust: none !important;
    overscroll-behavior-y: contain !important;
    overscroll-behavior: none !important;
    overflow-x: visible !important;
}

/* Force page to expand to content width */
body.mobile-desktop-view {
    min-width: max-content !important;
    width: max-content !important;
}

body.mobile-desktop-view .page-wrapper {
    /* Remove mobile constraints */
    max-width: none !important;
    min-width: max-content !important;
    width: max-content !important;
    overflow: visible !important;
}

body.mobile-desktop-view .main-content {
    /* Allow content to expand */
    max-width: none !important;
    min-width: max-content !important;
    width: max-content !important;
    overflow: visible !important;
}

body.mobile-desktop-view #tableContainer {
    /* Remove mobile table constraints */
    overflow: visible !important;
    max-width: none !important;
    min-width: max-content !important;
    width: max-content !important;
}

body.mobile-desktop-view .table-wrapper {
    /* Show full table without scroll */
    overflow: visible !important;
    max-width: none !important;
    min-width: max-content !important;
    width: max-content !important;
    -webkit-overflow-scrolling: auto !important;
}

body.mobile-desktop-view #oddsTable {
    /* Force table to its natural width */
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    table-layout: auto !important;
}

/* Force all cells to their natural width */
body.mobile-desktop-view #oddsTable td,
body.mobile-desktop-view #oddsTable th {
    white-space: nowrap !important;
    min-width: max-content !important;
}

/* Remove all width constraints globally */
body.mobile-desktop-view * {
    max-width: none !important;
}

/* Hide scroll hints in desktop view */
body.mobile-desktop-view .scroll-hint {
    display: none !important;
}

/* Fix footer logo size in desktop view */
body.mobile-desktop-view .footer-logo {
    max-width: 150px !important;
    width: auto !important;
    height: auto !important;
    max-height: 60px !important;
}

/* Disable horizontal scroll on wrapper */
@media (max-width: 768px) {
    body.mobile-desktop-view .table-wrapper {
        overflow-x: visible !important;
        overflow-y: visible !important;
    }
}

/* Floating Desktop View Toggle Button */
.desktop-view-floating-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.desktop-view-floating-toggle:hover {
    background-color: #5fd662;
    transform: scale(1.05);
}

.desktop-view-floating-toggle:active {
    transform: scale(0.95);
}

/* Show on mobile when in desktop view */
@media (max-width: 768px) {
    body.mobile-desktop-view .desktop-view-floating-toggle {
        display: block !important;
    }
}

/* Make floating button more prominent */
.desktop-view-floating-toggle {
    font-size: 16px !important;
    padding: 15px 25px !important;
    bottom: 30px !important;
    right: 30px !important;
}


/* Inactive Sport Message */
.inactive-sport-message {
    display: block;
    color: #666;
    font-style: italic;
    font-size: 13px;
    padding: 8px 0;
}

/* Center inactive sport message on mobile */
@media (max-width: 768px) {
    .inactive-sport-message {
        text-align: center;
        width: 100%;
        padding: 12px 0;
    }
    
    /* Also center the sport headers on mobile */
    .mega-menu-section > div:first-child {
        text-align: center;
    }
    
    /* Center mega menu titles on mobile */
    .mega-menu-title {
        text-align: center;
    }
    
    /* Center mega menu links on mobile */
    .mega-menu-link {
        text-align: center !important;
        justify-content: center !important;
        padding-left: 0 !important;
    }
    
    /* Override the mobile nav specific styles */
    #modernNav .mega-menu-link {
        text-align: center !important;
        justify-content: center !important;
        padding-left: 0 !important;
    }
    
    /* Center the mega menu links container */
    .mega-menu-links {
        text-align: center;
    }
}

/* Search Results Dropdown */
.search-results-dropdown {
    margin-top: 10px;
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.search-sport-section {
    border-bottom: 1px solid #2a2a2a;
}

.search-sport-section:last-child {
    border-bottom: none;
}

.search-sport-title {
    padding: 10px 15px;
    color: #4CAF50;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #1a1a1a;
}

.search-market-link {
    display: block;
    padding: 10px 20px;
    color: #e8e8e8;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.search-market-link:hover {
    background-color: #1a1a1a;
    color: #4CAF50;
}

.search-inactive-market {
    color: #555;
    cursor: not-allowed;
    position: relative;
}

.search-inactive-market:hover {
    color: #555;
}

/* Tooltip for inactive markets */
.search-inactive-market::after {
    content: 'Market Inactive or No Odds Available';
    position: absolute;
    bottom: 100%;
    left: 20px;
    margin-bottom: 5px;
    padding: 8px 12px;
    background-color: #2a2a2a;
    color: #e8e8e8;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    border: 1px solid #444;
}

.search-inactive-market:hover::after {
    opacity: 1;
}

/* Arrow for tooltip */
.search-inactive-market::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 30px;
    margin-bottom: -4px;
    border: 5px solid transparent;
    border-top-color: #444;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.search-inactive-market:hover::before {
    opacity: 1;
}

/* ============================================================
   Odds Hub — the single desktop "📊 Odds" menu.
   Desktop shows the hub; mobile keeps the three legacy menus.
   Class names are hub-scoped (oh-*) so the !important rules in
   v2-backend-overrides.css for .mega-menu* never reach them.
   ============================================================ */
@media (min-width: 769px) {
    #modernNav .nav-item.legacy-odds-item { display: none !important; }
}
@media (max-width: 768px) {
    #modernNav .nav-item.odds-hub-item { display: none !important; }
}

.odds-hub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    width: 920px;
    max-width: calc(100vw - 40px);
    background-color: var(--bg-primary, #0A0A0F);
    border: 1px solid var(--border, #2A2A3A);
    border-top: 2px solid var(--accent, #4CAF50);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.65);
    overflow: hidden;
    z-index: 1001;
}

.odds-hub-item:hover .odds-hub-menu,
.odds-hub-menu:hover,
.odds-hub-item.hub-pinned .odds-hub-menu {
    display: flex;
}

.oh-top {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background-color: var(--bg-elevated, #12121A);
    border-bottom: 1px solid var(--border, #2A2A3A);
}

.oh-tt {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary, #9C9CAD);
    cursor: pointer;
    border: 1px solid transparent;
    background: none;
    font-family: inherit;
    line-height: 1.2;
}

.oh-tt:hover {
    color: var(--text-primary, #E8E6E3);
    background-color: var(--bg-hover, #1A1A26);
}

.oh-tt.on {
    color: #000;
    background-color: var(--accent, #4CAF50);
    border-color: var(--accent, #4CAF50);
}

.oh-tt .oh-n {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    margin-left: 6px;
    opacity: 0.75;
}

.oh-filter {
    margin-left: auto;
    position: relative;
}

#modernNav .oh-filter input {
    width: 220px;
    background-color: var(--bg-primary, #0A0A0F);
    border: 1px solid var(--border, #2A2A3A);
    border-radius: 8px;
    color: var(--text-primary, #E8E6E3);
    font-size: 13px;
    font-family: inherit;
    padding: 8px 12px 8px 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239C9CAD' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.5-4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: 11px center;
}

#modernNav .oh-filter input:hover {
    border-color: var(--border, #2A2A3A);
}

#modernNav .oh-filter input:focus {
    outline: none;
    border-color: var(--accent, #4CAF50);
}

.oh-body {
    display: flex;
    min-height: 340px;
}

.oh-rail {
    width: 200px;
    flex: 0 0 200px;
    background-color: var(--bg-elevated, #12121A);
    border-right: 1px solid var(--border, #2A2A3A);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.oh-rail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #E8E6E3);
    border-left: 3px solid transparent;
}

.oh-rail-item .oh-emoji {
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.oh-rail-item .oh-count {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary, #9C9CAD);
}

.oh-rail-item:hover {
    background-color: var(--bg-hover, #1A1A26);
}

.oh-rail-item.on {
    background-color: var(--bg-hover, #1A1A26);
    border-left-color: var(--accent, #4CAF50);
    color: var(--accent, #4CAF50);
}

.oh-rail-item.on .oh-count {
    color: var(--accent, #4CAF50);
}

.oh-rail-item.oh-dim,
.oh-rail-item.oh-dim .oh-count {
    color: #55556a;
    cursor: default;
}

.oh-rail-item.oh-dim:hover {
    background-color: transparent;
}

.oh-rail-foot {
    margin-top: auto;
    padding: 12px 16px;
    border-top: 1px solid var(--border, #2A2A3A);
}

.oh-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary, #9C9CAD);
}

.oh-switch input { display: none; }

.oh-sl {
    position: relative;
    width: 28px;
    height: 16px;
    background-color: #333;
    border-radius: 16px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.oh-sl::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.oh-switch input:checked + .oh-sl {
    background-color: var(--accent, #4CAF50);
}

.oh-switch input:checked + .oh-sl::before {
    transform: translateX(12px);
}

.oh-panel {
    flex: 1;
    min-width: 0;
    max-height: 520px;
    overflow-y: auto;
    padding: 18px 24px;
}

.oh-crumb {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary, #9C9CAD);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.oh-crumb b {
    color: var(--accent, #4CAF50);
    font-weight: 600;
}

.oh-groups {
    columns: 2;
    column-gap: 30px;
}

.oh-group {
    break-inside: avoid;
    margin-bottom: 16px;
}

.oh-group-title,
.oh-sec-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary, #9C9CAD);
    margin: 0 0 5px 0;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border, #2A2A3A);
}

.oh-link {
    display: block;
    padding: 4px 0 4px 10px;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-primary, #E8E6E3);
    border-left: 2px solid transparent;
}

.oh-link:hover {
    color: var(--accent, #4CAF50);
    border-left-color: var(--accent, #4CAF50);
}

.oh-link.oh-fav { color: #FFD700; }
.oh-link.oh-fav:hover { color: #FFE55C; }

.oh-link.oh-cur {
    color: var(--accent, #4CAF50);
    font-weight: 700;
    border-left-color: var(--accent, #4CAF50);
}

.oh-link.oh-off,
.oh-hit.oh-off {
    color: #55556a;
    cursor: not-allowed;
    position: relative;
}

.oh-link.oh-off:hover {
    color: #55556a;
    border-left-color: transparent;
}

.oh-hit.oh-off:hover {
    color: #55556a;
    background-color: transparent;
}

.oh-link.oh-off::after,
.oh-hit.oh-off::after {
    content: 'Market Inactive or No Odds Available';
    position: absolute;
    bottom: 100%;
    left: 10px;
    margin-bottom: 5px;
    padding: 8px 12px;
    background-color: var(--bg-hover, #2a2a2a);
    color: var(--text-primary, #e8e8e8);
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1002;
    border: 1px solid var(--border, #444);
}

.oh-link.oh-off:hover::after,
.oh-hit.oh-off:hover::after {
    opacity: 1;
}

.oh-sec { margin-bottom: 16px; }

.oh-hit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-primary, #E8E6E3);
}

.oh-hit:hover {
    background-color: var(--bg-hover, #1A1A26);
    color: var(--accent, #4CAF50);
}

.oh-hit .oh-emoji {
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.oh-hit .oh-tag { margin-left: auto; }

.oh-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #9C9CAD);
    margin-left: 6px;
    flex-shrink: 0;
}

.oh-link mark,
.oh-hit mark {
    background-color: rgba(76, 175, 80, 0.18);
    color: var(--accent, #4CAF50);
    border-radius: 2px;
}

.oh-empty {
    color: #55556a;
    font-style: italic;
    font-size: 13px;
    padding: 20px 0;
}

/* ============================================================
   Tools hub — the desktop "🔧 Tools" menu, same visual language
   as the Odds hub on a narrower shell. Everything here is a
   modifier or an addition; the shared oh-* rules above do the
   rest. Mobile keeps the legacy .tools-dropdown.
   ============================================================ */
@media (min-width: 769px) {
    #modernNav .nav-item.legacy-tools-item { display: none !important; }
}
@media (max-width: 768px) {
    #modernNav .nav-item.tools-hub-item { display: none !important; }
}

.tools-hub-item:hover .odds-hub-menu,
.tools-hub-item.hub-pinned .odds-hub-menu {
    display: flex;
}

.oh-menu--tools { width: 700px; }

/* Three rail rows and short panels: the odds hub's 340px floor leaves
   this menu looking half empty. */
.oh-menu--tools .oh-body { min-height: 250px; }

.oh-menu--tools .oh-rail {
    width: 220px;
    flex: 0 0 220px;
}

.oh-menu--tools .oh-rail-item {
    padding: 11px 16px;
    line-height: 1.3;
}

/* A link that leads with an icon rather than a plain indent. */
.oh-link--icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0 6px 10px;
}

.oh-link--icon .oh-emoji {
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
