:root {
    --hstdr-fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hstdr-fx-blue: #0871df;
    --hstdr-fx-cyan: #06b6d4;
    --hstdr-fx-violet: #7c3aed;
    --hstdr-fx-green: #22c55e;
    --hstdr-fx-dark: #0b1120;
    --hstdr-fx-ink: #162447;
}

.hstdr-fx-topbar {
    position: relative;
    z-index: 70;
    background: linear-gradient(90deg, #071120, #102243 48%, #071120);
    color: rgba(255,255,255,.82);
    border-bottom: 1px solid rgba(255,255,255,.1);
    overflow: hidden;
}
.hstdr-fx-topbar-inner {
    max-width: 1440px;
    height: 38px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.hstdr-fx-marquee {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.hstdr-fx-marquee-track {
    display: flex;
    width: max-content;
    gap: 42px;
    white-space: nowrap;
    animation: hstdr-fx-marquee 32s linear infinite;
}
.hstdr-fx-marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    color: rgba(255,255,255,.72);
}
.hstdr-fx-marquee-track i { color: #38bdf8; }
@keyframes hstdr-fx-marquee { to { transform: translateX(-50%); } }

.hstdr-fx-top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
}
.hstdr-fx-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #86efac;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: .02em;
    opacity: .9;
}
.hstdr-fx-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34,197,94,.13);
    animation: hstdr-fx-pulse 1.9s ease-in-out infinite;
}
@keyframes hstdr-fx-pulse { 50% { transform: scale(1.4); opacity: .62; } }
.hstdr-fx-top-actions a {
    color: rgba(255,255,255,.68);
    transition: color .2s ease;
}
.hstdr-fx-top-actions a:hover { color: #fff; }

.hstdr-fx-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 14px 40px rgba(15,23,42,.07);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
}
.hstdr-dark .hstdr-fx-header {
    background: rgba(5,8,16,.94);
    border-bottom-color: rgba(255,255,255,.08);
    box-shadow: 0 18px 50px rgba(0,0,0,.38);
}
.hstdr-fx-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(560px 180px at 12% 10%, rgba(8,113,223,.13), transparent 68%),
        radial-gradient(420px 160px at 82% 0%, rgba(124,58,237,.11), transparent 70%),
        linear-gradient(90deg, rgba(8,113,223,.035) 1px, transparent 1px),
        linear-gradient(rgba(8,113,223,.03) 1px, transparent 1px);
    background-size: auto, auto, 42px 42px, 42px 42px;
}
.hstdr-fx-main {
    position: relative;
    max-width: 1440px;
    min-height: 82px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}
.hstdr-fx-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 176px;
}
.hstdr-fx-logo img {
    width: 160px;
    height: auto;
    transition: transform .28s var(--hstdr-fx-ease);
}
.hstdr-fx-logo:hover img { transform: translateY(-1px) scale(1.02); }

.hstdr-fx-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.hstdr-fx-nav-item { position: relative; }
.hstdr-fx-nav-item.has-new {
    padding-top: 0;
}
.hstdr-fx-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #334155;
    font-family: Manrope, Inter, sans-serif;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
    transition: color .22s ease, background .22s ease, box-shadow .22s ease;
}
.hstdr-dark .hstdr-fx-nav-link { color: #dbeafe; }
.hstdr-fx-nav-link:hover,
.hstdr-fx-nav-item.hstdr-fx-active .hstdr-fx-nav-link {
    color: var(--hstdr-fx-blue);
    background: rgba(8,113,223,.08);
    box-shadow: inset 0 0 0 1px rgba(8,113,223,.1);
}
.hstdr-fx-nav-link i { font-size: 10px; opacity: .68; transition: transform .2s ease; }
.hstdr-fx-nav-item.hstdr-fx-active .hstdr-fx-nav-link i { transform: rotate(180deg); }
.hstdr-fx-pill {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    height: 17px;
    padding: 0 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 8px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .03em;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(37,99,235,.25);
    overflow: hidden;
    pointer-events: none;
}
.hstdr-fx-pill::after {
    content: "";
    position: absolute;
    top: -40%;
    bottom: -40%;
    width: 18px;
    left: -26px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
    transform: rotate(18deg);
    animation: hstdr-fx-pill-shine 2.6s ease-in-out infinite;
}
@keyframes hstdr-fx-pill-shine { 55%, 100% { left: calc(100% + 26px); } }

.hstdr-fx-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 292px;
    flex-shrink: 0;
}
.hstdr-fx-currency {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border-radius: 999px;
    background: #eef4ff;
    border: 1px solid rgba(8,113,223,.12);
}
.hstdr-dark .hstdr-fx-currency { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.hstdr-fx-currency button {
    width: 38px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}
.hstdr-fx-currency button.is-active {
    background: var(--hstdr-fx-blue);
    color: #fff;
    box-shadow: 0 10px 22px rgba(8,113,223,.25);
}
.hstdr-fx-icon-btn,
.hstdr-fx-login,
.hstdr-fx-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 44px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(255,255,255,.72);
    color: #334155;
    transition: transform .2s var(--hstdr-fx-ease), color .2s ease, border-color .2s ease, background .2s ease;
}
.hstdr-dark .hstdr-fx-icon-btn,
.hstdr-dark .hstdr-fx-login,
.hstdr-dark .hstdr-fx-mobile-btn {
    background: rgba(255,255,255,.06);
    color: #e2e8f0;
    border-color: rgba(255,255,255,.1);
}
.hstdr-fx-icon-btn { width: 44px; }
.hstdr-fx-login {
    gap: 8px;
    min-width: 108px;
    padding: 0 17px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.hstdr-fx-icon-btn:hover,
.hstdr-fx-login:hover,
.hstdr-fx-mobile-btn:hover {
    transform: translateY(-1px);
    color: var(--hstdr-fx-blue);
    border-color: rgba(8,113,223,.25);
}
.hstdr-fx-mobile-btn { display: none; width: 42px; border: 0; }

.hstdr-fx-overlay {
    position: fixed;
    inset: 120px 0 0;
    z-index: 54;
    background: rgba(2,6,23,.24);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
    backdrop-filter: blur(2px);
}
.hstdr-fx-overlay.is-visible { opacity: 1; pointer-events: auto; }
.hstdr-fx-mega {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 55;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 38px 70px rgba(15,23,42,.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .28s ease, transform .36s var(--hstdr-fx-ease), visibility .28s ease;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.hstdr-dark .hstdr-fx-mega {
    background: rgba(5,8,16,.98);
    border-bottom-color: rgba(255,255,255,.08);
    box-shadow: 0 42px 84px rgba(0,0,0,.55);
}
.hstdr-fx-mega.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.hstdr-fx-mega::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--hstdr-fx-blue), var(--hstdr-fx-cyan), var(--hstdr-fx-violet), var(--hstdr-fx-blue));
    background-size: 220% 100%;
    animation: hstdr-fx-shift 4s linear infinite;
}
@keyframes hstdr-fx-shift { to { background-position: 220% 0; } }
.hstdr-fx-mega-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 30px 34px;
}
.hstdr-fx-mega-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.hstdr-fx-mega-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--hstdr-fx-blue), var(--hstdr-fx-violet));
    box-shadow: 0 18px 38px rgba(8,113,223,.28);
}
.hstdr-fx-mega-title {
    color: #0f172a;
    font-family: Manrope, Inter, sans-serif;
    font-size: 21px;
    font-weight: 950;
    letter-spacing: -.01em;
}
.hstdr-dark .hstdr-fx-mega-title { color: #fff; }
.hstdr-fx-mega-desc {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
}
.hstdr-dark .hstdr-fx-mega-desc { color: #94a3b8; }
.hstdr-fx-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 260px;
    gap: 26px;
}
.hstdr-fx-mega-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)) 260px; }
.hstdr-fx-col-title {
    position: relative;
    margin-bottom: 12px;
    padding-bottom: 10px;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.hstdr-fx-col-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(8,113,223,.35), transparent);
}
.hstdr-fx-links {
    display: grid;
    gap: 7px;
}
.hstdr-fx-link {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 56px;
    padding: 10px;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    transition: background .2s ease, transform .2s var(--hstdr-fx-ease), color .2s ease;
}
.hstdr-dark .hstdr-fx-link { color: #dbeafe; }
.hstdr-fx-link:hover {
    background: rgba(8,113,223,.075);
    transform: translateX(3px);
}
.hstdr-fx-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--hstdr-fx-blue);
    background: rgba(8,113,223,.09);
    border: 1px solid rgba(8,113,223,.12);
    font-size: 16px;
    line-height: 1;
    text-align: center;
}
.hstdr-fx-link-icon i {
    display: block;
    line-height: 1;
}
.hstdr-fx-link strong {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #172033;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}
.hstdr-dark .hstdr-fx-link strong { color: #fff; }
.hstdr-fx-link > span:not(.hstdr-fx-link-icon) {
    display: block;
    min-width: 0;
}
.hstdr-fx-link > span:not(.hstdr-fx-link-icon) > span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
}
.hstdr-dark .hstdr-fx-link > span:not(.hstdr-fx-link-icon) > span { color: #94a3b8; }
.hstdr-fx-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(245,158,11,.14);
    color: #d97706;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .04em;
}
.hstdr-fx-soon {
    opacity: .62;
    cursor: not-allowed;
    overflow: hidden;
}
.hstdr-fx-soon::after {
    content: "YAKINDA";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245,158,11,.64);
    border: 1px solid rgba(245,158,11,.42);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: .16em;
    transform: rotate(-11deg) scale(.82);
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(1.6px);
}
.hstdr-fx-promo {
    position: relative;
    min-height: 100%;
    padding: 22px;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(6,182,212,.22), transparent 38%),
        linear-gradient(135deg, rgba(8,113,223,.12), rgba(124,58,237,.11));
    border: 1px solid rgba(8,113,223,.18);
}
.hstdr-dark .hstdr-fx-promo { background: linear-gradient(135deg, rgba(8,113,223,.18), rgba(124,58,237,.17)); }
.hstdr-fx-promo-label {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(8,113,223,.12);
    color: var(--hstdr-fx-blue);
    font-size: 10px;
    font-weight: 950;
}
.hstdr-fx-promo-title {
    margin-top: 16px;
    color: #0f172a;
    font-family: Manrope, Inter, sans-serif;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.14;
}
.hstdr-dark .hstdr-fx-promo-title { color: #fff; }
.hstdr-fx-promo-desc {
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.55;
}
.hstdr-dark .hstdr-fx-promo-desc { color: #cbd5e1; }
.hstdr-fx-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 11px 14px;
    border-radius: 999px;
    background: #0f2147;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.hstdr-fx-mobile-panel {
    position: fixed;
    inset: 82px 0 0 auto;
    z-index: 80;
    width: min(390px, 100vw);
    padding: 18px;
    overflow-y: auto;
    background: rgba(255,255,255,.98);
    border-left: 1px solid rgba(15,23,42,.08);
    box-shadow: -24px 0 60px rgba(15,23,42,.18);
    transition: transform .3s var(--hstdr-fx-ease);
}
.hstdr-dark .hstdr-fx-mobile-panel {
    background: rgba(5,8,16,.98);
    border-left-color: rgba(255,255,255,.08);
}
.hstdr-fx-mobile-section {
    border-bottom: 1px solid rgba(148,163,184,.18);
}
.hstdr-fx-mobile-section button,
.hstdr-fx-mobile-direct {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #172033;
    font-size: 14px;
    font-weight: 900;
}
.hstdr-dark .hstdr-fx-mobile-section button,
.hstdr-dark .hstdr-fx-mobile-direct { color: #fff; }
.hstdr-fx-mobile-sub {
    display: none;
    padding: 0 0 12px;
}
.hstdr-fx-mobile-sub.hstdr-open {
    display: block;
}
.hstdr-fx-mobile-sub a,
.hstdr-fx-mobile-sub div[aria-disabled="true"] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}
.hstdr-dark .hstdr-fx-mobile-sub a,
.hstdr-dark .hstdr-fx-mobile-sub div[aria-disabled="true"] { color: #cbd5e1; }
.hstdr-fx-mobile-sub a:hover { background: rgba(8,113,223,.08); color: var(--hstdr-fx-blue); }
.hstdr-fx-mobile-sub .hstdr-fx-soon::after { font-size: 10px; }

@media (max-width: 1320px) {
    .hstdr-fx-main { gap: 18px; padding: 0 20px; }
    .hstdr-fx-logo img { width: 146px; }
    .hstdr-fx-actions { min-width: 274px; gap: 8px; }
    .hstdr-fx-nav-link { padding: 0 10px; font-size: 12px; }
}
@media (max-width: 1240px) {
    .hstdr-fx-nav { display: none; }
    .hstdr-fx-mobile-btn { display: inline-flex; }
    .hstdr-fx-main { min-height: 82px; }
    .hstdr-fx-actions { min-width: 0; }
    .hstdr-fx-login { display: none; }
}
@media (max-width: 760px) {
    .hstdr-fx-topbar { display: none; }
    .hstdr-fx-main { padding: 0 16px; grid-template-columns: auto auto; justify-content: space-between; }
    .hstdr-fx-actions { gap: 8px; }
    .hstdr-fx-currency { display: none; }
    .hstdr-fx-icon-btn, .hstdr-fx-mobile-btn { height: 40px; min-width: 40px; width: 40px; }
    .hstdr-fx-logo img { width: 142px; }
    .hstdr-fx-mobile-sub .hstdr-fx-soon {
        padding-right: 88px;
        opacity: .82;
        overflow: visible;
    }
    .hstdr-fx-mobile-sub .hstdr-fx-soon::after {
        inset: auto 8px auto auto;
        width: auto;
        height: 22px;
        padding: 0 8px;
        border-radius: 999px;
        font-size: 8px;
        letter-spacing: .08em;
        transform: none;
        background: rgba(245,158,11,.12);
        backdrop-filter: none;
    }
}
