:root {
    --hd-accent: #0bb2b1;
    --hd-accent-bright: #00ffbe;
    --hd-accent-deep: #0a9897;
    --hd-gold: #ffb800;
    --hd-page-bg: #eef2f3;
    --hd-header-bg: #ffffff;
    --hd-surface: #f1f4f5;
    --hd-border: #e2e7e8;
    --hd-border-soft: #eceff0;
    --hd-text: #16201f;
    --hd-muted: #67726f;
    --hd-logo-ring: rgba(11, 178, 177, .18);
    --hd-glow: rgba(11, 178, 177, .28);
    --hd-shadow: 0 6px 18px -10px rgba(20, 40, 40, .28);
    --hd-danger: #ff5b5a;

    --hd-radius-sm: 8px;
    --hd-bar-h: 46px;
    --hd-bar2-h: 36px;

}


.site-hd-dark {
    --hd-page-bg: #050506;
    --hd-header-bg: #0c0c0e;
    /* deep, shiny black */
    --hd-surface: #18181c;
    --hd-border: #2a2a31;
    --hd-border-soft: #222228;
    --hd-text: #f5f7f7;
    --hd-muted: #b9bcc2;
    --hd-logo-ring: rgba(11, 178, 177, .26);
    --hd-glow: rgba(11, 178, 177, .40);
    --hd-shadow: 0 12px 32px -12px rgba(0, 0, 0, .92);
}

/* No animations in the header per request — state changes are instant. */
.site-header {
    position: absolute;
    top: 0;
    z-index: 1000;
    background: var(--hd-header-bg);
    border-bottom: 1px solid var(--hd-border-soft);
    display: block;
    width: 100%;
    height: auto !important;
}

.site-header.scrolled {
    box-shadow: var(--hd-shadow);
}

.hdbar {
    height: var(--hd-bar-h);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ---- Brand (left) ---- */
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand__logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--hd-logo-ring);
}

.brand__name {
    font-family: "Quicksand", "Quicksand Fallback", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .2px;
    color: var(--hd-accent);
    /* entire wordmark in brand teal */
    white-space: nowrap;
        line-height: 20px;
}

.brand__name b {
    color: var(--hd-accent);
    font-weight: 700;
}

.brand:hover .brand__name {
    color: var(--hd-accent-bright);
}

/* header promo banner (in place of the search bar) */
.promo {
    flex: 1 1 auto;
    max-width: 580px;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(11, 178, 177, .40);
    background: rgba(11, 178, 177, .09);
    color: var(--hd-text) !important;
    text-decoration: none;
    font: 500 .85rem "Poppins", "Poppins Fallback", sans-serif;
    white-space: nowrap;
    overflow: hidden;
}

.promo:hover {
    border-color: var(--hd-accent);
    background: rgba(11, 178, 177, .15);
}

.promo strong {
    color: var(--hd-accent);
    font-weight: 600;
}

.promo__text {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* contained CTA pill so the banner reads as an action, not an alert */
.promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--hd-accent);
    color: #04211f;
    font: 600 .8rem "Poppins", "Poppins Fallback", sans-serif;
}

.promo:hover .promo__cta {
    background: var(--hd-accent-bright);
}

.promo__cta svg {
    width: 12px;
    height: 12px;
}

/* ---- Actions (right) ---- */
.actions {
    display: flex;
    align-items: center;
    align-self: stretch;
    /* full bar height so the account menu anchors at the bottom */
    gap: 10px;
    flex-shrink: 0;
}

.theme-toggle {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid var(--hd-border);
    background: var(--hd-surface);
    color: var(--hd-text);
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--hd-accent);
    color: var(--hd-accent);
}

.theme-toggle svg {
    width: 17px;
    height: 17px;
}

.site-hd-light .theme-toggle .icon-sun {
    display: block;
}

.site-hd-light .theme-toggle .icon-moon {
    display: none;
}

.site-hd-dark .theme-toggle .icon-sun {
    display: none;
}

.site-hd-dark .theme-toggle .icon-moon {
    display: block;
}

/* ---- Notifications bell ---- */
.notif {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.notif__btn {
    position: relative;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid var(--hd-border);
    background: var(--hd-surface);
    color: var(--hd-text);
    cursor: pointer;
}

.notif__btn:hover,
.notif.is-open .notif__btn {
    border-color: var(--hd-accent);
    color: var(--hd-accent);
}

.notif__btn svg {
    width: 17px;
    height: 17px;
}

.notif__dot {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    background: var(--hd-danger);
    color: #fff;
    font: 700 .56rem "Poppins", "Poppins Fallback", sans-serif;
    border-radius: 999px;
    border: 2px solid var(--hd-header-bg);
}

.notif.is-read .notif__dot {
    display: none;
}

.notif__panel {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 130;
    width: 322px;
    max-width: 86vw;
    padding: 6px;
    background: var(--hd-header-bg);
    border: 1px solid var(--hd-border);
    border-radius: 0 0 14px 14px;
    box-shadow: var(--hd-shadow);
    display: none;
}

.notif.is-open>.notif__panel {
    display: block;
}

.notif__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 10px;
}

.notif__head>span {
    font: 600 .9rem "Poppins", "Poppins Fallback", sans-serif;
   color: var(--hd-text);
}

.notif__readall {
    background: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 6px;
    font: 500 .74rem "Poppins", "Poppins Fallback", sans-serif;
    color: var(--hd-accent);
}

.notif__readall:hover {
    text-decoration: underline;
}

.notif__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--hd-text) !important;
}

.notif__item:hover {
    background: var(--hd-surface);
}

.notif__item.is-unread {
    background: rgba(11, 178, 177, .06);
}

.notif__udot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hd-accent);
    margin-top: 6px;
    flex-shrink: 0;
    visibility: hidden;
}

.notif__item.is-unread .notif__udot {
    visibility: visible;
}

.notif__tl {
    display: block;
    font: 500 .84rem "Poppins", "Poppins Fallback", sans-serif;
    line-height: 1.35;
}

.notif__tm {
    display: block;
    font: 400 .72rem "Poppins", "Poppins Fallback", sans-serif;
    color: var(--hd-muted);
    margin-top: 2px;
}

.notif__all {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 4px;
    border-top: 1px solid var(--hd-border-soft);
    font: 600 .8rem "Poppins", "Poppins Fallback", sans-serif;
    color: var(--hd-accent);
    text-decoration: none;
}

.notif__all:hover {
    background: var(--hd-surface);
}

/* Sign In / Sign Up — plain text links (Investing.com style), with a divider */
.btn-signin,
.btn-signup {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    font: 500 .9rem "Poppins", "Poppins Fallback", sans-serif;
    color: var(--hd-text);
    text-decoration: none;
    padding: 6px 4px;
    white-space: nowrap;
}

.btn-signin:hover,
.btn-signup:hover {
    color: var(--hd-accent);
}

.btn-signup {
    border-left: 1px solid var(--hd-border);
    padding-left: 12px;
    margin-left: 2px;
}

/* ---- Auth states: logged-out (Sign In / Sign Up) vs logged-in (Hello, Name) ---- */
.auth--out {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth--in {
    display: none;
    position: relative;
    align-self: stretch;
}

.goc-authed .auth--out {
    display: none;
}

.goc-authed .auth--in {
    display: flex;
    align-items: stretch;
}

.account__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    background: none;
    border: 0;
    cursor: pointer;
    font: 500 .9rem "Poppins", "Poppins Fallback", sans-serif;
    color: var(--hd-text);
    white-space: nowrap;
    padding: 0 4px;
    outline: 0px !important;
}

.account__btn strong {
    font-weight: 600;
    color: var(--hd-accent);
}

.account__btn:hover {
    color: var(--hd-accent);
}

.account__caret {
    width: 12px;
    height: 12px;
    color: var(--hd-muted);
}

.auth--in.is-open .account__caret {
    color: var(--hd-accent);
}

/* account side panel (slides in from the right when logged in) */
.account__overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.auth--in.is-open .account__overlay {
    opacity: 1;
    visibility: visible;
}

.account__panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 210;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--hd-header-bg);
    border-left: 1px solid var(--hd-border);
    box-shadow: -16px 0 48px -20px rgba(0, 0, 0, .8);
    transform: translateX(100%);
    transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}

.auth--in.is-open .account__panel {
    transform: translateX(0);
}

.account__phead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid var(--hd-border-soft);
}

.account__puser {
    display: flex;
    align-items: center;
    gap: 11px;
}

.account__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--hd-surface);
    border: 1px solid var(--hd-border);
    color: var(--hd-accent);
    font: 800 1.05rem "Poppins", "Poppins Fallback", sans-serif;
    text-transform: uppercase;
}

.account__avatar svg {
    width: 20px;
    height: 20px;
}

.account__pname {
    font: 500 .98rem "Poppins", "Poppins Fallback", sans-serif;
    color: var(--hd-text);
}

.account__pname strong {
    font-weight: 600;
    color: var(--hd-accent);
}

.account__pclose {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    color: var(--hd-muted);
    outline: 0px !important;
}

.account__pclose:hover {
    background: var(--hd-surface);
    color: var(--hd-text);
}

.account__pclose svg {
    width: 18px;
    height: 18px;
}

.account__pnav {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
}

.account__prow {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border-radius: 10px;
    color: var(--hd-text) !important;
    text-decoration: none;
    font: 500 .9rem "Poppins", "Poppins Fallback", sans-serif;
}

.account__prow:hover {
    background: var(--hd-surface);
}

.account__prow svg {
    width: 19px;
    height: 19px;
    color: var(--hd-accent);
    flex-shrink: 0;
}

.account__pcol {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.account__psub {
    font: 400 .72rem "Poppins", "Poppins Fallback", sans-serif;
    color: var(--hd-muted);
}

.account__psep {
    height: 1px;
    background: var(--hd-border-soft);
    margin: 8px 12px;
}

.account__logout {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 16px 22px;
    border: 0;
    border-top: 1px solid var(--hd-border-soft);
    background: none;
    color: var(--hd-danger);
    cursor: pointer;
    font: 600 .92rem "Poppins", "Poppins Fallback", sans-serif;
    text-align: left;
    outline: none !important;
}

.account__logout:hover {
    background: rgba(255, 91, 90, .08);
}

.account__logout svg {
    width: 19px;
    height: 19px;
}

/* hamburger (shown on mobile only) */
.nav-burger {
    display: none;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid var(--hd-border);
    background: var(--hd-surface);
    color: var(--hd-text);
    cursor: pointer;
}

.nav-burger svg {
    width: 18px;
    height: 18px;
}

/* ===================== Second line / category nav ===================== */
/* No animations in the header — panels show/hide instantly. */
.subnav {
    background: var(--hd-header-bg);
    border-top: 1px solid var(--hd-border-soft);
}

.subnav__inner {
    height: var(--hd-bar2-h);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: stretch;
}

.subnav__list {
    list-style: none;
    display: flex;
    align-items: stretch;
    margin: 0px;
    padding: 0px;
}

.subnav__item {
    position: relative;
    display: flex;
    align-items: stretch;
}
.subnav__item:first-child .subnav__link{
    padding-left: 0px;
}
.site-hd-admin .subnav__item:first-child .subnav__link{
padding-left: 12px;
}

.subnav__trigger,
.subnav__link {
    font: 600 .86rem "Poppins", "Poppins Fallback", sans-serif;
    color: var(--hd-text);
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 13px;
    white-space: nowrap;
    outline: none !important;
        line-height: 21px;
}

.subnav__trigger:hover,
.subnav__link:hover,
.subnav__item.is-open .subnav__trigger {
    color: var(--hd-accent);
}

.subnav__caret {
    width: 12px;
    height: 12px;
    color: var(--hd-muted);
}

.subnav__trigger:hover .subnav__caret,
.subnav__item.is-open .subnav__caret {
    color: var(--hd-accent);
}

/* "Pro Tools" highlighted in gold (premium) — stays gold on hover/open */
.subnav__trigger--pro,
.subnav__trigger--pro:hover,
.subnav__item.is-open .subnav__trigger--pro {
    color: var(--hd-gold);
}

.subnav__trigger--pro .subnav__ticon,
.subnav__trigger--pro .subnav__caret {
    color: var(--hd-gold);
}

/* leading icons on the second-line triggers */
.subnav__ticon {
    width: 16px;
    height: 16px;
    color: var(--hd-accent);
    flex-shrink: 0;
}

/* mega panel — 2-column grid, gradient tiles, feature card + CTA bar */
.mega {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 120;
    min-width: 460px;
    padding: 8px;
    background: var(--hd-header-bg);
    border: 1px solid var(--hd-border);
    border-radius: 14px;
    box-shadow: var(--hd-shadow);
    display: none;
}

/* invisible bridge over the 4px gap so the panel stays open while the
     cursor travels from the trigger down into it */
.mega::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 6px;
}

.subnav__item.is-open>.mega,
.subnav__item.has-panel:hover>.mega {
    display: block;
}

.mega__head {
    font: 700 .64rem "Poppins", "Poppins Fallback", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--hd-muted);
    padding: 6px 8px 8px;
}

.mega__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    border-radius: 8px;
    background: transparent;
    text-decoration: none;
    color: var(--hd-text) !important;
    transition: none;
}

/* hairline divider between items (no boxes); sibling selector means a hidden
     row carries its own divider, so no orphan line shows when logged out */
.mega__row+.mega__row {
    border-top: 1px solid var(--hd-border-soft);
}

.mega__row:hover {
    background: var(--hd-surface);
}

.mega__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
}

.mega__icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mega__icon svg {
    width: 26px;
    height: 26px;
    color: var(--hd-accent);
}

/* in light theme, sit every tool icon on a dark chip — keeps the dark-built product
     icons visible and all icons consistent (app-icon style) */
.site-hd-light .mega__icon {
    background: #14161a;
    border-radius: 10px;
}
.site-hd-dark .mega__icon {
    background: transparent;
    border-radius: 10px;
}

.site-hd-dark .mega__icon img {
    max-width: 36px;
    max-height: 36px;
}

.mega__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mega__title {
    font: 600 .94rem "Poppins", "Poppins Fallback", sans-serif;
    display: flex;
    align-items: center;
    gap: 7px;
}

.mega__desc {
    font: 400 .82rem "Poppins", "Poppins Fallback", sans-serif;
    color: var(--hd-muted);
    line-height: 1.5;
    margin-top: 2px;
}

/* flagship feature card — spans both columns */
/* dual action: the row opens the landing page; the "Open tool" button
     launches the actual tool and only appears after login (i.e. once purchased) */
.mega__link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: var(--hd-text) !important;
}

/* once subscribed, the whole row opens the tool; "Overview" links to the landing page */
.mega__overview {
    display: none;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid var(--hd-border);
    color: var(--hd-muted);
    font: 600 .74rem "Poppins", "Poppins Fallback", sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

.mega__overview:hover {
    border-color: var(--hd-accent);
    color: var(--hd-accent);
}

.goc-authed .mega__overview {
    display: inline-flex;
}

.goc-authed .mega__link--locked ~ .mega__overview {
    display: none;
}

/* "Unlock" badge — shown on Pro tools the user hasn't unlocked yet (logged out);
     hidden once they have access (logged in), when the row opens the tool instead */
.lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font: 700 .56rem "Poppins", "Poppins Fallback", sans-serif;
    letter-spacing: .4px;
    color: var(--hd-gold);
    background: rgba(255, 184, 0, .15);
    border-radius: 999px;
    padding: 3px 8px 3px 6px;
    white-space: nowrap;
}

.lock-badge svg {
    width: 11px;
    height: 11px;
}


/* small red "NEW" tag on a nav item */
.new-tag {
    font: 700 .52rem "Poppins", "Poppins Fallback", sans-serif;
    letter-spacing: .5px;
    font-style: normal;
    color: #fff;
    background: var(--hd-danger);
    border-radius: 999px;
    padding: 2px 6px;
    line-height: 1;
}

/* bundled-with-Genie tools (Market View, Operator): dimmed when no access */
html:not(.goc-authed) .bundled,
html.goc-authed .mega__row--locked.bundled,
html.goc-authed .m-row--locked.bundled {
    opacity: .55;
}

.bundle-tag {
    display: inline-flex;
    align-items: center;
    font: 700 .54rem "Poppins", "Poppins Fallback", sans-serif;
    letter-spacing: .3px;
    font-style: normal;
    color: var(--hd-gold);
    background: rgba(255, 184, 0, .15);
    border-radius: 999px;
    padding: 3px 8px;
    white-space: nowrap;
}

html.goc-authed .mega__row:not(.mega__row--locked) .bundle-tag,
html.goc-authed .m-row:not(.m-row--locked) .bundle-tag {
    display: none;
}

/* "coming soon" rows */
.mega__row.is-soon {
    opacity: .6;
    cursor: default;
}

.mega__row.is-soon:hover {
    background: transparent;
}

.mega__row.is-soon:hover .mega__icon {
    border-color: var(--hd-border);
}

.subnav__link--pricing {
    margin-left: 4px;
}

/* logged-in only: Upgrade link shown next to Pricing (same style as Pricing) */
.subnav__item--auth {
    display: none;
}

.goc-authed .subnav__item--auth {
    display: flex;
}

/* mobile drawer + bottom tab bar (hidden on desktop) */
.subnav--mobile {
    display: none;
}

.tabbar {
    display: none;
}

/* ===================== Demo page backdrop ===================== */
.stage {
    position: relative;
    min-height: calc(100vh - var(--hd-bar-h) - var(--hd-bar2-h));
    padding: 90px 26px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.stage::before,
.stage::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    pointer-events: none;
    z-index: 0;
}

.stage::before {
    width: 460px;
    height: 460px;
    top: -120px;
    left: -80px;
    background: radial-gradient(circle, var(--hd-accent) 0%, transparent 70%);
}

.stage::after {
    width: 520px;
    height: 520px;
    bottom: -160px;
    right: -100px;
    background: radial-gradient(circle, var(--hd-accent-bright) 0%, transparent 70%);
    opacity: .28;
}

.stage__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
}

.stage__tag {
    font: 600 .78rem "Poppins", "Poppins Fallback", sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hd-accent);
    margin-bottom: 16px;
}

.stage__title {
    font: 700 clamp(2rem, 5vw, 3.2rem)/1.1 "Quicksand", "Quicksand Fallback", sans-serif;
    margin-bottom: 16px;
}

.stage__sub {
    color: var(--hd-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

/* ===================== Admin single-line header ===================== */
.site-hd-admin {
    display: flex;
    align-items: center;
    height: var(--hd-bar-h);
    position: fixed;
     padding: 10px 16px;
}

.site-hd-admin .mega {
    z-index: 9995;
    min-width: 245px;
    overflow: auto;
    max-height: 375px;
        top: calc(100% + 0px);
}
.mega::-webkit-scrollbar{
width: 6px;
}
.mega::-webkit-scrollbar-track{
  background: #000; 
}
.mega::-webkit-scrollbar-thumb{
  background: #8b8b8b; 
}

.site-hd-admin .hdbar {
    display: contents;
}

.site-hd-admin .brand {
    order: 1;
    flex-shrink: 0;
}

.site-hd-admin .subnav {
    order: 2;
    flex: 1;
    border-top: 0;
    background: transparent;
    height: 100%;
    overflow: visible;
}

.site-hd-admin .subnav__inner {
    height: 100%;
    padding: 0 4px;
    max-width: none;
}

.site-hd-admin .actions {
    order: 3;
    flex-shrink: 0;
}
.site-hd-admin .subnav__link{
      padding: 6px 13px;
}
.site-hd-admin .subnav__trigger{
       padding: 6px 13px;
}

/* ===================== Responsive ===================== */
@media (max-width: 1360px){
.site-hd-admin .brand__name{
display: none;
}
.site-hd-admin .subnav__link{
    padding: 0 11px;
}
.site-hd-admin .subnav__trigger{
     padding: 0 11px; 
}
}
@media (max-width: 1199px){
    .site-hd-admin .subnav__link {
        padding: 0 6px;
    }
    .site-hd-admin .subnav__trigger{
     padding: 0 6px;
         gap: 2px;
}
.site-hd-admin .mega{
    min-width: 193px;
}
.site-hd-admin .mega__title{
        font-size: 14px;
}
}
@media (max-width: 992px) {
    .site-header{
            position: fixed;
    }
    .hdbar {
        gap: 10px;
        padding: 0 14px;
    }

    .promo {
        display: none;
    }

    /* promo hidden on mobile  */
    /* push actions to the far right so the bell sits at the extreme right edge */
    .actions {
        margin-left: auto;
        gap: 8px;
    }

    /* top bar = brand (left) + notifications bell (far right). Menu opens from the
       footer "Menu" tab; theme toggle lives inside the side drawer */
    .auth--out,
    .auth--in {
        display: none !important;
    }

    .actions .theme-toggle {
        display: none;
    }

    /* header toggle hidden; drawer keeps its own */
    .nav-burger {
        display: none;
    }

    /* menu opens from footer   */
    .brand__name {
        display: inline;
    }

    /* keep the GOC wordmark    */

    .subnav {
        display: none;
    }

    /* desktop nav row hidden   */
    .stage {
        padding-bottom: 96px;
    }

    /* clear the fixed bottom tab bar */

    /* ===== Right-side drawer (hamburger / footer Menu) ===== */
    .subnav--mobile {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 210;
    }

    .subnav--mobile.is-open {
        display: block;
    }

    .mdrawer__overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        opacity: 0;
        transition: opacity .22s ease;
    }

    .subnav--mobile.is-open .mdrawer__overlay {
        opacity: 1;
    }

    .mdrawer__panel {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        background: var(--hd-header-bg);
        transform: translateX(-100%);
        /* iOS-style ease-out-quint for a snappy native feel */
        transition: transform .24s cubic-bezier(.16, 1, .3, 1);
    }

    .subnav--mobile.is-open .mdrawer__panel {
        transform: translateX(0);
    }

    .mdrawer__head {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        border-bottom: 1px solid var(--hd-border-soft);
    }

    .mdrawer__headact {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .mdrawer__headact-right{
           display: flex;
    align-items: center;
    gap: 10px;
    }
  

    .mdrawer__close {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        border: 1.5px solid var(--hd-border);
        background: var(--hd-surface);
        color: var(--hd-text);
        cursor: pointer;
        margin-left: auto;
    }

    .mdrawer__close:hover {
        border-color: var(--hd-accent);
        color: var(--hd-accent);
    }

    .mdrawer__close svg {
        width: 18px;
        height: 18px;
    }

    /* user block (logged in) */
    .mdrawer__user {
        flex-shrink: 0;
        display: none;
        align-items: center;
        gap: 12px;
        padding: 15px 16px;
        border-bottom: 1px solid var(--hd-border-soft);
    }

    .goc-authed .mdrawer__user {
        display: flex;
    }

    .mdrawer__user .account__avatar {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    .mdrawer__uinfo {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mdrawer__uname {
        font: 600 1rem "Poppins", "Poppins Fallback", sans-serif;
        color: var(--hd-text);
    }

    .mdrawer__uname strong {
        color: var(--hd-accent);
    }

    .mdrawer__uid {
        font: 500 .76rem "Poppins", "Poppins Fallback", sans-serif;
        color: var(--hd-muted);
    }

    /* sticky bottom auth CTAs (native-app pattern) — live inside .mdrawer__foot */
    .mdrawer__auth {
        flex-basis: 100%;
        display: flex;
        gap: 10px;
    }

    .goc-authed .mdrawer__auth {
        display: none;
    }

    .mdrawer__signin,
    .mdrawer__signup {
        flex: 1;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
        border-radius: 12px;
        font: 600 .95rem "Poppins", "Poppins Fallback", sans-serif;
        text-decoration: none;
        letter-spacing: .1px;
    }

    .mdrawer__signin {
        border: 1.5px solid var(--hd-border);
        color: var(--hd-text);
        background: transparent;
    }

    .mdrawer__signup {
        background: var(--hd-accent);
        color: #04211f;
        box-shadow: 0 4px 14px -6px var(--hd-glow);
    }

    .mdrawer__signin:active {
        background: var(--hd-surface);
    }

    .mdrawer__signup:active {
        transform: scale(.98);
    }

    /* scrollable grouped list */
    .mdrawer__list {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 0px;
        box-shadow: none;
    }

    .m-row {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 12px 16px;
        color: var(--hd-text) !important;
        text-decoration: none;
        font: 500 .92rem "Poppins", "Poppins Fallback", sans-serif;
        border-bottom: 1px solid var(--hd-border-soft);
                transition: none;
    }

    .m-row:active {
        background: rgba(11, 178, 177, .07);
    }

    .m-row svg {
        width: 20px;
        height: 20px;
        color: var(--hd-accent);
        flex-shrink: 0;
    }

    .m-row img {
        width: 22px;
        height: 22px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .m-row .lock-badge,
    .m-row .bundle-tag,
    .m-row .new-tag {
        margin-left: auto;
    }

    .m-row--div {
        /* border-top: 1px solid var(--hd-border-soft);
        margin-top: 4px; */
    }

    /* accordion group */
    .macc{
             border-bottom: 1px solid var(--hd-border-soft);   
    }
    .macc__head {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 13px 16px;
        background: none;
        border: 0;
        cursor: pointer;
        color: var(--hd-text);
        font: 600 .94rem "Poppins", "Poppins Fallback", sans-serif;
        text-align: left;
        outline: none !important;
    }

    .macc__head:active {
        background: rgba(11, 178, 177, .07);
    }

    .macc.is-open .macc__head {
        color: var(--hd-accent);
    }

    .macc__ico {
        width: 20px;
        height: 20px;
        color: var(--hd-accent);
        flex-shrink: 0;
    }

    .macc__label {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .macc__chev {
        width: 17px;
        height: 17px;
        color: var(--hd-muted);
        flex-shrink: 0;
        transition: transform .2s ease;
    }

    .macc.is-open .macc__chev {
        transform: rotate(180deg);
        color: var(--hd-accent);
    }

    /* Pro Tools group: always gold, matching the desktop subnav__trigger--pro */
    .macc--pro .macc__head,
    .macc--pro .macc__ico,
    .macc--pro.is-open .macc__head,
    .macc--pro.is-open .macc__chev {
        color: var(--hd-gold);
    }

    /* expanded group = clean inset card, no per-row dividers */
    .macc__body {
        display: none;
        margin: 0 10px 10px;
        padding: 5px;
        background: var(--hd-surface);
        border: 1px solid var(--hd-border-soft);
        border-radius: 14px;
    }

    .macc.is-open .macc__body {
        display: block;
    }

    .macc__body .m-row {
        padding: 11px 12px;
        border-radius: 10px;
        font-size: .9rem;
        border-bottom: 0px;
    }

    .macc__body .m-row:hover,
    .macc__body .m-row:active {
        background: rgba(11, 178, 177, .1);
    }

    /* auth-gated drawer rows / buttons (scoped so it beats .mdrawer__fbtn) */
    .subnav--mobile .m-authonly {
        display: none;
    }
.m-row.m-authonly{
    border-bottom: 0px;

}
    .goc-authed .subnav--mobile .m-authonly {
        display: flex;
    }

    /* pinned footer */
    .mdrawer__foot {
        flex-shrink: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        /* border-top: 1px solid var(--hd-border-soft); */
    }

    .mdrawer__fbtn {
        flex: 1;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        border-radius: 10px;
        border: 1.5px solid var(--hd-border);
        background: none;
        color: var(--hd-text);
        text-decoration: none;
        cursor: pointer;
        font: 600 .9rem "Poppins", "Poppins Fallback", sans-serif;
    }

    .mdrawer__fbtn svg {
        width: 18px;
        height: 18px;
    }

    .mdrawer__fbtn--pricing {
        color: var(--hd-accent);
        border-color: var(--hd-accent);
    }

    .mdrawer__fbtn--logout {
        flex-basis: 100%;
        color: var(--hd-danger);
        border-color: rgba(255, 91, 90, .45);
    }

    /* ===== Fixed bottom tab bar ===== */
    .tabbar {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        height: 60px;
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--hd-header-bg);
        border-top: 1px solid var(--hd-border);
        box-shadow: 0 -6px 20px -12px rgba(0, 0, 0, .55);
    }

    .tabbar__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--hd-muted);
        text-decoration: none;
        background: none;
        border: 0;
        cursor: pointer;
        font: 600 .66rem "Poppins", "Poppins Fallback", sans-serif;
        letter-spacing: .2px;
        text-align: center;
    }
    .tabbar__item span{
        position: relative;
    }
    .tabbar__item span .new-tag{
        position: absolute;
        top: -10px;
        right: -15px;
        padding: 2px 4px;
    }

    .tabbar__item svg {
        width: 22px;
        height: 22px;
    }

    .tabbar__item.is-active,
    .tabbar__item:active {
        color: var(--hd-accent);
    }

    /* elevated center GENIE button (brand hexagon ring) */
    .tabbar__genie {
        justify-content: flex-end;
        padding-bottom: 6px;
    }

    .tabbar__gbadge {
        width: 56px;
        height: 56px;
        margin-top: -28px;
        margin-bottom: 1px;
        display: grid;
        place-items: center;
        background: linear-gradient(150deg, var(--hd-accent-bright) 0%, var(--hd-accent) 52%, var(--hd-accent-deep) 100%);
        clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
        filter: drop-shadow(0 5px 11px var(--hd-glow));
    }

    .tabbar__gbadge img {
        width: 52px;
        height: 52px;
        padding: 7px;
        object-fit: contain;
        background: var(--hd-header-bg);
        clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    }
}

@media (max-width: 560px) {
    .btn-signup {
        padding: 6px 14px;
    }
}