/* ========== الشريط العلوي ========== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 12px;
    position: sticky;
    top: 0;
    background: var(--topbar-bg);
    backdrop-filter: blur(24px);
    z-index: 9999;
}
.top-bar-right { display: flex; align-items: center; gap: 14px; }
.top-bar-left { display: flex; align-items: center; gap: 8px; }

.app-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #6366F1, #818CF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.light .app-name {
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-btn, .theme-toggle {
    position: relative;
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--card);
    border: 1.5px solid var(--border);
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
.notification-btn:hover, .theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-glow);
}

.icon-moon { display: block; }
.icon-sun { display: none; }
body.light .icon-moon { display: none; }
body.light .icon-sun { display: block; }

.notif-badge {
    position: absolute;
    top: -4px; left: -4px;
    width: 18px; height: 18px;
    background: var(--error);
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    border: 2px solid var(--bg);
}

.lang-switcher-wrap { position: relative; z-index: 1000; }
.lang-switcher-btn {
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--card);
    border: 1.5px solid var(--border);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
.lang-switcher-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-glow);
}
.lang-switcher-dropdown {
    position: absolute;
    top: 52px;
    right: 0;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    min-width: 120px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 9999;
}
.lang-switcher-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.lang-switcher-option:hover { background: var(--primary-glow); color: var(--primary); }
.lang-switcher-option.active { color: var(--primary); font-weight: 700; }
