.nav-section {
    margin-top: 7px;
}
.nav-section summary {
    position: relative;
    width: 100%;
    cursor: pointer;
    list-style: none;
    border: 0;
    background: rgba(255, 255, 255, .06);
    color: var(--sidebarText);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    user-select: none;
}
.nav-section summary::-webkit-details-marker {
    display: none;
}
.nav-section summary span {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-section summary .fa-chevron-down {
    font-size: .72rem;
    transition: transform .18s;
}
.nav-section[open] summary .fa-chevron-down {
    transform: rotate(180deg);
}
.nav-group {
    padding: 5px 0 2px 10px;
    border-left: 1px solid rgba(255, 255, 255, .12);
    margin-left: 12px;
}
.nav-group .nav-link {
    padding: 9px 12px;
    font-size: .93rem;
}
.nav-group .nav-link:hover,
.nav-group .nav-link.active {
    transform: translateX(3px);
}
.app-topbar {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: -6px 0 18px;
}
.topbar-notification-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    position: relative;
    overflow: visible;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.topbar-notification-btn:hover {
    color: var(--primary);
    border-color: rgba(37, 99, 235, .45);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
    transform: translateY(-2px);
}
.topbar-notification-btn i {
    font-size: 1.05rem;
}
.sidebar-nav .nav-link.has-notification-badge,
.btn.has-notification-badge,
.mobile-menu-btn.has-notification-badge,
.topbar-notification-btn.has-notification-badge,
.proof-alert-icon.has-notification-badge {
    position: relative;
    overflow: visible;
}
.notification-count-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    border: 2px solid var(--sidebar);
    box-shadow: 0 8px 18px rgba(239, 68, 68, .32);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    z-index: 2;
}
.nav-section summary .notification-count-badge {
    top: -8px;
    right: 22px;
}
.topbar-notification-btn .notification-count-badge {
    border-color: var(--panel);
}
.proof-alert-icon .notification-count-badge {
    border-color: #fff7ed;
}
/* Pro shell overrides loaded after the main stylesheet */
.app-topbar {
    min-height: 42px;
    margin: 0 0 14px;
    align-items: center;
}
.topbar-notification-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px);
}
.nav-section summary {
    min-height: 42px;
    background: rgba(255, 255, 255, .075);
}
.app-sidebar {
    overflow: hidden;
    max-height: 100vh;
}
.app-sidebar .brand {
    flex: 0 0 auto;
}
.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin-right: -4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .45) transparent;
}
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .38);
    border-radius: 999px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, .62);
}
.sidebar-footer {
    flex: 0 0 auto;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
