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

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      background: #f2eee6;
      min-height: 100vh;
      color: #4b3520;
    }

    .header {
      background: linear-gradient(135deg, #492e1c 0%, #4b3520 100%);
      color: white;
      padding: 16px 32px;
      margin: 3px 3px 0 3px !important;
      box-shadow: 
        0 8px 33px rgba(75, 53, 32, 0.3),
        inset 0 0 0 3px #492e1c,
        inset 0 0 0 5px #f2eee6;
      border-radius: 8px !important;
      position: relative;
      z-index: 100;
    }

    .header-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }

    .header h1 {
      font-size: 1.4rem;
      display: flex;
      align-items: center;
      gap: 13px;
      font-weight: 700;
    }

    .header .subtitle {
      opacity: 0.95;
      font-size: 0.8rem;
      font-weight: 500;
    }

    .admin-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      background: rgba(255, 255, 255, 0.25);
      border-radius: 24px;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Alertes critiques */
    .critical-alerts {
      position: fixed;
      top: 80px;
      right: 20px;
      max-width: 350px;
      z-index: 1000;
    }

    .alert-item {
      background: rgba(231, 76, 60, 0.95);
      padding: 13px 16px;
      border-radius: 13px;
      margin-bottom: 10px;
      box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
      border-left: 4px solid #c0392b;
      animation: slideIn 0.3s ease;
      backdrop-filter: blur(10px);
    }

    .alert-item.warning {
      background: rgba(243, 156, 18, 0.95);
      border-left-color: #f39c12;
      box-shadow: 0 4px 20px rgba(243, 156, 18, 0.4);
    }

    .alert-item.info {
      background: rgba(52, 152, 219, 0.95);
      border-left-color: #3498db;
      box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    }

    .alert-item.safety-critical {
      background: rgba(192, 57, 43, 0.95);
      border-left: 6px solid #ff0000;
      box-shadow: 0 0 30px rgba(231, 76, 60, 0.8);
      animation: emergencyPulse 1.5s infinite, slideIn 0.3s ease;
      color: white;
    }

    @keyframes emergencyPulse {
      0% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.6); }
      50% { box-shadow: 0 0 40px rgba(255, 0, 0, 0.9); transform: scale(1.02); }
      100% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.6); }
    }

    @keyframes slideIn {
      from {
        transform: translateX(400px);
        opacity: 0;
      }

      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    .container {
      max-width: 1600px;
      margin: 0 auto;
      padding: 40px 30px;
    }

    .section-title {
      font-size: 1.1rem;
      margin: 30px 0 15px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 13px;
      color: #4b3520;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .section-title::after {
      content: '';
      flex: 1;
      height: 3px;
      background: linear-gradient(90deg, #492e1c, transparent);
    }

    /* Infrastructure Monitoring */
    .infrastructure-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 16px;
      margin-bottom: 30px;
    }

    .infra-card {
      background: white;
      border-radius: 12px;
      padding: 18px;
      border: 1px solid #492e1c;
      box-shadow: 0 4px 13px rgba(75, 53, 32, 0.1);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .infra-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--card-color), transparent);
    }

    .infra-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 13px 40px rgba(75, 53, 32, 0.15);
      border-color: #492e1c;
    }

    .infra-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }

    .infra-title {
      font-size: 0.85rem;
      text-transform: uppercase;
      color: #6b4f39;
      font-weight: 600;
      letter-spacing: 0.05em;
    }

    .status-badge {
      padding: 4px 13px;
      border-radius: 13px;
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
    }

    .status-badge.healthy {
      background: rgba(46, 204, 113, 0.2);
      color: #2ecc71;
      border: 1px solid #2ecc71;
    }

    .status-badge.warning {
      background: rgba(241, 196, 15, 0.2);
      color: #f1c40f;
      border: 1px solid #f1c40f;
    }

    .status-badge.critical {
      background: rgba(231, 76, 60, 0.2);
      color: #e74c3c;
      border: 1px solid #e74c3c;
    }

    .infra-value {
      font-size: 1.8rem;
      font-weight: 800;
      color: var(--card-color, #4b3520);
      margin: 8px 0;
    }

    .infra-details {
      display: flex;
      justify-content: space-between;
      font-size: 0.85rem;
      color: #7f8c8d;
      margin-top: 13px;
      padding-top: 13px;
      border-top: 1px solid #492e1c;
    }

    /* Progress bars */
    .progress-bar {
      width: 100%;
      height: 8px;
      background: #492e1c;
      border-radius: 10px;
      overflow: hidden;
      margin-top: 13px;
    }

    .progress-fill {
      height: 100%;
      background: var(--card-color, #4b3520);
      background: linear-gradient(90deg, var(--card-color, #4b3520), var(--card-color-light, #1abc9c));
      border-radius: 10px;
      transition: width 0.5s ease;
      box-shadow: 0 3px 10px var(--card-color, rgba(0,0,0,0.2));
    }

    /* Cartes principales */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 16px;
      margin-bottom: 30px;
    }

    .admin-card {
      background: white;
      border-radius: 16px;
      padding: 28px;
      border: 1px solid #492e1c;
      box-shadow: 0 4px 13px rgba(75, 53, 32, 0.1);
      transition: all 0.3s ease;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .admin-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: linear-gradient(180deg, var(--card-color), transparent);
    }

    .admin-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 16px 48px rgba(75, 53, 32, 0.2);
      border-color: #492e1c;
    }

    .card-icon {
      width: 56px;
      height: 56px;
      background: var(--card-color, #4b3520);
      background: linear-gradient(135deg, var(--card-color, #4b3520), var(--card-color-dark, #2c1a10));
      border-radius: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.8rem;
      margin-bottom: 20px;
      box-shadow: 0 8px 24px rgba(75, 53, 32, 0.2);
    }

    .card-title {
      font-size: 1.2rem;
      font-weight: 700;
      color: #4b3520;
      margin-bottom: 8px;
    }

    .card-description {
      font-size: 0.9rem;
      color: #6b4f39;
      line-height: 1.5;
      margin-bottom: 16px;
    }

    .card-arrow {
      color: var(--card-color);
      font-size: 1.2rem;
      transition: transform 0.3s ease;
    }

    .admin-card:hover .card-arrow {
      transform: translateX(8px);
    }

    /* Stats rapides */
    .stats-quick {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 12px;
      margin-bottom: 30px;
    }

    .stat-quick {
      background: rgba(255, 255, 255, 0.08);
      padding: 20px;
      border-radius: 13px;
      text-align: center;
      transition: all 0.3s;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-quick:hover {
      transform: translateY(-4px);
      box-shadow: 0 13px 33px rgba(0, 0, 0, 0.3);
    }

    .stat-quick-number {
      font-size: 2rem;
      font-weight: 800;
      color: var(--stat-color);
      margin-bottom: 6px;
      text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }

    .stat-quick-label {
      font-size: 0.85rem;
      font-weight: 600;
      opacity: 0.9;
    }

    .stat-quick-sublabel {
      font-size: 0.75rem;
      opacity: 0.6;
      margin-top: 4px;
      font-style: italic;
    }

    /* Indicateur temps réel */
    .live-indicator {
      position: fixed;
      top: 20px;
      right: 20px;
      background: rgba(39, 174, 96, 0.95);
      color: white;
      padding: 10px 18px;
      border-radius: 24px;
      font-size: 0.85rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 10px;
      box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
      z-index: 999;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .live-pulse {
      width: 10px;
      height: 10px;
      background: white;
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
      }

      50% {
        opacity: 0.7;
        transform: scale(1.3);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
      }
    }

    /* Charts containers */
    .charts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 20px;
      margin-bottom: 30px;
    }

    .chart-card {
      background: white;
      border-radius: 16px;
      padding: 24px;
      border: 1px solid #492e1c;
      box-shadow: 0 4px 13px rgba(75, 53, 32, 0.1);
      min-height: 300px;
    }

    .chart-title {
      font-size: 1rem;
      font-weight: 700;
      color: #4b3520;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    /* Geo Distribution */
    .geo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 13px;
      margin-top: 20px;
    }

    .geo-item {
      background: #faf7f3;
      padding: 13px 16px;
      border-radius: 10px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.3s;
      border: 1px solid #492e1c;
    }

    .geo-item:hover {
      background: #492e1c;
      transform: translateX(4px);
      border-color: #492e1c;
    }

    .geo-country {
      font-weight: 600;
      color: #4b3520;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .geo-count {
      font-size: 1.2rem;
      font-weight: 800;
      color: #492e1c;
    }

    /* Security Dashboard */
    .security-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin-bottom: 40px;
    }

    .security-card {
      background: white;
      border: 1px solid rgba(231, 76, 60, 0.3);
      border-radius: 13px;
      padding: 20px;
      box-shadow: 0 4px 13px rgba(75, 53, 32, 0.1);
    }

    .security-card.safe {
      background: white;
      border-color: rgba(46, 204, 113, 0.3);
    }

    .security-icon {
      font-size: 2rem;
      margin-bottom: 13px;
    }

    .security-value {
      font-size: 2rem;
      font-weight: 800;
      color: #492e1c;
      margin: 8px 0;
    }

    .security-label {
      font-size: 0.9rem;
      color: #6b4f39;
    }

    /* Refresh info */
    .refresh-info {
      text-align: center;
      margin-top: 40px;
      color: #7f8c8d;
      font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
      padding: 13px 28px;
      border-radius: 10px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s;
      border: none;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-size: 0.85rem;
    }

    .btn-back {
      background: #ffffff;
      color: #492e1c;
      border: 3px solid #492e1c;
    }

    .btn-back:hover {
      background: #492e1c;
      color: #ffffff;
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(75, 53, 32, 0.2);
    }

    /* Responsive */
    @media (max-width: 768px) {
      .header h1 {
        font-size: 1.4rem;
      }

      .infrastructure-grid,
      .cards-grid,
      .charts-grid {
        grid-template-columns: 1fr;
      }

      .live-indicator {
        top: 10px;
        right: 10px;
        font-size: 0.75rem;
        padding: 8px 13px;
      }
    }

    .stat-updating {
      animation: statUpdate 0.5s ease;
    }

    @keyframes statUpdate {
      0% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.15);
        background: rgba(255, 255, 255, 0.2);
      }

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

    /* === Diffusion globale (Super Admin) === */
    .broadcast-panel {
      background: #ffffff;
      border: 2px solid #d4af37;
    }

    .broadcast-panel__title {
      color: #492e1c;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .broadcast-panel__body {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .broadcast-label {
      font-size: 0.78rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #6b4f39;
    }

    .broadcast-textarea {
      width: 100%;
      min-height: 110px;
      padding: 14px 16px;
      border-radius: 10px;
      border: 2px solid #d4af37;
      background: #fff;
      font-family: inherit;
      font-size: 1rem;
      color: #4b3520;
      resize: vertical;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .broadcast-textarea:focus {
      outline: none;
      border-color: #492e1c;
      box-shadow: 0 0 0 3px rgba(73, 46, 28, 0.15);
    }

    .broadcast-meta {
      display: flex;
      justify-content: flex-end;
      margin-top: -6px;
    }

    .broadcast-char-count {
      font-size: 0.75rem;
      font-weight: 600;
      color: #8a6d5a;
    }

    .broadcast-char-count--warn {
      color: #c0392b;
    }

    .broadcast-type-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .broadcast-type-pill-wrap {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      position: relative;
    }

    .broadcast-type-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      border-radius: 50px;
      border: 2px solid #e8dcc8;
      background: #fff;
      color: #6b4f39;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .broadcast-type-pill i {
      font-size: 0.9rem;
    }

    .broadcast-type-pill:hover {
      border-color: #d4af37;
      transform: translateY(-1px);
    }

    .broadcast-type-pill.is-active {
      border-color: #492e1c;
      background: #492e1c;
      color: #f2eee6;
      box-shadow: 0 4px 12px rgba(73, 46, 28, 0.25);
    }

    .broadcast-type-pill--info.is-active i { color: #c9a87c; }
    .broadcast-type-pill--warning.is-active i { color: #d4af37; }
    .broadcast-type-pill--error.is-active i { color: #c0392b; }
    .broadcast-type-pill--success.is-active i { color: #7d9a6a; }

    .broadcast-type-help {
      flex-shrink: 0;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      border: 2px solid #492e1c;
      background: #ffffff;
      color: #492e1c;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      cursor: help;
      position: relative;
      padding: 0;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .broadcast-type-help:hover,
    .broadcast-type-help:focus-visible {
      background: #492e1c;
      color: #ffffff;
      outline: none;
    }

    .broadcast-type-tip {
      position: absolute;
      bottom: calc(100% + 10px);
      left: 50%;
      transform: translateX(-50%);
      width: min(240px, 70vw);
      padding: 10px 12px;
      background: #492e1c;
      color: #ffffff;
      font-size: 0.72rem;
      font-weight: 500;
      line-height: 1.4;
      border-radius: 8px;
      border: 2px solid #ffffff;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.2s ease, visibility 0.2s ease;
      z-index: 20;
      text-align: left;
    }

    .broadcast-type-tip::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border: 6px solid transparent;
      border-top-color: #492e1c;
    }

    .broadcast-type-help:hover .broadcast-type-tip,
    .broadcast-type-help:focus-visible .broadcast-type-tip {
      opacity: 1;
      visibility: visible;
    }

    .broadcast-live-preview {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 14px 16px;
      border-radius: 10px;
      background: #ffffff;
      color: #492e1c;
      border: 3px solid #492e1c;
    }

    .broadcast-live-preview--info,
    .broadcast-live-preview--warning,
    .broadcast-live-preview--error,
    .broadcast-live-preview--success {
      border-color: #492e1c;
    }

    .broadcast-live-preview--info .broadcast-live-preview__icon,
    .broadcast-live-preview--info .broadcast-live-preview__label { color: #c9a87c; }

    .broadcast-live-preview--warning .broadcast-live-preview__icon,
    .broadcast-live-preview--warning .broadcast-live-preview__label { color: #d4af37; }

    .broadcast-live-preview--error .broadcast-live-preview__icon,
    .broadcast-live-preview--error .broadcast-live-preview__label { color: #e74c3c; }

    .broadcast-live-preview--success .broadcast-live-preview__icon,
    .broadcast-live-preview--success .broadcast-live-preview__label { color: #7d9a6a; }

    .broadcast-live-preview__icon {
      font-size: 1.2rem;
      margin-top: 2px;
      color: #492e1c;
    }

    .broadcast-live-preview__label {
      font-size: 0.68rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 4px;
    }

    .broadcast-live-preview__text {
      font-size: 0.92rem;
      font-weight: 600;
      line-height: 1.4;
      word-break: break-word;
      color: #000000;
    }

    .broadcast-live-preview__text--placeholder {
      color: #6b4f39;
      opacity: 0.7;
      font-style: italic;
      font-weight: 500;
    }

    .broadcast-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .broadcast-btn-send {
      background: #492e1c;
      color: #f2eee6;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .broadcast-btn-send:hover {
      background: #3d2516;
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(73, 46, 28, 0.3);
    }

    .broadcast-btn-test {
      background: #6b4f39;
      color: #f2eee6;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .broadcast-btn-test:hover {
      background: #5a4230;
      transform: translateY(-2px);
    }

    .broadcast-hint {
      font-size: 0.8rem;
      color: #8a6d5a;
      font-style: italic;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .broadcast-modal {
      position: fixed;
      inset: 0;
      z-index: 100010;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(75, 53, 32, 0.55);
      backdrop-filter: blur(4px);
      animation: broadcastModalIn 0.2s ease;
    }

    .broadcast-modal[hidden] {
      display: none;
    }

    .broadcast-modal__card {
      width: min(480px, 100%);
      background: #f2eee6;
      border: 3px solid #492e1c;
      border-radius: 14px;
      padding: 24px;
      box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    }

    .broadcast-modal__title {
      font-size: 1.1rem;
      font-weight: 800;
      color: #492e1c;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .broadcast-modal__message {
      font-size: 0.95rem;
      color: #4b3520;
      line-height: 1.5;
      margin-bottom: 8px;
    }

    .broadcast-modal__quote {
      background: #fff;
      border-left: 4px solid #d4af37;
      padding: 12px 14px;
      border-radius: 8px;
      font-weight: 600;
      color: #492e1c;
      margin-bottom: 20px;
      word-break: break-word;
    }

    .broadcast-modal__actions {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
    }

    .broadcast-modal__btn {
      padding: 10px 20px;
      border-radius: 8px;
      font-weight: 700;
      font-size: 0.85rem;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.2s ease;
    }

    .broadcast-modal__btn--cancel {
      background: #fff;
      color: #6b4f39;
      border-color: #d4af37;
    }

    .broadcast-modal__btn--confirm {
      background: #492e1c;
      color: #f2eee6;
    }

    .broadcast-modal__btn:hover {
      transform: translateY(-1px);
    }

    .broadcast-toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      z-index: 100011;
      padding: 12px 22px;
      border-radius: 50px;
      font-weight: 700;
      font-size: 0.88rem;
      opacity: 0;
      transition: opacity 0.25s ease, transform 0.25s ease;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .broadcast-toast--visible {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .broadcast-toast--success {
      background: #27ae60;
      color: #fff;
      border: 2px solid #1e8449;
    }

    .broadcast-toast--error {
      background: #c0392b;
      color: #fff;
      border: 2px solid #922b21;
    }

    @keyframes broadcastModalIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @media (max-width: 768px) {
      .broadcast-type-pills {
        flex-direction: column;
      }

      .broadcast-type-pill {
        justify-content: center;
      }

      .broadcast-actions {
        flex-direction: column;
      }

      .broadcast-actions .btn {
        width: 100%;
        justify-content: center;
      }
    }
