.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.user-name {
    font-size: 0.82rem;
    color: var(--text);
}

.role-badge {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
}

.role-viewer { background: rgba(136,153,170,0.2); color: var(--text-muted); }
.role-editor { background: rgba(74,158,255,0.2); color: var(--accent3); }
.role-approver { background: rgba(83,215,105,0.2); color: var(--accent2); }
.role-superadmin { background: rgba(233,69,96,0.2); color: var(--accent); }

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #5865F2;
    color: white;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s;
}

.btn-discord:hover { opacity: 0.85; }

.btn-logout {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-logout:hover { color: var(--accent); background: rgba(233,69,96,0.1); }

/* Notification bell */
.notif-bell {
    position: relative;
    cursor: pointer;
    padding: 4px;
}

.bell-icon { font-size: 1.1rem; }

.bell-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 200;
}

.notif-dropdown.open { display: block; }

.notif-item {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.8rem;
}

.notif-item.unread { background: rgba(74,158,255,0.06); }
.notif-item:last-child { border-bottom: none; }

.notif-msg { color: var(--text); line-height: 1.3; }
.notif-time { color: var(--text-muted); font-size: 0.68rem; margin-top: 4px; }

.notif-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Language switcher */
.lang-switcher { position: relative; }

.lang-btn {
    padding: 4px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.lang-btn:hover { border-color: var(--accent3); }

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.lang-dropdown.open { display: block; }

.lang-option {
    display: block;
    padding: 6px 16px;
    font-size: 0.78rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.1s;
}

.lang-option:hover { background: rgba(255,255,255,0.06); }
.lang-option.active { color: var(--accent3); }
