.htb-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface, #1a2536);
    border-bottom: 2px solid var(--neon-dim, #6b9e1a);
    padding: 0.8rem 2rem;
    font-family: var(--font-mono);
}

.brand-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon, #9fef00);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}
.brand-logo span {
    color: var(--text-bright, #e6eae6);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text, #b3b9c5);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
    position: relative;
}
.nav-link:hover {
    color: var(--neon, #9fef00);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--neon, #9fef00);
    transition: width 0.2s;
}
.nav-link:hover::after {
    width: 100%;
}

.btn-register {
    border: 1px solid var(--neon, #9fef00);
    padding: 0.4rem 1rem;
    border-radius: 4px;
}
.btn-register:hover {
    background: var(--neon, #9fef00);
    color: #000 !important;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-btn {
    background: transparent;
    border: 1px solid var(--border, #2a3b4e);
    color: var(--text-bright, #e6eae6);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: 0.2s;
}
.user-btn:hover {
    border-color: var(--neon, #9fef00);
    color: var(--neon, #9fef00);
}
.user-icon {
    color: var(--neon, #9fef00);
    font-size: 1rem;
}
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: var(--surface, #1a2536);
    border: 1px solid var(--neon-dim, #6b9e1a);
    min-width: 150px;
    border-radius: 4px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text, #b3b9c5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}
.dropdown-item:hover {
    background: var(--neon-dim, #6b9e1a);
    color: #000;
}


.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--neon-dim, #6b9e1a);
    display: inline-block;
}

.default-avatar {
    background-color: var(--neon-dim, #6b9e1a);
    color: #000;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    line-height: 28px;
}