@charset "UTF-8";

/* ══════════════════════════════════════════════════════════════
   Dafa — Phase 1 Design System | DESKTOP ADMIN THEME
   Premium UI components adapted from Uiverse + Aceternity patterns
   Color scheme: Gold (#F0B90B) + Dark Navy (#0a1428)
   Target: Desktop computers (1024px+ width), sidebar 240px
   Import ALONGSIDE existing CSS — does not modify admin CSS
   ══════════════════════════════════════════════════════════════
   Reference sources (MIT License, copy freely):
   • Codecite/angry-bullfrog-58       — premium button
   • alexruix/jolly-emu-80            — premium input
   • Aceternity card-spotlight        — admin stat card
   • Aceternity sidebar               — admin sidebar
   • Aceternity animated-modal        — admin modal
   ══════════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────────────
   1. CSS VARIABLES (root) — Same as theme.css
   Change these to rebrand for W8Live / DafaLive
   ─────────────────────────────────────────────── */
:root {
  --brand-primary:   #FF2A2A;
  --brand-secondary: #CC0000;
  --brand-accent:    #FFD700;
  --brand-bg:        #0a0a0e;
  --brand-bg-card:   #1a1a2e;
  --brand-border:    #2a2a4a;
  --brand-text:      #ffffff;
  --brand-text-muted:#8888aa;

  --brand-glow:        0 0 20px rgba(255, 42, 42, 0.3);
  --brand-glow-strong: 0 0 40px rgba(255, 42, 42, 0.5);

  --brand-radius:    16px;
  --brand-radius-sm: 10px;

  /* status colors */
  --brand-success: #10B981;
  --brand-warning: #F59E0B;
  --brand-error:   #EF4444;
  --brand-info:    #6366F1;

  /* premium button internals */
  --btn-grad-0:    var(--brand-accent);
  --btn-grad-50:   var(--brand-primary);
  --btn-grad-100:  var(--brand-secondary);
  --btn-shine-top: #FFE89A;
  --btn-shine-bottom: #FFF3C4;

  /* admin-specific spacing */
  --admin-sidebar-width: 240px;
  --admin-sidebar-collapsed: 64px;
  --admin-content-max: 1600px;
  --admin-radius: 12px;
}


/* ════════════════════════════════════════════════
   2. ADMIN GLASSMORPHISM PANEL
   Wider, less rounded than mobile version
   ════════════════════════════════════════════════ */
.admin-glass-panel {
  background: rgba(26, 26, 46, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 42, 42, 0.12);
  border-radius: var(--admin-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  padding: 20px 24px;
  position: relative;
}

.admin-glass-panel-sm {
  background: rgba(26, 26, 46, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 42, 42, 0.12);
  border-radius: var(--admin-radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  padding: 16px 20px;
}

/* gradient header strip on panel */
.admin-glass-panel .panel-header-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 42, 42, 0.1);
}

.admin-glass-panel .panel-header-premium .panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FFD700, #F0B90B, #C99A08);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* ════════════════════════════════════════════════
   3. ADMIN SIDEBAR PREMIUM (Aceternity sidebar)
   240px, collapsible, glassmorphism, gold accents
   ════════════════════════════════════════════════ */
.admin-sidebar-premium {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--admin-sidebar-width);
  background: rgba(10, 20, 40, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 42, 42, 0.12);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* collapsed state */
.admin-sidebar-premium.collapsed {
  width: var(--admin-sidebar-collapsed);
}

/* sidebar logo / brand area */
.admin-sidebar-premium .sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px;
  min-height: 64px;
  border-bottom: 1px solid rgba(255, 42, 42, 0.08);
  white-space: nowrap;
  overflow: hidden;
}

.admin-sidebar-premium .sidebar-brand .brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #1a1205;
  box-shadow: var(--brand-glow);
}

.admin-sidebar-premium .sidebar-brand .brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FFD700, #F0B90B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* nav items */
.admin-sidebar-premium .nav-item-premium {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  margin: 2px 8px;
  border-radius: 8px;
  color: var(--brand-text-muted);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.admin-sidebar-premium .nav-item-premium svg,
.admin-sidebar-premium .nav-item-premium .nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.admin-sidebar-premium .nav-item-premium .nav-label {
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

/* hover: subtle gold tint */
.admin-sidebar-premium .nav-item-premium:hover {
  background: rgba(255, 42, 42, 0.08);
  color: var(--brand-text);
}

.admin-sidebar-premium .nav-item-premium:hover svg,
.admin-sidebar-premium .nav-item-premium:hover .nav-icon {
  color: var(--brand-primary);
}

/* active: gold gradient bg + left border accent + glow */
.admin-sidebar-premium .nav-item-premium.active {
  background: linear-gradient(90deg,
    rgba(255, 42, 42, 0.18),
    rgba(255, 42, 42, 0.05)
  );
  color: var(--brand-primary);
  box-shadow: 0 0 16px rgba(255, 42, 42, 0.1);
}

.admin-sidebar-premium .nav-item-premium.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--brand-accent), var(--brand-primary));
  box-shadow: var(--brand-glow);
}

.admin-sidebar-premium .nav-item-premium.active svg,
.admin-sidebar-premium .nav-item-premium.active .nav-icon {
  color: var(--brand-primary);
  filter: drop-shadow(0 0 4px rgba(255, 42, 42, 0.4));
}

/* collapsed sidebar: hide labels, center icons */
.admin-sidebar-premium.collapsed .nav-item-premium {
  justify-content: center;
  padding: 11px 0;
  margin: 2px 8px;
}

.admin-sidebar-premium.collapsed .nav-label,
.admin-sidebar-premium.collapsed .brand-name {
  opacity: 0;
  width: 0;
  pointer-events: none;
}

/* collapse toggle button */
.admin-sidebar-premium .sidebar-toggle {
  margin-top: auto;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 42, 42, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-text-muted);
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  font-size: 0.85rem;
  font-family: inherit;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
}

.admin-sidebar-premium .sidebar-toggle:hover {
  background: rgba(255, 42, 42, 0.06);
  color: var(--brand-primary);
}

.admin-sidebar-premium.collapsed .sidebar-toggle {
  justify-content: center;
}

.admin-sidebar-premium.collapsed .sidebar-toggle .toggle-label {
  opacity: 0;
  width: 0;
}


/* ════════════════════════════════════════════════
   4. ADMIN STAT CARD (Aceternity card-spotlight)
   Hover spotlight follows mouse + count-up hook
   Grid: repeat(auto-fill, minmax(220px, 1fr))
   ════════════════════════════════════════════════ */
.admin-stat-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.admin-stat-card-premium {
  position: relative;
  overflow: hidden;
  background: rgba(26, 26, 46, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 42, 42, 0.12);
  border-radius: var(--admin-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

/* spotlight follows mouse — JS sets --mx / --my */
.admin-stat-card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 42, 42, 0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.admin-stat-card-premium > * {
  position: relative;
  z-index: 1;
}

.admin-stat-card-premium:hover {
  border-color: rgba(255, 42, 42, 0.3);
  transform: translateY(-2px);
}

.admin-stat-card-premium:hover::before {
  opacity: 1;
}

/* icon in glassmorphism circle */
.admin-stat-card-premium .stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 42, 42, 0.1);
  border: 1px solid rgba(255, 42, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.admin-stat-card-premium .stat-icon-wrap svg,
.admin-stat-card-premium .stat-icon-wrap .stat-icon {
  width: 22px;
  height: 22px;
  color: var(--brand-primary);
}

.admin-stat-card-premium .stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* count-up number hook — JS animates data-count */
.admin-stat-card-premium .stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #FFD700, #F0B90B, #C99A08);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.admin-stat-card-premium .stat-delta {
  font-size: 0.78rem;
  margin-top: 6px;
  font-weight: 600;
}

.admin-stat-card-premium .stat-delta.up {
  color: var(--brand-success);
}

.admin-stat-card-premium .stat-delta.down {
  color: var(--brand-error);
}


/* ════════════════════════════════════════════════
   5. ADMIN TABLE PREMIUM
   Dark header, gold accent, hover tint, alt rows
   ════════════════════════════════════════════════ */
.admin-table-premium {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--brand-border);
  border-radius: var(--admin-radius);
  overflow: hidden;
  background: rgba(26, 26, 46, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admin-table-premium thead th {
  background: rgba(10, 20, 40, 0.9);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid rgba(255, 42, 42, 0.2);
  white-space: nowrap;
}

.admin-table-premium thead th:first-child {
  border-top-left-radius: var(--admin-radius);
}

.admin-table-premium thead th:last-child {
  border-top-right-radius: var(--admin-radius);
}

.admin-table-premium tbody td {
  padding: 11px 16px;
  color: var(--brand-text);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.5);
  vertical-align: middle;
}

/* alternating rows — subtle */
.admin-table-premium tbody tr:nth-child(even) {
  background: rgba(10, 20, 40, 0.2);
}

/* hover: gold tint */
.admin-table-premium tbody tr {
  transition: background 0.2s ease;
}

.admin-table-premium tbody tr:hover {
  background: rgba(255, 42, 42, 0.06);
}

.admin-table-premium tbody tr:last-child td {
  border-bottom: none;
}

.admin-table-premium tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--admin-radius);
}

.admin-table-premium tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--admin-radius);
}

/* sortable header hint */
.admin-table-premium thead th.sortable {
  cursor: pointer;
  user-select: none;
}

.admin-table-premium thead th.sortable:hover {
  color: var(--brand-accent);
}


/* ════════════════════════════════════════════════
   6. ADMIN BUTTON (desktop, mouse-friendly)
   36px height, smaller padding than mobile
   ════════════════════════════════════════════════ */
.admin-btn-premium {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  letter-spacing: 0.2px;
  text-shadow: 0 0.5px 0.5px rgba(0, 0, 0, 0.2);
  padding: 0 18px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  z-index: 1;
  border-radius: 8px;
  color: #1a1205;
  background-image: linear-gradient(
    to bottom,
    var(--btn-grad-0) 0%,
    var(--btn-grad-50) 50%,
    var(--btn-grad-100) 100%
  );
  box-shadow:
    0 3px 10px rgba(9, 12, 60, 0.2),
    0 1px 4px rgba(255, 42, 42, 0.15),
    inset 0 1px 1px rgba(255, 232, 154, 0.4),
    inset 0 -1px 2px rgba(201, 154, 8, 0.3);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.admin-btn-premium::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--btn-shine-top);
  width: 80px;
  height: 4px;
  top: -2px;
  opacity: 0.5;
  filter: blur(5px);
  border-radius: inherit;
  transition: opacity 0.25s;
}

.admin-btn-premium > * {
  position: relative;
  z-index: 1;
}

.admin-btn-premium:hover {
  box-shadow:
    0 5px 16px rgba(255, 42, 42, 0.3),
    var(--brand-glow),
    inset 0 1px 1px rgba(255, 232, 154, 0.5),
    inset 0 -1px 2px rgba(201, 154, 8, 0.3);
}

.admin-btn-premium:active {
  transform: scale(0.97);
}

.admin-btn-premium:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* small variant */
.admin-btn-premium-sm {
  font-size: 12px;
  padding: 0 12px;
  min-height: 30px;
  border-radius: 6px;
  gap: 4px;
}

/* outline variant */
.admin-btn-premium-outline {
  background-image: none;
  background-color: rgba(255, 42, 42, 0.05);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  box-shadow: none;
  text-shadow: none;
}

.admin-btn-premium-outline::before {
  display: none;
}

.admin-btn-premium-outline:hover {
  background-color: rgba(255, 42, 42, 0.12);
  box-shadow: var(--brand-glow);
  color: var(--brand-accent);
}

/* danger variant (delete / ban) */
.admin-btn-premium-danger {
  background-image: linear-gradient(to bottom, #FF6B6B, #EF4444, #C53030);
  color: #fff;
  text-shadow: 0 0.5px 0.5px rgba(0, 0, 0, 0.3);
}

.admin-btn-premium-danger::before {
  background-color: #FFB8B8;
}

.admin-btn-premium-danger:hover {
  box-shadow: 0 5px 16px rgba(239, 68, 68, 0.3),
              0 0 20px rgba(239, 68, 68, 0.3);
}


/* ════════════════════════════════════════════════
   7. ADMIN INPUT (desktop, 38px height)
   Gold focus glow, works with type="text"
   ════════════════════════════════════════════════ */
.admin-input-premium,
input[type="text"].admin-input-premium,
input[type="email"].admin-input-premium,
input[type="password"].admin-input-premium,
input[type="search"].admin-input-premium,
input[type="tel"].admin-input-premium,
input[type="number"].admin-input-premium,
input[type="date"].admin-input-premium,
input[type="time"].admin-input-premium,
select.admin-input-premium,
textarea.admin-input-premium {
  width: 100%;
  height: 38px;
  background-color: rgba(10, 20, 40, 0.6);
  border-radius: 8px;
  padding: 0 12px;
  border: 1.5px solid var(--brand-border);
  font-size: 14px;
  color: var(--brand-text);
  font-family: inherit;
  transition: border-color 0.25s ease,
              background 0.2s ease,
              box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

textarea.admin-input-premium {
  height: auto;
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}

select.admin-input-premium {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23F0B90B' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.admin-input-premium::placeholder {
  color: var(--brand-text-muted);
  transition: color 0.25s ease;
}

.admin-input-premium:hover {
  border-color: rgba(255, 42, 42, 0.35);
  background-color: rgba(10, 20, 40, 0.8);
}

.admin-input-premium:focus {
  outline: none;
  border-color: var(--brand-primary);
  background-color: rgba(10, 20, 40, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 42, 42, 0.12),
              var(--brand-glow);
}

.admin-input-premium:focus::placeholder {
  color: rgba(139, 163, 199, 0.4);
}

/* input group with label */
.admin-input-group-premium {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.admin-input-group-premium .admin-label-premium {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-text-muted);
  transition: color 0.25s ease;
  padding-left: 2px;
}

.admin-input-group-premium:focus-within .admin-label-premium {
  color: var(--brand-primary);
}

/* search input with icon */
.admin-search-premium {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-search-premium svg,
.admin-search-premium .search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--brand-text-muted);
  pointer-events: none;
  z-index: 1;
}

.admin-search-premium .admin-input-premium {
  padding-left: 36px;
}


/* ════════════════════════════════════════════════
   8. ADMIN MODAL PREMIUM (Aceternity animated-modal)
   Glassmorphism, wider (max 600px), gold title bar
   ════════════════════════════════════════════════ */
.admin-modal-overlay-premium {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  animation: adminFadeIn 0.25s ease-out;
}

.admin-modal-premium {
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: var(--admin-radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(255, 42, 42, 0.08);
  animation: adminModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* gold title bar */
.admin-modal-premium .modal-header-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(90deg,
    rgba(255, 42, 42, 0.15),
    rgba(255, 42, 42, 0.05)
  );
  border-bottom: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: var(--admin-radius) var(--admin-radius) 0 0;
}

.admin-modal-premium .modal-header-premium .modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FFD700, #F0B90B, #C99A08);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.admin-modal-premium .modal-header-premium .modal-close-premium {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 42, 42, 0.08);
  border-radius: 8px;
  color: var(--brand-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.admin-modal-premium .modal-header-premium .modal-close-premium:hover {
  background: rgba(255, 42, 42, 0.18);
  color: var(--brand-primary);
  transform: rotate(90deg);
}

.admin-modal-premium .modal-body-premium {
  padding: 24px;
}

.admin-modal-premium .modal-footer-premium {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 42, 42, 0.1);
}

@keyframes adminModalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ════════════════════════════════════════════════
   9. ADMIN BADGE / STATUS
   Success / warning / error / info variants
   Glassmorphism pills
   ════════════════════════════════════════════════ */
.admin-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  line-height: 1.6;
}

.admin-badge-premium::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* success */
.admin-badge-premium.badge-success {
  color: #6EE7B7;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.admin-badge-premium.badge-success::before {
  background: var(--brand-success);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

/* warning */
.admin-badge-premium.badge-warning {
  color: #FCD34D;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
}

.admin-badge-premium.badge-warning::before {
  background: var(--brand-warning);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

/* error */
.admin-badge-premium.badge-error {
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

.admin-badge-premium.badge-error::before {
  background: var(--brand-error);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

/* info */
.admin-badge-premium.badge-info {
  color: #A5B4FC;
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.1);
}

.admin-badge-premium.badge-info::before {
  background: var(--brand-info);
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.6);
}

/* gold (brand default) */
.admin-badge-premium.badge-gold {
  color: var(--brand-primary);
  border-color: rgba(255, 42, 42, 0.3);
  background: rgba(255, 42, 42, 0.1);
}

.admin-badge-premium.badge-gold::before {
  background: var(--brand-primary);
  box-shadow: 0 0 6px rgba(255, 42, 42, 0.6);
}


/* ════════════════════════════════════════════════
   10. ADMIN PAGE TRANSITION
   ════════════════════════════════════════════════ */
@keyframes adminFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-page-transition {
  animation: adminFadeIn 0.3s ease-out;
}

/* slide variant for tabbed content */
@keyframes adminSlideIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.admin-slide-in {
  animation: adminSlideIn 0.25s ease-out;
}

/* stagger helper for grids */
@keyframes adminStaggerIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-stagger-item {
  opacity: 0;
  animation: adminStaggerIn 0.4s ease-out forwards;
}

.admin-stagger-item:nth-child(1) { animation-delay: 0.05s; }
.admin-stagger-item:nth-child(2) { animation-delay: 0.10s; }
.admin-stagger-item:nth-child(3) { animation-delay: 0.15s; }
.admin-stagger-item:nth-child(4) { animation-delay: 0.20s; }
.admin-stagger-item:nth-child(5) { animation-delay: 0.25s; }
.admin-stagger-item:nth-child(6) { animation-delay: 0.30s; }
.admin-stagger-item:nth-child(7) { animation-delay: 0.35s; }
.admin-stagger-item:nth-child(8) { animation-delay: 0.40s; }


/* ════════════════════════════════════════════════
   11. ADMIN UTILITY — shimmer + glow pulse
   Shared effects (same keyframes, admin-scoped class)
   ════════════════════════════════════════════════ */
@keyframes adminGlowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 42, 42, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 42, 42, 0.5);
  }
}

.admin-glow-pulse {
  animation: adminGlowPulse 2s ease-in-out infinite;
}

@keyframes adminShimmerGold {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.admin-shimmer-gold {
  background: linear-gradient(90deg,
    rgba(26, 26, 46, 0.6) 25%,
    rgba(255, 42, 42, 0.12) 50%,
    rgba(26, 26, 46, 0.6) 75%
  );
  background-size: 200% 100%;
  animation: adminShimmerGold 1.5s infinite;
  border-radius: var(--admin-radius);
}


/* ════════════════════════════════════════════════
   12. ADMIN GRADIENT TEXT (shared)
   ════════════════════════════════════════════════ */
.admin-gradient-gold-text {
  background: linear-gradient(135deg, #FFD700, #F0B90B, #C99A08);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* ════════════════════════════════════════════════
   END — Dafa Phase 1 Desktop Admin Theme
   ════════════════════════════════════════════════ */
