.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--topbar-height);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--text);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    background: var(--text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.4s ease;
}

.navbar-brand-text span {
    -webkit-text-fill-color: var(--accent);
    color: var(--accent);
}

.navbar-brand:hover .navbar-brand-text {
    background: linear-gradient(
        90deg,
        #94a3b8 0%,
        #ffffff 20%,
        #c0cfe8 35%,
        #e8eef8 50%,
        #c0cfe8 65%,
        #ffffff 80%,
        #94a3b8 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: silverShine 1.2s linear forwards;
}

@keyframes silverShine {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: var(--white-08);
}

.nav-link.active {
    color: var(--primary-light);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--black-80);
    backdrop-filter: blur(8px);
}

.mobile-nav-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    padding: 80px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
}

.mobile-nav.open .mobile-nav-inner {
    transform: translateX(0);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .navbar-toggle { display: flex; }
}