/* 
  FIXALI - Doorstep Gadget Repair Web App Styling
  Premium Light Theme Overhaul (Slate & White), Electric Royal Blue Accents,
  Grounded Dark Footer, and Floating WhatsApp Button.
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Electric Royal Blue Accent (From logo) */
  --primary: #0056D2;          
  --primary-hover: #0046b0;
  --primary-glow: rgba(0, 86, 210, 0.1);
  --primary-gradient: linear-gradient(135deg, #0056D2 0%, #007CFF 100%);
  --secondary-gradient: linear-gradient(135deg, #00C2FF 0%, #0056D2 100%);
  
  /* Light Theme Overhaul */
  --bg-primary: #f8fafc;        /* Slate-50 Background */
  --bg-secondary: #ffffff;      /* Pure White Card Base */
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-card: #ffffff;
  
  --border-glass: #e2e8f0;      /* Slate-200 Dividers */
  --border-glass-hover: #cbd5e1; /* Slate-300 Hover Borders */
  
  --text-primary: #0F172A;      /* Slate-900 High Contrast Text */
  --text-secondary: #475569;    /* Slate-600 Muted Text */
  --text-muted: #94a3b8;        /* Slate-400 Placeholder/Sub-details */
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.08);
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  
  --shadow-sm: 0 2px 8px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
  --shadow-neon: 0 10px 30px rgba(0, 86, 210, 0.15);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* Base Styles & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 86, 210, 0.2) transparent;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Decorative Background Glows (Lightened) */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(0, 86, 210, 0.04) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.03) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 86, 210, 0.15);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 86, 210, 0.3);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  filter: brightness(0.8);
}

/* Header Section (Lightened) */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header logo can blend seamlessly */
.logo-badge {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-left: 1rem;
  border-left: 1px solid #e2e8f0;
  padding-left: 1rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav-item {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.04);
}

.nav-item.active {
  color: white;
  background: var(--primary-gradient);
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.25);
}

/* Layout Containers */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  min-height: calc(100vh - 180px);
}

.view-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: -2rem auto 3rem;
}

/* Common UI Elements (Lightened) */
.glass-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-lg), var(--shadow-sm);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 15px 35px rgba(0, 86, 210, 0.03);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  outline: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 86, 210, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(0, 86, 210, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-accent {
  background: var(--secondary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 86, 210, 0.15);
}
.btn-accent:hover {
  box-shadow: 0 4px 25px rgba(0, 86, 210, 0.35);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success-glow);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}
.btn-success:hover {
  background: rgba(16, 185, 129, 0.15);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* Badges (Lightened) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.badge-green { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.badge-orange { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.badge-red { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ------------------- VIEW: CUSTOMER HOME ------------------- */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0 5rem;
}

.doorstep-badge-animation {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 86, 210, 0.08);
  border: 1px solid rgba(0, 86, 210, 0.2);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 750;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 86, 210, 0.05);
}

.van-wrapper {
  display: flex;
  align-items: center;
  animation: driveIn 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes driveIn {
  0% { transform: translateX(-25px); opacity: 0; }
  15% { transform: translateX(0); opacity: 1; }
  85% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(25px); opacity: 0; }
}

.hero-content h1 {
  font-size: 3.75rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 850;
  color: var(--text-primary);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

.hero-image-pane {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-glow-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08), var(--shadow-neon);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-glow-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: var(--primary-gradient);
}

.floating-badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: #ffffff;
  border: 1px solid var(--primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 86, 210, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-badge h4 { margin: 0; font-size: 1rem; color: var(--text-primary); }
.floating-badge span { font-size: 0.8rem; color: #059669; font-weight: 600; display: flex; align-items: center; gap: 0.25rem; }

/* Grid of Gadgets */
.gadget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.gadget-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gadget-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 86, 210, 0.4);
  background: #ffffff;
  box-shadow: 0 20px 30px rgba(0, 86, 210, 0.05), var(--shadow-md);
}

.gadget-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 86, 210, 0.06);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  transition: var(--transition);
}

.gadget-card:hover .gadget-icon-box {
  background: var(--primary-gradient);
  color: white;
  transform: rotateY(180deg);
}

.gadget-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.gadget-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Core Steps Section */
.steps-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.step-card {
  position: relative;
  padding: 2.5rem;
}

.step-number {
  position: absolute;
  top: 0.5rem;
  right: 1.5rem;
  font-size: 4.5rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.02);
  line-height: 1;
  user-select: none;
}

.step-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-card h3 svg {
  color: var(--primary);
}

/* ------------------- CUSTOMER REVIEWS & FEEDBACK ------------------- */
.reviews-container {
  margin-top: 5rem;
  margin-bottom: 3rem;
}

.reviews-summary {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: center;
}

.rating-big-box {
  text-align: center;
  padding: 2rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.rating-big-val {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.star-rating {
  color: var(--warning);
  font-size: 1.25rem;
  display: inline-flex;
  gap: 0.15rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.review-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.review-author {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.verified-icon {
  width: 14px;
  height: 14px;
  background: #10b981;
  border-radius: 50%;
  color: white;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: bold;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Write Review Widget */
.write-review-card {
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Select element fix */
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  padding-right: 2.5rem;
}

.stars-selector {
  display: flex;
  gap: 0.5rem;
  font-size: 1.75rem;
  color: #cbd5e1;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.stars-selector span {
  transition: var(--transition-fast);
}

.stars-selector span.active,
.stars-selector span:hover,
.stars-selector span.selected {
  color: var(--warning);
  transform: scale(1.1);
}

/* ------------------- VIEW: SINGLE-PAGE BOOKING FORM ------------------- */
.booking-form-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.booking-form-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.booking-form-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

.booking-form-section-title svg {
  color: var(--primary);
}

.option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.option-card {
  padding: 1rem 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.option-card svg {
  width: 28px;
  height: 28px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.option-card:hover {
  border-color: rgba(0, 86, 210, 0.3);
  background: rgba(0, 86, 210, 0.02);
  color: var(--text-primary);
}

.option-card.selected {
  border-color: var(--primary);
  background: rgba(0, 86, 210, 0.05);
  box-shadow: 0 0 15px rgba(0, 86, 210, 0.1);
  font-weight: 700;
  color: var(--primary);
}

.option-card.selected svg {
  color: var(--primary);
  transform: scale(1.1);
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* File upload selector */
.file-upload-wrapper {
  border: 2px dashed #cbd5e1;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: #f8fafc;
  position: relative;
}

.file-upload-wrapper:hover {
  border-color: var(--primary);
  background: rgba(0, 86, 210, 0.02);
}

.file-upload-wrapper svg {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  transition: var(--transition-fast);
}

.file-upload-wrapper:hover svg {
  color: var(--primary);
}

.file-upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-preview-box {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.file-preview-thumbnail {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  background: #cbd5e1;
}

.file-preview-info {
  flex: 1;
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cost-estimator {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #ecfdf5;
  border: 1px dashed #a7f3d0;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cost-estimator h4 { margin: 0; color: #047857; font-size: 1.1rem; }
.cost-estimator-price { font-size: 1.5rem; font-weight: 700; color: #047857; }

/* Booking Success Screen */
.booking-success {
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-icon-box {
  width: 80px;
  height: 80px;
  background: #ecfdf5;
  border: 2px solid var(--success);
  color: var(--success);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
}

.booking-success h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.booking-success p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.booking-id-display {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

/* ------------------- VIEW: TRACKING PAGE ------------------- */
.track-search-box {
  max-width: 600px;
  margin: 0 auto 3rem;
  display: flex;
  gap: 0.75rem;
}

.track-search-box input {
  flex: 1;
}

.tracking-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.tracking-detail-card {
  padding: 2rem;
  background: #ffffff;
}

.tracking-grid-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.5rem;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.info-value {
  font-weight: 650;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

/* Stepper Component (Lightened) */
.tracking-stepper {
  margin-top: 2rem;
  position: relative;
  padding-left: 2.5rem;
}

.tracking-stepper::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.stepper-progress-line {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 2px;
  height: 0%;
  background: var(--primary-gradient);
  z-index: 1;
  transition: var(--transition);
}

.stepper-node {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.stepper-node:last-child {
  margin-bottom: 0;
}

.stepper-icon {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.stepper-node.active .stepper-icon {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  animation: pulse-node 1.5s infinite;
}

@keyframes pulse-node {
  0% { box-shadow: 0 0 0 0 rgba(0, 86, 210, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(0, 86, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 86, 210, 0); }
}

.stepper-node.completed .stepper-icon {
  background: var(--success);
  border-color: var(--success);
}

.stepper-info {
  padding-left: 0.5rem;
}

.stepper-title {
  font-weight: 650;
  color: var(--text-secondary);
  font-size: 1rem;
}

.stepper-node.active .stepper-title {
  color: var(--text-primary);
}

.stepper-node.completed .stepper-title {
  color: var(--text-primary);
  text-decoration: none;
}

.stepper-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stepper-node.active .stepper-desc {
  color: var(--text-secondary);
}

/* Dynamic Mock Map Tracker (Lightened) */
.map-container {
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.map-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: 
    linear-gradient(#cbd5e1 1px, transparent 1px),
    linear-gradient(90deg, #cbd5e1 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-road {
  position: absolute;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.02);
}
.map-road.r1 { top: 120px; left: 0; right: 0; height: 16px; }
.map-road.r2 { top: 320px; left: 0; right: 0; height: 16px; }
.map-road.r3 { left: 120px; top: 0; bottom: 0; width: 16px; }
.map-road.r4 { left: 360px; top: 0; bottom: 0; width: 16px; }

/* Location Pins */
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  z-index: 10;
}

.map-pin-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #94a3b8;
  display: grid;
  place-items: center;
  font-size: 10px;
  box-shadow: var(--shadow-md);
}

.map-pin-label {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.pin-customer { left: 360px; top: 120px; }
.pin-customer .map-pin-circle { border-color: var(--primary); color: var(--primary); }

.pin-hq { left: 120px; top: 320px; }
.pin-hq .map-pin-circle { border-color: var(--success); color: var(--success); }

/* Moving tech vehicle simulated indicator */
.map-vehicle {
  position: absolute;
  width: 32px;
  height: 32px;
  background: var(--warning);
  border-radius: 50%;
  color: white;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  z-index: 11;
  transition: all 1s linear;
}

.map-vehicle svg {
  width: 16px;
  height: 16px;
}

.map-glass-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 12;
  box-shadow: var(--shadow-md);
}

.map-overlay-title { font-weight: 700; font-size: 0.85rem; color: var(--text-primary); }
.map-overlay-desc { font-size: 0.75rem; color: var(--text-secondary); }

/* ------------------- VIEW: SERVICER PORTAL ------------------- */
.tech-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.5rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.jobs-list-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.job-ticket-card {
  padding: 1.25rem;
  border-left: 4px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.job-ticket-card:hover {
  background: #f8fafc;
}

.job-ticket-card.active {
  border-left-color: var(--primary);
  background: rgba(0, 86, 210, 0.03);
}

.job-ticket-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.job-ticket-id { font-weight: 700; color: var(--text-primary); }
.job-ticket-time { font-size: 0.8rem; color: var(--warning); font-weight: 600; }

.job-ticket-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Service Edit Card Details */
.job-editor-pane {
  position: sticky;
  top: 90px;
}

.job-editor-placeholder {
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  border: 2px dashed #cbd5e1;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.action-flow-step-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* ------------------- VIEW: ADMIN DASHBOARD ------------------- */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--primary-gradient);
}

.stat-val {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0.5rem 0;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-footer {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
}

/* Master Data Table */
.admin-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.search-filter-inputs {
  display: flex;
  gap: 1rem;
  flex: 1;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 2.5rem;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.admin-table th, 
table.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

table.admin-table th {
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

table.admin-table tbody tr {
  transition: var(--transition-fast);
}

table.admin-table tbody tr:hover {
  background: #f8fafc;
}

/* Admin settings section */
.admin-settings-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

/* ------------------- STICKY GROUNDED DARK FOOTER ------------------- */
footer {
  background: #0b0f17 !important; /* Premium Slate-950 Dark Grounding */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 2rem 2rem;
  margin-top: 5rem;
  color: #94a3b8;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 1.1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}


footer h3 {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

footer p {
  color: #64748b;
}

footer .logo-badge {
  background: #ffffff !important; /* Forces logo container to pop on dark footer */
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  height: 44px;
}

footer .logo-tagline {
  color: #e2e8f0 !important;
  border-left-color: rgba(255,255,255,0.15);
}

footer .footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

footer .footer-links a:hover {
  color: #ffffff !important;
}

footer .social-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

footer .social-btn:hover {
  background: var(--primary-gradient);
  color: white !important;
  box-shadow: var(--shadow-neon);
}

footer .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.05);
  color: #64748b;
  text-align: center;
}

/* ------------------- PASSWORD DIALOG MODAL (Lightened) ------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4); /* soft dim overlay */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  place-items: center;
  z-index: 1000;
  animation: modalFadeIn 0.25s ease-out forwards;
}

.modal-backdrop.active {
  display: grid;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.password-modal-card {
  width: 90%;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), var(--shadow-neon);
  text-align: center;
  transform: scale(0.95);
  animation: modalZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalZoomIn {
  to { transform: scale(1); }
}

.password-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 86, 210, 0.06);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}

.password-modal-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.password-modal-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake {
  animation: shake 0.35s ease;
}

/* ------------------- WHATSAPP FLOATING BUTTON ------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.08) rotate(10deg);
  background-color: #22c05b;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: white;
}

.whatsapp-float svg {
  fill: currentColor;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .tracking-layout, 
  .tech-grid,
  .admin-settings-grid,
  .booking-form-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
  .admin-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
  }
}

/* ================== MOBILE APP ARRANGEMENTS ================== */
@media (max-width: 768px) {
  /* Modern App-like Bottom Navigation */
  header {
    border-bottom: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .header-content {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .logo-tagline {
    display: none;
  }
  
  .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .nav-item {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    text-align: center;
    transition: var(--transition-fast);
  }
  
  .nav-item.active {
    background: rgba(0, 86, 210, 0.1);
    color: var(--primary);
    box-shadow: none;
  }
  
  /* General Spacing */
  main {
    padding: 1rem 1rem 3rem; 
  }
  
  .glass-panel {
    padding: 1.25rem; /* Tighter padding on mobile */
  }
  
  .whatsapp-float {
    bottom: 6.5rem; /* Sit above bottom nav */
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }

  /* Grid Stackings */
  .steps-section {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  .steps-section::-webkit-scrollbar {
    height: 6px;
  }
  .steps-section::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
  }
  .steps-section .step-card {
    min-width: 280px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  .footer-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    text-align: center;
  }
  .grid-2col {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .admin-stats-row {
    grid-template-columns: 1.1fr 0.9fr;
  }
  
  /* Section Adjustments */
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  .section-subtitle {
    margin: -1rem auto 2rem;
    font-size: 0.95rem;
  }
  
  /* Form & Option Cards Tweaks */
  .option-cards {
    grid-template-columns: 1fr 1fr !important; /* Make options 2x2 grid instead of 3 */
  }
  .option-cards > div {
    font-size: 0.85rem;
    padding: 0.75rem;
  }
  
  /* Map & Dashboard */
  .map-container {
    height: 350px;
  }
  .tracking-grid-info {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
  }
  .reviews-summary {
    grid-template-columns: 1.1fr 0.9fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  /* Floating badge inside hero image */
  .hero-image-pane {
    margin-top: 1.5rem;
  }
  .floating-badge {
    bottom: -15px;
    right: 0;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
  }
  .floating-badge h4 {
    font-size: 0.85rem;
  }
  .floating-badge span {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .option-cards {
    grid-template-columns: 1fr !important; /* Stack everything vertically on very small screens */
  }
}


/* ================== ANIMATED PROCESS FLOW (VERTICAL) ================== */
.process-flow-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  width: 100%;
}

.process-line-bg {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px; /* Center of the 48px icon */
  width: 3px;
  background-color: #e2e8f0;
  z-index: 0;
  border-radius: 2px;
}

.process-line-fill {
  position: absolute;
  top: 24px;
  left: 23px;
  width: 3px;
  background-color: #2563eb;
  z-index: 1;
  border-radius: 2px;
  height: 0%;
  animation: progressFillVert 15s infinite;
}

.process-step {
  display: flex;
  flex-direction: row;
  align-items: center;
  z-index: 2;
  width: 100%;
  text-align: left;
}

.process-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 3px solid #cbd5e1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1.25rem;
  flex-shrink: 0;
  color: #64748b;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.process-icon svg {
  width: 20px;
  height: 20px;
}

.process-label {
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

/* Individual Icon Animations */
.process-step:nth-child(3) .process-icon { animation: step1 15s infinite; }
.process-step:nth-child(4) .process-icon { animation: step2 15s infinite; }
.process-step:nth-child(5) .process-icon { animation: step3 15s infinite; }
.process-step:nth-child(6) .process-icon { animation: step4 15s infinite; }
.process-step:nth-child(7) .process-icon { animation: step5 15s infinite; }

/* Individual Label Animations */
.process-step:nth-child(3) .process-label { animation: text1 15s infinite; }
.process-step:nth-child(4) .process-label { animation: text2 15s infinite; }
.process-step:nth-child(5) .process-label { animation: text3 15s infinite; }
.process-step:nth-child(6) .process-label { animation: text4 15s infinite; }
.process-step:nth-child(7) .process-label { animation: text5 15s infinite; }

@keyframes progressFillVert {
  0% { height: 0%; }
  15% { height: 0%; }
  20% { height: 25%; }
  35% { height: 25%; }
  40% { height: 50%; }
  55% { height: 50%; }
  60% { height: 75%; }
  75% { height: 75%; }
  80% { height: 100%; }
  95% { height: 100%; }
  100% { height: 100%; }
}

@keyframes step1 {
  0%, 15% { border-color: #2563eb; background: rgba(37, 99, 235, 0.1); color: #2563eb; transform: scale(1.15); box-shadow: 0 0 15px rgba(37,99,235,0.4); }
  20%, 100% { border-color: #2563eb; background: white; color: #2563eb; transform: scale(1); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
}

@keyframes step2 {
  0%, 15% { border-color: #cbd5e1; background: white; color: #64748b; transform: scale(1); }
  20%, 35% { border-color: #2563eb; background: rgba(37, 99, 235, 0.1); color: #2563eb; transform: scale(1.15); box-shadow: 0 0 15px rgba(37,99,235,0.4); }
  40%, 100% { border-color: #2563eb; background: white; color: #2563eb; transform: scale(1); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
}

@keyframes step3 {
  0%, 35% { border-color: #cbd5e1; background: white; color: #64748b; transform: scale(1); }
  40%, 55% { border-color: #2563eb; background: rgba(37, 99, 235, 0.1); color: #2563eb; transform: scale(1.15); box-shadow: 0 0 15px rgba(37,99,235,0.4); }
  60%, 100% { border-color: #2563eb; background: white; color: #2563eb; transform: scale(1); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
}

@keyframes step4 {
  0%, 55% { border-color: #cbd5e1; background: white; color: #64748b; transform: scale(1); }
  60%, 75% { border-color: #2563eb; background: rgba(37, 99, 235, 0.1); color: #2563eb; transform: scale(1.15); box-shadow: 0 0 15px rgba(37,99,235,0.4); }
  80%, 100% { border-color: #2563eb; background: white; color: #2563eb; transform: scale(1); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
}

@keyframes step5 {
  0%, 75% { border-color: #cbd5e1; background: white; color: #64748b; transform: scale(1); }
  80%, 95% { border-color: #2563eb; background: rgba(37, 99, 235, 0.1); color: #2563eb; transform: scale(1.15); box-shadow: 0 0 15px rgba(37,99,235,0.4); }
  100% { border-color: #2563eb; background: white; color: #2563eb; transform: scale(1); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
}

@keyframes text1 {
  0%, 15% { color: #2563eb; transform: scale(1.05); }
  20%, 100% { color: #0f172a; transform: scale(1); }
}

@keyframes text2 {
  0%, 15% { color: #64748b; transform: scale(1); }
  20%, 35% { color: #2563eb; transform: scale(1.05); }
  40%, 100% { color: #0f172a; transform: scale(1); }
}

@keyframes text3 {
  0%, 35% { color: #64748b; transform: scale(1); }
  40%, 55% { color: #2563eb; transform: scale(1.05); }
  60%, 100% { color: #0f172a; transform: scale(1); }
}

@keyframes text4 {
  0%, 55% { color: #64748b; transform: scale(1); }
  60%, 75% { color: #2563eb; transform: scale(1.05); }
  80%, 100% { color: #0f172a; transform: scale(1); }
}

@keyframes text5 {
  0%, 75% { color: #64748b; transform: scale(1); }
  80%, 95% { color: #2563eb; transform: scale(1.05); }
  100% { color: #0f172a; transform: scale(1); }
}

/* ------------------- INSTAGRAM FLOATING BUTTON ------------------- */
.instagram-float {
  position: fixed;
  bottom: 6.5rem; /* Sit above whatsapp button */
  right: 2rem;
  width: 56px;
  height: 56px;
  background-image: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(214, 36, 159, 0.35);
  z-index: 999;
  transition: var(--transition-fast);
}

.instagram-float:hover {
  transform: scale(1.08) rotate(-10deg);
  box-shadow: 0 6px 20px rgba(214, 36, 159, 0.5);
  color: white;
}

.instagram-float svg {
  fill: none;
  stroke: currentColor;
}

@media (max-width: 1024px) {
  .instagram-float {
    bottom: 10.5rem; /* Sit above whatsapp on mobile */
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }
}


/* ------------------- CREATIVE HERO BUTTON ------------------- */
.btn-creative {
  background: linear-gradient(135deg, #0f172a, #1e3a8a, #2563eb);
  background-size: 200% 200%;
  animation: gradientFlow 6s ease infinite, pulseGlow 2.5s infinite;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.btn-creative:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
  animation: gradientFlow 2.5s ease infinite;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}


/* ----- EXTRA MOBILE UX TWEAKS ----- */
@media (max-width: 768px) {
  body {
    padding-bottom: 0;
  }
  .logo-img {
    max-height: 38px; /* Scale logo for smaller header */
  }
  .hero-container {
    padding: 1.5rem;
  }
  .hero-container h1 {
    font-size: 2.25rem;
  }
}


/* --- Scroll Reveal Animations --- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}


/* --- Why Choose Fixali Upgraded Cards --- */
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  transition: var(--transition);
  border: 1px solid var(--border-glass);
}
.why-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}
.why-icon-box {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--primary-glow);
  border-radius: 14px;
  color: var(--primary);
}


/* --- Before & After Slider --- */
.before-after-container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
}
.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid #fff;
}
.ba-before-wrapper .ba-image {
  width: 200%;
}
.ba-slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
}
.ba-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 5;
}
.ba-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
  .ba-slider { aspect-ratio: 1 / 1; }
  .ba-before-wrapper .ba-image { width: 100vw; }
}


@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.5rem;
  }
}


/* ================== ANIMATED PROCESS FLOW (LANDSCAPE) ================== */
.process-flow-container.landscape-flow {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin: 3rem 0;
}
.landscape-flow .process-line-bg {
  top: 23px;
  left: 24px;
  right: 24px;
  height: 3px;
  width: auto;
  bottom: auto;
}
.landscape-flow .process-line-fill {
  top: 23px;
  left: 24px;
  height: 3px;
  width: 0%;
  animation: progressFillHoriz 15s infinite;
}
.landscape-flow .process-step {
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.landscape-flow .process-icon {
  margin-right: 0;
  margin-bottom: 1rem;
}
@keyframes progressFillHoriz {
  0% { width: 0%; }
  15% { width: 0%; }
  20% { width: 25%; }
  35% { width: 25%; }
  40% { width: 50%; }
  55% { width: 50%; }
  60% { width: 75%; }
  75% { width: 75%; }
  80% { width: 100%; }
  95% { width: 100%; }
  100% { width: 100%; }
}

@media (max-width: 768px) {
  .process-flow-container.landscape-flow {
    flex-direction: column;
    align-items: flex-start;
    margin: 2rem 0;
  }
  .landscape-flow .process-line-bg {
    top: 24px;
    bottom: 24px;
    left: 23px;
    width: 3px;
    height: auto;
    right: auto;
  }
  .landscape-flow .process-line-fill {
    top: 24px;
    left: 23px;
    width: 3px;
    height: 0%;
    animation: progressFillVert 15s infinite;
  }
  .landscape-flow .process-step {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .landscape-flow .process-icon {
    margin-right: 1.25rem;
    margin-bottom: 0;
  }
}


.hero-image-pane .landscape-flow {
  margin: 1rem 0 0 0;
  gap: 0.5rem;
}
.hero-image-pane .landscape-flow .process-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}
.hero-image-pane .landscape-flow .process-icon svg {
  width: 20px;
  height: 20px;
}
.hero-image-pane .landscape-flow .process-label {
  font-size: 0.75rem;
  line-height: 1.1;
}
.hero-image-pane .landscape-flow .process-line-bg,
.hero-image-pane .landscape-flow .process-line-fill {
  top: 19px;
}




/* ================== MOBILE DASHBOARD FIXES ================== */
@media (max-width: 768px) {
  .tracking-layout,
  .tech-grid,
  .admin-settings-grid,
  .booking-form-grid,
  .admin-stats-row {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .tech-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  
  .tech-header > div:last-child {
    text-align: left !important;
  }
  
  .glass-panel {
    padding: 1.25rem !important;
  }
  
  .admin-table th, .admin-table td {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.85rem;
  }
  
  .table-responsive {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem !important;
  }
}


/* ================== ATTRACTIVE NAV STYLES ================== */
.nav-links {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  padding: 0.35rem !important;
  border-radius: 50px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15), 0 0 15px rgba(0, 86, 210, 0.1), inset 0 2px 4px rgba(255,255,255,0.8) !important;
  display: flex;
  gap: 0.25rem !important;
}

.nav-item {
  color: #64748b !important;
  font-weight: 700 !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 50px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(241, 245, 249, 0.8) !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}

.nav-item.active {
  background: linear-gradient(135deg, #0056d2, #3b82f6) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.25) !important;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav-links {
    padding: 0.25rem !important;
    gap: 0.25rem !important;
    border-radius: 12px !important;
  }
  .nav-item {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
  }
}


/* ================== NAV DROP-IN ANIMATION ================== */
@keyframes navDropIn {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-links {
  animation: navDropIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}


/* ================== AVATAR ANIMATIONS ================== */
#welcome-avatar-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align left for smooth scale down */
  transform-origin: bottom left;
  animation: welcomeSequence 3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  cursor: pointer;
}

#welcome-avatar-container:hover {
  filter: brightness(1.1);
}

.speech-bubble {
  background: white;
  border-radius: 24px;
  padding: 16px 30px;
  font-weight: 800;
  font-size: 1.2rem;
  color: #0056d2;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  margin-bottom: 20px;
  position: relative;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transform-origin: bottom left;
  animation: speechPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.5s, speechFadeOut 0.4s ease forwards 2s;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 40px;
  border-width: 15px 15px 0;
  border-style: solid;
  border-color: white transparent transparent transparent;
  display: block;
  width: 0;
}

#welcome-avatar {
  width: 380px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
  animation: floatAvatar 3s ease-in-out infinite 3s; /* Starts floating after shrink */
}

@keyframes welcomeSequence {
  0% { transform: translateY(500px) scale(0.7) rotate(-15deg); opacity: 0; }
  20% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
  70% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translateY(0) scale(0.25) rotate(0deg); opacity: 1; }
}

@keyframes speechPop {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes speechFadeOut {
  to { opacity: 0; transform: translateY(-15px) scale(0.8); }
}

@keyframes floatAvatar {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); } /* Looks like a tiny bounce because container is scaled to 0.25 */
  100% { transform: translateY(0); }
}

@media (max-width: 768px) {
  #welcome-avatar-container {
    bottom: 15px;
    left: 15px;
    animation: welcomeSequenceMobile 3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  #welcome-avatar {
    width: 280px;
  }
  .speech-bubble {
    font-size: 1rem;
    padding: 12px 20px;
    left: 10px;
  }
  .speech-bubble::after {
    left: 25px;
  }
}

@keyframes welcomeSequenceMobile {
  0% { transform: translateY(500px) scale(0.7) rotate(-15deg); opacity: 0; }
  20% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
  70% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translateY(0) scale(0.3) rotate(0deg); opacity: 1; }
}
