.hidden,
[hidden] {
  display: none !important;
}

.modal-overlay.hidden,
.onboarding-overlay.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* ============================================
   CLOAK — app.css v2
   Basé sur la charte graphique officielle
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800;900&family=DM+Sans:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Couleurs de la charte */
  --cloak-bg-dark: #0B0F1A;          /* Fond sombre principal (sidebar) */
  --cloak-surface-dark: #121829;      /* Cards sombres (numero-card) */
  --cloak-primary: #6C5CFF;           /* Violet principal (CTA, accents) */
  --cloak-primary-light: #A78BFA;     /* Violet clair (hover, secondaire) */
  --cloak-accent: #00E0FF;            /* Cyan (highlights) */
  --cloak-bg-light: #F3F4F8;          /* Fond clair (main content) */

  /* Alias rétrocompatibles (pour ne rien casser) */
  --indigo: #6C5CFF;
  --indigo-light: #A78BFA;
  --indigo-bg: #EEF0FF;
  --blue: #6C5CFF;
  --dark: #0B0F1A;
  --night: #121829;
  --white: #ffffff;
  --light: #F3F4F8;
  --muted: #64748b;
  --border: #e8edf5;

  /* Couleurs sémantiques */
  --green: #22c55e;
  --green-bg: #f0fdf4;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --cyan: #00E0FF;
  --cyan-bg: #ecfeff;

  /* Ombres */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-primary: 0 4px 16px rgba(108,92,255,0.25);
  --shadow-indigo: 0 4px 16px rgba(108,92,255,0.25); /* alias */

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;

  /* Espacements */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cloak-bg-light);
  color: var(--dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LAYOUT
   ============================================ */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--cloak-bg-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
}

.sidebar-logo {
  padding: 22px 20px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logo span {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.5px;
}

.sidebar-nav { flex: 1; padding: 16px 10px; overflow-y: auto; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 2px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(108,92,255,0.25), rgba(108,92,255,0.15));
  color: var(--white);
}
.nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 14px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-user:hover { background: rgba(255,255,255,0.06); }
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cloak-primary), var(--cloak-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}
.user-email {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-plan {
  font-size: 9px;
  color: var(--cloak-primary-light);
  font-weight: 700;
  margin-top: 1px;
}

/* Main content */
.main-content {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 12px;
}

/* Titre de page : DM Sans Bold (plus de Syne, plus lisible en mobile) */
.topbar-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--dark);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.page-content { padding: 28px; flex: 1; }

/* ============================================
   HAMBURGER (mobile)
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 3px;
  display: block;
  transition: all 0.2s;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  animation: fadeIn 0.2s ease;
}
.sidebar-overlay.open { display: block; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   STAT CARDS (avec icône colorée au-dessus)
   ============================================ */
.stat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  position: relative;
  transition: all 0.15s;
  cursor: pointer;
}
.stat-card:hover {
  border-color: var(--cloak-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.stat-icon.green  { background: var(--green-bg);  color: var(--green); }
.stat-icon.amber  { background: var(--amber-bg);  color: var(--amber); }
.stat-icon.red    { background: var(--red-bg);    color: var(--red); }
.stat-icon.indigo { background: var(--indigo-bg); color: var(--cloak-primary); }
.stat-icon.cyan   { background: var(--cyan-bg);   color: var(--cyan); }

.stat-value {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.stat-arrow {
  position: absolute;
  top: 22px;
  right: 18px;
  color: var(--muted);
  opacity: 0.4;
  font-size: 14px;
  transition: all 0.15s;
}
.stat-card:hover .stat-arrow {
  opacity: 1;
  color: var(--cloak-primary);
  transform: translateX(2px);
}

/* ============================================
   ALIAS CARD (existante)
   ============================================ */
.alias-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  transition: all 0.15s;
  cursor: pointer;
  position: relative;
}
.alias-card:hover {
  border-color: var(--cloak-primary-light);
  box-shadow: var(--shadow-md);
}
.alias-card.spam { border-color: #fcd34d; background: #fffef0; }
.alias-card.blocked { opacity: 0.6; }

.alias-site-name { font-weight: 700; font-size: 14px; color: var(--dark); }
.alias-address {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.alias-meta { font-size: 10px; color: var(--muted); }

/* ============================================
   ALIAS CARD COMPLÈTE (3-en-1 pour le beta)
   Email + Mot de passe + Numéro virtuel
   ============================================ */
.alias-full-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.alias-full-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.alias-full-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--cloak-primary), var(--cloak-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}
.alias-full-site {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}
.alias-full-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.credential-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: all 0.15s;
}
.credential-row:hover {
  background: var(--indigo-bg);
}
.credential-row:last-child { margin-bottom: 0; }

.credential-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.credential-content {
  flex: 1;
  min-width: 0;
}
.credential-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.credential-value {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--dark);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.credential-value.masked {
  letter-spacing: 2px;
}

.credential-copy {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cloak-primary);
  cursor: pointer;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s;
}
.credential-copy:hover {
  background: var(--cloak-primary);
  color: white;
  border-color: var(--cloak-primary);
}
.credential-copy.copied {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}
.badge-active  { background: var(--green-bg); color: var(--green); }
.badge-spam    { background: var(--amber-bg); color: var(--amber); }
.badge-silent  { background: #f8fafc; color: var(--muted); }
.badge-blocked { background: var(--red-bg); color: var(--red); }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ============================================
   BOUTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cloak-primary), var(--cloak-primary-light));
  color: var(--white);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108,92,255,0.35);
}
.btn-danger {
  background: linear-gradient(135deg, var(--red), #dc2626);
  color: var(--white);
}
.btn-ghost {
  background: var(--white);
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--cloak-primary-light);
  color: var(--cloak-primary);
}
.btn-sm {
  padding: 7px 12px;
  font-size: 11px;
  border-radius: var(--radius-sm);
}

/* Bouton qui devient icône-only en mobile */
.btn-icon-mobile .btn-text { display: inline; }
.btn-icon-mobile .btn-icon { display: none; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  font-size: 13px;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  background: #f8fafc;
  transition: all 0.15s;
}
.form-input:focus {
  border-color: var(--cloak-primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(108,92,255,0.1);
}
.form-error { font-size: 11px; color: var(--red); margin-top: 5px; }

/* ============================================
   TOGGLE
   ============================================ */
.toggle {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  border: none;
  flex-shrink: 0;
}
.toggle.on { background: var(--cloak-primary); }
.toggle.off { background: var(--border); }
.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: left 0.2s;
}
.toggle.on::after { left: 21px; }
.toggle.off::after { left: 3px; }

/* ============================================
   NUMÉRO VIRTUEL CARD
   ============================================ */
.number-card {
  background: linear-gradient(135deg, var(--cloak-bg-dark), var(--cloak-surface-dark));
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.number-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(108,92,255,0.3), transparent 70%);
  pointer-events: none;
}
.number-label {
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
  position: relative;
}
.number-value {
  font-family: 'DM Mono', monospace;
  font-size: 26px;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
}
.number-chips {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
  position: relative;
}
.number-chip {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background 0.15s;
}
.number-chip:hover { background: rgba(255,255,255,0.18); }

.copy-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.copy-btn:hover { background: rgba(255,255,255,0.25); }

/* ============================================
   ALERT BANNER
   ============================================ */
.alert-banner {
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: slideDown 0.3s ease;
}
.alert-banner.danger { background: var(--amber-bg); border: 1.5px solid #fcd34d; }
.alert-banner.success { background: var(--green-bg); border: 1.5px solid #86efac; }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,15,26,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.modal-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.6;
}

/* ============================================
   EMAIL ROW
   ============================================ */
.email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1.5px solid var(--border);
  transition: border-color 0.15s;
}
.email-row:hover { border-color: var(--cloak-primary-light); }
.email-row.unread { background: #fafbff; }
.email-row.danger { border-color: #fecaca; background: #fff8f8; }

.email-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.email-subject {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.email-from {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.email-time { font-size: 9px; color: #cbd5e1; flex-shrink: 0; }

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

/* ============================================
   GRIDS
   ============================================ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.alias-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

/* Layout 2 colonnes dashboard (numero + alias) */
.dashboard-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.fade-in { animation: fadeIn 0.3s ease; }
.loading { animation: spin 0.8s linear infinite; display: inline-block; }

/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  /* RADICAL : Empêcher TOUT débordement horizontal sur mobile */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  .app-layout {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Sidebar mobile */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
    width: 260px;
  }
  .sidebar.open { transform: translateX(0); }

  /* Main content : pleine largeur strictement */
  .main-content {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Topbar plus compacte */
  .topbar {
    padding: 12px 16px;
    gap: 8px;
    max-width: 100vw;
    overflow: hidden;
  }
  .topbar-title {
    font-size: 17px;
    font-weight: 700;
  }

  /* Page content moins de padding + contraint */
  .page-content {
    padding: 16px;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* Toutes les cartes : pleine largeur sans déborder */
  .card {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Force le 2col à devenir 1col sur mobile */
  .dashboard-row-2col {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Bouton icône-only */
  .btn-icon-mobile {
    padding: 10px 12px;
    min-width: 44px;
    min-height: 44px;
  }
  .btn-icon-mobile .btn-text { display: none; } .btn-icon-mobile::after { content: " Créer; font-weight: 700; }
  .btn-icon-mobile .btn-icon { display: inline; font-size: 16px; }

  /* Grids : 2 colonnes en mobile */
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dashboard-row-2col { grid-template-columns: 1fr; }
  .alias-grid { grid-template-columns: 1fr; }

  /* Stat cards plus compactes en mobile */
  .stat-card { padding: 16px 14px; }
  .stat-icon { width: 36px; height: 36px; font-size: 16px; margin-bottom: 10px; }
  .stat-value { font-size: 26px; }
  .stat-label { font-size: 11px; }

  /* Numero card */
  .number-value { font-size: 22px; }

  /* Modal pleine largeur */
  .modal { padding: 20px; border-radius: var(--radius-lg); }
  .modal-title { font-size: 18px; }

  /* Section title plus compact */
  .section-title { font-size: 16px; }

  /* Alert banner empilé */
  .alert-banner {
    flex-wrap: wrap;
    padding: 12px 14px;
  }
  .alert-banner > .btn { width: 100%; margin-top: 8px; }
}

/* ============================================
   RESPONSIVE — VERY SMALL (≤ 380px)
   ============================================ */
@media (max-width: 380px) {
  .topbar-title { font-size: 16px; }
  .stat-value { font-size: 22px; }
  .number-value { font-size: 19px; letter-spacing: 0; }
}

/* ============================================
   UTILITAIRES
   ============================================ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 10px; }
.font-mono { font-family: 'DM Mono', monospace; }
.font-display { font-family: 'Syne', sans-serif; }
.font-bold { font-weight: 700; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.cursor-pointer { cursor: pointer; }
.sidebar-logo { padding: 18px 16px 14px; }
.sidebar-logo-img {
  display: block;
  width: auto;
  max-width: 160px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}

/* Fix modal hidden - force le contenu à se cacher avec le parent */
.modal-overlay.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.modal-overlay.hidden .modal {
  display: none !important;
}
/* Fix logo sidebar desktop */
.sidebar-logo {
  height: 96px !important;
  padding: 18px 16px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}

.sidebar-logo-img {
  width: 160px !important;
  max-width: 160px !important;
  height: auto !important;
  max-height: 56px !important;
  object-fit: contain !important;
}
/* Fix longues adresses dans les cartes */
.alias-card,
.stat-card,
.number-card {
  min-width: 0;
}

.alias-card .font-mono,
.alias-card [class*="email"],
.alias-card a,
.alias-card span {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
