.v2-header {
    height: 56px;
    border-bottom: 1px solid #252b35;
    background: #0d1117;
}

.v2-header-inner {
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-sizing: border-box;
}

.v2-brand {
    flex: 0 0 auto;
    display: none;
    align-items: center;
    justify-content: center;
    color: #f1f5f9;
    text-decoration: none;
}

.v2-brand-mark {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.v2-explore {
    height: 34px;
    padding: 0 10px;
    display: none;
    align-items: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #aeb7c4;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.v2-explore:hover {
    border-color: #303846;
    background: #151a22;
    color: #f1f5f9;
}

.v2-menu-icon {
    width: 14px;
    height: 10px;
    position: relative;
    display: inline-block;
    border-top: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    box-sizing: border-box;
}

.v2-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 3px;
    border-top: 1.5px solid currentColor;
}

.v2-global-search {
    width: min(440px, 42vw);
    height: 34px;
    margin-left: 8px;
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(139, 92, 246, .50);
    border-radius: 5px;
    background:
        linear-gradient(
            90deg,
            rgba(139, 92, 246, .025),
            rgba(139, 92, 246, .008) 55%,
            rgba(139, 92, 246, .018)
        ),
        #11161e;
}

.v2-global-search:focus-within {
    border-color: var(--v2-accent-soft);
}

.v2-search-icon {
    width: 13px;
    height: 13px;
    margin-left: 11px;
    border: 1.5px solid var(--v2-accent-soft);
    border-radius: 50%;
    box-sizing: border-box;
    position: relative;
    flex: 0 0 auto;
}

.v2-search-icon::after {
    content: "";
    width: 5px;
    border-top: 1.5px solid var(--v2-accent-soft);
    position: absolute;
    right: -4px;
    bottom: -2px;
    transform: rotate(45deg);
}

#v2-symbol-search {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 11px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #e7ecf2;
    font: inherit;
    font-size: 13px;
}

#v2-symbol-search::placeholder {
    color: #8994a4;
}

.v2-symbol-suggestions {
    position: absolute;
    z-index: 100;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    border: 1px solid #303846;
    border-radius: 6px;
    background: #11161e;
}

.v2-header-utilities {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.v2-utility-link {
    padding: 8px 9px;
    border-radius: 5px;
    color: #aeb7c4;
    text-decoration: none;
    font-size: 13px;
}

.v2-utility-link:hover {
    background: #151a22;
    color: #f1f5f9;
}

.v2-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    .v2-explore {
        display: inline-flex;
    }

    .v2-brand {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .v2-header {
        height: auto;
    }

    .v2-header-inner {
        min-height: 54px;
        padding: 9px 12px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .v2-explore span:last-child {
        display: none;
    }

    .v2-explore {
        width: 34px;
        padding: 0;
        justify-content: center;
    }

    .v2-global-search {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .v2-utility-link {
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .v2-header-utilities {
        margin-left: auto;
    }

    .v2-utility-link {
        padding-right: 2px;
    }
}

/* V2 persistent left-navigation shell */
.v2-global-search {
    margin-left: 22px;
}

@media (max-width: 1024px) {
    .v2-global-search {
        margin-left: 0;
    }
}

/* Approved V2 desktop shell geometry */
@media (min-width: 1025px) {
    .v2-header {
        margin-left: 88px;
    }

    .v2-header-inner {
        max-width: none;
        padding-left: 18px;
        padding-right: 18px;
    }

    .v2-global-search {
        margin-left: 0;
        width: min(510px, 42vw);
    }
}

/* ---------------------------------------------------------
   V2 account entry
   Existing WOI authentication -> /login
   --------------------------------------------------------- */

.v2-sign-in-link {
    height: 32px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #dce3eb;
    background: #111720;

    border: 1px solid #303845;
    border-radius: 5px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color 120ms ease,
        border-color 120ms ease,
        color 120ms ease;
}

.v2-sign-in-link:hover {
    color: #ffffff;
    background: #171e29;
    border-color: #46505f;
}

.v2-sign-in-link:focus-visible {
    outline: 2px solid #7657d6;
    outline-offset: 2px;
}


/* ---------------------------------------------------------
   V2 authenticated account control
   --------------------------------------------------------- */

.v2-account-menu {
    position: relative;
}

.v2-account-menu > summary {
    list-style: none;
}

.v2-account-menu > summary::-webkit-details-marker {
    display: none;
}

.v2-account-trigger {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    color: #eef2f7;
    background: #171e29;

    border: 1px solid #394352;
    border-radius: 50%;

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.v2-account-trigger:hover {
    background: #1d2632;
    border-color: #505c6d;
}

.v2-account-trigger:focus-visible {
    outline: 2px solid #7657d6;
    outline-offset: 2px;
}

.v2-account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;

    width: 220px;
    padding: 6px;

    background: #111720;
    border: 1px solid #303845;
    border-radius: 6px;

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.v2-account-identity {
    padding: 9px 10px 10px;

    border-bottom: 1px solid #252d38;
}

.v2-account-identity span {
    display: block;

    margin-bottom: 4px;

    color: #798698;

    font-size: 10px;
    font-weight: 500;
}

.v2-account-identity strong {
    display: block;

    overflow: hidden;

    color: #dce3eb;

    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-account-action {
    min-height: 30px;
    margin-top: 5px;
    padding: 0 9px;

    display: flex;
    align-items: center;

    color: #bfc8d4;

    border-radius: 4px;

    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
}

.v2-account-action:hover {
    color: #ffffff;
    background: #1a222d;
}

/* ---------------------------------------------------------
   V2 global alerts entry
   Badge = authoritative active price alert count
   --------------------------------------------------------- */

.v2-alert-bell {
    position: relative;

    width: 32px;
    height: 32px;
    margin: 0 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #9ca8b6;
    text-decoration: none;

    border: 1px solid transparent;
    border-radius: 5px;
}

.v2-alert-bell:hover {
    color: #eef2f7;
    background: #151a22;
    border-color: #28313d;
}

.v2-alert-bell:focus-visible {
    outline: 2px solid #7657d6;
    outline-offset: 2px;
}

.v2-alert-bell svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.v2-alert-bell-badge {
    position: absolute;
    top: -2px;
    right: -3px;

    min-width: 15px;
    height: 15px;
    padding: 0 4px;

    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: #7657d6;
    border: 2px solid #0d1219;
    border-radius: 8px;

    font-size: 8px;
    font-weight: 700;
    line-height: 11px;
}

.v2-alert-bell-badge:not([hidden]) {
    display: inline-flex;
}
