/* ============================================================================
   panel-hosting.css — Enrichissement visuel de la page hébergement
   ----------------------------------------------------------------------------
   S'appuie sur les variables de MARQUE déjà définies par marque_theme_css()
   (--brand = vert émeraude du site). Aucune couleur en dur pour la marque :
   tout dérive de --brand, donc si tu changes la charte en base, cette page
   suit automatiquement.

   À charger APRÈS style.css (dans includes/header.php). Ciblé sur
   #view-hosting-detail : n'affecte que la page hébergement.
   ========================================================================== */

#view-hosting-detail {
  --hb-radius: 16px;
  --hb-shadow: 0 8px 24px -12px rgba(15,42,32,.18), 0 2px 6px rgba(0,0,0,.04);
  --hb-shadow-hover: 0 16px 34px -14px rgba(15,42,32,.28), 0 4px 10px rgba(0,0,0,.06);
}

/* ===== Bandeau d'état — dégradé vert de la marque ======================= */
#view-hosting-detail .detail-head {
  position: relative;
  background: linear-gradient(120deg,
      var(--brand) 0%,
      var(--brand-dark) 70%,
      var(--ink) 130%);
  border: none;
  border-radius: var(--hb-radius);
  padding: 22px 24px;
  color: #fff;
  box-shadow: var(--hb-shadow);
  overflow: hidden;
}
#view-hosting-detail .detail-head::after {
  content: "";
  position: absolute;
  top: -70px; right: -50px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 70%);
  pointer-events: none;
}
#view-hosting-detail .detail-head .detail-icon {
  background: rgba(255,255,255,.20);
  color: #fff;
  border-radius: 14px;
  backdrop-filter: blur(4px);
}
#view-hosting-detail .detail-head h2 { color: #fff; }
#view-hosting-detail .detail-head .muted,
#view-hosting-detail .detail-head .text-sm { color: rgba(255,255,255,.85) !important; }
#view-hosting-detail .detail-head .pill,
#view-hosting-detail .detail-head .pastille {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(4px);
}
#view-hosting-detail .detail-head .btn {
  background: rgba(255,255,255,.95);
  color: var(--brand-dark);
  border: none;
  font-weight: 600;
}
#view-hosting-detail .detail-head .btn:hover { background: #fff; transform: translateY(-1px); }

/* ===== Onglets — pilules ================================================ */
#view-hosting-detail .tabs {
  gap: 6px;
  margin-top: 20px;
  border-bottom: none;
  flex-wrap: wrap;
}
#view-hosting-detail .tabs .tab-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: all .15s ease;
}
#view-hosting-detail .tabs .tab-btn:hover {
  color: var(--brand-dark);
  background: var(--brand-tint);
}
#view-hosting-detail .tabs .tab-btn.active {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  box-shadow: var(--shadow-brand);
}
#view-hosting-detail .tabs .tab-btn.active .tab-badge {
  background: rgba(255,255,255,.30);
  color: #fff;
}

/* ===== Cartes de stats — teintées ======================================= */
#view-hosting-detail .stat-card {
  border: none;
  border-radius: 14px;
  box-shadow: var(--hb-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
#view-hosting-detail .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hb-shadow-hover);
}
#view-hosting-detail .stat-card:nth-child(1) { background: linear-gradient(160deg, var(--brand-tint), var(--surface) 65%); }
#view-hosting-detail .stat-card:nth-child(2) { background: linear-gradient(160deg, #e8f3ee, var(--surface) 65%); }
#view-hosting-detail .stat-card:nth-child(3) { background: linear-gradient(160deg, #e6f6f5, var(--surface) 65%); }
#view-hosting-detail .stat-card:nth-child(4) { background: linear-gradient(160deg, #feedba, var(--surface) 70%); }
#view-hosting-detail .stat-card .main-txt {
  font-size: 23px; font-weight: 700;
  font-family: var(--font-display, inherit);
}
#view-hosting-detail .stat-card .stat-max { font-size: 14px; font-weight: 500; color: var(--text-soft); }

/* ===== Cartes de contenu ================================================ */
#view-hosting-detail .card {
  border: none;
  border-radius: 14px;
  box-shadow: var(--hb-shadow);
}

/* ===== Grille d'apps ==================================================== */
#view-hosting-detail .app-grid {
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 14px;
}

/* Tuile d'app — couleur par app via --jeu (fourni par le PHP) */
#view-hosting-detail .app-tile {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--jeu) 8%, var(--surface)) 0%,
      var(--surface) 70%);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  overflow: hidden;
}
#view-hosting-detail .app-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--jeu);
  opacity: .9;
}
#view-hosting-detail .app-tile:hover:not([disabled]) {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--jeu) 55%, transparent);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--jeu) 22%, transparent),
              0 3px 8px rgba(0,0,0,.05);
}
#view-hosting-detail .app-tile .app-mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: .3px;
  background: color-mix(in srgb, var(--jeu) 16%, var(--surface));
  color: var(--jeu);
  border: 1px solid color-mix(in srgb, var(--jeu) 30%, transparent);
}
#view-hosting-detail .app-tile .app-nom {
  display: block; font-weight: 600; font-size: 15px; color: var(--text);
}
#view-hosting-detail .app-tile .app-desc {
  display: block; font-size: 12.5px; line-height: 1.45;
  color: var(--text-soft); margin: 3px 0 12px;
}
#view-hosting-detail .app-tile .app-mode {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  background: var(--warning-tint); color: var(--warning);
}
#view-hosting-detail .app-tile .app-mode.is-full {
  background: var(--brand-tint); color: var(--brand-dark);
}
#view-hosting-detail .app-tile[disabled] { opacity: .55; filter: grayscale(.4); cursor: not-allowed; }
#view-hosting-detail .app-tile[disabled]::before { background: var(--border-strong); }

#view-hosting-detail .hb-panel-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ===== Désinstallation ================================================== */
#view-hosting-detail .hb-installed {
  flex-wrap: wrap;
  gap: 10px 12px;
}
#view-hosting-detail .hb-btn-danger {
  border-color: transparent;
  background: var(--danger-tint, #fdecec);
  color: var(--danger, #d64545);
}
#view-hosting-detail .hb-btn-danger:hover {
  background: var(--danger, #d64545);
  color: #fff;
  border-color: transparent;
}
#view-hosting-detail .hb-btn-danger[disabled] {
  opacity: .5;
  pointer-events: none;
  background: var(--danger-tint, #fdecec);
  color: var(--danger, #d64545);
}

/* ===== Statistiques (onglet ex-Logs) ===================================== */
#view-hosting-detail .hb-stat[data-tone="req"]  { --hb-tone: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
#view-hosting-detail .hb-stat[data-tone="bw"]   { --hb-tone: linear-gradient(135deg, #0f9ec2, #22c1dc); }
#view-hosting-detail .hb-stat[data-tone="ok"]   { --hb-tone: linear-gradient(135deg, #12a35e, #34d399); }
#view-hosting-detail .hb-stat[data-tone="err4"] { --hb-tone: linear-gradient(135deg, #e0a000, #f5b93d); }
#view-hosting-detail .hb-stat[data-tone="err5"] { --hb-tone: linear-gradient(135deg, #d64545, #ef7373); }

#view-hosting-detail .stats-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  #view-hosting-detail .stats-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  #view-hosting-detail .stats-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#view-hosting-detail .stats-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin: 18px 0 10px;
}

#view-hosting-detail .stats-top-pages {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
#view-hosting-detail .stats-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 46px;
  align-items: center;
  gap: 10px;
}
#view-hosting-detail .stats-bar-path {
  font-size: 12.5px;
  font-family: var(--font-mono, monospace);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#view-hosting-detail .stats-bar-track {
  height: 7px;
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}
#view-hosting-detail .stats-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}
#view-hosting-detail .stats-bar-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  text-align: right;
}
@media (max-width: 640px) {
  #view-hosting-detail .stats-bar-row { grid-template-columns: minmax(0, 1fr) 70px 40px; }
}

/* ===== Aperçu du site + score PageSpeed =================================== */
/* Le panneau Aperçu est un enfant direct de .view (hors de la grille .hb-cols),
   il n'héritait donc d'aucun gap : il collait au bloc suivant. On rétablit le
   même rythme vertical que les autres panneaux. */
#view-hosting-detail .hb-preview-panel {
  margin-bottom: 16px;
}

#view-hosting-detail .hb-preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
@media (max-width: 780px) {
  #view-hosting-detail .hb-preview-body { grid-template-columns: 1fr; }
}

#view-hosting-detail .hb-preview-shot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper);
  /* 16/10 au lieu de 4/3 : la capture d'un site tient sur une bande plus basse,
     ce qui supprime la grande zone vide sous l'image. */
  aspect-ratio: 16 / 10;
  max-height: 260px;
}
#view-hosting-detail .hb-preview-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
#view-hosting-detail .hb-preview-shot-vide {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 12.5px;
}
#view-hosting-detail .hb-preview-shot-vide .icon { width: 26px; height: 26px; }
#view-hosting-detail .hb-preview-link {
  position: absolute;
  right: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(20, 22, 35, .72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
#view-hosting-detail .hb-preview-link:hover { background: rgba(20, 22, 35, .88); }

#view-hosting-detail .hb-preview-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#view-hosting-detail .hb-score-gauge {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  width: 84px; height: 84px;
  border-radius: 50%;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  border: 5px solid var(--border);
  margin-bottom: 10px;
}
#view-hosting-detail .hb-score-gauge .hb-score-num { font-size: 26px; font-weight: 700; font-family: var(--font-display); }
#view-hosting-detail .hb-score-gauge .hb-score-lbl { font-size: 12px; color: var(--text-faint); }
#view-hosting-detail .hb-score-gauge[data-tier="bon"]    { border-color: #1eb37c; }
#view-hosting-detail .hb-score-gauge[data-tier="bon"] .hb-score-num    { color: #1eb37c; }
#view-hosting-detail .hb-score-gauge[data-tier="moyen"]  { border-color: #e0a000; }
#view-hosting-detail .hb-score-gauge[data-tier="moyen"] .hb-score-num  { color: #e0a000; }
#view-hosting-detail .hb-score-gauge[data-tier="faible"] { border-color: #d64545; }
#view-hosting-detail .hb-score-gauge[data-tier="faible"] .hb-score-num { color: #d64545; }
#view-hosting-detail .hb-score-gauge[data-tier="na"]     { border-color: var(--border); }

#view-hosting-detail .hb-score-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

#view-hosting-detail .hb-score-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
#view-hosting-detail .hb-score-metrics > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}
#view-hosting-detail .hb-score-metrics span { color: var(--text-faint); }
#view-hosting-detail .hb-score-metrics b { color: var(--text); font-weight: 600; white-space: nowrap; }
@media (max-width: 480px) {
  #view-hosting-detail .hb-score-metrics { grid-template-columns: 1fr; }
}

/* Le filtre (hosting-apps-filter.js) masque les tuiles hors résultat via
   l'attribut [hidden]. Sans cette règle, la déclaration `display:flex` posée
   ailleurs (spécificité égale, mais sur un sélecteur qui matche aussi)
   l'emporte sur le [hidden] natif du navigateur et les tuiles filtrées
   restent visibles — c'est ce qui rendait le filtre inopérant. */
#view-hosting-detail .app-tile[hidden] { display: none; }

/* ===== Recherche + catégories (onglet Applications) ===================== */
#view-hosting-detail .app-search-wrap {
  position: relative;
  max-width: 340px;
}
#view-hosting-detail .app-search-wrap .icon {
  position: absolute;
  top: 50%; left: 13px;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--text-faint);
  pointer-events: none;
}
#view-hosting-detail #app-search {
  padding-left: 36px;
  border-radius: 10px;
  background: var(--paper);
  border-color: transparent;
}
#view-hosting-detail #app-search:hover { border-color: var(--border-strong); }
#view-hosting-detail #app-search:focus {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

#view-hosting-detail #app-cat-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 0 0 14px;
  scrollbar-width: none;
}
#view-hosting-detail #app-cat-row::-webkit-scrollbar { display: none; }

#view-hosting-detail #app-cat-row .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease, color .12s ease;
}
#view-hosting-detail #app-cat-row .chip .icon {
  width: 13px; height: 13px;
  color: var(--text-faint);
  transition: color .12s ease;
}
#view-hosting-detail #app-cat-row .chip .chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--text-faint);
  font-size: 10.5px;
  font-weight: 600;
}
#view-hosting-detail #app-cat-row .chip:hover:not(.active) {
  border-color: var(--border-strong);
  background: var(--paper);
  transform: translateY(-1px);
}
#view-hosting-detail #app-cat-row .chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-tint), 0 0 0 1px var(--brand);
}
#view-hosting-detail #app-cat-row .chip.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--brand) 65%, transparent);
}
#view-hosting-detail #app-cat-row .chip.active .icon { color: #fff; }
#view-hosting-detail #app-cat-row .chip.active .chip-count {
  background: rgba(255,255,255,.22);
  color: #fff;
}

#view-hosting-detail .hb-empty-msg {
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--paper);
}

/* ===== Lignes d'installation =========================================== */
#view-hosting-detail .install-row {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
#view-hosting-detail .install-row.is-running {
  background: linear-gradient(90deg, var(--brand-tint), var(--surface));
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
}
#view-hosting-detail .install-row.is-error {
  background: linear-gradient(90deg, var(--danger-tint), var(--surface));
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
}
#view-hosting-detail .install-row > .icon { color: var(--brand); }
#view-hosting-detail .install-row.is-error > .icon { color: var(--danger); }

/* Spinner à la couleur marque */
#view-hosting-detail .spin {
  width: 18px; height: 18px;
  border: 2.5px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: hb-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes hb-spin { to { transform: rotate(360deg); } }

/* ===== Bases de données ================================================= */
#view-hosting-detail .db-row {
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color .15s ease, box-shadow .15s ease;
}
#view-hosting-detail .db-row:hover {
  border-color: color-mix(in srgb, var(--acc-db) 45%, transparent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--acc-db) 12%, transparent);
}
#view-hosting-detail .db-row .icon-badge {
  background: color-mix(in srgb, var(--acc-db) 15%, var(--surface));
  color: var(--acc-db);
  border-radius: 10px;
}
#view-hosting-detail .db-label {
  background: var(--brand-tint); color: var(--brand-dark);
  padding: 2px 8px; border-radius: 12px;
  font-size: 11.5px; font-weight: 600; margin-left: 8px;
}

/* ===== Boutons primaires — dégradé marque ============================== */
#view-hosting-detail .btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  border: none;
  box-shadow: var(--shadow-brand);
}
#view-hosting-detail .btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ===== Modale d'installation — en-tête marque ========================== */
#modal-install .modal-head {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  border-radius: 14px 14px 0 0;
  padding: 18px 22px;
}
#modal-install .modal-head h3 { color: #fff; }
#modal-install .modal-head .modal-close { color: rgba(255,255,255,.9); }
#modal-install .modal-head .modal-close:hover { color: #fff; }
#modal-install .btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-dark));
  border: none;
}

/* ===== Alerte "À vérifier" ============================================= */
#view-hosting-detail .dash-alert.is-urgent {
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
  background: linear-gradient(90deg, var(--warning-tint), var(--surface));
}

/* ===== Responsive ====================================================== */
@media (max-width: 640px) {
  #view-hosting-detail .detail-head { flex-wrap: wrap; padding: 18px; }
  #view-hosting-detail .app-grid { grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); }
}

/* ===================================================================
   Onglet Sous-domaines
   =================================================================== */
.hb-panel-sub { color: var(--text-soft, #6b7280); font-size: .92rem; margin: .25rem 0 0; }
.hb-panel-sub code { background: rgba(127,127,150,.12); padding: .05em .4em; border-radius: 5px; font-size: .92em; }

.hb-subdomain-create {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin: 1.1rem 0 .4rem;
}
.hb-field-inline { display: flex; align-items: stretch; }
.hb-field-inline .hb-input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 140px; }
.hb-suffix {
  display: flex; align-items: center; padding: 0 .7rem;
  background: rgba(127,127,150,.10); border: 1px solid var(--border, #d9dbe4); border-left: 0;
  border-top-right-radius: 8px; border-bottom-right-radius: 8px;
  color: var(--text-soft, #6b7280); font-size: .9rem; white-space: nowrap;
}
.hb-input {
  height: 40px; padding: 0 .75rem; border: 1px solid var(--border, #d9dbe4);
  border-radius: 8px; background: var(--surface, #fff); color: var(--text, #1e2333);
  font-size: .95rem; font-family: inherit;
}
.hb-input:focus { outline: none; border-color: var(--brand, #6c4ee0); box-shadow: 0 0 0 3px rgba(108,78,224,.15); }
.hb-select { cursor: pointer; }
.hb-check { display: flex; align-items: center; gap: .4rem; font-size: .92rem; color: var(--text-soft, #6b7280); cursor: pointer; }
.hb-check input { width: 16px; height: 16px; accent-color: var(--brand, #6c4ee0); }

.hb-inline-msg { margin: .5rem 0 0; font-size: .9rem; padding: .55rem .8rem; border-radius: 8px; }
.hb-inline-msg.is-ok  { background: rgba(22,184,166,.12); color: #0f766e; }
.hb-inline-msg.is-err { background: rgba(220,53,69,.10);  color: #b42318; }

.hb-subdomain-list { display: flex; flex-direction: column; gap: .55rem; margin-top: 1rem; }
.hb-subdomain-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .75rem .9rem; border: 1px solid var(--border, #e5e7eb); border-radius: 10px;
  background: var(--surface, #fff);
}
.hb-sd-main { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.hb-sd-name { font-weight: 600; color: var(--text, #1e2333); text-decoration: none; }
.hb-sd-name:hover { color: var(--brand, #6c4ee0); text-decoration: underline; }
.hb-sd-status {
  font-size: .78rem; padding: .12em .6em; border-radius: 999px;
  background: rgba(127,127,150,.14); color: var(--text-soft, #6b7280);
}
.hb-sd-status.hb-status-active   { background: rgba(22,184,166,.15);  color: #0f766e; }
.hb-sd-status.hb-status-creating { background: rgba(234,179,8,.16);   color: #a16207; }
.hb-sd-status.hb-status-deleting { background: rgba(220,53,69,.12);   color: #b42318; }
.hb-sd-status.hb-status-error    { background: rgba(220,53,69,.14);   color: #b42318; }
.hb-sd-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hb-subdomain-row { flex-direction: column; align-items: stretch; }
  .hb-sd-actions { justify-content: flex-start; }
}

/* Sous-domaine en cours de suppression/création : actions désactivées */
#view-hosting-detail .hb-sd-actions-disabled { opacity: .7; font-style: italic; }
