/* =============================================
   SmartCDKeys Header v2 — "Clean Layers" Design
   Self-contained. No Bootstrap layout dependency.
   ============================================= */

/* --- Variables --- */
:root {
    --hdr-dark: #1b2838;
    --hdr-mid: #243447;
    --hdr-nav: #2c3e50;
    --hdr-accent: #e94560;
    --hdr-accent-hover: #d63a55;
    --hdr-text: rgba(255,255,255,.75);
    --hdr-text-dim: rgba(255,255,255,.55);
    --hdr-text-bright: #fff;
    --hdr-max-w: 1260px;
    --hdr-radius: 6px;
}

/* ========== TOP BAR ========== */
.hdr-topbar {
    background: var(--hdr-dark);
    font-size: 11px;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--hdr-text-dim);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.hdr-topbar-inner {
    max-width: var(--hdr-max-w);
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Stats */
.hdr-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.hdr-stats-sep { opacity: .3; }
.hdr-stats strong {
    color: var(--hdr-text-bright);
    font-weight: 600;
}
.hdr-live-dot {
    width: 6px; height: 6px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: hdr-pulse 2s ease-in-out infinite;
}
@keyframes hdr-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Top-right controls */
.hdr-topbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}
.hdr-top-link,
.hdr-top-btn {
    background: none;
    border: none;
    color: var(--hdr-text-dim);
    font-size: 11px;
    letter-spacing: .3px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding: 4px 6px;
    border-radius: 3px;
    transition: color .15s, background .15s;
    font-family: inherit;
}
.hdr-top-link:hover,
.hdr-top-btn:hover {
    color: var(--hdr-text-bright);
    background: rgba(255,255,255,.08);
}
.hdr-top-btn img {
    width: 16px;
    height: 12px;
    vertical-align: middle;
}
.hdr-caret {
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 3px;
    vertical-align: middle;
    opacity: .6;
}

/* Top-bar dropdowns */
.hdr-dropdown {
    position: relative;
}
.hdr-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    z-index: 30001;
    padding: 4px 0;
}
.hdr-dropdown.open .hdr-dropdown-menu {
    display: block;
}
.hdr-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font-size: 13px;
    color: #333;
    text-transform: none;
    letter-spacing: 0;
    transition: background .1s;
}
.hdr-dropdown-menu li a:hover {
    background: #f5f5f5;
}
.hdr-dropdown-menu li.active a {
    background: #eef3f8;
    font-weight: 600;
    color: var(--hdr-accent);
}
.hdr-dropdown-menu li a img {
    width: 16px;
    height: 12px;
    flex-shrink: 0;
}
.hdr-dropdown-header {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 8px 14px 4px;
}

/* ========== MAIN HEADER ROW ========== */
.hdr-main {
    background: var(--hdr-mid);
    position: relative;
    z-index: 20002;
}
.hdr-main-inner {
    max-width: var(--hdr-max-w);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.hdr-logo {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.hdr-logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Search */
.hdr-search-wrap {
    flex: 1;
    max-width: 640px;
    display: flex;
    align-items: stretch;
    min-width: 0;
    position: relative;
    margin-left: auto;
}

/* Override the livesearch.js generated .search_group layout inside new header */
.hdr-search-wrap .search_group {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-height: 0 !important;
    height: 42px !important;
    border-radius: 0 !important;
    overflow: visible;
    box-sizing: border-box !important;
}
.hdr-search-wrap .search-input-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    height: 42px !important;
}
.hdr-search-wrap .search-input-wrap input[name="search"],
.hdr-search-wrap .search-input-wrap input[name="q"] {
    width: 100%;
    height: 42px !important;
    border: none !important;
    padding: 0 50px 0 16px !important;
    font-size: 14px;
    background: #fff;
    color: #333;
    outline: none;
    border-radius: 0 !important;
    box-sizing: border-box;
    max-height: none !important;
}
.hdr-search-wrap .search-input-wrap input::placeholder {
    color: #999;
}
/* Override live_search.css — needs header.hdr-v2 for higher specificity */
header.hdr-v2 .search_group .search-input-wrap input[name="search"] {
    border-radius: 0 var(--hdr-radius) var(--hdr-radius) 0 !important;
    height: 42px !important;
    padding-right: 50px !important;
}
header.hdr-v2 .search_group .search-input-wrap .search_btn {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 42px !important;
    width: 48px !important;
    max-height: none !important;
    background: var(--hdr-accent) !important;
    border: none !important;
    border-radius: 0 var(--hdr-radius) var(--hdr-radius) 0 !important;
    padding: 0 !important;
    transform: none !important;
}
header.hdr-v2 .search_group .search-input-wrap .search_btn:hover {
    background: var(--hdr-accent-hover) !important;
}
header.hdr-v2 .search_group .search-input-wrap {
    height: 42px !important;
}
header.hdr-v2 .search_group {
    min-height: 42px !important;
    height: 42px !important;
}
header.hdr-v2 .platform-btn {
    background: rgba(255,255,255,.12) !important;
    border: none !important;
    border-right: 1px solid rgba(255,255,255,.15) !important;
    border-radius: var(--hdr-radius) 0 0 var(--hdr-radius) !important;
    color: #fff !important;
    height: 42px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    order: -1;
    margin: 0 !important;
    line-height: 1 !important;
}
header.hdr-v2 .platform-btn.has-platform {
    background: rgba(233,69,96,.35) !important;
    border-color: rgba(233,69,96,.4) !important;
}
header.hdr-v2 .platform-btn:hover {
    background: rgba(255,255,255,.18) !important;
}
.hdr-search-wrap .search_btn {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    height: 42px !important;
    width: 48px !important;
    max-height: none !important;
    max-width: none !important;
    background: var(--hdr-accent) !important;
    border: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 0 var(--hdr-radius) var(--hdr-radius) 0 !important;
    transition: background .15s;
    padding: 0 !important;
    margin: 0 !important;
}
.hdr-search-wrap .search_btn:hover {
    background: var(--hdr-accent-hover) !important;
}

/* Platform button override inside header */
.hdr-search-wrap .platform-btn {
    background: rgba(255,255,255,.12) !important;
    border: none !important;
    border-right: 1px solid rgba(255,255,255,.15) !important;
    border-radius: var(--hdr-radius) 0 0 var(--hdr-radius) !important;
    color: #fff !important;
    padding: 0 14px !important;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 42px !important;
    order: -1;
    transition: background .15s;
    margin: 0 !important;
    line-height: 1 !important;
}
.hdr-search-wrap .platform-btn:hover {
    background: rgba(255,255,255,.18);
}
.hdr-search-wrap .platform-btn.has-platform {
    background: rgba(233,69,96,.3);
    border-color: rgba(233,69,96,.4);
    color: #fff;
}
.hdr-search-wrap .platform-btn.has-platform:hover {
    background: rgba(233,69,96,.4);
}

/* Live search dropdown adjustments */
.hdr-search-wrap .live-search {
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* Account — hidden until login/register section is built */
.hdr-account {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--hdr-text);
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: color .15s;
}
.hdr-account:hover {
    color: var(--hdr-text-bright);
}
.hdr-account-icon {
    width: 36px; height: 36px;
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hdr-account-icon svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ========== NAV BAR ========== */
.hdr-nav {
    background: var(--hdr-nav);
    border-top: 1px solid rgba(255,255,255,.05);
    position: relative;
    z-index: 20001;
}
.hdr-nav-inner {
    max-width: var(--hdr-max-w);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
    overflow: visible;
}

/* Nav items — now <div> wrappers with inner <a class="hdr-nav-link"> */
.hdr-nav-item {
    position: relative;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s, background .15s;
    display: flex;
    align-items: center;
    gap: 0;
}
.hdr-nav-link {
    display: flex;
    align-items: center;
    padding: 13px 6px 13px 16px;
    color: inherit;
    text-decoration: none;
}
.hdr-nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}
.hdr-nav-item.active {
    color: #fff;
    background: var(--hdr-accent);
    border-radius: var(--hdr-radius) var(--hdr-radius) 0 0;
}

/* Nav dropdown caret */
.hdr-nav-caret {
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: .6;
    margin-right: 12px;
    margin-left: 2px;
    flex-shrink: 0;
}
.hdr-nav-item:hover .hdr-nav-caret { opacity: 1; }

/* ========== MEGA MENU DROPDOWNS ========== */
.hdr-nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: #2d2d3f;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
    z-index: 20002;
    padding: 8px 0;
}
.hdr-nav-item:hover > .hdr-nav-dropdown {
    display: block;
}

/* Wide mega menus (Gift Cards, Finance, etc.) */
.hdr-nav-dropdown.wide {
    min-width: 420px;
    padding: 0;
}

/* Multi-column mega for Gift Cards */
.hdr-nav-dropdown.mega {
    left: 0;
    transform: none;
    min-width: 560px;
    padding: 16px;
    display: none;
    flex-wrap: wrap;
    gap: 0 24px;
    background: #2d2d3f;
}
.hdr-nav-item:hover > .hdr-nav-dropdown.mega {
    display: flex;
}
.hdr-nav-dropdown.mega .mega-col {
    flex: 1;
    min-width: 160px;
}

/* Standard dropdown links */
.hdr-nav-dropdown li a {
    display: block;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,.85);
    transition: all .12s;
    white-space: nowrap;
    border-radius: 6px;
    margin: 1px 6px;
}
.hdr-nav-dropdown li a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
    padding-left: 22px;
}

/* Section headers */
.hdr-dd-header {
    font-size: 10px;
    font-weight: 700;
    color: var(--hdr-accent);
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 12px 18px 6px;
    cursor: default;
    border-top: 1px solid rgba(255,255,255,.08);
}
.hdr-dd-header:first-child { border-top: none; padding-top: 6px; }

/* Mega menu section headers */
.hdr-nav-dropdown.mega .hdr-dd-header {
    border-top: none;
    padding: 0 6px 6px;
    margin-bottom: 2px;
}

/* View All button */
.hdr-dd-viewall {
    padding: 4px 6px 2px;
}
.hdr-dd-viewall a {
    display: block !important;
    text-align: center !important;
    padding: 10px 16px !important;
    background: var(--hdr-accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    margin: 4px 0 !important;
    border-radius: 6px !important;
    letter-spacing: .3px;
    transition: background .15s !important;
}
.hdr-dd-viewall a:hover {
    background: var(--hdr-accent-hover) !important;
    padding-left: 16px !important;
}

/* Rich items (Mobile, Finance sections) */
.hdr-dd-rich a {
    display: block;
    padding: 14px 18px !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-radius: 0 !important;
    margin: 0 !important;
    transition: background .12s;
}
.hdr-dd-rich a:hover {
    background: rgba(255,255,255,.06) !important;
    padding-left: 18px !important;
}
.hdr-dd-rich-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}
.hdr-dd-rich-desc {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    line-height: 1.4;
    white-space: normal;
}

/* Crypto coin links */
.hdr-dd-coin a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 9px 18px !important;
    font-size: 14px;
    color: #fff !important;
    border-bottom: 1px solid #f8f8f8;
    border-radius: 0 !important;
    margin: 0 !important;
}
.hdr-dd-coin a:hover {
    background: rgba(255,255,255,.08) !important;
    padding-left: 18px !important;
}
.hdr-dd-coin img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========== MOBILE TOGGLE ========== */
.hdr-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--hdr-text-bright);
    margin-left: auto;
}
.hdr-mobile-toggle svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

/* ========== MOBILE SEARCH ========== */
.hdr-mobile-search {
    display: none;
    background: var(--hdr-mid);
    padding: 0 20px 12px;
}
.hdr-mobile-search .search_group {
    display: flex;
    align-items: stretch;
    min-height: 42px;
}
.hdr-mobile-search .search-input-wrap {
    flex: 1;
    position: relative;
    height: 42px;
}
.hdr-mobile-search .search-input-wrap input[name="search"] {
    width: 100%;
    height: 42px;
    border: none;
    padding: 0 44px 0 14px;
    font-size: 14px;
    background: #fff;
    color: #333;
    outline: none;
    border-radius: var(--hdr-radius) 0 0 var(--hdr-radius);
}
.hdr-mobile-search .search-input-wrap input::placeholder {
    color: #999;
}
.hdr-mobile-search .search_btn {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    transform: none;
    height: 42px;
    width: 42px;
    background: var(--hdr-accent);
    border: none;
    cursor: pointer;
    z-index: 2;
    border-radius: 0 var(--hdr-radius) var(--hdr-radius) 0;
}
.hdr-mobile-search .platform-btn {
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    padding: 0 12px;
    font-size: 12px;
    cursor: pointer;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 4px;
    order: -1;
    border-radius: var(--hdr-radius) 0 0 var(--hdr-radius);
    white-space: nowrap;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 991px) {
    .hdr-topbar-right { display: none; }
    .hdr-account > span { display: none; }
    .hdr-main-inner { gap: 12px; }

    .hdr-mobile-toggle { display: block; }
    .hdr-mobile-search { display: block; }
    .hdr-account { display: none !important; }

    /* Desktop search hidden on mobile */
    .hdr-search-wrap.hdr-desktop-search { display: none; }

    /* Nav: hidden by default, shown when toggled */
    .hdr-nav-inner {
        display: none;
        flex-direction: column;
        padding: 0;
        overflow-x: visible;
    }
    .hdr-nav.open .hdr-nav-inner {
        display: flex;
    }
    .hdr-nav-item {
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,.06);
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .hdr-nav-link {
        flex: 1;
        padding: 14px 20px;
    }
    .hdr-nav-item.active {
        border-radius: 0;
    }

    /* Mobile nav dropdowns: slide down instead of hover */
    .hdr-nav-item:hover > .hdr-nav-dropdown,
    .hdr-nav-item:hover > .hdr-nav-dropdown.mega {
        display: none;
    }
    .hdr-nav-item.mobile-open > .hdr-nav-dropdown,
    .hdr-nav-item.mobile-open > .hdr-nav-dropdown.mega {
        display: block;
    }
    /* Mega menus collapse to single column on mobile */
    .hdr-nav-dropdown.mega {
        position: static !important;
        transform: none !important;
        min-width: 0 !important;
        flex-direction: column !important;
        padding: 8px 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: rgba(0,0,0,.15) !important;
        width: 100%;
    }
    .hdr-nav-dropdown.mega .mega-col {
        min-width: 0;
    }
    .hdr-nav-dropdown {
        position: static;
        transform: none;
        min-width: 0;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0,0,0,.15);
        width: 100%;
    }
    .hdr-nav-dropdown li a {
        color: rgba(255,255,255,.8);
        padding: 10px 32px;
    }
    .hdr-nav-dropdown li a:hover {
        background: rgba(255,255,255,.08);
        color: #fff;
    }
    .hdr-dd-header {
        color: rgba(255,255,255,.4);
        border-color: rgba(255,255,255,.08);
        padding: 10px 32px 4px;
    }
    .hdr-dd-viewall a {
        margin: 4px 16px 8px;
    }
    .hdr-dd-rich a { border-color: rgba(255,255,255,.08); }
    .hdr-dd-rich-title { color: #fff; }
    .hdr-dd-rich-desc { color: rgba(255,255,255,.5); }
    .hdr-dd-coin a {
        color: rgba(255,255,255,.8);
        border-color: rgba(255,255,255,.05);
    }

    /* Mobile region/language in nav — hidden until hamburger opens */
    .hdr-mobile-extras {
        display: none;
        flex-direction: column;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .hdr-nav.open .hdr-mobile-extras {
        display: flex;
    }
    .hdr-mobile-extras .hdr-nav-item {
        font-weight: 400;
        font-size: 12px;
        color: var(--hdr-text-dim);
    }
}

/* Phone */
@media (max-width: 600px) {
    .hdr-topbar-inner { padding: 4px 12px; }
    .hdr-stats .hdr-hide-phone { display: none; }
    .hdr-main-inner { padding: 10px 12px; gap: 10px; }
    .hdr-logo img { height: 34px; }
    .hdr-mobile-search { padding: 0 12px 10px; }
}

/* Desktop */
@media (min-width: 992px) {
    .hdr-mobile-extras { display: none; }
    .hdr-mobile-search { display: none !important; }
    .hdr-mobile-toggle { display: none !important; }
    .hdr-nav-inner { display: flex !important; }
}

/* ========== LEGACY CSS RESET ========== */
/* Neutralize style_new.css / Bootstrap rules that target <header> generically */

header.hdr-v2 {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: visible !important;
    max-width: none !important;
}
header.hdr-v2 .container {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
header.hdr-v2 .row {
    margin: 0 !important;
}

/* Kill legacy header sub-elements */
header.hdr-v2 .header__logo,
header.hdr-v2 .header__search,
header.hdr-v2 .header__users,
header.hdr-v2 .header-topbar,
header.hdr-v2 .h-top-info,
header.hdr-v2 .main_menu,
header.hdr-v2 .overlay {
    display: none !important;
}

/* Reset Bootstrap navbar inside our header */
header.hdr-v2 .navbar,
header.hdr-v2 .navbar-default {
    all: unset;
}
header.hdr-v2 .nav.nav-pills {
    all: unset;
}
header.hdr-v2 .mob-navbar {
    display: none !important;
}

/* Reset list styling for nav dropdowns */
header.hdr-v2 ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Ensure the search button from livesearch doesn't get old bg */
header.hdr-v2 .search_btn {
    background-image: none;
}
/* Put a search icon in the button via pseudo element */
header.hdr-v2 .search_btn::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' d='M21 21l-5.2-5.2M17 10a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin: auto;
}

/* Suppress old mobile search */
header.hdr-v2 ~ #mobile_search:not(.hdr-mobile-search),
header.hdr-v2 ~ .search.hidden-lg {
    display: none !important;
}

/* ========== LIVE SEARCH DROPDOWN OVERHAUL ========== */
header.hdr-v2 .live-search {
    z-index: 30000;
    padding: 0 !important;
    margin-top: 0 !important;
    left: 0 !important;
    border-radius: 0 0 10px 10px !important;
    overflow: hidden;
}
header.hdr-v2 .live-search-inner {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 12px 36px rgba(0,0,0,.2) !important;
    overflow: hidden;
}

/* Type filter tabs — clean flat style instead of pills */
header.hdr-v2 .live-type-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #e8eaed !important;
    background: #f8f9fa !important;
}
header.hdr-v2 .live-type-tab {
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    color: #555 !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
header.hdr-v2 .live-type-tab:hover {
    color: #1a1a2e !important;
    background: rgba(0,0,0,.03) !important;
}
header.hdr-v2 .live-type-tab.active {
    color: var(--hdr-accent) !important;
    background: none !important;
    border-bottom-color: var(--hdr-accent) !important;
    font-weight: 600 !important;
}
header.hdr-v2 .live-type-tab-count {
    font-weight: 700 !important;
    margin-left: 2px;
}

/* Result items — show ~10 items before scrolling */
header.hdr-v2 .live-search ul {
    max-height: 520px !important;
    scroll-behavior: smooth;
}
header.hdr-v2 .live-search ul li {
    padding: 6px 14px !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 48px !important;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}
header.hdr-v2 .live-search ul li:last-child {
    border-bottom: none;
}
header.hdr-v2 .live-search ul li:nth-child(even) {
    background: #fafbfc !important;
}
header.hdr-v2 .live-search ul li:hover {
    background: #f0f4f8 !important;
}

/* Product images in results */
header.hdr-v2 .live-search ul li .product-image img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 6px;
    object-fit: cover;
}

/* "View all results" button — site red accent */
header.hdr-v2 .live-search .result-text {
    background: var(--hdr-accent) !important;
    border-radius: 0 !important;
}
header.hdr-v2 .live-search .view-all-results {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 14px 0 !important;
    letter-spacing: .3px;
}
header.hdr-v2 .live-search .view-all-results:hover {
    text-decoration: none !important;
}

/* Platform picker group headers */
.platform-group-header {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 10px 14px 4px;
    border-top: 1px solid #eee;
    cursor: default;
}

/* Platform picker — mega dropdown */
header.hdr-v2 .search_group {
    position: relative;
}
header.hdr-v2 .platform-picker {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    z-index: 30001 !important;
    width: 420px;
    margin-top: 0;
}
header.hdr-v2 .platform-picker-inner {
    border: none !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,.4) !important;
    padding: 12px !important;
    overflow: visible !important;
    background: #2d2d3f !important;
}
header.hdr-v2 .platform-picker ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
}
header.hdr-v2 .platform-picker .platform-item {
    width: 50%;
    box-sizing: border-box;
    padding: 9px 12px !important;
    border-radius: 6px;
    font-size: 14px !important;
    color: rgba(255,255,255,.85) !important;
}
header.hdr-v2 .platform-picker .platform-item:hover {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
}
header.hdr-v2 .platform-picker .platform-item.active {
    background: rgba(242,58,64,.15) !important;
    color: var(--hdr-accent) !important;
}
header.hdr-v2 .platform-picker .platform-item.active .platform-item-count {
    background: rgba(242,58,64,.25) !important;
    color: var(--hdr-accent) !important;
}
header.hdr-v2 .platform-picker .platform-group-header {
    width: 100%;
    font-size: 10px;
    font-weight: 700;
    color: var(--hdr-accent);
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 10px 12px 4px !important;
    border-top: 1px solid rgba(255,255,255,.08);
    cursor: default;
}
header.hdr-v2 .platform-picker .platform-group-header:first-child {
    border-top: none;
    padding-top: 4px !important;
}
