/* =========================================================
   WOWDASH DESIGN SYSTEM — Ultra-Modern Bootstrap 5 Admin Theme
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root, [data-theme="light"] {
  /* =========================================================
     WowDash Official Color System (Emerald / Mint SaaS Theme)
     ========================================================= */
  --primary-50: #ECFDF5;
  --primary-100: #D1FAE5;
  --primary-200: #A7F3D0;
  --primary-300: #6EE7B7;
  --primary-400: #34D399;
  --primary-500: #10B981;
  --primary-600: #059669;
  --primary-700: #047857;
  --primary-800: #065F46;
  --primary-900: #064E3B;

  --primary: var(--primary-600);
  --primary-hover: var(--primary-700);
  --primary-focus: rgba(16, 185, 129, 0.25);
  --primary-light: rgba(16, 185, 129, 0.12);
  --primary-border: rgba(16, 185, 129, 0.25);

  /* Semantic Palettes */
  --success: #16A34A;
  --success-light: #DCFCE7;
  --success-text: #15803D;
  --success-border: #BBF7D0;

  --warning: #FF9F29;
  --warning-light: #FFF9E2;
  --warning-text: #D97706;
  --warning-border: #FFEBA6;

  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --danger-text: #B91C1C;
  --danger-border: #FECACA;

  --info: #06B6D4;
  --info-light: #E0F2FE;
  --info-text: #0284C7;
  --info-border: #BAE6FD;

  --purple: #8B5CF6;
  --purple-light: #EDE9FE;
  --purple-text: #7C3AED;
  --purple-border: #DDD6FE;

  --cyan: #06B6D4;
  --cyan-light: #CFFAFE;
  --mint: #10B981;
  --amber: #FF9F29;
  --violet: var(--primary-600);
  --coral: #FF6A55;
  --pink: #F43F5E;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #059669 0%, #10B981 100%);
  --grad-cyan: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
  --grad-mint: linear-gradient(135deg, #059669 0%, #34D399 100%);
  --grad-coral: linear-gradient(135deg, #FF6A55 0%, #FF9F29 100%);
  --grad-card: linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%);

  /* Neutrals & Surfaces (Bright Modern SaaS Light Mode) */
  --admin-bg: #F4F6FB;
  --admin-bg-mesh: linear-gradient(180deg, #EDF2F9 0%, #F4F6FB 260px, #F4F6FB 100%);
  --admin-card: #FFFFFF;
  --admin-card-solid: #FFFFFF;
  --admin-card-hover: #FFFFFF;
  --admin-surface: #F8FAFC;
  --admin-border: #E2E8F0;
  --admin-border-focus: var(--primary-500);
  --admin-border-subtle: #EDF2F7;

  /* Signature Sidebar: Glossy Graphite Slate with Crisp Pearl Tone & Emerald Accents (No Blue / Violet) */
  --admin-sidebar: linear-gradient(180deg, #2D333F 0%, #222731 50%, #181C23 100%);
  --admin-sidebar-header: transparent;
  --admin-sidebar-footer: rgba(24, 28, 35, 0.92);
  --admin-sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-text: #E2E8F0;
  --sidebar-text-muted: #94A3B8;
  --sidebar-text-dim: #64748B;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.08);
  --sidebar-hover-text: #FFFFFF;
  --sidebar-brand-name: #FFFFFF;
  --sidebar-brand-badge: #34D399;
  --sidebar-card-bg: rgba(255, 255, 255, 0.06);
  --sidebar-card-border: rgba(255, 255, 255, 0.10);
  --sidebar-pill-bg: rgba(255, 255, 255, 0.10);
  --sidebar-pill-text: #E2E8F0;
  --sidebar-pill-border: rgba(255, 255, 255, 0.16);

  --header-bg: #FFFFFF;
  --header-border: #E2E8F0;
  --table-head-bg: #F8FAFC;
  --table-head-text: #475569;
  --table-row-hover: #F8FAFC;
  --table-border: #E2E8F0;

  /* Typography Text Colors */
  --text-primary: #0F172A;
  --text-bright: #020617;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows & Outlines */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-dropdown: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --glow-primary: 0 4px 14px rgba(16, 185, 129, 0.35);
  --glow-mint: 0 4px 14px rgba(16, 185, 129, 0.3);
  --glow-coral: 0 4px 14px rgba(220, 38, 38, 0.3);

  /* Fonts */
  --f-display: 'Inter', system-ui, -apple-system, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* =========================================================
   WowDash Dark Mode ([data-theme="dark"])
   ========================================================= */
[data-theme="dark"] {
  --admin-bg: #1B2431;
  --admin-bg-mesh: #1B2431;
  --admin-card: #273142;
  --admin-card-solid: #273142;
  --admin-card-hover: #2E3A4E;
  --admin-surface: #323D4E;
  --admin-border: #323D4E;
  --admin-border-focus: var(--primary-500);
  --admin-border-subtle: rgba(255, 255, 255, 0.06);

  /* Signature Sidebar in Dark Mode */
  --admin-sidebar: linear-gradient(180deg, #1E242E 0%, #171C24 50%, #0F1318 100%);
  --admin-sidebar-header: transparent;
  --admin-sidebar-footer: rgba(15, 19, 24, 0.9);
  --admin-sidebar-border: rgba(255, 255, 255, 0.07);
  --sidebar-text: #E2E8F0;
  --sidebar-text-muted: #94A3B8;
  --sidebar-text-dim: #64748B;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.08);
  --sidebar-hover-text: #FFFFFF;
  --sidebar-brand-name: #FFFFFF;
  --sidebar-brand-badge: #34D399;
  --sidebar-card-bg: rgba(255, 255, 255, 0.05);
  --sidebar-card-border: rgba(255, 255, 255, 0.10);
  --sidebar-pill-bg: rgba(255, 255, 255, 0.10);
  --sidebar-pill-text: #E2E8F0;
  --sidebar-pill-border: rgba(255, 255, 255, 0.16);

  --header-bg: #273142;
  --header-border: #323D4E;
  --table-head-bg: #1B2431;
  --table-head-text: #94A3B8;
  --table-row-hover: #2E3A4E;
  --table-border: #323D4E;

  --text-primary: #FFFFFF;
  --text-bright: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --primary-50: rgba(16, 185, 129, 0.15);
  --success-light: rgba(22, 163, 74, 0.18);
  --success-text: #4ADE80;
  --warning-light: rgba(255, 159, 41, 0.18);
  --warning-text: #FBBF24;
  --danger-light: rgba(220, 38, 38, 0.18);
  --danger-text: #F87171;
  --info-light: rgba(6, 182, 212, 0.18);
  --info-text: #22D3EE;
  --purple-light: rgba(139, 92, 246, 0.18);
  --purple-text: #C084FC;

  --shadow-card: 0px 4px 16px 0px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--admin-border);
  --shadow-lg: 0 14px 36px 0 rgba(0, 0, 0, 0.5);
  --shadow-dropdown: 0 14px 36px 0 rgba(0, 0, 0, 0.6);
}

/* =========================================================
   Reset & Base Styles
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-body);
  background-color: var(--admin-bg);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: var(--f-body);
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* Global Placeholder Hierarchy — Non-dominating, subtle secondary hint */
::placeholder {
  color: var(--text-dim) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

::-webkit-input-placeholder {
  color: var(--text-dim) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

::-moz-placeholder {
  color: var(--text-dim) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

:-ms-input-placeholder {
  color: var(--text-dim) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

button {
  cursor: pointer;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  max-width: 100%;
}

/* =========================================================
   Typography
   ========================================================= */
h1, .h1 { font-size: 24px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
h2, .h2 { font-size: 18px; font-weight: 700; color: var(--text-primary); line-height: 1.35; }
h3, .h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
h4, .h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.45; }
h5, .h5 { font-size: 13px; font-weight: 600; color: var(--text-secondary); line-height: 1.5; }
h6, .h6 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }

p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 0;
}

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-purple { color: var(--purple) !important; }
.text-main { color: var(--primary-600) !important; }

/* Monospace & Sku Tags */
code, kbd, samp, pre, .mono-code, .sku-pill, .order-id-badge {
  font-family: var(--f-mono);
  font-size: 12px;
}

.sku-pill, .order-id-badge {
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-border);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 0.7);
}

/* =========================================================
   Layout Structure
   ========================================================= */
.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  background-color: var(--admin-bg);
}

/* =========================================================
   WowDash Sidebar Navigation
   ========================================================= */
.admin-sidebar {
  width: 260px;
  background: var(--admin-sidebar);
  border-right: 1px solid var(--admin-sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 1px 0 0 rgba(255, 255, 255, 0.04), 4px 0 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sidebar-header {
  height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-sidebar-border);
  background: var(--admin-sidebar-header);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
  position: relative;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

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

.brand-name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sidebar-brand-name);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sidebar-brand-badge);
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 18px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.nav-section-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sidebar-text-dim);
  padding: 12px 12px 6px;
  margin-top: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
}

.nav-link svg {
  width: 19px;
  height: 19px;
  stroke: var(--sidebar-text-muted);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-link:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-hover-text);
  transform: translateX(3px);
}

.nav-link:hover svg {
  stroke: #FFFFFF;
}

/* Signature Active Navigation State (Glossy Vibrant Emerald Pill - Non-Blue/Non-Violet) */
.nav-link.active {
  background: linear-gradient(135deg, #059669 0%, #10B981 50%, #34D399 100%) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
}

.nav-link.active svg {
  stroke: #FFFFFF !important;
}

.nav-link .nav-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--sidebar-pill-bg);
  color: var(--sidebar-pill-text);
  border: 1px solid var(--sidebar-pill-border);
}

.nav-link.active .nav-pill {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-link .nav-pill.pulse {
  background: rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.4);
  animation: pulsePill 2s infinite;
}

@keyframes pulsePill {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--admin-sidebar-border);
  background: var(--admin-sidebar-footer);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-live-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--r-sm);
  color: #6EE7B7;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.store-live-btn:hover {
  background: rgba(16, 185, 129, 0.26);
  color: #A7F3D0;
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--sidebar-card-bg);
  border: 1px solid var(--sidebar-card-border);
  position: relative;
}

.admin-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--primary-600);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 11.5px;
  color: #fff;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  box-sizing: border-box;
}

.admin-avatar img,
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.admin-avatar.avatar-xs, .admin-avatar.xs { width: 22px; height: 22px; min-width: 22px; font-size: 9.5px; }
.admin-avatar.avatar-sm, .admin-avatar.sm { width: 28px; height: 28px; min-width: 28px; font-size: 11px; }
.admin-avatar.avatar-md, .admin-avatar.md { width: 34px; height: 34px; min-width: 34px; font-size: 13px; }
.admin-avatar.avatar-lg, .admin-avatar.lg { width: 42px; height: 42px; min-width: 42px; font-size: 15px; }
.admin-avatar.avatar-xl, .admin-avatar.xl { width: 56px; height: 56px; min-width: 56px; font-size: 20px; }

.table-cust-cell,
.table-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.table-cust-info {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.table-cust-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.3;
  white-space: nowrap;
}

.table-cust-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
}

.admin-user-card .admin-avatar::after,
.admin-avatar.has-online-dot::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid var(--admin-card);
  z-index: 2;
}

.avatar-status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--admin-card);
  z-index: 3;
}
.avatar-status-indicator.online { background: var(--success); }
.avatar-status-indicator.busy { background: var(--danger); }
.avatar-status-indicator.away { background: var(--warning); }
.avatar-status-indicator.offline { background: var(--text-dim); }

.avatar-group {
  display: inline-flex;
  align-items: center;
}

.avatar-group .admin-avatar {
  margin-left: -10px;
  border: 2px solid var(--admin-card);
  position: relative;
  transition: transform 0.2s ease, z-index 0.2s ease;
}

.avatar-group .admin-avatar:hover {
  transform: translateY(-2px);
  z-index: 5;
}

.avatar-group .admin-avatar:first-child {
  margin-left: 0;
}

.admin-user-info {
  flex: 1;
  min-width: 0;
}

.admin-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-role {
  font-size: 11px;
  color: var(--sidebar-text-muted);
}

.user-logout-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--r-xs);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--sidebar-text);
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
  cursor: pointer;
}

.user-logout-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.user-logout-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.45);
  color: #FCA5A5;
  transform: scale(1.05);
}

[data-theme="dark"] .store-live-btn {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.28);
  color: #4ADE80;
}
[data-theme="dark"] .store-live-btn:hover {
  background: rgba(16, 185, 129, 0.24);
  color: #86EFAC;
  border-color: rgba(16, 185, 129, 0.45);
}
[data-theme="dark"] .admin-user-name {
  color: #FFFFFF;
}
[data-theme="dark"] .user-logout-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--sidebar-text-muted);
}
[data-theme="dark"] .user-logout-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.45);
  color: #F87171;
}

/* =========================================================
   Main View & WowDash Top Header
   ========================================================= */
.admin-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--admin-bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.035) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(5, 150, 105, 0.02) 0px, transparent 50%);
  transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-header {
  height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 90;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  max-width: 480px;
}

.menu-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-toggle-btn:hover {
  background: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-border);
}

.menu-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.global-search-wrap {
  position: relative;
  width: 100%;
}

.global-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: var(--text-dim);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

.global-search-input {
  width: 100%;
  height: 40px;
  padding: 0 45px 0 40px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.global-search-input::placeholder {
  color: var(--text-dim) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
  font-size: 13px;
}

.global-search-input:focus {
  background: var(--admin-card);
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

.search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--r-xs);
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-metric-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--success-light);
  border: 1px solid var(--success-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--success-text);
}

.header-metric-pill .live-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: livePing 1.8s infinite;
}

@keyframes livePing {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
}

.header-icon-btn:hover {
  background: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-border);
}

.header-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.header-icon-btn .badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 1.5px solid var(--header-bg);
}

.header-profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--r-full);
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.header-profile-card:hover {
  background: var(--primary-50);
  border-color: var(--primary-border);
}

.header-profile-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-profile-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.header-profile-role {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* =========================================================
   Container & Page Header
   ========================================================= */
.admin-container {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title-left h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-title-left p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 3px;
}

.page-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   Rounded Container Tab System (Pill / Capsule Tabs)
   ========================================================= */
.time-pill-group,
.tab-container,
.nav-tabs,
.card-tabs,
.card-view-tabs,
.filter-tabs,
.status-tabs,
.tabs-rounded-container,
.tabs-container {
  display: inline-flex;
  align-items: center;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--r-full); /* Fully rounded capsule container */
  padding: 3px 4px;
  gap: 4px;
  max-width: 100%;
  height: 40px;
  box-sizing: border-box;
  overflow-x: auto;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.time-pill-btn,
.tab-btn,
.tab-item,
.card-tab-btn,
.filter-tab-btn,
.status-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--r-full); /* Fully rounded child tab buttons */
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}

.time-pill-btn:hover,
.tab-btn:hover,
.tab-item:hover,
.card-tab-btn:hover,
.filter-tab-btn:hover,
.status-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .time-pill-btn:hover,
[data-theme="dark"] .tab-btn:hover,
[data-theme="dark"] .tab-item:hover,
[data-theme="dark"] .card-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.time-pill-btn.active,
.tab-btn.active,
.tab-item.active,
.card-tab-btn.active,
.filter-tab-btn.active,
.status-tab-btn.active {
  background: var(--primary-600) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  font-weight: 700;
}

.time-pill-btn.active svg,
.tab-btn.active svg,
.card-tab-btn.active svg {
  stroke: #FFFFFF !important;
}

.time-pill-btn span,
.tab-btn span {
  font-size: 11.5px;
}

/* =========================================================
   Cards (WowDash Modern Cards)
   ========================================================= */
.admin-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.admin-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-border);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title svg {
  width: 17px;
  height: 17px;
  stroke: var(--primary-600);
  fill: none;
  stroke-width: 2.2;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--admin-border);
  background: var(--admin-surface);
}

/* =========================================================
   WowDash KPI Metrics Grid
   ========================================================= */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.metric-card {
  padding: 20px;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.metric-card .metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metric-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.metric-icon-box.emerald, .metric-icon-box.violet, .metric-icon-box.primary {
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-border);
}
.metric-icon-box.mint, .metric-icon-box.success {
  background: var(--success-light);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}
.metric-icon-box.coral, .metric-icon-box.danger {
  background: var(--danger-light);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}
.metric-icon-box.cyan, .metric-icon-box.info {
  background: var(--info-light);
  color: var(--info-text);
  border: 1px solid var(--info-border);
}
.metric-icon-box.amber, .metric-icon-box.warning {
  background: var(--warning-light);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
}

.metric-icon-box svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-full);
}

.trend-badge.up {
  background: var(--success-light);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.trend-badge.down {
  background: var(--danger-light);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

.trend-badge svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.metric-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.metric-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
  line-height: 1.15;
}

.metric-subtext {
  font-size: 12px;
  color: var(--text-dim);
}

/* =========================================================
   Modern Decluttered Strip & Studio Components
   ========================================================= */
.summary-chip {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--r);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.summary-chip:hover {
  border-color: #CBD5E1;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.collection-spotlight-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.collection-spotlight-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.promo-voucher-card {
  transition: all 0.2s ease;
}

.promo-voucher-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
  .catalog-summary-strip,
  .collection-spotlight-grid,
  .promo-voucher-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .catalog-summary-strip,
  .collection-spotlight-grid,
  .promo-voucher-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Buttons (WowDash Button Flow)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.btn-primary {
  background: var(--primary-600);
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--admin-card);
  color: var(--text-primary) !important;
  border: 1px solid var(--admin-border);
}

.btn-secondary:hover {
  background: var(--admin-surface);
  border-color: var(--primary-border);
  color: var(--primary-600) !important;
}

.btn-success {
  background: var(--success);
  color: #FFFFFF !important;
}

.btn-success:hover {
  background: #15803D;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: #FFFFFF !important;
}

.btn-danger:hover {
  background: #B91C1C;
  transform: translateY(-1px);
}

.btn-warning {
  background: var(--warning);
  color: #FFFFFF !important;
}

.btn-mint {
  background: var(--mint);
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}
.btn-mint:hover {
  background: #15803D;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
}

.btn-cyan {
  background: var(--cyan);
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(0, 184, 242, 0.25);
}
.btn-cyan:hover {
  background: #0284C7;
  box-shadow: 0 4px 12px rgba(0, 184, 242, 0.35);
  transform: translateY(-1px);
}

.btn-amber {
  background: var(--amber);
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(255, 159, 41, 0.25);
}
.btn-amber:hover {
  background: #D97706;
  box-shadow: 0 4px 12px rgba(255, 159, 41, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary) !important;
  border: 1px solid transparent;
}
.btn-ghost:hover {
  background: var(--admin-surface);
  color: var(--primary-600) !important;
  border-color: var(--admin-border);
}

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--primary-600);
  color: var(--primary-600) !important;
}

.btn-outline-primary:hover {
  background: var(--primary-600);
  color: #FFFFFF !important;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 11.5px;
  border-radius: var(--r-xs);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
}

.btn-lg {
  padding: 11px 24px;
  font-size: 15px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--r-xs);
  display: inline-grid;
  place-items: center;
}

.btn-group {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--admin-border);
  background: var(--admin-card);
}

.btn-group .btn {
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--admin-border);
}

.btn-group .btn:last-child {
  border-right: none;
}

/* =========================================================
   Tables (WowDash Data Table Flow & Horizontal Scroll)
   ========================================================= */
.table-responsive,
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Slim Modern Horizontal Scrollbar for Tables */
.table-responsive::-webkit-scrollbar,
.admin-table-wrap::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.table-responsive::-webkit-scrollbar-track,
.admin-table-wrap::-webkit-scrollbar-track {
  background: var(--admin-surface);
  border-radius: var(--r-full);
}

.table-responsive::-webkit-scrollbar-thumb,
.admin-table-wrap::-webkit-scrollbar-thumb {
  background: var(--admin-border);
  border-radius: var(--r-full);
  transition: background 0.2s ease;
}

.table-responsive::-webkit-scrollbar-thumb:hover,
.admin-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  min-width: 800px;
}

.admin-table th {
  background: var(--table-head-bg);
  color: var(--table-head-text);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--admin-border);
  color: var(--text-primary);
  font-size: 13px;
  vertical-align: middle;
  background: var(--admin-card);
  transition: background 0.15s ease;
  white-space: nowrap;
}

.admin-table tbody tr:hover td {
  background: var(--table-row-hover);
}

/* Table Text Wrapping & Concise Typography Helpers */
.table-text-wrap,
.table-col-wrap,
.td-wrap,
td.table-col-wrap {
  white-space: normal !important;
  word-break: break-word;
  line-height: 1.45;
}

.table-desc-cell,
.table-comment-cell {
  max-width: 260px;
  white-space: normal !important;
  line-height: 1.4;
  color: var(--text-secondary);
  font-size: 12.5px;
  word-break: break-word;
}

.table-desc-cell.short,
.table-comment-cell.short {
  max-width: 220px;
}

.table-items-cell {
  max-width: 220px;
  white-space: normal !important;
  line-height: 1.35;
  font-size: 12.5px;
  color: var(--text-secondary);
  word-break: break-word;
}

.table-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal !important;
}

.table-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-product-img-wrap {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  box-sizing: border-box;
}

.table-product-img {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.table-product-img-wrap .table-product-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  border: none;
  background: transparent;
  vertical-align: middle;
}

.table-product-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.35;
}

.table-product-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-dot-sep {
  display: inline-block;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.7;
  vertical-align: middle;
  flex-shrink: 0;
}

.sku-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* =========================================================
   Admin Progress Bar (Data Table Gauges & Metrics)
   ========================================================= */
.admin-progress-bar {
  width: 100%;
  min-width: 60px;
  max-width: 120px;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--r-full);
  overflow: hidden;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

[data-theme="dark"] .admin-progress-bar {
  background: rgba(255, 255, 255, 0.12);
}

.admin-progress-bar .progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--primary-600);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-progress-bar .progress-fill.mint,
.admin-progress-bar .progress-fill.success {
  background: var(--success);
}

.admin-progress-bar .progress-fill.coral,
.admin-progress-bar .progress-fill.danger {
  background: var(--danger);
}

.admin-progress-bar .progress-fill.amber,
.admin-progress-bar .progress-fill.warning {
  background: var(--warning);
}

.admin-progress-bar .progress-fill.cyan,
.admin-progress-bar .progress-fill.info {
  background: var(--cyan);
}

.admin-progress-bar .progress-fill.violet,
.admin-progress-bar .progress-fill.purple {
  background: var(--violet);
}

.admin-progress-bar .progress-fill.pink {
  background: #EC4899;
}

/* =========================================================
   Modern Full-Width Animated Progress Bars (Cards & Analytics)
   ========================================================= */
.modern-progress-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.modern-progress-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.modern-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.modern-progress-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.modern-progress-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  color: var(--text-muted);
}

.modern-progress-val {
  font-weight: 700;
  font-family: var(--f-mono, monospace);
  color: var(--text-primary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modern-progress-track {
  width: 100%;
  height: 9px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .modern-progress-track {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.06);
}

.modern-progress-fill {
  height: 100%;
  border-radius: 9999px;
  position: relative;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(90deg, #059669 0%, #10B981 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.modern-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  border-radius: 9999px;
  animation: progressFillShimmer 2.4s infinite linear;
}

@keyframes progressFillShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.modern-progress-fill.emerald,
.modern-progress-fill.primary {
  background: linear-gradient(90deg, #059669 0%, #10B981 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.modern-progress-fill.violet {
  background: linear-gradient(90deg, #8B5CF6 0%, #A855F7 100%);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
}

.modern-progress-fill.mint,
.modern-progress-fill.success {
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.modern-progress-fill.coral,
.modern-progress-fill.danger {
  background: linear-gradient(90deg, #EF4444 0%, #F87171 100%);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.modern-progress-fill.cyan,
.modern-progress-fill.info {
  background: linear-gradient(90deg, #06B6D4 0%, #38BDF8 100%);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
}

.modern-progress-fill.amber,
.modern-progress-fill.warning {
  background: linear-gradient(90deg, #F59E0B 0%, #FBBF24 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

/* =========================================================
   Custom Table Checkbox (WowDash Standard)
   ========================================================= */
.checkbox-col {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  text-align: center !important;
  padding: 12px 10px !important;
}

.custom-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  line-height: 1;
  width: 18px;
  height: 18px;
}

.custom-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--admin-border);
  border-radius: 4px;
  background: var(--admin-card);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  vertical-align: middle;
  position: relative;
  outline: none;
}

.custom-checkbox input[type="checkbox"]:hover {
  border-color: var(--primary-600);
}

.custom-checkbox input[type="checkbox"]:checked {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

.custom-checkbox .checkbox-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 12px;
  height: 12px;
  stroke: #FFFFFF;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-mark {
  transform: translate(-50%, -50%) scale(1);
}

.custom-checkbox input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px var(--primary-focus);
}

/* =========================================================
   Table Action Buttons with Background Badges (WowDash)
   ========================================================= */
.table-actions-row,
.table-action-btns,
.action-btn-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  vertical-align: middle;
}

.btn-action,
.btn-action-badge,
.btn-icon-only {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: var(--r-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-action svg,
.btn-action-badge svg,
.btn-icon-only svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}

.btn-action:hover svg,
.btn-action-badge:hover svg,
.btn-icon-only:hover svg {
  transform: scale(1.1);
}

/* Edit Action Badge (Soft Emerald Mint Badge) */
.btn-action-edit,
.btn-action.edit,
.btn-icon-only.btn-secondary {
  background: var(--primary-50);
  border-color: var(--primary-border);
  color: var(--primary-600);
}

.btn-action-edit:hover,
.btn-action.edit:hover,
.btn-icon-only.btn-secondary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Delete Action Badge (Soft Red Danger Badge) */
.btn-action-delete,
.btn-action.delete,
.btn-action-danger,
.btn-icon-only.btn-danger {
  background: var(--danger-light);
  border-color: rgba(220, 38, 38, 0.2);
  color: var(--danger);
}

.btn-action-delete:hover,
.btn-action.delete:hover,
.btn-action-danger:hover,
.btn-icon-only.btn-danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

/* View / Inspect Action Badge (Soft Cyan Info Badge) */
.btn-action-view,
.btn-action.view,
.btn-action-info {
  background: var(--info-light);
  border-color: rgba(0, 184, 242, 0.2);
  color: var(--info-text);
}

.btn-action-view:hover,
.btn-action.view:hover,
.btn-action-info:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 184, 242, 0.3);
}

/* Success / Approve Action Badge (Soft Mint Green Badge) */
.btn-action-success,
.btn-action.success {
  background: var(--success-light);
  border-color: rgba(22, 163, 74, 0.2);
  color: var(--success-text);
}

.btn-action-success:hover,
.btn-action.success:hover {
  background: var(--success);
  border-color: var(--success);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

/* Stock Counter (Inventory Quick Adjust) */
.stock-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--r-sm);
  padding: 3px 6px;
  vertical-align: middle;
}

.stock-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--r-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.stock-btn:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #FFFFFF;
}

.stock-qty {
  font-weight: 700;
  font-size: 13px;
  min-width: 32px;
  text-align: center;
  color: var(--text-primary);
  font-family: var(--f-mono);
}

/* Status Pills (WowDash Style) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.success { background: var(--success-light); color: var(--success-text); }
.status-pill.warning { background: var(--warning-light); color: var(--warning-text); }
.status-pill.danger { background: var(--danger-light); color: var(--danger-text); }
.status-pill.info { background: var(--info-light); color: var(--info-text); }
.status-pill.purple { background: var(--purple-light); color: var(--purple-text); }

/* Table Pagination Flow */
.table-pagination,
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--admin-border);
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-btns,
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn,
.pagination-page-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-xs);
  display: grid;
  place-items: center;
  border: 1px solid var(--admin-border);
  background: var(--admin-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.page-btn:hover,
.pagination-page-btn:hover {
  border-color: var(--primary-border);
  color: var(--primary-600);
}

.page-btn.active,
.pagination-page-btn.active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #FFFFFF;
}

/* =========================================================
   Form Controls (WowDash Form Elements)
   ========================================================= */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  color: var(--text-primary);
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
  font-size: 13px;
}

.form-select option {
  background: var(--admin-card);
  color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

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

.input-with-icon .input-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

.input-with-icon .form-input {
  padding-left: 38px;
}

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.floating-form-group {
  position: relative;
  width: 100%;
}

.floating-input {
  width: 100%;
  padding: 18px 14px 6px;
  border-radius: var(--r-sm);
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  color: var(--text-primary);
  font-size: 13.5px;
  transition: all 0.2s ease;
  height: 50px;
  box-sizing: border-box;
}

.floating-input::placeholder {
  color: transparent !important;
}

.floating-input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

.floating-label {
  position: absolute;
  top: 16px;
  left: 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left top;
}

.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
  transform: translateY(-8px) scale(0.8);
  color: var(--primary-600);
  font-weight: 600;
}

/* =========================================================
   Toggle Switches (Settings & Form System)
   ========================================================= */
.switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.switch-label:hover {
  background: var(--admin-card);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  min-width: 44px;
  flex-shrink: 0;
}

.switch-toggle input[type="checkbox"],
.switch-wrap input[type="checkbox"],
.switch-label input[type="checkbox"],
.switch-input {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.switch-slider {
  position: relative;
  display: block;
  width: 44px;
  height: 24px;
  background: #CBD5E1;
  border-radius: 9999px;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  cursor: pointer;
  box-sizing: border-box;
}

[data-theme="dark"] .switch-slider {
  background: #475569;
}

.switch-toggle .switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.switch-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Checked State */
input:checked + .switch-slider,
.switch-input:checked + .switch-slider {
  background-color: var(--primary-600) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

input:checked + .switch-slider::before,
.switch-input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.switch-toggle input:focus-visible + .switch-slider,
.switch-wrap input:focus-visible + .switch-slider,
.switch-label input:focus-visible + .switch-slider {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}

/* =========================================================
   Payment Gateway Item & Icon Badges
   ========================================================= */
.gateway-switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.gateway-switch-item:hover {
  background: var(--admin-card);
  border-color: var(--primary-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

[data-theme="dark"] .gateway-switch-item:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.gateway-left-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.gateway-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.gateway-switch-item:hover .gateway-icon-box {
  transform: scale(1.06);
}

.gateway-icon-box svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Specific Gateway Badge Themes */
.gateway-icon-box.gateway-stripe {
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.12), rgba(99, 91, 255, 0.04));
  border: 1px solid rgba(99, 91, 255, 0.25);
  color: #635BFF;
}
[data-theme="dark"] .gateway-icon-box.gateway-stripe {
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.25), rgba(99, 91, 255, 0.1));
  border-color: rgba(99, 91, 255, 0.4);
  color: #818CF8;
}

.gateway-icon-box.gateway-upi {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #EA580C;
}
[data-theme="dark"] .gateway-icon-box.gateway-upi {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(16, 185, 129, 0.12));
  border-color: rgba(249, 115, 22, 0.4);
  color: #FB923C;
}

.gateway-icon-box.gateway-paypal {
  background: linear-gradient(135deg, rgba(0, 112, 186, 0.12), rgba(0, 156, 222, 0.05));
  border: 1px solid rgba(0, 112, 186, 0.25);
  color: #0070BA;
}
[data-theme="dark"] .gateway-icon-box.gateway-paypal {
  background: linear-gradient(135deg, rgba(0, 112, 186, 0.25), rgba(0, 156, 222, 0.12));
  border-color: rgba(0, 112, 186, 0.4);
  color: #38BDF8;
}

.gateway-icon-box.gateway-cod {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: #059669;
}
[data-theme="dark"] .gateway-icon-box.gateway-cod {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.1));
  border-color: rgba(16, 185, 129, 0.35);
  color: #34D399;
}

/* File Dropzone */
.file-dropzone {
  border: 2px dashed var(--admin-border);
  border-radius: var(--r);
  padding: 28px 20px;
  text-align: center;
  background: var(--admin-surface);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.file-dropzone:hover {
  border-color: var(--primary-600);
  background: var(--primary-50);
}

.dropzone-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  display: grid;
  place-items: center;
  color: var(--primary-600);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.dropzone-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* =========================================================
   Table Filter Row & Alignment System
   ========================================================= */
.admin-toolbar,
.table-filter-bar,
.filters-row,
.table-filters-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  margin-bottom: 16px;
}

.toolbar-left,
.filters-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.toolbar-right,
.filters-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.search-filter-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
  max-width: 320px;
  flex: 1;
}

.search-filter-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-dim);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

.search-filter-input {
  height: 40px;
  min-width: 200px;
  max-width: 320px;
  width: auto;
  flex: 1;
  padding: 0 14px;
  border-radius: var(--r-sm);
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  color: var(--text-primary);
  font-size: 13px;
  transition: all 0.2s ease;
}

.search-filter-input::placeholder {
  color: var(--text-dim) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
  font-size: 13px;
}

.search-filter-wrap .search-filter-input,
.search-filter-input.has-icon {
  padding-left: 36px;
}

.search-filter-input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

.select-filter {
  height: 40px;
  min-width: 150px;
  width: auto;
  padding: 0 34px 0 14px;
  border-radius: var(--r-sm);
  background-color: var(--admin-card);
  border: 1px solid var(--admin-border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  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='%236B7280' stroke-width='2' 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 12px center;
  background-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

[data-theme="dark"] .select-filter {
  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='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.select-filter option {
  background: var(--admin-card);
  color: var(--text-primary);
}

.select-filter:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-600);
  cursor: pointer;
}


/* =========================================================
   Modals
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal {
  background: var(--admin-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--admin-border);
  box-shadow: var(--shadow-dropdown);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .admin-modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-border);
}

.modal-title, .modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--r-xs);
  padding: 2px 6px;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--danger);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--admin-border);
  background: var(--admin-surface);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* =========================================================
   Universal Modern Confirmation Popup Dialog (AdminConfirm)
   ========================================================= */
.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.confirm-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.confirm-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.confirm-backdrop.open .confirm-card {
  transform: translateY(0) scale(1);
}

.confirm-body {
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.confirm-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}

.confirm-icon-wrap.danger {
  background: rgba(239, 68, 68, 0.14);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.25);
}

.confirm-icon-wrap.warning {
  background: rgba(245, 158, 11, 0.14);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.25);
}

.confirm-icon-wrap.info {
  background: rgba(16, 185, 129, 0.14);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.25);
}

.confirm-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.confirm-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}

.confirm-message {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.confirm-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-footer {
  padding: 16px 24px;
  background: var(--admin-surface);
  border-top: 1px solid var(--admin-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.confirm-footer .btn {
  height: 40px;
  font-size: 13.5px;
  font-weight: 600;
}

/* =========================================================
   Toast Notifications
   ========================================================= */
.admin-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.admin-toast {
  min-width: 300px;
  max-width: 420px;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--r);
  box-shadow: var(--shadow-dropdown);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toast-icon.success { background: var(--success-light); color: var(--success-text); }
.toast-icon.danger { background: var(--danger-light); color: var(--danger-text); }
.toast-icon.warning { background: var(--warning-light); color: var(--warning-text); }
.toast-icon.info { background: var(--info-light); color: var(--info-text); }

.toast-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.toast-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.toast-text span {
  font-size: 12px;
  color: var(--text-secondary);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* =========================================================
   Charts Canvas Wrappers & Modern HUD Components
   ========================================================= */
.chart-wrap {
  width: 100%;
  height: 310px;
  position: relative;
}

.canvas-chart {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.sparkline-wrap {
  position: relative;
  overflow: hidden;
}

.sparkline-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Dashboard Live Telemetry Strip */
.dashboard-live-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--r);
  padding: 12px 18px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.live-strip-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.live-beacon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--success-text);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--r-full);
  letter-spacing: 0.05em;
}

.beacon-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.live-strip-title {
  font-weight: 700;
  color: var(--text-primary);
}

.live-strip-divider {
  color: var(--text-dim);
}

.live-strip-stat {
  color: var(--text-secondary);
}

.live-strip-stat strong {
  color: var(--text-primary);
}

.live-strip-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.target-progress-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.target-progress-label strong {
  color: var(--primary-600);
}

.target-progress-track {
  width: 140px;
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .target-progress-track {
  background: rgba(255, 255, 255, 0.1);
}

.target-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #059669 0%, #10B981 100%);
  transition: width 1s ease;
}

/* Chart Meta Legends */
.chart-meta-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
}

.legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.legend-badge-line {
  width: 14px;
  height: 3px;
  border-radius: 2px;
}

.legend-badge-line.dashed {
  border-bottom: 2px dashed #94A3B8;
  height: 0;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.legend-item:hover {
  background: var(--admin-surface);
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* =========================================================
   WowDash Theme Customizer Offcanvas Drawer
   ========================================================= */
.theme-customizer-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100vh;
  background: var(--admin-card);
  border-left: 1px solid var(--admin-border);
  box-shadow: var(--shadow-dropdown);
  z-index: 1050;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.theme-customizer-drawer.open {
  right: 0;
}

.customizer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customizer-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.customizer-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.customizer-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.theme-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.theme-mode-btn {
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.theme-mode-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

.theme-mode-btn.active, .theme-mode-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-600);
  color: var(--primary-600);
}

.color-schemas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.color-schema-btn {
  padding: 10px;
  border-radius: var(--r-sm);
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-schema-btn .color-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.color-schema-btn.active {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 2px var(--primary-focus);
}

/* Floating Settings Button */
.floating-customizer-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-600);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  z-index: 1040;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.floating-customizer-btn:hover {
  transform: scale(1.1);
}

.floating-customizer-btn svg {
  width: 22px;
  height: 22px;
  stroke: #FFFFFF;
  stroke-width: 2.2;
  animation: spinSlow 12s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =========================================================
   Auth Pages (Full Page Edge-to-Edge Modern SaaS Command Center)
   ========================================================= */
.auth-viewport {
  min-height: 100vh;
  width: 100%;
  display: flex;
  background: var(--admin-bg);
  padding: 0;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

.auth-split-wrapper {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  position: relative;
}

/* LEFT PANE: HIGH-DEFINITION HERO SHOWCASE */
.auth-hero-pane {
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(5, 150, 105, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(52, 211, 153, 0.1) 0%, transparent 60%),
              #0F172A;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(5, 150, 105, 0.2) 0%, transparent 50%),
    #0F172A;
  background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
  color: #FFFFFF;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 15, 29, 0.2) 0%, rgba(10, 15, 29, 0.6) 100%);
  z-index: 1;
}

.auth-ambient-orb-1 {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(16, 185, 129, 0) 70%);
  top: -100px;
  left: -100px;
  filter: blur(40px);
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite alternate;
  z-index: 1;
}

.auth-ambient-orb-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.22) 0%, rgba(5, 150, 105, 0) 70%);
  bottom: -150px;
  right: -100px;
  filter: blur(50px);
  pointer-events: none;
  animation: orbFloat 18s ease-in-out infinite alternate-reverse;
  z-index: 1;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

.auth-hero-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.auth-brand-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.auth-brand-logo svg {
  width: 24px;
  height: 24px;
  stroke: #FFFFFF;
  stroke-width: 2.5;
  fill: none;
}

.auth-brand-details {
  display: flex;
  flex-direction: column;
}

.auth-brand-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.1;
}

.auth-brand-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6EE7B7;
  margin-top: 2px;
}

.auth-node-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePing 2s infinite;
}

.auth-hero-content {
  position: relative;
  z-index: 2;
  margin: 28px 0;
}

.auth-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--r-full);
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #6EE7B7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.auth-hero-heading {
  color: #FFFFFF !important;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #6EE7B7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.auth-hero-description {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 24px;
}

/* Glassmorphic Telemetry HUD Card */
.hero-hud-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.45);
  margin-bottom: 24px;
  position: relative;
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.hud-live-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #34D399;
}

.hud-latency {
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.hud-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 14px;
}

.hud-metric-item {
  display: flex;
  flex-direction: column;
}

.hud-metric-label {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hud-metric-val {
  font-size: 21px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 3px 0;
  font-family: var(--f-display);
}

.hud-metric-trend {
  font-size: 11px;
  font-weight: 600;
}

.hud-metric-trend.positive {
  color: #4ADE80;
}

.hud-metric-trend.neutral {
  color: #6EE7B7;
}

.hud-activity-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.hud-act-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hud-act-icon.green {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ADE80;
}

.hud-act-icon.blue {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

.hud-act-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.hud-act-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.hud-act-text strong {
  color: #F1F5F9;
  font-weight: 600;
}

.hud-act-text span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

/* Feature Bullets & Minimal Tag Pills */
.auth-hero-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-full);
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
}

.hero-tag-pill svg {
  width: 12px;
  height: 12px;
  stroke: #34D399;
  fill: none;
  stroke-width: 2.2;
}

.auth-hero-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.feature-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.45);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #6EE7B7;
}

.feature-icon-circle svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Hero Footer */
.auth-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-team-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group .admin-avatar {
  margin-left: -8px;
  border: 2px solid #0A0F1D;
  position: relative;
}

.avatar-group .admin-avatar:first-child {
  margin-left: 0;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.auth-team-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.auth-team-text strong {
  font-size: 12.5px;
  color: #FFFFFF;
}

.auth-team-text span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.auth-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-security-badge svg {
  width: 13px;
  height: 13px;
  stroke: #4ADE80;
  fill: none;
  stroke-width: 2;
}

/* RIGHT PANE: MODERN AUTHENTICATION FORM */
.auth-form-pane {
  min-height: 100vh;
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--admin-card);
  position: relative;
  overflow-y: auto;
}

.auth-form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.auth-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 7px 14px;
  border-radius: var(--r-full);
  transition: all 0.2s ease;
  text-decoration: none;
}

.auth-back-pill:hover {
  color: var(--primary-600);
  border-color: var(--primary-border);
  background: var(--primary-50);
  transform: translateX(-2px);
}

.auth-back-pill svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  transition: transform 0.2s ease;
}

.auth-back-pill:hover svg {
  transform: translateX(-2px);
}

.auth-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-region-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 6px 12px;
  border-radius: var(--r-full);
}

.auth-form-center-wrapper {
  max-width: 440px;
  width: 100%;
  margin: auto;
  padding: 20px 0;
}

.auth-glass-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form-header {
  margin-bottom: 2px;
}

.auth-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-600);
  background: var(--primary-50);
  border: 1px solid var(--primary-border);
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 10px;
}

.auth-form-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.auth-form-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* Quick Demo Role Fillers */
.auth-demo-roles {
  background: var(--admin-surface);
  border: 1px dashed var(--admin-border);
  border-radius: var(--r);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-demo-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-demo-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-chip-btn:hover, .demo-chip-btn.active {
  background: var(--primary-50);
  border-color: var(--primary-600);
  color: var(--primary-600);
  transform: translateY(-1px);
}

.demo-chip-btn.active {
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--primary-focus);
}

.auth-main-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group-modern {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label-modern {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.label-row-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-link-forgot {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-600);
  text-decoration: none;
}

.auth-link-forgot:hover {
  text-decoration: underline;
}

.modern-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-slot {
  position: absolute;
  left: 14px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  pointer-events: none;
}

.input-icon-slot svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.form-input-modern {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 42px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--r);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-input-modern::placeholder {
  color: var(--text-dim) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
  font-size: 13.5px;
}

.form-input-modern:focus {
  background: var(--admin-card);
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px var(--primary-focus);
  outline: none;
}

.btn-eye-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: var(--r-xs);
  transition: color 0.15s ease;
}

.btn-eye-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.btn-eye-toggle:hover {
  color: var(--primary-600);
}

.caps-warning {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--warning-text);
  background: var(--warning-light);
  border: 1px solid var(--warning-border);
  border-radius: var(--r-xs);
  padding: 4px 8px;
  margin-top: 4px;
}

.caps-warning.show {
  display: flex;
}

.auth-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.modern-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 13px;
  user-select: none;
}

.modern-checkbox-label input {
  accent-color: var(--primary-600);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.auth-shield-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success-text);
  font-size: 11.5px;
  font-weight: 600;
}

.auth-btn-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-600) 0%, #10B981 100%);
  color: #FFFFFF;
  border-radius: var(--r);
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

.auth-btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, var(--primary-700) 0%, #059669 100%);
}

.auth-btn-gradient:active {
  transform: translateY(0);
}

.auth-btn-gradient svg {
  width: 18px;
  height: 18px;
  stroke: #FFFFFF;
  fill: none;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}

.auth-btn-gradient:hover .btn-icon-arrow svg {
  transform: translateX(3px);
}

.auth-divider-modern {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 4px 0;
}

.auth-divider-modern::before, .auth-divider-modern::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--admin-border);
}

.auth-divider-modern span {
  padding: 0 12px;
}

.auth-sso-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sso-btn-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--r);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sso-btn-modern:hover {
  background: var(--admin-card);
  border-color: var(--primary-600);
  color: var(--primary-600);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.sso-btn-modern svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-signup-bar {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.auth-register-link {
  color: var(--primary-600);
  font-weight: 700;
  margin-left: 4px;
  text-decoration: none;
}

.auth-register-link:hover {
  text-decoration: underline;
}

.auth-form-bottom-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px solid var(--admin-border-subtle);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trust-item svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .auth-split-wrapper {
    grid-template-columns: 1fr;
  }
  
  .auth-hero-pane {
    padding: 36px 24px;
    min-height: auto;
  }
  
  .hero-hud-card {
    display: none;
  }
  
  .auth-form-pane {
    padding: 36px 24px;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .auth-hero-heading {
    font-size: 28px;
  }
  
  .hud-metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .auth-sso-row {
    grid-template-columns: 1fr;
  }
  
  .auth-form-bottom-trust {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* =========================================================
   Live Telemetry & Notification Feed System
   ========================================================= */
.notification-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--r);
  transition: all 0.2s ease;
  position: relative;
}

.notification-item.unread {
  border-left: 4px solid var(--primary-600);
  background: rgba(16, 185, 129, 0.03);
}

[data-theme="dark"] .notification-item.unread {
  background: rgba(16, 185, 129, 0.08);
}

.notification-item:hover {
  border-color: var(--admin-border-focus);
  transform: translateX(2px);
}

.notification-icon-box {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.notification-icon-box svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.notification-icon-box.violet,
.notification-icon-box.primary {
  background: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-border);
}

.notification-icon-box.coral,
.notification-icon-box.danger {
  background: var(--danger-light, rgba(220, 38, 38, 0.12));
  color: var(--danger, #dc2626);
  border-color: rgba(220, 38, 38, 0.25);
}

.notification-icon-box.mint,
.notification-icon-box.success {
  background: var(--success-light, rgba(22, 163, 74, 0.12));
  color: var(--success, #16a34a);
  border-color: rgba(22, 163, 74, 0.25);
}

.notification-icon-box.amber,
.notification-icon-box.warning {
  background: var(--warning-light, rgba(255, 159, 41, 0.14));
  color: #d97706;
  border-color: rgba(255, 159, 41, 0.3);
}

.notification-icon-box.cyan,
.notification-icon-box.info {
  background: var(--info-light, rgba(0, 184, 242, 0.12));
  color: #0284c7;
  border-color: rgba(0, 184, 242, 0.25);
}

[data-theme="dark"] .notification-icon-box.amber {
  color: var(--warning, #ff9f29);
}

[data-theme="dark"] .notification-icon-box.cyan {
  color: var(--info, #00b8f2);
}

.notification-content {
  flex: 1;
}

.notification-time {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* =========================================================
   UI Showcase & Design System Component Cards
   ========================================================= */
.ui-showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.component-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.component-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.component-card-header {
  padding: 18px 24px;
  background: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.component-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.component-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.component-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-600);
  fill: none;
  stroke-width: 2.2;
}

.component-desc {
  font-size: 12.5px;
  color: var(--text-muted);
}

.card-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-copy-card,
.btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-card svg,
.btn-copy-code svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.btn-copy-card:hover,
.btn-copy-code:hover {
  background: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-border);
  transform: translateY(-1px);
}

.component-preview-pane {
  padding: 24px;
  background: var(--admin-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.component-code-pane {
  display: none;
  background: #0B0F19;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.component-card.show-code .component-preview-pane {
  display: none;
}

.component-card.show-code .component-code-pane {
  display: block;
}

.code-header {
  padding: 12px 20px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-lang-badge {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #38BDF8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-content {
  margin: 0;
  padding: 20px 24px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #E2E8F0;
  overflow-x: auto;
  white-space: pre;
  background: transparent;
}

.code-content code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* =========================================================
   Interactive Timeline & Event Stream
   ========================================================= */
.timeline-stream {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 20px;
}

.timeline-stream::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 33px;
  width: 2px;
  background: var(--admin-border);
  z-index: 1;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--admin-card);
  border: 2px solid var(--primary-600);
  color: var(--primary-600);
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  flex-shrink: 0;
}

.timeline-node.success {
  border-color: var(--success);
  color: var(--success);
  background: var(--success-light);
}

.timeline-node.warning {
  border-color: var(--warning);
  color: var(--warning);
  background: var(--warning-light);
}

.timeline-node.danger {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-light);
}

.timeline-node.cyan {
  border-color: var(--info);
  color: var(--info);
  background: var(--info-light);
}

.timeline-node svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.timeline-content-box {
  flex: 1;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  position: relative;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-time {
  font-size: 11.5px;
  color: var(--text-muted);
}

.timeline-body {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* =========================================================
   Surfaces, Glassmorphic & Bento Widgets
   ========================================================= */
.surface-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.glass-stat-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r);
  box-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .glass-stat-card {
  background: rgba(39, 49, 66, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px 0 rgba(16, 185, 129, 0.16);
}

.glow-gradient-card {
  padding: 22px;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.glow-gradient-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-primary);
}

/* =========================================================
   Custom Dropdown Menus & Context Action Popovers
   ========================================================= */
.admin-dropdown-menu {
  min-width: 220px;
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--r);
  box-shadow: var(--shadow-dropdown);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.dropdown-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}

.dropdown-item:hover {
  background: var(--primary-50);
  color: var(--primary-600);
}

.dropdown-item:hover svg {
  stroke: var(--primary-600);
}

.dropdown-item.danger {
  color: var(--danger);
}

.dropdown-item.danger:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.dropdown-item.danger svg {
  stroke: var(--danger);
}

.dropdown-shortcut {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--f-mono);
}

.dropdown-divider {
  height: 1px;
  background: var(--admin-border);
  margin: 4px 0;
}

/* =========================================================
   Empty States & Zero Data Placeholders
   ========================================================= */
.empty-state-card {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--admin-surface);
  border: 1px dashed var(--admin-border);
  border-radius: var(--r);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-600);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.empty-state-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* =========================================================
   Workflow Stepper, Breadcrumbs & Progress Gauges
   ========================================================= */
.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.breadcrumb-item:hover {
  color: var(--primary-600);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 600;
  pointer-events: none;
}

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

.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 16px;
  padding: 16px 0;
}

.wizard-stepper::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--admin-border);
  z-index: 1;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--admin-border);
  background: var(--admin-card);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 4px var(--admin-card);
}

.step-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.step-node.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #FFFFFF;
}

.step-node.completed .step-name {
  color: var(--text-primary);
}

.step-node.active .step-circle {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px var(--admin-card), 0 0 0 6px var(--primary-focus);
}

.step-node.active .step-name {
  color: var(--primary-600);
  font-weight: 700;
}

/* Segmented Multi-Category Progress Bar */
.progress-segmented {
  display: flex;
  height: 10px;
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--admin-surface);
  gap: 2px;
  border: 1px solid var(--admin-border-subtle);
}

.progress-seg {
  height: 100%;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   Tabs, Collapsible Accordions & Interactive Tooltips
   ========================================================= */
.nav-tabs-underline {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--admin-border);
  overflow-x: auto;
}

.tab-underline-btn {
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
  user-select: none;
}

.tab-underline-btn:hover {
  color: var(--text-primary);
}

.tab-underline-btn.active {
  color: var(--primary-600);
}

.tab-underline-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-600);
  border-radius: 2px 2px 0 0;
}

/* Collapsible Accordion Drawer */
.admin-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  border: 1px solid var(--admin-border);
  border-radius: var(--r-sm);
  background: var(--admin-surface);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.accordion-item.open {
  border-color: var(--primary-border);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  background: var(--admin-surface);
  transition: background 0.15s ease;
}

.accordion-header:hover {
  background: var(--admin-card);
}

.accordion-header svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  stroke-width: 2.2;
  fill: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
  flex-shrink: 0;
}

.accordion-item.open .accordion-header svg {
  transform: rotate(180deg);
  stroke: var(--primary-600);
}

.accordion-content {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: none;
  background: var(--admin-surface);
}

.accordion-item.open .accordion-content {
  display: block;
}

/* Tooltips */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0F172A;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 100;
}

[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #0F172A transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Color Tokens Swatches */
.color-swatch-card {
  padding: 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--admin-border-subtle);
  background: var(--admin-surface);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-swatch-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-600);
  box-shadow: var(--shadow-sm);
}

.swatch-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Password Strength Meter & SSO Gateways */
.strength-meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.strength-bars {
  display: flex;
  gap: 6px;
  height: 4px;
}

.strength-bar-seg {
  flex: 1;
  height: 100%;
  border-radius: var(--r-full);
  background: var(--admin-border);
  transition: background 0.25s ease;
}

.strength-bar-seg.active-weak {
  background: var(--danger);
}

.strength-bar-seg.active-med {
  background: var(--warning);
}

.strength-bar-seg.active-strong {
  background: var(--success);
}

.strength-text {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-sso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.auth-sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-sso-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-sso-btn:hover {
  background: var(--admin-card);
  border-color: var(--primary-border);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Alert Boxes */
.alert-box {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  border: 1px solid;
  position: relative;
}

.alert-box.success { background: var(--success-light); border-color: var(--success-border); color: var(--success-text); }
.alert-box.warning { background: var(--warning-light); border-color: var(--warning-border); color: var(--warning-text); }
.alert-box.danger { background: var(--danger-light); border-color: var(--danger-border); color: var(--danger-text); }
.alert-box.info { background: var(--info-light); border-color: var(--info-border); color: var(--info-text); }
.alert-box.purple { background: var(--purple-light); border-color: var(--purple-border); color: var(--purple-text); }

.alert-box svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 18px;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 4px;
}

.alert-close:hover {
  opacity: 1;
}

.ui-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ui-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ui-flex-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .ui-grid-2, .ui-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Sidebar Drawer Backdrop & Responsive States
   ========================================================= */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   Desktop Collapsed Mini / Icon-Only Sidebar State
   ========================================================= */
@media (min-width: 993px) {
  body.sidebar-collapsed .admin-sidebar {
    width: 72px;
    transform: translateX(0);
    box-shadow: 0 0 20px rgba(15, 23, 42, 0.05);
    overflow: visible;
  }

  body.sidebar-collapsed .admin-main {
    margin-left: 72px !important;
  }

  body.sidebar-collapsed .sidebar-header {
    padding: 0 12px;
    justify-content: center;
  }

  body.sidebar-collapsed .brand-text {
    display: none !important;
  }

  body.sidebar-collapsed .brand-mark {
    margin: 0 auto;
  }

  body.sidebar-collapsed .sidebar-nav {
    padding: 14px 10px;
    align-items: center;
    overflow-x: visible;
  }

  body.sidebar-collapsed .nav-section-title {
    opacity: 0;
    height: 1px;
    margin: 8px auto;
    padding: 0;
    width: 32px;
    background: var(--admin-border);
    font-size: 0;
    overflow: hidden;
  }

  body.sidebar-collapsed .nav-link {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: var(--r-sm);
    margin: 0 auto 4px;
    position: relative;
  }

  body.sidebar-collapsed .nav-link span,
  body.sidebar-collapsed .nav-link .nav-pill {
    display: none !important;
  }

  body.sidebar-collapsed .nav-link svg {
    margin: 0;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  /* Floating Popover Tooltip for Icon Links */
  body.sidebar-collapsed .nav-link::after {
    content: attr(data-title);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: #0F172A;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    z-index: 1005;
  }

  body.sidebar-collapsed .nav-link:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  body.sidebar-collapsed .sidebar-footer {
    padding: 14px 10px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: visible;
  }

  body.sidebar-collapsed .store-live-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    margin: 0 auto;
    border-radius: var(--r-sm);
    position: relative;
  }

  body.sidebar-collapsed .store-live-btn > span {
    font-size: 0;
    gap: 0;
  }

  body.sidebar-collapsed .store-live-btn > span > svg {
    width: 18px;
    height: 18px;
    margin: 0 auto;
  }

  body.sidebar-collapsed .store-live-btn > span:last-child {
    display: none !important;
  }

  body.sidebar-collapsed .store-live-btn::after {
    content: attr(data-title);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: #0F172A;
    color: #4ADE80;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.3);
    z-index: 1005;
  }

  body.sidebar-collapsed .store-live-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  body.sidebar-collapsed .admin-user-card {
    width: 44px;
    height: 44px;
    padding: 4px;
    justify-content: center;
    background: transparent;
    border: none;
    margin: 0 auto;
    position: relative;
  }

  body.sidebar-collapsed .admin-user-info,
  body.sidebar-collapsed .user-logout-btn {
    display: none !important;
  }

  body.sidebar-collapsed .admin-avatar {
    margin: 0 auto;
    width: 32px;
    height: 32px;
  }
}

/* =========================================================
   Responsive Breakpoints & Mobile Drawer
   ========================================================= */
@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 275px;
    max-width: 86vw;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0 !important;
  }
  .menu-toggle-btn {
    display: grid;
  }
  body.sidebar-open {
    overflow: hidden;
  }
  .auth-split-wrapper {
    grid-template-columns: 1fr;
  }
  .auth-hero-pane {
    display: none;
  }
}

@media (max-width: 640px) {
  .admin-container {
    padding: 16px;
    gap: 16px;
  }
  .admin-header {
    padding: 0 16px;
  }
  .global-search-wrap {
    display: none;
  }
  .header-metric-pill {
    display: none;
  }
}
