/**
 * Trust2 — Futuristic topbar + header
 */

/* एक wrapper — topbar/header के बीच अलग रंग की line नहीं */
body.frontend-futuristic .fe-site-top {
    position: relative;
    z-index: 1000;
}

body.frontend-futuristic .fe-site-top .fe-topbar {
    border-bottom: none !important;
}

body.frontend-futuristic .fe-site-top .fe-topbar__line {
    display: none !important;
}

body.frontend-futuristic .fe-site-top header.fe-header.fe-header--futuristic {
    border-bottom: none !important;
    box-shadow: none !important;
}

body.frontend-futuristic .fe-site-top header.fe-header.fe-header--futuristic .fe-header__glow {
    display: none !important;
}

body.frontend-futuristic .fe-site-top {
    border-bottom: 1px solid var(--fe-border);
}

body.frontend-futuristic .fe-home .fe-site-top {
    border-bottom: none;
}

/* Stack tight: topbar → header (no absolute gap) */
body.frontend-futuristic header.fe-header.fe-header--futuristic {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding: 6px max(4%, env(safe-area-inset-left)) !important;
    padding-right: max(4%, env(safe-area-inset-right)) !important;
    min-height: 0;
}

body.frontend-futuristic header.fe-header.fe-header--futuristic .fe-header__inner {
    padding: 0;
    min-height: 0;
}

body.frontend-futuristic header.fe-header.fe-header--futuristic .header-logo {
    padding: 0 !important;
    max-width: none;
}

/* Homepage: hero bg पीछे — topbar/header बिना अलग पट्टी */
body.frontend-futuristic .fe-home .fe-site-top .fe-topbar,
body.frontend-futuristic .fe-home .fe-site-top header.fe-header.fe-header--futuristic:not(.sticky) {
    background: transparent !important;
    backdrop-filter: none;
}

body.frontend-futuristic .fe-home .fe-site-top header.fe-header.fe-header--futuristic.sticky {
    background: rgba(6, 11, 20, 0.96) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fe-border) !important;
}

/* —— Crypto topbar ticker —— */
body.frontend-futuristic .fe-topbar {
    position: relative;
    z-index: 1000;
    margin: 0;
    background: linear-gradient(90deg, rgba(12, 18, 32, 0.98), rgba(6, 11, 20, 0.98)) !important;
    border-bottom: 1px solid var(--fe-border);
    overflow: hidden;
}

body.frontend-futuristic .fe-topbar__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body.frontend-futuristic .fe-topbar__line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
}

body.frontend-futuristic .fe-topbar__row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    min-height: 32px;
}

body.frontend-futuristic .fe-topbar__label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 0 14px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    border-right: 1px solid var(--fe-border);
    background: color-mix(in srgb, var(--color-primary) 6%, transparent);
}

body.frontend-futuristic .fe-topbar__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    animation: feTopbarDot 1.8s ease-in-out infinite;
}

body.frontend-futuristic .fe-topbar__marquee-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

body.frontend-futuristic .fe-topbar .marquee {
    width: 100%;
    padding: 3px 0;
}

body.frontend-futuristic .fe-ticker-item {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 4px 18px 4px 12px !important;
    border-right: 1px solid var(--fe-border) !important;
}

body.frontend-futuristic .fe-ticker-item__icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--fe-border);
    overflow: hidden;
}

body.frontend-futuristic .fe-ticker-item__icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

body.frontend-futuristic .fe-ticker-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.15;
}

body.frontend-futuristic .fe-ticker-item__pair {
    margin: 0 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fe-text) !important;
}

body.frontend-futuristic .fe-ticker-item__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
}

body.frontend-futuristic .fe-ticker-item__price {
    color: var(--fe-text);
    font-weight: 600;
}

body.frontend-futuristic .fe-ticker-item__chg {
    font-weight: 600;
    font-size: 0.72rem;
    padding: 1px 7px;
    border-radius: 999px;
}

/* main.css .marquee-item span { color: primary } override */
body.frontend-futuristic .fe-topbar .marquee .marquee-item .fe-ticker-item__chg--up {
    color: #2ebd85 !important;
    background: rgba(46, 189, 133, 0.15) !important;
}

body.frontend-futuristic .fe-topbar .marquee .marquee-item .fe-ticker-item__chg--down {
    color: #ff5252 !important;
    background: rgba(255, 82, 82, 0.15) !important;
}

/* —— Main header shell —— */
body.frontend-futuristic header.fe-header.fe-header--futuristic {
    z-index: 999;
    border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--fe-border)) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

body.frontend-futuristic header.fe-header.fe-header--futuristic .fe-header__glow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--color-primary) 70%, transparent) 35%,
        color-mix(in srgb, #8b5cf6 50%, transparent) 65%,
        transparent
    );
    opacity: 0.9;
    pointer-events: none;
    z-index: 2;
}

body.frontend-futuristic header.fe-header.fe-header--futuristic .fe-header__inner {
    position: relative;
    z-index: 3;
}

/* Desktop nav pills */
@media (min-width: 1200px) {
    body.frontend-futuristic header.fe-header--futuristic .fe-header__nav.fe-mobile-drawer {
        background: linear-gradient(165deg, rgba(18, 26, 44, 0.75), rgba(8, 12, 22, 0.9)) !important;
        border: 1px solid var(--fe-border) !important;
        padding: 3px 12px !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            0 0 24px color-mix(in srgb, var(--color-primary) 8%, transparent);
    }

    body.frontend-futuristic header.fe-header--futuristic .fe-header__menu {
        display: flex !important;
        align-items: center;
        gap: 4px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    body.frontend-futuristic header.fe-header--futuristic .fe-header__menu > li {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.frontend-futuristic header.fe-header--futuristic .fe-header__menu > li > a {
        display: inline-flex !important;
        align-items: center;
        padding: 6px 12px !important;
        border-radius: 999px !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        color: var(--fe-muted) !important;
        border: 1px solid transparent;
        transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    body.frontend-futuristic header.fe-header--futuristic .fe-header__menu > li > a:hover,
    body.frontend-futuristic header.fe-header--futuristic .fe-header__menu > li > a.active {
        color: var(--color-primary) !important;
        background: color-mix(in srgb, var(--color-primary) 12%, transparent) !important;
        border-color: color-mix(in srgb, var(--color-primary) 35%, transparent) !important;
        box-shadow: 0 0 16px color-mix(in srgb, var(--color-primary) 20%, transparent);
    }
}

/* Language select */
body.frontend-futuristic .fe-header__lang select.language {
    appearance: none;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--fe-border) !important;
    border-radius: 999px !important;
    color: var(--fe-text) !important;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 28px 8px 12px !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
}

body.frontend-futuristic .fe-header__signin {
    border-radius: 999px !important;
    font-weight: 600 !important;
    box-shadow: 0 0 20px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

body.frontend-futuristic .fe-header__cta {
    box-shadow: 0 0 28px color-mix(in srgb, var(--color-primary) 35%, transparent) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.frontend-futuristic .fe-header__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 36px color-mix(in srgb, var(--color-primary) 50%, transparent) !important;
}

/* Mobile menu button */
body.frontend-futuristic .fe-header__menu-btn {
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
    background: linear-gradient(165deg, rgba(18, 26, 44, 0.95), rgba(8, 12, 22, 0.98)) !important;
    border: 1px solid color-mix(in srgb, var(--color-primary) 30%, var(--fe-border)) !important;
    color: var(--fe-text) !important;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.frontend-futuristic .fe-header__menu-btn:hover {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 16px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

body.frontend-futuristic .fe-header__menu-btn i {
    font-size: 1.35rem;
    color: var(--fe-text) !important;
}

/* Drawer CTA */
body.frontend-futuristic .fe-drawer-cta__btn {
    width: 100%;
    justify-content: center;
    border-radius: 999px !important;
    font-weight: 600 !important;
    box-shadow: 0 0 24px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

body.frontend-futuristic .fe-drawer-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--fe-border);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

body.frontend-futuristic .fe-drawer-close:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

@keyframes feTopbarDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

@media (max-width: 1199px) {
    body.frontend-futuristic header.fe-header.fe-header--futuristic {
        padding: 6px 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.frontend-futuristic .fe-topbar__dot {
        animation: none;
    }
}
