/* ===== Navbar ===== */
#navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 48px;
    background: #111;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
    z-index: 50;
}

/* ===== Left side ===== */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-logo {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.3px;
}
.navbar-back {
    font-size: 12px;
    font-family: monospace;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.3px;
}
.navbar-back:hover {
    color: #fff;
}
.navbar-divider {
    color: #333;
    font-size: 12px;
}

/* ===== Right side ===== */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== User button ===== */
.navbar-user {
    position: relative;
}
.navbar-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.navbar-user-btn:hover {
    background: #1a1a1a;
    border-color: #333;
}
.navbar-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.navbar-username {
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.navbar-user-btn:hover .navbar-username {
    color: #fff;
}
.navbar-plan-badge {
    font-size: 9px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
}
.navbar-caret {
    font-size: 10px;
    color: #555;
}
.navbar-user-btn:hover .navbar-caret {
    color: #aaa;
}

/* ===== Plan badges ===== */
.plan-free {
    background: #2a2a2a;
    color: #888;
}
.plan-pro {
    background: rgba(79, 195, 247, 0.15);
    color: #4fc3f7;
}
.plan-max {
    background: rgba(255, 167, 38, 0.15);
    color: #ffa726;
}

/* ===== Log in link (guest) ===== */
.navbar-login-link {
    font-size: 13px;
    font-family: monospace;
    font-weight: 600;
    color: #aaa;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
.navbar-login-link:hover {
    color: #fff;
}

/* ===== Sign-up button (guest) ===== */
.navbar-signup-btn {
    padding: 6px 14px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.navbar-signup-btn:hover {
    opacity: 0.85;
}

/* ===== Dropdown ===== */
.navbar-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 4px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    z-index: 100;
}
.navbar-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 13px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}
.navbar-dropdown button:hover {
    background: #252525;
    color: #fff;
}
.navbar-dropdown-divider {
    height: 1px;
    background: #2a2a2a;
    margin: 4px 0;
}