/* ==========================================================================
   AADHAAR SAHAYAK — ENTERPRISE SAAS DESIGN SYSTEM (2026 EDITION)
   High-performance, minimal, accessible, light/dark mode design system.
   ========================================================================== */

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

/* --- DESIGN TOKENS --- */
:root {
  /* Brand Crimson (Aadhaar / UCL refined red) */
  --brand-50: #fef2f2;
  --brand-100: #fee2e2;
  --brand-200: #fecaca;
  --brand-300: #fca5a5;
  --brand-400: #f87171;
  --brand-500: #e11d48;
  --brand-600: #be123c;
  --brand-700: #9f1239;
  --brand-800: #881337;
  --brand-900: #4c0519;
  --brand-glow: rgba(225, 29, 72, 0.18);

  /* Secondary Accents */
  --accent-blue: #2563eb;
  --accent-blue-bg: #eff6ff;
  --accent-amber: #d97706;
  --accent-amber-bg: #fffbeb;
  --accent-green: #059669;
  --accent-green-bg: #ecfdf5;
  --accent-purple: #7c3aed;
  --accent-purple-bg: #f5f3ff;

  /* Neutrals (Light Mode) */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  --bg-sidebar: #ffffff;
  --border-subtle: #e2e8f0;
  --border-muted: #cbd5e1;
  --border-focus: #e11d48;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 2px 10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 12px 24px -6px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);

  /* Layout Scales */
  --sidebar-w: 264px;
  --topbar-h: 68px;
  --footer-h: 38px;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- DARK MODE PALETTE --- */
.dark, [data-theme="dark"] {
  --bg-app: #090d16;
  --bg-surface: #111827;
  --bg-surface-alt: #172033;
  --bg-surface-elevated: #1a243a;
  --bg-sidebar: #0e1422;
  --border-subtle: #1e293b;
  --border-muted: #334155;
  --border-focus: #f43f5e;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-inverse: #0f172a;

  --brand-50: #2a0b12;
  --brand-100: #420f1c;
  --brand-200: #5c1426;
  --brand-500: #f43f5e;
  --brand-600: #fb7185;
  --brand-glow: rgba(244, 63, 94, 0.28);

  --accent-blue: #60a5fa;
  --accent-blue-bg: #172554;
  --accent-amber: #fbbf24;
  --accent-amber-bg: #451a03;
  --accent-green: #34d399;
  --accent-green-bg: #064e3b;
  --accent-purple: #a78bfa;
  --accent-purple-bg: #2e1065;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 14px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 30px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-app);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-muted);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   APP SHELL ARCHITECTURE
   ========================================================================== */
.app {
  min-height: 100vh;
  display: flex;
  position: relative;
  background-color: var(--bg-app);
}

/* --- SIDEBAR --- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), width var(--transition-base);
}

.brand {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-sidebar);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fecdd3 100%);
  border: 1px solid rgba(225, 29, 72, 0.22);
  color: var(--brand-500);
  font-size: 20px;
  box-shadow: 0 4px 12px var(--brand-glow);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.dark .logo {
  background: linear-gradient(135deg, #380d19 0%, #4c0519 100%);
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.3);
}

.brand:hover .logo {
  transform: scale(1.05);
}

.brand strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}

.brand small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-500);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 3px;
  text-transform: uppercase;
}

/* Sidebar Navigation */
.nav {
  padding: 16px 12px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--text-light);
  padding: 14px 12px 6px;
  text-transform: uppercase;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav a:hover {
  color: var(--text-primary);
  background: var(--bg-surface-alt);
  transform: translateX(2px);
}

.nav a.active {
  background: var(--brand-50);
  color: var(--brand-500);
  font-weight: 700;
}

.dark .nav a.active {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
}

.nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3.5px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  background: var(--brand-500);
}

.nav .ico {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  color: inherit;
  opacity: 0.85;
  flex-shrink: 0;
}

.nav a.active .ico {
  opacity: 1;
  color: var(--brand-500);
}

/* Sidebar Profile Footer */
.account {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-sidebar);
}

.profile-mini {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--bg-surface-alt);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.profile-mini:hover {
  background: var(--bg-surface);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.profile-mini b {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}

.profile-mini small {
  display: block;
  color: var(--text-muted);
  font-size: 10.5px;
  margin-top: 2px;
}

/* Backdrop for Mobile Sidebar */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.sidebar.open ~ .sidebar-backdrop,
.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- MAIN CONTENT WRAPPER --- */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-base);
}

/* --- TOPBAR --- */
.topbar {
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 30;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.dark .topbar {
  background: rgba(17, 24, 39, 0.85);
  border-bottom-color: var(--border-subtle);
}

.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.title-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--brand-50);
  border: 1px solid rgba(225, 29, 72, 0.18);
  color: var(--brand-500);
  font-size: 15px;
}

.dark .title-icon {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

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

.icon-btn, .user-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn {
  width: 38px;
  padding: 0;
}

.icon-btn:hover, .user-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  border-color: var(--border-muted);
  transform: translateY(-1px);
}

.user-btn {
  padding: 0 13px;
}

.user-btn span {
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  font-size: 16px;
}

/* --- MAIN CONTENT CONTAINER --- */
.content {
  padding: 28px 32px 75px;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

/* --- FOOTER --- */
.footer {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--footer-h);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  z-index: 25;
  transition: left var(--transition-base), background var(--transition-base);
}

/* ==========================================================================
   COMPONENTS & UI ELEMENTS
   ========================================================================== */

/* --- HERO BANNERS --- */
.hero {
  border: 1px solid rgba(225, 29, 72, 0.14);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.9) 0%, rgba(255, 251, 235, 0.6) 50%, var(--bg-surface) 100%);
  padding: 32px 34px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.dark .hero {
  background: linear-gradient(135deg, #1f1118 0%, #151d2f 50%, var(--bg-surface) 100%);
  border-color: rgba(244, 63, 94, 0.22);
}

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.08) 0%, rgba(245, 158, 11, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  right: -60px;
  top: -80px;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--brand-500);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.dark .eyebrow {
  color: #fb7185;
}

.hero h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 6px 0 10px;
  line-height: 1.25;
}

.hero p {
  max-width: 680px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  font-size: 13.5px;
}

.hero-actions {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- BUTTONS --- */
.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 9.5px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--brand-400) 0%, var(--brand-500) 100%);
  box-shadow: 0 4px 14px var(--brand-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-surface-alt);
  border-color: var(--border-muted);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-success:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  transform: translateY(-1px);
}

.btn-warning {
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

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

.btn-purple {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
}

.btn-purple:hover {
  background: linear-gradient(180deg, #a78bfa 0%, #8b5cf6 100%);
  transform: translateY(-1px);
}

/* --- STATS GRID --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-muted);
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), #f43f5e);
}

.stat:nth-child(2)::before {
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
}
.stat:nth-child(3)::before {
  background: linear-gradient(90deg, #10b981, #14b8a6);
}
.stat:nth-child(4)::before {
  background: linear-gradient(90deg, #f59e0b, #eab308);
}

.stat small {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}

.stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 8px 0 4px;
  font-feature-settings: "tnum";
}

.stat p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* --- PANELS --- */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast);
}

.panel:hover {
  border-color: var(--border-muted);
}

.panel-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  gap: 16px;
}

.panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.panel-head p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.panel-body {
  padding: 22px 24px;
}

.grid2 {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 20px;
}

/* --- DATA TABLES --- */
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 12px 16px;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-secondary);
  vertical-align: middle;
}

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

.table tbody tr {
  transition: background var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--bg-surface-alt);
}

.table td b {
  color: var(--text-primary);
  font-weight: 700;
}

.table td small {
  font-size: 11px;
  color: var(--text-muted);
}

/* --- STATUS BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge.pending {
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 119, 6, 0.2);
}
.badge.pending::before {
  background: var(--accent-amber);
}

.badge.success {
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.badge.success::before {
  background: var(--accent-green);
}

.badge.danger {
  background: var(--brand-50);
  color: var(--brand-500);
  border: 1px solid rgba(225, 29, 72, 0.2);
}
.badge.danger::before {
  background: var(--brand-500);
}

.badge.info {
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.badge.info::before {
  background: var(--accent-blue);
}

/* --- QUICK ACCESS LIST --- */
.quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.quick a:hover {
  background: var(--bg-surface);
  border-color: var(--border-muted);
  transform: translateX(3px);
  box-shadow: var(--shadow-xs);
}

.quick a b {
  color: var(--brand-500);
  font-weight: 700;
}

/* --- SERVICES CATALOGUE GRID --- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 140px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: var(--brand-300);
}

.dark .service-card:hover {
  border-color: var(--brand-500);
}

.service-card .sicon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand-500);
  margin-bottom: 14px;
  font-size: 18px;
  border: 1px solid rgba(225, 29, 72, 0.15);
  transition: transform var(--transition-fast);
}

.dark .service-card .sicon {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.service-card:hover .sicon {
  transform: scale(1.08);
}

.service-card b {
  font-size: 13.5px;
  font-weight: 700;
  display: block;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 4px;
}

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

.service-key-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  color: #fb7185;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 999px;
  padding: 2.5px 12px;
  margin-bottom: 12px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.dark .service-key-tag {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.4);
}

.service-badge-pill {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.service-badge-pill.free {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.service-badge-pill.charge {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.service-badge-pill.unavailable {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}


/* ==========================================================================
   FORMS & INPUT SYSTEM
   ========================================================================== */
.form-shell {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.section {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--bg-surface);
  transition: border-color var(--transition-fast);
}

.section:hover {
  border-color: var(--border-muted);
}

.section-head {
  padding: 16px 20px;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head .sicon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: var(--brand-500);
  border: 1px solid rgba(225, 29, 72, 0.15);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.dark .section-head .sicon {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

.section-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-body {
  padding: 22px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.required {
  color: var(--brand-500);
}

.input, .select, .textarea {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 0 14px;
  color: var(--text-primary);
  outline: none;
  font-size: 13.5px;
  transition: all var(--transition-fast);
}

.textarea {
  height: 100px;
  padding: 12px 14px;
  resize: vertical;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-glow);
  background: var(--bg-surface);
}

.input::placeholder, .textarea::placeholder {
  color: var(--text-light);
}

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

.full {
  grid-column: 1 / -1;
}

/* Form Preview & Upload Zones */
.preview {
  border: 1px dashed var(--border-muted);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.6;
}

.upload {
  border: 2px dashed var(--border-muted);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  background: var(--bg-surface-alt);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.upload:hover {
  border-color: var(--brand-400);
  background: var(--brand-50);
}

.dark .upload:hover {
  background: rgba(244, 63, 94, 0.08);
}

.upload b {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin: 6px 0 2px;
}

.upload input[type="file"] {
  width: 100%;
  font-size: 11.5px;
  margin-top: 10px;
  color: var(--text-muted);
}

.notice {
  padding: 14px 16px;
  border: 1px solid rgba(217, 119, 6, 0.25);
  background: var(--accent-amber-bg);
  border-radius: var(--radius-md);
  color: var(--accent-amber);
  font-size: 12.5px;
  margin: 16px 0;
  line-height: 1.55;
}

/* Modern Toggle Switch Component */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-info span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.toggle-info small {
  font-size: 11.5px;
  color: var(--text-muted);
}

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

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-muted);
  transition: all var(--transition-fast);
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: all var(--transition-fast);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.switch input:checked + .slider {
  background-color: var(--brand-500);
}

.switch input:focus-visible + .slider {
  box-shadow: 0 0 0 3px var(--brand-glow);
}

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

/* ==========================================================================
   BIOMETRIC VERIFICATION MODULE (HIGH-TECH HARDWARE SIMULATION)
   ========================================================================== */
.biometric {
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  margin: 16px 0;
}

.bio-head {
  background: linear-gradient(90deg, var(--brand-50) 0%, var(--bg-surface) 100%);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dark .bio-head {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.12) 0%, var(--bg-surface) 100%);
}

.bio-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.finger-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 10px var(--brand-glow);
}

.fingers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 18px 20px;
}

.finger {
  height: 115px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  padding: 12px 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  user-select: none;
}

.finger:hover {
  border-color: var(--brand-400);
  transform: translateY(-2px);
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
}

.finger.captured {
  border-color: var(--accent-green);
  background: var(--accent-green-bg);
  color: var(--accent-green);
}

.finger b {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-top: 4px;
}

.finger small {
  font-size: 10.5px;
  color: var(--text-muted);
}

.finger.captured small {
  color: var(--accent-green);
  font-weight: 600;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 0 0;
}

/* ==========================================================================
   AUTHENTICATION & LANDING PAGES
   ========================================================================== */
.login-bg {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 8%, rgba(254, 243, 199, 0.45) 0%, rgba(254, 226, 226, 0.25) 35%, transparent 70%),
    #f8fafc;
  padding: 32px 16px;
  box-sizing: border-box;
}

.dark .login-bg {
  background:
    radial-gradient(ellipse 70% 60% at 50% 8%, rgba(225, 29, 72, 0.12) 0%, transparent 60%),
    #09090b;
}

.login-card {
  width: min(440px, 100%);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: 34px 32px 30px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.04);
  position: relative;
  box-sizing: border-box;
}

.dark .login-card {
  background: var(--bg-surface);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

.auth-top-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dc2626;
  margin: 0 auto 12px;
}

.auth-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.dark .auth-card-title {
  color: #f9fafb;
}

.auth-card-subtitle {
  font-size: 12.5px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 22px;
  line-height: 1.45;
}

.dark .auth-card-subtitle {
  color: #9ca3af;
}

/* "SIGN IN USING" Segmented Switcher */
.auth-method-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 8px;
}

.dark .auth-method-label {
  color: #9ca3af;
}

.auth-tabs-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1.5px solid transparent;
  background: #f3f4f6;
  color: #4b5563;
  padding: 0 6px;
}

.auth-tab-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.dark .auth-tab-btn {
  background: #27272a;
  color: #a1a1aa;
}

.dark .auth-tab-btn:hover {
  background: #3f3f46;
  color: #ffffff;
}

/* Active Tab: White bg, subtle amber border, red text & icon (matches Images 1, 2, 3) */
.auth-tab-btn.active {
  background: #ffffff;
  border-color: #fbbf24;
  color: #dc2626;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dark .auth-tab-btn.active {
  background: #18181b;
  border-color: #f59e0b;
  color: #f87171;
}

/* Form Fields & Input Wrappers */
.auth-field-group {
  margin-bottom: 14px;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.auth-field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #1f2937;
  display: block;
}

.dark .auth-field-label {
  color: #e5e7eb;
}

.auth-forgot-link {
  font-size: 11.5px;
  font-weight: 700;
  color: #dc2626;
  text-decoration: none;
}

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

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  transition: all 0.15s ease;
  overflow: hidden;
}

.dark .auth-input-wrap {
  border-color: #3f3f46;
  background: #18181b;
}

.auth-input-wrap:focus-within,
.auth-input-wrap.has-focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.auth-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 12px;
  color: #9ca3af;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.auth-input-wrap:focus-within .auth-input-icon {
  color: #ef4444;
}

.auth-input {
  width: 100%;
  height: 42px;
  border: none;
  background: transparent;
  padding: 0 12px 0 10px;
  font-size: 13px;
  color: #111827;
  outline: none;
  font-family: inherit;
}

.dark .auth-input {
  color: #f9fafb;
}

.auth-input::placeholder {
  color: #9ca3af;
}

.auth-pwd-toggle {
  background: transparent;
  border: none;
  padding: 0 12px;
  cursor: pointer;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: color 0.15s ease;
}

.auth-pwd-toggle:hover {
  color: #4b5563;
}

.dark .auth-pwd-toggle:hover {
  color: #e5e7eb;
}

.auth-field-hint {
  font-size: 11px;
  color: #6b7280;
  margin-top: 5px;
  line-height: 1.35;
}

.dark .auth-field-hint {
  color: #9ca3af;
}

/* Remember Me & Buttons */
.auth-remember-row {
  margin: 14px 0 18px;
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}

.dark .auth-checkbox-label {
  color: #9ca3af;
}

.auth-checkbox-label input[type="checkbox"] {
  accent-color: #dc2626;
  width: 15px;
  height: 15px;
  cursor: pointer;
  margin: 0;
}

.auth-btn-primary {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.auth-btn-primary:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

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

.auth-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-card-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-card-links a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dark .auth-card-links a {
  color: #a1a1aa;
}

.auth-card-links a b,
.auth-card-links a:hover {
  color: #dc2626;
  font-weight: 700;
}

.auth-error-alert {
  padding: 10px 14px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: shake 0.35s ease;
}

.dark .auth-error-alert {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* ==========================================================================
   OPERATOR REGISTRATION / SIGNUP SYSTEM (Images 4 & 5)
   ========================================================================== */

/* Topbar Header */
.reg-topbar {
  width: 100%;
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 20px;
}

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

.reg-topbar-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.reg-topbar-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
}

.dark .reg-topbar-title {
  color: #ffffff;
}

.reg-topbar-sub {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.reg-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #1f2937;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dark .reg-signin-btn {
  background: #18181b;
  border-color: #27272a;
  color: #f3f4f6;
}

.reg-signin-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
}

/* Registration Card */
.reg-card {
  width: min(780px, 100%);
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 36px 36px;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.07), 0 0 1px 1px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.dark .reg-card {
  background: var(--bg-surface);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.5);
}

/* Card Top Banner */
.reg-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.reg-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  flex-shrink: 0;
}

.dark .reg-banner-icon {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.reg-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dc2626;
  margin-bottom: 2px;
}

.reg-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.dark .reg-title {
  color: #ffffff;
}

.reg-subtitle {
  font-size: 12.5px;
  color: #6b7280;
  margin: 0;
  line-height: 1.45;
}

.dark .reg-subtitle {
  color: #9ca3af;
}

/* 2-Step Stepper Wizard */
.reg-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding: 14px 20px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
}

.dark .reg-stepper {
  background: #18181b;
  border-color: #27272a;
}

.reg-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reg-step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.reg-step-circle.active {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.reg-step-circle.completed {
  background: #10b981;
  color: #ffffff;
}

.reg-step-circle.inactive {
  background: #e5e7eb;
  color: #6b7280;
}

.dark .reg-step-circle.inactive {
  background: #27272a;
  color: #71717a;
}

.reg-step-info {
  display: flex;
  flex-direction: column;
}

.reg-step-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
}

.reg-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.dark .reg-step-title {
  color: #f3f4f6;
}

.reg-step.inactive .reg-step-title {
  color: #9ca3af;
}

.reg-stepper-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin: 0 16px;
  transition: background 0.2s ease;
}

.dark .reg-stepper-line {
  background: #27272a;
}

.reg-stepper-line.completed {
  background: #10b981;
}

/* Section Header inside step */
.reg-section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.dark .reg-section-header {
  border-color: #27272a;
}

.reg-sec-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reg-sec-icon.icon-red {
  background: #fef2f2;
  color: #dc2626;
}
.dark .reg-sec-icon.icon-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.reg-sec-icon.icon-blue {
  background: #eff6ff;
  color: #2563eb;
}
.dark .reg-sec-icon.icon-blue {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
}

.reg-sec-icon.icon-purple {
  background: #f5f3ff;
  color: #7c3aed;
}
.dark .reg-sec-icon.icon-purple {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}

.reg-sec-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 2px;
}

.dark .reg-sec-title {
  color: #ffffff;
}

.reg-sec-sub {
  font-size: 11.5px;
  color: #6b7280;
  margin: 0;
}

.dark .reg-sec-sub {
  color: #9ca3af;
}

/* Grids & Inputs for Registration */
.reg-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.reg-field {
  display: flex;
  flex-direction: column;
}

.reg-field.full {
  grid-column: 1 / -1;
}

.reg-label {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 5px;
}

.dark .reg-label {
  color: #e5e7eb;
}

.reg-input,
.reg-select,
.reg-textarea {
  width: 100%;
  height: 42px;
  border-radius: 9px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  padding: 0 12px;
  font-size: 13px;
  color: #111827;
  outline: none;
  font-family: inherit;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.dark .reg-input,
.dark .reg-select,
.dark .reg-textarea {
  background: #18181b;
  border-color: #3f3f46;
  color: #f9fafb;
}

.reg-input:focus,
.reg-select:focus,
.reg-textarea:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.reg-textarea {
  height: 72px;
  padding: 10px 12px;
  resize: vertical;
}

/* Input Prefix Group (+91) */
.reg-input-prefix-group {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.15s ease;
}

.dark .reg-input-prefix-group {
  background: #18181b;
  border-color: #3f3f46;
}

.reg-input-prefix-group:focus-within {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.reg-prefix-tag {
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 700;
  padding: 0 12px;
  height: 42px;
  display: flex;
  align-items: center;
  border-right: 1px solid #d1d5db;
  flex-shrink: 0;
}

.dark .reg-prefix-tag {
  background: #27272a;
  color: #a1a1aa;
  border-right-color: #3f3f46;
}

.reg-input-prefix-group .reg-input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
}

/* Password with toggle in registration */
.reg-pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.reg-pwd-wrap .reg-input {
  padding-right: 38px;
}

.reg-pwd-wrap .pwd-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
}

.reg-pwd-wrap .pwd-toggle-btn:hover {
  color: #4b5563;
}

/* Actions Row at bottom of Steps */
.reg-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #f3f4f6;
  gap: 12px;
}

.dark .reg-actions-row {
  border-color: #27272a;
}

.reg-back-link {
  font-size: 12.5px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
}

.dark .reg-back-link {
  color: #9ca3af;
}

.reg-back-link:hover {
  color: #dc2626;
}

.reg-btn-back {
  height: 42px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.dark .reg-btn-back {
  background: #18181b;
  border-color: #3f3f46;
  color: #e5e7eb;
}

.reg-btn-back:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.reg-btn-continue,
.reg-btn-submit {
  height: 42px;
  padding: 0 22px;
  border-radius: 9px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.reg-btn-continue:hover,
.reg-btn-submit:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

.reg-btn-continue:active,
.reg-btn-submit:active {
  transform: translateY(0);
}

.reg-submit-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.reg-submit-caption {
  font-size: 11px;
  color: #6b7280;
}

.dark .reg-submit-caption {
  color: #9ca3af;
}

.reg-footer-note {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 18px;
}

.dark .reg-footer-note {
  color: #71717a;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Responsive queries */
@media (max-width: 640px) {
  .reg-card {
    padding: 24px 20px 24px;
  }
  .reg-grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .auth-tabs-group {
    grid-template-columns: 1fr;
  }
  .reg-actions-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .reg-submit-group {
    align-items: stretch;
    width: 100%;
  }
  .reg-btn-continue,
  .reg-btn-submit,
  .reg-btn-back {
    width: 100%;
    justify-content: center;
  }
  .reg-back-link {
    text-align: center;
  }
  .reg-stepper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .reg-stepper-line {
    display: none;
  }
}
  margin-bottom: 22px;
}

.step {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.step.active {
  background: var(--brand-50);
  color: var(--brand-500);
  border-color: rgba(225, 29, 72, 0.25);
}

.dark .step.active {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

.step.done {
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border-color: rgba(5, 150, 105, 0.25);
}

/* --- PROFILE VIEW --- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  border: 3px solid var(--bg-surface);
  box-shadow: var(--shadow-md);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.kpi {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
}

.kpi b {
  font-size: 20px;
  font-weight: 800;
  display: block;
  margin-top: 6px;
  color: var(--text-primary);
}

/* --- FILTERS & SEARCH --- */
.filterbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.search {
  display: flex;
  gap: 8px;
}

.search .input {
  height: 38px;
}

.empty {
  padding: 55px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty .empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* --- MODAL SYSTEM --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: min(560px, 94vw);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  transform: translateY(12px) scale(0.98);
  transition: transform var(--transition-base);
}

.modal.show .modal-box {
  transform: translateY(0) scale(1);
}

/* --- TOAST NOTIFICATIONS --- */
.toast {
  position: fixed;
  right: 24px;
  bottom: 50px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: none;
  z-index: 120;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.dark .toast {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.16);
}

.toast.show {
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(0);
}

/* --- PROGRESS BAR STYLING --- */
progress {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: none;
}

progress::-webkit-progress-bar {
  background-color: var(--bg-surface-alt);
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--brand-500), var(--accent-green));
  border-radius: var(--radius-full);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1180px) {
  .sidebar {
    width: 230px;
  }
  .main {
    margin-left: 230px;
  }
  .footer {
    left: 230px;
  }
  .stats, .services {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    position: static;
    margin-top: 18px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 275px;
    box-shadow: var(--shadow-xl);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0 !important;
  }
  .footer {
    left: 0 !important;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    padding: 0 16px;
  }
  .content {
    padding: 16px 14px 65px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .stats, .services, .fingers, .kpi-row, .profile-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 22px 20px;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero-actions {
    position: static;
    margin-top: 16px;
    flex-wrap: wrap;
  }
  .form-shell {
    padding: 14px;
    border-radius: var(--radius-lg);
  }
  .top-actions .user-btn span {
    display: none;
  }
  .table {
    min-width: 650px;
  }
  .panel-body.table-scroll {
    overflow-x: auto;
  }
  .login-card {
    width: min(94vw, 420px);
    padding: 24px 20px;
  }
}

/* ==========================================================================
   ADMIN MANAGEMENT CONSOLE ENHANCEMENTS (2026 EDITION)
   Add User, Add Wallet Amount, CRUD Modals, & Data Grid Actions
   ========================================================================== */

/* --- Warm Gradient Admin Banner (Reference Image 1 & 2) --- */
.admin-page-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 45%, #fff7ed 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius-xl);
  padding: 24px 30px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dark .admin-page-banner {
  background: linear-gradient(135deg, #1f1b13 0%, #292013 45%, #1a1612 100%);
  border-color: rgba(245, 158, 11, 0.25);
}

.admin-page-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.admin-page-banner .banner-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--brand-500);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.dark .admin-page-banner .banner-icon {
  background: #232d42;
  color: #fb7185;
  border-color: rgba(245, 158, 11, 0.2);
}

.admin-page-banner .banner-text h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.admin-page-banner .banner-text p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.admin-page-banner .banner-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.admin-page-banner .banner-arc {
  position: absolute;
  right: -25px;
  top: -35px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, rgba(251, 191, 36, 0.05) 70%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.dark .admin-page-banner .banner-arc {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.02) 70%, transparent 100%);
}

.banner-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-xs);
}

.banner-back-btn:hover {
  border-color: var(--brand-300);
  color: var(--brand-500);
  transform: translateX(-3px);
  background: var(--bg-surface-elevated);
}

/* --- Sectioned Form Cards (Reference Image 1) --- */
.form-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.form-section-header h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 9px;
}

.form-section-header svg {
  color: var(--text-muted);
}

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

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

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

.form-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-field label .required {
  color: var(--brand-500);
  margin-left: 2px;
}

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

/* --- Input with Left Icon --- */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-light);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-with-icon .input {
  padding-left: 38px;
  width: 100%;
}

/* --- Input with Fixed Prefix (+91, ₹) --- */
.input-prefix-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-prefix-group:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.input-prefix-group .prefix-addon {
  padding: 0 13px;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  border-right: 1px solid var(--border-muted);
  height: 42px;
  display: flex;
  align-items: center;
  user-select: none;
  flex-shrink: 0;
}

.input-prefix-group .input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  height: 42px;
  flex: 1;
}

/* --- Password Field with Show/Hide Eye --- */
.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrapper .input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-light);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.input-password-wrapper .input {
  padding-left: 38px;
  padding-right: 40px;
  width: 100%;
}

.input-password-wrapper .btn-eye {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-xs);
  transition: color var(--transition-fast);
}

.input-password-wrapper .btn-eye:hover {
  color: var(--text-primary);
}

/* --- Form Bottom Action Bar (Reference Image 1) --- */
.form-bottom-actions {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

/* --- Credit Wallet Two-Column Grid (Reference Image 2) --- */
.credit-wallet-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.quick-amount-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.amount-chip {
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-feature-settings: 'tnum';
}

.amount-chip:hover, .amount-chip.active {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-600);
}

.dark .amount-chip:hover, .dark .amount-chip.active {
  background: var(--brand-100);
  color: var(--brand-400);
}

/* --- Transaction Summary Card (Reference Image 2) --- */
.summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.summary-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: var(--brand-500);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark .summary-badge-icon {
  background: var(--brand-100);
  color: var(--brand-400);
}

.summary-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.summary-item {
  margin-bottom: 18px;
}

.summary-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

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

.summary-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-600);
  font-feature-settings: 'tnum';
  letter-spacing: -0.02em;
}

.dark .summary-amount {
  color: #f43f5e;
}

.warning-callout {
  border: 1px solid #fde68a;
  background: #fffbeb;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.dark .warning-callout {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.warning-callout-icon {
  color: var(--accent-amber);
  flex-shrink: 0;
  margin-top: 1px;
}

.warning-callout-text h4 {
  margin: 0 0 3px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.warning-callout-text p {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Table Action Buttons --- */
.action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-action {
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  text-decoration: none;
}

.btn-action:hover {
  border-color: var(--border-muted);
  color: var(--text-primary);
  background: var(--bg-surface-alt);
}

.btn-action.btn-view:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--accent-blue-bg);
}

.btn-action.btn-edit:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  background: var(--accent-amber-bg);
}

.btn-action.btn-delete:hover {
  border-color: var(--brand-400);
  color: var(--brand-600);
  background: var(--brand-50);
}

.btn-action.btn-approve {
  background: var(--accent-green-bg);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--accent-green);
}

.btn-action.btn-approve:hover {
  background: var(--accent-green);
  color: #ffffff;
}

.btn-action.btn-reject {
  background: var(--brand-50);
  border-color: rgba(225, 29, 72, 0.3);
  color: var(--brand-600);
}

.btn-action.btn-reject:hover {
  background: var(--brand-600);
  color: #ffffff;
}

/* --- Large and Structured Modals --- */
.modal-box.modal-lg {
  width: min(780px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

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

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

.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
}

.modal-content-scroll {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

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

@media (max-width: 900px) {
  .form-grid-3, .form-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .credit-wallet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-grid-2, .form-grid-3, .form-grid-4 {
    grid-template-columns: 1fr;
  }
  .admin-page-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
}

/* ==========================================================================
   OPERATOR E-KYC REVIEW WORKFLOW (2026 FINTECH ADMIN EDITION)
   ========================================================================== */
.ekyc-review-hero {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ekyc-hero-bg-accent {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.dark .ekyc-hero-bg-accent {
  background: radial-gradient(circle, rgba(244, 63, 94, 0.18) 0%, transparent 75%);
}

.ekyc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.ekyc-back-link:hover {
  color: var(--text-primary);
  border-color: var(--border-muted);
  background: var(--bg-surface);
  transform: translateX(-2px);
}

.ekyc-hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 6px;
  line-height: 1.2;
}

.ekyc-hero-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Status Pill */
.ekyc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.ekyc-status-pill.under-review {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
  color: #f59e0b;
}

.ekyc-status-pill.verified {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.ekyc-status-pill.device-review {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: #8b5cf6;
}

.ekyc-status-pill.code-processed {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: #6366f1;
}

.ekyc-status-pill.testing,
.ekyc-status-pill.under-testing {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.ekyc-status-pill.rejected {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.45);
  color: #f43f5e;
}

/* Applicant Summary Hero Card */
.ekyc-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.ekyc-applicant-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 280px;
}

.ekyc-applicant-avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--bg-surface-alt);
  border: 1.5px solid var(--border-subtle);
  color: var(--brand-500);
  font-size: 22px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.dark .ekyc-applicant-avatar {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ekyc-applicant-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.ekyc-applicant-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.ekyc-applicant-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ekyc-file-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: right;
}

.ekyc-file-box-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.ekyc-file-box-number {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

/* Two-Column Layout */
.ekyc-workspace-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.ekyc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.ekyc-card:hover {
  border-color: var(--border-muted);
}

.ekyc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.ekyc-card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.ekyc-card-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  display: inline-block;
  box-shadow: 0 0 8px var(--brand-glow);
}

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

.ekyc-field-full {
  grid-column: 1 / -1;
}

.ekyc-field-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.ekyc-field-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  word-break: break-word;
}

.ekyc-field-value.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}

/* Uploaded Documents List */
.ekyc-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-alt);
  transition: all var(--transition-fast);
}

.ekyc-doc-item:last-child {
  margin-bottom: 0;
}

.ekyc-doc-item:hover {
  border-color: var(--border-muted);
  background: var(--bg-surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.ekyc-doc-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ekyc-doc-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ekyc-doc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ekyc-doc-status {
  font-size: 11px;
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.ekyc-doc-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.ekyc-doc-btn {
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ekyc-doc-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--brand-500);
  border-color: var(--brand-300);
}

/* Review Action Buttons Stack */
.ekyc-action-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 14px;
}

.ekyc-btn-action {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.ekyc-btn-action:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.05);
}

.ekyc-btn-action:active {
  transform: translateY(0);
}

/* 1. Verify KYC (Emerald Green) */
.ekyc-btn-verify {
  background: #059669;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

.ekyc-btn-verify:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* 2. Send to device review (Purple) */
.ekyc-btn-device {
  background: #7c3aed;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.28);
}

.ekyc-btn-device:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* 3. Process operator code (Indigo) */
.ekyc-btn-code {
  background: #6366f1;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.28);
}

.ekyc-btn-code:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* 4. Send to test (Crimson / Red) */
.ekyc-btn-test {
  background: #dc2626;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.28);
}

.ekyc-btn-test:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* 5. Reject KYC (Dark Crimson Outline / Fill) */
.ekyc-btn-reject {
  background: rgba(225, 29, 72, 0.12);
  border: 1.5px solid #e11d48;
  color: #f43f5e;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.12);
}

.ekyc-btn-reject:hover {
  background: #e11d48;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
}

.ekyc-action-note {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .ekyc-workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ekyc-review-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
  .ekyc-summary-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .ekyc-file-box {
    width: 100%;
    text-align: left;
  }
  .ekyc-fields-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HEADER USER DROPDOWN (Reference 1)
   ========================================================================== */
.top-actions {
  position: relative;
}

.user-btn-wrapper {
  position: relative;
  display: inline-block;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 14px 10px 10px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  pointer-events: none;
}

.dark .user-dropdown-menu {
  background: #121316;
  border-color: #27272a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.3);
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-user-header {
  padding: 4px 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.dropdown-user-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.dropdown-user-email {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.dropdown-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.dropdown-menu-item:hover {
  background: var(--bg-surface-alt);
  color: var(--brand-500);
}

.dark .dropdown-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.dropdown-menu-item svg {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.dropdown-menu-item:hover svg {
  color: var(--brand-500);
}

.dark .dropdown-menu-item:hover svg {
  color: #ffffff;
}

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

.dropdown-menu-item.logout-item {
  color: #f87171;
}

.dropdown-menu-item.logout-item svg {
  color: #f87171;
}

.dropdown-menu-item.logout-item:hover {
  background: rgba(248, 113, 113, 0.12);
  color: #ef4444;
}

.dropdown-menu-item.logout-item:hover svg {
  color: #ef4444;
}

/* ==========================================================================
   PROFILE PAGE STYLES (Reference 2)
   ========================================================================== */
.profile-hero-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 30px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-hero-banner::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 18px solid rgba(245, 158, 11, 0.15);
  pointer-events: none;
}

.profile-hero-left {
  position: relative;
  z-index: 1;
}

.profile-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ea580c;
  margin-bottom: 6px;
}

.profile-hero-eyebrow .eyebrow-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(234, 88, 12, 0.12);
  display: grid;
  place-items: center;
  color: #ea580c;
}

.profile-hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.profile-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Two-column layout */
.profile-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .profile-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Column Cards */
.profile-avatar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.profile-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  background: var(--bg-surface-alt);
  border: 2px solid var(--border-subtle);
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 38px;
  color: var(--text-secondary);
  overflow: hidden;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-user-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.profile-user-email {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 18px;
  word-break: break-all;
}

.profile-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.profile-avatar-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  border-color: var(--border-muted);
}

/* Status Card */
.profile-status-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.profile-status-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-status-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #047857;
  margin-bottom: 2px;
}

.dark .profile-status-title {
  color: #34d399;
}

.profile-status-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin: 0;
}

/* Right Column Section Cards */
.profile-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.profile-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-section-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-section-badge.red {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.profile-section-badge.purple {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.profile-section-badge.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.profile-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 2px;
}

.profile-section-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Save profile button */
.btn-save-profile {
  background: #dc2626;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transition: all var(--transition-fast);
}

.btn-save-profile:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
  transform: translateY(-1.5px);
}

/* ==========================================================================
   MPIN SETTINGS & LOCK SCREEN STYLES (Reference 3)
   ========================================================================== */
.mpin-page-wrapper {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 30px 16px;
}

.mpin-card-container {
  width: 100%;
  max-width: 440px;
  background: #090a0f;
  border: 1px solid #1f2430;
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.mpin-top-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #dc2626;
  color: #ffffff;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

.mpin-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #1e2430;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.mpin-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mpin-category {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ef4444;
  margin-bottom: 6px;
}

.mpin-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.mpin-username {
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  margin: 0 0 10px;
}

.mpin-desc {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 26px;
  line-height: 1.5;
}

.mpin-group {
  margin-bottom: 20px;
  text-align: left;
}

.mpin-group-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
  display: block;
}

.mpin-boxes-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mpin-digit-input {
  width: 100%;
  height: 56px;
  border-radius: 10px;
  background: #04060a;
  border: 1.5px solid #1e293b;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
  outline: none;
  transition: all var(--transition-fast);
}

.mpin-digit-input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  background: #0a0d14;
}

.mpin-submit-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  background: #dc2626;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
  margin-top: 10px;
  transition: all var(--transition-fast);
}

.mpin-submit-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.45);
}

.mpin-shake {
  animation: mpinShake 0.4s ease-in-out;
}

@keyframes mpinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* ==========================================================================
   UNIFIED OPERATOR SERVICE FORM SYSTEM (2026 EDITION)
   ========================================================================== */
.op-form-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 30px;
}

/* 1. Hero Banner */
.op-hero-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 45%, #ffffff 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 18px;
  padding: 26px 28px;
  position: relative;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}

.dark .op-hero-banner {
  background: linear-gradient(135deg, #181512 0%, #1a1612 50%, #111317 100%);
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.op-hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dc2626;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.op-hero-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.op-hero-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 14px;
  max-width: 680px;
}

.op-hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.op-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-secondary);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dark .op-badge-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.op-hero-price-box {
  position: absolute;
  right: 28px;
  top: 26px;
  text-align: right;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.dark .op-hero-price-box {
  background: #1e1b18;
  border-color: rgba(245, 158, 11, 0.25);
}

.op-hero-price-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.op-hero-price-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  font-family: var(--font-mono);
  margin: 2px 0;
}

.op-hero-price-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* 2. Step Wizard Bar */
.op-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 10px 20px;
  margin-bottom: 22px;
  overflow-x: auto;
  gap: 12px;
}

.op-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.op-step-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.op-step-item.active {
  color: #ef4444;
}

.op-step-item.active .op-step-num {
  background: #ef4444;
  color: #ffffff;
}

/* 3. Section Cards */
.op-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.op-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.op-section-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.op-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.op-icon-red { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.op-icon-purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.op-icon-amber { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.op-icon-green { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.op-icon-blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }

.op-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.op-section-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.op-step-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

/* 4. Form Grids & Fields */
.op-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.op-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .op-grid-2, .op-grid-3 {
    grid-template-columns: 1fr;
  }
  .op-hero-price-box {
    position: static;
    margin-top: 14px;
    text-align: left;
    display: inline-block;
  }
}

.op-field {
  margin-bottom: 16px;
}

.op-field.full {
  grid-column: 1 / -1;
}

.op-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.op-label .required {
  color: #ef4444;
  margin-left: 2px;
}

.op-input {
  width: 100%;
  height: 44px;
  border-radius: 9px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  padding: 0 14px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.op-input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.op-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.op-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
  line-height: 1.4;
}

/* 5. Gender Selectable Cards */
.op-gender-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.op-gender-card {
  position: relative;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-surface);
}

.op-gender-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.op-gender-card:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.op-gender-card.active,
.op-gender-card:has(input[type="radio"]:checked) {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
  color: #ef4444;
  box-shadow: 0 0 0 1px #ef4444;
}

/* 6. Dynamic Child Summary Card */
.op-child-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.18);
  margin-top: 14px;
}

.op-child-summary-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ef4444;
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* 7. Address Live Preview Box */
.op-address-preview-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bg-surface-alt);
  border: 1px dashed var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 44px;
  box-sizing: border-box;
}

/* 8. Modern Upload Cards */
.op-upload-card {
  border: 1.5px dashed var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all var(--transition-fast);
}

.op-upload-card:hover {
  border-color: #ef4444;
  background: var(--bg-surface);
}

.op-upload-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.op-upload-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: grid;
  place-items: center;
  color: #ef4444;
  flex-shrink: 0;
}

.op-upload-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
}

.op-upload-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.op-btn-choose {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.op-btn-choose:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* Photograph Upload Box (Reference 4) */
.op-photo-upload-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .op-photo-upload-panel {
    grid-template-columns: 1fr;
  }
}

.op-photo-box {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  background: var(--bg-surface);
  text-align: center;
}

.op-photo-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 14px 0 16px;
}

.op-btn-photo-red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.op-btn-photo-white {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.op-photo-req-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: left;
  margin-bottom: 14px;
}

.op-photo-req-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.op-photo-req-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  font-size: 11px;
  color: var(--text-muted);
  padding: 0;
  margin: 0;
  list-style: none;
}

.op-photo-req-list li::before {
  content: "•";
  color: #ef4444;
  margin-right: 6px;
  font-weight: bold;
}

.op-photo-preview-box {
  height: 140px;
  border: 1.5px dashed var(--border-color);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  font-size: 12px;
  overflow: hidden;
}

.op-photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 9. Charges Banner */
.op-charges-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #b45309;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.dark .op-charges-banner {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

/* 10. Biometric Verification Component */
.op-biometric-card {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-surface);
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.op-bio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.op-bio-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.op-bio-icon-red {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #dc2626;
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.op-bio-eyebrow {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ef4444;
}

.op-bio-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.op-bio-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.op-bio-scanner-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

@media (max-width: 768px) {
  .op-bio-scanner-row {
    grid-template-columns: 1fr;
  }
}

.op-scanner-box {
  height: 110px;
  border: 1.5px dashed var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-surface-alt);
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.op-scanner-box:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.op-scanner-box.scanning {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.06);
  color: #10b981;
}

.op-bio-scanner-info h4 {
  font-size: 13.5px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.op-bio-scanner-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 10px;
}

.op-bio-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.op-btn-mantra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.op-btn-mantra:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.op-fingers-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 0 20px 18px;
}

@media (max-width: 600px) {
  .op-fingers-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.op-finger-card {
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  height: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-surface-alt);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  text-align: center;
}

.op-finger-card:hover {
  border-color: #ef4444;
  background: var(--bg-surface);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.op-finger-card.captured {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
}

.op-finger-card.captured .op-finger-svg {
  stroke: #10b981;
}

.op-finger-card b {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.op-finger-card small {
  font-size: 10px;
  color: var(--text-muted);
}

.op-finger-card.captured small {
  color: #10b981;
  font-weight: 700;
}

.op-bio-status-bar {
  margin: 0 20px 20px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 12px;
  color: #b45309;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dark .op-bio-status-bar {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.op-bio-status-bar.completed {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

/* 11. Form Action Footer */
.op-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 10px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 24px;
}

.op-btn-cancel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.op-btn-cancel:hover {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
}

.op-footer-fee-text {
  font-size: 12px;
  color: var(--text-muted);
}

.op-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transition: all var(--transition-fast);
}

.op-btn-submit:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

/* ==========================================================================
   TUTORIALS LEARNING CENTRE (Reference 5)
   ========================================================================== */
.tut-hero-banner {
  background: #0b0c10;
  border: 1px solid #1f2430;
  border-radius: 18px;
  padding: 28px 32px;
  position: relative;
  margin-bottom: 20px;
  color: #ffffff;
}

.tut-hero-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ef4444;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tut-hero-title {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.tut-hero-sub {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  max-width: 650px;
}

.tut-lang-switch {
  position: absolute;
  right: 32px;
  top: 28px;
  background: #181d28;
  border: 1px solid #2d3748;
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  gap: 4px;
}

.tut-lang-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #94a3b8;
  transition: all 0.15s;
}

.tut-lang-btn.active {
  background: #ffffff;
  color: #0b0c10;
}

.tut-notice-bar {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #b45309;
  margin-bottom: 24px;
}

.dark .tut-notice-bar {
  background: #1e1b14;
  border-color: #382c16;
  color: #fbbf24;
}

.tut-module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

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

.tut-module-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all var(--transition-fast);
}

.tut-module-card:hover {
  border-color: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.tut-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.tut-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.tut-card-tag {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Accordion Modules */
.tut-accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.tut-accordion-head {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.tut-accordion-head:hover {
  background: var(--bg-surface-alt);
}

.tut-accordion-body {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border-subtle);
}

.tut-step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

@media (max-width: 768px) {
  .tut-step-grid {
    grid-template-columns: 1fr;
  }
}

.tut-step-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
}

.tut-step-num-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ==========================================================================
   ADMIN SERVICE CATALOGUE & FEE MANAGEMENT DASHBOARD (2026 FINTECH EDITION)
   ========================================================================== */
.srv-toolbar-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

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

.srv-search-wrap {
  position: relative;
  min-width: 220px;
  flex: 1 1 240px;
  max-width: 320px;
}

.srv-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.srv-search-input {
  width: 100% !important;
  height: 38px;
  padding: 0 32px 0 36px;
  font-size: 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.srv-search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.srv-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.srv-search-clear:hover {
  color: var(--text-primary);
}

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

.srv-select-filter {
  height: 38px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  background: var(--bg-surface);
  color: var(--text-primary);
  width: auto !important;
  min-width: 135px;
  max-width: 175px;
  outline: none;
  transition: all var(--transition-fast);
}

.srv-select-filter:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.srv-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.srv-results-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* Delete button on service card */
.btn-srv-delete {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.btn-srv-delete:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.3);
}

.dark .btn-srv-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
}

/* Service Cards Grid */
.srv-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.srv-catalog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.srv-catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 72, 0.28);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
}

.dark .srv-catalog-card:hover {
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4);
}

.srv-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.srv-card-icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.srv-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.srv-catalog-card:hover .srv-card-icon {
  transform: scale(1.05);
}

.srv-icon-demographic {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.18);
}
.dark .srv-icon-demographic {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.25);
}

.srv-icon-biometric {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.18);
}
.dark .srv-icon-biometric {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.25);
}

.srv-icon-enrolment {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  color: #e11d48;
  border: 1px solid rgba(225, 29, 72, 0.18);
}
.dark .srv-icon-enrolment {
  background: rgba(225, 29, 72, 0.15);
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.25);
}

.srv-icon-verification {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.18);
}
.dark .srv-icon-verification {
  background: rgba(5, 150, 105, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.25);
}

.srv-code-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  display: inline-block;
}

/* Status Badges */
.srv-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.srv-status-badge.status-available {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.dark .srv-status-badge.status-available {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.srv-status-badge.status-unavailable {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.dark .srv-status-badge.status-unavailable {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

/* Card Content */
.srv-card-title {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
}

.srv-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.srv-meta-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.srv-card-desc {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

/* Prominent Price Box */
.srv-price-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  transition: border-color var(--transition-fast);
}

.srv-catalog-card:hover .srv-price-box {
  border-color: rgba(225, 29, 72, 0.2);
}

.srv-price-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.srv-price-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.srv-price-policy {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--brand-500);
}

.srv-price-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.srv-price-amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  font-feature-settings: 'tnum';
  line-height: 1.1;
}

.srv-price-currency {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-500);
}

.srv-price-footer {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Card Actions */
.srv-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.srv-actions-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.srv-quick-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid;
}

.srv-quick-toggle-btn.is-available {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
.srv-quick-toggle-btn.is-available:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.3);
}

.srv-quick-toggle-btn.is-unavailable {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
}
.srv-quick-toggle-btn.is-unavailable:hover {
  background: #059669;
  color: #ffffff;
}

.srv-toggle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.srv-quick-toggle-btn.is-available .srv-toggle-dot {
  background: #10b981;
}
.srv-quick-toggle-btn.is-unavailable .srv-toggle-dot {
  background: #ef4444;
}

/* Availability Selector in Add/Edit Form */
.srv-avail-control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.srv-avail-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.srv-avail-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.srv-avail-box {
  border: 2px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.srv-avail-option:hover .srv-avail-box {
  border-color: var(--border-muted);
}

.srv-avail-option input:checked + .srv-avail-box.avail-box-green {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.04);
}

.srv-avail-option input:checked + .srv-avail-box.avail-box-red {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.04);
}

.srv-avail-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.srv-avail-sub {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Price Input Prefix Wrapper */
.srv-price-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.srv-price-prefix {
  position: absolute;
  left: 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-500);
  pointer-events: none;
}

.srv-price-input {
  padding-left: 32px !important;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-mono);
}

/* Empty State */
.srv-empty-state {
  text-align: center;
  padding: 56px 24px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-muted);
  border-radius: var(--radius-lg);
  grid-column: 1 / -1;
}

.srv-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.srv-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.srv-empty-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

@media (max-width: 768px) {
  .srv-toolbar-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .srv-search-wrap {
    max-width: none;
  }
  .srv-avail-control-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   OPERATOR E-KYC WORKFLOW (2026 EDITION)
   Matches Reference 1 (Tutorial & Info) and Reference 2 (Form & Uploads)
   ========================================================================== */

/* 1. Hero Banner */
.op-ekyc-hero {
  position: relative;
  background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

:root:not(.dark) .op-ekyc-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
}

.op-ekyc-hero-decor {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 40px solid rgba(244, 63, 94, 0.06);
  pointer-events: none;
}

.op-ekyc-hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.op-ekyc-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fb923c;
  margin-bottom: 12px;
}

.op-ekyc-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

.op-ekyc-hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 6px;
}

.op-ekyc-hero-sub {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0 0 20px;
  line-height: 1.5;
}

.op-ekyc-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Status Box inside Hero */
.op-ekyc-status-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
  position: relative;
  z-index: 1;
}

.op-ekyc-status-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #fb923c;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.op-ekyc-status-box.is-review .op-ekyc-status-icon-wrap {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.3);
  color: #38bdf8;
}

.op-ekyc-status-box.is-verified .op-ekyc-status-icon-wrap {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.op-ekyc-status-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 3px;
}

.op-ekyc-status-val {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

/* 2. E-KYC Journey Progress Grid (Reference 1) */
.op-ekyc-journey-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.op-ekyc-journey-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 4px;
}

.op-ekyc-journey-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 20px;
}

.op-ekyc-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.op-ekyc-step-pill {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-alt);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all var(--transition-fast);
  position: relative;
}

.op-ekyc-step-pill.is-active {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.04);
  box-shadow: 0 0 0 1px #f97316;
}

.op-ekyc-step-pill.is-completed {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.04);
}

.op-ekyc-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.op-ekyc-step-pill.is-active .op-ekyc-step-num {
  background: #f97316;
  border-color: #f97316;
  color: #ffffff;
}

.op-ekyc-step-pill.is-completed .op-ekyc-step-num {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.op-ekyc-step-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.op-ekyc-step-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* 3. 3-Card Information Grid (Reference 1) */
.op-ekyc-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.op-ekyc-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.op-ekyc-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  color: var(--brand-500);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.op-ekyc-info-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.op-ekyc-info-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* 4. Form Section Cards (Reference 2) */
.op-ekyc-form-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.op-ekyc-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.op-ekyc-head-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.op-ekyc-head-icon.icon-personal {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.op-ekyc-head-icon.icon-address {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.op-ekyc-head-icon.icon-id {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.op-ekyc-head-icon.icon-docs {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.op-ekyc-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 2px;
}

.op-ekyc-section-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin: 0;
}

.op-ekyc-counter-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: var(--brand-500);
}

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

.op-ekyc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.op-ekyc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.op-ekyc-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.op-ekyc-field label .required {
  color: #ef4444;
  margin-left: 2px;
}

.op-ekyc-field-hint {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* 5. Supporting Document Cards (Reference 2) */
.op-ekyc-docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.op-ekyc-doc-card {
  position: relative;
  background: var(--bg-surface-alt);
  border: 1.5px dashed var(--border-subtle);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.op-ekyc-doc-card:hover {
  border-color: var(--border-muted);
  background: var(--bg-surface);
}

.op-ekyc-doc-card.is-uploaded {
  border-style: solid;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.04);
}

.op-ekyc-doc-card.is-invalid {
  border-style: solid;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.04);
}

.op-ekyc-doc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.op-ekyc-doc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.op-ekyc-doc-card.is-uploaded .op-ekyc-doc-icon {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.op-ekyc-doc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-ekyc-doc-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.op-ekyc-doc-card.is-uploaded .op-ekyc-doc-meta {
  color: #10b981;
  font-weight: 600;
}

.op-ekyc-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  flex-shrink: 0;
  pointer-events: none; /* Let card handle click */
  transition: all var(--transition-fast);
}

.op-ekyc-doc-card.is-uploaded .op-ekyc-doc-btn {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.op-ekyc-doc-card input[type="file"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* 6. Form Footer Action Bar (Reference 2) */
.op-ekyc-form-footer {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.op-ekyc-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.op-ekyc-footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.op-ekyc-footer-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .op-ekyc-steps-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .op-ekyc-info-grid {
    grid-template-columns: 1fr;
  }
  .op-ekyc-grid-3 {
    grid-template-columns: 1fr;
  }
  .op-ekyc-grid-2 {
    grid-template-columns: 1fr;
  }
  .op-ekyc-docs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .op-ekyc-steps-row {
    grid-template-columns: 1fr;
  }
  .op-ekyc-hero {
    padding: 24px 20px;
  }
  .op-ekyc-status-box {
    width: 100%;
  }
  .op-ekyc-form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .op-ekyc-footer-right {
    justify-content: space-between;
  }
}

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

/* ==========================================================================
   ADMIN EDIT SERVICE MODAL REFINEMENTS
   Fixes modal height overflow, margins, paddings, gaps, and footer visibility
   ========================================================================== */
#admin-service-modal .modal-box {
  padding: 0 !important;
  width: min(580px, 94vw) !important;
  max-height: min(88vh, 640px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

#admin-service-modal .modal-header {
  padding: 14px 20px !important;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  flex-shrink: 0 !important;
}

#admin-service-modal #admin-service-form {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0;
}

#admin-service-modal .modal-content-scroll {
  padding: 16px 20px !important;
  overflow-y: auto !important;
  flex: 1 !important;
  min-height: 0 !important;
}

#admin-service-modal .modal-footer {
  padding: 12px 20px !important;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-alt);
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

#admin-service-modal .form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

#admin-service-modal .form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

#admin-service-modal .form-field:last-child {
  margin-bottom: 0;
}

#admin-service-modal .form-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  display: block;
}

#admin-service-modal .input,
#admin-service-modal .select {
  height: 38px;
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 8px;
}

#admin-service-modal .textarea {
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 8px;
  resize: vertical;
  min-height: 56px;
  line-height: 1.45;
}

#admin-service-modal .srv-avail-control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#admin-service-modal .srv-avail-box {
  padding: 8px 12px;
  border-radius: 8px;
  gap: 3px;
}

#admin-service-modal .srv-avail-head {
  font-size: 12.5px;
  gap: 6px;
}

#admin-service-modal .srv-avail-sub {
  font-size: 10px;
  line-height: 1.35;
}

#admin-service-modal .srv-price-input-wrap .srv-price-prefix {
  font-size: 14px;
  left: 12px;
}

#admin-service-modal .srv-price-input {
  padding-left: 28px !important;
  height: 38px;
  font-size: 14px;
}

/* ==========================================================================
   TOPBAR NOTIFICATION BELL & DROPDOWN SYSTEM (2026 FINTECH EDITION)
   Applies to BOTH Admin and Operator sides
   ========================================================================== */
.topbar-notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notif-bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.notif-bell-btn:hover,
.notif-bell-btn[aria-expanded="true"] {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
  line-height: 1;
  pointer-events: none;
}

/* Notification Dropdown Panel */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  max-height: min(540px, 80vh);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.18), 0 4px 14px -2px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.dark .notif-dropdown {
  box-shadow: 0 18px 44px -8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

.notif-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.notif-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.notif-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.notif-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-header-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.notif-count-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(225, 29, 72, 0.1);
  color: var(--brand-500);
}

.notif-mark-all-btn {
  background: transparent;
  border: none;
  color: var(--brand-500);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: opacity var(--transition-fast);
}

.notif-mark-all-btn:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.notif-tabs {
  display: flex;
  gap: 6px;
}

.notif-tab {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.notif-tab:hover {
  color: var(--text-primary);
  background: var(--bg-surface-alt);
}

.notif-tab.active {
  background: var(--bg-surface-alt);
  color: var(--brand-500);
  font-weight: 700;
}

.notif-list {
  flex: 1;
  overflow-y: auto;
  max-height: 380px;
  padding: 4px 0;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--transition-fast);
  position: relative;
  text-decoration: none;
  color: inherit;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: var(--bg-surface-alt);
}

.notif-item.is-unread {
  background: rgba(225, 29, 72, 0.025);
}

.dark .notif-item.is-unread {
  background: rgba(244, 63, 94, 0.04);
}

.notif-type-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-type-info {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}
.dark .notif-type-info {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.notif-type-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.dark .notif-type-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.notif-type-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}
.dark .notif-type-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.notif-type-alert {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
.dark .notif-type-alert {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.notif-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  flex-shrink: 0;
}

.notif-msg {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.notif-action-btn {
  font-size: 11px;
  color: var(--brand-500);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}
.notif-action-btn:hover {
  text-decoration: underline;
}

.notif-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--text-muted);
}

.notif-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--text-muted);
}

.notif-empty-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.notif-empty-desc {
  font-size: 12px;
  margin: 0;
}

.notif-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ==========================================================================
   LOGIN & REGISTRATION REDESIGN (References 1, 2, 3, 4, 5)
   ========================================================================== */

/* Login Page Layout */
.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  background-image: radial-gradient(at 50% 0%, rgba(239, 68, 68, 0.05) 0px, transparent 55%),
                    radial-gradient(at 80% 80%, rgba(245, 158, 11, 0.04) 0px, transparent 40%);
  padding: 24px 16px;
  font-family: inherit;
}

.dark .login-bg {
  background-color: #0b0c10;
  background-image: radial-gradient(at 50% 0%, rgba(220, 38, 38, 0.12) 0px, transparent 60%),
                    radial-gradient(at 80% 80%, rgba(245, 158, 11, 0.05) 0px, transparent 50%);
}

.login-card {
  width: 100%;
  max-width: 450px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.02);
  position: relative;
  transition: all var(--transition-normal);
}

.dark .login-card {
  background: #14171f;
  border-color: #272d3b;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.auth-top-dot {
  width: 9px;
  height: 9px;
  background: #dc2626;
  border-radius: 50%;
  margin-bottom: 12px;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.auth-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
}

.dark .auth-card-title {
  color: #f3f4f6;
}

.auth-card-subtitle {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 22px;
}

.dark .auth-card-subtitle {
  color: #94a3b8;
}

/* Method Selector */
.auth-method-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

.dark .auth-method-label {
  color: #94a3b8;
}

.auth-tabs-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 22px;
}

.dark .auth-tabs-group {
  background: #1e2330;
  border-color: #2e3648;
}

.auth-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.auth-tab-btn svg {
  color: currentColor;
  flex-shrink: 0;
}

.auth-tab-btn:hover {
  color: #111827;
}

.dark .auth-tab-btn {
  color: #94a3b8;
}

.dark .auth-tab-btn:hover {
  color: #f1f5f9;
}

.auth-tab-btn.active {
  background: #ffffff;
  border-color: #fbbf24;
  color: #dc2626;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dark .auth-tab-btn.active {
  background: #14171f;
  border-color: #f59e0b;
  color: #ef4444;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Auth Fields */
.auth-field-group {
  margin-bottom: 18px;
}

.auth-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.auth-field-label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.dark .auth-field-label {
  color: #e2e8f0;
}

.auth-forgot-link {
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  text-decoration: none;
  transition: opacity 0.15s;
}

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

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

.auth-input-wrap .auth-icon-left {
  position: absolute;
  left: 13px;
  color: #9ca3af;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-size: 13.5px;
  font-family: inherit;
  transition: all 0.15s ease;
}

.dark .auth-input {
  background: #1a1e28;
  border-color: #2e3648;
  color: #f1f5f9;
}

.auth-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.auth-input-wrap.has-right-btn .auth-input {
  padding-right: 42px;
}

.auth-eye-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.auth-eye-btn:hover {
  color: #4b5563;
}

.dark .auth-eye-btn:hover {
  color: #e2e8f0;
}

.auth-field-hint {
  font-size: 11.5px;
  color: #9ca3af;
  margin-top: 5px;
  line-height: 1.4;
}

.dark .auth-field-hint {
  color: #64748b;
}

.auth-remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 20px;
  font-size: 12.5px;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}

.dark .auth-remember-row {
  color: #94a3b8;
}

.auth-remember-row input[type="checkbox"] {
  accent-color: #dc2626;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.auth-btn-primary {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.auth-btn-primary:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}

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

.auth-card-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f3f4f6;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
  color: #6b7280;
}

.dark .auth-card-links {
  border-top-color: #232938;
  color: #94a3b8;
}

.auth-link-red {
  color: #dc2626;
  font-weight: 700;
  text-decoration: none;
}

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

.auth-mpin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #374151;
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  transition: all 0.15s ease;
  margin: 0 auto;
}

.dark .auth-mpin-link {
  background: #1a1e28;
  border-color: #2e3648;
  color: #e2e8f0;
}

.auth-mpin-link:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.04);
}

.auth-error-alert {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* ==========================================================================
   REGISTRATION PAGE STYLES (References 4 & 5)
   ========================================================================== */

.reg-page-wrap {
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.dark .reg-page-wrap {
  background: #0b0c10;
}

/* Reg Topbar */
.reg-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dark .reg-topbar {
  background: #14171f;
  border-bottom-color: #272d3b;
}

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

.reg-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff;
  display: grid;
  place-items: center;
}

.reg-brand-name {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
}

.dark .reg-brand-name {
  color: #f3f4f6;
}

.reg-brand-divider {
  width: 1px;
  height: 18px;
  background: #e5e7eb;
}

.dark .reg-brand-divider {
  background: #272d3b;
}

.reg-brand-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.dark .reg-brand-tag {
  color: #94a3b8;
}

.reg-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dark .reg-signin-btn {
  background: #1a1e28;
  border-color: #2e3648;
  color: #e2e8f0;
}

.reg-signin-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
}

/* Reg Card */
.reg-card {
  width: min(760px, 94vw);
  margin: 32px auto 48px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

.dark .reg-card {
  background: #14171f;
  border-color: #272d3b;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.reg-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #f3f4f6;
}

.dark .reg-banner {
  border-bottom-color: #232938;
}

.reg-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #dc2626;
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.reg-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dc2626;
  margin-bottom: 4px;
}

.reg-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.dark .reg-title {
  color: #f3f4f6;
}

.reg-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.45;
}

.dark .reg-subtitle {
  color: #94a3b8;
}

/* Stepper Wizard */
.reg-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 16px 22px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
}

.dark .reg-stepper {
  background: #1a1e28;
  border-color: #262c3b;
}

.reg-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reg-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.reg-step-circle.active {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.reg-step-circle.completed {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.reg-step-circle.inactive {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  color: #9ca3af;
}

.dark .reg-step-circle.inactive {
  background: #14171f;
  border-color: #374151;
  color: #64748b;
}

.reg-step-info {
  display: flex;
  flex-direction: column;
}

.reg-step-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1px;
}

.reg-step-badge.active {
  color: #dc2626;
}

.reg-step-badge.completed {
  color: #10b981;
}

.reg-step-badge.inactive {
  color: #9ca3af;
}

.reg-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.dark .reg-step-title {
  color: #f3f4f6;
}

.reg-step-title.inactive {
  color: #9ca3af;
}

.dark .reg-step-title.inactive {
  color: #64748b;
}

.reg-step-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin: 0 20px;
  transition: all 0.25s ease;
}

.dark .reg-step-line {
  background: #2e3648;
}

.reg-step-line.completed {
  background: #10b981;
}

/* Sections & Form Fields */
.reg-section {
  margin-bottom: 24px;
}

.reg-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.reg-sec-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.reg-sec-icon.blue {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.dark .reg-sec-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.reg-sec-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.dark .reg-sec-icon.purple {
  background: rgba(139, 92, 246, 0.18);
  color: #a78bfa;
}

.reg-sec-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 2px;
}

.dark .reg-sec-title {
  color: #f3f4f6;
}

.reg-sec-subtitle {
  font-size: 11.5px;
  color: #6b7280;
  margin: 0;
}

.dark .reg-sec-subtitle {
  color: #94a3b8;
}

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

.reg-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.reg-field {
  margin-bottom: 16px;
}

.reg-field.full {
  grid-column: 1 / -1;
}

.reg-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
  display: block;
}

.dark .reg-label {
  color: #e2e8f0;
}

.reg-label .required {
  color: #dc2626;
}

.reg-input,
.reg-select,
.reg-textarea {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.15s ease;
}

.dark .reg-input,
.dark .reg-select,
.dark .reg-textarea {
  background: #1a1e28;
  border-color: #2e3648;
  color: #f1f5f9;
}

.reg-textarea {
  height: auto;
  padding: 10px 14px;
  min-height: 75px;
  resize: vertical;
}

.reg-input:focus,
.reg-select:focus,
.reg-textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.reg-input-prefix-group {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.15s ease;
}

.dark .reg-input-prefix-group {
  background: #1a1e28;
  border-color: #2e3648;
}

.reg-input-prefix-group:focus-within {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.reg-prefix-tag {
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  border-right: 1px solid #e5e7eb;
  height: 42px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.dark .reg-prefix-tag {
  background: #232938;
  border-right-color: #2e3648;
  color: #94a3b8;
}

.reg-input-prefix-group input {
  border: none;
  outline: none;
  height: 42px;
  padding: 0 12px;
  flex: 1;
  background: transparent;
  color: #111827;
  font-size: 13px;
  font-family: inherit;
}

.dark .reg-input-prefix-group input {
  color: #f1f5f9;
}

.reg-pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.reg-pwd-wrap .reg-input {
  padding-right: 40px;
}

.reg-pwd-wrap .reg-pwd-eye {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.reg-pwd-wrap .reg-pwd-eye:hover {
  color: #4b5563;
}

.dark .reg-pwd-wrap .reg-pwd-eye:hover {
  color: #e2e8f0;
}

/* Actions Row */
.reg-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
}

.dark .reg-actions-row {
  border-top-color: #232938;
}

.reg-btn-continue,
.reg-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.reg-btn-continue:hover,
.reg-btn-submit:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}

.reg-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dark .reg-btn-back {
  background: #1a1e28;
  border-color: #2e3648;
  color: #e2e8f0;
}

.reg-btn-back:hover {
  background: #f3f4f6;
}

.dark .reg-btn-back:hover {
  background: #232938;
}

.reg-footnote {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #6b7280;
  margin-top: 14px;
}

.dark .reg-footnote {
  color: #94a3b8;
}

@media (max-width: 640px) {
  .reg-card {
    padding: 24px 20px;
  }
  .reg-grid-2,
  .reg-grid-3 {
    grid-template-columns: 1fr;
  }
  .reg-topbar {
    padding: 12px 16px;
  }
  .reg-stepper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .reg-step-line {
    display: none;
  }
  .reg-actions-row {
    flex-direction: column-reverse;
    gap: 14px;
    align-items: stretch;
  }
  .reg-btn-continue,
  .reg-btn-submit,
  .reg-btn-back {
    justify-content: center;
  }
}

/* ==========================================================================
   ADMIN UNIVERSAL SEARCH COMPONENT (2026 ENTERPRISE UI)
   ========================================================================== */
.admin-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 480px;
  margin: 0 24px;
}

.admin-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--bg-surface-alt, #f8fafc);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 9999px;
  padding: 0 14px;
  height: 40px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-search-box:focus-within {
  border-color: var(--brand-500, #ef4444);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
  background: var(--bg-surface, #ffffff);
}

.dark .admin-search-box {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.dark .admin-search-box:focus-within {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--brand-500, #ef4444);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

.admin-search-icon {
  color: var(--text-muted, #94a3b8);
  margin-right: 10px;
  flex-shrink: 0;
  pointer-events: none;
}

.admin-search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary, #0f172a);
  padding: 0;
  font-family: inherit;
}

.admin-search-input::placeholder {
  color: var(--text-muted, #94a3b8);
  font-size: 13px;
}

.dark .admin-search-input {
  color: #f8fafc;
}

.admin-search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  background: var(--bg-surface, #e2e8f0);
  border: 1px solid var(--border-subtle, #cbd5e1);
  border-radius: 4px;
  pointer-events: none;
  margin-left: 6px;
  user-select: none;
}

.dark .admin-search-kbd {
  background: rgba(51, 65, 85, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.admin-search-clear {
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  transition: color 0.15s ease;
  margin-right: 4px;
}

.admin-search-clear:hover {
  color: var(--brand-500, #ef4444);
}

.admin-search-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-subtle, #e2e8f0);
  border-top-color: var(--brand-500, #ef4444);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
  flex-shrink: 0;
}

.admin-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  max-height: 440px;
  overflow-y: auto;
  z-index: 999;
  padding: 8px 0;
  backdrop-filter: blur(16px);
}

.dark .admin-search-dropdown {
  background: #0f172a;
  border-color: #334155;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.5);
}

.search-dropdown-group {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #94a3b8);
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  border-left: 3px solid transparent;
}

.search-dropdown-item:hover,
.search-dropdown-item.active {
  background: var(--bg-surface-alt, #f8fafc);
  border-left-color: var(--brand-500, #ef4444);
}

.dark .search-dropdown-item:hover,
.dark .search-dropdown-item.active {
  background: rgba(30, 41, 59, 0.8);
  border-left-color: var(--brand-500, #ef4444);
}

.search-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.search-item-avatar.user { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.search-item-avatar.ekyc { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.search-item-avatar.service { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.search-item-avatar.wallet { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dark .search-item-title {
  color: #f8fafc;
}

.search-item-code {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--brand-500, #ef4444);
  font-weight: 700;
}

.search-item-sub {
  font-size: 11.5px;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.search-item-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.search-dropdown-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted, #94a3b8);
  font-size: 13px;
}

@media (max-width: 992px) {
  .admin-search-wrapper {
    max-width: 300px;
    margin: 0 12px;
  }
  .admin-search-kbd {
    display: none;
  }
}

@media (max-width: 768px) {
  .admin-search-wrapper {
    max-width: 200px;
    margin: 0 8px;
  }
  .admin-search-input {
    font-size: 12px;
  }
  .admin-search-input::placeholder {
    font-size: 11px;
  }
}

@media (max-width: 540px) {
  .admin-search-wrapper {
    display: none;
  }
}

