/* --- HEADER CARD --- */
.profile-header-card { display: flex; align-items: center; padding: 30px !important; margin-bottom: 25px; gap: 20px; }
.profile-avatar-container img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--bg-panel); box-shadow: 0 0 0 2px var(--border-color); }
.profile-text h2 { font-size: 1.8rem; margin: 0 0 10px 0; }
.badges-row { display: flex; gap: 10px; }
.badge { padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.badge-active { background-color: rgba(0, 230, 118, 0.15); color: var(--accent-green); border: 1px solid var(--accent-green); }

/* --- SETTINGS LAYOUT --- */
.profile-grid-layout { display: grid; grid-template-columns: 350px 1fr; gap: 25px; }
@media (max-width: 900px) { .profile-grid-layout { grid-template-columns: 1fr; } }

/* --- TABS --- */
.profile-tabs { display: flex; border-bottom: 1px solid var(--border-color); background: rgba(0,0,0,0.2); border-radius: 12px 12px 0 0; }
.tab-item { padding: 15px 25px; cursor: pointer; color: var(--text-muted); font-weight: 500; transition: all 0.3s; }
.tab-item.active { color: var(--primary); border-bottom: 2px solid var(--primary); background: linear-gradient(to top, rgba(0, 224, 255, 0.05), transparent); }
.settings-content { padding: 30px; min-height: 300px; }
.tab-pane { animation: fadeInTab 0.3s ease-out; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* --- NOTIFICATIONS POPUP --- */
.notification-wrapper:hover #notifBtn { color: var(--text-main); transform: scale(1.1); }
.notif-badge { position: absolute; top: -5px; right: -5px; background: var(--red-accent); color: white; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.notif-panel { display: none; position: absolute; top: 40px; right: 0; width: 320px; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 12px; z-index: 1000; overflow: hidden; }
.notif-panel.open { display: block; animation: slideDown 0.2s ease-out; }
.notif-item { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; }
.notif-item.unread { border-left: 3px solid var(--red-accent); background: rgba(255, 59, 48, 0.05); }

/* --- HISTORIQUE --- */
.history-list { max-height: 400px; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-body); }
.history-item { padding: 15px; border-bottom: 1px solid var(--border-color); display: flex; gap: 15px; align-items: flex-start; }
.history-icon { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; }

/* --- TOGGLE SWITCH (iOS Style) --- */
.ios-switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.ios-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #4a4a4a; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent-pink); }
input:checked + .slider:before { transform: translateX(22px); }