/* ===== FRICA SERVICES — ADMIN BACK OFFICE ===== */

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

:root {
  --adm-bg:       #0f1117;
  --adm-surface:  #1a1d27;
  --adm-border:   #2a2d3a;
  --adm-text:     #e2e8f0;
  --adm-muted:    #64748b;
  --adm-gold:     #ea580c;
  --adm-gold-dim: rgba(234,88,12,0.12);
  --adm-green:    #10b981;
  --adm-red:      #ef4444;
  --adm-blue:     #3b82f6;
  --adm-purple:   #8b5cf6;
  --adm-sidebar-w: 240px;
}

html, body { height: 100%; font-family: 'Inter', sans-serif; background: var(--adm-bg); color: var(--adm-text); font-size: 14px; }

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ════════════════════════════════════════════
   LOGIN
════════════════════════════════════════════ */
.adm-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(234,88,12,0.08) 0%, transparent 70%), var(--adm-bg);
  padding: 20px;
}

.adm-login-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.adm-login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--adm-gold);
  margin-bottom: 24px;
}

.adm-login-logo span { font-size: 18px; font-weight: 400; color: var(--adm-text); }
.adm-login-logo strong { color: var(--adm-gold); }
.adm-login-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.adm-login-card > p { font-size: 13px; color: var(--adm-muted); margin-bottom: 28px; }

.adm-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.adm-field label { font-size: 12px; font-weight: 600; color: var(--adm-muted); text-transform: uppercase; letter-spacing: 0.4px; }

.adm-field input {
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--adm-border);
  border-radius: 10px;
  color: var(--adm-text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.adm-field input:focus { outline: none; border-color: var(--adm-gold); }

.adm-login-error {
  color: #f87171;
  font-size: 13px;
  min-height: 0;
  margin-bottom: 4px;
}

.adm-login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #ea580c, #d97706);
  color: #78350f;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  margin-top: 8px;
  transition: all 0.2s;
}

.adm-login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(234,88,12,0.3); }
.adm-login-btn:disabled { opacity: 0.6; transform: none; }

/* ════════════════════════════════════════════
   APP LAYOUT
════════════════════════════════════════════ */
.adm-app {
  display: grid;
  grid-template-columns: var(--adm-sidebar-w) 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
.adm-sidebar {
  background: var(--adm-surface);
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.adm-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--adm-border);
}

.adm-sidebar-icon { font-size: 26px; }

.adm-sidebar-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--adm-gold);
  letter-spacing: -0.3px;
}

.adm-sidebar-sub { font-size: 11px; color: var(--adm-muted); font-weight: 500; }

.adm-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--adm-muted);
  transition: all 0.15s;
  position: relative;
}

.adm-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--adm-text); }
.adm-nav-item.active { background: var(--adm-gold-dim); color: var(--adm-gold); font-weight: 700; }

.adm-nav-icon { font-size: 16px; flex-shrink: 0; }

.adm-nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  background: var(--adm-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 100px;
  padding: 0 5px;
  display: none;
  align-items: center;
  justify-content: center;
}

.adm-nav-badge.visible { display: flex; }

.adm-sidebar-footer {
  border-top: 1px solid var(--adm-border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adm-admin-info { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }

.adm-admin-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #92400e, #ea580c);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.adm-admin-name { font-size: 13px; font-weight: 600; color: var(--adm-text); }

.adm-logout-btn {
  padding: 8px 12px;
  background: rgba(239,68,68,0.1);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.adm-logout-btn:hover { background: rgba(239,68,68,0.2); }

.adm-site-link {
  text-align: center;
  font-size: 12px;
  color: var(--adm-muted);
  transition: color 0.2s;
}

.adm-site-link:hover { color: var(--adm-gold); }

/* ════════════════════════════════════════════
   MAIN
════════════════════════════════════════════ */
.adm-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.adm-topbar {
  background: var(--adm-surface);
  border-bottom: 1px solid var(--adm-border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.adm-topbar-left { display: flex; align-items: center; gap: 14px; }

.adm-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--adm-text);
  font-size: 20px;
  padding: 4px;
}

.adm-page-title { font-size: 18px; font-weight: 800; }

.adm-topbar-right { display: flex; align-items: center; gap: 8px; }

.adm-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--adm-green);
  animation: adm-pulse 2s infinite;
}

@keyframes adm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.adm-live-label { font-size: 12px; color: var(--adm-muted); }

.adm-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--adm-border) transparent;
}

.adm-page { display: none; }
.adm-page.active { display: block; }

/* ════════════════════════════════════════════
   STATS
════════════════════════════════════════════ */
.adm-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.adm-stat-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s;
}

.adm-stat-card:hover { border-color: rgba(234,88,12,0.3); }
.adm-stat-card.accent { border-color: rgba(234,88,12,0.3); }
.adm-stat-card.green  { border-color: rgba(16,185,129,0.3); }
.adm-stat-card.blue   { border-color: rgba(59,130,246,0.3); }
.adm-stat-card.purple { border-color: rgba(139,92,246,0.3); }
.adm-stat-card.red    { border-color: rgba(239,68,68,0.3); }

.adm-stat-icon { font-size: 28px; flex-shrink: 0; }

.adm-stat-value {
  font-size: 26px;
  font-weight: 900;
  color: var(--adm-gold);
  line-height: 1;
  margin-bottom: 4px;
}

.adm-stat-card.green  .adm-stat-value { color: var(--adm-green); }
.adm-stat-card.blue   .adm-stat-value { color: var(--adm-blue); }
.adm-stat-card.purple .adm-stat-value { color: var(--adm-purple); }
.adm-stat-card.red    .adm-stat-value { color: #f87171; }

.adm-stat-label { font-size: 12px; color: var(--adm-muted); font-weight: 500; }

/* ════════════════════════════════════════════
   SECTION
════════════════════════════════════════════ */
.adm-section { margin-bottom: 32px; }

.adm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.adm-section-head h3 { font-size: 15px; font-weight: 700; }

/* ════════════════════════════════════════════
   TOOLBAR
════════════════════════════════════════════ */
.adm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.adm-toolbar-left { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }

.adm-search {
  padding: 9px 14px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  color: var(--adm-text);
  font-size: 14px;
  font-family: inherit;
  min-width: 220px;
  transition: border-color 0.2s;
}

.adm-search:focus { outline: none; border-color: var(--adm-gold); }

.adm-select {
  padding: 9px 12px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  color: var(--adm-text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.adm-select:focus { outline: none; border-color: var(--adm-gold); }

.adm-count-label { font-size: 13px; color: var(--adm-muted); white-space: nowrap; }

/* ════════════════════════════════════════════
   TABLE
════════════════════════════════════════════ */
.adm-table-wrap {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 14px;
  overflow: hidden;
  overflow-x: auto;
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.adm-table thead tr {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--adm-border);
}

.adm-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--adm-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}

.adm-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
  color: var(--adm-text);
  font-size: 13px;
}

.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.adm-loading { text-align: center; color: var(--adm-muted); padding: 32px !important; }

/* Table cells */
.adm-prop-thumb {
  width: 50px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.adm-prop-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }

.adm-prop-title { font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; display: block; }
.adm-prop-sub { font-size: 11px; color: var(--adm-muted); }

/* Status badges */
.adm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.adm-badge-pending   { background: rgba(234,88,12,0.15); color: #fbbf24; }
.adm-badge-active    { background: rgba(16,185,129,0.15); color: #34d399; }
.adm-badge-rejected  { background: rgba(239,68,68,0.15);  color: #f87171; }
.adm-badge-suspended { background: rgba(100,116,139,0.2); color: #94a3b8; border: 1px dashed #475569; }
.adm-badge-user      { background: rgba(59,130,246,0.12); color: #93c5fd; }
.adm-badge-pro       { background: rgba(139,92,246,0.12); color: #c4b5fd; }

/* Action buttons in table */
.adm-actions { display: flex; gap: 6px; align-items: center; }

.adm-btn {
  padding: 5px 12px;
  border: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.adm-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.adm-btn-approve  { background: rgba(16,185,129,0.2);  color: #34d399; }
.adm-btn-reject   { background: rgba(239,68,68,0.15);  color: #f87171; }
.adm-btn-delete   { background: rgba(239,68,68,0.15);  color: #f87171; }
.adm-btn-view     { background: rgba(234,88,12,0.15); color: #fbbf24; }
.adm-btn-pending  { background: rgba(234,88,12,0.15); color: #fbbf24; }
.adm-btn-restore { background: rgba(59,130,246,0.15); color: #93c5fd; }
.adm-btn-icon {
  padding: 5px 8px;
  background: rgba(255,255,255,0.06);
  color: var(--adm-muted);
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}

.adm-btn-icon:hover { background: rgba(255,255,255,0.12); color: var(--adm-text); }

/* ════════════════════════════════════════════
   MODAL
════════════════════════════════════════════ */
.adm-modal-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.adm-modal {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.adm-modal-close {
  position: -webkit-sticky;
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--adm-text);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s;
}

.adm-modal-close:hover { background: rgba(255,255,255,0.16); }

.adm-modal-body { padding: 24px; clear: both; }

/* ── Formulaires dans le modal (créer/modifier) ── */
.adm-modal-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.adm-modal-body .adm-field select,
.adm-modal-body .adm-field textarea {
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--adm-border);
  border-radius: 10px;
  color: var(--adm-text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  resize: vertical;
}
.adm-modal-body .adm-field select:focus,
.adm-modal-body .adm-field textarea:focus { outline: none; border-color: var(--adm-gold); }
.adm-modal-body .adm-field input[disabled] { opacity: 0.6; cursor: not-allowed; }
.adm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adm-form-error { color: #f87171; font-size: 13px; font-weight: 600; min-height: 18px; margin-bottom: 8px; }
.adm-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
@media (max-width: 560px) { .adm-form-row { grid-template-columns: 1fr; } }

/* Modal detail */
.adm-detail-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.adm-detail-photo {
  height: 180px;
  min-width: 240px;
  border-radius: 10px;
  object-fit: cover;
  background: #1f2937;
}

/* ── Carousel ── */
.adm-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  background: #111827;
}
.adm-carousel-track {
  display: flex;
  transition: transform .35s ease;
}
.adm-carousel-img {
  min-width: 100%;
  height: 260px;
  object-fit: contain;
  background: #111827;
  flex-shrink: 0;
}
.adm-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 2;
}
.adm-carousel-btn:hover { background: rgba(0,0,0,.8); }
.adm-carousel-prev { left: 10px; }
.adm-carousel-next { right: 10px; }
.adm-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.adm-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.adm-carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.adm-detail-no-photo {
  height: 160px;
  border-radius: 10px;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  margin-bottom: 20px;
}

.adm-detail-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.adm-detail-price { font-size: 18px; font-weight: 700; color: var(--adm-gold); margin-bottom: 16px; }

.adm-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.adm-detail-field { background: rgba(255,255,255,0.04); border-radius: 8px; padding: 12px; }
.adm-detail-field-label { font-size: 11px; color: var(--adm-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.adm-detail-field-value { font-size: 14px; font-weight: 600; }

.adm-detail-desc { font-size: 14px; color: var(--adm-muted); line-height: 1.6; margin-bottom: 20px; }

.adm-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-detail-btn { flex: 1; padding: 12px; border-radius: 10px; border: none; font-size: 14px; font-weight: 700; cursor: pointer; min-width: 120px; transition: all 0.2s; }
.adm-detail-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.adm-detail-btn-approve { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.adm-detail-btn-reject  { background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.adm-detail-btn-delete  { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

/* ════════════════════════════════════════════
   CONFIRM MODAL
════════════════════════════════════════════ */
.adm-confirm-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: adm-fade-in 0.15s ease;
}

@keyframes adm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.adm-confirm {
  background: #1a1d27;
  border: 1px solid #2a2d3a;
  border-radius: 20px;
  padding: 36px 32px 28px;
  width: 360px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  animation: adm-confirm-in 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes adm-confirm-in {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.adm-confirm-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.adm-confirm-title {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.adm-confirm-msg {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 28px;
}

.adm-confirm-actions {
  display: flex;
  gap: 12px;
}

.adm-confirm-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #2a2d3a;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.adm-confirm-cancel:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; }

.adm-confirm-ok {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.15s, transform 0.15s;
}
.adm-confirm-ok:hover { opacity: 0.88; transform: translateY(-1px); }
.adm-confirm-ok:active { transform: translateY(0); }

.adm-confirm.type-suspend .adm-confirm-ok {
  background: linear-gradient(135deg, #ea580c, #d97706);
  color: #1a1100;
}
.adm-confirm.type-suspend { border-top: 3px solid #ea580c; }

.adm-confirm.type-block .adm-confirm-ok {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
}
.adm-confirm.type-block { border-top: 3px solid #ef4444; }

.adm-confirm.type-delete .adm-confirm-ok {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
}
.adm-confirm.type-delete { border-top: 3px solid #ef4444; }

/* ════════════════════════════════════════════
   TOAST
════════════════════════════════════════════ */
.adm-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2937;
  color: var(--adm-text);
  border: 1px solid var(--adm-border);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: adm-toast-in 0.25s ease;
}

@keyframes adm-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.adm-toast.success { border-color: rgba(16,185,129,0.4); }
.adm-toast.error   { border-color: rgba(239,68,68,0.4); }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 900px) {
  .adm-app { grid-template-columns: 1fr; }

  .adm-sidebar {
    position: fixed;
    top: 0; right: auto; bottom: 0; left: 0;
    width: var(--adm-sidebar-w);
    z-index: 200;
    transform: translateX(-100%);
  }

  .adm-sidebar.open { transform: translateX(0); }
  .adm-menu-toggle { display: flex; }
  .adm-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .adm-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .adm-stats-grid { grid-template-columns: 1fr 1fr; }
  .adm-content { padding: 16px; }
  .adm-topbar { padding: 0 16px; }
}
