/* INDUFAR Admin Panel */

:root {
  --adm-bg: #07101f;
  --adm-bg2: #0c1a30;
  --adm-panel: rgba(12, 28, 50, 0.92);
  --adm-panel2: rgba(8, 20, 38, 0.95);
  --adm-border: rgba(0, 196, 212, 0.12);
  --adm-border2: rgba(255, 255, 255, 0.06);
  --adm-teal: #00c8dc;
  --adm-teal2: #2dd4bf;
  --adm-teal-dim: rgba(0, 200, 220, 0.12);
  --adm-text: #e8f0fa;
  --adm-muted: #8ba3bc;
  --adm-dim: #5a7290;
  --adm-success: #34d399;
  --adm-danger: #f87171;
  --adm-warning: #fbbf24;
  --adm-radius: 14px;
  --adm-radius-sm: 10px;
  --adm-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --adm-glow: 0 0 0 1px rgba(0, 200, 220, 0.08), 0 4px 24px rgba(0, 120, 140, 0.15);
  --adm-sidebar: 248px;
  --adm-font: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

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

.adm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.adm-icon svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: block;
}

.adm-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--adm-font);
  font-size: 14px;
  color: var(--adm-text);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0, 180, 200, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(0, 100, 160, 0.1), transparent 50%),
    linear-gradient(160deg, var(--adm-bg) 0%, var(--adm-bg2) 100%);
  -webkit-font-smoothing: antialiased;
}

/* ── Login ── */
.adm-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.adm-login-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 200, 220, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 120, 180, 0.08) 0%, transparent 40%);
  pointer-events: none;
}
.adm-login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--adm-panel);
  border: 1px solid var(--adm-border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--adm-shadow), var(--adm-glow);
  backdrop-filter: blur(20px);
}
.adm-login-brand {
  text-align: center;
  margin-bottom: 28px;
}
.adm-login-logo {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
}
.adm-login-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.adm-login-sub {
  font-size: 0.75rem;
  color: var(--adm-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

/* ── Shell ── */
.adm-shell { display: flex; min-height: 100vh; }

.adm-sidebar {
  width: var(--adm-sidebar);
  flex-shrink: 0;
  background: var(--adm-panel2);
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.adm-sidebar-brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--adm-border2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.adm-sidebar-logo {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.adm-sidebar-brand-text { min-width: 0; }
.adm-sidebar-name {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-sidebar-tag {
  font-size: 0.625rem;
  color: var(--adm-teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.adm-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.adm-nav-group { margin-bottom: 16px; }
.adm-nav-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--adm-dim);
  padding: 0 10px 8px;
}
.adm-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--adm-radius-sm);
  color: var(--adm-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.18s ease;
  margin-bottom: 2px;
}
.adm-nav-link svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.75; }
.adm-nav-link:hover {
  color: var(--adm-text);
  background: rgba(255,255,255,0.04);
}
.adm-nav-link.is-active {
  color: var(--adm-teal);
  background: var(--adm-teal-dim);
  border: 1px solid var(--adm-border);
}
.adm-nav-link.is-active svg { opacity: 1; }
.adm-nav-link--muted { opacity: 0.7; }
.adm-nav-link--danger:hover { color: var(--adm-danger); background: rgba(248,113,113,0.08); }

.adm-sidebar-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--adm-border2);
}
.adm-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.adm-user-avatar {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--adm-teal), #0891b2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #042f2e;
  flex-shrink: 0;
}
.adm-user-name { font-size: 0.8125rem; font-weight: 600; line-height: 1.2; }
.adm-user-role { font-size: 0.6875rem; color: var(--adm-dim); }

/* ── Main ── */
.adm-main {
  flex: 1;
  margin-left: var(--adm-sidebar);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.adm-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(7, 16, 31, 0.85);
  border-bottom: 1px solid var(--adm-border2);
  backdrop-filter: blur(16px);
}
.adm-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-breadcrumb {
  font-size: 0.75rem;
  color: var(--adm-dim);
}
.adm-breadcrumb strong { color: var(--adm-muted); font-weight: 600; }
.adm-datetime {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--adm-muted);
}
.adm-datetime-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.adm-datetime-item svg { width: 14px; height: 14px; color: var(--adm-teal); opacity: 0.8; }
.adm-datetime-live { color: var(--adm-teal); font-weight: 600; font-variant-numeric: tabular-nums; }

.adm-content {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: calc(100vh - 57px);
}

.adm-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.adm-page-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 4px;
}
.adm-page-sub {
  font-size: 0.8125rem;
  color: var(--adm-muted);
  margin: 0;
}
.adm-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ── Cards ── */
.adm-card {
  background: var(--adm-panel);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 22px 24px;
  box-shadow: var(--adm-glow);
  margin-bottom: 0;
  width: 100%;
}
.adm-card--fill {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.adm-card--fill .adm-table-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.adm-card--fill .adm-table {
  flex: 1;
}
.adm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--adm-border2);
}
.adm-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.adm-card-title svg { width: 18px; height: 18px; color: var(--adm-teal); }

/* ── Stats ── */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 0;
  flex-shrink: 0;
}
@media (max-width: 1100px) {
  .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .adm-stats { grid-template-columns: 1fr; }
}
.adm-stat {
  background: var(--adm-panel);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--adm-glow);
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.adm-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--adm-teal), transparent);
  opacity: 0.7;
}
.adm-stat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--adm-teal-dim);
  border: 1px solid var(--adm-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.adm-stat-icon svg { width: 18px; height: 18px; color: var(--adm-teal); }
.adm-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.adm-stat-label { font-size: 0.75rem; color: var(--adm-muted); font-weight: 500; }

/* ── Table ── */
.adm-table-wrap { overflow-x: auto; border-radius: var(--adm-radius-sm); }
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.adm-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-dim);
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--adm-border2);
  white-space: nowrap;
}
.adm-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--adm-border2);
  color: var(--adm-text);
  vertical-align: middle;
}
.adm-table tbody tr:hover td { background: rgba(0, 200, 220, 0.03); }
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table .mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, monospace; font-size: 0.75rem; color: var(--adm-muted); }
.adm-table .truncate { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Forms ── */
.adm-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 16px;
}
.adm-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-dim);
  margin-bottom: 6px;
}
.adm-input, .adm-textarea, .adm-select {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--adm-radius-sm);
  border: 1px solid var(--adm-border2);
  background: rgba(0, 0, 0, 0.25);
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 0.8125rem;
  margin-bottom: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.adm-input:focus, .adm-textarea:focus, .adm-select:focus {
  outline: none;
  border-color: rgba(0, 200, 220, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 200, 220, 0.1);
}
.adm-textarea { min-height: 80px; resize: vertical; }
.adm-select { cursor: pointer; }

.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--adm-radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--adm-font);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.adm-btn svg { width: 15px; height: 15px; }
.adm-btn--primary {
  background: linear-gradient(135deg, var(--adm-teal), #0891b2);
  color: #042f2e;
  box-shadow: 0 4px 14px rgba(0, 200, 220, 0.25);
}
.adm-btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.adm-btn--ghost {
  background: rgba(255,255,255,0.04);
  color: var(--adm-muted);
  border: 1px solid var(--adm-border2);
}
.adm-btn--ghost:hover { color: var(--adm-text); border-color: var(--adm-border); }
.adm-btn--danger {
  background: rgba(248, 113, 113, 0.12);
  color: var(--adm-danger);
  border: 1px solid rgba(248, 113, 113, 0.2);
}
.adm-btn--danger:hover { background: rgba(248, 113, 113, 0.2); }
.adm-btn--sm { padding: 7px 12px; font-size: 0.75rem; }
.adm-btn--xs { padding: 5px 10px; font-size: 0.6875rem; gap: 5px; border-radius: 8px; }
.adm-btn--xs svg { width: 13px; height: 13px; }
.adm-btn--icon { padding: 7px; }
.adm-btn-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-btn-group--table { gap: 6px; }
.adm-btn-group--table .adm-btn { min-height: 30px; }

/* ── Badges ── */
.adm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.adm-badge--success { background: rgba(52,211,153,0.12); color: var(--adm-success); border: 1px solid rgba(52,211,153,0.2); }
.adm-badge--danger { background: rgba(248,113,113,0.12); color: var(--adm-danger); border: 1px solid rgba(248,113,113,0.2); }
.adm-badge--default { background: rgba(255,255,255,0.05); color: var(--adm-muted); border: 1px solid var(--adm-border2); }
.adm-badge--teal { background: var(--adm-teal-dim); color: var(--adm-teal); border: 1px solid var(--adm-border); }

/* ── Alerts ── */
.adm-alert {
  padding: 12px 16px;
  border-radius: var(--adm-radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.adm-alert--success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25); color: var(--adm-success); }
.adm-alert--info { background: var(--adm-teal-dim); border: 1px solid var(--adm-border); color: var(--adm-teal); }
.adm-alert--error { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.25); color: #f87171; }

/* ── Image preview ── */
.adm-img-preview {
  width: 100%;
  aspect-ratio: 1;
  max-width: 120px;
  border-radius: var(--adm-radius-sm);
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--adm-border2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.adm-img-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.adm-img-preview--empty { color: var(--adm-dim); font-size: 0.6875rem; text-align: center; padding: 8px; }
.adm-img-preview--sm { max-width: 56px; max-height: 56px; }
.adm-img-preview--lg { max-width: 200px; }
.adm-img-preview--wide { aspect-ratio: 16/9; max-width: 280px; }
.adm-img-cell { display: flex; align-items: center; gap: 12px; }
.adm-img-cell-info { min-width: 0; }
.adm-img-cell-name { font-weight: 600; font-size: 0.8125rem; }
.adm-img-cell-sub { font-size: 0.75rem; color: var(--adm-muted); }

.adm-preview-box {
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(0,0,0,0.2);
  border: 1px dashed var(--adm-border);
  border-radius: var(--adm-radius-sm);
}
.adm-preview-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-dim);
  margin-bottom: 10px;
}

/* ── QR preview ── */
.adm-qr-preview {
  width: 80px; height: 80px;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  border: 1px solid var(--adm-border2);
}

/* ── Grid layouts ── */
.adm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.adm-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--adm-teal);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--adm-border2);
}

.adm-field-with-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 4px;
}
.adm-media-main { min-width: 0; }
.adm-media-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}
.adm-media-path { flex: 1 1 220px; min-width: 180px; }
.adm-file-label { cursor: pointer; margin: 0; white-space: nowrap; }
.adm-file-input { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.adm-field-hint {
  font-size: 0.75rem;
  color: var(--adm-dim);
  margin: 8px 0 0;
  line-height: 1.4;
}
.adm-variant-block {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--adm-border2);
  border-radius: var(--adm-radius-sm);
  background: rgba(0, 0, 0, 0.15);
}
.adm-variant-toggle {
  margin-bottom: 10px;
}
.adm-variant-row-head {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 8px;
}
.adm-input--compact {
  padding: 7px 10px;
  font-size: 0.75rem;
  margin-bottom: 6px;
}
.adm-qr-edit-form .adm-input--compact {
  width: 100%;
}
.adm-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--adm-border2);
  border-radius: var(--adm-radius-sm);
  font-size: 0.8125rem;
  color: var(--adm-muted);
}
.adm-meta-bar strong { color: var(--adm-text); }
.adm-inline-form { display: inline; }
.adm-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--adm-border2);
}
.adm-pagination-info {
  font-size: 0.75rem;
  color: var(--adm-dim);
  font-variant-numeric: tabular-nums;
}
.adm-form-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.adm-form-toolbar h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.adm-select-inline {
  width: auto;
  min-width: 140px;
  margin-bottom: 0;
}
.adm-card--form,
.adm-card--narrow {
  width: 100%;
}

.adm-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--adm-border2);
  border-radius: var(--adm-radius-sm);
}
.adm-bulk-bar .adm-select-inline { min-width: 200px; margin-bottom: 0; }
.adm-check-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--adm-muted);
  cursor: pointer;
  user-select: none;
  padding-right: 8px;
  border-right: 1px solid var(--adm-border2);
  margin-right: 4px;
}
.adm-col-check { width: 42px; text-align: center; }
.adm-col-check input,
.adm-check-all input {
  width: 16px;
  height: 16px;
  accent-color: var(--adm-teal);
  cursor: pointer;
  vertical-align: middle;
}
.adm-hidden-forms { display: none; }
.adm-table-actions { white-space: nowrap; }

/* ── Action links (legacy + table links) ── */
.adm-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--adm-border2);
  background: rgba(255,255,255,0.04);
  color: var(--adm-teal);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--adm-font);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.adm-action-link:hover {
  color: var(--adm-text);
  border-color: var(--adm-border);
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}
.adm-action-link svg { width: 13px; height: 13px; max-width: 13px; max-height: 13px; }
.adm-action-link--danger {
  color: var(--adm-danger);
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
}
.adm-action-link--danger:hover {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

/* ── Modal ── */
.adm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 8, 18, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.adm-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.adm-modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--adm-panel);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow), var(--adm-glow);
}
.adm-modal--wide { max-width: 640px; }
.adm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--adm-border2);
}
.adm-modal-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.adm-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--adm-border2);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--adm-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.adm-modal-close:hover { color: var(--adm-text); border-color: var(--adm-border); }
.adm-modal-body { padding: 18px 20px 22px; }
.adm-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 20px 20px;
}
.adm-qr-preview-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: zoom-in;
  display: block;
}
.adm-qr-preview-btn .adm-qr-preview { display: block; }
.adm-qr-preview-large {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}
.adm-modal-meta {
  font-size: 0.8125rem;
  color: var(--adm-muted);
  line-height: 1.5;
  word-break: break-all;
}
.adm-modal-meta strong { color: var(--adm-text); }

/* ── Responsive ── */

/* ── Legacy class compatibility ── */
.admin-card { background: var(--adm-panel); border: 1px solid var(--adm-border); border-radius: var(--adm-radius); padding: 22px 24px; box-shadow: var(--adm-glow); margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.admin-table th { text-align: left; padding: 11px 14px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--adm-dim); background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--adm-border2); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--adm-border2); color: var(--adm-text); vertical-align: middle; }
.admin-table tbody tr:hover td { background: rgba(0, 200, 220, 0.03); }
.admin-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--adm-radius-sm); border: none; cursor: pointer; font-family: var(--adm-font); font-size: 0.8125rem; font-weight: 600; text-decoration: none; }
.admin-btn-primary, .adm-btn--primary { background: linear-gradient(135deg, var(--adm-teal), #0891b2); color: #042f2e; box-shadow: 0 4px 14px rgba(0, 200, 220, 0.25); border: none; }
.admin-btn-danger, .adm-btn--danger { background: rgba(248, 113, 113, 0.12); color: var(--adm-danger); border: 1px solid rgba(248, 113, 113, 0.2); }
.adm-inline-form { display: inline-flex; margin: 0; }
.adm-inline-form .adm-btn { margin: 0; }
.admin-input, .admin-textarea, .admin-select { width: 100%; padding: 10px 13px; border-radius: var(--adm-radius-sm); border: 1px solid var(--adm-border2); background: rgba(0, 0, 0, 0.25); color: var(--adm-text); font-family: var(--adm-font); font-size: 0.8125rem; margin-bottom: 14px; }
.admin-label { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--adm-dim); margin-bottom: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--adm-panel); border: 1px solid var(--adm-border); border-radius: var(--adm-radius); padding: 18px 20px; box-shadow: var(--adm-glow); }
.stat-card .num { font-size: 1.75rem; font-weight: 700; color: var(--adm-teal); font-variant-numeric: tabular-nums; }
.admin-body { margin: 0; min-height: 100vh; font-family: var(--adm-font); color: var(--adm-text); background: linear-gradient(160deg, var(--adm-bg) 0%, var(--adm-bg2) 100%); }
.admin-sidebar, .admin-main, .admin-nav { display: none; }

@media (max-width: 900px) {
  .adm-sidebar { transform: translateX(-100%); transition: transform 0.25s; }
  .adm-sidebar.is-open { transform: none; }
  .adm-main { margin-left: 0; }
  .adm-topbar { padding: 12px 16px; }
  .adm-content { padding: 16px; }
  .adm-datetime { display: none; }
  .adm-grid-2 { grid-template-columns: 1fr; }
  .adm-field-with-preview { grid-template-columns: 1fr; }
}

