/* ServiceRecord.In - Multi-Theme & Ultra-Responsive Engine */

:root,
[data-theme="cyber-amber"] {
  --bg-main: #0c0f17;
  --bg-card: rgba(18, 24, 38, 0.94);
  --bg-card-hover: rgba(28, 36, 56, 0.98);
  --bg-input: #141b2a;
  --border-color: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(255, 122, 0, 0.55);
  
  --primary: #ff7a00;
  --primary-hover: #ff9429;
  --primary-glow: rgba(255, 122, 0, 0.4);
  
  --accent-cyan: #00f5d4;
  --accent-blue: #00bbf9;
  --accent-purple: #9b5de5;
  --accent-pink: #f15bb5;
  
  --text-main: #f9fafb;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --wa-green: #25d366;
  --wa-hover: #1ebd5b;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* 2. Royal Sapphire Navy Theme */
[data-theme="sapphire-pro"] {
  --bg-main: #070d1e;
  --bg-card: rgba(13, 24, 48, 0.95);
  --bg-card-hover: rgba(20, 36, 72, 0.98);
  --bg-input: #0f1c38;
  --border-color: rgba(0, 180, 216, 0.2);
  --border-accent: rgba(0, 180, 216, 0.6);

  --primary: #00b4d8;
  --primary-hover: #48cae4;
  --primary-glow: rgba(0, 180, 216, 0.45);

  --accent-cyan: #90e0ef;
  --accent-blue: #0077b6;
  --accent-purple: #818cf8;
  --accent-pink: #f472b6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0284c7;

  --wa-green: #25d366;
  --wa-hover: #1ebd5b;
}

/* 3. Daylight Outdoor / Sun Shield (☀️ Maximum outdoor sunlight contrast for field technicians) */
[data-theme="clean-light"] {
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --border-color: #cbd5e1;
  --border-accent: #0284c7;

  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.3);

  --accent-cyan: #0891b2;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-pink: #db2777;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;

  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0284c7;

  --wa-green: #15803d;
  --wa-hover: #166534;
}

/* 4. Emerald Matrix (🌿 Forest Green Workshop Theme) */
[data-theme="emerald-matrix"] {
  --bg-main: #04120a;
  --bg-card: rgba(8, 30, 18, 0.95);
  --bg-card-hover: rgba(14, 46, 28, 0.98);
  --bg-input: #092617;
  --border-color: rgba(16, 185, 129, 0.22);
  --border-accent: rgba(16, 185, 129, 0.6);

  --primary: #10b981;
  --primary-hover: #34d399;
  --primary-glow: rgba(16, 185, 129, 0.45);

  --accent-cyan: #06b6d4;
  --accent-blue: #22c55e;
  --accent-purple: #84cc16;
  --accent-pink: #f59e0b;

  --text-main: #ecfdf5;
  --text-muted: #a7f3d0;
  --text-dim: #6ee7b7;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;

  --wa-green: #25d366;
  --wa-hover: #1ebd5b;
}

/* 5. Neon Purple / Cyber Indigo */
[data-theme="neon-purple"] {
  --bg-main: #0b0717;
  --bg-card: rgba(22, 14, 42, 0.95);
  --bg-card-hover: rgba(34, 22, 64, 0.98);
  --bg-input: #191032;
  --border-color: rgba(168, 85, 247, 0.25);
  --border-accent: rgba(192, 132, 252, 0.6);

  --primary: #c084fc;
  --primary-hover: #d8b4fe;
  --primary-glow: rgba(192, 132, 252, 0.45);

  --accent-cyan: #38bdf8;
  --accent-blue: #818cf8;
  --accent-purple: #f43f5e;
  --accent-pink: #fb7185;

  --text-main: #faf5ff;
  --text-muted: #d8b4fe;
  --text-dim: #a855f7;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #818cf8;

  --wa-green: #25d366;
  --wa-hover: #1ebd5b;
}

/* 6. Pitch Black OLED / High Contrast Shield (⬛ Pure Black for Dark Workshops & OLED battery saving) */
[data-theme="high-contrast-dark"] {
  --bg-main: #000000;
  --bg-card: #0c0c0c;
  --bg-card-hover: #1a1a1a;
  --bg-input: #141414;
  --border-color: #333333;
  --border-accent: #facc15;

  --primary: #facc15;
  --primary-hover: #fde047;
  --primary-glow: rgba(250, 204, 21, 0.45);

  --accent-cyan: #38bdf8;
  --accent-blue: #60a5fa;
  --accent-purple: #c084fc;
  --accent-pink: #f472b6;

  --text-main: #ffffff;
  --text-muted: #e4e4e7;
  --text-dim: #a1a1aa;

  --success: #4ade80;
  --warning: #facc15;
  --danger: #f87171;
  --info: #38bdf8;

  --wa-green: #4ade80;
  --wa-hover: #22c55e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
  user-select: none;
}

input, textarea, select {
  user-select: text !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Top App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

[data-theme="clean-light"] .app-header {
  background: rgba(255, 255, 255, 0.92);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo-badge {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #e11d48);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 0 15px var(--primary-glow);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--text-main), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Header Live Search */
.header-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}

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

.search-input-wrap input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.55rem 1.25rem 0.55rem 2.6rem;
  color: var(--text-main);
  font-size: 0.875rem;
  transition: all 0.25s ease;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1050;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-group-title {
  padding: 0.5rem 0.85rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary);
  background: rgba(255, 122, 0, 0.08);
  font-weight: 700;
}

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.15s;
}

.search-item:hover {
  background: rgba(255, 122, 0, 0.15);
}

/* Header User Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.user-avatar {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  color: #fff;
}

/* Multi-Theme Selector Dropdown Popover */
.theme-picker-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-btn-pill {
  border-radius: 50px;
  padding: 0.42rem 0.85rem;
  font-size: 0.825rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-main);
  user-select: none;
}

.theme-btn-pill:hover {
  border-color: var(--primary);
  background: rgba(255, 122, 0, 0.12);
  transform: translateY(-1px);
}

.theme-btn-icon {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
}

.theme-btn-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  padding: 0.55rem;
  min-width: 215px;
  z-index: 1050;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  animation: themeFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes themeFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.theme-dropdown-menu.show {
  display: flex;
}

[data-theme="clean-light"] .theme-btn-pill {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}
[data-theme="clean-light"] .theme-btn-pill:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

[data-theme="clean-light"] .theme-dropdown-menu {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.theme-menu-header {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 800;
  padding: 0.4rem 0.6rem 0.35rem;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.25rem;
}

.theme-opt-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.theme-opt-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color);
}

.theme-opt-btn.active {
  background: rgba(255, 122, 0, 0.14);
  border-color: var(--primary);
  font-weight: 700;
}

[data-theme="clean-light"] .theme-opt-btn:hover {
  background: #f8fafc;
}
[data-theme="clean-light"] .theme-opt-btn.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}

.theme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

[data-theme="clean-light"] .theme-swatch {
  border-color: rgba(0, 0, 0, 0.2);
}

.theme-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1045;
  display: none;
}
.theme-backdrop.active {
  display: block;
}

/* Searchable Combobox Component */
.searchable-combobox {
  position: relative;
  width: 100%;
}

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

.combobox-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 2.2rem 0.65rem 0.9rem;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.combobox-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.combobox-clear-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  display: none;
  padding: 0.2rem;
  line-height: 1;
}

.combobox-clear-btn:hover {
  color: var(--danger);
}

.combobox-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1050;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  display: none;
}

.combobox-dropdown.show {
  display: block;
}

.combobox-item {
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.combobox-item:hover, .combobox-item.focused {
  background: rgba(255, 122, 0, 0.15);
}

.combobox-item strong {
  color: var(--text-main);
  display: block;
  font-size: 0.875rem;
}

.combobox-item .combobox-meta {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* App Layout */
.app-container {
  display: flex;
  flex: 1;
}

/* Sidebar Navigation */
.app-sidebar {
  width: 260px;
  background: #0d1322;
  border-right: 1px solid var(--border-color);
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="clean-light"] .app-sidebar {
  background: #ffffff;
}

.nav-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 1px;
  padding: 0.75rem 0.75rem 0.25rem;
  font-weight: 700;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

[data-theme="clean-light"] .nav-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.2), rgba(255, 122, 0, 0.05));
  color: var(--primary);
  font-weight: 600;
  border-left: 3px solid var(--primary);
}

.nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 700;
}

.badge-urgent {
  background: #dc2626;
  color: white;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.35);
}

.badge-info {
  background: var(--info);
  color: white;
}

/* Main Content Area */
.app-main {
  flex: 1;
  padding: 1.5rem 1.75rem 5rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Hero / Page Header Banner */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Grid & Cards */
.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border-color: var(--border-accent);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 122, 0, 0.15);
  color: var(--primary);
}

.stat-label {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0.25rem 0;
}

.stat-meta {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Content Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

[data-theme="clean-light"] .card-header {
  border-bottom: 1px solid #e2e8f0;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================== */
/* SIMPLE-MODE QUICK ACTION HERO TILES (Ultra-Friendly for Technicians) */
/* ============================================================== */
.quick-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, filter 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-action-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  filter: brightness(1.08);
}

.hero-action-card:active {
  opacity: 0.95;
}

.hero-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-card-content {
  flex: 1;
}

.hero-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.hero-card-subtitle {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 500;
  margin-top: 0.2rem;
}

.hero-card-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(255, 255, 255, 0.25);
  padding: 0.25rem 0.55rem;
  border-radius: 20px;
}

/* 4 Vibrant Action Colors */
.hero-card-green {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}
.hero-card-blue {
  background: linear-gradient(135deg, #0284c7 0%, #00bbf9 100%);
}
.hero-card-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}
.hero-card-amber {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
}

/* Click-to-Action Buttons & Contact Cluster */
.contact-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-contact {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.05rem;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #fff !important;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.btn-contact:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
  filter: brightness(1.15);
}

.btn-contact:active {
  opacity: 0.9;
}

.btn-wa { background: #25d366; }
.btn-call { background: #0284c7; }
.btn-sms { background: #7c3aed; }
.btn-mail { background: #d97706; }
.btn-map { background: #ea580c; }

/* Large Pill Contact Action Buttons (Ultra Clear for Field Staff) */
.btn-pill-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff !important;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.btn-pill-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.btn-pill-call { background: linear-gradient(135deg, #0284c7, #0369a1); }
.btn-pill-wa   { background: linear-gradient(135deg, #25d366, #16a34a); }
.btn-pill-map  { background: linear-gradient(135deg, #ea580c, #c2410c); }

/* Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #e11d48);
  color: #fff !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #f43f5e);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

[data-theme="clean-light"] .btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

[data-theme="clean-light"] .btn-secondary:hover {
  background: #e2e8f0;
}

.btn-success { background: var(--success); color: #fff !important; }
.btn-danger  { background: var(--danger); color: #fff !important; }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; min-height: 36px; }

/* Large Form Controls for Mobile Fingers */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  min-height: 46px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

[data-theme="clean-light"] .form-control {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

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

.form-control-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  min-height: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}

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

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  -webkit-overflow-scrolling: touch;
}

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

.table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

[data-theme="clean-light"] .table th {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

[data-theme="clean-light"] .table td {
  border-bottom: 1px solid #e2e8f0;
}

.table tr:hover td {
  background: rgba(255, 122, 0, 0.05);
}

[data-theme="clean-light"] .table tr:hover td {
  background: #f8fafc;
}

/* Status Badges with High Visual Contrast */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-success { background: rgba(16, 185, 129, 0.22); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-warning { background: rgba(245, 158, 11, 0.22); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-danger  { background: rgba(239, 68, 68, 0.22); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-info    { background: rgba(59, 130, 246, 0.22); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-purple  { background: rgba(155, 93, 229, 0.22); color: #c084fc; border: 1px solid rgba(155, 93, 229, 0.4); }

[data-theme="clean-light"] .badge-success { background: #dcfce7; color: #15803d; border-color: #86efac; }
[data-theme="clean-light"] .badge-warning { background: #fef3c7; color: #b45309; border-color: #fde68a; }
[data-theme="clean-light"] .badge-danger  { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
[data-theme="clean-light"] .badge-info    { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; }
[data-theme="clean-light"] .badge-purple  { background: #f3e8ff; color: #6b21a8; border-color: #d8b4fe; }

/* Progress Bar for Targets */
.progress-bar-wrap {
  width: 100%;
  height: 12px;
  background: #1f2937;
  border-radius: 12px;
  overflow: hidden;
  margin: 0.65rem 0;
  position: relative;
}

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

.progress-bar-fill {
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Bottom Navigation Dock (High Touch Target Native Feel) */
.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(13, 19, 34, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 0.4rem 0.75rem;
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="clean-light"] .mobile-bottom-dock {
  background: rgba(255, 255, 255, 0.96);
  border-color: #cbd5e1;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.725rem;
  font-weight: 700;
  gap: 0.15rem;
  padding: 0.35rem 0.65rem;
  min-width: 58px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.dock-item span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}

.dock-item.active {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="clean-light"] .dock-item.active {
  background: #f1f5f9;
}

.dock-item-fab {
  background: linear-gradient(135deg, var(--primary), #e11d48);
  color: #fff !important;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -24px;
  box-shadow: 0 6px 20px var(--primary-glow);
  font-size: 1.6rem;
  border: 2px solid var(--bg-main);
  transition: transform 0.2s;
}

.dock-item-fab:active {
  transform: scale(0.92);
}

/* Security Notice Toast */
#sec-toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #ef4444;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  animation: slideInRight 0.3s;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

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

/* ============================================================== */
/* ULTRA RESPONSIVE & MOBILE ENGINE (Auto-Adjust Phone & Tablet)   */
/* ============================================================== */

/* Universal Layout & Overflow Safety */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

.app-container {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  display: flex;
  flex: 1;
}

/* Flash Banner Responsive */
.app-flash-banner {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: sticky;
  top: 60px;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  color: #fff;
  transition: all 0.3s;
}

.flash-success { background: var(--success); }
.flash-danger  { background: var(--danger); }
.flash-info    { background: var(--info); }
.flash-warning { background: var(--warning); }

/* Backdrop Blur Overlay for both Public & Logged-in Mobile Drawers */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer Header & Clean Close Button */
.drawer-header, .sidebar-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  border-color: var(--danger);
  transform: rotate(90deg);
}

.drawer-content {
  padding: 1rem 0.85rem 3rem;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 800;
  padding: 0.65rem 0.5rem 0.25rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.drawer-link:hover, .drawer-link:active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary);
  transform: translateX(3px);
}



/* Admin Tabs Row Horizontal Momentum Scrolling */
.admin-nav-tabs, .tabs-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .admin-nav-tabs, .tabs-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.6rem;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }
  .admin-nav-tabs .btn, .tabs-row .btn {
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

/* ------------------------------------------------------------- */
/* ------------------------------------------------------------- */
/* BREAKPOINT 1: TABLETS & MOBILE (<= 1024px)                    */
/* ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .public-nav-links {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: inline-flex !important;
  }
  .sidebar-mobile-header {
    display: flex;
  }
  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 285px;
    max-width: 86vw;
    height: 100vh;
    background: #0d1322;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 40px rgba(0,0,0,0.8);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
  }
  [data-theme="clean-light"] .app-sidebar {
    background: #ffffff;
    border-color: #cbd5e1;
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  .mobile-bottom-dock {
    display: flex;
  }
  .app-main {
    padding: 1.25rem 1rem 6.5rem;
    max-width: 100vw;
    width: 100%;
  }
}

@media (min-width: 1025px) {
  .sidebar-mobile-header {
    display: none !important;
  }
  .mobile-toggle-btn {
    display: none !important;
  }
  .public-nav-links {
    display: flex !important;
  }
  .drawer-backdrop {
    display: none !important;
  }
}

/* ------------------------------------------------------------- */
/* BREAKPOINT 2: MOBILE PHONES & PHABLETS (<= 768px)             */
/* ------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Header Adaptation: Wrap search seamlessly onto second line */
  .app-header {
    flex-wrap: wrap;
    padding: 0.65rem 0.85rem;
    gap: 0.5rem 0.65rem;
  }
  .header-search {
    order: 10;
    width: 100%;
    max-width: 100%;
    margin-top: 0.25rem;
  }
  .search-input-wrap input {
    height: 42px;
    font-size: 0.875rem;
  }

  /* Responsive Theme Toggle on Mobile */
  .theme-btn-pill {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
    flex-shrink: 0;
  }
  .theme-btn-label {
    display: none !important;
  }
  .theme-dropdown-menu {
    position: fixed;
    top: 58px;
    right: 12px;
    left: auto;
    width: 230px;
    max-width: calc(100vw - 24px);
    z-index: 1050;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
  }

  /* Signup CTA compact text on mobile */
  .signup-btn-short {
    display: inline;
  }
  .signup-btn-full {
    display: none;
  }

  .user-pill {
    padding: 0.25rem;
    background: transparent;
    border: none;
    text-decoration: none;
  }
  .user-pill-info {
    display: none !important;
  }
  .logout-text {
    display: none;
  }
  .header-logout-btn {
    padding: 0.45rem 0.6rem !important;
  }

  /* Prevent iOS Safari and Android Chrome input auto-zooming */
  input, select, textarea {
    font-size: 16px !important;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .page-title {
    font-size: 1.35rem;
  }
  .quick-hero-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .hero-action-card {
    padding: 1.1rem 1.25rem;
  }
  .hero-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  .grid-stats {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .card {
    padding: 1.1rem 0.95rem;
    border-radius: var(--radius-sm);
  }
  
  /* Responsive Tables */
  .table th, .table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }
  .table-responsive {
    box-shadow: inset -8px 0 8px -8px rgba(0,0,0,0.5);
  }

  .contact-actions {
    gap: 0.4rem;
  }
  .btn-contact {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }
  .btn-pill-contact {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
  .btn {
    min-height: 44px;
  }
}

/* ------------------------------------------------------------- */
/* BREAKPOINT 3: AUTO-ADJUST ALL GRIDS (<= 640px)                */
/* ------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Convert all inline minmax grids to 1-column auto-adjust */
  [style*="grid-template-columns"],
  .grid-stats,
  .quick-hero-grid,
  .form-row,
  .feature-spotlight {
    grid-template-columns: 1fr !important;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .card-header > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  /* Remove duplicate sign-in from header (already primary in mobile drawer) */
  .nav-signin-btn {
    display: none !important;
  }
  .brand-parent-tag {
    display: none !important;
  }
  .app-header {
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }
  .header-actions {
    gap: 0.45rem;
  }
  .brand-text h1 {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  /* Modals on small screens: bottom sheet behavior or 94vw centered */
  [id*="Modal"][style*="fixed"],
  [id*="modal"][style*="fixed"] {
    align-items: flex-end !important;
    padding: 0.5rem 0.5rem 0 !important;
  }
  [id*="Modal"] > .card,
  [id*="modal"] > .card {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 88vh !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    overflow-y: auto !important;
    padding: 1.25rem 1rem 2rem !important;
  }
}

/* Tablet grid smoother scaling */
@media (max-width: 900px) and (min-width: 641px) {
  [style*="minmax(360px"],
  [style*="minmax(340px"],
  [style*="minmax(320px"] {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  }
}

/* ------------------------------------------------------------- */
/* BREAKPOINT 4: EXTRA SMALL SMARTPHONES (<= 480px)              */
/* ------------------------------------------------------------- */
@media (max-width: 480px) {
  .brand-wrapper {
    gap: 0.4rem;
  }
  .brand-logo-badge {
    width: 32px;
    height: 32px;
  }
  .brand-logo-badge img {
    width: 30px !important;
    height: 30px !important;
  }
  .brand-text h1 {
    font-size: 0.96rem;
  }
  .app-header {
    padding: 0.5rem 0.65rem;
  }
  .header-actions {
    gap: 0.35rem;
  }
  .nav-signup-btn {
    padding: 0.38rem 0.72rem !important;
    font-size: 0.78rem !important;
  }
  /* Remove duplicate header logout on narrow mobile (avatar links to profile, logout is in drawer and dock) */
  .header-logout-btn {
    display: none !important;
  }
  .mobile-bottom-dock {
    height: 60px;
    padding: 0.35rem 0.5rem max(0.35rem, env(safe-area-inset-bottom, 8px));
  }
  .dock-item {
    min-width: 48px;
    padding: 0.25rem 0.35rem;
  }
  .dock-item span:first-child {
    font-size: 1.15rem;
  }
  .dock-item .dock-label {
    font-size: 0.66rem;
  }
  .dock-item-fab {
    width: 44px;
    height: 44px;
    margin-top: -16px;
    font-size: 1.3rem;
  }
  .auth-card {
    padding: 1.5rem 1.15rem !important;
  }
  .hero-main-title {
    font-size: 1.85rem !important;
  }
  .ambient-hero-wrap {
    padding: 2.75rem 1rem 2.5rem !important;
    border-radius: var(--radius-lg) !important;
  }
}

/* =========================================================
   WORLD-CLASS MODERN SAAS STYLING SUITE
   Ultra-attractive public navbar, glassmorphism, animations
   ========================================================= */

/* Public Desktop Nav Bar */
.public-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.public-nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.public-nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.public-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.public-nav-item:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.signup-btn-full {
  display: inline;
}

.signup-btn-short {
  display: none;
}

.nav-signin-btn {
  border-radius: 50px !important;
  padding: 0.45rem 1rem !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap;
}

.nav-signin-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--text-muted) !important;
}

[data-theme="clean-light"] .nav-signin-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
[data-theme="clean-light"] .nav-signin-btn:hover {
  background: #f1f5f9 !important;
  border-color: #0284c7 !important;
}

.nav-signup-btn {
  border-radius: 50px !important;
  padding: 0.45rem 1.15rem !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  background: linear-gradient(135deg, var(--primary), #e11d48) !important;
  box-shadow: 0 0 16px var(--primary-glow) !important;
  border: none !important;
  color: #fff !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap;
}

.nav-signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 22px var(--primary-glow) !important;
}

/* Ambient Radial Glow Containers */
/* Executive Enterprise Hero Container */
.ambient-hero-wrap {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 4.5rem;
  text-align: center;
  border-radius: var(--radius-xl);
  margin-bottom: 3.5rem;
  background-color: #0b1120;
  background-image: 
    radial-gradient(ellipse at 50% -10%, rgba(255, 122, 0, 0.14) 0%, transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.ambient-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 122, 0, 0.35);
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff9429;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.hero-main-title {
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 1.25rem;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
}

.gradient-title-text {
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #94a3b8;
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}

/* Primary Action Button */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  background: #ff7a00;
  color: #fff !important;
  font-weight: 800;
  border: 1px solid #ff9429;
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.35);
  transition: all 0.25s ease;
}

.btn-shimmer:hover {
  background: #ea6c00;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 122, 0, 0.45);
}

/* Precision Enterprise Window Showcase */
.hero-showcase-frame {
  position: relative;
  max-width: 1040px;
  margin: 2.75rem auto 0;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.showcase-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #090e1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.window-url-pill {
  font-family: monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  background: #141c2e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.25rem 1rem;
  border-radius: 20px;
}

.showcase-status-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 700;
}

.hero-showcase-inner {
  position: relative;
  background: #080c16;
}

.hero-showcase-inner img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* Real-World Ground Operational HUD Strip */
.showcase-hud-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(8, 12, 22, 0.96) 65%, rgba(8, 12, 22, 0.4) 95%, transparent 100%);
  padding: 1.5rem 1.75rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .showcase-hud-strip {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 1rem;
  }
}

.hud-tech-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hud-tech-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Realistic Smartphone Mockup for Field Technician */
.phone-mockup-frame {
  max-width: 340px;
  margin: 0 auto;
  border-radius: 40px;
  background: #0f172a;
  border: 8px solid #1e293b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  text-align: left;
}

.phone-top-bar {
  background: #090e1a;
  padding: 0.6rem 1.25rem 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-screen {
  background: #0b1120;
  padding: 1rem;
}

/* Password Toggle Eye Button */
.pwd-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pwd-input-wrap input {
  padding-right: 2.75rem !important;
}

.pwd-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.15rem;
  line-height: 1;
  transition: color 0.2s;
  z-index: 5;
}

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

/* Modern Roadmap / How It Works Milestone */
.roadmap-step-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.roadmap-step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #e11d48);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px var(--primary-glow);
}

/* FAQ Accordion Styling */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border-accent);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.25s ease;
  font-size: 0.85rem;
  color: var(--primary);
}

/* Super Clean Auth Card Split */
.auth-page-container {
  max-width: 480px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 122, 0, 0.15);
  padding: 2.25rem 2rem;
}

/* Feature Spotlight Grid 2-Column with Visual */
.feature-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 4.5rem auto;
  max-width: 1200px;
}

@media (max-width: 900px) {
  .feature-spotlight {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

