/* ===================================================================
   A9 VENTURES - WORLD-CLASS DESIGN SYSTEM & REFINED THEME ENGINE
   Perplexity AI & xAI (Grok) Typography: Geist + Geist Mono + Instrument Sans + Instrument Serif + Inter
   Refined Stripe / Linear / Apple Level Light Mode + Obsidian Neon Dark Mode
   Hardware-Accelerated 60fps, Zero-Lag, 14-inch Laptop & Mobile Perfected
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600;700;800&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* --- LIGHT THEME TOKENS (Ultra-Clean, Crisp, Apple/Linear Level Purity) --- */
:root {
  --primary: #e11d48;         /* Vibrant Rose / Crimson */
  --primary-hover: #be123c;
  --primary-light: #fff1f2;
  --primary-glow: rgba(225, 29, 72, 0.18);
  
  --primary-gradient: linear-gradient(135deg, #e11d48 0%, #f43f5e 50%, #fb7185 100%);
  --primary-gradient-dark: linear-gradient(135deg, #9f1239 0%, #e11d48 100%);
  --dark-gradient: linear-gradient(135deg, #090e17 0%, #1e293b 100%);
  --card-gradient: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  --card-glass: rgba(255, 255, 255, 0.96);
  
  --secondary: #0f172a;
  --secondary-hover: #1e293b;
  --secondary-light: #f8fafc;
  
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  
  --success: #059669;
  --success-light: #ecfdf5;
  --danger: #e11d48;
  --danger-light: #fff1f2;
  --warning: #d97706;
  --warning-light: #fff7ed;
  --info: #0284c7;
  --info-light: #f0f9ff;
  
  /* Crisp Light Mode Surfaces & Text - High Contrast */
  --bg-main: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: #090e17;
  --bg-sidebar-hover: #162032;
  --bg-header: rgba(255, 255, 255, 0.96);
  --bg-modal: #ffffff;
  --bg-input: #f8fafc;
  
  --text-dark: #090e17;       /* Deep rich pitch-slate black */
  --text-main: #1e293b;       /* Slate 800 - crisp, easy reading */
  --text-muted: #475569;      /* Slate 600 - high-contrast subtitle */
  --text-light: #64748b;
  --text-white: #ffffff;
  
  --border-color: #cbd5e1;    /* Sharp, distinct borders */
  --border-light: #e2e8f0;
  --border-dark: #1e293b;
  
  --table-th-bg: #f1f5f9;
  --table-th-color: #090e17;
  --table-hover-bg: #f8fafc;
  --kanban-col-bg: #f1f5f9;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.1), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.14), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 36px -6px rgba(15, 23, 42, 0.18), 0 8px 18px -3px rgba(15, 23, 42, 0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Perplexity & xAI Precision Font Stack */
  --font-main: 'Geist', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Geist', 'Instrument Sans', 'Inter', sans-serif;
  --font-display: 'Geist', 'Space Grotesk', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-code: 'Geist Mono', monospace;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- DARK THEME TOKENS (Obsidian Neon Tech Aesthetic) --- */
[data-theme="dark"] {
  --bg-main: #06080d;
  --bg-subtle: #0d121c;
  --bg-card: #0a0e17;
  --bg-sidebar: #04060a;
  --bg-sidebar-hover: #131a29;
  --bg-header: rgba(10, 14, 23, 0.94);
  --bg-modal: #0a0e17;
  --bg-input: #111724;
  
  --card-gradient: linear-gradient(180deg, #0a0e17 0%, #0d121c 100%);
  --card-glass: rgba(10, 14, 23, 0.94);
  
  --text-dark: #f8fafc;
  --text-main: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --border-color: rgba(225, 29, 72, 0.26);
  --border-light: rgba(255, 255, 255, 0.09);
  --border-dark: rgba(255, 255, 255, 0.18);
  
  --table-th-bg: #111724;
  --table-th-color: #fda4af;
  --table-hover-bg: rgba(225, 29, 72, 0.09);
  --kanban-col-bg: #070a12;
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 15px rgba(225, 29, 72, 0.12);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(225, 29, 72, 0.2);
  --shadow-xl: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(225, 29, 72, 0.28);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.brand-logo,
.sidebar-brand-name,
.preloader-title {
  font-family: var(--font-heading) !important;
  font-weight: 750 !important;
  letter-spacing: -0.025em;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  display: inline-block;
  vertical-align: middle;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ===================================================================
   BASELINE MULTI-CAPSULE HEADER RESILIENT FALLBACK
=================================================================== */
.landing-header-wrapper {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  padding: 0 4%;
  pointer-events: none;
}

.landing-nav {
  pointer-events: auto;
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  width: 100%;
}

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

.nav-capsule-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-capsule-links li {
  list-style: none;
  display: inline-block;
}

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

/* ===================================================================
   TOP ROLE BAR WITH CURRENCY & VOICE COPILOT
=================================================================== */
.role-quick-bar {
  display: none !important;
}

.role-quick-bar .brand-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.role-quick-bar .role-chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.role-chip {
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.role-chip.admin {
  background: rgba(225, 29, 72, 0.25);
  color: #fda4af;
  border-color: rgba(225, 29, 72, 0.4);
}

.role-chip.employee {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}

.role-chip.client {
  background: rgba(2, 132, 199, 0.25);
  color: #7dd3fc;
  border-color: rgba(2, 132, 199, 0.4);
}

.role-chip.home {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.role-chip:hover, .role-chip.active {
  transform: translateY(-1px);
  filter: brightness(1.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border-color: #fff;
}

/* Global Currency Selector Dropdown */
.currency-selector-select {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.currency-selector-select option {
  background: #0f172a;
  color: #fff;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="light"] .top-header .theme-toggle-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

.theme-toggle-btn:hover {
  background: rgba(225, 29, 72, 0.35);
  border-color: #fda4af;
  transform: translateY(-1px);
}

/* ===================================================================
   LIQUID MORPHING & GLASSMORPHISM UTILITIES
=================================================================== */
@keyframes liquidMorph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg) scale(1);
  }
  34% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: rotate(120deg) scale(1.05);
  }
  67% {
    border-radius: 70% 30% 40% 60% / 40% 70% 60% 30%;
    transform: rotate(240deg) scale(0.95);
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(360deg) scale(1);
  }
}

.liquid-blob {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(45px);
  animation: liquidMorph 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  will-change: border-radius, transform;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(225, 29, 72, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(225, 29, 72, 0.15);
}

.liquid-sheen {
  position: relative;
  overflow: hidden;
}

.liquid-sheen::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(25deg);
  transition: none;
  pointer-events: none;
}

.liquid-sheen:hover::after {
  left: 140%;
  transition: left 0.75s ease-in-out;
}

/* ===================================================================
   VOICE COPILOT FLOATING BUTTON (Speech AI Engine)
=================================================================== */
.voice-copilot-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4);
  z-index: 999;
  transition: transform var(--transition-fast);
}

.voice-copilot-btn:hover {
  transform: scale(1.1);
}

.voice-copilot-btn.listening {
  animation: pulseVoice 1s infinite alternate;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 25px #10b981;
}

@keyframes pulseVoice {
  0% { transform: scale(1); box-shadow: 0 0 15px #10b981; }
  100% { transform: scale(1.15); box-shadow: 0 0 35px #10b981; }
}

.voice-tooltip {
  position: fixed;
  bottom: 86px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 1000;
  animation: slideInToast 0.25s ease;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: var(--primary-gradient-dark);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-dark);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--dark-gradient);
  color: #ffffff;
  border-color: var(--border-dark);
}
.btn-dark:hover {
  background: #1e293b;
  color: #fda4af;
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
}
.btn-success:hover {
  background: #059669;
}

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

.btn-sm {
  padding: 6px 14px;
  font-size: 0.775rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Badge System & Code Font Typography */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.2px;
  text-transform: capitalize;
}

.tech-badge,
.tech-pill,
.task-tag,
.stat-counter,
.kpi-metric-num,
.phase-number,
.user-role-tag,
.live-clock-badge,
.quick-cmd-btn kbd,
kbd,
code {
  font-family: var(--font-mono) !important;
}

.badge-primary { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.badge-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-warning { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.badge-danger  { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.badge-info    { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.badge-accent  { background: #fefce8; color: #854d0e; border: 1px solid #fde68a; }
.badge-dark    { background: #0f172a; color: #fda4af; border: 1px solid #334155; }

[data-theme="dark"] .badge-primary { background: rgba(225, 29, 72, 0.2); color: #fda4af; border-color: rgba(225, 29, 72, 0.4); }
[data-theme="dark"] .badge-success { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.4); }
[data-theme="dark"] .badge-warning { background: rgba(249, 115, 22, 0.2); color: #fdba74; border-color: rgba(249, 115, 22, 0.4); }
[data-theme="dark"] .badge-info    { background: rgba(2, 132, 199, 0.2); color: #7dd3fc; border-color: rgba(2, 132, 199, 0.4); }

/* Custom Form Elements */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-input);
  color: var(--text-dark);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-select {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-input);
  color: var(--text-dark);
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 16px;
}

[data-theme="light"] .modal-overlay {
  background: rgba(15, 23, 42, 0.45);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-modal);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(10px);
  transition: all var(--transition-normal);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 20px 26px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-body {
  padding: 26px;
  overflow-y: auto;
  background: var(--bg-modal);
}

.modal-footer {
  padding: 16px 26px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-subtle);
}

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

.toast {
  pointer-events: auto;
  min-width: 290px;
  max-width: 420px;
  background: var(--bg-card);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--primary);
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info    { border-left-color: var(--info); }

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

/* ===================================================================
   SPOTLIGHT / COMMAND PALETTE (Ctrl+K Quick Engine)
=================================================================== */
.cmd-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cmd-palette-card {
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(225, 29, 72, 0.15);
  overflow: hidden;
  transform: translateY(-15px) scale(0.98);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette-overlay.active .cmd-palette-card {
  transform: translateY(0) scale(1);
}

.cmd-search-input-wrap {
  display: flex;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-subtle);
  gap: 12px;
}

.cmd-search-input-wrap i {
  color: var(--primary);
  font-size: 1.2rem;
}

.cmd-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--text-dark);
  outline: none;
  font-weight: 600;
}

.cmd-results-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
  list-style: none;
}

.cmd-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.cmd-result-item:hover, .cmd-result-item.selected {
  background: var(--bg-subtle);
  color: var(--primary);
  transform: translateX(4px);
}

.cmd-result-item i {
  font-size: 1rem;
  width: 24px;
  color: var(--primary);
}

.cmd-shortcut-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* ===================================================================
   BRANDED PRELOADER SYSTEM
=================================================================== */
.a9-preloader {
  position: fixed;
  inset: 0;
  background: #07090e;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
}

[data-theme="light"] .a9-preloader {
  background: #ffffff;
}

.a9-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-cube-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.preloader-cube {
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  box-shadow: 0 0 35px rgba(225, 29, 72, 0.7);
  animation: pulseLogo 2s infinite alternate, floatLogo 3s ease-in-out infinite alternate;
}

.preloader-spinner-ring {
  position: absolute;
  inset: -10px;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-bottom-color: #fda4af;
  border-radius: 50%;
  animation: spinPreloader 1.2s linear infinite;
}

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

@keyframes pulseLogo {
  0% { transform: scale(0.95); box-shadow: 0 0 20px rgba(225, 29, 72, 0.4); }
  100% { transform: scale(1.05); box-shadow: 0 0 45px rgba(225, 29, 72, 0.85); }
}

@keyframes floatLogo {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.preloader-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

[data-theme="light"] .preloader-title {
  color: #0f172a;
}

.preloader-subtitle {
  font-size: 0.8rem;
  color: #fda4af;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 20px;
}

[data-theme="light"] .preloader-subtitle {
  color: #be123c;
}

.preloader-bar-wrap {
  width: 220px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .preloader-bar-wrap {
  background: #e2e8f0;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.8);
}

.preloader-counter {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  margin-top: 10px;
  font-family: monospace;
}

/* Utility Classes */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

@media (max-width: 768px) {
  .role-quick-bar {
    display: none !important;
  }
}
