/* ==========================================================================
   MODALES UNIFIÃƒÂ‰ES - LearnBlox
   Fichier UNIQUE pour TOUTES les modales : settings, progress, publicProfile
   ========================================================================== */

@import "./modals-effects.css";

/* Fond flou (backdrop) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Backdrop secondaire (pour JS dynamique) */
.settings-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Container principal - TAILLE FIXE PC */
.modal-content,
.settings-modal-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 900px;
  height: 80vh;
  max-height: 700px;
  background: var(--bg-content);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Settings Modal avec Sidebar (grid layout) */
.settings-modal-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  padding: 0;
  width: 90%;
  max-width: 900px;
  height: 80vh;
  max-height: 700px;
  overflow: hidden;
  background: var(--bg-content);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Sidebar navigation */
.settings-sidebar {
  background: var(--bg-alt);
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.settings-nav-item i {
  width: 18px;
  height: 18px;
}

.settings-nav-item:hover {
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--primary-accent);
}

.settings-nav-item.active {
  background: var(--primary-accent);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.modal-overlay.active .modal-content,
.modal-overlay.active .settings-modal-container,
#settingsModal.active .settings-modal-container,
#progressModal.active .settings-modal-container,
#publicProfileModal.active .settings-modal-container {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   2. HEADER - EN-TÃƒÂŠTE
   ========================================================================== */

.settings-modal-header {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Pattern dÃƒÂ©coratif */
.settings-modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.settings-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.settings-title-group {
  flex: 1;
  min-width: 0;
}

.settings-title-group h2 {
  margin: 0;
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settings-title-group h2 i {
  width: 22px;
  height: 22px;
}

.settings-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  margin: 0.25rem 0 0 0;
  font-weight: 500;
}

/* Bouton Fermer */
.settings-close-btn,
.modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 10;
}

.settings-close-btn:hover,
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: rotate(90deg);
}

/* ==========================================================================
   3. NAVIGATION - TABS
   ========================================================================== */

.settings-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-alt);
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.settings-tab-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.65rem 1rem;
  border: 2px solid var(--border-color);
  background: var(--bg-content);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 10px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.settings-tab-btn i {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.settings-tab-btn:hover {
  background: var(--bg-body);
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.settings-tab-btn.active {
  background: var(--primary-accent);
  color: white;
  border-color: var(--primary-accent);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35);
  transform: translateY(-2px);
  font-weight: 800;
}

.settings-tab-btn.active i {
  transform: scale(1.15);
}

/* ==========================================================================
   4. CONTENU - BODY & CARDS
   ========================================================================== */

.settings-main {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.settings-tab-content {
  display: none;
  animation: fadeInUp 0.3s ease;
}

.settings-tab-content.active {
  display: block;
}

/* fadeInUp keyframe maintenant dans _animations.css */

/* Section Title */
.settings-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-headings);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-section-title i {
  color: var(--primary-accent);
  width: 20px;
  height: 20px;
}
.settings-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.settings-card:last-child {
  margin-bottom: 0;
}

.settings-card h3,
.settings-card h4 {
  margin: 0 0 0.6rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-headings);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-card h3 i,
.settings-card h4 i {
  color: var(--primary-accent);
  width: 18px;
  height: 18px;
}

.settings-card p {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Info Row */
.settings-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
}

.settings-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-info-row:first-child {
  padding-top: 0;
}

.settings-label,
.settings-info-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
}

.settings-value,
.settings-info-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ==========================================================================
   5. FORMULAIRES & INPUTS
   ========================================================================== */

.settings-form-group {
  margin-bottom: 1rem;
}

.settings-form-group:last-child {
  margin-bottom: 0;
}

.settings-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s;
  font-family: inherit;
}

.settings-input:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.settings-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--bg-alt);
}

.settings-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   6. BOUTONS
   ========================================================================== */

.settings-btn,
.btn-primary {
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.settings-btn i {
  width: 16px;
  height: 16px;
}

.settings-btn-primary,
.btn-primary {
  background: var(--primary-accent);
  color: white;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.settings-btn-primary:hover,
.btn-primary:hover {
  background: #5b21b6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.settings-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.settings-btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

.settings-btn-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.settings-btn-danger {
  background: #ef4444;
  color: white;
}

.settings-btn-danger:hover {
  background: #dc2626;
}

.settings-btn-discord {
  background: #5865f2;
  color: white;
}

.settings-btn-discord:hover {
  background: #4752c4;
}

.settings-btn-roblox {
  background: #000;
  color: white;
}

.settings-btn-roblox:hover {
  background: #1a1a1a;
}

/* ==========================================================================
   7. TOGGLE SWITCH
   ========================================================================== */

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-alt);
  border: 2px solid var(--border-color);
  transition: all 0.25s ease;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-muted);
  transition: all 0.25s ease;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-accent);
  border-color: var(--primary-accent);
}

input:checked + .slider:before {
  transform: translateX(22px);
  background-color: white;
}

input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* Toggle Group (style carte) */
.toggle-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-body);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

/* ==========================================================================
   8. STATUS DISPLAY (Discord/Roblox)
   ========================================================================== */

.status-display {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.status-display.linked {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.status-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
}

.status-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.status-avatar.discord {
  background: #5865f2;
  color: white;
  border-color: #5865f2;
}

.status-avatar.roblox {
  background: #000;
  color: white;
  border-color: #000;
}

.status-info {
  flex: 1;
  min-width: 0;
}

.status-username {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.status-badge {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.status-badge.verified {
  color: var(--success-color);
}

.status-badge.unverified {
  color: var(--text-muted);
}

.status-actions {
  display: flex;
  gap: 0.5rem;
}

/* ==========================================================================
   9. MESSAGES & ALERTS
   ========================================================================== */

.settings-message {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.settings-message i {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.settings-message-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.settings-message-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.settings-message-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.settings-message-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ==========================================================================
   10. DANGER ZONE
   ========================================================================== */

.danger-zone {
  background: rgba(239, 68, 68, 0.03);
  border: 2px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
}

.danger-zone h3 {
  margin: 0 0 0.5rem 0;
  color: #ef4444;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.danger-zone p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  font-size: 0.9rem;
}

/* ==========================================================================
   11. PRÃƒÂ‰FÃƒÂ‰RENCES (Cards grille)
   ========================================================================== */

.pref-main-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--bg-content) 0%, var(--bg-alt) 100%);
  border: 2px solid var(--primary-accent);
  border-radius: 18px;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px -8px rgba(var(--primary-rgb), 0.15);
  position: relative;
  overflow: hidden;
}

.pref-main-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary-accent);
}

.pref-main-icon {
  width: 56px;
  height: 56px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pref-main-icon i {
  width: 28px;
  height: 28px;
}

.pref-main-content {
  flex: 1;
  min-width: 0;
}

.pref-main-content h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.35rem 0;
  color: var(--text-headings);
}

.pref-main-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.pref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.pref-card {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.3s ease;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.pref-card:hover {
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-sm);
}

.pref-card.disabled-state {
  opacity: 0.6;
  filter: grayscale(1);
  pointer-events: none;
}

.pref-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.pref-card-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pref-card-icon-wrapper i,
.pref-card-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.icon-badges {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.icon-xp {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.icon-discord {
  background: rgba(88, 101, 242, 0.1);
  color: #5865f2;
}

.icon-roblox {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

[data-theme="dark"] .icon-roblox {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.pref-card-text h4 {
  margin: 0 0 0.15rem 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-headings);
}

.pref-card-text p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pref-card .switch {
  flex-shrink: 0;
  margin-left: auto;
}

/* ==========================================================================
   12. PROGRESS MODAL - ÃƒÂ‰LÃƒÂ‰MENTS SPÃƒÂ‰CIFIQUES
   ========================================================================== */
.pm-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

/* Profile Hero */
.pm-profile-hero {
  background: var(--bg-content);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pm-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
  z-index: 0;
}

.pm-profile-avatar-wrapper {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.pm-profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-content);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.pm-profile-info {
  position: relative;
  z-index: 1;
  flex: 1;
}

.pm-profile-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-headings);
  margin-bottom: 0.35rem;
}

.pm-profile-rank {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.8rem;
  color: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Stats Grid */
.pm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.pm-stat-card {
  background: var(--bg-alt);
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  transition: transform 0.2s;
}

.pm-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-accent);
}

.pm-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.pm-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-headings);
}

.pm-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Progress Section */
.pm-progress-section {
  background: var(--bg-content);
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
}

.pm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pm-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-headings);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Modules Grid */
.pm-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.pm-module-card {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pm-module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-accent);
}

.pm-module-header {
  padding: 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pm-module-icon {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent);
  box-shadow: var(--shadow-sm);
}

.pm-module-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 16px;
  text-transform: uppercase;
}

.pm-module-status.completed {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.pm-module-status.in-progress {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.pm-module-status.locked,
.pm-module-status.todo {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.pm-module-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pm-module-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-headings);
  margin-bottom: 0.35rem;
}

.pm-module-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.4;
  flex: 1;
}

.pm-module-footer {
  margin-top: auto;
}

.pm-module-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.pm-module-progress-bar {
  height: 5px;
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
}

.pm-module-progress-fill {
  height: 100%;
  background: var(--primary-accent);
  border-radius: 8px;
}

.pm-module-mini-stats {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.pm-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.pm-stat-pill i {
  width: 12px;
  height: 12px;
}

.pm-stat-pill.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.2);
}

.pm-stat-pill.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.2);
}

/* Badges Grid Premium */
.pm-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  padding: 0.5rem 0;
}

.pm-badge-card {
  background: var(--bg-content);
  border: 2px solid var(--border-color);
  border-radius: 18px;
  padding: 1.25rem 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.pm-badge-card:not(.locked) {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  box-shadow: 0 8px 24px -5px rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

.pm-badge-card:not(.locked)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.pm-badge-card.locked {
  background: var(--bg-alt);
  border-color: transparent;
  opacity: 0.8;
  filter: grayscale(1);
}

.pm-badge-card.locked:hover {
  transform: translateY(-2px);
  filter: grayscale(0.5);
  opacity: 1;
}

.pm-badge-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.pm-badge-card:not(.locked) .pm-badge-icon-wrapper {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
  border: 3px solid white;
}

.pm-badge-card.locked .pm-badge-icon-wrapper {
  background: var(--bg-body);
  color: var(--text-muted);
  border: 3px solid var(--border-color);
}

.pm-badge-lucide {
  width: 28px;
  height: 28px;
  stroke-width: 2.5px;
}

.pm-badge-name {
  font-weight: 800;
  color: var(--text-headings);
  font-size: 0.9rem;
  line-height: 1.2;
}

.pm-badge-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: auto;
  padding: 0 0.25rem;
}

.pm-badge-date {
  font-size: 0.7rem;
  color: #d97706;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 16px;
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.pm-badge-locked-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-body);
  padding: 0.25rem 0.65rem;
  border-radius: 16px;
}

/* Grade Progress Bar */
.pm-grade-progress-container {
  padding: 0.35rem 0;
}

.pm-grade-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.6rem;
}

.pm-grade-info-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pm-grade-info-col.right {
  align-items: flex-end;
}

.pm-grade-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.pm-grade-next {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pm-grade-bar-wrapper {
  position: relative;
  height: 20px;
  background: var(--bg-alt);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pm-grade-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.pm-grade-bar-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 18px 18px;
  opacity: 0.3;
}

.pm-grade-bar-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.pm-grade-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   QUIZ READY STATE (User completed all modules, waiting for quiz final)
   ========================================================================== */

.pm-grade-progress-container.quiz-ready-state {
  padding: 0;
}

.pm-quiz-ready-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pm-current-grade-display {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pm-quiz-ready-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
  animation: pulse-trophy 2s infinite;
}

.pm-quiz-ready-icon i {
  width: 24px;
  height: 24px;
}

@keyframes pulse-trophy {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
  }
}

.pm-quiz-cta-card {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(168, 85, 247, 0.08) 100%
  );
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pm-quiz-cta-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pm-quiz-cta-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-headings);
}

.pm-quiz-cta-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.pm-quiz-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: white;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.3s ease;
}

.pm-quiz-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.pm-quiz-cta-btn i {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   CERTIFIED STATE (User passed quiz final)
   ========================================================================== */

.pm-grade-progress-container.certified-state {
  padding: 0;
}

.pm-grade-max-state {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1rem 0;
}

.pm-certified-badge-display {
  flex-shrink: 0;
}

.pm-certified-message {
  flex: 1;
}

.pm-certified-message .celebration-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-gold 3s linear infinite;
}

@keyframes shimmer-gold {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.pm-certified-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.1) 0%,
    rgba(217, 119, 6, 0.1) 100%
  );
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 14px;
  color: #d97706;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.pm-certified-banner i {
  width: 22px;
  height: 22px;
  color: #fbbf24;
}

@media (max-width: 500px) {
  .pm-quiz-cta-card {
    flex-direction: column;
    text-align: center;
  }

  .pm-quiz-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Visibility Badge */
.pm-visibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: help;
  transition: all 0.2s ease;
}

.pm-visibility-badge.is-public {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pm-visibility-badge.is-private {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.2);
}

/* ==========================================================================
   13. PROFIL PUBLIC - ÃƒÂ‰LÃƒÂ‰MENTS SPÃƒÂ‰CIFIQUES
   ========================================================================== */

/* Tab Panes */
.pp-v4-tab-pane {
  display: none;
  animation: fadeInUp 0.3s ease;
}

.pp-v4-tab-pane.active {
  display: block;
}
.pp-v4-avatar-wrapper {
  width: 70px;
  height: 70px;
  position: relative;
  flex-shrink: 0;
}

.pp-v4-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-content);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pp-v4-level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--primary-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 10px;
  border: 2px solid var(--bg-content);
}

/* Badges Pills */
.pp-v4-badges-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pp-v4-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pp-v4-badge-pill.rank {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.pp-v4-badge-pill.public {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Stats Icons */
.pp-v4-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.pp-v4-icon-wrapper i {
  width: 22px;
  height: 22px;
}

.pp-v4-icon-wrapper.xp {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.pp-v4-icon-wrapper.modules {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.pp-v4-icon-wrapper.rank {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.pp-v4-stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-headings);
  margin-bottom: 0.2rem;
}

.pp-v4-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Badges Grid Premium */
.pp-v4-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.pp-v4-badge-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
  border: 3px solid white;
}

.pp-v4-badge-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.5px;
}

.pp-v4-badge-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-headings);
  text-align: center;
}

.pp-v4-badge-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

.pp-v4-badge-status {
  font-size: 0.7rem;
  color: #d97706;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   13ter. BUG REPORT MODAL - Styles spÃƒÂ©cifiques
   ========================================================================== */

/* Grid de types de bug */
.bug-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.bug-type-option {
  cursor: pointer;
}

.bug-type-option input {
  display: none;
}

.bug-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: var(--bg-body);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
  text-align: center;
}

.bug-type-card i {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.bug-type-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.bug-type-option:hover .bug-type-card {
  border-color: var(--primary-accent);
  transform: translateY(-2px);
}

.bug-type-option input:checked + .bug-type-card {
  background: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.bug-type-option input:checked + .bug-type-card i {
  color: #f59e0b;
}

.bug-type-option input:checked + .bug-type-card span {
  color: #d97706;
}
#bugReportForm textarea.settings-input {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .bug-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bug-type-card {
    padding: 0.85rem 0.5rem;
  }

  .bug-type-card i {
    width: 20px;
    height: 20px;
  }

  .bug-type-card span {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   14. CONTEXT MENU
   ========================================================================== */

.user-context-menu {
  position: fixed;
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  z-index: 10000;
  min-width: 180px;
  opacity: 0;
  transform: scale(0.95) translateY(-10px);
  animation: contextMenuIn 0.2s ease forwards;
}

/* contextMenuIn keyframe maintenant dans _animations.css */

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.context-menu-item:hover {
  background: var(--bg-alt);
  color: var(--primary-accent);
}

.context-menu-item i {
  width: 16px;
  height: 16px;
}

.context-menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.4rem 0;
}

/* ==========================================================================
   15. LOADING SPINNER
   ========================================================================== */

.loading-spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.loading-spinner::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* spin et shine keyframes maintenant dans _animations.css */

/* ==========================================================================
   16. RESPONSIVE - TABLETTES
   ========================================================================== */

@media (max-width: 900px) {
  .modal-content,
  .settings-modal-container {
    width: 95%;
    height: 85vh;
    max-height: none;
  }

  .settings-modal-content {
    grid-template-columns: 180px 1fr;
  }

  .pref-grid {
    grid-template-columns: 1fr;
  }

  .pm-modules-grid {
    grid-template-columns: 1fr;
  }

  .pm-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   17. RESPONSIVE - MOBILE (PLEIN ÃƒÂ‰CRAN)
   ========================================================================== */

@media (max-width: 600px) {
  /* OVERLAY plein ÃƒÂ©cran */
  .modal-overlay {
    padding: 0 !important;
  }

  /* TOUS les modals plein ÃƒÂ©cran */
  .modal-content,
  .settings-modal-container,
  .settings-modal-content {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  /* Settings Modal - Passer en colonne */
  .settings-modal-content {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }

  /* Sidebar devient barre horizontale */
  .settings-sidebar {
    flex-direction: row !important;
    overflow-x: auto !important;
    padding: 0.75rem !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    flex-shrink: 0 !important;
    gap: 0.5rem !important;
  }

  .settings-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
  }

  .settings-nav-item span {
    display: none;
  }

  .settings-main {
    flex: 1 !important;
    overflow-y: auto !important;
  }

  .settings-modal-header {
    padding: 1rem;
  }

  .settings-title-group h2 {
    font-size: 1.1rem;
  }

  /* Tabs scroll horizontal */
  .settings-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.65rem 0.85rem;
    gap: 0.4rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .settings-tabs::-webkit-scrollbar {
    display: none;
  }

  .settings-tab-btn {
    flex: 0 0 auto;
    min-width: fit-content;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
  }

  /* Main content */
  .settings-main {
    padding: 1rem;
  }

  .settings-card {
    padding: 1rem;
    margin-bottom: 0.85rem;
  }

  /* Preferences mobile */
  .pref-main-card {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
    padding: 1rem;
  }

  .pref-main-card::before {
    width: 100%;
    height: 4px;
    left: 0;
    top: 0;
  }

  .pref-card {
    padding: 0.85rem;
  }

  .pref-card-icon-wrapper {
    width: 36px;
    height: 36px;
  }

  .pref-card-text h4 {
    font-size: 0.85rem;
  }

  .pref-card-text p {
    font-size: 0.75rem;
  }

  /* Progress modal mobile */
  .pm-profile-hero {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .pm-profile-avatar-wrapper {
    width: 70px;
    height: 70px;
  }

  .pm-profile-name {
    font-size: 1.2rem;
  }

  .pm-stats-grid {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .pm-stat-card {
    padding: 0.65rem;
  }

  .pm-stat-value {
    font-size: 1rem;
  }

  .pm-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .pm-badge-card {
    padding: 1rem 0.65rem;
  }

  .pm-badge-icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .pm-badge-lucide {
    width: 24px;
    height: 24px;
  }

  /* Profile public mobile */
  .pp-v4-avatar-wrapper {
    width: 60px;
    height: 60px;
  }

  .pp-v4-stat-value {
    font-size: 1.1rem;
  }

  .pp-v4-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Status display mobile */
  .status-display {
    flex-wrap: wrap;
  }

  .status-actions {
    width: 100%;
    flex-direction: column;
  }

  .settings-btn {
    width: 100%;
  }

  /* OVERRIDE pour TOUS les modals sur mobile - PLEIN ÃƒÂ‰CRAN */
  #publicProfileModal .settings-modal-container,
  #publicProfileModal .private-profile-modal,
  #progressModal .settings-modal-container,
  #settingsModal .settings-modal-content,
  .settings-modal-container,
  .private-profile-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
}

/* =========================================
   DAILY BONUS MODAL
   ========================================= */

/* Modal Overlay */
.db-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dbFadeIn 0.3s ease;
}

/* Modal Box */
.db-modal-box {
  background: var(--bg-content);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  animation: dbSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.db-modal-header {
  padding: 1.25rem 1.5rem;
  background: var(--bg-content);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.db-modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  border-radius: 24px 24px 0 0;
}

.db-title-group h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-headings);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.db-title-group h2 i {
  width: 22px;
  height: 22px;
  color: #a855f7;
}

.db-title-group p {
  margin: 0.25rem 0 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.db-title-group p strong {
  color: #a855f7;
}

.db-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-alt);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.db-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
  transform: rotate(90deg);
}

.db-close-btn i {
  width: 18px;
  height: 18px;
}
.db-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  background: var(--bg-content);
}

/* Streak Grid */
.db-streak-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.db-streak-day {
  background: var(--bg-alt);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 0.6rem 0.25rem;
  text-align: center;
  transition: all 0.2s ease;
}

.db-day-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.db-day-icon {
  width: 28px;
  height: 28px;
  background: var(--bg-content);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.4rem;
}

.db-day-icon .streak-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.db-day-reward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.db-day-reward i {
  width: 10px;
  height: 10px;
  color: #a855f7;
}

/* Completed Day */
.db-streak-day.completed {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.db-streak-day.completed .db-day-icon {
  background: #10b981;
}

.db-streak-day.completed .db-day-icon .streak-icon {
  color: white;
}

/* Current Day */
.db-streak-day.current {
  background: rgba(168, 85, 247, 0.1);
  border-color: #a855f7;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.db-streak-day.current .db-day-icon {
  background: linear-gradient(135deg, #a855f7, #6366f1);
}

.db-streak-day.current .db-day-icon .streak-icon {
  color: white;
}

.db-streak-day.current .db-day-reward {
  color: #a855f7;
}

/* Locked Day */
.db-streak-day.locked {
  opacity: 0.5;
}

/* Day 7 Special */
.db-streak-day.day-7 {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
}

.db-streak-day.day-7 .db-day-reward {
  color: #f59e0b;
}

.db-streak-day.day-7 .db-day-reward i {
  color: #f59e0b;
}

.db-streak-day.day-7.current {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.db-streak-day.day-7.current .db-day-icon {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Reward Card */
.db-reward-card {
  text-align: center;
  padding: 1.25rem;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.db-reward-card.bonus-week {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.1),
    rgba(245, 158, 11, 0.1)
  );
  border-color: rgba(251, 191, 36, 0.3);
}

.db-reward-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.db-reward-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  color: #a855f7;
}

.db-reward-card.bonus-week .db-reward-amount {
  color: #f59e0b;
}

.db-reward-amount i {
  width: 28px;
  height: 28px;
}

.db-bonus-tag {
  display: inline-block;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Claim Button */
.db-claim-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px -5px rgba(168, 85, 247, 0.4);
}

.db-claim-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -5px rgba(168, 85, 247, 0.5);
}

.db-claim-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.db-claim-btn.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 20px -5px rgba(16, 185, 129, 0.4);
}

.db-claim-btn i {
  width: 20px;
  height: 20px;
}

.db-claim-btn i.spin {
  animation: dbSpin 1s linear infinite;
}
.db-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 0;
}

.db-tip i {
  width: 14px;
  height: 14px;
}

@keyframes dbFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes dbSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dbSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 500px) {
  .db-streak-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .db-streak-day.day-7 {
    grid-column: span 2;
  }

  .db-modal-box {
    width: 95%;
    max-height: 95vh;
  }
}

/* =========================================
   SHOP PURCHASE MODAL (Redesigned)
   ========================================= */

/* Modal Overlay */
.shop-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: shopFadeIn 0.3s ease;
}

/* Modal Box */
.shop-modal-box {
  background: var(--bg-content);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 420px;
  overflow: hidden;
  animation: shopSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.shop-modal-header {
  padding: 1.25rem 1.5rem;
  background: var(--bg-content);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.shop-modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  border-radius: 24px 24px 0 0;
}

.shop-modal-header.success::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.shop-title-group h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-headings);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shop-title-group h2 i {
  width: 20px;
  height: 20px;
  color: #a855f7;
}

.shop-modal-header.success .shop-title-group h2 i {
  color: #10b981;
}

.shop-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-alt);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
  transform: rotate(90deg);
}

.shop-close-btn i {
  width: 18px;
  height: 18px;
}
.shop-modal-body {
  padding: 1.5rem;
  background: var(--bg-content);
}

.shop-modal-body.centered {
  text-align: center;
}

/* Item Preview */
.shop-item-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.shop-preview-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.shop-preview-icon i {
  width: 28px;
  height: 28px;
}

/* Shop preview icon variants (matching item-icon classes) */
.shop-preview-icon.joker {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
  color: #6366f1;
}

.shop-preview-icon.boost {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.shop-preview-icon.lucky {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.shop-preview-icon.effect {
  background: rgba(236, 72, 153, 0.1);
  border-color: rgba(236, 72, 153, 0.2);
  color: #ec4899;
}

.shop-preview-info h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-headings);
}

.shop-preview-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Purchase Summary */
.shop-purchase-summary {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.shop-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.shop-summary-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.shop-summary-value {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.shop-summary-value.price {
  color: #6b7280;
  font-size: 1.1rem;
}

.shop-summary-value.price i {
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.shop-summary-value.balance {
  color: #6b7280;
  font-size: 1rem;
}

.shop-summary-value.balance i {
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

.shop-summary-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
}
.shop-modal-footer {
  padding: 1rem 1.5rem 1.5rem;
  background: var(--bg-content);
  display: flex;
  gap: 0.75rem;
}

.shop-modal-footer.centered {
  justify-content: center;
}

.shop-btn-primary,
.shop-btn-secondary,
.shop-btn-success {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: none;
}

.shop-btn-primary i,
.shop-btn-secondary i,
.shop-btn-success i {
  width: 18px;
  height: 18px;
}

.shop-btn-primary {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: white;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.shop-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

.shop-btn-secondary {
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.shop-btn-secondary:hover {
  background: var(--bg-body);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.shop-btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  max-width: 200px;
}

.shop-btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Success State */
.shop-success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15),
    rgba(5, 150, 105, 0.15)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  animation: shopSuccessPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shop-success-icon i {
  width: 40px;
  height: 40px;
  color: #10b981;
}

.shop-success-message {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.shop-success-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-alt);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-headings);
}

.shop-success-item i {
  width: 16px;
  height: 16px;
  color: #a855f7;
}

@keyframes shopFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shopSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shopSuccessPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 500px) {
  .shop-modal-box {
    width: 95%;
  }

  .shop-modal-footer {
    flex-direction: column;
  }

  .shop-btn-success {
    max-width: 100%;
  }
}

/* === GRADES FORMATION / CERTIFIÃ¯Â¿Â½ / BONUS === */

/* Status Labels */
.pm-grade-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pm-grade-status.formation {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.pm-grade-status.certified {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.15) 0%,
    rgba(5, 150, 105, 0.15) 100%
  );
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pm-grade-status.bonus {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.15) 0%,
    rgba(245, 158, 11, 0.15) 100%
  );
  color: #f59e0b;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Badge Status Tags */
.grade-certified-badge,
.grade-bonus-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  margin-left: 4px;
}

.grade-certified-badge {
  background: #10b981;
  color: white;
}

.grade-bonus-badge {
  background: #f59e0b;
  color: white;
}

.next-bonus-tag {
  font-size: 0.75rem;
  margin-left: 4px;
}

/* Certified Banner */
.pm-certified-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1) 0%,
    rgba(5, 150, 105, 0.1) 100%
  );
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  color: #10b981;
}

.pm-certified-banner i {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.pm-certified-banner span {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.pm-certified-banner strong {
  color: #10b981;
}

/* Grade Badge Variants */
.grade-badge.certified {
  border-width: 3px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.grade-badge.bonus {
  border-width: 3px;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* =========================================
   PUBLIC PROFILE MODAL (Merged)
   ========================================= */
/* ========================================
   PROFIL PUBLIC - STYLE MODERNE UNIFIÃ‰
   Style cohÃ©rent avec settings-modal et progress-modal
   Note: Context menu styles sont dans modals-unified.css
   ======================================== */

/* ========================================
   PROFIL PUBLIC MODAL
   Utilise le systÃ¨me unifiÃ© des modales (unified-modals.css + settings-simple.css)
   Ce fichier contient UNIQUEMENT les styles spÃ©cifiques au profil public
   ======================================== */

/* Backdrop pour profil public - hÃ©rite de unified-modals.css */
#publicProfileModal.active .settings-modal-backdrop {
  display: block;
}

/* Container pour profil public - ajustements spÃ©cifiques */
#publicProfileModal .settings-modal-container {
  max-width: 900px;
}
#publicProfileModal .settings-header-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
  gap: 1rem;
}

#publicProfileModal .settings-title-group {
  flex: 1;
  min-width: 0;
}

#publicProfileModal .settings-close-btn {
  flex-shrink: 0;
  margin-left: auto;
}

/* Note: Les classes suivantes sont hÃ©ritÃ©es de settings-simple.css :
   - .settings-modal-backdrop
   - .settings-modal-container  
   - .settings-modal-header
   - .settings-tabs / .settings-tab-btn
   - .settings-main
   - .settings-card
*/

/* --- Tab Panes spÃ©cifiques au profil public --- */
.pp-v4-tab-pane {
  display: none;
  animation: fadeInUp 0.3s ease;
}

.pp-v4-tab-pane.active {
  display: block;
}

/* --- Avatar Wrapper dans identity card --- */
.pp-v4-avatar-wrapper {
  width: 80px;
  height: 80px;
  position: relative;
  flex-shrink: 0;
}

.pp-v4-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-content);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pp-v4-level-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: var(--primary-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  border: 2px solid var(--bg-content);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- Badges Pills --- */
.pp-v4-badges-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pp-v4-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pp-v4-badge-pill.rank {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.pp-v4-badge-pill.public {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Badge Premium Sparkle */
.pp-v4-badge-pill.premium-badge {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
  animation: premiumBadgePulse 2s ease-in-out infinite;
}

@keyframes premiumBadgePulse {
  0%,
  100% {
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
  }
  50% {
    box-shadow: 0 2px 20px rgba(236, 72, 153, 0.6);
  }
}

/* --- Icon Wrappers for Stats --- */
.pp-v4-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.pp-v4-icon-wrapper i {
  width: 24px;
  height: 24px;
}

.pp-v4-icon-wrapper.xp {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.pp-v4-icon-wrapper.modules {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.pp-v4-icon-wrapper.rank {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

/* --- Stat Values & Labels --- */
.pp-v4-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-headings);
  margin-bottom: 0.25rem;
}

.pp-v4-stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Badges Grid (Style Premium comme progress-modal) --- */
.pp-v4-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

/* Badge Card - Style Premium Gold */
#publicProfileModal .pp-v4-badges-grid .settings-card {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  border: 2px solid #fbbf24;
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
  min-height: 240px;
  height: 100%;
}

/* Barre dorÃ©e en haut */
#publicProfileModal .pp-v4-badges-grid .settings-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fbbf24, #d97706);
}
#publicProfileModal .pp-v4-badges-grid .settings-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 55%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

/* shine keyframe déjà défini dans _animations.css */

/* Wrapper de l'icône du badge */
.pp-v4-badge-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
  border: 4px solid white;
  position: relative;
  z-index: 2;
}

.pp-v4-badge-icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.5px;
}

.pp-v4-badge-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-headings);
  text-align: center;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.pp-v4-badge-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
  margin: 0;
  padding: 0 0.5rem;
  position: relative;
  z-index: 2;
}

.pp-v4-badge-status {
  font-size: 0.75rem;
  color: #d97706;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 2;
}

.pp-v4-badge-status i {
  width: 14px;
  height: 14px;
}

/* --- Social Icons --- */

/* --- Social List Specific Styles --- */

/* --- Responsive spÃ©cifique au profil public --- */
@media (max-width: 768px) {
  /* Note: .settings-tabs responsive est gÃ©rÃ© dans settings-simple.css */

  .pp-v4-avatar-wrapper {
    width: 70px;
    height: 70px;
  }

  .pp-v4-stat-value {
    font-size: 1.25rem;
  }

  .pp-v4-badges-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

@media (max-width: 600px) {
  #publicProfileModal .settings-modal-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }

  #publicProfileModal.active .settings-modal-container {
    transform: translate(-50%, -50%) scale(1);
  }

  #publicProfileModal .settings-main {
    padding: 1.5rem !important;
  }

  #publicProfileModal .settings-card {
    padding: 1.25rem !important;
  }

  .pp-v4-icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .pp-v4-icon-wrapper i {
    width: 20px;
    height: 20px;
  }

  .pp-v4-avatar-wrapper {
    width: 60px;
    height: 60px;
  }

  /* Stats en 1 colonne sur petit Ã©cran */
  #publicProfileModal .settings-card[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================
   SOCIAL CARDS V2 (Design actif)
   ========================================= */


/* --- Social Grid V2 (Design actif) --- */
.pp-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.social-card {
  background: var(--bg-content);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-accent);
}

.social-card.discord {
  border-left: 4px solid #5865f2;
}

.social-card.roblox {
  border-left: 4px solid #000000;
}

/* Background decoration */
.social-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(var(--primary-rgb), 0.03) 100%
  );
  z-index: 0;
}

.social-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-card.discord .social-icon {
  background: #5865f2;
}

.social-card.roblox .social-icon {
  background: #232323;
}

.social-info {
  flex: 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.social-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--bg-alt);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-top: 0.25rem;
}

.social-username {
  font-weight: 700;
  color: var(--text-headings);
  font-family: "Fira Code", monospace;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary-accent);
}

.btn-copy i {
  width: 16px;
  height: 16px;
}

.social-status {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.social-status::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

/* Empty state styling */
.social-card.empty {
  opacity: 0.8;
  filter: grayscale(0.5);
}

.social-card.empty:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* Effects moved to css/modals-effects.css */
