:root {
    --glxh-height: 136px;
    --glxh-bg: rgba(3, 7, 18, .94);
    --glxh-bg2: rgba(2, 6, 23, .98);
    --glxh-card: rgba(15, 23, 42, .72);
    --glxh-border: rgba(148, 163, 184, .22);
    --glxh-text: #f8fafc;
    --glxh-muted: #94a3b8;
    --glxh-blue: #38bdf8;
    --glxh-purple: #a855f7;
    --glxh-green: #22c55e;
}

body.glx-header-v3-active #masthead,
body.glx-header-v3-active .site-header,
body.glx-header-v3-active .main-header,
body.glx-header-v3-active .header-area,
body.glx-header-v3-active .theme-header,
body.glx-header-v3-active .elementor-location-header,
body.glx-header-v3-active .wp-site-blocks > header:not(.glx-header-v3),
body.glx-header-v3-active > header:not(.glx-header-v3),
body.glx-header-v3-active .td-header-wrap,
body.glx-header-v3-active .td-header-menu-wrap,
body.glx-header-v3-active .td-header-mobile-wrap,
body.glx-header-v3-active .tdc-header-wrap,
body.glx-header-v3-active .td-header-template-wrap,
body.glx-header-v3-active .tdb_header,
body.glx-header-v3-active .td-mobile-nav,
body.glx-header-v3-active .td-mobile-container,
body.glx-header-v3-active #td-mobile-nav,
body.glx-header-v3-active #td-header-menu {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

body.glx-header-v3-active {
    padding-top: var(--glxh-height) !important;
}

.glx-header-v3,
.glx-header-v3 *,
.glxh-backdrop {
    box-sizing: border-box;
}

.glx-header-v3 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147483000;
    overflow: visible;
    color: var(--glxh-text);
    background:
        radial-gradient(circle at 15% 0%, rgba(56, 189, 248, .25), transparent 32%),
        radial-gradient(circle at 85% 10%, rgba(168, 85, 247, .20), transparent 30%),
        linear-gradient(180deg, rgba(2, 6, 23, .98), rgba(3, 7, 18, .94));
    border-bottom: 1px solid var(--glxh-border);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-bar .glx-header-v3 {
    top: 32px;
}

.glxh-main {
    max-width: 1320px;
    min-height: 74px;
    margin: 0 auto;
    padding: 12px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.glxh-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none !important;
    color: var(--glxh-text) !important;
}

.glxh-logo {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background:
        linear-gradient(135deg, rgba(56,189,248,.30), rgba(168,85,247,.26)),
        rgba(15,23,42,.9);
    border: 1px solid rgba(125,211,252,.40);
    box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 10px 30px rgba(56,189,248,.16);
    overflow: hidden;
}

.glxh-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.glxh-logo-fallback {
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -.08em;
    background: linear-gradient(135deg, #fff, #7dd3fc 45%, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glxh-brand-text {
    display: grid;
    line-height: 1.05;
}

.glxh-brand-text strong {
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -.05em;
}

.glxh-brand-text small {
    margin-top: 5px;
    color: var(--glxh-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .15em;
}

.glxh-nav__list,
.glxh-mobile-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glxh-nav__list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.glxh-nav__list li {
    margin: 0;
    padding: 0;
}

.glxh-nav__list a,
.glxh-dropdown-toggle {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(248,250,252,.85) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.glxh-dropdown-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.glxh-dropdown-toggle b {
    font-size: 14px;
    line-height: 1;
    color: #7dd3fc;
}

.glxh-nav__list a:hover,
.glxh-dropdown-toggle:hover,
.glxh-has-dropdown.glxh-open > .glxh-dropdown-toggle {
    color: #fff !important;
    background: rgba(56,189,248,.13);
    transform: translateY(-1px);
}

.glxh-has-dropdown {
    position: relative;
}

.glxh-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    width: 520px;
    max-width: calc(100vw - 32px);
    transform: translateX(-50%);
    padding: 14px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 18% 0%, rgba(56,189,248,.20), transparent 42%),
        linear-gradient(180deg, rgba(15,23,42,.99), rgba(2,6,23,.99));
    border: 1px solid rgba(148,163,184,.22);
    box-shadow: 0 26px 80px rgba(0,0,0,.55);
    z-index: 2147483200;
}

.glxh-dropdown[hidden] {
    display: none !important;
}

.glxh-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translateX(-50%) rotate(45deg);
    background: rgba(15,23,42,.99);
    border-left: 1px solid rgba(148,163,184,.22);
    border-top: 1px solid rgba(148,163,184,.22);
}

.glxh-dropdown-head {
    padding: 6px 8px 12px;
}

.glxh-dropdown-head strong,
.glxh-dropdown-head span {
    display: block;
}

.glxh-dropdown-head strong {
    font-size: 15px;
    font-weight: 950;
    color: #f8fafc;
}

.glxh-dropdown-head span {
    margin-top: 4px;
    color: var(--glxh-muted);
    font-size: 12px;
    font-weight: 700;
}

.glxh-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.glxh-dropdown-grid a {
    min-height: 58px;
    padding: 12px;
    border-radius: 16px;
    display: grid;
    align-content: center;
    background: rgba(15,23,42,.62);
    border: 1px solid rgba(148,163,184,.14);
    transform: none !important;
}

.glxh-dropdown-grid a:hover {
    background: rgba(56,189,248,.12);
}

.glxh-dropdown-grid a strong {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 900;
}

.glxh-dropdown-grid a span {
    margin-top: 4px;
    color: var(--glxh-muted);
    font-size: 11px;
    font-weight: 750;
}

.glxh-dropdown-empty {
    grid-column: 1 / -1;
    padding: 14px;
    color: var(--glxh-muted);
}

.glxh-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.glxh-search,
.glxh-clock,
.glxh-cta,
.glxh-burger {
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.22);
}

.glxh-search {
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15,23,42,.70);
    color: rgba(248,250,252,.92);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.glxh-search b {
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
}

.glxh-clock {
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(15,23,42,.70);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.glxh-clock i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glxh-green);
    box-shadow: 0 0 16px rgba(34,197,94,.95);
}

.glxh-cta {
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #020617 !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #7dd3fc, #c084fc);
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 12px 26px rgba(56,189,248,.22);
}

.glxh-burger {
    width: 42px;
    padding: 0;
    display: none;
    background: rgba(15,23,42,.72);
    cursor: pointer;
}

.glxh-burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #f8fafc;
}

.glxh-news-marquee {
    border-top: 1px solid rgba(148,163,184,.10);
    background: rgba(2,6,23,.58);
    overflow: hidden;
}

.glxh-news-marquee-track {
    width: max-content;
    min-width: max(220vw, 100%);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 0;
    animation: glxhFastNewsMove 16s linear infinite;
    will-change: transform;
}

.glxh-news-marquee-group,
.glxh-strip-group {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
}

.glxh-news-marquee-group {
    padding-left: 24px;
}


.glxh-news-marquee span,
.glxh-news-marquee a {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: rgba(56,189,248,.10);
    border: 1px solid rgba(125,211,252,.20);
    color: rgba(248,250,252,.92) !important;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    text-decoration: none !important;
}

.glxh-news-marquee strong {
    color: #7dd3fc;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

@keyframes glxhFastNewsMove {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

.glxh-strip {
    border-top: 1px solid rgba(148,163,184,.12);
    background: rgba(2,6,23,.45);
    overflow: hidden;
}

.glxh-strip-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 7px 0 9px;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: none;
}

.glxh-strip-inner::-webkit-scrollbar {
    display: none;
}

.glxh-strip-inner.glxh-dragging {
    cursor: grabbing;
}

.glxh-strip-inner.glxh-dragging .glxh-strip-track {
    animation-play-state: paused;
}

.glxh-strip-track {
    width: max-content;
    min-width: max(220vw, 100%);
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    animation: glxhTickerMove 34s linear infinite;
    will-change: transform;
}

.glxh-strip-group {
    padding-left: 24px;
}


.glxh-strip span,
.glxh-strip a {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: rgba(15,23,42,.62);
    border: 1px solid rgba(148,163,184,.15);
    color: rgba(248,250,252,.82) !important;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    text-decoration: none !important;
}

.glxh-strip a:hover {
    color: #ffffff !important;
    background: rgba(14,165,233,.18);
    border-color: rgba(125,211,252,.35);
}

.glxh-strip strong {
    color: #7dd3fc;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.glxh-strip em {
    font-style: normal;
    font-variant-numeric: tabular-nums;
}

.glxh-strip-separator {
    opacity: .55;
}

@keyframes glxhTickerMove {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}


.glxh-search-panel {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px 14px;
}

.glxh-search-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(15,23,42,.86);
    border: 1px solid rgba(148,163,184,.20);
}

.glxh-search-panel input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 14px;
    padding: 0 14px;
    background: rgba(2,6,23,.72);
    color: #f8fafc;
    outline: none;
}

.glxh-search-panel button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #7dd3fc, #c084fc);
    color: #020617;
    font-weight: 950;
    cursor: pointer;
}

.glxh-search-results {
    margin-top: 10px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(15,23,42,.88);
    border: 1px solid rgba(148,163,184,.18);
}

.glxh-search-results[hidden] {
    display: none !important;
}

.glxh-search-result {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 16px;
    color: #f8fafc !important;
    text-decoration: none !important;
    background: rgba(2,6,23,.38);
    border: 1px solid rgba(148,163,184,.12);
}

.glxh-search-result + .glxh-search-result {
    margin-top: 8px;
}

.glxh-search-result:hover {
    background: rgba(56,189,248,.11);
}

.glxh-search-result strong {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 950;
}

.glxh-search-result span {
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 800;
}

.glxh-search-result p {
    margin: 0;
    color: rgba(226,232,240,.78);
    font-size: 12px;
    line-height: 1.5;
}

.glxh-search-message {
    margin: 0;
    padding: 12px;
    color: var(--glxh-muted);
    font-size: 13px;
    font-weight: 750;
}

.glxh-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147482990;
    background: rgba(2,6,23,.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.glxh-backdrop[hidden],
.glxh-mobile-panel[hidden],
.glxh-search-panel[hidden] {
    display: none !important;
}

.glxh-mobile-panel {
    position: fixed;
    top: calc(100% + 10px);
    right: 16px;
    width: min(390px, calc(100vw - 32px));
    z-index: 2147483010;
    padding: 14px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 0%, rgba(56,189,248,.20), transparent 40%),
        linear-gradient(180deg, rgba(15,23,42,.99), rgba(2,6,23,.99));
    border: 1px solid rgba(148,163,184,.23);
    box-shadow: 0 26px 80px rgba(0,0,0,.58);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.glxh-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 12px;
}

.glxh-mobile-top strong {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 950;
}

.glxh-mobile-top button {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 13px;
    background: rgba(15,23,42,.75);
    color: #f8fafc;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.glxh-mobile-nav__list {
    display: grid;
    gap: 8px;
}

.glxh-mobile-nav__list a {
    min-height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    border-radius: 16px;
    background: rgba(15,23,42,.66);
    border: 1px solid rgba(148,163,184,.14);
    color: #f8fafc !important;
    text-decoration: none !important;
    font-weight: 850;
}

.glxh-mobile-category-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15,23,42,.60);
    border: 1px solid rgba(148,163,184,.14);
}

.glxh-mobile-category-box > strong {
    display: block;
    margin-bottom: 10px;
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.glxh-mobile-category-list {
    display: grid;
    gap: 7px;
}

.glxh-mobile-category-list a {
    min-height: 40px;
    padding: 0 11px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(2,6,23,.42);
    border: 1px solid rgba(148,163,184,.11);
    color: #f8fafc !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 850;
}

.glxh-mobile-category-list span {
    color: var(--glxh-muted);
    font-size: 11px;
}

.glxh-mobile-cards {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.glxh-mobile-cards div {
    min-height: 68px;
    padding: 12px;
    border-radius: 17px;
    background: rgba(15,23,42,.66);
    border: 1px solid rgba(148,163,184,.14);
}

.glxh-mobile-cards strong,
.glxh-mobile-cards span {
    display: block;
}

.glxh-mobile-cards strong {
    color: #7dd3fc;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.glxh-mobile-cards span {
    margin-top: 7px;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 850;
}

.glxh-mobile-buttons {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.glxh-mobile-buttons a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #7dd3fc, #c084fc);
    color: #020617 !important;
    text-decoration: none !important;
    font-weight: 950;
}

body.glxh-menu-open {
    overflow: hidden;
}

@media (max-width: 1050px) {
    .glxh-nav {
        display: none;
    }

    .glxh-burger {
        display: inline-block;
    }

    .glxh-main {
        grid-template-columns: auto 1fr auto;
    }
}

@media (max-width: 720px) {
    :root {
        --glxh-height: 128px;
    }

    .glxh-main {
        min-height: 68px;
        padding: 10px 14px;
        gap: 12px;
    }

    .glxh-logo {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .glxh-brand-text strong {
        font-size: 20px;
    }

    .glxh-brand-text small {
        font-size: 10px;
    }

    .glxh-clock,
    .glxh-search span,
    .glxh-cta {
        display: none;
    }

    .glxh-search {
        width: 42px;
        padding: 0;
        justify-content: center;
    }

    .glxh-strip-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .glxh-search-panel {
        padding-left: 14px;
        padding-right: 14px;
    }

    .glxh-search-panel form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .glxh-brand-text small {
        display: none;
    }

    .glxh-mobile-cards,
    .glxh-mobile-buttons {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .glx-header-v3 {
        top: 46px;
    }
}


/* 4.0.4 ticker stability: infinite, no blank gap, still draggable on desktop */
.glxh-news-marquee,
.glxh-strip {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.glxh-news-marquee-track,
.glxh-strip-track {
    min-width: max-content;
    width: max-content;
    animation-play-state: running !important;
}

.glxh-news-marquee-track {
    animation-duration: 12s !important;
}

.glxh-strip-track {
    animation-duration: 28s !important;
}

.glxh-strip-inner.glxh-dragging .glxh-strip-track,
.glxh-news-marquee.glxh-dragging .glxh-news-marquee-track {
    animation-play-state: paused !important;
}

@media (max-width: 640px) {
    .glxh-news-marquee-track { animation-duration: 10s !important; }
    .glxh-strip-track { animation-duration: 24s !important; }
    .glxh-news-marquee span,
    .glxh-news-marquee a,
    .glxh-strip span,
    .glxh-strip a { font-size: 11px; }
}

/* 4.0.5 ticker hardening: distance-based loop, no speed accumulation, no mobile clipping */
.glxh-news-marquee,
.glxh-strip {
    overflow: hidden !important;
    contain: paint;
}

.glxh-news-marquee-track,
.glxh-strip-track {
    min-width: 0 !important;
    width: max-content !important;
    transform: translate3d(0,0,0);
    animation-name: glxhLoopDistance !important;
    animation-duration: var(--glxh-loop-duration, 18s) !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-delay: 0s !important;
    will-change: transform;
}

.glxh-news-marquee-group,
.glxh-strip-group {
    flex: 0 0 auto !important;
}

.glxh-strip-inner {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

@keyframes glxhLoopDistance {
    from { transform: translate3d(0,0,0); }
    to { transform: translate3d(calc(var(--glxh-loop-distance, 720px) * -1),0,0); }
}

.glxh-news-marquee.glxh-dragging .glxh-news-marquee-track,
.glxh-strip-inner.glxh-dragging .glxh-strip-track {
    animation-play-state: paused !important;
}

@media (max-width: 767px) {
    .glxh-news-marquee,
    .glxh-strip,
    .glxh-strip-inner {
        touch-action: pan-y !important;
    }

    .glxh-news-marquee-track,
    .glxh-strip-track {
        animation-play-state: running !important;
    }
}
