:root {
  --bg-dark: #0a0a0c;
  --bg-card: rgba(20, 20, 26, 0.75);
  --bg-sidebar: #0f0f13;
  --accent-red: #e50914;
  --accent-red-hover: #b80710;
  --text-main: #f5f5f7;
  --text-muted: #8e8e93;
  --border-color: rgba(255, 255, 255, 0.08);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* Glassmorphism Card Design */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(229, 9, 20, 0.3);
}

/* Red Accent Components */
.text-red {
  color: var(--accent-red) !important;
}

.btn-red {
  background-color: var(--accent-red);
  color: #ffffff;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  transition: all 0.2s ease;
}

.btn-red:hover {
  background-color: var(--accent-red-hover);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

/* Layout Structure */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
}

.sidebar-brand {
  padding: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-menu {
  padding: 1rem 0;
  list-style: none;
  margin: 0;
}

.sidebar-menu .nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-menu .nav-link i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
  color: var(--accent-red);
  background: rgba(229, 9, 20, 0.08);
  border-left: 3px solid var(--accent-red);
}

/* Content Area */
.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 2rem;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }

/* =========================================================
   DG DIFFUSION WEB — PREMIUM UI SYSTEM v1
   Accueil + inscription
   ========================================================= */

body.dgw-premium {
  --dgw-bg: #07090e;
  --dgw-surface: rgba(16, 20, 29, 0.88);
  --dgw-surface-2: rgba(22, 27, 39, 0.92);
  --dgw-border: rgba(255, 255, 255, 0.09);
  --dgw-border-hover: rgba(239, 68, 68, 0.38);
  --dgw-text: #f8fafc;
  --dgw-muted: #94a3b8;
  --dgw-red: #ef4444;
  --dgw-red-dark: #b91c1c;
  --dgw-green: #22c55e;

  background:
    radial-gradient(circle at 15% 10%, rgba(239, 68, 68, 0.10), transparent 28%),
    radial-gradient(circle at 85% 90%, rgba(239, 68, 68, 0.07), transparent 30%),
    linear-gradient(145deg, #030408 0%, #080b12 48%, #05070c 100%);
  color: var(--dgw-text);
}

/* Halo discret */
body.dgw-premium::before,
body.dgw-premium::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
}

body.dgw-premium::before {
  width: 280px;
  height: 280px;
  top: -130px;
  left: -100px;
  background: rgba(239, 68, 68, 0.08);
}

body.dgw-premium::after {
  width: 320px;
  height: 320px;
  right: -140px;
  bottom: -160px;
  background: rgba(239, 68, 68, 0.055);
}

/* Carte principale */
body.dgw-premium .glass-card {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(
      145deg,
      rgba(15, 19, 29, 0.96) 0%,
      rgba(11, 14, 22, 0.96) 100%
    );
  border: 1px solid var(--dgw-border);
  border-radius: 28px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

body.dgw-premium .glass-card:hover {
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Marque */
body.dgw-premium .glass-card h4 {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

body.dgw-premium .glass-card h4::before {
  content: "DG";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  vertical-align: -10px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ef4444, #991b1b);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 8px 25px rgba(239, 68, 68, .22);
}

/* Sous-titres */
body.dgw-premium .glass-card > .text-center p {
  color: #9aa7b8 !important;
  font-size: .84rem;
}

/* Labels */
body.dgw-premium label.form-label {
  color: #e5e7eb !important;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
  margin-bottom: 8px;
}

/* Champs */
body.dgw-premium .form-control-pro,
body.dgw-premium .form-select-pro {
  min-height: 52px;
  background: rgba(7, 11, 18, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 14px;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    transform .2s ease;
}

body.dgw-premium .form-control-pro::placeholder {
  color: #64748b !important;
}

body.dgw-premium .form-control-pro:hover,
body.dgw-premium .form-select-pro:hover {
  background: rgba(10, 15, 24, .95) !important;
  border-color: rgba(255,255,255,.15) !important;
}

body.dgw-premium .form-control-pro:focus,
body.dgw-premium .form-select-pro:focus {
  background: rgba(10, 15, 24, .98) !important;
  border-color: rgba(239, 68, 68, .62) !important;
  box-shadow:
    0 0 0 4px rgba(239, 68, 68, .10),
    0 8px 25px rgba(0, 0, 0, .18);
  outline: none;
}

/* Groupe téléphone */
body.dgw-premium .input-group-text {
  min-width: 68px;
  justify-content: center;
  background: rgba(255,255,255,.035) !important;
  border-color: rgba(255,255,255,.10) !important;
  color: #f8fafc !important;
  border-radius: 14px 0 0 14px;
}

body.dgw-premium .input-group .form-control-pro {
  border-radius: 0 14px 14px 0;
}

/* Boutons principaux */
body.dgw-premium .btn-login,
body.dgw-premium .btn-register {
  min-height: 54px;
  background: linear-gradient(135deg, #ef4444 0%, #c51f2a 52%, #991b1b 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(185, 28, 28, .20);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

body.dgw-premium .btn-login:hover,
body.dgw-premium .btn-register:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(185, 28, 28, .30);
  filter: brightness(1.04);
}

body.dgw-premium .btn-login:active,
body.dgw-premium .btn-register:active {
  transform: translateY(0);
}

/* Bloc WhatsApp */
body.dgw-premium .btn-channel {
  border-radius: 14px;
  padding: 13px 14px;
  background: linear-gradient(
    135deg,
    rgba(37, 211, 102, .12),
    rgba(37, 211, 102, .05)
  );
  border: 1px solid rgba(37, 211, 102, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

body.dgw-premium .btn-channel:hover {
  color: #25d366;
  background: rgba(37, 211, 102, .16);
  border-color: rgba(37, 211, 102, .52);
  transform: translateY(-1px);
}

/* Bloc information / consentement */
body.dgw-premium .bg-dark.bg-opacity-50 {
  background: rgba(255,255,255,.025) !important;
}

body.dgw-premium .border-secondary {
  border-color: rgba(255,255,255,.08) !important;
}

/* Checkboxes */
body.dgw-premium .form-check-input {
  background-color: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}

body.dgw-premium .form-check-input:checked {
  background-color: var(--dgw-red);
  border-color: var(--dgw-red);
}

/* Texte secondaire */
body.dgw-premium small,
body.dgw-premium .text-muted {
  color: #8f9bae !important;
}

/* Liens */
body.dgw-premium a {
  transition: color .18s ease, opacity .18s ease;
}

body.dgw-premium .glass-card a:not(.btn-channel) {
  color: #f87171 !important;
}

body.dgw-premium .glass-card a:not(.btn-channel):hover {
  color: #fca5a5 !important;
}

/* Alertes */
body.dgw-premium .alert {
  background: rgba(239,68,68,.08) !important;
  border-color: rgba(239,68,68,.24) !important;
  color: #fecaca !important;
}

/* Animation d'arrivée */
body.dgw-premium .glass-card {
  animation: dgw-card-in .55s cubic-bezier(.2,.75,.25,1);
}

@keyframes dgw-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile */
@media (max-width: 576px) {
  body.dgw-premium {
    padding: 14px 0 !important;
  }

  body.dgw-premium .glass-card {
    width: calc(100% - 20px);
    padding: 26px 19px !important;
    border-radius: 22px;
  }

  body.dgw-premium .glass-card h4 {
    font-size: 1.05rem;
  }

  body.dgw-premium .form-control-pro,
  body.dgw-premium .form-select-pro {
    min-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dgw-premium .glass-card {
    animation: none;
    transition: none;
  }
}


/* =========================================================
   DG DIFFUSION WEB — REGISTER UI v2.1
   Finitions premium
   ========================================================= */

body.dgw-register-page input::placeholder,
body.dgw-register-page textarea::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

body.dgw-register-page select {
    color: #f8fafc !important;
}

body.dgw-register-page select option {
    background: #0d1322 !important;
    color: #f8fafc !important;
}

/* Autofill navigateur : conserver l'identité visuelle */
body.dgw-register-page input:-webkit-autofill,
body.dgw-register-page input:-webkit-autofill:hover,
body.dgw-register-page input:-webkit-autofill:focus,
body.dgw-register-page input:-webkit-autofill:active {
    -webkit-text-fill-color: #f8fafc !important;
    -webkit-box-shadow: 0 0 0 1000px #0b111d inset !important;
    box-shadow: 0 0 0 1000px #0b111d inset !important;
    transition: background-color 9999s ease-out 0s;
}

/* Les champs restent élégants même avec une valeur remplie */
body.dgw-register-page .form-control-pro:not(:placeholder-shown),
body.dgw-register-page .form-select-pro:valid {
    border-color: rgba(255,255,255,.13) !important;
}

/* Bloc WhatsApp encore plus propre */
body.dgw-register-page .btn-channel {
    position: relative;
    overflow: hidden;
}

body.dgw-register-page .btn-channel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(255,255,255,.07) 50%,
        transparent 80%
    );
    transform: translateX(-120%);
    transition: transform .7s ease;
}

body.dgw-register-page .btn-channel:hover::after {
    transform: translateX(120%);
}

/* Checkbox */
body.dgw-register-page .form-check-input {
    width: 17px;
    height: 17px;
    margin-top: .18rem;
    cursor: pointer;
}

body.dgw-register-page .form-check-label {
    cursor: pointer;
    color: #b8c2d1 !important;
}

/* Bouton principal désactivé */
body.dgw-register-page .btn-register:disabled {
    background: linear-gradient(
        135deg,
        #7f2630,
        #5d1e25
    ) !important;
    color: rgba(255,255,255,.55) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Bouton actif */
body.dgw-register-page .btn-register:not(:disabled) {
    cursor: pointer;
}

/* Zone connexion */
body.dgw-register-page form > p.text-center {
    padding-top: 3px;
    font-size: .78rem !important;
}

body.dgw-register-page form > p.text-center a {
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-left: 3px;
}

/* Texte légal */
body.dgw-register-page .glass-card > p.text-center.mt-3 {
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,.055);
}

/* Espacement plus humain */
body.dgw-register-page form > .mb-3 {
    position: relative;
}

/* Focus plus fin */
body.dgw-register-page .form-control-pro:focus,
body.dgw-register-page .form-select-pro:focus {
    transform: translateY(-1px);
}

/* Petit effet de profondeur */
body.dgw-register-page .glass-card {
    box-shadow:
        0 35px 90px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.015),
        inset 0 1px 0 rgba(255,255,255,.035);
}


/* =========================================================
   DG DIFFUSION WEB — AUTH UI v2
   Connexion premium
   ========================================================= */

body.dgw-auth-page {
    background:
        radial-gradient(circle at 18% 12%, rgba(239,68,68,.09), transparent 28%),
        radial-gradient(circle at 82% 88%, rgba(239,68,68,.055), transparent 30%),
        linear-gradient(145deg, #030408 0%, #080b12 50%, #04060b 100%) !important;
}

/* Carte connexion */
body.dgw-auth-page .glass-card {
    position: relative;
    width: min(100%, 500px) !important;
    max-width: 500px !important;
    padding: 46px 42px !important;
    border-radius: 30px !important;
    background:
        linear-gradient(
            145deg,
            rgba(15,19,29,.97),
            rgba(10,14,23,.97)
        ) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    box-shadow:
        0 35px 100px rgba(0,0,0,.58),
        inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

/* Badge */
body.dgw-auth-page .glass-card::before {
    content: "ESPACE MEMBRE";
    display: block;
    width: max-content;
    margin: -4px auto 20px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(239,68,68,.24);
    background: rgba(239,68,68,.07);
    color: #f87171;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .17em;
}

/* En-tête */
body.dgw-auth-page .glass-card > .text-center {
    margin-bottom: 30px !important;
}

body.dgw-auth-page .glass-card > .text-center h4 {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    letter-spacing: -.025em;
    margin-bottom: 9px !important;
}

body.dgw-auth-page .glass-card > .text-center h4::before {
    content: "DG";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    margin-right: 11px;
    vertical-align: -11px;
    border-radius: 12px;
    background: linear-gradient(145deg,#ef4444,#991b1b);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow: 0 9px 28px rgba(239,68,68,.22);
}

body.dgw-auth-page .glass-card > .text-center p {
    color: #94a3b8 !important;
    font-size: .88rem !important;
}

/* Labels */
body.dgw-auth-page .form-label {
    color: #e5e7eb !important;
    font-size: .8rem !important;
    font-weight: 700 !important;
    margin-bottom: 9px !important;
}

/* Groupes de champs */
body.dgw-auth-page .input-group {
    margin-bottom: 23px;
}

body.dgw-auth-page .input-group-text {
    min-width: 52px;
    justify-content: center;
    background: rgba(255,255,255,.035) !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    color: #f8fafc !important;
    font-size: 1rem;
}

body.dgw-auth-page .form-control {
    min-height: 55px;
    background: rgba(8,12,20,.84) !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    color: #f8fafc !important;
    border-radius: 0 15px 15px 0 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.dgw-auth-page .input-group-text {
    border-radius: 15px 0 0 15px !important;
}

body.dgw-auth-page .form-control::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

body.dgw-auth-page .form-control:hover {
    border-color: rgba(255,255,255,.16) !important;
}

body.dgw-auth-page .form-control:focus {
    border-color: rgba(239,68,68,.62) !important;
    box-shadow:
        0 0 0 4px rgba(239,68,68,.10),
        0 10px 28px rgba(0,0,0,.18) !important;
    transform: translateY(-1px);
    outline: none;
}

/* Autofill */
body.dgw-auth-page input:-webkit-autofill,
body.dgw-auth-page input:-webkit-autofill:hover,
body.dgw-auth-page input:-webkit-autofill:focus,
body.dgw-auth-page input:-webkit-autofill:active {
    -webkit-text-fill-color: #f8fafc !important;
    -webkit-box-shadow: 0 0 0 1000px #0b111d inset !important;
    box-shadow: 0 0 0 1000px #0b111d inset !important;
}

/* Bouton principal */
body.dgw-auth-page .btn-login {
    min-height: 57px;
    border-radius: 16px !important;
    font-size: .95rem;
    font-weight: 800;
    background: linear-gradient(135deg,#ef4444 0%,#cf1f2a 52%,#991b1b 100%) !important;
    box-shadow: 0 13px 32px rgba(185,28,28,.23);
    border: 1px solid rgba(255,255,255,.08);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

body.dgw-auth-page .btn-login:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 17px 38px rgba(185,28,28,.31);
}

body.dgw-auth-page .btn-login:active {
    transform: translateY(0);
}

/* Liens */
body.dgw-auth-page a {
    transition: color .18s ease, opacity .18s ease;
}

body.dgw-auth-page .glass-card a {
    color: #f87171 !important;
    text-decoration: none;
    font-weight: 700;
}

body.dgw-auth-page .glass-card a:hover {
    color: #fca5a5 !important;
}

/* Séparateurs */
body.dgw-auth-page hr {
    border-color: rgba(255,255,255,.07) !important;
    opacity: 1;
    margin: 25px 0;
}

/* Texte secondaire */
body.dgw-auth-page .text-muted,
body.dgw-auth-page small {
    color: #8f9bae !important;
}

/* Carte entrée */
body.dgw-auth-page .glass-card {
    animation: dgw-auth-in .55s cubic-bezier(.2,.75,.25,1);
}

@keyframes dgw-auth-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile */
@media (max-width: 576px) {
    body.dgw-auth-page {
        padding: 16px 10px !important;
    }

    body.dgw-auth-page .glass-card {
        width: 100% !important;
        padding: 31px 19px !important;
        border-radius: 24px !important;
    }

    body.dgw-auth-page .glass-card > .text-center h4 {
        font-size: 1.22rem !important;
    }

    body.dgw-auth-page .glass-card > .text-center h4::before {
        width: 38px;
        height: 38px;
        vertical-align: -10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.dgw-auth-page .glass-card {
        animation: none;
    }
}


/* =========================================================
   DG DIFFUSION WEB — DASHBOARD UI v2
   ========================================================= */

body.dgw-dashboard {
    background:
        radial-gradient(circle at 20% 0%, rgba(239,68,68,.055), transparent 25%),
        radial-gradient(circle at 90% 100%, rgba(239,68,68,.035), transparent 28%),
        #060913 !important;
    color: #f8fafc !important;
}

/* ---------- SIDEBAR ---------- */

body.dgw-dashboard .sidebar {
    width: 278px !important;
    background:
        linear-gradient(180deg, #0a0e17 0%, #080c14 100%) !important;
    border-right: 1px solid rgba(255,255,255,.07) !important;
    box-shadow: 12px 0 40px rgba(0,0,0,.14);
    padding: 24px 16px !important;
}

body.dgw-dashboard .sidebar::before {
    content: "DG";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 2px auto 13px;
    border-radius: 12px;
    background: linear-gradient(145deg,#ef4444,#991b1b);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;
    box-shadow: 0 10px 28px rgba(239,68,68,.20);
}

body.dgw-dashboard .sidebar .fw-bold,
body.dgw-dashboard .sidebar h4,
body.dgw-dashboard .sidebar h5 {
    color: #fff !important;
    letter-spacing: -.02em;
}

/* Navigation */
body.dgw-dashboard .sidebar .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 14px !important;
    margin-bottom: 6px !important;
    border: 1px solid transparent;
    border-radius: 13px !important;
    color: #8f9bad !important;
    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

body.dgw-dashboard .sidebar .nav-link i {
    width: 20px;
    margin-right: 11px;
    text-align: center;
    font-size: .93rem;
}

body.dgw-dashboard .sidebar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,.045) !important;
    border-color: rgba(255,255,255,.065);
    transform: translateX(2px);
}

body.dgw-dashboard .sidebar .nav-link.active {
    color: #fff !important;
    background: linear-gradient(
        135deg,
        rgba(239,68,68,.95),
        rgba(153,27,27,.95)
    ) !important;
    border-color: rgba(255,255,255,.09);
    box-shadow: 0 9px 24px rgba(185,28,28,.18);
}

/* ---------- ZONE PRINCIPALE ---------- */

body.dgw-dashboard .main-wrapper {
    margin-left: 278px !important;
    padding: 34px !important;
}

body.dgw-dashboard header {
    margin-bottom: 26px !important;
}

body.dgw-dashboard header h1,
body.dgw-dashboard header h2,
body.dgw-dashboard header h3,
body.dgw-dashboard header h4 {
    font-weight: 800 !important;
    letter-spacing: -.035em;
}

body.dgw-dashboard header p,
body.dgw-dashboard .text-muted {
    color: #8f9bad !important;
}

/* ---------- CARTES ---------- */

body.dgw-dashboard .pro-card {
    position: relative;
    background:
        linear-gradient(
            145deg,
            rgba(15,21,34,.96),
            rgba(10,15,25,.96)
        ) !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.025);
    transition:
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

body.dgw-dashboard .pro-card:hover {
    border-color: rgba(255,255,255,.11) !important;
    box-shadow:
        0 25px 58px rgba(0,0,0,.23),
        inset 0 1px 0 rgba(255,255,255,.03);
}

/* ---------- BOUTONS ---------- */

body.dgw-dashboard .btn-danger,
body.dgw-dashboard .btn-primary {
    border-radius: 12px !important;
    font-weight: 700 !important;
}

body.dgw-dashboard .btn-danger {
    background: linear-gradient(135deg,#ef4444,#b91c1c) !important;
    border-color: rgba(255,255,255,.08) !important;
}

body.dgw-dashboard .btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(185,28,28,.22);
}

/* ---------- FORMULAIRES ---------- */

body.dgw-dashboard .form-control,
body.dgw-dashboard .form-select,
body.dgw-dashboard textarea,
body.dgw-dashboard input[type="text"],
body.dgw-dashboard input[type="email"],
body.dgw-dashboard input[type="password"],
body.dgw-dashboard input[type="number"],
body.dgw-dashboard input[type="tel"] {
    min-height: 48px;
    background: #0c1320 !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 12px !important;
    color: #f8fafc !important;
}

body.dgw-dashboard .form-control:focus,
body.dgw-dashboard .form-select:focus,
body.dgw-dashboard textarea:focus {
    border-color: rgba(239,68,68,.55) !important;
    box-shadow: 0 0 0 4px rgba(239,68,68,.08) !important;
}

/* ---------- CHAT ---------- */

body.dgw-dashboard .public-chat-card {
    background:
        linear-gradient(
            145deg,
            rgba(14,20,32,.98),
            rgba(9,14,23,.98)
        ) !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,.16);
}

body.dgw-dashboard .public-chat-messages {
    height: 380px !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(239,68,68,.025), transparent 30%),
        #07101c !important;
    border: 1px solid rgba(255,255,255,.055) !important;
    border-radius: 14px !important;
    scrollbar-width: thin;
}

body.dgw-dashboard .public-chat-bubble {
    background: #111b2a !important;
    border: 1px solid rgba(255,255,255,.055) !important;
    border-radius: 15px !important;
}

body.dgw-dashboard .public-chat-row.me .public-chat-bubble {
    background: linear-gradient(135deg,#ef4444,#b91c1c) !important;
}

body.dgw-dashboard .public-chat-actions button {
    border-radius: 10px !important;
}

/* ---------- TABLEAUX ---------- */

body.dgw-dashboard .table {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255,255,255,.07);
}

body.dgw-dashboard .table thead th {
    color: #94a3b8 !important;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    border-bottom-color: rgba(255,255,255,.08) !important;
}

body.dgw-dashboard .table tbody td {
    border-bottom-color: rgba(255,255,255,.055) !important;
}

/* ---------- MOBILE ---------- */

@media (max-width: 991px) {
    body.dgw-dashboard .main-wrapper {
        margin-left: 0 !important;
        padding: 18px !important;
        padding-top: 72px !important;
    }

    body.dgw-dashboard .sidebar {
        width: 285px !important;
        left: -310px !important;
        transition: left .25s ease !important;
    }

    body.dgw-dashboard .sidebar.open {
        left: 0 !important;
    }

    body.dgw-dashboard .menu-toggle {
        width: 46px !important;
        height: 46px !important;
        border-radius: 13px !important;
        background: linear-gradient(135deg,#ef4444,#b91c1c) !important;
        box-shadow: 0 10px 25px rgba(185,28,28,.23) !important;
    }

    body.dgw-dashboard .pro-card {
        padding: 19px !important;
        border-radius: 17px !important;
    }
}

@media (max-width: 575px) {
    body.dgw-dashboard .main-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.dgw-dashboard .public-chat-messages {
        height: 320px !important;
    }

    body.dgw-dashboard .pro-card {
        padding: 17px !important;
    }
}


/* =========================================================
   DG DIFFUSION WEB — RETRAIT UI v2
   ========================================================= */

body.dgw-retrait {
    background:
        radial-gradient(circle at 15% 0%, rgba(239,68,68,.055), transparent 24%),
        radial-gradient(circle at 90% 100%, rgba(239,68,68,.035), transparent 28%),
        #060913 !important;
    color: #f8fafc !important;
}

/* Sidebar */
body.dgw-retrait .sidebar {
    width: 278px !important;
    background: linear-gradient(180deg,#0a0e17 0%,#080c14 100%) !important;
    border-right: 1px solid rgba(255,255,255,.07) !important;
    box-shadow: 12px 0 40px rgba(0,0,0,.14);
}

body.dgw-retrait .sidebar .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 13px !important;
    color: #8f9bad !important;
    transition: .18s ease;
}

body.dgw-retrait .sidebar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,.045) !important;
    transform: translateX(2px);
}

body.dgw-retrait .sidebar .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg,#ef4444,#991b1b) !important;
    box-shadow: 0 9px 24px rgba(185,28,28,.18);
}

/* Zone principale */
body.dgw-retrait .main-wrapper {
    margin-left: 278px !important;
    padding: 34px !important;
}

/* Cartes */
body.dgw-retrait .pro-card {
    background:
        linear-gradient(145deg,rgba(15,21,34,.97),rgba(10,15,25,.97)) !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 20px !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.025);
}

/* Solde */
body.dgw-retrait .pro-card h2 {
    font-weight: 800 !important;
    letter-spacing: -.035em;
}

/* Champs */
body.dgw-retrait .form-control-pro,
body.dgw-retrait .form-select-pro {
    min-height: 52px !important;
    background: #0c1320 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 13px !important;
}

body.dgw-retrait .form-control-pro::placeholder {
    color: #64748b !important;
}

body.dgw-retrait .form-control-pro:focus,
body.dgw-retrait .form-select-pro:focus {
    border-color: rgba(239,68,68,.55) !important;
    box-shadow: 0 0 0 4px rgba(239,68,68,.08) !important;
}

/* Bouton */
body.dgw-retrait button[type="submit"] {
    min-height: 53px;
    border-radius: 14px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg,#ef4444,#b91c1c) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 12px 28px rgba(185,28,28,.18);
}

/* Tableau */
body.dgw-retrait .table-custom {
    margin-bottom: 0;
}

body.dgw-retrait .table-custom thead th {
    color: #94a3b8 !important;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-bottom-color: rgba(255,255,255,.08) !important;
}

body.dgw-retrait .table-custom tbody tr {
    transition: background .18s ease;
}

body.dgw-retrait .table-custom tbody tr:hover {
    background: rgba(255,255,255,.025);
}

body.dgw-retrait .table-custom td {
    color: #dbe2ea !important;
    border-bottom-color: rgba(255,255,255,.055) !important;
}

/* Message de service désactivé */
body.dgw-retrait .pro-card.text-center {
    border-color: rgba(239,68,68,.14) !important;
    background:
        radial-gradient(circle at 50% 0%,rgba(239,68,68,.06),transparent 45%),
        linear-gradient(145deg,rgba(15,21,34,.97),rgba(10,15,25,.97)) !important;
}

/* Mobile */
@media (max-width: 991px) {
    body.dgw-retrait .main-wrapper {
        margin-left: 0 !important;
        padding: 18px !important;
        padding-top: 72px !important;
    }

    body.dgw-retrait .sidebar {
        width: 285px !important;
        left: -310px !important;
        transition: left .25s ease !important;
    }

    body.dgw-retrait .sidebar.open {
        left: 0 !important;
    }
}

@media (max-width: 575px) {
    body.dgw-retrait .main-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.dgw-retrait .pro-card {
        padding: 18px !important;
        border-radius: 17px !important;
    }
}


/* =========================================================
   DG DIFFUSION WEB — PROFIL UI v2
   ========================================================= */

body.dgw-profile {
    background:
        radial-gradient(circle at 15% 0%, rgba(239,68,68,.055), transparent 25%),
        radial-gradient(circle at 90% 100%, rgba(239,68,68,.035), transparent 28%),
        #060913 !important;
    color: #f8fafc !important;
}

/* Sidebar */
body.dgw-profile .sidebar {
    width: 278px !important;
    background: linear-gradient(180deg,#0a0e17 0%,#080c14 100%) !important;
    border-right: 1px solid rgba(255,255,255,.07) !important;
    box-shadow: 12px 0 40px rgba(0,0,0,.14);
}

body.dgw-profile .sidebar .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 13px !important;
    color: #8f9bad !important;
    transition: .18s ease;
}

body.dgw-profile .sidebar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,.045) !important;
    transform: translateX(2px);
}

body.dgw-profile .sidebar .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg,#ef4444,#991b1b) !important;
    box-shadow: 0 9px 24px rgba(185,28,28,.18);
}

/* Zone principale */
body.dgw-profile .main-wrapper {
    margin-left: 278px !important;
    padding: 34px !important;
}

body.dgw-profile .main-wrapper > header h2,
body.dgw-profile .main-wrapper > header h3,
body.dgw-profile .main-wrapper > header h4 {
    font-weight: 800 !important;
    letter-spacing: -.035em;
}

body.dgw-profile .main-wrapper > header p {
    color: #8f9bad !important;
}

/* Cartes */
body.dgw-profile .pro-card {
    background:
        linear-gradient(145deg,rgba(15,21,34,.97),rgba(10,15,25,.97)) !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 20px !important;
    box-shadow:
        0 20px 50px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.025);
}

/* Carte membre */
body.dgw-profile .member-card {
    border-radius: 22px !important;
    padding: 28px !important;
    box-shadow:
        0 22px 55px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.13) !important;
}

/* Champs */
body.dgw-profile .form-control-pro,
body.dgw-profile .form-select-pro {
    min-height: 52px !important;
    background: #0c1320 !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 13px !important;
    color: #f8fafc !important;
}

body.dgw-profile .form-control-pro::placeholder {
    color: #64748b !important;
}

body.dgw-profile .form-control-pro:focus,
body.dgw-profile .form-select-pro:focus {
    border-color: rgba(239,68,68,.55) !important;
    box-shadow: 0 0 0 4px rgba(239,68,68,.08) !important;
}

/* Boutons */
body.dgw-profile .btn-update,
body.dgw-profile .btn-danger {
    min-height: 51px;
    border-radius: 13px !important;
    background: linear-gradient(135deg,#ef4444,#b91c1c) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    font-weight: 800 !important;
    box-shadow: 0 11px 26px rgba(185,28,28,.16);
}

body.dgw-profile .btn-update:hover,
body.dgw-profile .btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 32px rgba(185,28,28,.24);
}

/* Titres de sections */
body.dgw-profile .pro-card h5,
body.dgw-profile .pro-card h6 {
    font-weight: 800 !important;
    letter-spacing: -.02em;
}

/* Alertes */
body.dgw-profile .alert {
    border-radius: 14px !important;
    border-color: rgba(255,255,255,.08) !important;
}

/* Mobile */
@media (max-width: 991px) {
    body.dgw-profile .main-wrapper {
        margin-left: 0 !important;
        padding: 18px !important;
        padding-top: 72px !important;
    }

    body.dgw-profile .sidebar {
        width: 285px !important;
        left: -310px !important;
        transition: left .25s ease !important;
    }

    body.dgw-profile .sidebar.open {
        left: 0 !important;
    }
}

@media (max-width: 575px) {
    body.dgw-profile .main-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.dgw-profile .pro-card,
    body.dgw-profile .member-card {
        padding: 18px !important;
        border-radius: 17px !important;
    }
}


/* =========================================================
   DG DIFFUSION WEB — MOTION SYSTEM v1
   Interface vivante / premium
   ========================================================= */

/* Fond animé */
.dgw-motion-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.dgw-motion-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .18;
    will-change: transform;
}

.dgw-motion-orb.one {
    width: 280px;
    height: 280px;
    top: -120px;
    left: -80px;
    background: rgba(239,68,68,.40);
    animation: dgw-orb-one 12s ease-in-out infinite alternate;
}

.dgw-motion-orb.two {
    width: 340px;
    height: 340px;
    right: -150px;
    bottom: -160px;
    background: rgba(153,27,27,.28);
    animation: dgw-orb-two 15s ease-in-out infinite alternate;
}

.dgw-motion-orb.three {
    width: 180px;
    height: 180px;
    top: 46%;
    left: 52%;
    background: rgba(239,68,68,.10);
    animation: dgw-orb-three 10s ease-in-out infinite alternate;
}

@keyframes dgw-orb-one {
    from { transform: translate3d(0,0,0) scale(1); }
    to   { transform: translate3d(60px,45px,0) scale(1.12); }
}

@keyframes dgw-orb-two {
    from { transform: translate3d(0,0,0) scale(1); }
    to   { transform: translate3d(-55px,-35px,0) scale(1.10); }
}

@keyframes dgw-orb-three {
    from { transform: translate3d(-15px,12px,0) scale(.85); opacity:.10; }
    to   { transform: translate3d(18px,-15px,0) scale(1.15); opacity:.20; }
}

/* Le contenu reste au-dessus du fond */
body.dgw-motion > *:not(.dgw-motion-bg) {
    position: relative;
    z-index: 1;
}

/* Apparition des éléments */
.dgw-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .65s cubic-bezier(.2,.75,.25,1),
        transform .65s cubic-bezier(.2,.75,.25,1);
}

.dgw-reveal.dgw-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Délais */
.dgw-delay-1 { transition-delay: .07s; }
.dgw-delay-2 { transition-delay: .14s; }
.dgw-delay-3 { transition-delay: .21s; }
.dgw-delay-4 { transition-delay: .28s; }
.dgw-delay-5 { transition-delay: .35s; }

/* Cartes vivantes */
body.dgw-motion .glass-card,
body.dgw-motion .pro-card,
body.dgw-motion .member-card,
body.dgw-motion .public-chat-card {
    transition:
        transform .28s cubic-bezier(.2,.75,.25,1),
        border-color .22s ease,
        box-shadow .28s ease;
}

body.dgw-motion .pro-card:hover,
body.dgw-motion .member-card:hover {
    transform: translateY(-3px);
}

/* Éclat au survol des boutons */
.dgw-motion-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.dgw-motion-button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -80%;
    width: 45%;
    background: linear-gradient(
        105deg,
        transparent,
        rgba(255,255,255,.16),
        transparent
    );
    transform: skewX(-18deg);
    transition: left .7s ease;
    pointer-events: none;
}

.dgw-motion-button:hover::before {
    left: 135%;
}

/* Ripple */
.dgw-ripple {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,.28);
    transform: translate(-50%,-50%) scale(0);
    animation: dgw-ripple .65s ease-out forwards;
    pointer-events: none;
    z-index: 3;
}

@keyframes dgw-ripple {
    to {
        transform: translate(-50%,-50%) scale(12);
        opacity: 0;
    }
}

/* Indicateur vivant */
.dgw-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    vertical-align: middle;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.42);
    animation: dgw-live-pulse 2s infinite;
}

@keyframes dgw-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34,197,94,.42);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34,197,94,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34,197,94,0);
    }
}

/* Chargement naturel des images */
body.dgw-motion img {
    transition:
        opacity .4s ease,
        transform .45s ease;
}

body.dgw-motion img[loading="lazy"] {
    opacity: .72;
}

body.dgw-motion img[loading="lazy"].dgw-img-ready {
    opacity: 1;
}

/* Barre de progression décorative */
.dgw-progress-line {
    position: relative;
    overflow: hidden;
}

.dgw-progress-line::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -40%;
    width: 40%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.18),
        transparent
    );
    animation: dgw-progress-shine 2.4s ease-in-out infinite;
}

@keyframes dgw-progress-shine {
    from { left: -40%; }
    to   { left: 110%; }
}

/* Réduction des mouvements */
@media (prefers-reduced-motion: reduce) {
    .dgw-motion-orb,
    .dgw-live-dot,
    .dgw-progress-line::after {
        animation: none !important;
    }

    .dgw-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    body.dgw-motion .pro-card,
    body.dgw-motion .member-card,
    body.dgw-motion .glass-card {
        transition: none !important;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .dgw-motion-orb.one {
        width: 210px;
        height: 210px;
    }

    .dgw-motion-orb.two {
        width: 240px;
        height: 240px;
    }

    .dgw-motion-orb.three {
        display: none;
    }
}


/* =========================================================
   DGW DASHBOARD — LIVE UI v1
   ========================================================= */

body.dgw-dashboard .pro-card {
    will-change: transform, box-shadow;
}

body.dgw-dashboard .pro-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 16px 40px rgba(0,0,0,.22),
        0 0 0 1px rgba(239,68,68,.08);
}

body.dgw-dashboard .sidebar .nav-link {
    transition:
        transform .25s ease,
        background-color .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}

body.dgw-dashboard .sidebar .nav-link:hover {
    transform: translateX(5px);
}

body.dgw-dashboard .sidebar .nav-link.active {
    box-shadow: inset 3px 0 0 rgba(239,68,68,.95);
}

body.dgw-dashboard .dgw-kpi-number {
    display: inline-block;
    min-width: 1ch;
    transition:
        transform .25s ease,
        text-shadow .25s ease;
}

body.dgw-dashboard .dgw-kpi-number.dgw-counting {
    transform: scale(1.04);
    text-shadow: 0 0 18px rgba(239,68,68,.18);
}

body.dgw-dashboard .dgw-progress-live {
    position: relative;
    overflow: hidden;
    transition: width 1.4s cubic-bezier(.2,.75,.25,1);
}

body.dgw-dashboard .dgw-progress-live::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -30%;
    width: 30%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.28),
        transparent
    );
    animation: dgw-progress-live-shine 2.2s ease-in-out infinite;
}

@keyframes dgw-progress-live-shine {
    from { left: -30%; }
    to   { left: 110%; }
}

body.dgw-dashboard .dgw-live-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    font-size: 11px;
    color: #94a3b8;
}

body.dgw-dashboard .dgw-live-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,.45);
    animation: dgw-dashboard-live-pulse 2s infinite;
}

@keyframes dgw-dashboard-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34,197,94,.45);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34,197,94,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34,197,94,0);
    }
}

body.dgw-dashboard .dgw-kpi-number {
    font-variant-numeric: tabular-nums;
}

body.dgw-dashboard .dgw-nav-animate {
    opacity: 0;
    transform: translateX(-12px);
    animation: dgw-nav-in .5s ease forwards;
}

@keyframes dgw-nav-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.dgw-dashboard .dgw-progress-live::after,
    body.dgw-dashboard .dgw-live-status::before {
        animation: none !important;
    }

    body.dgw-dashboard .dgw-nav-animate {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}


/* =========================================================
   DGW PUBLIC CHAT — LIVE MOTION v1
   ========================================================= */

body.dgw-dashboard .public-chat-card {
    position: relative;
    overflow: hidden;
}

body.dgw-dashboard .public-chat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -35%;
    width: 35%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(239,68,68,.9),
        transparent
    );
    animation: dgw-chat-live-line 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dgw-chat-live-line {
    0%   { left: -35%; opacity: 0; }
    15%  { opacity: 1; }
    70%  { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

/* Nouveau message */
.dgw-chat-message-in {
    animation:
        dgw-chat-message-in .5s cubic-bezier(.2,.75,.25,1) both;
    transform-origin: center bottom;
}

@keyframes dgw-chat-message-in {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }

    70% {
        opacity: 1;
        transform: translateY(-2px) scale(1.002);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Boutons de notification */
body.dgw-dashboard .public-chat-notif-btn {
    transition:
        transform .2s ease,
        box-shadow .25s ease,
        background-color .25s ease;
}

body.dgw-dashboard .public-chat-notif-btn:hover {
    transform: translateY(-2px);
}

body.dgw-dashboard .public-chat-notif-btn.dgw-notif-active {
    animation: dgw-notif-breathe 2.8s ease-in-out infinite;
}

@keyframes dgw-notif-breathe {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239,68,68,0);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(239,68,68,.08);
    }
}

/* Zone de réponse */
body.dgw-dashboard .public-chat-reply-box {
    transition:
        opacity .25s ease,
        transform .25s ease;
}

body.dgw-dashboard .public-chat-reply-box:not([style*="display: none"]) {
    animation: dgw-reply-in .3s ease both;
}

@keyframes dgw-reply-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compteur */
body.dgw-dashboard .public-chat-counter {
    transition: color .2s ease, transform .2s ease;
}

body.dgw-dashboard .public-chat-counter.dgw-counter-pulse {
    animation: dgw-counter-pulse .3s ease;
}

@keyframes dgw-counter-pulse {
    50% {
        transform: scale(1.08);
    }
}

/* Réduction des mouvements */
@media (prefers-reduced-motion: reduce) {
    body.dgw-dashboard .public-chat-card::before,
    body.dgw-dashboard .public-chat-notif-btn.dgw-notif-active,
    .dgw-chat-message-in,
    body.dgw-dashboard .public-chat-reply-box:not([style*="display: none"]) {
        animation: none !important;
    }
}


/* =========================================================
   DGW LIVE STATS — v1
   ========================================================= */

body.dgw-dashboard .dgw-live-update {
    animation: dgw-live-update .42s ease;
}

@keyframes dgw-live-update {
    0% {
        transform: scale(1);
        opacity: .72;
    }

    45% {
        transform: scale(1.055);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

body.dgw-dashboard .dgw-live-progress-updated {
    box-shadow: 0 0 18px rgba(239,68,68,.22);
}


/* =========================================================
   DGW FINANCIAL BALANCE — Dashboard
   ========================================================= */

body.dgw-dashboard .dgw-financial-kpis .pro-card {
    position: relative;
    overflow: hidden;
}

body.dgw-dashboard .dgw-balance-card {
    border-color: rgba(34,197,94,.14);
}

body.dgw-dashboard .dgw-balance-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -40px;
    bottom: -45px;
    border-radius: 50%;
    background: rgba(34,197,94,.08);
    filter: blur(12px);
    pointer-events: none;
}

body.dgw-dashboard .dgw-balance-icon {
    font-size: 18px;
    transition: transform .3s ease;
}

body.dgw-dashboard .dgw-balance-card:hover .dgw-balance-icon {
    transform: translateY(-2px) rotate(-5deg);
}

body.dgw-dashboard .dgw-financial-balance {
    font-variant-numeric: tabular-nums;
}

body.dgw-dashboard .dgw-balance-link {
    display: inline-flex;
    align-items: center;
    color: #86efac;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color .2s ease,
        transform .2s ease;
}

body.dgw-dashboard .dgw-balance-link:hover {
    color: #bbf7d0;
    transform: translateX(3px);
}

@media (max-width: 575px) {
    body.dgw-dashboard .dgw-financial-kpis .pro-card {
        min-height: 0;
    }
}

