/* ========== صفحة الإعدادات ========== */
.settings-group {
    margin: 0 20px;
    background: var(--card);
    border: 1.5px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
}
.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}
.settings-item:hover { background: var(--primary-glow); }
.settings-item:last-child { border-bottom: none; }

.settings-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.settings-icon-wrap {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dark-icon { background: rgba(99,102,241,0.1); color: #818CF8; }
.lang-icon { background: rgba(96,165,250,0.1); color: #60A5FA; }
.bell-settings-icon { background: rgba(251,191,36,0.1); color: #FBBF24; }
body.light .dark-icon { background: rgba(99,102,241,0.08); color: #6366F1; }
body.light .lang-icon { background: rgba(59,130,246,0.08); color: #3B82F6; }
body.light .bell-settings-icon { background: rgba(245,158,11,0.08); color: #F59E0B; }

.settings-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.settings-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ========== مفتاح التبديل ========== */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
}
.toggle-switch input { display: none; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #27272A;
    border-radius: 28px;
    transition: background 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    background: #71717A;
    border-radius: 50%;
    top: 3px; left: 3px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.toggle-switch input:checked + .toggle-slider {
    background: #6366F1;
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
    background: white;
}
body.light .toggle-slider {
    background: #E4E4E7;
}
body.light .toggle-slider::before {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
body.light .toggle-switch input:checked + .toggle-slider {
    background: #6366F1;
}

/* ========== أزرار اللغة ========== */
.lang-options {
    display: flex;
    gap: 4px;
}
.lang-btn {
    padding: 4px 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.lang-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
