/* Crypto navigation uses the same responsive controller as the homepage. */
.crypto-page .site-header {
    position: relative;
    z-index: 100;
    top: auto;
    min-height: 72px;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 17, 27, .93);
    backdrop-filter: blur(16px);
}

.crypto-page .site-header .header-inner {
    position: relative;
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 28px;
}

.crypto-page .site-header .brand {
    display: inline-flex;
    flex: 0 0 auto;
}

.crypto-page .site-header .top-nav,
.crypto-page .site-header.is-open .top-nav {
    position: static;
    display: flex;
    min-width: 0;
    width: auto;
    max-height: none;
    padding: 0;
    flex: 1 1 auto;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-end;
    column-gap: 25px;
    row-gap: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.crypto-page .site-header .top-nav a {
    display: inline-flex;
    width: auto;
    min-height: 0;
    padding: 7px 0;
    flex: 0 0 auto;
    align-items: center;
    color: #bdcad5;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    text-decoration: none;
    white-space: nowrap;
}

.crypto-page .site-header .top-nav a:hover,
.crypto-page .site-header .top-nav a:focus-visible,
.crypto-page .site-header .top-nav a[aria-current="page"] {
    color: var(--accent);
}

.crypto-page .site-header .mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    cursor: pointer;
}

.crypto-page .site-header .menu-lines,
.crypto-page .site-header .menu-lines::before,
.crypto-page .site-header .menu-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: auto;
    content: "";
    background: currentColor;
}

.crypto-page .site-header .menu-lines::before {
    transform: translateY(-6px);
}

.crypto-page .site-header .menu-lines::after {
    transform: translateY(4px);
}

@media screen and (max-width: 850px) and (min-width: 761px) {
    .crypto-page .site-header .top-nav {
        column-gap: 12px;
    }

    .crypto-page .site-header .top-nav a {
        font-size: 11px;
    }
}

@media screen and (max-width: 760px) {
    .crypto-page .site-header {
        position: fixed;
        z-index: 100;
        top: 8px;
        top: max(8px, env(safe-area-inset-top));
        right: auto;
        left: 0;
        display: block;
        width: 100%;
        min-height: 52px;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        pointer-events: none;
    }

    .crypto-page .site-header .header-inner {
        display: flex;
        width: 100%;
        min-height: 52px;
        margin: 0;
        padding: 0 14px;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
    }

    .crypto-page .site-header .brand {
        display: none;
    }

    .crypto-page .site-header .mobile-menu-toggle {
        position: relative;
        z-index: 102;
        display: block;
        width: 52px;
        height: 52px;
        margin: 0;
        padding: 0;
        color: #fff;
        border: 1px solid rgba(102, 224, 187, .4);
        border-radius: 15px;
        background: rgba(9, 17, 27, .94);
        box-shadow: 0 10px 30px rgba(0, 0, 0, .32);
        backdrop-filter: blur(16px);
        font-size: 0;
        pointer-events: auto;
        touch-action: manipulation;
    }

    .crypto-page .site-header .mobile-menu-toggle:focus-visible {
        outline: 3px solid rgba(102, 224, 187, .5);
        outline-offset: 3px;
    }

    .crypto-page .site-header .menu-lines {
        position: relative;
        display: block;
        width: 24px;
        height: 2px;
        margin: auto;
        border-radius: 2px;
        background: currentColor;
    }

    .crypto-page .site-header .menu-lines::before,
    .crypto-page .site-header .menu-lines::after {
        position: absolute;
        left: 0;
        display: block;
        width: 24px;
        height: 2px;
        content: "";
        border-radius: 2px;
        background: currentColor;
    }

    .crypto-page .site-header .menu-lines::before {
        top: -7px;
        transform: none;
    }

    .crypto-page .site-header .menu-lines::after {
        top: 7px;
        transform: none;
    }

    .crypto-page .site-header .top-nav,
    .crypto-page .site-header.is-open .top-nav {
        position: absolute;
        z-index: 101;
        top: calc(100% + 8px);
        right: 14px;
        left: 14px;
        display: none;
        width: auto;
        max-height: calc(100vh - 84px);
        max-height: calc(100dvh - 84px);
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        scrollbar-gutter: stable;
        color: #fff;
        border: 1px solid rgba(102, 224, 187, .28);
        border-radius: 14px;
        background: rgba(9, 17, 27, .98);
        box-shadow: 0 18px 45px rgba(0, 0, 0, .48);
        pointer-events: auto;
    }

    .crypto-page .site-header.is-open .top-nav {
        display: flex;
    }

    .crypto-page .site-header .top-nav a {
        display: flex;
        width: 100%;
        min-height: 44px;
        padding: 11px 12px;
        flex: 0 0 auto;
        align-items: center;
        color: #e8edf4;
        border-radius: 10px;
        background: transparent;
        font-size: .88rem;
        line-height: 1.35;
    }

    .crypto-page .site-header .top-nav a:hover,
    .crypto-page .site-header .top-nav a:focus-visible,
    .crypto-page .site-header .top-nav a[aria-current="page"]:hover,
    .crypto-page .site-header .top-nav a[aria-current="page"]:focus-visible {
        color: #071b18;
        background: linear-gradient(135deg, #a4f2d8, #49b99a);
        outline: none;
    }
}
