/* ============================================
   SUPERADMIN DASHBOARD — Premium Dark UI
   ============================================ */

/* Body & Layout */
.sa-body {
  margin: 0;
  padding: 0;
  background: #09090b;
  color: #fafafa;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Sidebar ---- */
.sa-sidebar {
  width: 260px;
  min-width: 260px;
  background: #0f0f12;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sa-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sa-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d4af37, #f3e5ab);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #09090b;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212,175,55,0.25);
}

.sa-logo-text {
  display: flex;
  flex-direction: column;
}

.sa-logo-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.sa-logo-label {
  font-size: 11px;
  font-weight: 600;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Nav */
.sa-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.sa-nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 12px 6px 12px;
}

.sa-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-family: inherit;
  margin-bottom: 2px;
}

.sa-nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: #e4e4e7;
}

.sa-nav-item.active {
  background: rgba(212,175,55,0.12);
  color: #d4af37;
  font-weight: 600;
}

.sa-nav-item.active svg {
  stroke: #d4af37;
}

/* Sidebar Footer */
.sa-sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sa-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: #71717a;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.sa-logout-btn:hover {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

/* ---- Main Content ---- */
.sa-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
}

/* Top Bar */
.sa-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.sa-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  padding: 4px;
}

.sa-topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -0.3px;
}

.sa-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sa-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
  animation: sa-pulse 2s infinite;
}

@keyframes sa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.sa-status-text {
  font-size: 12px;
  font-weight: 500;
  color: #71717a;
}

/* ---- Tab Content ---- */
.sa-tab-content {
  display: none;
  padding: 28px 32px;
  animation: sa-fadeIn 0.25s ease;
}

.sa-tab-content.active {
  display: block;
}

@keyframes sa-fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- KPI Grid ---- */
.sa-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.sa-kpi-card {
  background: #121215;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.2s ease;
}

.sa-kpi-card:hover {
  border-color: rgba(255,255,255,0.1);
  background: #151518;
}

.sa-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sa-kpi-icon--default {
  background: rgba(99,102,241,0.12);
  color: #818cf8;
}

.sa-kpi-icon--warning {
  background: rgba(234,179,8,0.12);
  color: #eab308;
}

.sa-kpi-icon--success {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
}

.sa-kpi-icon--gold {
  background: rgba(212,175,55,0.12);
  color: #d4af37;
}

.sa-kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sa-kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: #71717a;
  margin-bottom: 4px;
}

.sa-kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: #fafafa;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.sa-kpi-sub {
  font-size: 11px;
  color: #52525b;
  margin-top: 4px;
}

/* ---- Section Card ---- */
.sa-section-card {
  background: #121215;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.sa-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.sa-section-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fafafa;
  margin: 0;
}

.sa-section-desc {
  font-size: 13px;
  color: #71717a;
  margin: 4px 0 0 0;
  width: 100%;
}

/* ---- Quick Actions ---- */
.sa-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.sa-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

.sa-quick-btn:hover {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.2);
  color: #d4af37;
}

.sa-quick-btn svg {
  opacity: 0.7;
}

.sa-quick-btn:hover svg {
  opacity: 1;
  stroke: #d4af37;
}

/* ---- Search Input ---- */
.sa-search-input {
  padding: 9px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fafafa;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  min-width: 260px;
  transition: border-color 0.2s ease;
}

.sa-search-input:focus {
  border-color: rgba(212,175,55,0.4);
}

.sa-search-input::placeholder {
  color: #52525b;
}

/* ---- Table ---- */
.sa-table-wrap {
  overflow-x: auto;
}

.sa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sa-table thead th {
  background: #0f0f12;
  padding: 12px 14px;
  text-align: left;
  color: #71717a;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sa-table tbody td {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #d4d4d8;
  vertical-align: middle;
}

.sa-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.sa-empty-state {
  text-align: center;
  color: #52525b;
  padding: 40px 14px !important;
}

/* Badges */
.badge-trial { background: rgba(234,179,8,0.12); color: #eab308; padding: 4px 10px; border-radius: 8px; font-weight: 600; font-size: 11px; }
.badge-active { background: rgba(34,197,94,0.12); color: #22c55e; padding: 4px 10px; border-radius: 8px; font-weight: 600; font-size: 11px; }
.badge-suspended { background: rgba(239,68,68,0.12); color: #ef4444; padding: 4px 10px; border-radius: 8px; font-weight: 600; font-size: 11px; }
.badge-expired { background: rgba(239,68,68,0.15); color: #ff6b6b; padding: 4px 10px; border-radius: 8px; font-weight: 700; font-size: 11px; }
.link-slug { color: #d4af37; text-decoration: none; font-weight: 600; }
.link-slug:hover { text-decoration: underline; }

/* Action Buttons */
.action-btns-flex { display: flex; gap: 6px; }
.btn-sm {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  font-family: inherit;
  transition: opacity 0.15s ease;
}
.btn-sm:hover { opacity: 0.8; }

/* ---- Forms ---- */
.sa-form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sa-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.sa-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sa-form-group input {
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fafafa;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.sa-form-group select,
.sa-select {
  padding: 12px 40px 12px 14px;
  background-color: #141419;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fafafa;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sa-form-group select option,
.sa-select option {
  background-color: #181820;
  color: #ffffff;
  padding: 12px;
  font-size: 14px;
}

.sa-form-group input:focus,
.sa-form-group select:focus,
.sa-select:focus {
  border-color: rgba(212,175,55,0.6);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

.sa-form-group input::placeholder {
  color: #3f3f46;
}

.sa-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Buttons */
.sa-btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #d4af37, #b58d24);
  border: none;
  border-radius: 12px;
  color: #09090b;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(212,175,55,0.2);
  margin-top: 8px;
}

.sa-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,175,55,0.3);
}

.sa-btn-full {
  width: 100%;
}

.sa-btn-danger {
  padding: 12px 24px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 12px;
  color: #ef4444;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  width: 100%;
}

.sa-btn-danger:hover {
  background: rgba(239,68,68,0.25);
}

/* ---- DB Stats ---- */
.sa-db-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.sa-db-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.sa-db-stat-value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #fafafa;
  letter-spacing: -0.5px;
}

.sa-db-stat-label {
  display: block;
  font-size: 12px;
  color: #71717a;
  margin-top: 4px;
}

.sa-db-stat--warning {
  border-color: rgba(234,179,8,0.15);
}

.sa-db-stat--warning .sa-db-stat-value {
  color: #eab308;
}

/* ---- Modal ---- */
.sa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.sa-modal-card {
  width: 100%;
  max-width: 420px;
  background: #121215;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.sa-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.sa-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d4af37, #f3e5ab);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  color: #09090b;
  box-shadow: 0 6px 20px rgba(212,175,55,0.3);
}

.sa-modal-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fafafa;
  margin: 0 0 6px 0;
}

.sa-modal-header p {
  font-size: 13px;
  color: #71717a;
  margin: 0;
  line-height: 1.4;
}

.sa-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sa-modal-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 12px;
  color: #52525b;
}

.sa-modal-footer code {
  color: #d4af37;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .sa-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sa-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sa-sidebar {
    transform: translateX(-100%);
    position: fixed;
    width: 280px;
  }

  .sa-sidebar.open {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0,0,0,0.5);
  }

  .sa-main {
    margin-left: 0;
  }

  .sa-menu-toggle {
    display: block;
  }

  .sa-topbar {
    padding: 14px 20px;
  }

  .sa-tab-content {
    padding: 20px 16px;
  }

  .sa-kpi-grid {
    grid-template-columns: 1fr;
  }

  .sa-quick-actions {
    grid-template-columns: 1fr 1fr;
  }

  .sa-form-row {
    grid-template-columns: 1fr;
  }

  .sa-search-input {
    min-width: unset;
    width: 100%;
  }

  .sa-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sa-db-stats {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   ✨ SUPERADMIN PREMIUM — alinhado ao padrão glassmorphism da Landing
   (orbs douradas, glass de verdade, glow dourado, micro-interações)
   Sem alteração no markup — overrides de classe.
   ================================================================ */

.sa-body {
  position: relative;
  background-color: #08080a;
  background-image:
    radial-gradient(42% 32% at 12% 6%, rgba(212, 175, 55, 0.09) 0%, transparent 62%),
    radial-gradient(36% 30% at 92% 4%, rgba(99, 91, 255, 0.07) 0%, transparent 58%),
    radial-gradient(34% 28% at 84% 96%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
}

.sa-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1.4px);
  background-size: 26px 26px;
}

/* ---- Sidebar glass ---- */
.sa-sidebar {
  background: rgba(12, 12, 16, 0.82);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border-right: 1px solid rgba(212, 175, 55, 0.12);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
}

.sa-sidebar-brand {
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.sa-logo-icon {
  background: linear-gradient(135deg, #f5d878 0%, #d4af37 50%, #b58d24 100%);
  box-shadow: 0 6px 18px -4px rgba(212, 175, 55, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.sa-nav-item {
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sa-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f5;
  transform: translateX(2px);
}

.sa-nav-item.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.06) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #f0d47a;
  box-shadow: 0 8px 24px -8px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sa-sidebar-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.sa-logout-btn {
  border-radius: 12px;
  transition: all 0.25s ease;
}

/* ---- Main & content ---- */
.sa-main {
  position: relative;
  z-index: 1;
}

.sa-topbar {
  background: rgba(8, 8, 10, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.7);
}

.sa-topbar-title {
  font-weight: 800;
  letter-spacing: -0.3px;
}

.sa-status-dot {
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
}

.sa-status-text {
  color: #a1a1aa;
  font-weight: 600;
}

/* ---- KPI Cards glass ---- */
.sa-kpi-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 18px;
  box-shadow: 0 22px 50px -28px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sa-kpi-card::before {
  content: "";
  position: absolute;
  top: -46px;
  right: -46px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 65%);
  opacity: 0.65;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sa-kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, 0.85), 0 0 34px rgba(212, 175, 55, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sa-kpi-card:hover::before {
  opacity: 1;
}

.sa-kpi-icon {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sa-kpi-icon--gold {
  background: rgba(212, 175, 55, 0.14);
  color: #f0d47a;
  box-shadow: 0 8px 20px -8px rgba(212, 175, 55, 0.5);
}

.sa-kpi-value {
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.35);
}

/* ---- Section cards glass ---- */
.sa-section-card {
  position: relative;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 100%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 20px;
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sa-section-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sa-section-header h3 {
  letter-spacing: -0.3px;
  font-weight: 800;
}

/* ---- Quick actions glass ---- */
.sa-quick-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sa-quick-btn:hover {
  background: rgba(212, 175, 55, 0.09);
  border-color: rgba(212, 175, 55, 0.35);
  color: #f0d47a;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -14px rgba(212, 175, 55, 0.4);
}

/* ---- Inputs & selects glass ---- */
.sa-search-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sa-search-input:focus {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.sa-form-group input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sa-form-group input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14), 0 8px 24px -16px rgba(212, 175, 55, 0.35);
}

.sa-form-group select,
.sa-select {
  background-color: rgba(20, 20, 25, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

/* ---- Buttons gold premium ---- */
.sa-btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5d878 0%, #d4af37 45%, #b58d24 100%);
  box-shadow: 0 12px 30px -12px rgba(212, 175, 55, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-weight: 800;
  letter-spacing: -0.2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sa-btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 55%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: sa-sheen 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sa-sheen {
  0% { left: -70%; }
  55%, 100% { left: 130%; }
}

.sa-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(212, 175, 55, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.sa-btn-danger {
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -14px rgba(239, 68, 68, 0.5);
}

/* ---- Table premium ---- */
.sa-table thead th {
  background: rgba(9, 9, 11, 0.6);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.sa-table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.sa-table tbody tr {
  transition: background 0.2s ease;
}

.sa-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.045);
}

.sa-table tbody tr:hover td {
  background: transparent;
}

.badge-trial {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.16) 0%, rgba(234, 179, 8, 0.05) 100%);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14) 0%, rgba(34, 197, 94, 0.04) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-suspended,
.badge-expired {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(239, 68, 68, 0.04) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-sm {
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

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

/* ---- DB stats glass ---- */
.sa-db-stat {
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.25s ease;
}

.sa-db-stat:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.sa-db-stat--warning {
  border-color: rgba(234, 179, 8, 0.22);
}

.sa-db-stat--warning:hover {
  border-color: rgba(234, 179, 8, 0.45);
}

/* ---- Modal glass ---- */
.sa-modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.sa-modal-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(24, 24, 31, 0.95) 0%, rgba(12, 12, 16, 0.97) 100%);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(212, 175, 55, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sa-modal-card::before {
  content: "";
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, transparent 65%);
  pointer-events: none;
}

.sa-modal-icon {
  background: linear-gradient(135deg, #f5d878 0%, #d4af37 50%, #b58d24 100%);
  box-shadow: 0 10px 26px -8px rgba(212, 175, 55, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.sa-modal-header h2 {
  letter-spacing: -0.5px;
}

/* ---- Sidebar mobile premium ---- */
@media (max-width: 768px) {
  .sa-sidebar {
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
  }

  .sa-sidebar.open {
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sa-btn-primary::after,
  .sa-status-dot {
    animation: none !important;
  }
}
