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

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Color Palette - Executive Fintech Blue & Slate */
  --primary: #1e3a8a;          /* Deep Navy */
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --accent: #2563eb;           /* Cobalt */
  --accent-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-focus: #3b82f6;

  --text-dark: #0f172a;
  --text-medium: #475569;
  --text-muted: #64748b;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #0284c7;
  --info-bg: #f0f9ff;
  --purple: #8b5cf6;
  --purple-bg: #f5f3ff;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* AUTHENTICATION SPLIT PAGE LAYOUT - EXECUTIVE STANDARD */
.auth-page {
  min-height: 100vh;
  display: flex;
  background-color: #0b0f19;
  background-image: 
    radial-gradient(at 15% 15%, rgba(99, 102, 241, 0.18) 0px, transparent 55%),
    radial-gradient(at 85% 85%, rgba(37, 99, 235, 0.15) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(16, 185, 129, 0.08) 0px, transparent 60%);
  overflow-x: hidden;
  align-items: center;
  justify-content: center;
}

.auth-container {
  display: flex;
  width: 100%;
  max-width: 1320px;
  min-height: calc(100vh - 60px);
  margin: 30px auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.1);
}

.auth-hero-panel {
  flex: 1.15;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #1e3a8a 100%);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-hero-panel::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.auth-hero-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  z-index: 2;
  width: 100%;
}

.brand-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.brand-name {
  font-size: 23px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.auth-hero-content {
  z-index: 2;
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin: 40px 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(165, 180, 252, 0.3);
  color: #a5b4fc;
  letter-spacing: 0.02em;
}

.auth-hero-content h1 {
  font-size: 38px;
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: left;
}

.auth-hero-content p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.85);
  margin-bottom: 32px;
  text-align: left;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.feature-text h4 {
  font-size: 15px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 3px;
}

.feature-text p {
  font-size: 13px;
  color: rgba(226, 232, 240, 0.75);
  line-height: 1.45;
  margin-bottom: 0;
}

.auth-hero-footer {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  width: 100%;
}

.compliance-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #34d399;
}

.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 40px;
  background: #0f172a;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #1e293b;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.auth-header {
  margin-bottom: 28px;
}

.auth-header h2 {
  font-size: 26px;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 800;
}

.auth-header p {
  color: #94a3b8;
  font-size: 14px;
}

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

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-field {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-family: var(--font-main);
  font-size: 14px;
  color: #f8fafc;
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: #6366f1;
  background: #0f172a;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.forgot-btn {
  background: none;
  border: none;
  color: #818cf8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.forgot-btn:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.btn-secondary {
  width: 100%;
  padding: 12px 20px;
  background: #ffffff;
  color: var(--text-dark);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--bg-app);
}

.demo-banner {
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  text-align: center;
}

.demo-banner p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.btn-demo-quick {
  padding: 7px 14px;
  font-size: 12px;
  background: var(--text-dark);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.alert-message {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #a7f3d0; }

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

/* DASHBOARD PAGE & SIDEBAR LAYOUT */
.dashboard-page {
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.navbar {
  height: 72px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.navbar-brand-text {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.navbar-brand-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* NOTIFICATION BELL BUTTON (NO BOX - YELLOW BELL) */
.notif-bell-btn {
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #f59e0b !important;
  transition: transform 0.2s ease;
}

.notif-bell-btn:hover {
  transform: scale(1.1);
  background: transparent !important;
}

.notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
}


.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

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

.user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.user-email {
  font-size: 11px;
  color: #64748b;
}

.logout-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-button:hover {
  background: #fee2e2;
}

/* Main Content Wrapper with Sub-Nav Tabs */
.dashboard-nav-tabs {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 40px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.nav-tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-tab-item:hover {
  color: #2563eb;
}

.nav-tab-item.active {
  color: #1e3a8a;
  border-bottom-color: #2563eb;
  font-weight: 700;
}

.dashboard-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 30px 60px 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Welcome Banner */
.welcome-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
  border-radius: 20px;
  padding: 36px 44px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
  position: relative;
  overflow: hidden;
}

.welcome-text h1 {
  color: #ffffff;
  font-size: 30px;
  margin-bottom: 6px;
  font-weight: 800;
}

.welcome-text p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.btn-new-mandate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: #ffffff;
  color: #1e3a8a;
  border: none;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-new-mandate:hover {
  transform: translateY(-2px);
  background: #f8fafc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 6 SUMMARY STATS CARDS GRID */
.stats-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.stat-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-blue { background: #eff6ff; color: #2563eb; }
.stat-icon-green { background: #ecfdf5; color: #10b981; }
.stat-icon-amber { background: #fffbeb; color: #f59e0b; }
.stat-icon-purple { background: #f5f3ff; color: #8b5cf6; }
.stat-icon-red { background: #fef2f2; color: #ef4444; }
.stat-icon-cyan { background: #f0f9ff; color: #0284c7; }

.stat-details h4 {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0;
  letter-spacing: -0.02em;
}

.stat-subtext {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

/* Section Card */
.section-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}


.section-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.section-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header-title h3 {
  font-size: 18px;
  color: var(--text-dark);
}

/* STATUS BADGES (ACTIVE, PENDING, PAUSED, FAILED, CANCELLED, EXPIRED) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-active { background: var(--success-bg); color: var(--success); border: 1px solid #a7f3d0; }
.badge-pending { background: var(--warning-bg); color: var(--warning); border: 1px solid #fde68a; }
.badge-paused { background: var(--purple-bg); color: var(--purple); border: 1px solid #ddd6fe; }
.badge-failed { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }
.badge-cancelled { background: #f1f5f9; color: var(--text-muted); border: 1px solid #cbd5e1; }
.badge-expired { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.badge-completed { background: var(--info-bg); color: var(--info); border: 1px solid #bae6fd; }

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
  flex-wrap: wrap;
}

.tab-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.tab-btn {
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-medium);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  font-size: 13px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

/* Custom Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.custom-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
}

.custom-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
  vertical-align: middle;
}

.custom-table tbody tr:hover {
  background: #f1f5f9;
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon-action:hover {
  background: var(--primary-light);
  color: var(--accent);
  border-color: #bfdbfe;
}

/* WIZARD & BANK AUTH SIMULATION UI */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 16px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.wizard-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.wizard-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.wizard-step-item.active .wizard-step-number {
  background: var(--accent);
}

.wizard-step-item.active {
  color: var(--accent);
}

.wizard-step-item.completed .wizard-step-number {
  background: var(--success);
}

.wizard-step-item.completed {
  color: var(--success);
}

.bank-auth-gateway-screen {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.gateway-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* NOTIFICATIONS DRAWER OVERLAY */
.notif-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}

.notif-drawer {
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.25s ease-out;
}

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

.notif-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  transition: var(--transition);
  cursor: pointer;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-item.unread {
  background: #eff6ff;
}

/* PROFILE & SUPPORT ACCORDIONS */
.faq-accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-accordion-header {
  padding: 16px 20px;
  background: #ffffff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-accordion-body {
  padding: 16px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-medium);
}

/* MODAL BACKDROP */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  padding: 20px 28px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
}

.modal-footer {
  padding: 18px 28px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

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

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .stats-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .auth-hero-panel { display: none; }
}

@media (max-width: 640px) {
  .stats-grid-6 { grid-template-columns: 1fr; }
  .navbar { padding: 0 16px; }
  .dashboard-container { padding: 20px 16px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .dashboard-nav-tabs { padding: 0 16px; }
  .wizard-progress { flex-direction: column; align-items: flex-start; gap: 8px; }
}


.admin-app-layout {
  display: flex;
  min-height: 100vh;
  background-color: #080c14;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.1) 0px, transparent 50%);
  color: #f1f5f9;
  font-family: var(--font-main);
  overflow-x: hidden;
}

/* SIDEBAR */
.admin-sidebar {
  width: 280px;
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}

.admin-sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.8);
}

.brand-badge-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.brand-titles h2 {
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-titles .subtitle {
  font-size: 0.7rem;
  color: #818cf8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-nav-group {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px 12px 6px 12px;
}

.admin-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  text-align: left;
}

.admin-sidebar .nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  transform: translateX(3px);
}

.admin-sidebar .nav-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(139, 92, 246, 0.22) 100%);
  color: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.4);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.badge-counter {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.badge-counter.blue {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.badge-counter.grey {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.8);
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

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

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
}

.user-role {
  font-size: 0.7rem;
  color: #818cf8;
  font-weight: 600;
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* MAIN CONTENT AREA */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #080c14;
}

.admin-header {
  padding: 20px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-left h1 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 4px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.environment-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.header-title-box h1 {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 4px;
  font-weight: 700;
}

.header-title-box p {
  font-size: 0.85rem;
  color: #94a3b8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.78rem;
  font-weight: 600;
  color: #34d399;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.admin-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-profile-pill .avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #ffffff;
}

.admin-profile-pill .profile-details {
  display: flex;
  flex-direction: column;
}

.admin-profile-pill .name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
}

.admin-profile-pill .role {
  font-size: 0.7rem;
  color: #818cf8;
  font-weight: 600;
}

.admin-content-body {
  padding: 32px;
  flex: 1;
}

/* METRICS GRID */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.metric-card.gradient-blue {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(17, 24, 39, 0.8) 100%);
}

.metric-card.gradient-emerald {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.5) 0%, rgba(17, 24, 39, 0.8) 100%);
}

.metric-card.gradient-amber {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.5) 0%, rgba(17, 24, 39, 0.8) 100%);
}

.metric-card.gradient-purple {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.5) 0%, rgba(17, 24, 39, 0.8) 100%);
}

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

.card-title {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-card .icon-box {
  color: #93c5fd;
}

.card-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.card-subtext {
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-subtext.positive { color: #34d399; }
.card-subtext.warning { color: #fbbf24; }

/* PANELS & TABLES */
.overview-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.admin-panel {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.admin-panel h3 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-act-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.quick-act-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #ffffff;
}

.health-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.health-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  color: #cbd5e1;
}

.text-emerald { color: #34d399; }
.text-blue { color: #60a5fa; }
.text-rose { color: #f87171; }
.text-indigo { color: #a5b4fc; }

/* BAR & FILTERS */
.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 16px;
  border-radius: 12px;
  flex: 1;
  max-width: 420px;
  color: #94a3b8;
}

.search-input-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 0.88rem;
  width: 100%;
}

.filter-pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
}

/* TABLES */
.admin-table-wrapper {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 20px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  vertical-align: middle;
}

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

.table-user-cell {
  display: flex;
  flex-direction: column;
}

.table-user-cell span {
  color: #ffffff;
  font-weight: 600;
}

.table-user-cell small {
  color: #64748b;
  font-size: 0.78rem;
}

/* STATUS PILLS */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill.active, .status-pill.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.pending, .status-pill.in_progress, .status-pill.open {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* SUPPORT QUEUE PRIORITY BADGES */
.priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.priority-badge.high {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.priority-badge.medium {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.priority-badge.low {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.act-btn.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.act-btn.pending:hover {
  background: #f59e0b;
  color: #ffffff;
}



.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.act-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.act-btn.approve {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.act-btn.approve:hover {
  background: #10b981;
  color: #ffffff;
}

.act-btn.reject, .act-btn.suspend {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.act-btn.reject:hover, .act-btn.suspend:hover {
  background: #ef4444;
  color: #ffffff;
}

.act-btn.retry {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.act-btn.retry:hover {
  background: #6366f1;
  color: #ffffff;
}

/* AUDIT TRAIL */
.audit-log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audit-log-item {
  display: grid;
  grid-template-columns: 160px 180px 1fr 120px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.log-time {
  color: #64748b;
  font-size: 0.78rem;
}

.action-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 10px;
}

/* TOAST */
.admin-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #10b981;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  z-index: 1000;
  animation: slideInRight 0.3s ease;
}

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

.admin-loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px;
  gap: 16px;
  color: #818cf8;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==========================================
   THEME TOGGLE BUTTON & DARK/LIGHT MODES
   ========================================== */

.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.admin-theme-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

.admin-theme-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

/* CUSTOMER DASHBOARD DARK MODE OVERRIDES */
.dashboard-page.dark-theme {
  background: #090d16;
  color: #f1f5f9;
}

.dashboard-page.dark-theme .navbar,
.dashboard-page.dark-theme .dashboard-nav-tabs,
.dashboard-page.dark-theme .section-card,
.dashboard-page.dark-theme .stat-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.dashboard-page.dark-theme .navbar-brand-text,
.dashboard-page.dark-theme .stat-value,
.dashboard-page.dark-theme .user-name,
.dashboard-page.dark-theme h1,
.dashboard-page.dark-theme h2,
.dashboard-page.dark-theme h3,
.dashboard-page.dark-theme h4 {
  color: #ffffff;
}

.dashboard-page.dark-theme .nav-tab-item {
  color: #94a3b8;
}

.dashboard-page.dark-theme .nav-tab-item.active {
  color: #60a5fa;
  border-bottom-color: #3b82f6;
}

.dashboard-page.dark-theme .user-profile-badge {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dashboard-page.dark-theme .user-email,
.dashboard-page.dark-theme .stat-subtext,
.dashboard-page.dark-theme .stat-details h4 {
  color: #94a3b8;
}

.dashboard-page.dark-theme .custom-table th {
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dashboard-page.dark-theme .custom-table td {
  color: #cbd5e1;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* ADMIN DASHBOARD LIGHT MODE OVERRIDES */
.admin-app-layout.light-theme {
  background: #f8fafc;
  color: #0f172a;
}

.admin-app-layout.light-theme .admin-sidebar {
  background: #ffffff;
  border-right-color: #e2e8f0;
}

.admin-app-layout.light-theme .brand-titles h2,
.admin-app-layout.light-theme .header-title-box h1 {
  color: #0f172a;
}

.admin-app-layout.light-theme .admin-sidebar .nav-item {
  color: #475569;
}

.admin-app-layout.light-theme .admin-sidebar .nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.admin-app-layout.light-theme .admin-sidebar .nav-item.active {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.admin-app-layout.light-theme .admin-main,
.admin-app-layout.light-theme .admin-header {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

.admin-app-layout.light-theme .admin-panel,
.admin-app-layout.light-theme .admin-table-wrapper {
  background: #ffffff;
  border-color: #e2e8f0;
}

.admin-app-layout.light-theme .admin-panel h3,
.admin-app-layout.light-theme .table-user-cell span {
  color: #0f172a;
}

.admin-app-layout.light-theme .admin-table th {
  background: #f8fafc;
  color: #64748b;
  border-bottom-color: #e2e8f0;
}

.admin-app-layout.light-theme .admin-table td {
  color: #334155;
  border-bottom-color: #f1f5f9;
}

.admin-app-layout.light-theme .search-input-box {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.admin-app-layout.light-theme .search-input-box input {
  color: #0f172a;
}

/* NOTIFICATION BELL PULSE */
.notif-bell-btn.has-unread {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
  animation: bellPulse 2s infinite;
}

@keyframes bellPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ULTRA-PREMIUM ONBOARDING MODAL STYLING */
.onboard-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.onboard-modal-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(99, 102, 241, 0.18);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  color: #f8fafc;
  padding: 32px;
  position: relative;
}

.admin-app-layout.light-theme .onboard-modal-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.2);
}

.onboard-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-app-layout.light-theme .onboard-modal-header {
  border-bottom-color: #e2e8f0;
}

.onboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.admin-app-layout.light-theme .onboard-badge {
  background: #eef2ff;
  color: #4f46e5;
  border-color: #c7d2fe;
}

.onboard-modal-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.admin-app-layout.light-theme .onboard-modal-header h3 {
  color: #0f172a;
}

.onboard-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  margin: 24px 0 16px 0;
}

.admin-app-layout.light-theme .onboard-section-title {
  color: #0284c7;
}

.onboard-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.onboard-form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
}

.admin-app-layout.light-theme .onboard-form-group label {
  color: #475569;
}

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

.onboard-input-wrapper .input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
}

.onboard-input-wrapper .input-field {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.admin-app-layout.light-theme .onboard-input-wrapper .input-field {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.onboard-input-wrapper .input-field:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: rgba(15, 23, 42, 0.8);
}

.admin-app-layout.light-theme .onboard-input-wrapper .input-field:focus {
  background: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.onboard-submit-btn {
  width: 100%;
  padding: 14px;
  margin-top: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.4);
  transition: all 0.25s ease;
}

.onboard-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -4px rgba(99, 102, 241, 0.6);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}


/* ═══════════════════════════════════════════════════════════════════
   SUPER ADMIN & COMPANY ADMIN DASHBOARD — PREMIUM FINTECH CSS
   ═══════════════════════════════════════════════════════════════════ */

/* ── Layout ─────────────────────────────────────────────────────── */
.sa-layout {
    display: flex;
    min-height: 100vh;
    background: #0b0f1a;
    color: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.sa-layout.light-theme {
    background: #f1f5f9;
    color: #0f172a;
}

/* ── Sidebar ────────────────────────────────────────────────────── */
.sa-sidebar {
    width: 270px;
    min-width: 270px;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sa-layout.light-theme .sa-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right-color: #e2e8f0;
}

.sa-sidebar.collapsed {
    width: 72px;
    min-width: 72px;
}

.sa-sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sa-layout.light-theme .sa-sidebar-header {
    border-bottom-color: #e2e8f0;
}

.sa-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sa-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.ca-brand-icon {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.sa-brand-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.sa-layout.light-theme .sa-brand-text h2 {
    color: #0f172a;
}

.sa-brand-text span {
    font-size: 11px;
    font-weight: 600;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sa-layout.light-theme .sa-brand-text span {
    color: #6366f1;
}

.ca-company-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.3);
    letter-spacing: 0.04em;
}

.sa-layout.light-theme .ca-company-badge {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

/* ── Navigation ─────────────────────────────────────────────────── */
.sa-nav {
    flex: 1;
    padding: 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sa-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.sa-nav-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #c7d2fe;
}

.sa-nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

.sa-layout.light-theme .sa-nav-item {
    color: #64748b;
}

.sa-layout.light-theme .sa-nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.sa-layout.light-theme .sa-nav-item.active {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.sa-nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Sidebar Footer ─────────────────────────────────────────────── */
.sa-sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sa-layout.light-theme .sa-sidebar-footer {
    border-top-color: #e2e8f0;
}

.sa-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sa-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.ca-avatar {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

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

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

.sa-layout.light-theme .sa-user-name {
    color: #0f172a;
}

.sa-user-role {
    font-size: 11px;
    color: #64748b;
}

.sa-logout-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sa-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.05);
}

/* ── Main Area ──────────────────────────────────────────────────── */
.sa-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
}

/* ── Header ─────────────────────────────────────────────────────── */
.sa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 16px;
}

.sa-layout.light-theme .sa-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: #e2e8f0;
}

.sa-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sa-page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.02em;
    margin: 0;
}

.sa-layout.light-theme .sa-page-title {
    color: #0f172a;
}

.sa-env-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.ca-env-badge {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.25);
}

.sa-layout.light-theme .sa-env-badge {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

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

.sa-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sa-icon-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.3);
}

.sa-layout.light-theme .sa-icon-btn {
    border-color: #e2e8f0;
    background: #ffffff;
    color: #64748b;
}

.sa-layout.light-theme .sa-icon-btn:hover {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.sa-filter-select {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
}

.sa-filter-select select {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    padding-right: 8px;
}

.sa-filter-select select option {
    background: #1e293b;
    color: #e2e8f0;
}

.sa-layout.light-theme .sa-filter-select {
    border-color: #e2e8f0;
    background: #ffffff;
    color: #475569;
}

.sa-layout.light-theme .sa-filter-select select option {
    background: #ffffff;
    color: #0f172a;
}

/* ── Content ────────────────────────────────────────────────────── */
.sa-content {
    flex: 1;
    padding: 24px 28px 40px;
    overflow-y: auto;
}

/* ── Loading ────────────────────────────────────────────────────── */
.sa-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 16px;
    color: #64748b;
}

.sa-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.15);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: saSpinner 0.8s linear infinite;
}

@keyframes saSpinner {
    to { transform: rotate(360deg); }
}

/* ── Toast ──────────────────────────────────────────────────────── */
.sa-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.35);
    animation: saToastIn 0.35s ease-out;
}

.sa-toast button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@keyframes saToastIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Stat Cards ─────────────────────────────────────────────────── */
.sa-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.sa-stat-card {
    position: relative;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(30, 41, 59, 0.5);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sa-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}

.sa-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.sa-stat-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.sa-stat-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.sa-stat-emerald::before { background: linear-gradient(90deg, #10b981, #34d399); }
.sa-stat-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.sa-stat-purple .sa-stat-icon { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.sa-stat-blue .sa-stat-icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.sa-stat-emerald .sa-stat-icon { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.sa-stat-amber .sa-stat-icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.sa-layout.light-theme .sa-stat-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.sa-layout.light-theme .sa-stat-card:hover {
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.1);
}

.sa-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sa-stat-info {
    display: flex;
    flex-direction: column;
}

.sa-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
    letter-spacing: -0.02em;
}

.sa-layout.light-theme .sa-stat-value {
    color: #0f172a;
}

.sa-stat-label {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    margin-top: 4px;
}

.sa-stat-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #475569;
    opacity: 0;
    transition: all 0.2s ease;
}

.sa-stat-card:hover .sa-stat-arrow {
    opacity: 1;
    color: #818cf8;
}

/* ── Breakdown Cards ────────────────────────────────────────────── */
.sa-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.sa-breakdown-card {
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(30, 41, 59, 0.4);
}

.sa-layout.light-theme .sa-breakdown-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.sa-breakdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sa-breakdown-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

.sa-layout.light-theme .sa-breakdown-header h3 {
    color: #0f172a;
}

.sa-breakdown-header svg {
    color: #475569;
}

.sa-breakdown-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sa-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
}

.sa-val-success { color: #34d399; font-weight: 700; font-size: 15px; }
.sa-val-warning { color: #fbbf24; font-weight: 700; font-size: 15px; }
.sa-val-danger { color: #f87171; font-weight: 700; font-size: 15px; }
.sa-val-info { color: #60a5fa; font-weight: 700; font-size: 15px; }

/* ── Recent / Panel Grid ────────────────────────────────────────── */
.sa-recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* ── Panel ──────────────────────────────────────────────────────── */
.sa-panel {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.sa-layout.light-theme .sa-panel {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.sa-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sa-layout.light-theme .sa-panel-header {
    border-bottom-color: #f1f5f9;
}

.sa-panel-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

.sa-layout.light-theme .sa-panel-header h3 {
    color: #0f172a;
}

.sa-link-btn {
    background: none;
    border: none;
    color: #818cf8;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.sa-link-btn:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

/* ── Toolbar ────────────────────────────────────────────────────── */
.sa-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sa-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    color: #94a3b8;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.sa-search-box input {
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 13px;
    outline: none;
    width: 100%;
}

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

.sa-layout.light-theme .sa-search-box {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #64748b;
}

.sa-layout.light-theme .sa-search-box input {
    color: #0f172a;
}

.sa-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sa-filter-sel {
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.sa-filter-sel option {
    background: #1e293b;
    color: #e2e8f0;
}

.sa-layout.light-theme .sa-filter-sel {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}

.sa-layout.light-theme .sa-filter-sel option {
    background: #ffffff;
    color: #0f172a;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.sa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.sa-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.sa-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.sa-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

.sa-btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.sa-layout.light-theme .sa-btn-outline {
    border-color: #e2e8f0;
    color: #64748b;
}

.sa-layout.light-theme .sa-btn-outline:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4f46e5;
}

.sa-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.sa-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.sa-layout.light-theme .sa-btn-ghost {
    border-color: #e2e8f0;
    color: #64748b;
}

.sa-layout.light-theme .sa-btn-ghost:hover {
    background: #f1f5f9;
    color: #0f172a;
}

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

.sa-table {
    width: 100%;
    border-collapse: collapse;
}

.sa-table th {
    padding: 12px 18px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    white-space: nowrap;
}

.sa-layout.light-theme .sa-table th {
    background: #f8fafc;
    color: #64748b;
    border-bottom-color: #e2e8f0;
}

.sa-table td {
    padding: 13px 18px;
    font-size: 13px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.sa-layout.light-theme .sa-table td {
    color: #334155;
    border-bottom-color: #f1f5f9;
}

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

.sa-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

.sa-layout.light-theme .sa-table tbody tr:hover {
    background: #f8fafc;
}

.sa-table td strong {
    color: #f1f5f9;
    font-weight: 600;
}

.sa-layout.light-theme .sa-table td strong {
    color: #0f172a;
}

.sa-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 20px !important;
    font-style: italic;
}

.sa-cell-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sa-cell-icon {
    color: #6366f1;
    flex-shrink: 0;
}

/* ── Badges ─────────────────────────────────────────────────────── */
.sa-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sa-badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.sa-badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.sa-badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }
.sa-badge-info { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
.sa-badge-neutral { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }

.sa-layout.light-theme .sa-badge-success { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.sa-layout.light-theme .sa-badge-warning { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.sa-layout.light-theme .sa-badge-danger { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.sa-layout.light-theme .sa-badge-info { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }

.sa-code-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.sa-layout.light-theme .sa-code-badge {
    background: #eef2ff;
    color: #4f46e5;
}

/* ── Inline Select ──────────────────────────────────────────────── */
.sa-inline-select {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.sa-inline-select option {
    background: #1e293b;
}

.sa-layout.light-theme .sa-inline-select {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

.sa-layout.light-theme .sa-inline-select option {
    background: #ffffff;
}

/* ── Action Buttons ─────────────────────────────────────────────── */
.sa-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sa-act-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sa-act-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.3);
}

.sa-layout.light-theme .sa-act-btn {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.sa-layout.light-theme .sa-act-btn:hover {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

/* ── Reports ────────────────────────────────────────────────────── */
.sa-report-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sa-report-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(30, 41, 59, 0.4);
    transition: all 0.2s ease;
}

.sa-report-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(30, 41, 59, 0.6);
}

.sa-layout.light-theme .sa-report-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

.sa-layout.light-theme .sa-report-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.sa-report-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sa-layout.light-theme .sa-report-icon {
    background: #eef2ff;
    color: #4f46e5;
}

.sa-report-info {
    flex: 1;
}

.sa-report-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 4px;
}

.sa-layout.light-theme .sa-report-info h4 {
    color: #0f172a;
}

.sa-report-info p {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}

.sa-report-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Chat / Support ─────────────────────────────────────────────── */
.sa-chat-layout {
    display: flex;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(30, 41, 59, 0.4);
    overflow: hidden;
    height: calc(100vh - 180px);
    min-height: 500px;
}

.sa-layout.light-theme .sa-chat-layout {
    background: #ffffff;
    border-color: #e2e8f0;
}

.sa-chat-sidebar {
    width: 280px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
}

.sa-layout.light-theme .sa-chat-sidebar {
    border-right-color: #e2e8f0;
}

.sa-chat-sidebar-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sa-layout.light-theme .sa-chat-sidebar-header {
    border-bottom-color: #f1f5f9;
}

.sa-chat-sidebar-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

.sa-layout.light-theme .sa-chat-sidebar-header h3 {
    color: #0f172a;
}

.sa-chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.sa-chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.sa-chat-item:hover {
    background: rgba(99, 102, 241, 0.08);
}

.sa-chat-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: #e2e8f0;
}

.sa-layout.light-theme .sa-chat-item.active {
    background: #eef2ff;
    color: #0f172a;
}

.sa-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.sa-chat-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sa-chat-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-layout.light-theme .sa-chat-name {
    color: #0f172a;
}

.sa-chat-company {
    font-size: 11px;
    color: #64748b;
}

.sa-empty-chat {
    padding: 30px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.sa-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.sa-layout.light-theme .sa-chat-header {
    border-bottom-color: #f1f5f9;
}

.sa-chat-header strong {
    display: block;
    font-size: 14px;
    color: #e2e8f0;
}

.sa-layout.light-theme .sa-chat-header strong {
    color: #0f172a;
}

.sa-chat-header span {
    font-size: 12px;
    color: #64748b;
}

.sa-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sa-chat-empty-msg {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #475569;
    gap: 12px;
}

.sa-chat-empty-msg p {
    font-size: 13px;
}

.sa-chat-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #475569;
    gap: 12px;
    text-align: center;
    padding: 40px;
}

.sa-chat-placeholder h3 {
    font-size: 18px;
    color: #64748b;
    margin: 0;
}

.sa-chat-placeholder p {
    font-size: 13px;
    color: #475569;
    margin: 0;
}

.sa-chat-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sa-layout.light-theme .sa-chat-input-area {
    border-top-color: #f1f5f9;
}

.sa-chat-input-area input {
    flex: 1;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
    font-size: 13px;
    outline: none;
}

.sa-chat-input-area input::placeholder {
    color: #64748b;
}

.sa-layout.light-theme .sa-chat-input-area input {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

/* ── Profile & Security ─────────────────────────────────────────── */
.sa-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.sa-profile-card {
    padding: 28px;
}

.sa-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sa-layout.light-theme .sa-profile-header {
    border-bottom-color: #f1f5f9;
}

.sa-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.ca-avatar-lg {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.sa-profile-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 6px;
}

.sa-layout.light-theme .sa-profile-header h3 {
    color: #0f172a;
}

.sa-profile-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sa-profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: #94a3b8;
    padding: 8px 0;
}

.sa-profile-row svg {
    color: #6366f1;
    flex-shrink: 0;
}

.sa-profile-row span {
    min-width: 70px;
}

.sa-profile-row strong {
    color: #e2e8f0;
}

.sa-layout.light-theme .sa-profile-row strong {
    color: #0f172a;
}

.sa-security-card {
    padding: 28px;
}

.sa-security-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 20px;
}

.sa-layout.light-theme .sa-security-card h3 {
    color: #0f172a;
}

.sa-security-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sa-security-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.sa-security-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.sa-layout.light-theme .sa-security-btn {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.sa-layout.light-theme .sa-security-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.sa-security-btn svg {
    color: #6366f1;
    flex-shrink: 0;
}

.sa-security-btn strong {
    display: block;
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 2px;
}

.sa-layout.light-theme .sa-security-btn strong {
    color: #0f172a;
}

.sa-security-btn span {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.sa-security-danger svg {
    color: #ef4444;
}

.sa-security-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.sa-company-profile-card {
    padding: 32px;
    max-width: 700px;
}

/* ── Modal ──────────────────────────────────────────────────────── */
.sa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: saFadeIn 0.2s ease-out;
}

@keyframes saFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sa-modal {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: saSlideUp 0.25s ease-out;
}

.sa-layout.light-theme .sa-modal {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-color: #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.sa-modal-sm {
    max-width: 440px;
}

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

.sa-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sa-layout.light-theme .sa-modal-header {
    border-bottom-color: #f1f5f9;
}

.sa-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.sa-layout.light-theme .sa-modal-badge {
    background: #eef2ff;
    color: #4f46e5;
}

.sa-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0;
    letter-spacing: -0.01em;
}

.sa-layout.light-theme .sa-modal-header h3 {
    color: #0f172a;
}

.sa-modal-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 4px 0 0;
}

.sa-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sa-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.sa-modal-body {
    padding: 24px 28px;
}

.sa-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 12px;
}

.sa-layout.light-theme .sa-modal-footer {
    border-top-color: #f1f5f9;
}

/* ── Form ───────────────────────────────────────────────────────── */
.sa-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

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

.sa-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sa-layout.light-theme .sa-form-group label {
    color: #64748b;
}

.sa-form-group input,
.sa-form-group select {
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}

.sa-form-group input:focus,
.sa-form-group select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.sa-layout.light-theme .sa-form-group input,
.sa-layout.light-theme .sa-form-group select {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}

.sa-layout.light-theme .sa-form-group input:focus,
.sa-layout.light-theme .sa-form-group select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

.sa-form-group select option {
    background: #1e293b;
    color: #e2e8f0;
}

.sa-layout.light-theme .sa-form-group select option {
    background: #ffffff;
    color: #0f172a;
}

.sa-form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #38bdf8;
    margin: 8px 0 14px;
}

.sa-layout.light-theme .sa-form-section-title {
    color: #0284c7;
}

.sa-form-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 18px 0 12px;
}

.sa-layout.light-theme .sa-form-divider {
    background: #f1f5f9;
}

.sa-alert {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    font-size: 13px;
    margin-bottom: 14px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ── Detail Modal Grid ──────────────────────────────────────────── */
.sa-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sa-detail-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.sa-layout.light-theme .sa-detail-row {
    background: #f8fafc;
    border-color: #f1f5f9;
}

.sa-detail-row span {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sa-detail-row strong {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 600;
}

.sa-layout.light-theme .sa-detail-row strong {
    color: #0f172a;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .sa-sidebar {
        width: 230px;
        min-width: 230px;
    }

    .sa-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .sa-layout {
        flex-direction: column;
    }

    .sa-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        overflow-x: auto;
    }

    .sa-nav {
        flex-direction: row;
        padding: 8px;
        gap: 4px;
        overflow-x: auto;
    }

    .sa-nav-item span {
        display: none;
    }

    .sa-sidebar-header,
    .sa-sidebar-footer {
        display: none;
    }

    .sa-content {
        padding: 16px;
    }

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

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

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

    .sa-chat-layout {
        flex-direction: column;
        height: auto;
    }

    .sa-chat-sidebar {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sa-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .sa-search-box {
        max-width: 100%;
    }

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

    .sa-report-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

/* -- Chat Message Bubbles --------------------------------------- */
.sa-chat-message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.sa-chat-bubble-wrap {
    display: flex;
    flex-direction: column;
    max-width: 75%;
}

.sa-chat-bubble-wrap.sent {
    align-self: flex-end;
    align-items: flex-end;
}

.sa-chat-bubble-wrap.received {
    align-self: flex-start;
    align-items: flex-start;
}

.sa-chat-bubble {
    padding: 11px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    word-break: break-word;
}

.sa-chat-bubble-wrap.sent .sa-chat-bubble {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sa-chat-bubble-wrap.received .sa-chat-bubble {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sa-layout.light-theme .sa-chat-bubble-wrap.received .sa-chat-bubble {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #e2e8f0;
}

.sa-chat-sender-tag {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 2px;
    opacity: 0.85;
}

.sa-chat-time {
    font-size: 10px;
    color: #64748b;
    margin-top: 4px;
    padding: 0 4px;
}


/* ==========================================================================
   ENTERPRISE KYC VERIFICATION MODAL STYLES (CLEAN, ELEGANT, ALIGNED)
   ========================================================================== */
.sa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

.sa-modal {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.04);
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: saModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sa-modal.sa-modal-lg {
  max-width: 860px;
}

@keyframes saModalPop {
  0% { opacity: 0; transform: scale(0.95) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Modal Header */
.sa-modal-header {
  padding: 24px 28px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sa-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.sa-modal-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0 4px 0;
  letter-spacing: -0.02em;
}

.sa-modal-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.sa-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sa-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

/* Modal Body */
.sa-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

/* Progress Tracker */
.sa-kyc-progress-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sa-kyc-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sa-kyc-progress-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.sa-kyc-progress-count {
  background: #eef2ff;
  color: #4f46e5;
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.sa-kyc-progress-bar {
  width: 100%;
  height: 9px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.sa-kyc-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 5 KYC Step Cards */
.sa-kyc-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sa-kyc-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.02);
}

.sa-kyc-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.sa-kyc-card.is-verified {
  background: #f0fdf4;
  border-color: #86efac;
}

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

.sa-kyc-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.sa-kyc-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-email { background: #e0f2fe; color: #0284c7; }
.icon-pan { background: #f3e8ff; color: #7c3aed; }
.icon-aadhaar { background: #dbeafe; color: #2563eb; }
.icon-shop { background: #fef3c7; color: #d97706; }
.icon-doc { background: #fce7f3; color: #db2777; }

.sa-kyc-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sa-kyc-info-text {
  font-size: 0.88rem;
  color: #475569;
}

.sa-kyc-info-text strong {
  color: #0f172a;
}

/* Action Rows & Inputs */
.sa-kyc-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sa-kyc-input {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s;
}

.sa-kyc-input.otp-field {
  max-width: 170px;
  letter-spacing: 2px;
  font-weight: 600;
}

.sa-kyc-input:focus {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.sa-kyc-file-input {
  flex: 1;
  font-size: 0.88rem;
  color: #475569;
  padding: 6px 0;
}

.sa-kyc-file-badge {
  font-size: 0.82rem;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
  word-break: break-all;
}

/* Buttons */
.sa-kyc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.sa-kyc-btn-primary {
  background: #4f46e5;
  color: #ffffff;
}

.sa-kyc-btn-primary:hover:not(:disabled) {
  background: #4338ca;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.sa-kyc-btn-secondary {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.sa-kyc-btn-secondary:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}

.sa-kyc-btn-success {
  background: #10b981;
  color: #ffffff;
}

.sa-kyc-btn-success:hover:not(:disabled) {
  background: #059669;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.sa-kyc-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sa-kyc-btn.full-width {
  width: 100%;
  justify-content: center;
  padding: 12px;
}

/* Badges */
.sa-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sa-badge-success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.sa-badge-warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

/* Gated Admin Provisioning Box */
.sa-kyc-admin-box {
  background: #f5f3ff;
  border: 1.5px solid #818cf8;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.06);
}

.sa-kyc-admin-locked {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sa-kyc-admin-locked p {
  margin: 2px 0 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.sa-provision-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sa-provision-header h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.sa-provision-header p {
  margin: 2px 0 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.sa-provision-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sa-provision-icon.unlocked {
  background: #d1fae5;
}

.sa-provision-icon.locked {
  background: #fef3c7;
}

.sa-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.sa-provision-actions {
  display: flex;
  justify-content: flex-end;
}

/* Modal Footer */
.sa-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.sa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sa-btn-ghost {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.sa-btn-ghost:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sa-btn-primary {
  background: #4f46e5;
  color: #ffffff;
  border: none;
}

.sa-btn-primary:hover {
  background: #4338ca;
}

@media (max-width: 700px) {
  .sa-admin-grid {
    grid-template-columns: 1fr;
  }
}
