/* ═══════════════════════════════════════════════════════════════
   VISOR SIDEBAR — Aurora Borealis 2026-04-14
   Full rebuild. Clean .visor-sidebar/.vs-* namespace.
   Apple liquid glass + aurora flowing light.
   ═══════════════════════════════════════════════════════════════ */

/* ── Shell: solid aurora gradient (no backdrop-filter — keeps transition smooth) ── */
.visor-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: 200px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(120% 45% at 0% 0%,
            rgba(6, 214, 247, 0.05) 0%,
            rgba(6, 214, 247, 0.04) 28%,
            rgba(167, 139, 250, 0.025) 55%,
            transparent 80%),
        radial-gradient(50% 100% at 100% 50%,
            rgba(167, 139, 250, 0.03) 0%,
            transparent 70%),
        rgba(7, 9, 10, 0.76);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border-right: 1px solid rgba(6, 214, 247, 0.08);
    box-shadow:
        2px 0 18px rgba(0, 0, 0, 0.35),
        inset -1px 0 0 rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition-property: width !important;
    transition-duration: 360ms !important;
    transition-timing-function: cubic-bezier(0.32, 0.72, 0.24, 1) !important;
    box-sizing: border-box;
    font-family: inherit;
}

/* Override reduced-motion for the sidebar transition (user wants smooth anim here) */
@media (prefers-reduced-motion: reduce) {
    .visor-sidebar {
        transition-duration: 360ms !important;
    }
    .visor-sidebar .vs-logo,
    .visor-sidebar .vs-label,
    body.page-id-28206.logged-in .page_wrap,
    body.page-id-28207.logged-in .page_wrap {
        transition-duration: 360ms !important;
    }
}
.visor-sidebar.vs-collapsed {
    width: 84px;
}
.visor-sidebar .vs-nav::-webkit-scrollbar {
    width: 4px;
}
.visor-sidebar .vs-nav::-webkit-scrollbar-track {
    background: transparent;
}
.visor-sidebar .vs-nav::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        rgba(6, 214, 247, 0.3),
        rgba(167, 139, 250, 0.25));
    border-radius: 2px;
}

/* Aurora top-ribbon — faint animated gradient strip at the very top edge */
.visor-sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(6, 214, 247, 0) 0%,
        rgba(6, 214, 247, 0.4) 15%,
        rgba(6, 214, 247, 0.7) 42%,
        rgba(167, 139, 250, 0.5) 70%,
        rgba(6, 214, 247, 0.4) 88%,
        transparent 100%);
    background-size: 200% 100%;
    animation: vsTopAurora 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes vsTopAurora {
    0%   { background-position: 0% 0%; opacity: 0.7; }
    50%  { opacity: 1; }
    100% { background-position: 200% 0%; opacity: 0.7; }
}

/* ══════════════════════════════════════════════════════════════
   BRAND: logo on top, toggle below
   ══════════════════════════════════════════════════════════════ */
.visor-sidebar .vs-brand {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 0 20px;
    box-sizing: border-box;
}
.visor-sidebar .vs-brand::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(6, 214, 247, 0.18) 30%,
        rgba(167, 139, 250, 0.14) 70%,
        transparent 100%);
    pointer-events: none;
}

/* Logo — scales smoothly with sidebar width */
.visor-sidebar .vs-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    border-radius: 16px;
    text-decoration: none;
    outline: none;
    transition: width 360ms cubic-bezier(0.32, 0.72, 0.24, 1), height 360ms cubic-bezier(0.32, 0.72, 0.24, 1);
}
.visor-sidebar:not(.vs-collapsed) .vs-logo {
    width: 118px;
    height: 118px;
}
.visor-sidebar .vs-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 0;
    border: 0;
    transition: filter 280ms ease;
}

/* Toggle */
.visor-sidebar .vs-toggle {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 28px;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.45);
    outline: none;
    overflow: hidden;
    transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.visor-sidebar .vs-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(6, 214, 247, 0) 0%,
        rgba(6, 214, 247, 0.15) 50%,
        rgba(167, 139, 250, 0.1) 100%);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}
.visor-sidebar .vs-toggle:hover {
    color: #06d6f7;
    background: rgba(6, 214, 247, 0.05);
    border-color: rgba(6, 214, 247, 0.22);
}
.visor-sidebar .vs-toggle:hover::before {
    opacity: 1;
}
.visor-sidebar .vs-toggle:active {
    transform: scale(0.96);
}
.visor-sidebar .vs-toggle svg {
    display: block;
    position: relative;
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    z-index: 1;
}

/* Brand layout stays COLUMN in both states — no flex-direction flip,
   so expand/collapse is a smooth width change instead of a layout jump. */
.visor-sidebar:not(.vs-collapsed) .vs-brand {
    padding: 26px 0 22px;
    gap: 18px;
}

/* ══════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════ */
.visor-sidebar .vs-nav {
    flex: 1 1 auto;
    padding: 12px 0 72px;  /* bottom padding reserves space for absolute footer */
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}
.visor-sidebar .vs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.visor-sidebar .vs-item {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
}
.visor-sidebar .vs-item a {
    position: relative;
    display: block;
    width: 100%;
    height: 48px;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    background: transparent;
    border: 0;
    outline: none;
    box-sizing: border-box;
    transition: color 200ms ease, background 200ms ease;
    z-index: 1;
}
/* Icon: fixed pixel position — left:30px works as center in 84px collapsed
   sidebar (30 + 12 = 42 = 84/2) AND as left padding in 200px expanded.
   Icon never moves during transition — only label + sidebar width animate. */
.visor-sidebar .vs-item .vs-icon {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    color: inherit;
    transition: color 220ms ease, filter 220ms ease, transform 220ms ease;
    z-index: 2;
}
.visor-sidebar .vs-item .vs-icon i {
    display: inline-block;
    width: 24px;
    text-align: center;
    line-height: 1;
}
/* Label: fades + expands via opacity + max-width only */
.visor-sidebar .vs-item .vs-label {
    position: absolute;
    top: 50%;
    left: 64px;
    transform: translateY(-50%);
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    max-width: 220px;
    transition: opacity 280ms ease;
}
.visor-sidebar.vs-collapsed .vs-item .vs-label {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

/* Hover (non-active) — aurora shimmer sweep */
.visor-sidebar .vs-item:not(.vs-active)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.035);
    border-radius: 11px;
    opacity: 0;
    transition: opacity 240ms ease;
    pointer-events: none;
    z-index: 0;
}
.visor-sidebar .vs-item:not(.vs-active):hover::before {
    opacity: 1;
}
.visor-sidebar .vs-item:not(.vs-active):hover a {
    color: #ffffff;
}
.visor-sidebar .vs-item:not(.vs-active):hover a .vs-icon {
    color: rgba(6, 214, 247, 0.92);
    filter: none;
    transform: translateY(-50%);
}

/* ══════════════════════════════════════════════════════════════
   AURORA ACTIVE TAB — flowing light curtain
   ══════════════════════════════════════════════════════════════ */
.visor-sidebar .vs-item.vs-active {
    background: rgba(255, 255, 255, 0.055);
    border-radius: 11px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
/* Accent tick — static, no glow */
.visor-sidebar .vs-item.vs-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 26%;
    bottom: 26%;
    width: 2px;
    border-radius: 2px;
    background: rgba(6, 214, 247, 0.85);
    pointer-events: none;
    z-index: 2;
}
/* Veil retired — the active surface is the quiet pill itself */
.visor-sidebar .vs-item.vs-active::after { content: none; }
.visor-sidebar .vs-item.vs-active a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.visor-sidebar .vs-item.vs-active a .vs-icon {
    color: #06d6f7;
    filter: none;
}

@keyframes vsAuroraRibbon {
    0%, 100% {
        opacity: 0.88;
        background-position: 0% 0%;
    }
    50% {
        opacity: 1;
        background-position: 0% 100%;
    }
}
@keyframes vsAuroraVeil {
    0%, 100% { opacity: 0.75; background-position: 0% 0%, 0% 0%; }
    50%      { opacity: 1;    background-position: 30% 0%, 0% 0%; }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER — absolute-positioned at sidebar bottom (always visible)
   ══════════════════════════════════════════════════════════════ */
.visor-sidebar .vs-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    background: rgba(8, 9, 14, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 5;
}
.visor-sidebar .vs-footer::before {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(6, 214, 247, 0.14) 30%,
        rgba(167, 139, 250, 0.1) 70%,
        transparent 100%);
    pointer-events: none;
}
.visor-sidebar .vs-signout {
    position: relative;
    display: block;
    width: 100%;
    height: 52px;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    outline: none;
    transition: color 200ms ease, background 200ms ease;
    box-sizing: border-box;
    overflow: hidden;
}
/* Signout icon — same static-left trick as nav icons */
.visor-sidebar .vs-signout .vs-icon {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 220ms ease, filter 220ms ease, transform 220ms ease;
    z-index: 2;
}
.visor-sidebar .vs-signout .vs-label {
    position: absolute;
    top: 50%;
    left: 64px;
    transform: translateY(-50%);
    white-space: nowrap;
    opacity: 1;
    max-width: 220px;
    overflow: hidden;
    transition: opacity 280ms ease;
}
.visor-sidebar.vs-collapsed .vs-signout .vs-label {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}
.visor-sidebar .vs-signout:hover .vs-icon {
    transform: translateY(-50%) translateX(2px);
}
.visor-sidebar .vs-signout::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(255, 107, 107, 0.08) 0%,
        rgba(167, 139, 250, 0.04) 40%,
        transparent 100%);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}
.visor-sidebar .vs-signout:hover {
    color: #ffb2b2;
}
.visor-sidebar .vs-signout:hover::before {
    opacity: 1;
}
.visor-sidebar .vs-signout:hover .vs-icon {
    color: #ff8b8b;
    filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.5));
    transform: translateY(-50%) translateX(2px);
}

/* Focus ring — aurora teal */
.visor-sidebar a:focus-visible,
.visor-sidebar button:focus-visible {
    outline: 2px solid rgba(6, 214, 247, 0.55);
    outline-offset: -2px;
    border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════
   PAGE LAYOUT — push content right of the sidebar
   ══════════════════════════════════════════════════════════════ */
body.page-id-28206.logged-in .page_wrap,
body.page-id-28207.logged-in .page_wrap {
    padding-left: calc(200px + 32px) !important;
    transition: padding-left 360ms cubic-bezier(0.32, 0.72, 0.24, 1);
    box-sizing: border-box;
    will-change: padding-left;
}
body.page-id-28206.logged-in.pannel-sidebar-deactive .page_wrap,
body.page-id-28207.logged-in.pannel-sidebar-deactive .page_wrap {
    padding-left: calc(84px + 32px) !important;
}

/* Footer: sit naturally within page_wrap (which already has padding-left for
   the sidebar). No negative margin — the sidebar's dark background covers
   the left gap seamlessly. Content columns span the full remaining width. */
body.page-id-28206.logged-in .footer_wrap,
body.page-id-28207.logged-in .footer_wrap {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* page_content_wrap has padding-bottom:7.4rem by default; padding-top is
   already zeroed in membership-styles-v6.css but bottom is not, creating
   a gap between the last content card and the footer. */
body.page-id-28206.logged-in .page_content_wrap,
body.page-id-28207.logged-in .page_content_wrap {
    padding-bottom: 0 !important;
}

/* ══════════════════════════════════════════════════════════════
   COMPACT ≤1024px — the rail becomes a floating app tab bar.
   Covers phones AND portrait tablets so the content gets the full
   viewport (the 200px rail squeezed dashboards in the 768–1023 dead
   zone — corp hero text was wrapping one letter per line). Same
   markup, pure CSS transform. Desktop (≥1025) rules above untouched.

   --hz-navh = total bottom space the floating bar reserves. The demo
   ribbon and the Visor orb both read it so nothing stacks on the bar.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    body.page-id-28206.logged-in,
    body.page-id-28207.logged-in {
        --hz-navh: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    /* The desktop rail's hover treatment breaks a tab bar: the ::before pill
       paints a displaced box and the icon hover transform shoves static tab
       icons up. Hover is meaningless on touch — neutralize both. */
    .visor-sidebar .vs-item:not(.vs-active):hover::before { opacity: 0 !important; }
    .visor-sidebar .vs-item:not(.vs-active):hover a .vs-icon { transform: none !important; }

    /* ── The floating island ─────────────────────────────────────── */
    .visor-sidebar,
    .visor-sidebar.vs-collapsed {
        top: auto;
        left: 0;
        right: 0;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        margin-left: auto;
        margin-right: auto;
        width: min(540px, calc(100% - 22px));
        min-width: 0;
        max-width: none;
        height: 60px;
        flex-direction: row;
        align-items: stretch;
        border: 1px solid rgba(6, 214, 247, 0.16);
        border-right: 1px solid rgba(6, 214, 247, 0.16);
        border-radius: 22px;
        background:
            radial-gradient(120% 160% at 50% 0%, rgba(6, 214, 247, 0.06), transparent 60%),
            rgba(9, 11, 16, 0.78);
        backdrop-filter: blur(30px) saturate(170%);
        -webkit-backdrop-filter: blur(30px) saturate(170%);
        box-shadow:
            0 16px 44px rgba(0, 0, 0, 0.55),
            0 2px 10px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
        padding: 0 4px;
        overflow: visible;
        transition: none !important;
        box-sizing: border-box;
    }

    /* Aurora ribbon becomes a soft glow along the island's top edge */
    .visor-sidebar::before {
        top: -1px; left: 14%; right: 14%;
        height: 2px; border-radius: 2px;
        opacity: 0.7;
    }

    /* Brand (logo + hamburger) has no place in a tab bar */
    .visor-sidebar .vs-brand { display: none !important; }

    .visor-sidebar .vs-nav {
        flex: 1 1 auto;
        padding: 0;
        overflow: visible;
        min-height: 0;
        display: flex;
    }
    .visor-sidebar .vs-list {
        flex-direction: row;
        gap: 0;
        width: 100%;
        height: 100%;
        align-items: stretch;
    }
    .visor-sidebar .vs-item {
        flex: 1 1 0;
        min-width: 0;
        overflow: visible;
        display: flex;
    }

    /* Each tab: icon over label, flex-centred (overrides the rail's absolute
       positioning) so it stays perfectly centred at any tab width */
    .visor-sidebar .vs-item a,
    .visor-sidebar .vs-signout {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 100%;
        height: 60px;
        min-height: 44px;
        padding: 0 3px;
        border-radius: 16px;
        text-decoration: none;
        z-index: 1;
    }

    .visor-sidebar .vs-item .vs-icon,
    .visor-sidebar .vs-signout .vs-icon,
    .visor-sidebar.vs-collapsed .vs-item .vs-icon,
    .visor-sidebar.vs-collapsed .vs-signout .vs-icon {
        position: static;
        top: auto; left: auto; right: auto; bottom: auto;
        transform: none;
        margin: 0;
        font-size: 18px;
        line-height: 1;
        color: rgba(255, 255, 255, 0.66);
        transition: color 180ms ease, transform 140ms ease;
    }

    .visor-sidebar .vs-item .vs-label,
    .visor-sidebar.vs-collapsed .vs-item .vs-label,
    .visor-sidebar .vs-signout .vs-label,
    .visor-sidebar.vs-collapsed .vs-signout .vs-label {
        position: static;
        top: auto; left: auto; right: auto; bottom: auto;
        transform: none;
        max-width: 100%;
        opacity: 1;
        pointer-events: auto;
        text-align: center;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.01em;
        line-height: 1;
        color: rgba(255, 255, 255, 0.6);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0 1px;
        box-sizing: border-box;
        transition: color 180ms ease;
    }

    /* Active tab: a glowing aurora pill behind the icon+label */
    .visor-sidebar .vs-item.vs-active a::before {
        content: "";
        position: absolute;
        inset: 5px 6px;
        border-radius: 15px;
        background: linear-gradient(180deg, rgba(6, 214, 247, 0.18), rgba(167, 139, 250, 0.12));
        box-shadow:
            inset 0 0 0 1px rgba(6, 214, 247, 0.34),
            0 0 20px rgba(6, 214, 247, 0.20);
        opacity: 1;
        animation: none;
        z-index: -1;
    }
    .visor-sidebar .vs-item.vs-active a .vs-icon { color: #2fe0ff; }
    .visor-sidebar .vs-item.vs-active a .vs-label { color: rgba(255, 255, 255, 0.96); }
    .visor-sidebar .vs-item.vs-active::before,
    .visor-sidebar .vs-item.vs-active::after { content: none; }

    /* Footer signout is just the last tab slot */
    .visor-sidebar .vs-footer {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        top: auto; left: auto; right: auto; bottom: auto;
        margin: 0;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        display: flex;
        align-items: stretch;
        border: 0;
    }
    .visor-sidebar .vs-footer::before,
    .visor-sidebar .vs-footer::after { content: none !important; }
    .visor-sidebar .vs-signout .vs-icon { color: rgba(255, 255, 255, 0.52); }
    .visor-sidebar .vs-signout .vs-label { color: rgba(255, 255, 255, 0.5); }
    .vs-corp-logo { display: none !important; }

    /* Light-mode toggle: the theme JS docks it into the footer as a labelled
       "Light/Dark" pill, which would eat the Signout tab. On the compact layout
       float it back out to a small icon-only chip at the top-right — clear of
       the island, the Visor orb (bottom-right) and the demo pill (above bar). */
    .visor-sidebar #hz-theme-toggle,
    .visor-sidebar #hz-theme-toggle.hz-tt-sidebar {
        position: fixed !important;
        top: calc(env(safe-area-inset-top, 0px) + 10px) !important;
        right: 12px !important;
        left: auto !important;
        bottom: auto !important;
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: rgba(9, 11, 16, 0.82) !important;
        border: 1px solid rgba(6, 214, 247, 0.28) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42) !important;
        overflow: hidden !important;
        z-index: 99999 !important;
    }
    .visor-sidebar #hz-theme-toggle .hz-tt-state {
        padding: 0 !important;
        gap: 0 !important;
        width: 100% !important;
        justify-content: center !important;
    }
    .visor-sidebar #hz-theme-toggle .hz-tt-label { display: none !important; }
    .visor-sidebar #hz-theme-toggle .hz-tt-state svg { width: 17px !important; height: 17px !important; }

    /* LIGHT MODE: the light theme paints .visor-sidebar cream (for the desktop
       rail) with no width guard — on the floating island that would put white
       tab text on a cream bar (invisible). Keep the island a sleek dark dock in
       both themes. High-specificity selectors out-rank the light-mode plugin. */
    html[data-horizon-theme="light"] body.page-id-28206.logged-in aside.visor-sidebar.visor-sidebar,
    html[data-horizon-theme="light"] body.page-id-28207.logged-in aside.visor-sidebar.visor-sidebar {
        background: rgba(13, 16, 22, 0.86) !important;
        background-image: radial-gradient(120% 160% at 50% 0%, rgba(6, 214, 247, 0.07), transparent 60%) !important;
        border: 1px solid rgba(6, 214, 247, 0.18) !important;
        box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    }
    html[data-horizon-theme="light"] body.page-id-28206.logged-in aside.visor-sidebar .vs-footer,
    html[data-horizon-theme="light"] body.page-id-28207.logged-in aside.visor-sidebar .vs-footer {
        background: transparent !important;
        background-image: none !important;
        border-top: 0 !important;
    }

    /* Tactile press feedback */
    .visor-sidebar .vs-item a:active .vs-icon,
    .visor-sidebar .vs-signout:active .vs-icon {
        transform: scale(0.84);
        transition: transform 120ms ease;
    }

    /* ── Content reclaims the full viewport; reserve room for the bar ── */
    body.page-id-28206.logged-in .page_wrap,
    body.page-id-28207.logged-in .page_wrap,
    body.page-id-28206.logged-in.pannel-sidebar-deactive .page_wrap,
    body.page-id-28207.logged-in.pannel-sidebar-deactive .page_wrap {
        padding-left: 0 !important;
        padding-bottom: var(--hz-navh) !important;
        transition: none;
    }

    /* theflash boxed columns cap content at fixed widths — unlock the whole
       ancestor chain on the account pages so the dashboards go edge to edge */
    body.page-id-28206.logged-in .page_content_wrap,
    body.page-id-28207.logged-in .page_content_wrap,
    body.page-id-28206.logged-in .content_wrap,
    body.page-id-28207.logged-in .content_wrap,
    body.page-id-28206.logged-in .content,
    body.page-id-28207.logged-in .content,
    body.page-id-28206.logged-in .post_content.entry-content,
    body.page-id-28207.logged-in .post_content.entry-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
    }
    body.page-id-28206.logged-in .content_wrap,
    body.page-id-28207.logged-in .content_wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
        display: block !important;
    }

    /* Visor orb floats clearly above the island */
    body.page-id-28206.logged-in #visor-orb,
    body.page-id-28207.logged-in #visor-orb {
        bottom: calc(var(--hz-navh) + 6px) !important;
        right: 16px !important;
        z-index: 99998 !important;
    }

    /* Elementor-stretched footer keeps a stale negative offset once the rail
       padding is gone — pin it back to the viewport */
    body.page-id-28206.logged-in .footer_wrap,
    body.page-id-28207.logged-in .footer_wrap {
        margin-left: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body.page-id-28206.logged-in .footer_wrap .elementor-section-stretched,
    body.page-id-28207.logged-in .footer_wrap .elementor-section-stretched {
        margin-left: 0 !important;
        left: 0 !important;
        width: 100% !important;
    }

    /* MemberPress account tables scroll horizontally inside a glass shell */
    body.page-id-28206.logged-in .mp_wrapper table,
    body.page-id-28206.logged-in .mepr-account-table {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    body.page-id-28206.logged-in .mp_wrapper table th,
    body.page-id-28206.logged-in .mp_wrapper table td {
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 13px;
    }

    /* ── App-feel polish ─────────────────────────────────────────── */
    body.page-id-28206.logged-in,
    body.page-id-28207.logged-in {
        -webkit-tap-highlight-color: transparent;
    }
    /* Tab rails (SME .hsd-tabs / corp .hcd-tabs) swipe with edge fade */
    body.page-id-28206.logged-in .hsd-tabs,
    body.page-id-28206.logged-in .hcd-tabs {
        scroll-snap-type: x proximity;
        scroll-padding-left: 16px;
        -webkit-mask-image: linear-gradient(90deg,
            transparent 0, #000 14px, #000 calc(100% - 26px), transparent 100%);
        mask-image: linear-gradient(90deg,
            transparent 0, #000 14px, #000 calc(100% - 26px), transparent 100%);
    }
    body.page-id-28206.logged-in .hsd-tab,
    body.page-id-28206.logged-in .hcd-tab {
        scroll-snap-align: start;
    }
}

/* Phones ≤480px — tighten the island so 4–5 tabs never crowd */
@media (max-width: 480px) {
    .visor-sidebar,
    .visor-sidebar.vs-collapsed {
        width: calc(100% - 16px);
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        border-radius: 20px;
    }
    .visor-sidebar .vs-item .vs-label,
    .visor-sidebar .vs-signout .vs-label { font-size: 9.5px; }
    .visor-sidebar .vs-item .vs-icon,
    .visor-sidebar .vs-signout .vs-icon { font-size: 17px; }
    body.page-id-28206.logged-in .content_wrap,
    body.page-id-28207.logged-in .content_wrap {
        padding-left: 13px !important;
        padding-right: 13px !important;
    }
}
