/* ==========================================================================
   HUBNRO Apple Liquid Glass (Chuẩn Liquid Glass UI) Navigation System
   Ultra-refined translucent glass substrate, specular highlights,
   elastic tactile click & dynamic fluid ripple wave.
   ========================================================================== */
.hn-sidebar-fit {
    width: 280px;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    padding: 16px 12px;
    overflow: visible;
    gap: 0;
    color: #29292b;
    background: linear-gradient(180deg, rgba(246, 248, 252, 0.82) 0%, rgba(238, 241, 248, 0.88) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 4px 0 28px rgba(0, 24, 64, 0.04), inset -1px 0 0 rgba(220, 226, 238, 0.5);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    font-family: var(--font-main);
    /* The sidebar overlays mobile content and uses one desktop offset only. */
    position: fixed;
}
.hn-content-shell { width:calc(100% - 280px);margin-left:280px; }
.hn-sidebar-head,.hn-sidebar-sections,.hn-sidebar-group,.hn-sidebar-fit .sidebar-bottom-area { flex-shrink:0; }

/* Hairline Specular Reflection Line at top */
.hn-sidebar-specular-rim {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85) 20%, rgba(0, 140, 255, 0.85) 50%, rgba(255, 255, 255, 0.85) 80%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

/* Brand Row */
.hn-sidebar-fit .sidebar-brand-row { height:44px;margin:0 10px 16px;padding:0; }
.hn-sidebar-fit .hn-brand { gap:10px; }
.hn-sidebar-fit .hn-brand img { width:38px;height:38px;filter:none; }
.hn-sidebar-fit .hn-brand>span { font-size:21px;font-weight:750;letter-spacing:-.5px; }
.hn-sidebar-fit .hn-brand small { font-size:8px;line-height:1.3;margin-top:3px;letter-spacing:2px; }

/* Liquid Glass Search Capsule */
.hn-sidebar-fit .hn-sidebar-search {
    height: 32px;
    min-height: 32px;
    margin: 0 0 18px;
    padding: 0 11px;
    gap: 8px;
    border: 1px solid rgba(210, 218, 232, 0.85);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 2px rgba(0, 20, 60, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    color: #6e7484;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hn-sidebar-fit .hn-sidebar-search svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.8;
    color: #006ee6;
    transition: transform 0.25s ease;
}
.hn-sidebar-fit .hn-sidebar-search input {
    padding: 0;
    font: inherit;
    font-size: 13.5px;
    line-height: 20px;
    color: #1a1e28;
    background: transparent;
    border: 0;
    outline: none;
}
.hn-sidebar-fit .hn-sidebar-search input::placeholder {
    color: #7d8495;
    opacity: 1;
}
.hn-sidebar-fit .hn-sidebar-search:focus-within {
    background: rgba(255, 255, 255, 0.92);
    border-color: #0071e3;
    box-shadow: 0 0 0 3.5px rgba(0, 113, 227, 0.16), 0 3px 12px rgba(0, 113, 227, 0.1), inset 0 1px 1px #fff;
}
.hn-sidebar-fit .hn-sidebar-search:focus-within svg {
    transform: scale(1.1);
}
.hn-sidebar-fit .hn-sidebar-search>span { display:none; }

/* Navigation Group & Sections */
.hn-sidebar-sections { display:flex;flex-direction:column;gap:6px; }
.hn-sidebar-fit .hn-nav-label {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    padding: 0 12px;
    margin: 0 0 2px;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    color: #71788a;
}
.hn-sidebar-fit .hn-nav-label::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(210, 218, 232, 0.8) 0%, rgba(210, 218, 232, 0) 100%);
}
.hn-sidebar-fit .sidebar-nav-list { display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin:0;padding:0; }

/* ==========================================================================
   Liquid Glass Menu Item (.sidebar-nav-item)
   ========================================================================== */
.hn-sidebar-fit .sidebar-nav-item {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-width: 0;
    height: auto;
    min-height: 34px;
    padding: 0 12px;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #2b2e38;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 450;
    line-height: 21.75px;
    letter-spacing: -0.01em;
    box-shadow: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1),
                background-color 0.22s ease,
                border-color 0.22s ease,
                box-shadow 0.22s ease,
                color 0.2s ease;
}

/* Glass Refraction Specular Sheen sweep */
.hn-sidebar-fit .sidebar-nav-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.05) 80%,
        transparent 100%
    );
    transform: skewX(-24deg);
    pointer-events: none;
    transition: left 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
}
.hn-sidebar-fit .sidebar-nav-item:hover::after {
    left: 140%;
}

.hn-sidebar-fit .sidebar-nav-item svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    color: #006ee6;
    stroke-width: 1.7;
    position: relative;
    z-index: 3;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.3s ease,
                color 0.2s ease;
}
.hn-sidebar-fit .sidebar-nav-item>span:not(.hn-liquid-ripple):not(.hn-liquid-flash) {
    min-width: 0;
    position: relative;
    z-index: 3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hover: Liquid Glass Glide */
.hn-sidebar-fit .sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(255, 255, 255, 0.85);
    color: #0d121c;
    box-shadow: 0 4px 14px rgba(0, 30, 80, 0.05),
                inset 0 1px 1px rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateX(2px);
}
.hn-sidebar-fit .sidebar-nav-item:hover svg {
    transform: scale(1.1) rotate(-1deg);
    filter: drop-shadow(0 2px 7px rgba(0, 110, 230, 0.35));
}
.hn-sidebar-fit .sidebar-nav-item:hover>span:not(.hn-liquid-ripple):not(.hn-liquid-flash) {
    transform: translateX(1px);
}

/* Active: Liquid Glass Capsule Pill */
.hn-sidebar-fit .sidebar-nav-item.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 246, 255, 0.8) 100%);
    border-color: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(210, 222, 245, 0.8);
    color: #0b101b;
    font-weight: 600;
    box-shadow: 0 4px 16px -2px rgba(0, 102, 238, 0.15),
                0 2px 6px rgba(15, 23, 42, 0.04),
                inset 0 1px 1.5px rgba(255, 255, 255, 1),
                inset 0 -1px 2px rgba(0, 102, 238, 0.05);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}
/* Liquid Glass Active Pip / Glow Indicator */
.hn-sidebar-fit .sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 3.5px;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #38bdf8 0%, #006ee6 100%);
    box-shadow: 0 0 10px rgba(0, 110, 230, 0.65), 0 0 3px #38bdf8;
    z-index: 4;
    pointer-events: none;
    animation: hn-liquid-pip-glow 2.5s ease-in-out infinite alternate;
}
@keyframes hn-liquid-pip-glow {
    0% { opacity: 0.85; filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.6)); }
    100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(0, 110, 230, 0.9)); }
}
.hn-sidebar-fit .sidebar-nav-item.active svg {
    color: #006ee6;
    filter: drop-shadow(0 2px 7px rgba(0, 110, 230, 0.45));
}
.hn-sidebar-fit .sidebar-nav-item.active:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 248, 255, 0.88) 100%);
    box-shadow: 0 5px 18px -2px rgba(0, 102, 238, 0.18), inset 0 1px 1.5px #fff;
    transform: translateX(1px);
}
.hn-sidebar-fit .hn-new { display:none; }

/* ==========================================================================
   Click Tactile Elastic Squish & Dynamic Liquid Ripple
   ========================================================================== */
.hn-sidebar-fit .sidebar-nav-item:active,
.hn-sidebar-fit .sidebar-nav-item.is-liquid-pressing,
.hn-sidebar-fit .hn-sidebar-youtube:active,
.hn-sidebar-fit .hn-sidebar-youtube.is-liquid-pressing,
.hn-sidebar-fit .theme-segment-btn:active,
.hn-sidebar-fit .theme-segment-btn.is-liquid-pressing,
.hn-sidebar-fit .hn-user-row:active,
.hn-sidebar-fit .hn-user-row.is-liquid-pressing,
.hn-sidebar-fit .hn-logout button:active,
.hn-sidebar-fit .hn-logout button.is-liquid-pressing {
    transform: scale(0.962) translateY(1px) !important;
    transition: transform 0.09s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Dynamic Liquid Ripple Wave */
.hn-liquid-ripple {
    position: absolute !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle,
        rgba(0, 110, 230, 0.35) 0%,
        rgba(255, 255, 255, 0.65) 30%,
        rgba(0, 110, 230, 0.12) 65%,
        transparent 75%
    );
    animation: hn-liquid-ripple-anim 0.55s cubic-bezier(0.12, 0.8, 0.32, 1) forwards;
    z-index: 10 !important;
}
@keyframes hn-liquid-ripple-anim {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
        filter: blur(0px);
    }
    45% {
        opacity: 0.9;
        filter: blur(1px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
        filter: blur(4px);
    }
}

/* Glass Refraction Flash */
.hn-liquid-flash {
    position: absolute !important;
    inset: 0 !important;
    border-radius: inherit !important;
    background: radial-gradient(circle at var(--click-x, 50%) var(--click-y, 50%),
        rgba(255, 255, 255, 0.55) 0%,
        rgba(0, 110, 230, 0.12) 45%,
        transparent 70%
    );
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    animation: hn-liquid-flash-anim 0.38s ease-out forwards;
    z-index: 9 !important;
}
@keyframes hn-liquid-flash-anim {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* ==========================================================================
   Bottom Controls: YouTube, Theme Selector, User Dock
   ========================================================================== */
.hn-sidebar-fit .sidebar-bottom-area {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 12px;
    gap: 8px;
}

/* YouTube Button */
.hn-sidebar-fit .hn-sidebar-youtube {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 28px;
    padding: 4px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #646a7a;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none!important;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hn-sidebar-fit .hn-sidebar-youtube svg {
    width: 19px;
    height: 19px;
    color: #006ee6;
    transition: transform 0.25s ease;
}
.hn-sidebar-fit .hn-sidebar-youtube>span:last-child {
    margin-left: auto;
    font-size: 14px;
    color: #9aa1b2;
    transition: transform 0.2s ease, color 0.2s ease;
}
.hn-sidebar-fit .hn-sidebar-youtube:hover {
    color: #11141c;
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 3px 12px rgba(0, 30, 80, 0.05), inset 0 1px 1px #fff;
    transform: translateX(2px);
}
.hn-sidebar-fit .hn-sidebar-youtube:hover svg {
    transform: scale(1.1);
}
.hn-sidebar-fit .hn-sidebar-youtube:hover>span:last-child {
    transform: translateX(2px);
    color: #006ee6;
}

/* Theme Switcher Segmented Control */
.hn-sidebar-fit .sidebar-theme-row {
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    margin: 0;
}
.hn-sidebar-fit .sidebar-theme-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    color: #717786;
}
.hn-sidebar-fit .theme-segmented-control {
    display: flex;
    align-items: center;
    height: 28px;
    gap: 2px;
    padding: 2px;
    background: rgba(0, 20, 60, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 9px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.hn-sidebar-fit .theme-segment-btn {
    position: relative;
    overflow: hidden;
    width: 29px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border-radius: 7px;
    border: 1px solid transparent;
    color: #717786;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hn-sidebar-fit .theme-segment-btn svg { width: 17px; height: 17px; }
.hn-sidebar-fit .theme-segment-btn:hover {
    color: #111;
    background: rgba(255, 255, 255, 0.4);
}
.hn-sidebar-fit .theme-segment-btn.active {
    background: linear-gradient(135deg, #ffffff 0%, #f4f6fb 100%);
    border-color: rgba(255, 255, 255, 0.95);
    color: #006ee6;
    box-shadow: 0 2px 7px rgba(0, 20, 60, 0.12), inset 0 1px 1px #fff;
}

/* User Account Dock */
.hn-account-dock {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 45px;
    padding-top: 9px;
    border-top: 1px solid rgba(215, 222, 235, 0.7);
}
.hn-sidebar-fit .hn-user-row {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 38px;
    flex: 1;
    gap: 10px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    text-decoration: none;
    color: #24262b;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hn-sidebar-fit .hn-user-avatar {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 110, 230, 0.12), rgba(0, 110, 230, 0.04));
    border: 1px solid rgba(0, 110, 230, 0.22);
    border-radius: 8px;
    color: #006ee6;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
    transition: transform 0.25s ease;
}
.hn-sidebar-fit .hn-user-avatar svg { width: 19px; height: 19px; }
.hn-sidebar-fit .hn-user-row b { font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.hn-sidebar-fit .hn-user-row small { font-size: 11px; line-height: 14px; color: #72798a; }
.hn-sidebar-fit .hn-user-row>svg { width: 15px; height: 15px; color: #8e95a6; transition: transform 0.2s ease; }
.hn-sidebar-fit .hn-user-row:hover {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(255, 255, 255, 0.9);
    color: #0b0f17;
    box-shadow: 0 4px 14px rgba(0, 30, 80, 0.05), inset 0 1px 1px #fff;
    transform: translateX(1px);
}
.hn-sidebar-fit .hn-user-row:hover .hn-user-avatar {
    transform: scale(1.08);
    border-color: rgba(0, 110, 230, 0.4);
}
.hn-sidebar-fit .hn-user-row:hover>svg {
    transform: translateX(2px);
    color: #006ee6;
}
.hn-sidebar-fit .hn-logout { margin: 0; flex-shrink: 0; }
.hn-sidebar-fit .hn-logout button {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    width: 28px;
    height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #77777e;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hn-sidebar-fit .hn-logout button:hover {
    color: #006ee6;
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   DARK MODE LIQUID GLASS SPECIFICATION
   ========================================================================== */
[data-theme="dark"] .hn-sidebar-fit {
    background: linear-gradient(180deg, rgba(24, 26, 33, 0.82) 0%, rgba(18, 19, 25, 0.88) 100%);
    border-right-color: rgba(255, 255, 255, 0.08);
    color: #e4e7ef;
    box-shadow: 6px 0 36px rgba(0, 0, 0, 0.35), inset -1px 0 0 rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .hn-sidebar-specular-rim {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 20%, rgba(56, 189, 248, 0.75) 50%, rgba(255, 255, 255, 0.35) 80%, transparent 100%);
}
[data-theme="dark"] .hn-sidebar-fit .hn-sidebar-search {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #9299ab;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .hn-sidebar-fit .hn-sidebar-search input {
    color: #f1f3f9;
}
[data-theme="dark"] .hn-sidebar-fit .hn-sidebar-search input::placeholder {
    color: #727a8e;
}
[data-theme="dark"] .hn-sidebar-fit .hn-sidebar-search:focus-within {
    background: rgba(255, 255, 255, 0.09);
    border-color: #3894ff;
    box-shadow: 0 0 0 3.5px rgba(56, 148, 255, 0.22), 0 4px 16px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .hn-sidebar-fit .hn-nav-label {
    color: #8c95aa;
}
[data-theme="dark"] .hn-sidebar-fit .hn-nav-label::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}
[data-theme="dark"] .hn-sidebar-fit .sidebar-nav-item {
    color: #e4e7ef;
}
[data-theme="dark"] .hn-sidebar-fit .sidebar-nav-item svg {
    color: #3894ff;
}
[data-theme="dark"] .hn-sidebar-fit .sidebar-nav-item::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 20%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.02) 80%,
        transparent 100%
    );
}
[data-theme="dark"] .hn-sidebar-fit .sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.16);
}
[data-theme="dark"] .hn-sidebar-fit .sidebar-nav-item:hover svg {
    filter: drop-shadow(0 2px 8px rgba(49, 152, 255, 0.45));
}
[data-theme="dark"] .hn-sidebar-fit .sidebar-nav-item.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: 0 6px 20px -3px rgba(0, 0, 0, 0.45),
                inset 0 1px 1px rgba(255, 255, 255, 0.22),
                inset 0 -1px 2px rgba(49, 152, 255, 0.12);
}
[data-theme="dark"] .hn-sidebar-fit .sidebar-nav-item.active::before {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.8), 0 0 3px #60a5fa;
}
[data-theme="dark"] .hn-sidebar-fit .sidebar-nav-item.active svg {
    color: #4da4ff;
    filter: drop-shadow(0 2px 8px rgba(49, 152, 255, 0.6));
}
[data-theme="dark"] .hn-sidebar-fit .sidebar-nav-item.active:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 0 6px 22px -3px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
[data-theme="dark"] .hn-liquid-ripple {
    background: radial-gradient(circle,
        rgba(77, 163, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.45) 30%,
        rgba(77, 163, 255, 0.15) 65%,
        transparent 75%
    );
}
[data-theme="dark"] .hn-liquid-flash {
    background: radial-gradient(circle at var(--click-x, 50%) var(--click-y, 50%),
        rgba(255, 255, 255, 0.25) 0%,
        rgba(49, 152, 255, 0.15) 50%,
        transparent 70%
    );
}
[data-theme="dark"] .hn-sidebar-fit .hn-sidebar-youtube {
    color: #a4adc2;
}
[data-theme="dark"] .hn-sidebar-fit .hn-sidebar-youtube svg {
    color: #3894ff;
}
[data-theme="dark"] .hn-sidebar-fit .hn-sidebar-youtube:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
[data-theme="dark"] .hn-sidebar-fit .sidebar-theme-label {
    color: #9299ab;
}
[data-theme="dark"] .hn-sidebar-fit .theme-segmented-control {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .hn-sidebar-fit .theme-segment-btn {
    color: #8c95aa;
}
[data-theme="dark"] .hn-sidebar-fit .theme-segment-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .hn-sidebar-fit .theme-segment-btn.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    color: #4da4ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}
[data-theme="dark"] .hn-account-dock {
    border-top-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .hn-sidebar-fit .hn-user-row {
    color: #e4e7ef;
}
[data-theme="dark"] .hn-sidebar-fit .hn-user-avatar {
    background: linear-gradient(135deg, rgba(49, 152, 255, 0.18), rgba(49, 152, 255, 0.06));
    border-color: rgba(49, 152, 255, 0.3);
    color: #4da4ff;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .hn-sidebar-fit .hn-user-row small {
    color: #8c95aa;
}
[data-theme="dark"] .hn-sidebar-fit .hn-user-row>svg {
    color: #727a8e;
}
[data-theme="dark"] .hn-sidebar-fit .hn-user-row:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] .hn-sidebar-fit .hn-logout button:hover {
    color: #4da4ff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}
/* Share the available sidebar height between the current navigation groups.
   Short screens scroll the links instead of shrinking their text or hit areas. */
.hn-sidebar-fit .sidebar-brand-row { margin-bottom:12px; }
.hn-sidebar-fit .hn-sidebar-search { height:34px;min-height:34px;margin-bottom:12px; }
.hn-sidebar-fit .hn-sidebar-search input { font-size:14px; }
.hn-sidebar-fit .hn-sidebar-sections {
    display:flex;flex:1 1 0;flex-direction:column;min-height:0;gap:8px;
    overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;
}
.hn-sidebar-fit .hn-sidebar-group { display:flex;flex-direction:column;min-width:0; }
.hn-sidebar-fit .hn-sidebar-services { flex:7 0 auto; }
.hn-sidebar-fit .hn-sidebar-account,.hn-sidebar-fit .hn-sidebar-management { flex:2 0 auto; }
.hn-sidebar-fit .hn-sidebar-resources { flex:4 0 auto; }
.hn-sidebar-fit .hn-nav-label { min-height:18px;line-height:16px;margin-bottom:2px; }
.hn-sidebar-fit .sidebar-nav-list { display:flex;flex:1;flex-direction:column;gap:0; }
.hn-sidebar-fit .sidebar-nav-item {
    flex:1 0 34px;min-height:34px;max-height:52px;height:auto;
    width:100%;padding:4px 12px;gap:13px;line-height:22px;
}
.hn-sidebar-fit .sidebar-nav-item svg { width:22px;height:22px; }
.hn-sidebar-fit .sidebar-bottom-area { margin-top:0;padding-top:8px;gap:6px; }
.hn-sidebar-fit .hn-sidebar-youtube { min-height:32px;font-size:14px; }
.hn-sidebar-fit .sidebar-theme-label { font-size:13px; }
@media (min-width:992px) and (max-width:1199px) {
    .hn-sidebar-fit { width:260px; }
    .hn-content-shell { width:calc(100% - 260px);margin-left:260px; }
}
@media (max-width:991px) {
    .hn-content-shell { width:100%;margin-left:0; }
    .hn-sidebar-fit { width:min(320px,calc(100vw - 24px)); }
    .hn-sidebar-fit .sidebar-close-btn { display:grid;place-items:center;width:30px;height:32px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--text-secondary);font-size:26px;line-height:1; }
    .hn-sidebar-fit .sidebar-brand-row { margin-left:8px;margin-right:0; }
    .hn-sidebar-fit .sidebar-nav-item { flex-basis:44px;min-height:44px;font-size:16px; }
    .hn-sidebar-fit .hn-sidebar-search input { font-size:16px; }
}
@media (max-height:600px) {
    .hn-sidebar-fit { padding-top:10px;padding-bottom:10px; }
    .hn-sidebar-fit .sidebar-brand-row { height:36px;margin-bottom:8px; }
    .hn-sidebar-fit .hn-brand img { width:34px;height:34px; }
    .hn-sidebar-fit .hn-sidebar-search { margin-bottom:8px; }
    .hn-sidebar-fit .sidebar-bottom-area { gap:4px;padding-top:6px; }
    .hn-sidebar-fit .hn-account-dock { padding-top:6px;min-height:44px; }
    .hn-sidebar-fit .hn-user-row { min-height:36px; }
}
@media (prefers-reduced-motion:reduce) { .hn-sidebar-fit .sidebar-nav-item { transition:none; } }
