/* ─── Top Navbar ─── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 48px;
    background: rgba(10, 10, 30, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 20;
    gap: 12px;
}
#navbar .logo {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    margin-right: 8px;
    white-space: nowrap;
}
.mode-toggle {
    display: flex;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
}
.mode-btn {
    padding: 6px 16px;
    margin: 0;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    color: #888;
    transition: all 0.15s;
    letter-spacing: 0.3px;
    flex: none;
}
.mode-btn.active { background: #4a9eff; color: #fff; }
.mode-btn:hover:not(.active) { background: rgba(255,255,255,0.1); color: #ccc; }

.nav-spacer { flex: 1; }

.nav-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #aaa;
    cursor: pointer;
    padding: 6px 10px;
    margin: 0;
    flex: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-btn:hover { color: #fff; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); }
.nav-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.nav-user {
    background: rgba(74,158,255,0.12);
    border: 1px solid rgba(74,158,255,0.25);
    border-radius: 20px;
    color: #4a9eff;
    cursor: pointer;
    padding: 5px 14px;
    margin: 0;
    flex: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s;
    display: none;
}
.nav-user:hover { background: rgba(74,158,255,0.2); border-color: #4a9eff; }
