/* ========== Phase quotas refonte v2.39 — Finance/Subs/Catalogs/Games admin ========== */

/* ------- Boutons standardisés ------- */
.btn-primary {
  background: #6750A4; color: #FFF; border: none;
  padding: 9px 16px; border-radius: 8px; font-weight: 700; cursor: pointer;
  font-size: 13px; transition: background .15s;
}
.btn-primary:hover { background: #E55C00; }
.btn-secondary {
  background: var(--card-bg); color: #4B5563; border: 1px solid #D1D5DB;
  padding: 9px 16px; border-radius: 8px; font-weight: 600; cursor: pointer;
  font-size: 13px; transition: all .15s;
}
.btn-secondary:hover { background: #F9FAFB; border-color: #9CA3AF; }
.btn-danger {
  background: #DC2626; color: #FFF; border: none;
  padding: 7px 14px; border-radius: 6px; font-weight: 600; cursor: pointer;
  font-size: 12px; transition: background .15s;
}
.btn-danger:hover { background: #B91C1C; }

/* ------- Sections cards ------- */
.fin-section { margin-bottom: 32px; }
.fin-section-title {
  font-size: 18px; font-weight: 700; color: #1F2937;
  margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid #6750A4;
  display: flex; align-items: center; gap: 8px;
}
.fin-section-title .muted { font-weight: 400; color: #9CA3AF; font-size: 14px; }
.muted-card {
  padding: 32px 20px; text-align: center;
  background: #F9FAFB; border: 2px dashed #E5E7EB;
  border-radius: 12px; color: #6B7280;
}
.muted-card p { margin: 4px 0; }
.muted-card .hint { font-size: 12px; color: #9CA3AF; }
.loading { padding: 32px; text-align: center; color: #9CA3AF; font-style: italic; }
.error {
  padding: 16px 20px; background: #FEE2E2;
  border: 1px solid #FCA5A5; border-radius: 10px;
  color: #991B1B; font-weight: 600;
}

/* ------- Finance KPIs ------- */
.fin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.fin-kpi {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-bg); border: 1px solid #E5E7EB; border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform .15s, box-shadow .15s;
}
.fin-kpi:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.fin-kpi-mrr {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border-color: #FB923C;
}
.fin-kpi.warn { background: #FEF3C7; border-color: #F59E0B; }
.fin-kpi-icon { font-size: 32px; line-height: 1; }
.fin-kpi-body { flex: 1; min-width: 0; }
.fin-kpi .lbl {
  font-size: 11px; color: #6B7280; text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600;
}
.fin-kpi .val {
  font-size: 26px; font-weight: 800; color: #1F2937;
  margin: 4px 0 2px; line-height: 1.1;
}
.fin-kpi .sub { font-size: 12px; color: #9CA3AF; }

/* ------- Finance tiers cards ------- */
.fin-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.fin-tier {
  background: var(--card-bg); padding: 16px; border-radius: 12px;
  border: 1px solid #E5E7EB; border-left: 4px solid var(--tier-color, #888);
  position: relative;
}
.fin-tier-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fin-tier-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tier-color); }
.fin-tier-name { font-weight: 700; font-size: 14px; }
.fin-tier-count { font-size: 28px; font-weight: 800; color: #1F2937; line-height: 1; }
.fin-tier-label { font-size: 12px; color: #6B7280; margin-top: 2px; }
.fin-tier-rev {
  font-size: 13px; color: var(--tier-color); font-weight: 600;
  margin-top: 8px;
}
.fin-tier-bar {
  height: 4px; background: #F3F4F6; border-radius: 2px;
  margin-top: 10px; overflow: hidden;
}
.fin-tier-bar-fill { height: 100%; background: var(--tier-color); transition: width .3s; }
.fin-tier-pill {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  color: #FFF; font-size: 11px; font-weight: 700; text-transform: uppercase;
}

/* ------- Courbe téléchargements (admin Downloads) ------- */
.dl-chart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 180px; padding: 8px 4px 0;
  overflow-x: auto;
  background: var(--card-bg); border: 1px solid #E5E7EB;
  border-radius: 12px;
}
.dl-bar-col {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  min-width: 22px; flex: 1 0 22px; height: 100%;
}
.dl-bar-val { font-size: 10px; color: #6B7280; margin-bottom: 2px; min-height: 12px; }
.dl-bar {
  width: 70%; background: linear-gradient(180deg, #7F67BE, #6750A4);
  border-radius: 4px 4px 0 0; transition: height .3s;
}
.dl-bar-day { font-size: 9px; color: #9CA3AF; margin-top: 4px; white-space: nowrap; }

/* ------- Tableaux uniformisés ------- */
.cat-table {
  width: 100%; border-collapse: collapse;
  background: var(--card-bg); border: 1px solid #E5E7EB;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cat-table th, .cat-table td {
  padding: 12px 14px; text-align: left;
  font-size: 13px; border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
}
.cat-table th {
  background: #F9FAFB; font-weight: 700; color: #374151;
  text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em;
}
.cat-table tr:last-child td { border-bottom: none; }
.cat-table tr:hover { background: #FFF7ED; }
.cat-table .muted { color: #9CA3AF; }
.cat-table small.muted { display: block; font-size: 10px; margin-top: 2px; }

/* ------- Subscriptions tier tags ------- */
.sub-tier {
  display: inline-block; padding: 4px 12px;
  border-radius: 16px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; color: #FFF;
  letter-spacing: 0.04em;
}
.sub-tier-premium { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.sub-tier-gold { background: linear-gradient(135deg, #F59E0B, #D97706); }
.sub-tier-platinium { background: linear-gradient(135deg, #A855F7, #7C3AED); }
.sub-tier-family_gold { background: linear-gradient(135deg, #EC4899, #DB2777); }
.subs-toolbar { display: flex; gap: 10px; margin-bottom: 16px; }

/* ------- Catalogs sub-tabs (chips orange) ------- */
.cat-subtabs {
  display: flex; gap: 6px; margin-bottom: 20px;
  flex-wrap: wrap; padding: 6px;
  background: #F9FAFB; border-radius: 12px;
  border: 1px solid #E5E7EB;
}
.cat-subtab {
  padding: 8px 16px; border: none;
  background: transparent; border-radius: 8px;
  cursor: pointer; font-weight: 600; font-size: 13px;
  color: #6B7280; transition: all .15s;
}
.cat-subtab:hover { background: var(--card-bg); color: #1F2937; }
.cat-subtab.active {
  background: #6750A4; color: #FFF;
  box-shadow: 0 2px 6px rgba(103, 80, 164,0.3);
}
.cat-toolbar {
  display: flex; gap: 10px; margin-bottom: 14px;
  flex-wrap: wrap; align-items: center;
  padding: 12px; background: #F9FAFB;
  border-radius: 10px;
}
.cat-toolbar input, .cat-toolbar select {
  padding: 8px 12px; border: 1px solid #D1D5DB;
  border-radius: 8px; font-size: 13px;
  background: var(--card-bg);
}
.cat-toolbar input:focus, .cat-toolbar select:focus {
  outline: none; border-color: #6750A4;
  box-shadow: 0 0 0 3px rgba(103, 80, 164,0.15);
}
.cat-count {
  padding: 8px 0; color: #6B7280;
  font-size: 12px; font-weight: 600;
}
.cat-row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.cat-row-actions button {
  border: none; background: transparent;
  cursor: pointer; padding: 6px 10px;
  border-radius: 6px; font-size: 16px;
  transition: background .15s;
}
.cat-row-actions button:hover { background: #FFF7ED; }

/* ------- Forms modals ------- */
.modal-large { max-width: 700px; }
.modal-card form label {
  display: block; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; color: #4B5563;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.modal-card form input,
.modal-card form select,
.modal-card form textarea {
  display: block; width: 100%; box-sizing: border-box;
  padding: 10px 12px; margin-top: 6px;
  border: 1px solid #D1D5DB; border-radius: 8px;
  font-size: 14px; font-weight: 400;
  text-transform: none; letter-spacing: normal;
  font-family: inherit;
  background: var(--card-bg);
  transition: border-color .15s, box-shadow .15s;
}
.modal-card form input:focus,
.modal-card form select:focus,
.modal-card form textarea:focus {
  outline: none; border-color: #6750A4;
  box-shadow: 0 0 0 3px rgba(103, 80, 164,0.15);
}
.modal-card form input[readonly] { background: #F3F4F6; color: #6B7280; }
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid #F3F4F6;
}

/* ------- Games stats ------- */
.games-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.game-stat-card {
  background: var(--card-bg); padding: 16px;
  border-radius: 12px; border: 1px solid #E5E7EB;
  transition: transform .15s, box-shadow .15s;
}
.game-stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.game-stat-card .g-name {
  font-weight: 700; font-size: 15px; color: #6750A4;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid #F3F4F6;
}
.game-stat-card .g-stat-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 4px 0;
  font-size: 13px;
}
.game-stat-card .g-stat-row span { color: #6B7280; }
.game-stat-card .g-stat-row b { color: #1F2937; font-weight: 700; }
.game-stat-card .g-best { color: #16A34A; }

/* ------- Games leaderboards ------- */
.games-rankings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.game-rank-card {
  background: var(--card-bg); padding: 16px;
  border-radius: 12px; border: 1px solid #E5E7EB;
}
.game-rank-card .g-title {
  font-weight: 700; font-size: 15px;
  margin-bottom: 12px; color: #1F2937;
  padding-bottom: 8px; border-bottom: 2px solid #6750A4;
}
.g-leaderboard { list-style: none; padding: 0; margin: 0; }
.g-leaderboard .g-rank-row {
  display: grid; grid-template-columns: 32px 1fr auto 30px;
  gap: 10px; padding: 8px 6px;
  border-bottom: 1px solid #F9FAFB;
  align-items: center; font-size: 13px;
}
.g-leaderboard .g-rank-row:last-child { border-bottom: none; }
.g-leaderboard .g-rank-row:hover { background: #FFF7ED; }
.g-leaderboard .g-rank-row.rank-1 { background: linear-gradient(90deg, #FFF7ED, #FFFBEB); }
.g-leaderboard .g-rank {
  font-weight: 800; color: #9CA3AF; text-align: center;
  font-size: 14px;
}
.g-leaderboard .rank-1 .g-rank { color: #F59E0B; font-size: 18px; }
.g-leaderboard .rank-2 .g-rank { color: #6B7280; }
.g-leaderboard .rank-3 .g-rank { color: #B45309; }
.g-leaderboard .g-pseudo { font-weight: 600; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-leaderboard .g-score {
  font-weight: 800; color: #16A34A;
  text-align: right; font-variant-numeric: tabular-nums;
}
.g-leaderboard .g-del-btn {
  border: none; background: transparent;
  cursor: pointer; padding: 2px 6px;
  border-radius: 4px; font-size: 14px;
  color: #9CA3AF; opacity: 0;
  transition: opacity .15s;
}
.g-leaderboard .g-rank-row:hover .g-del-btn { opacity: 1; }
.g-leaderboard .g-del-btn:hover { background: #FEE2E2; color: #DC2626; }

/* ------- Garde planner ------- */
.garde-toolbar {
  display: flex; gap: 10px; margin-bottom: 16px;
  flex-wrap: wrap; align-items: center;
  padding: 12px; background: #F9FAFB; border-radius: 10px;
}
.garde-toolbar input[type="date"] {
  padding: 6px 10px; border: 1px solid #D1D5DB;
  border-radius: 6px; font-size: 13px;
}
.garde-card {
  display: grid; grid-template-columns: 2fr 110px 2fr 1.2fr 50px;
  gap: 12px; align-items: center; padding: 12px 14px;
  background: var(--card-bg); border: 1px solid #E5E7EB;
  border-radius: 10px; margin-bottom: 6px;
}
.garde-card .g-name { font-weight: 700; color: #1F2937; }
.garde-card .g-type {
  padding: 4px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700;
  text-align: center; color: #FFF; text-transform: uppercase;
}
.garde-card .g-type.type-jour { background: #16A34A; }
.garde-card .g-type.type-nuit { background: #1E293B; }
.garde-card .g-type.type-weekend { background: #3B82F6; }
.garde-card .g-type.type-jour_ferie { background: #DC2626; }
.garde-card .g-dates { font-size: 13px; color: #4B5563; }
.garde-card .g-tel { font-size: 12px; color: #6B7280; }

/* Phase Owners 2026-05-20 — tab admin owners */
.adm-owner-row {
  background: var(--card-bg); border: 1px solid #E5E7EB; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 10px;
}
.adm-owner-row-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px;
}
.adm-owner-table-pill {
  background: #FFF7ED; color: #C2410C; padding: 3px 9px;
  border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.adm-owner-place-id { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: #4B5563; }
.adm-owner-status { padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.adm-owner-status-pending { background: #FEF3C7; color: #92400E; }
.adm-owner-status-approved { background: #DCFCE7; color: #166534; }
.adm-owner-status-rejected { background: #FEE2E2; color: #991B1B; }
.adm-owner-date { margin-left: auto; font-size: 12px; color: #6B7280; }
.adm-owner-row-body {
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px;
}
.adm-owner-user { font-size: 13px; color: #1F2937; }
.adm-owner-desc { font-size: 13px; color: #4B5563; padding: 6px 10px; background: #F9FAFB; border-radius: 6px; }
.adm-owner-reject { font-size: 12px; color: #991B1B; padding: 6px 10px; background: #FEE2E2; border-radius: 6px; }
.adm-owner-doc-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  background: #F3F4F6; border-radius: 6px; color: #1F2937; text-decoration: none;
  font-size: 12px; font-weight: 700;
}
.adm-owner-doc-img { max-width: 180px; max-height: 130px; border-radius: 6px; display: block; }
.adm-owner-row-actions { display: flex; gap: 8px; }
.adm-owner-btn-ok, .adm-owner-btn-ko {
  appearance: none; border: none; padding: 8px 14px; border-radius: 8px;
  font-weight: 800; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.adm-owner-btn-ok { background: #16A34A; color: #fff; }
.adm-owner-btn-ok:hover { background: #15803D; }
.adm-owner-btn-ko { background: #DC2626; color: #fff; }
.adm-owner-btn-ko:hover { background: #B91C1C; }
.adm-owner-btn-ok:disabled, .adm-owner-btn-ko:disabled { opacity: 0.5; cursor: not-allowed; }

/* Reject reason modal (remplace window.prompt natif) */
.adm-owner-reject-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: admOwnerRejectFadeIn 0.15s ease-out;
}
@keyframes admOwnerRejectFadeIn { from { opacity: 0; } to { opacity: 1; } }
.adm-owner-reject-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.adm-owner-reject-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  max-width: 480px; width: 100%;
  padding: 22px 22px 18px;
  animation: admOwnerRejectSlideUp 0.18s ease-out;
}
@keyframes admOwnerRejectSlideUp { from { transform: translateY(8px); } to { transform: translateY(0); } }
.adm-owner-reject-title {
  margin: 0 0 8px; font-size: 17px; font-weight: 800; color: #991B1B;
  display: flex; align-items: center; gap: 8px;
}
.adm-owner-reject-title > i { color: #DC2626; }
.adm-owner-reject-sub { margin: 0 0 14px; font-size: 13px; color: #4B5563; line-height: 1.45; }
.adm-owner-reject-ta {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px;
  border: 1.5px solid #E5E7EB; border-radius: 8px;
  font-family: inherit; font-size: 14px; color: #1F2937;
  resize: vertical; min-height: 90px;
  transition: border-color 0.15s ease;
}
.adm-owner-reject-ta:focus { outline: none; border-color: #DC2626; }
.adm-owner-reject-meta { margin: 6px 0 14px; text-align: right; }
.adm-owner-reject-count { font-size: 11px; color: #6B7280; font-variant-numeric: tabular-nums; }
.adm-owner-reject-actions { display: flex; gap: 10px; justify-content: flex-end; }
.adm-owner-reject-cancel, .adm-owner-reject-confirm {
  padding: 9px 16px; border-radius: 8px; border: none;
  font-weight: 700; font-size: 14px; cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.adm-owner-reject-cancel { background: #F3F4F6; color: #374151; }
.adm-owner-reject-cancel:hover { background: #E5E7EB; }
.adm-owner-reject-confirm { background: #DC2626; color: #fff; }
.adm-owner-reject-confirm:hover { background: #B91C1C; }
.adm-owner-reject-confirm > i { color: inherit; }

/* ════════════════════════════════════════════════════════════════════════
   Sprint C 2026-05-21 — Admin Contact tab
   ════════════════════════════════════════════════════════════════════════ */

.admin-tab-badge {
  display: inline-block;
  margin-left: 4px;
  background: #DC3545;
  color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.admin-subtabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  margin-bottom: 12px;
}
.admin-subtab {
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
  color: var(--text);
  transition: all .15s ease-out;
}
.admin-subtab:hover { background: rgba(103, 80, 164, .06); border-color: rgba(103, 80, 164, .25); }
.admin-subtab.active {
  background: #6750A4; color: #fff;
  border-color: #6750A4;
}
.admin-subtab-badge {
  display: inline-block;
  background: rgba(255,255,255,.25);
  color: inherit;
  font-size: 11px; font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.admin-subtab:not(.active) .admin-subtab-badge {
  background: #DC3545; color: #fff;
}

.adm-contact-row {
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.adm-contact-head {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0,0,0,.08);
}
.adm-contact-cat {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  background: rgba(103, 80, 164, .12);
  color: #B34D00;
  padding: 3px 10px; border-radius: 999px;
}
.adm-contact-status {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.adm-contact-status.status-open      { background: rgba(255, 165, 0, .15); color: #b35700; }
.adm-contact-status.status-responded { background: rgba(40, 167, 69, .15); color: #1d7d35; }
.adm-contact-status.status-closed    { background: rgba(108, 117, 125, .15); color: #555; }
.adm-contact-user { font-size: 12px; color: #555; }
.adm-contact-user i { color: #888; margin-right: 4px; }
.adm-contact-date { margin-left: auto; font-size: 11px; }
.adm-contact-body {
  font-size: 14px; line-height: 1.5; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
  padding: 4px 0;
}
.adm-contact-resp {
  margin-top: 10px;
  background: rgba(40, 167, 69, .06);
  border-left: 3px solid #28a745;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px; line-height: 1.45;
}
.adm-contact-resp strong { color: #1d7d35; }
.adm-contact-resp div { margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.adm-contact-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

.adm-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.adm-btn.primary { background: #6750A4; color: #fff; }
.adm-btn.primary:hover { background: #4F378B; }
.adm-btn.ghost { background: rgba(0,0,0,.05); color: var(--text); border: 1px solid rgba(0,0,0,.1); }
.adm-btn.ghost:hover { background: rgba(0,0,0,.08); }
.adm-btn:disabled { opacity: .5; cursor: not-allowed; }

.adm-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.adm-modal-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 22px 18px;
  max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 12px 36px rgba(0,0,0,.25);
}
.adm-modal-card h3 {
  margin: 0 0 6px;
  font-size: 18px; font-weight: 900;
  color: var(--text);
}
.adm-modal-meta {
  font-size: 12px; color: #6750A4;
  font-weight: 700;
  margin-bottom: 12px;
}
.adm-modal-orig {
  background: rgba(0,0,0,.04);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
}
.adm-modal-orig strong { font-size: 11px; color: #777; text-transform: uppercase; letter-spacing: .04em; }
.adm-modal-orig div { margin-top: 4px; white-space: pre-wrap; word-break: break-word; color: var(--text); }
.adm-modal-card label {
  display: block;
  font-size: 13px; font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.adm-modal-card textarea {
  width: 100%; box-sizing: border-box;
  border: 1.5px solid #E5E5EA;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit; font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  min-height: 100px;
}
.adm-modal-card textarea:focus {
  outline: none;
  border-color: #6750A4;
  box-shadow: 0 0 0 3px rgba(103, 80, 164, .12);
}
.adm-counter {
  font-size: 11px; color: #888; text-align: right;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 10px;
}
.adm-modal-err {
  font-size: 13px; color: #DC3545;
  background: rgba(220, 53, 69, .08);
  padding: 8px 10px; border-radius: 8px; margin: 0 0 10px;
}
.adm-modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════════════════
   Sprint D SOS 2026-05-21 — Admin SOS tab
   ════════════════════════════════════════════════════════════════════════ */

.adm-btn.danger {
  background: #DC2626;
  color: #fff;
}
.adm-btn.danger:hover { background: #991B1B; }

.adm-sos-row {
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,.08);
  border-left: 4px solid #DC2626;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.adm-sos-row.sos-resolved      { border-left-color: #16a34a; opacity: .85; }
.adm-sos-row.sos-banned_by_admin { border-left-color: #6B7280; opacity: .8; }
.adm-sos-row.sos-abuse_reported { border-left-color: #f59e0b; background: rgba(251, 191, 36, .04); }

.adm-sos-head {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 8px;
}
.adm-sos-status {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  background: rgba(220, 38, 38, .12);
  color: #991B1B;
  padding: 3px 10px; border-radius: 999px;
}
.adm-sos-status.status-resolved      { background: rgba(22, 163, 74, .12); color: #15803d; }
.adm-sos-status.status-banned_by_admin { background: rgba(107, 114, 128, .12); color: #4B5563; }
.adm-sos-status.status-abuse_reported  { background: rgba(245, 158, 11, .15); color: #b45309; }
.adm-sos-user { font-size: 13px; color: var(--text); font-weight: 700; }
.adm-sos-user i { color: #888; margin-right: 4px; }
.adm-sos-date { margin-left: auto; font-size: 12px; }

.adm-sos-meta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: #555;
  padding: 6px 0;
  border-top: 1px dashed rgba(0,0,0,.06);
  border-bottom: 1px dashed rgba(0,0,0,.06);
  margin-bottom: 10px;
}
.adm-sos-meta-row i { color: #888; margin-right: 4px; }
.adm-sos-meta-row a { color: #6750A4; text-decoration: none; font-weight: 700; }
.adm-sos-meta-row a:hover { text-decoration: underline; }
.adm-sos-abuse { color: #b45309; font-weight: 700; }

.adm-sos-audio {
  width: 100%; height: 36px;
  margin-bottom: 10px;
}

.adm-sos-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* Detail modal — recipients table */
.adm-sos-recipients-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}
.adm-sos-recipients-table th, .adm-sos-recipients-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.adm-sos-recipients-table th {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #888;
  background: rgba(0,0,0,.03);
}
.adm-sos-recipients-table td {
  font-variant-numeric: tabular-nums;
}

.adm-sos-abuse-list {
  list-style: none; padding: 0; margin: 8px 0 0;
  font-size: 13px;
}
.adm-sos-abuse-list li {
  padding: 6px 10px;
  background: rgba(245, 158, 11, .08);
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  margin-bottom: 6px;
}
.adm-sos-abuse-list strong { color: #b45309; }

/* ---------------------------------------------------------------------
   Sprint F 2026-05-22 — Admin owner-edits (tab "Édits")
   Réutilise adm-owner-row / adm-owner-btn-ok / adm-owner-btn-ko /
   adm-owner-reject-modal (déjà définis pour owners).
   --------------------------------------------------------------------- */

.adm-edit-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.adm-edit-status-pending { background: #FFF7E0; color: #92400E; }
.adm-edit-status-approved { background: #DCFCE7; color: #166534; }
.adm-edit-status-rejected { background: #FFE5E5; color: #991B1B; }

.adm-edit-reject {
  margin: 6px 0;
  padding: 8px 10px;
  background: #FFE5E5;
  border-left: 3px solid #E53935;
  border-radius: 4px;
  font-size: 12px;
  color: #991B1B;
}
.adm-edit-reject strong { color: #7F1D1D; margin-right: 4px; }

.adm-edit-diff-host {
  margin-top: 8px;
}
.adm-edit-diff-load {
  appearance: none;
  border: 1px solid #7F67BE;
  background: rgba(103, 80, 164, .08);
  color: #C45A00;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .12s ease;
}
.adm-edit-diff-load:hover:not(:disabled) { background: rgba(103, 80, 164, .15); }
.adm-edit-diff-load:disabled { opacity: .65; cursor: wait; }

.adm-edit-diff-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 12.5px;
  background: #FFFDFA;
  border: 1px solid #F0EDE5;
  border-radius: 8px;
  overflow: hidden;
}
.adm-edit-diff-table thead {
  background: #F8F5EE;
  color: #6C6C7A;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: .04em;
}
.adm-edit-diff-table th, .adm-edit-diff-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #F0EDE5;
}
.adm-edit-diff-table tr:last-child td { border-bottom: none; }

.adm-edit-diff-row {
  background: #FFFBF5;
}
.adm-edit-diff-field {
  width: 22%;
  color: var(--text);
  font-size: 12.5px;
}
.adm-edit-diff-keyname {
  display: block;
  font-size: 10px;
  color: #9C9CAA;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-top: 2px;
}
.adm-edit-diff-before {
  color: #6C6C7A;
  text-decoration: line-through;
  text-decoration-color: rgba(229, 57, 53, .35);
  word-break: break-word;
}
.adm-edit-diff-arrow {
  width: 30px;
  text-align: center;
  color: #6750A4;
}
.adm-edit-diff-after {
  background: rgba(103, 80, 164, .08);
  color: var(--text);
  font-weight: 700;
  word-break: break-word;
}
.adm-edit-empty {
  color: #B0B0BC;
  font-style: italic;
  font-size: 11.5px;
}
