/* ═══════════════════════════════════════════════════════════════════
   IBSHER ENTERPRISE DESIGN SYSTEM — OBSIDIAN & JADE LIQUID GLASS (2026)
   Complete Visual Transformation • Pure Luxury Aesthetics
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --font-arabic: 'Outfit', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-latin: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Obsidian & Luminous Jade Brand Identity */
  --emerald-primary: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --emerald-deep: #064E3B;
  --emerald-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --emerald-hover-gradient: linear-gradient(135deg, #34D399 0%, #10B981 100%);

  --cyan-primary: #0284C7;
  --cyan-glow: rgba(2, 132, 199, 0.35);
  --cyan-gradient: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);

  --gold-primary: #F59E0B;
  --ruby-primary: #EF4444;

  /* Dark Theme Default Tokens (Deep Obsidian / Onyx) */
  --bg-deep: #030712;
  --bg-surface: rgba(15, 23, 42, 0.65);
  --bg-panel: rgba(17, 24, 39, 0.7);
  --bg-panel-hover: rgba(30, 41, 59, 0.85);
  --bg-input: rgba(11, 17, 33, 0.85);
  --bg-modal: rgba(15, 23, 42, 0.95);

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-bright: rgba(255, 255, 255, 0.16);
  --border-emerald-glow: rgba(16, 185, 129, 0.4);

  --text-pure: #FFFFFF;
  --text-high: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --shadow-luxury: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow-emerald: 0 8px 24px -2px rgba(16, 185, 129, 0.3);

  --sidebar-w: 280px;
  --topbar-h: 68px;
}

[data-theme="light"] {
  --bg-deep: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-panel: #FFFFFF;
  --bg-panel-hover: #F1F5F9;
  --bg-input: #F1F5F9;
  --bg-modal: #FFFFFF;

  --border-glass: #E2E8F0;
  --border-glass-bright: #CBD5E1;
  --border-emerald-glow: rgba(5, 150, 105, 0.35);

  --emerald-primary: #059669;
  --cyan-primary: #0284C7;

  --text-pure: #0F172A;
  --text-high: #1E293B;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  --shadow-luxury: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-pure);
}

[data-theme="light"] .nav-pill-counter {
  background: #F1F5F9;
  color: var(--text-high);
}

[data-theme="light"] .operator-profile-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .tile-action-btn {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: var(--text-high);
}

[data-theme="light"] .tile-action-btn:hover {
  background: #F1F5F9;
}

/* ═══════════════ GLOBAL BASE & AMBIENT GLOWS ═══════════════ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-arabic);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-feature-settings: "lnum" 1, "tnum" 1, "ss01" 0;
  font-feature-settings: "lnum" 1, "tnum" 1, "ss01" 0;
}

input, select, textarea, button, .luxury-input {
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-feature-settings: "lnum" 1, "tnum" 1, "ss01" 0;
  font-feature-settings: "lnum" 1, "tnum" 1, "ss01" 0;
}

body.app-body {
  background-color: var(--bg-deep);
  color: var(--text-high);
  min-height: 100vh;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  position: relative;
  transition: background 0.3s ease;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-feature-settings: "lnum" 1, "tnum" 1, "ss01" 0;
  font-feature-settings: "lnum" 1, "tnum" 1, "ss01" 0;
}

/* Ambient Animated Glow Mesh */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-emerald {
  top: -100px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--emerald-primary) 0%, transparent 70%);
}

.glow-cyan {
  bottom: -150px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--cyan-primary) 0%, transparent 70%);
}

.ambient-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════ LUXURY GLASS PANELS & CARDS ═══════════════ */
.glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: var(--shadow-luxury);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass-bright), transparent);
}

/* ═══════════════ LUXURY AUTH SCREEN ═══════════════ */
.auth-viewport {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 18px;
  backdrop-filter: blur(12px);
}

.auth-container {
  width: 100%;
  max-width: 460px;
  z-index: 10;
}

.auth-hero {
  text-align: center;
  margin-bottom: 24px;
}

.brand-emblem-badge {
  position: relative;
  display: inline-flex;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass-bright);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 14px;
}

.brand-emblem-img {
  height: 52px;
  width: auto;
}

.auth-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-pure);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

/* Segmented Role Switcher */
.segmented-control {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 5px;
  margin-bottom: 18px;
  gap: 4px;
}

.segment-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 800;
  padding: 10px 6px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.segment-btn.active {
  background: var(--emerald-gradient);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow-emerald);
}

.auth-panel {
  padding: 30px 26px;
}

/* Luxury Form Inputs */
.input-field-group {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-high);
  margin-bottom: 6px;
}

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

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

.luxury-input, .luxury-select, .luxury-textarea {
  width: 100%;
  height: 48px;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  color: var(--text-pure);
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.input-with-icon .luxury-input,
.input-with-icon .luxury-select {
  padding-right: 42px;
}

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

.luxury-textarea {
  height: auto;
  padding: 12px 14px;
}

.input-trailing-btn {
  position: absolute;
  left: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
}

.field-helper-text {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 5px;
}

.luxury-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.luxury-checkbox-label input {
  accent-color: var(--emerald-primary);
  width: 16px;
  height: 16px;
}

/* Luxury Buttons System */
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--emerald-gradient);
  border: none;
  border-radius: 12px;
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-glow-emerald);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  padding: 10px 18px;
  height: 42px;
  box-sizing: border-box;
}

.btn-primary-glow:hover {
  background: var(--emerald-hover-gradient);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

.btn-primary-glow.btn-sm, .btn-secondary-glass.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 10px;
}

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-bright);
  border-radius: 12px;
  color: var(--text-high);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  padding: 10px 16px;
  height: 42px;
  box-sizing: border-box;
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-pure);
  transform: translateY(-1px);
}

.btn-block {
  width: 100% !important;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.pill-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-high);
}

.pill-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-bright);
  color: var(--text-pure);
}

.auth-error-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--ruby-primary);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
  text-align: center;
}

.auth-legal-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ═══════════════ MAIN ENTERPRISE SHELL ═══════════════ */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

/* Luxury Sidebar */
.luxury-sidebar {
  width: var(--sidebar-w);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-glass);
  height: 100vh;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand-strip {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 14px;
}

.brand-combo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-micro-badge {
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.brand-micro-img {
  height: 28px;
  width: auto;
}

.brand-heading {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-pure);
}

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

/* Operator Profile Card */
.operator-profile-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.operator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--emerald-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 12px var(--emerald-glow);
}

.operator-name {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-pure);
  margin-bottom: 2px;
}

.status-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pill-cyan {
  background: rgba(2, 132, 199, 0.15);
  color: var(--cyan-primary);
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.pill-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pill-ruby {
  background: rgba(239, 68, 68, 0.15);
  color: var(--ruby-primary);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sidebar-tiles-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.tile-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 8px;
  color: var(--text-high);
  font-size: 11.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.tile-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tile-wa {
  border-color: rgba(37, 211, 102, 0.35);
  color: #25D366;
}

/* Nav Stacks */
.nav-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-group-title {
  font-size: 10.5px;
  font-weight: 900;
  color: var(--text-dim);
  padding: 10px 8px 4px;
  text-transform: uppercase;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: right;
}

.nav-link i {
  width: 22px;
  color: var(--cyan-primary);
  font-size: 14px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-pure);
}

.nav-link.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-primary);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.nav-link.active i {
  color: var(--emerald-primary);
}

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

.sidebar-bottom-strip {
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
}

.btn-logout-sidebar {
  width: 100%;
  padding: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--ruby-primary);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ═══════════════ WORKSPACE & TOPBAR ═══════════════ */
.workspace-area {
  flex: 1;
  margin-right: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.floating-topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-section-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-menu-trigger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-pure);
  font-size: 20px;
  cursor: pointer;
}

.context-main-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-pure);
}

.context-sub-tag {
  font-size: 11.5px;
  color: var(--text-muted);
}

.topbar-section-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-switch-btn, .logout-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-high);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workspace-content {
  padding: 26px 28px;
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ═══════════════ NEXT-GEN WIZARD STEPPER ═══════════════ */
.wizard-hero-panel {
  padding: 30px 26px;
}

.wizard-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.stepper-meta-lead {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stepper-lead-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stepper-step-count {
  font-size: 12px;
  color: var(--text-muted);
}

.stepper-step-headline {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-pure);
}

.stepper-progress-pill {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-primary);
  font-size: 13px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.stepper-progress-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 0 6px;
}

.step-track-node {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.node-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-track-node.active .node-num {
  background: var(--emerald-gradient);
  border-color: var(--emerald-primary);
  color: #fff;
  box-shadow: var(--shadow-glow-emerald);
}

.node-txt {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.step-track-node.active .node-txt {
  color: var(--emerald-primary);
}

.node-line {
  flex: 1;
  height: 2px;
  background: var(--border-glass);
  margin: 0 8px;
  margin-bottom: 20px;
}

/* Choice Tiles Grid */
.choice-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass-bright);
  border-radius: 14px;
  padding: 14px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.choice-tile.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald-primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--emerald-glow);
}

.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Biometric Camera Box & Oval Guide */
.biometric-camera-box {
  width: 100%;
  max-width: 320px;
  height: 400px;
  margin: 0 auto;
  border-radius: 28px;
  background: #020617;
  border: 2px solid var(--border-glass-bright);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.camera-stream-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.biometric-oval-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 16px;
  z-index: 10;
}

.biometric-oval-frame {
  width: 200px;
  height: 270px;
  border-radius: 50% / 50%;
  border: 3px dashed var(--emerald-primary);
  box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.42), 0 0 20px rgba(16, 185, 129, 0.4);
  position: relative;
  animation: ovalPulse 2.5s infinite ease-in-out;
  margin-top: 10px;
}

@keyframes ovalPulse {
  0%, 100% { border-color: var(--emerald-primary); box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.42), 0 0 15px rgba(16, 185, 129, 0.3); }
  50% { border-color: var(--cyan-primary); box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.42), 0 0 25px rgba(6, 182, 212, 0.5); }
}

.biometric-scan-line {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--emerald-primary), var(--cyan-primary), transparent);
  box-shadow: 0 0 8px var(--cyan-primary);
  animation: scanMove 3s infinite linear;
}

@keyframes scanMove {
  0% { top: 15%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 85%; opacity: 0; }
}

.biometric-guide-label {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass-bright);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.camera-interactive-tap {
  text-align: center;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.camera-tap-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-primary);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.camera-tap-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-high);
}

.camera-file-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.camera-controls-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.wizard-nav-btns {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

/* ═══════════════ BENTO METRICS BAR ═══════════════ */
.bento-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.bento-metric-cell {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-luxury);
}

.metric-top-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.metric-big-num {
  font-size: 28px;
  font-weight: 900;
  font-family: var(--font-latin), var(--font-arabic);
}

.num-cyan { color: var(--cyan-primary); }
.num-emerald { color: var(--emerald-primary); }
.num-gold { color: var(--gold-primary); }
.num-ruby { color: var(--ruby-primary); }

/* ═══════════════ RADAR MAP & GRIDS ═══════════════ */
.map-lead-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radar-pulsing-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 12px var(--emerald-primary);
  animation: pulseRadar 1.6s infinite;
}

@keyframes pulseRadar {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.map-heading-text {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-pure);
}

.leaflet-map-frame {
  height: 380px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border-glass);
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.leaflet-map-frame.fullscreen-map {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  border-radius: 0 !important;
  border: none !important;
}

.promoters-map-summary-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.promoters-map-summary-strip::-webkit-scrollbar {
  display: none;
}

.map-promoter-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-pure);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.map-promoter-badge i {
  color: var(--emerald-primary);
}

.promoters-split-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}

.promoters-list-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
}

.categories-matrix-grid, .regions-matrix-grid, .vehicle-matrix-grid, .services-catalogue-grid, .cards-matrix-grid, .geo-matrix-grid, .vault-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.services-catalogue-grid, .vault-resource-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.cards-matrix-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.pills-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cards-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-section-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-pure);
}

.panel-section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.flex-between-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 18px; }
.mt-4 { margin-top: 18px; }
.p-3 { padding: 14px; }
.p-4 { padding: 20px; }

/* ═══════════════ LUXURY MODALS ═══════════════ */
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(3, 7, 18, 0.82) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  animation: modalFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#iconPickerModal {
  z-index: 100050 !important;
}

#adminEditServiceModal, 
#adminAddServiceModal, 
#adminAddClassificationModal {
  z-index: 100020 !important;
}

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

.luxury-modal-card {
  background: var(--bg-modal) !important;
  border: 1px solid var(--border-glass-bright) !important;
  border-radius: 24px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 1px 1px var(--border-glass);
  margin: auto;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-modal-card.modal-lg {
  max-width: 820px;
}

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

.modal-header-strip {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.modal-header-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-trigger {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-trigger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--ruby-primary);
  border-color: rgba(239, 68, 68, 0.3);
}

.modal-body-form {
  padding: 22px 24px;
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

/* Services Catalog Specific Enhancements */
.services-catalog-category-card {
  flex-shrink: 0 !important;
  display: block !important;
  width: 100%;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.services-catalog-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
}

.catalog-cat-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.catalog-cat-pill:hover {
  background: rgba(2, 132, 199, 0.12);
  color: var(--cyan-primary);
  border-color: rgba(2, 132, 199, 0.3);
}

.catalog-cat-pill.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.3), rgba(16, 185, 129, 0.3));
  color: #fff;
  border-color: var(--cyan-primary);
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.3);
}

.service-catalog-item-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-catalog-item-card:hover {
  border-color: var(--border-glass-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Icon Picker Modal Enhancements */
.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 4px;
}

.icon-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-pure);
  min-height: 72px;
  box-sizing: border-box;
}

.icon-picker-item i {
  font-size: 20px;
  color: var(--cyan-primary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.icon-picker-item span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-high);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.icon-picker-item:hover {
  background: rgba(2, 132, 199, 0.2);
  border-color: var(--cyan-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.icon-picker-item:hover i {
  color: #fff;
  transform: scale(1.15);
}

.icon-picker-item.selected {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35), rgba(16, 185, 129, 0.35));
  border-color: var(--emerald-primary);
  color: #fff;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}
  color: #fff;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}

.icon-picker-name {
  font-size: 9.5px;
  color: var(--text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.modal-actions-bar {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

/* Toast Hub */
.toast-hub {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.luxury-toast {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass-bright);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-luxury);
  animation: slideToast 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ═══════════════ ACTION HEADERS & EMPTY STATE CARDS ═══════════════ */
.panel-header-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.header-action-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-state-card {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px dashed var(--border-glass-bright);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.15);
}

.empty-state-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(2, 132, 199, 0.12);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.2);
}

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

.empty-state-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.6;
}

/* ═══════════════ RESPONSIVE BREAKPOINTS ═══════════════ */
@media (max-width: 960px) {
  .promoters-split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .luxury-sidebar {
    transform: translateX(100%);
  }

  .luxury-sidebar.open {
    transform: translateX(0);
  }

  .workspace-area {
    margin-right: 0;
  }

  .mobile-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .floating-topbar {
    padding: 0 12px;
  }

  .workspace-content {
    padding: 12px 10px;
  }

  .glass-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .panel-header-block {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
  }

  .header-action-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    width: 100%;
    gap: 8px;
  }

  .header-action-pills .btn-primary-glow,
  .header-action-pills .btn-secondary-glass {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    padding: 0 10px;
    font-size: 11.5px;
    height: 38px;
  }

  .flex-between-center {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .flex-between-center > div:last-child {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    width: 100%;
    gap: 8px;
  }

  .flex-between-center > div:last-child .btn-primary-glow,
  .flex-between-center > div:last-child .btn-secondary-glass {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    padding: 0 10px;
    font-size: 11.5px;
    height: 38px;
  }

  .hide-sm {
    display: none !important;
  }

  .grid-2-cols {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .services-catalogue-grid, 
  .geo-matrix-grid, 
  .cards-matrix-grid, 
  .vault-resource-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .leaflet-map-frame {
    height: 280px;
    border-radius: 14px;
  }

  .modal-backdrop {
    padding: 8px;
  }

  .luxury-modal-card {
    border-radius: 18px;
    max-height: 94vh;
  }

  .modal-header-strip {
    padding: 14px 16px;
  }

  .modal-body-form {
    padding: 16px;
    max-height: calc(94vh - 120px);
  }

  .modal-actions-bar {
    flex-direction: column-reverse;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
  }

  .modal-actions-bar button {
    width: 100%;
    height: 42px;
  }

  .icon-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 6px;
    max-height: 320px;
  }

  .icon-picker-item {
    padding: 8px 4px;
    font-size: 17px;
    border-radius: 10px;
  }

  .choice-tile {
    min-height: 75px;
    padding: 10px 6px;
  }

  .choice-tile i {
    font-size: 20px;
  }

  .choice-tile span {
    font-size: 12px;
  }
}

/* ═══════════════ PROMINENT MASTER HEADER & HORIZONTAL NAVBAR ═══════════════ */
.master-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-glass-bright);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.header-main-row {
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.header-brand-side {
  display: flex;
  align-items: center;
  gap: 14px;
}

.context-tag-wrap {
  display: flex;
  flex-direction: column;
}

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

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-high);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  height: 38px;
  box-sizing: border-box;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-bright);
  color: var(--text-pure);
}

/* ═══════════════ HORIZONTAL NAVBAR PILLS (DESKTOP) ═══════════════ */
.master-horizontal-navbar {
  padding: 10px 28px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.master-horizontal-navbar::-webkit-scrollbar {
  display: none;
}

.top-nav-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.top-nav-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-high);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.top-nav-pill i {
  color: var(--cyan-primary);
  font-size: 13px;
  transition: color 0.2s;
}

.top-nav-pill:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--emerald-primary);
  color: var(--text-pure);
}

.top-nav-pill.active {
  background: var(--emerald-gradient);
  color: #FFFFFF !important;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--emerald-glow);
}

.top-nav-pill.active i {
  color: #FFFFFF !important;
}

/* ═══════════════ MOBILE FIXED BOTTOM NAVIGATION BAR ═══════════════ */
.mobile-bottom-navbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--border-glass-bright);
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.6);
  padding-bottom: env(safe-area-inset-bottom, 10px);
}

[data-theme="light"] .mobile-bottom-navbar {
  background: rgba(255, 255, 255, 0.95);
  border-top-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}

.mobile-nav-items-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 60px;
  padding: 0 4px;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  padding: 6px 2px;
  transition: all 0.2s ease;
  position: relative;
}

.mobile-nav-item i {
  font-size: 16px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--emerald-primary);
}

.mobile-nav-item.active i {
  transform: translateY(-2px) scale(1.15);
  color: var(--emerald-primary);
}

.mobile-nav-item.active::after {
  content: '';
  position: absolute;
  top: 4px;
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: var(--emerald-primary);
  box-shadow: 0 0 8px var(--emerald-primary);
}

@media (max-width: 768px) {
  .master-horizontal-navbar {
    display: none !important;
  }

  .mobile-bottom-navbar {
    display: block !important;
  }

  .workspace-area {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 12px)) !important;
  }

  .header-main-row {
    padding: 10px 14px;
  }

  .header-brand-side {
    gap: 10px;
  }

  .master-brand-title {
    font-size: 14.5px !important;
  }

  .context-tag-wrap span {
    font-size: 10.5px !important;
  }

  .header-actions-side {
    gap: 6px;
  }

  .header-btn {
    padding: 6px 10px;
    height: 34px;
    font-size: 11.5px;
    border-radius: 10px;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-navbar {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MODERN SERVICE PRICING & HYBRID FORMULA SYSTEM (MATCHING UI DESIGN)
   ═══════════════════════════════════════════════════════════════════ */
.pricing-parent-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.pricing-context-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass-bright);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pricing-context-label {
  font-size: 11px;
  color: var(--text-muted);
}

.pricing-context-value {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--cyan-primary);
}

.commission-field-wrap {
  position: relative;
}

.commission-toggle-btn {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--cyan-primary);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}

.commission-toggle-btn:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: var(--cyan-primary);
  transform: translateY(-1px);
}

.pricing-model-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  margin-bottom: 8px;
}

.pricing-model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 580px) {
  .pricing-model-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-parent-badges {
    grid-template-columns: 1fr;
  }
}

.pricing-model-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
  min-height: 86px;
}

.pricing-model-card:hover {
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.06);
  transform: translateY(-2px);
}

.pricing-model-card.active {
  border-color: #06b6d4 !important;
  background: rgba(6, 182, 212, 0.14) !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25), inset 0 0 10px rgba(6, 182, 212, 0.08);
}

.pricing-model-card .pm-icon {
  font-size: 20px;
  color: #06b6d4;
  margin-bottom: 6px;
}

.pricing-model-card.active .pm-icon {
  color: #22d3ee;
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.6));
}

.pricing-model-card .pm-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 3px;
}

.pricing-model-card .pm-subtitle {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.25;
}

/* Multi-unit preset chips and dynamic pricing tier list */
.unit-presets-section {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass-bright);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.unit-presets-header {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.unit-presets-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.unit-preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.unit-preset-chip:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--text-pure);
  transform: translateY(-1px);
}

.unit-preset-chip.active {
  background: rgba(6, 182, 212, 0.2) !important;
  border-color: #06b6d4 !important;
  color: #22d3ee !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.pricing-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-tier-card-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr auto;
  gap: 10px;
  align-items: center;
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 8px 10px;
  animation: modalFadeIn 0.2s ease-out;
}

@media (max-width: 540px) {
  .pricing-tier-card-row {
    grid-template-columns: 1fr 1fr auto;
    gap: 6px;
    padding: 8px;
  }
}

.tier-delete-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.tier-delete-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  transform: scale(1.05);
}

.add-custom-tier-btn {
  background: rgba(6, 182, 212, 0.06);
  border: 1px dashed rgba(6, 182, 212, 0.35);
  color: var(--cyan-primary);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.add-custom-tier-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   STEP 3: CATEGORIES, SUB-CLASSIFICATIONS & SERVICES HIERARCHY TREE
   ═══════════════════════════════════════════════════════════════════ */
.wizard-cat-tree-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass-bright);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-cat-tree-card.active {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.wizard-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s;
  user-select: none;
}

.wizard-cat-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.wizard-cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wizard-cat-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #22d3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.wizard-cat-name {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--text-pure);
}

.wizard-cat-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.wizard-cat-checkbox {
  width: 22px;
  height: 22px;
  accent-color: #06b6d4;
  cursor: pointer;
}

.wizard-subclassifs-container {
  padding: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  margin-top: 4px;
  padding-top: 14px;
}

.wizard-subclassif-block {
  background: rgba(3, 7, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
}

.wizard-subclassif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wizard-subclassif-title {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wizard-services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wizard-service-item-row {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}

.wizard-service-item-row.selected {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.06);
}

.wizard-service-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wizard-service-name-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.wizard-service-details-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
}

@media (max-width: 520px) {
  .wizard-service-details-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.wizard-price-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wizard-price-input-wrap label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.wizard-price-input-wrap input {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 8px;
  color: #22d3ee;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 8px;
  width: 100%;
  text-align: center;
  outline: none;
}

.wizard-price-input-wrap input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

.wizard-commission-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

