/* ==========================================================================
   Adwebgrow Connect — Superadmin premium theme (redesign 2026-09-30)
   Extends base.css tokens/classes (.btn, .form-group, .form-control, .card,
   .table, .flash-*, .badge, .stat-grid, .stat-card, .page-head, .field-error).
   No :root token is redefined here.
   ========================================================================== */

/* ---------- shell ---------- */
.admin-body {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(20, 184, 166, .06), transparent 60%),
    var(--awc-bg);
}
.admin-wrap {
  display: flex;
  min-height: 100vh;
}
.admin-scrim {
  display: none;
}

/* ---------- sidebar ---------- */
.admin-sidebar {
  width: 268px;
  flex: 0 0 268px;
  background:
    radial-gradient(420px 300px at 20% 0%, rgba(20, 184, 166, .14), transparent 65%),
    linear-gradient(180deg, #0C3D4B 0%, #092E39 55%, #072630 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 60;
  border-right: 1px solid rgba(255, 255, 255, .07);
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 18px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.admin-brand-logo {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  overflow: hidden;
}
.admin-brand-logo img { display: block; }
.admin-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.admin-brand-name { font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap; }
.admin-brand-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--awc-teal);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px 10px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.admin-nav-label {
  margin: 14px 10px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
}
.admin-nav-label:first-child { margin-top: 2px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  position: relative;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.admin-nav-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .07);
  transition: background .2s ease;
}
.admin-nav-icon svg { width: 16px; height: 16px; }
.admin-nav a:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
  transform: translateX(3px);
}
.admin-nav a:hover .admin-nav-icon { background: rgba(255, 255, 255, .13); }
.admin-nav a.active {
  background: linear-gradient(92deg, var(--awc-teal) 0%, var(--awc-teal-dark) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(20, 184, 166, .38);
}
.admin-nav a.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, .8);
}
.admin-nav a.active .admin-nav-icon { background: rgba(255, 255, 255, .2); }

.admin-nav-foot {
  padding: 14px 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-nav-foot a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 11px;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  font-size: 13.5px;
  transition: background .2s ease, color .2s ease;
}
.admin-nav-foot a svg { width: 16px; height: 16px; }
.admin-nav-foot a:hover { background: rgba(255, 255, 255, .07); color: #fff; }

/* ---------- main / topbar ---------- */
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--awc-line);
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.admin-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--awc-line);
  background: #fff;
  color: var(--awc-ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.admin-burger svg { width: 20px; height: 20px; }
.admin-topbar-heading { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.admin-topbar-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.015em;
  color: var(--awc-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-topbar-date { font-size: 12.5px; color: var(--awc-muted); }
.admin-topbar-user { display: flex; align-items: center; gap: 12px; }
.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--awc-teal), var(--awc-deep));
  box-shadow: 0 6px 16px rgba(20, 184, 166, .35);
}
.admin-user-meta { display: flex; flex-direction: column; line-height: 1.3; }
.admin-user-name { font-weight: 700; font-size: 14px; color: var(--awc-ink); }
.admin-user-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--awc-teal-dark);
}
.admin-topbar-user .btn svg { width: 15px; height: 15px; }
.admin-topbar-user .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-content {
  padding: 30px 30px 20px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}
.admin-foot {
  padding: 14px 30px 22px;
  font-size: 12.5px;
  color: var(--awc-muted);
  text-align: center;
}

/* ---------- page head ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--awc-ink);
}
.page-sub {
  margin: 5px 0 0;
  color: var(--awc-muted);
  font-size: 14px;
}
.page-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- tiny utilities used by some views ---------- */
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px !important; }
.empty-icon { font-size: 40px; margin-bottom: 12px; }

/* ---------- cards ---------- */
.card {
  margin-bottom: 0;
  border: 1px solid var(--awc-line);
  border-radius: var(--awc-radius);
  background: var(--awc-card);
  box-shadow: var(--awc-shadow);
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(11, 58, 72, .13);
}
.card-title {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--awc-ink);
}
.card-sub {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--awc-muted);
}

/* ---------- KPI stat cards ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--awc-card);
  border: 1px solid var(--awc-line);
  border-radius: var(--awc-radius);
  box-shadow: var(--awc-shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card::after {
  content: '';
  position: absolute;
  inset: auto -30% -55% auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--kpi-tint, rgba(20, 184, 166, .1)), transparent 70%);
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(11, 58, 72, .13);
}
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--kpi-grad, linear-gradient(135deg, var(--awc-teal), var(--awc-teal-dark)));
  box-shadow: 0 8px 18px rgba(11, 58, 72, .18);
  flex: 0 0 40px;
}
.stat-icon svg { width: 19px; height: 19px; }
.stat-delta {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #E7F7F3;
  color: #0B7A5F;
  white-space: nowrap;
}
.stat-delta.down { background: #FDECEA; color: #B3362B; }
.stat-delta.flat { background: #EEF3F2; color: var(--awc-muted); }
.stat-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--awc-muted);
}
.stat-value {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--awc-ink);
  line-height: 1.15;
}
.stat-meta {
  display: block;
  font-size: 12.5px;
  color: var(--awc-muted);
}

/* ---------- tables ---------- */
.table-card { padding: 0; overflow: hidden; }
.table-card .card-title,
.table-card .card-sub { padding: 22px 22px 0; }
.table-card .card-sub { padding-top: 0; margin-bottom: 6px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table thead th {
  position: sticky;
  top: 0;
  background: #F2F7F6;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--awc-muted);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--awc-line);
  white-space: nowrap;
  z-index: 1;
}
.table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #EFF4F3;
  vertical-align: middle;
}
.table tbody tr { transition: background .14s ease; }
.table tbody tr:hover { background: #F7FBFA; }
.table tbody tr:last-child td { border-bottom: none; }
.table tfoot td { padding: 14px 16px; font-weight: 700; background: #F7FBFA; }
.nowrap { white-space: nowrap; }
.actions-col { white-space: nowrap; text-align: right; }
.inline-form { display: inline; }
.table .btn { margin: 2px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.audit-details { max-width: 340px; color: var(--awc-muted); font-size: 13px; }
.table code {
  font-size: 12.5px;
  background: #EFF4F3;
  border: 1px solid var(--awc-line);
  border-radius: 7px;
  padding: 2px 8px;
  color: var(--awc-deep);
}

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .01em;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 6px;
}
.badge-green { background: #E2F6EE; color: #0B7A5F; }
.badge-red   { background: #FDECEA; color: #B3362B; }
.badge-teal  { background: #DFF4F1; color: var(--awc-teal-dark); }
.badge-blue  { background: #E4F0FD; color: #1D5FBF; }
.badge-amber { background: #FDF3E2; color: #A86A0B; }
.badge-purple{ background: #EFE7FB; color: #6B3FBF; }
.badge-muted { background: #EDF2F1; color: var(--awc-muted); }

/* ---------- buttons (refinements on base .btn) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  font-weight: 600;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { box-shadow: 0 8px 20px rgba(11, 58, 72, .16); }
.btn:active { transform: scale(.97); }
.btn svg { width: 15px; height: 15px; }

/* ---------- forms ---------- */
.form-card { max-width: 680px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .form-group:last-child:nth-child(3) { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.sticky-actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, var(--awc-bg) 40%);
  padding: 14px 0 4px;
}
.form-control {
  border-radius: 11px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.form-control:focus {
  border-color: var(--awc-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .18);
  outline: none;
}
.hint { font-size: 12.5px; color: var(--awc-muted); font-weight: 400; }
.checkbox-group { display: flex; align-items: flex-end; padding-bottom: 10px; }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--awc-teal); }

/* ---------- filters bar ---------- */
.filters {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 18px;
  background: var(--awc-card);
  border: 1px solid var(--awc-line);
  border-radius: var(--awc-radius);
  padding: 16px 18px;
  box-shadow: var(--awc-shadow);
}
.filters .form-group { margin-bottom: 0; min-width: 190px; flex: 1; }
.filters .form-actions { margin-top: 0; }

/* ---------- empty state ---------- */
.empty { padding: 30px 10px; color: var(--awc-muted); text-align: center; }
.empty-state { padding: 40px 20px; text-align: center; }
.empty-state .empty-svg { width: 60px; height: 60px; margin: 0 auto 16px; color: #B9C9C5; display: block; }
.empty-state .empty-svg svg { width: 100%; height: 100%; }
.empty-state h3 { margin: 0 0 6px; font-size: 16px; color: var(--awc-ink); }
.empty-state p { margin: 0; font-size: 14px; color: var(--awc-muted); }

/* ---------- pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 18px 4px 4px; flex-wrap: wrap; }
.pagination .page {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid var(--awc-line);
  background: #fff;
  color: var(--awc-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 0 12px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.pagination a.page:hover { border-color: var(--awc-teal); box-shadow: 0 6px 16px rgba(20, 184, 166, .18); }
.pagination .page.current {
  background: linear-gradient(135deg, var(--awc-deep), #0d4554);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 58, 72, .3);
}

/* ---------- chart ---------- */
.chart-card .chart { width: 100%; height: auto; display: block; }
.chart-bar { fill: url(#awc-bar-grad); transition: opacity .18s ease; }
.chart-bar:hover { opacity: .75; }
.chart-label { font-size: 11px; fill: var(--awc-muted); }
.chart-axis { stroke: var(--awc-line); stroke-width: 1; }
.chart-grid { stroke: #EFF4F3; stroke-width: 1; }

/* ---------- settings ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.settings-group .card-title { padding-bottom: 14px; border-bottom: 1px solid var(--awc-line); margin-bottom: 18px; }
.test-result { border-left: 4px solid var(--awc-teal); }
.test-result.test-fail { border-left-color: var(--awc-coral); }

/* ---------- wallets ---------- */
.wallet-credit-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; }
.wallet-credit-form .form-actions { margin-top: 0; grid-column: 1 / -1; }

/* ---------- brand swatch ---------- */
.brand-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--awc-line);
  vertical-align: -3px;
  margin-right: 6px;
}

/* ---------- payout reject note ---------- */
.reject-note {
  display: inline-block;
  width: 200px;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 10px;
  vertical-align: middle;
  margin-right: 4px;
}
@media (max-width: 640px) {
  .reject-note { width: 100%; margin: 0 0 6px; }
}

/* ---------- flash (fallback; JS converts these to toasts) ---------- */
.flash {
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  border: 1px solid var(--awc-line);
  background: #fff;
  box-shadow: var(--awc-shadow);
}

/* ---------- ticket thread ---------- */
.ticket-msg {
  border: 1px solid var(--awc-line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
}
.ticket-msg.staff { background: #F0FAF8; border-color: #CDEBE5; }
.ticket-msg-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--awc-muted); margin-bottom: 8px; }

/* ============================================================
   Animation system — fadeUp, fadeIn, slideInRight, shimmer,
   pulse-soft, scaleIn. All motion honours prefers-reduced-motion.
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(28px); }
}
@keyframes shimmer {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}
@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.fade-up {
  animation: fadeUp .55s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: var(--d, 0ms);
}
.scale-in {
  animation: scaleIn .4s cubic-bezier(.22, .61, .36, 1) both;
  animation-delay: var(--d, 0ms);
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- toasts ---------- */
#awc-toasts {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(370px, calc(100vw - 36px));
  pointer-events: none;
}
.awc-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #10222E;
  color: #fff;
  padding: 13px 14px;
  border-radius: 12px;
  border-left: 4px solid var(--awc-teal);
  box-shadow: 0 16px 40px rgba(11, 58, 72, .28);
  font-size: 14px;
  line-height: 1.45;
  animation: slideInRight .38s cubic-bezier(.22, .61, .36, 1) both;
}
.awc-toast.success { border-left-color: var(--awc-teal); }
.awc-toast.error   { border-left-color: var(--awc-coral); }
.awc-toast.info    { border-left-color: #5AA9E6; }
.awc-toast.leaving { animation: toastOut .26s ease both; }
.awc-toast .toast-icon { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; }
.awc-toast .toast-icon svg { width: 20px; height: 20px; display: block; }
.awc-toast.success .toast-icon { color: var(--awc-teal); }
.awc-toast.error .toast-icon   { color: var(--awc-coral); }
.awc-toast.info .toast-icon    { color: #5AA9E6; }
.awc-toast .toast-msg { flex: 1; min-width: 0; }
.awc-toast .toast-close {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .55);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 6px;
}
.awc-toast .toast-close:hover { color: #fff; }

/* ---------- skeleton shimmer ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #E9F1EF;
  border-radius: 8px;
  min-height: 18px;
  color: transparent !important;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite linear;
}
.pulsing { animation: pulseSoft 1.6s ease-in-out infinite; }

/* ---------- submit button loading spinner ---------- */
.btn .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-ghost .btn-spinner,
.btn:not(.btn-primary):not(.btn-coral):not(.btn-danger) .btn-spinner {
  border-color: rgba(11, 58, 72, .25);
  border-top-color: var(--awc-deep);
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; }

/* ---------- focus-visible rings ---------- */
.btn:focus-visible,
.admin-nav a:focus-visible,
.pagination .page:focus-visible,
.admin-burger:focus-visible {
  outline: 2px solid var(--awc-teal);
  outline-offset: 2px;
}

/* ---------- separate admin login page (admin.adwebgrow.com/login) ---------- */
.admin-login-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(900px 480px at 15% 10%, rgba(20, 184, 166, .16), transparent 60%),
    radial-gradient(760px 520px at 88% 88%, rgba(255, 106, 77, .1), transparent 60%),
    linear-gradient(160deg, #0B3A48 0%, #0d4554 55%, #0a2f3a 100%);
}
.admin-login-wrap { width: 100%; max-width: 420px; animation: fadeUp .6s cubic-bezier(.22, .61, .36, 1) both; }
.admin-login-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 34px 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.admin-login-card h1 {
  margin: 22px 0 6px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: #0B3A48;
}
.admin-login-brand { display: flex; align-items: center; gap: 14px; }
.admin-login-brand img { border-radius: 12px; box-shadow: 0 6px 16px rgba(11, 58, 72, .18); }
.admin-login-title { font-weight: 800; font-size: 1.12rem; color: #0B3A48; line-height: 1.2; }
.admin-login-sub { font-size: .85rem; color: #64748b; }
.admin-login-hint { margin: 0 0 20px; color: #64748b; font-size: .92rem; }
.admin-login-card .flash { margin-bottom: 14px; }
.admin-login-card .form-group { margin-bottom: 14px; }
.admin-login-foot { margin: 16px 0 0; text-align: center; font-size: .88rem; }
.admin-login-foot a { color: #0E9384; text-decoration: none; font-weight: 600; }
.admin-login-foot a:hover { text-decoration: underline; }
.admin-login-note {
  margin: 18px 0 0;
  text-align: center;
  color: rgba(255, 255, 255, .55);
  font-size: .82rem;
}
@media (max-width: 480px) {
  .admin-login-card { padding: 28px 22px 24px; border-radius: 16px; }
}
.admin-login-card .btn-block { width: 100%; margin-top: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .settings-grid { grid-template-columns: 1fr; }
  .wallet-credit-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .admin-burger { display: inline-flex; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform .3s cubic-bezier(.22, .61, .36, 1);
    box-shadow: 30px 0 70px rgba(0, 0, 0, .3);
  }
  body.sidebar-open .admin-sidebar { transform: none; }
  body.sidebar-open .admin-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 25, 32, .5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 55;
    animation: fadeIn .25s ease both;
  }
  body.sidebar-open { overflow: hidden; }
  .admin-topbar { padding: 10px 16px; }
  .admin-user-meta { display: none; }
  .admin-avatar { width: 36px; height: 36px; flex-basis: 36px; font-size: 14px; }
  .admin-topbar-user .btn span { display: none; }
  .admin-content { padding: 20px 16px 12px; }
  .form-row { grid-template-columns: 1fr; }
  .wallet-credit-form { grid-template-columns: 1fr; }
  .filters .form-group { min-width: 100%; }
}

/* ---------- reduced motion: disable the whole system ---------- */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .scale-in, .awc-toast, .awc-toast.leaving,
  .skeleton::after, .pulsing, .btn .btn-spinner,
  .admin-login-wrap, body.sidebar-open .admin-scrim {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .stat-card:hover { transform: none; }
  .btn:active { transform: none; }
  .admin-nav a:hover { transform: none; }
  .admin-sidebar { transition: none; }
}
