/* Frame Master Admin Command Center — Executive Design System */
:root {
  --bg-darkest: #060709;
  --bg-base: #08090c;
  --bg-sidebar: #0c0e14;
  --bg-card: #10131a;
  --bg-card-subtle: #141822;
  --bg-input: #151924;
  --bg-hover: #1c2130;
  
  --line-faint: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --line-accent: rgba(232, 255, 89, 0.35);

  --accent: #e8ff59;
  --accent-text: #08090c;
  --accent-glow: rgba(232, 255, 89, 0.3);
  --accent-faint: rgba(232, 255, 89, 0.1);

  --text-main: #f3f4f8;
  --text-muted: #8b92a5;
  --text-dim: #5c6275;

  --success: #00e599;
  --success-bg: rgba(0, 229, 153, 0.12);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --danger: #ff5252;
  --danger-bg: rgba(255, 82, 82, 0.12);
  --cyan: #38bdf8;
  --cyan-bg: rgba(56, 189, 248, 0.12);
  --purple: #c084fc;
  --purple-bg: rgba(192, 132, 252, 0.12);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* ========================================== */
/* AUTHENTICATION GATE (EXECUTIVE LOGIN)      */
/* ========================================== */
.admin-auth-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  background: var(--bg-darkest);
}

.admin-login-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(232, 255, 89, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.admin-login-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 42px 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(232, 255, 89, 0.05);
  position: relative;
  z-index: 10;
}

.admin-login-head {
  text-align: center;
  margin-bottom: 30px;
}

.admin-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.brand-f {
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 0 16px var(--accent-glow);
}

.brand-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
}

.brand-neon {
  color: var(--accent);
  font-size: 11px;
  padding: 2px 7px;
  background: rgba(232, 255, 89, 0.15);
  border: 1px solid var(--line-accent);
  border-radius: 5px;
  margin-left: 4px;
  vertical-align: middle;
}

.admin-gate-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text-muted);
  margin-bottom: 12px;
}

.admin-login-head h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}

.admin-gate-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.admin-gate-form {
  display: grid;
  gap: 18px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 42px !important;
}

.quick-admin-fill-box {
  padding: 14px;
  background: rgba(232, 255, 89, 0.04);
  border: 1px dashed rgba(232, 255, 89, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.qf-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qf-text strong {
  font-size: 12px;
  color: #fff;
}

.qf-text span {
  font-size: 11px;
  color: var(--text-muted);
}

.quick-fill-btn {
  background: rgba(232, 255, 89, 0.15);
  border: 1px solid rgba(232, 255, 89, 0.4);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.quick-fill-btn:hover {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 0 12px var(--accent-glow);
}

.admin-gate-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-back-link {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-back-link:hover {
  color: var(--text-main);
}

/* ========================================== */
/* FORM INPUTS & SELECTS                      */
/* ========================================== */
.form-group {
  display: grid;
  gap: 7px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.admin-input,
.admin-select {
  height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 14px;
  color: var(--text-main);
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  width: 100%;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-input:focus,
.admin-select:focus {
  border-color: rgba(232, 255, 89, 0.7);
  box-shadow: 0 0 0 3px rgba(232, 255, 89, 0.12);
  background: var(--bg-hover);
}

.admin-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b92a5' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field-hint {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: 4px;
}

.field-hint code {
  color: var(--accent);
  background: rgba(232, 255, 89, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 260px;
  min-width: 200px;
  flex-shrink: 0;
}

.sb-icon {
  position: absolute;
  left: 12px;
  font-size: 13px;
  color: var(--text-dim);
  pointer-events: none;
  z-index: 2;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-input {
  padding-left: 36px !important;
  height: 40px;
  font-size: 12px;
}

/* ========================================== */
/* BUTTONS SYSTEM                             */
/* ========================================== */
.admin-btn {
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-decoration: none;
}

.admin-btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 0 16px var(--accent-glow);
}

.admin-btn-primary:hover {
  background: #f1ff7b;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(232, 255, 89, 0.5);
}

.admin-btn-accent {
  background: linear-gradient(135deg, #00e599 0%, #00b377 100%);
  color: #08090c;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 229, 153, 0.35);
}

.admin-btn-accent:hover {
  background: #1ff0a7;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 229, 153, 0.5);
}

.admin-btn-ghost {
  background: var(--bg-card-subtle);
  border: 1px solid var(--line-strong);
  color: var(--text-main);
}

.admin-btn-ghost:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.25);
}

.admin-btn-danger {
  background: var(--danger-bg);
  border: 1px solid rgba(255, 82, 82, 0.4);
  color: var(--danger);
}

.admin-btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.admin-btn-sm {
  height: 32px;
  padding: 0 11px;
  font-size: 11px;
  border-radius: 6px;
}

.admin-btn-block {
  width: 100%;
}

/* ========================================== */
/* SIDEBAR SHELL LAYOUT                       */
/* ========================================== */
.admin-app {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 270px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-top {
  padding: 24px 20px 18px;
  border-bottom: 1px solid var(--line-faint);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 18px;
}

.brand-logo-badge {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 900;
  font-size: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-glow);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.1;
}

.brand-suite {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.system-status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 229, 153, 0.08);
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: var(--radius-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulseGlow 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 229, 153, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(0, 229, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 229, 153, 0); }
}

.ss-info {
  display: flex;
  flex-direction: column;
}

.ss-status {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--success);
}

.ss-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
}

.sidebar-nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 14px 10px 6px;
  text-transform: uppercase;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-nav-item {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  position: relative;
}

.admin-nav-item:hover {
  background: var(--bg-hover);
  color: #fff;
}

.admin-nav-item.active {
  background: rgba(232, 255, 89, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.admin-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--accent-glow);
}

.nav-icon {
  font-size: 15px;
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-label {
  flex: 1;
}

.nav-counter {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.nav-counter.alert {
  background: var(--amber-bg);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--amber);
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.sidebar-bottom {
  padding: 16px 14px;
  border-top: 1px solid var(--line-faint);
}

.sys-metrics-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
}

.metric-row {
  display: flex;
  justify-content: space-between;
}

.metric-row strong {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ========================================== */
/* MAIN CONTENT BODY & TOPBAR                 */
/* ========================================== */
.admin-body {
  margin-left: 270px;
  width: calc(100% - 270px);
  max-width: calc(100% - 270px);
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  box-sizing: border-box;
}

.admin-topbar {
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
  width: 100%;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.bc-root {
  color: var(--text-dim);
}

.bc-sep {
  color: var(--text-dim);
  font-size: 11px;
}

.bc-active {
  color: #fff;
  font-weight: 700;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.topbar-link-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.topbar-link-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.topbar-profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 5px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 100px;
  flex-shrink: 0;
}

.chip-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-text {
  display: flex;
  flex-direction: column;
}

.chip-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.chip-badge {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.chip-logout-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--line);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-logout-btn:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

/* ========================================== */
/* MAIN CANVAS SIZING & HEADERS               */
/* ========================================== */
.admin-main {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 40px 80px;
  box-sizing: border-box;
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
  animation: paneFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.pane-title-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 340px;
  min-width: 260px;
}

.pane-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}

.pane-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 6px;
}

.pane-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.45;
}

.pane-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.pane-actions .admin-select {
  height: 40px;
  min-width: 175px;
  font-size: 12px;
  flex-shrink: 0;
}

.pane-actions .admin-btn {
  height: 40px;
  font-size: 12px;
  padding: 0 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ========================================== */
/* STRUCTURED 6-CARD METRICS GRID             */
/* ========================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  min-height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.metric-card.featured {
  border-color: rgba(232, 255, 89, 0.4);
  background: linear-gradient(180deg, rgba(232, 255, 89, 0.08) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 24px rgba(232, 255, 89, 0.08);
}

.metric-card.alert {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 100%);
}

.mc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mc-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.mc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.mc-icon.lime { background: rgba(232, 255, 89, 0.15); }
.mc-icon.accent { background: var(--accent); color: var(--accent-text); }
.mc-icon.amber { background: var(--amber-bg); color: var(--amber); }
.mc-icon.emerald { background: var(--success-bg); color: var(--success); }
.mc-icon.cyan { background: var(--cyan-bg); color: var(--cyan); }
.mc-icon.purple { background: var(--purple-bg); color: var(--purple); }

.mc-body {
  display: flex;
  flex-direction: column;
}

.mc-value {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.mc-value.accent { color: var(--accent); }
.mc-value.amber { color: var(--amber); }
.mc-value.cyan { color: var(--cyan); }

.mc-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

.mc-badge.vip {
  color: var(--accent);
  font-weight: 700;
}

.mc-badge.amber {
  color: var(--amber);
  font-weight: 700;
}

/* ========================================== */
/* CONTENT BOX & DATA TABLES                  */
/* ========================================== */
.overview-sections-stack,
.dual-tables-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.content-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.box-header {
  padding: 22px 24px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.box-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.box-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.box-title-group h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.box-title-group p {
  font-size: 12px;
  color: var(--text-muted);
}

.box-action-link {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.box-action-link:hover {
  background: rgba(232, 255, 89, 0.1);
}

.table-container {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.table-container::-webkit-scrollbar {
  height: 6px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  table-layout: auto;
}

.data-table th {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-faint);
  vertical-align: middle;
}

.data-table th:first-child,
.data-table td:first-child {
  padding-left: 24px;
}

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 28px;
  text-align: right;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

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

.table-empty-cell {
  text-align: center;
  color: var(--text-dim);
  padding: 36px 20px !important;
}

/* Overview Cells & Micro-Components */
.user-cell-wrap,
.amount-cell-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-cell-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.user-cell-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.amount-text {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.gateway-text {
  font-size: 11px;
  color: var(--text-dim);
}

.order-id-badge,
.txid-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #f3f4f8;
  letter-spacing: 0.02em;
}

.txid-badge {
  color: var(--text-muted);
}

.completed-label {
  display: inline-block;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
}

.user-profile-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.user-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(232, 255, 89, 0.15) 0%, rgba(232, 255, 89, 0.05) 100%);
  border: 1px solid rgba(232, 255, 89, 0.35);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(232, 255, 89, 0.08);
}

.user-email-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.user-date-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================== */
/* STATUS PILLS & BADGES                      */
/* ========================================== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-pill.ultra {
  background: rgba(232, 255, 89, 0.16);
  border: 1px solid rgba(232, 255, 89, 0.5);
  color: var(--accent);
}

.status-pill.pro {
  background: var(--cyan-bg);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--cyan);
}

.status-pill.free {
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.status-pill.pending {
  background: var(--amber-bg);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--amber);
}

.status-pill.approved {
  background: var(--success-bg);
  border: 1px solid rgba(0, 229, 153, 0.45);
  color: var(--success);
}

.status-pill.rejected {
  background: var(--danger-bg);
  border: 1px solid rgba(255, 82, 82, 0.45);
  color: var(--danger);
}

.status-pill.admin {
  background: var(--purple-bg);
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: var(--purple);
}

.status-pill.user {
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--text-muted);
}

/* ========================================== */
/* TWO COLUMN CARDS & FORMS                   */
/* ========================================== */
.two-column-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.form-card-head {
  margin-bottom: 22px;
}

.fc-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 8px;
}

.fc-badge.accent { background: rgba(232, 255, 89, 0.15); color: var(--accent); }
.fc-badge.emerald { background: var(--success-bg); color: var(--success); }
.fc-badge.cyan { background: var(--cyan-bg); color: var(--cyan); }

.form-card-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.form-card-head p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.standard-form {
  display: grid;
  gap: 16px;
}

/* ========================================== */
/* CURATED SHOWCASE EDITOR                    */
/* ========================================== */
.curated-items-list {
  display: grid;
  gap: 12px;
}

.curated-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}

.curated-item-row:hover {
  border-color: var(--line-strong);
}

.curated-item-thumb {
  width: 44px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.curated-item-inputs {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: 8px;
}

.curated-item-inputs input {
  height: 36px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text-main);
  font-size: 12px;
  outline: none;
}

.curated-item-inputs input:focus {
  border-color: var(--accent);
}

.admin-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.admin-icon-btn:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

/* ========================================== */
/* PAYMENT GATEWAYS CATALOG GRID              */
/* ========================================== */
.payment-methods-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.method-admin-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  gap: 16px;
}

.method-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-faint);
}

.method-title-badge {
  font-size: 13px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
}

.method-title-badge.easypaisa { background: rgba(0, 229, 153, 0.16); color: #00e599; }
.method-title-badge.sadapay { background: rgba(255, 120, 109, 0.16); color: #ff7860; }
.method-title-badge.binance { background: rgba(240, 185, 11, 0.16); color: #f3ba2f; }
.method-title-badge.upi { background: rgba(56, 189, 248, 0.16); color: #38bdf8; }

/* ========================================== */
/* MODALS & DIALOGS                           */
/* ========================================== */
.admin-dialog {
  border: 0;
  background: transparent;
  padding: 0;
  max-width: 500px;
  width: 92%;
  margin: auto;
}

.admin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
}

.dialog-content {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 40px rgba(232, 255, 89, 0.05);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.dialog-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 2px;
}

.dialog-head h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.dialog-close-btn {
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.dialog-close-btn:hover {
  background: var(--bg-hover);
  color: #fff;
}

.user-preview-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.upc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(232, 255, 89, 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.upc-info {
  display: flex;
  flex-direction: column;
}

.upc-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.upc-email {
  font-size: 12px;
  color: var(--text-muted);
}

.form-row {
  display: flex;
  gap: 12px;
}

.flex-1 {
  flex: 1;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ========================================== */
/* TOAST NOTIFICATIONS & ALERTS               */
/* ========================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #141722;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success {
  border-color: rgba(0, 229, 153, 0.45);
  background: rgba(0, 229, 153, 0.12);
  color: #8be0a4;
}

.toast.error {
  border-color: rgba(255, 82, 82, 0.45);
  background: rgba(255, 82, 82, 0.12);
  color: var(--danger);
}

@keyframes toastPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-msg {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

.admin-msg.success {
  background: var(--success-bg);
  border: 1px solid rgba(0, 229, 153, 0.4);
  color: var(--success);
}

.admin-msg.error {
  background: var(--danger-bg);
  border: 1px solid rgba(255, 82, 82, 0.4);
  color: var(--danger);
}

/* ========================================== */
/* RESPONSIVE BREAKPOINTS                     */
/* ========================================== */
@media (max-width: 1500px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .dual-tables-grid,
  .two-column-card-grid,
  .payment-methods-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .admin-sidebar {
    width: 230px;
  }
  .admin-body {
    margin-left: 230px;
    width: calc(100% - 230px);
    max-width: calc(100% - 230px);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-main {
    padding: 24px 24px 60px;
  }
  .admin-topbar {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
  .admin-body {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
  .admin-topbar {
    padding: 0 20px;
  }
  .pane-header {
    flex-direction: column;
    align-items: stretch;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .admin-main {
    padding: 20px 20px 60px;
  }
}
