/* ==========================================================================
   Nilawar Services - Modern CSS Utilities, Dashboard & Interactive Controls
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  --secondary: #0f172a;
  --accent: #f59e0b;
  --accent-light: #fffbeb;

  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-focus: #818cf8;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --warning: #f59e0b;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 25px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 30px -5px rgb(15 23 42 / 0.12);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s ease;

  --container-max: none;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.font-bold { font-weight: 700; }

.badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-accent { background: var(--accent-light); color: var(--accent); }
.badge-success { background: var(--success-bg); color: var(--success); }

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-logo .brand-wordmark { white-space: nowrap; }

.brand-logo span.accent {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
}

.brand-logo img.brand-icon {
  background: white;
  object-fit: contain;
  padding: 2px;
}

.header-location-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-normal);
}

.header-location-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.loc-pill-city { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* HERO SECTION & LIVE SEARCH */
.hero-section {
  padding: 2rem 0 3.5rem;
  background: radial-gradient(circle at 80% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
              var(--bg-main);
}

.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 700; margin-bottom: 1.25rem; }
.hero-title { font-size: 3.25rem; line-height: 1.15; font-weight: 600; color: var(--secondary); margin-bottom: 1.25rem; letter-spacing: -0.04em; }
.hero-title span.highlight { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 580px; }

.search-card-container { background: var(--bg-surface); padding: 0.75rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); border: 1px solid var(--border-light); margin-bottom: 2rem; }
.search-form-row { display: flex; align-items: center; gap: 0.5rem; position: relative; }
.search-input-group { flex: 1; display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1rem; background: var(--bg-main); border-radius: var(--radius-md); border: 1px solid transparent; transition: var(--transition-fast); }
.search-input-group:focus-within { border-color: var(--primary); background: var(--bg-surface); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }
.search-input-group i { color: var(--text-muted); font-size: 1.1rem; }
.search-input-group input { width: 100%; border: none; background: transparent; outline: none; font-size: 1rem; }

.search-autocomplete { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-height: 280px; overflow-y: auto; z-index: 100; display: none; }
.search-autocomplete.active { display: block; }

/* Live search suggestion dropdown items */
.search-result-item { display: flex; align-items: center; gap: 0.85rem; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--border-light); transition: var(--transition-fast); text-decoration: none; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover, .search-result-item:focus { background: var(--primary-light); outline: none; }
.search-result-item img { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.search-result-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.search-result-name { font-weight: 700; color: var(--secondary); font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-meta { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-price { font-weight: 600; color: var(--primary); font-size: 0.95rem; flex-shrink: 0; }
.search-empty { padding: 1.25rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* Toggle switch (notification settings) */
.toggle-switch { display: inline-block; position: relative; width: 44px; height: 24px; flex-shrink: 0; vertical-align: middle; }
.toggle-switch input[type="checkbox"] {
  position: absolute; margin: 0; width: 44px; height: 24px;
  -webkit-appearance: none; appearance: none;
  background: var(--border-light); border-radius: var(--radius-full);
  border: none; outline: none; cursor: pointer;
  transition: background 0.25s;
}
.toggle-switch input[type="checkbox"]::before {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  top: 3px; left: 3px; background: white; box-shadow: var(--shadow-sm);
  transition: transform 0.25s;
}
.toggle-switch input[type="checkbox"]:checked { background: var(--primary); }
.toggle-switch input[type="checkbox"]:checked::before { transform: translateX(20px); }

/* Toast notifications (top-right corner) */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 0.75rem; pointer-events: none; }.toast { pointer-events: auto; min-width: 280px; max-width: 360px; background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 0.85rem 1rem; display: flex; align-items: flex-start; gap: 0.75rem; border-left: 4px solid var(--primary); animation: toast-in 0.3s ease; }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-info { border-left-color: var(--primary); }
.toast.toast-warning { border-left-color: var(--accent); }
.toast .toast-icon { font-size: 1.25rem; line-height: 1; margin-top: 0.1rem; }
.toast.toast-error .toast-icon { color: var(--danger); }
.toast.toast-success .toast-icon { color: var(--success); }
.toast.toast-info .toast-icon { color: var(--primary); }
.toast.toast-warning .toast-icon { color: var(--accent); }
.toast .toast-body { flex: 1; }
.toast .toast-title { font-weight: 600; color: var(--secondary); font-size: 0.9rem; margin-bottom: 0.15rem; }
.toast .toast-msg { font-size: 0.83rem; color: var(--text-muted); line-height: 1.4; }
.toast .toast-close { cursor: pointer; color: var(--text-muted); background: none; border: none; font-size: 0.9rem; padding: 0; margin-left: 0.25rem; flex-shrink: 0; }
@keyframes toast-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
.toast.removing { animation: toast-out 0.3s ease forwards; }

/* ==========================================================================
   Impressive file dropzone (drag & drop, click, preview)
   ========================================================================== */
.file-dropzone { position: relative; border: 2px dashed var(--border-light); border-radius: var(--radius-lg); background: var(--bg-main); padding: 1.5rem 1rem; text-align: center; cursor: pointer; transition: all 0.25s; overflow: hidden; }
.file-dropzone:hover, .file-dropzone.dragover { border-color: var(--primary); background: var(--primary-light); }
.file-dropzone.has-file { border-color: var(--success); background: var(--success-bg); border-style: solid; }
.file-dropzone-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 3; }
.file-dropzone-visual { position: relative; z-index: 1; pointer-events: none; }
.file-dropzone-visual .dz-icon { font-size: 1.6rem; color: var(--primary); margin-bottom: 0.35rem; display: block; }
.file-dropzone-visual strong { display: block; font-size: 0.92rem; color: var(--secondary); margin-bottom: 0.15rem; }
.file-dropzone-visual small { color: var(--text-muted); font-size: 0.8rem; }
.file-dropzone-preview { display: none; align-items: center; gap: 0.6rem; margin-top: 0.65rem; padding: 0.5rem 0.75rem; background: white; border-radius: var(--radius-md); border: 1px solid var(--border-light); text-align: left; }
.file-dropzone.has-file .file-dropzone-preview { display: flex; }
.file-dropzone-preview img { width: 42px; height: 42px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.file-dropzone-preview i { font-size: 1.3rem; color: var(--primary); flex-shrink: 0; }
.file-dropzone-preview i.fa-file-pdf { color: #e53935; }
.file-dropzone.has-file { border-color: var(--success); background: var(--success-bg); border-style: solid; }
.file-dropzone.has-file .dz-icon { color: var(--success); }
.file-dropzone.has-file .file-dropzone-visual strong::after { content: ' \2713'; color: var(--success); }
.file-dropzone-preview .preview-name { font-weight: 600; color: var(--secondary); font-size: 0.82rem; word-break: break-all; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Compact dropzone for document rows */
.file-dropzone.compact { padding: 0.7rem 0.9rem; border-radius: var(--radius-md); min-width: 190px; }
.file-dropzone.compact .dz-icon { font-size: 1.05rem; margin-bottom: 0.15rem; }
.file-dropzone.compact strong { font-size: 0.8rem; }
.file-dropzone.compact small { font-size: 0.7rem; }
.file-dropzone.compact .file-dropzone-preview { margin-top: 0.4rem; padding: 0.35rem 0.5rem; }
.file-dropzone.compact .file-dropzone-preview img { width: 30px; height: 30px; }
.file-dropzone.compact .file-dropzone-preview .preview-name { font-size: 0.75rem; }

/* Legal / policy pages layout */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.legal-toc { position: sticky; top: 96px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ==========================================================================
   Image gallery viewer (lightbox with thumbnails & arrows)
   ========================================================================== */
.gallery-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.gallery-overlay.active { opacity: 1; visibility: visible; }
.gallery-close { position: absolute; top: 20px; right: 20px; background: rgba(0,0,0,0.5); color: white; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.gallery-close:hover { background: rgba(0,0,0,0.8); }
.gallery-counter { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: white; font-size: 0.9rem; font-weight: 700; opacity: 0.8; z-index: 10; background: rgba(0,0,0,0.5); padding: 0.35rem 1rem; border-radius: var(--radius-full); }
.gallery-main-area { display: flex; align-items: center; justify-content: center; flex: 1; width: 100%; padding: 1rem; position: relative; }
.gallery-main-img { max-width: 90%; max-height: 70vh; border-radius: var(--radius-md); box-shadow: 0 8px 40px rgba(0,0,0,0.5); object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.12); color: white; border: none; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 5; }
.gallery-nav:hover { background: rgba(255,255,255,0.25); }
.gallery-nav.prev { left: 20px; }
.gallery-nav.next { right: 20px; }
.gallery-thumb-strip { display: flex; gap: 0.55rem; padding: 0.75rem 1rem; overflow-x: auto; max-width: 100%; justify-content: center; flex-wrap: wrap; }
.gallery-thumb-strip::-webkit-scrollbar { height: 5px; }
.gallery-thumb-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: var(--radius-full); }
.gallery-thumb { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; cursor: pointer; opacity: 0.5; border: 2.5px solid transparent; transition: opacity 0.2s, border-color 0.2s; flex-shrink: 0; }
.gallery-thumb:hover { opacity: 0.8; }
.gallery-thumb.active { opacity: 1; border-color: var(--primary); }

/* ==========================================================================
   Profile photo upload progress ring
   ========================================================================== */
@property --ring-progress { syntax: '<percentage>'; initial-value: 0%; inherits: false; }
.upload-ring {
  position: absolute; inset: -7px; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 0deg,
    #4f46e5 0deg, #2563eb 45deg, #06b6d4 90deg, #10b981 135deg,
    #f59e0b 180deg, #ef4444 225deg, #ec4899 270deg, #4f46e5 315deg, #4f46e5 360deg);
  -webkit-mask:
    radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px)),
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px)),
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  filter: drop-shadow(0 0 6px rgba(79,70,229,0.55));
}
.upload-ring.visible { opacity: 1; visibility: visible; animation: ring-rotate 1s linear infinite; }
.upload-ring.done { animation: none; filter: drop-shadow(0 0 6px rgba(16,185,129,0.6)); }
@keyframes ring-rotate { to { transform: rotate(360deg); } }

/* Progress arc overlay that shows the actual percentage */
.upload-progress-arc {
  position: absolute; inset: -7px; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 0deg, #ffffff00 var(--ring-progress), #22d3ee var(--ring-progress) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.upload-progress-arc.visible { opacity: 1; visibility: visible; }

.upload-percent {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.85rem; color: var(--primary);
  background: rgba(255,255,255,0.75); border-radius: 50%;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.upload-percent.visible { opacity: 1; visibility: visible; }
.upload-percent.complete { color: var(--success); }
.autocomplete-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; cursor: pointer; border-bottom: 1px solid var(--border-light); transition: var(--transition-fast); }
.autocomplete-item:hover { background: var(--primary-light); color: var(--primary); }

.hero-stats { display: flex; align-items: center; gap: 2.5rem; }
.stat-item h4 { font-size: 1.6rem; font-weight: 600; color: var(--secondary); }
.stat-item p { font-size: 0.875rem; color: var(--text-muted); }

.hero-media-wrapper { position: relative; }
.hero-img-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.hero-img-card img { width: 100%; height: 480px; object-fit: cover; }
.hero-floating-badge { position: absolute; bottom: 2rem; left: -1.5rem; background: var(--bg-surface); padding: 1rem 1.25rem; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem; border: 1px solid var(--border-light); }
.badge-icon { width: 44px; height: 44px; background: var(--accent-light); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }

/* CATEGORY & SERVICE CARDS */
.section-padding { padding: 4.5rem 0; }
main.section-padding { padding-top: 2rem; }
.section-header { text-align: center; max-width: 650px; margin: 0 auto 3rem; }
.section-title { font-size: 2.25rem; font-weight: 600; color: var(--secondary); margin-bottom: 0.75rem; letter-spacing: -0.03em; }
.section-desc { font-size: 1.05rem; color: var(--text-muted); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.25rem; }
.category-card { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 1.5rem 1rem; text-align: center; cursor: pointer; transition: var(--transition-normal); }
.category-card:hover, .category-card.active { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); background: var(--primary-light); }
.category-icon { width: 56px; height: 56px; margin: 0 auto 1rem; background: var(--bg-main); color: var(--primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.category-card:hover .category-icon, .category-card.active .category-icon { background: var(--primary-gradient); color: white; }
.category-name { font-size: 0.95rem; font-weight: 700; color: var(--secondary); }

.services-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.location-indicator-tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.925rem; color: var(--text-muted); background: var(--bg-surface); padding: 0.5rem 1rem; border-radius: var(--radius-full); border: 1px solid var(--border-light); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
.service-card { background: var(--bg-surface); border-radius: var(--radius-lg); border: 1px solid var(--border-light); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-normal); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(79, 70, 229, 0.3); }

.card-media { position: relative; height: 200px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.service-card:hover .card-media img { transform: scale(1.06); }
.card-badge { position: absolute; top: 1rem; left: 1rem; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(4px); color: white; padding: 0.25rem 0.65rem; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 700; }

.card-content { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.85rem; }
.card-rating { display: flex; align-items: center; gap: 0.25rem; font-weight: 700; color: var(--secondary); }
.card-rating i { color: var(--accent); }
.card-title { font-size: 1.15rem; font-weight: 600; color: var(--secondary); margin-bottom: 0.5rem; line-height: 1.35; }
.card-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.price-box { display: flex; flex-direction: column; }
.price-box .price { font-size: 1.35rem; font-weight: 600; color: var(--secondary); }
.price-box .original-price { font-size: 0.825rem; color: var(--text-light); text-decoration: line-through; }

/* MODAL OVERLAY */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: all var(--transition-normal); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--bg-surface); width: 100%; max-width: 540px; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); border: 1px solid var(--border-light); overflow: hidden; transform: scale(0.95) translateY(10px); transition: transform var(--transition-normal); max-height: 85vh; display: flex; flex-direction: column; }
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.modal-header h3 { font-size: 1.35rem; font-weight: 600; color: var(--secondary); }
.modal-close-btn { background: var(--bg-main); border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: var(--transition-fast); }
.modal-close-btn:hover { background: var(--danger-bg); color: var(--danger); }
.modal-body { padding: 1.75rem 1.5rem; overflow-y: auto; flex: 1; }

.auto-location-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.85rem; background: var(--primary-light); color: var(--primary); border: 1.5px dashed var(--primary); border-radius: var(--radius-md); font-weight: 700; cursor: pointer; margin-bottom: 1.5rem; transition: var(--transition-normal); }
.auto-location-btn:hover { background: var(--primary); color: white; }
.modal-divider { display: flex; align-items: center; text-align: center; color: var(--text-light); font-size: 0.825rem; font-weight: 600; margin-bottom: 1.5rem; }
.modal-divider::before, .modal-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-light); }
.modal-divider span { padding: 0 0.75rem; }

.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.4rem; }
.form-control { width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-md); border: 1.5px solid var(--border-light); background: var(--bg-surface); outline: none; font-size: 0.95rem; transition: var(--transition-fast); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }

/* ==========================================================================
   HOW IT WORKS / PROCESS STEP CARDS
   ========================================================================== */
.trust-section {
  width: 100%;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.process-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.process-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.process-number {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79, 70, 229, 0.2);
  transition: var(--transition-normal);
}

.process-card:hover .process-number {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

.process-step-icon {
  font-size: 1.5rem;
  color: var(--text-light);
  transition: var(--transition-normal);
}

.process-card:hover .process-step-icon {
  color: var(--primary);
}

.process-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}

.process-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   BOOKING WIZARD & ELEGANT ORDER SUMMARY PANEL
   ========================================================================== */
.booking-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 4rem;
}

.booking-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.order-summary-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border-light);
}

.summary-row.total {
  border-bottom: none;
  margin-top: 1.25rem;
  padding: 1.25rem 1rem;
  background: var(--primary-light);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.summary-row.total span:last-child {
  color: var(--primary);
  font-size: 1.6rem;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.slot-btn {
  padding: 0.75rem 0.5rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slot-btn:hover, .slot-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   SERVICE TO-DO LIST (Modern Task Selector with Image & Price)
   ========================================================================== */
.todo-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.todo-task-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.todo-task-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.todo-task-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.todo-task-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.todo-task-info {
  flex: 1;
}

.todo-task-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.todo-task-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.todo-task-price-col {
  text-align: right;
  flex-shrink: 0;
}

.todo-task-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
}

.todo-task-orig-price {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* ==========================================================================
   CUSTOMER DASHBOARD LAYOUT & SIDEBAR
   ========================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.dashboard-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-sm);
}

.user-profile-header {
  text-align: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.user-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 2px solid var(--primary);
}

.dashboard-nav-list {
  list-style: none;
}

.dashboard-nav-item {
  margin-bottom: 0.35rem;
}

.dashboard-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.dashboard-nav-link:hover, .dashboard-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   REAL-TIME TECHNICIAN TRACKER & TIMELINE
   ========================================================================== */
.tracker-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0;
  padding: 0 1rem;
}

.tracker-pipeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 2rem;
  right: 2rem;
  height: 4px;
  background: var(--border-light);
  z-index: 1;
}

.tracker-pipeline-progress {
  position: absolute;
  top: 24px;
  left: 2rem;
  height: 4px;
  background: var(--primary-gradient);
  z-index: 2;
  transition: width var(--transition-slow);
}

.tracker-step {
  position: relative;
  z-index: 3;
  text-align: center;
}

.tracker-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2.5px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 0.5rem;
  transition: var(--transition-normal);
}

.tracker-step.completed .tracker-icon {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.tracker-step.active .tracker-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.2);
}

.tracker-label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tracker-step.active .tracker-label, .tracker-step.completed .tracker-label {
  color: var(--secondary);
}

/* ==========================================================================
   SUPPORT CHAT UI
   ========================================================================== */
.chat-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.chat-messages-area {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,0.035) 1px, transparent 0);
  background-size: 22px 22px;
}

.chat-date-sep { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin: 0.5rem 0 0.25rem; }
.chat-date-sep span { background: var(--bg-surface); padding: 0.2rem 0.8rem; border-radius: var(--radius-full); border: 1px solid var(--border-light); }

.chat-row { display: flex; gap: 0.6rem; align-items: flex-end; animation: chat-in 0.25s ease; }
.chat-row.bot { justify-content: flex-start; }
.chat-row.user { justify-content: flex-end; flex-direction: row-reverse; }

.chat-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8rem; color: white; box-shadow: var(--shadow-sm); }
.chat-avatar.bot { background: linear-gradient(135deg, #4f46e5, #2563eb); }
.chat-avatar.user { background: linear-gradient(135deg, #f59e0b, #f97316); }

.chat-bubble {
  max-width: 72%;
  padding: 0.7rem 1rem;
  border-radius: 16px;
  font-size: 0.925rem;
  line-height: 1.55;
  position: relative;
  word-break: break-word;
}

.chat-bubble .chat-bubble-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; font-size: 0.7rem; font-weight: 600; }

.chat-bubble.bot {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--secondary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}
.chat-bubble.bot .chat-bubble-meta { color: var(--text-light); }

.chat-bubble.user {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(79,70,229,0.25);
}
.chat-bubble.user .chat-bubble-meta { color: rgba(255,255,255,0.75); }
.chat-bubble.user a { color: #dbeafe; text-decoration: underline; }

/* Chat attachment */
.chat-attachment { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; padding: 0.5rem 0.65rem; border-radius: var(--radius-sm); background: rgba(0,0,0,0.05); font-size: 0.82rem; font-weight: 600; }
.chat-bubble.user .chat-attachment { background: rgba(255,255,255,0.14); }
.chat-attachment img.chat-attach-img { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; }
.chat-attachment i { font-size: 1.3rem; color: var(--primary); }
.chat-bubble.user .chat-attachment i { color: white; }
.chat-attachment .attach-name { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Typing indicator */
.chat-typing { display: inline-flex; align-items: center; gap: 4px; padding: 0.6rem 1rem; background: white; border: 1px solid var(--border-light); border-radius: 16px; border-bottom-left-radius: 4px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); opacity: 0.4; animation: typing 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-quick-chips { padding: 0.75rem 1rem; background: var(--bg-surface); border-top: 1px solid var(--border-light); display: flex; gap: 0.5rem; overflow-x: auto; flex-wrap: wrap; }
.chat-quick-chips::-webkit-scrollbar { height: 4px; }
.chat-quick-chips::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: var(--radius-full); }

.chat-input-row {
  padding: 0.85rem 1rem;
  background: white;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0;
}
.chat-input-row .form-control {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 46px;
  box-sizing: border-box;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-light);
  background: var(--bg-surface);
}
.chat-input-row .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); }
.chat-attach-btn {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  background: var(--bg-main);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
  padding: 0;
}
.chat-attach-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.chat-send-btn {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  box-sizing: border-box;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: var(--transition-fast);
  flex-shrink: 0;
  padding: 0;
}
.chat-send-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45); }
.chat-send-btn:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }

/* Attachment preview chip above input */
.chat-file-preview { display: none; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem; margin: 0 1rem; background: var(--primary-light); border: 1px solid rgba(79,70,229,0.25); border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 600; color: var(--secondary); }
.chat-file-preview.active { display: flex; }
.chat-file-preview .preview-name { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-file-preview .preview-img { width: 38px; height: 38px; border-radius: var(--radius-sm); object-fit: cover; }
.chat-file-preview .remove-preview { margin-left: auto; cursor: pointer; color: var(--danger); }

/* MAP MARKER PICKER CONTAINER */
.map-picker-box {
  width: 100%;
  height: 220px;
  background: #e5e7eb url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?auto=format&fit=crop&w=800&q=80') center/cover;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin-overlay {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   IMPRESSIVE SINGLE SOURCE OF TRUTH GLOBAL FOOTER
   ========================================================================== */
.footer {
  background: #0f172a;
  color: var(--text-light);
  margin-top: auto;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-strip {
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
}

.footer-strip-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-strip-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 580px;
}

.footer-strip-info .strip-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.footer-strip-info h3 {
  color: white;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.footer-strip-info p {
  color: var(--text-light);
  font-size: 0.875rem;
}

.footer-sub-input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  color: white;
  outline: none;
  font-size: 0.875rem;
  width: 220px;
}

.footer-sub-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.12);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-social-links a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-normal);
}

.footer-social-links a:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-3px);
  border-color: transparent;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 3rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.footer-links a i {
  font-size: 0.65rem;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-links a:hover i {
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 1rem;
}

.payment-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pay-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pay-badge.highlight {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}

@media (max-width: 1199px) {
  .nav-links { gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-title { font-size: 2.75rem; }
}

@keyframes nsNavDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media-wrapper { display: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .booking-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 1.5rem 1rem;
    z-index: 1001;
    animation: nsNavDrop 0.25s ease both;
  }
  .nav-links.active li { width: 100%; }
  .nav-links.active .nav-link {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px dashed var(--border-light);
    font-size: 1rem;
  }
  .nav-links.active li:last-child .nav-link { border-bottom: none; }
  .mobile-toggle { display: block; }
  .nav-container { height: 66px; }
  .header-location-btn span { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Panel content responsiveness (admin, customer, vendor, staff) â€” collapses
   common inline grid patterns when the viewport narrows */
@media (max-width: 1199px) {
  main.container [style*="1fr 1fr"],
  main.container [style*="1fr 1.05fr"],
  main.container [style*="1.05fr 1fr"],
  main.container [style*="1fr 380px"],
  main.container [style*="380px 1fr"],
  main.container [style*="360px 1fr"],
  main.container [style*="400px 1fr"],
  main.container [style*="1fr 300px"],
  main.container [style*="300px 1fr"],
  main.container [style*="1fr 240px"],
  main.container [style*="240px 1fr"] { grid-template-columns: 1fr !important; }
}



/* Panel content responsiveness (admin, customer, vendor, staff) â€” collapses
   common inline grid patterns when the viewport narrows */
@media (max-width: 1199px) {
  main.container [style*="1fr 1fr"],
  main.container [style*="1fr 1.05fr"],
  main.container [style*="1.05fr 1fr"],
  main.container [style*="1fr 380px"],
  main.container [style*="380px 1fr"],
  main.container [style*="360px 1fr"],
  main.container [style*="400px 1fr"],
  main.container [style*="1fr 300px"],
  main.container [style*="300px 1fr"],
  main.container [style*="1fr 240px"],
  main.container [style*="240px 1fr"] { grid-template-columns: 1fr !important; }
}



@media (max-width: 767px) {
  /* Mobile header: brand | location (city + icon) | login/profile icon + menu bar */
  .container { padding: 0 1rem; }
  .nav-container { height: 60px; gap: 0.5rem; }
  .brand-logo { min-width: 0; }
  .brand-logo { font-size: 1.2rem; min-width: 0; }
  .brand-icon { width: 34px; height: 34px; font-size: 1rem; }
  .brand-wordmark { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-location-btn { padding: 0.35rem 0.65rem; gap: 0.35rem; }
  .header-location-btn .fa-map-marker-alt { color: var(--primary); }
  #header-location-text { display: none; }
  .loc-pill-city { display: inline-block; max-width: 26vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; }
  .nav-actions { gap: 0.5rem; margin-left: auto; }
  .nav-actions a.btn-primary { display: none; }
  /* Login: icon-only pill */
  .nav-actions .btn-outline { padding: 0.5rem 0.72rem; font-size: 0; gap: 0; }
  .nav-actions .btn-outline i { font-size: 1.1rem; }
  /* Logged-in profile: avatar only */
  .header-user-btn span { display: none; }
  .footer-strip-content { flex-direction: column; align-items: flex-start; }
  .footer-newsletter-box { width: 100%; }
  .footer-sub-input { width: 100%; max-width: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.25rem; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .tracker-pipeline { flex-direction: column; gap: 1.5rem; }
  .tracker-pipeline::before { display: none; }
  .nav-actions .btn-primary { display: none; }
}
/* ==========================================================================
   SERVICE DETAIL PAGE CSS
   ========================================================================== */

.breadcrumb-row {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb-row a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb-row a:hover {
  text-decoration: underline;
}

.detail-layout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.gallery-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
}
.gallery-main-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.detail-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.detail-section-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}
.features-list li i {
  color: var(--success);
  margin-top: 0.2rem;
}
.features-list li .fa-times-circle {
  color: var(--danger);
}

.sticky-booking-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}
.sticky-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-light);
}

.availability-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

/* Accordion FAQs */
.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.accordion-body {
  padding: 0 1.25rem;
  background: var(--bg-main);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-body p {
  padding: 1rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.accordion-item.active .accordion-body {
  max-height: 500px;
}
.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}

@media (max-width: 991px) {
  .detail-layout-grid {
    grid-template-columns: 1fr;
  }
  .gallery-main-img {
    height: 300px;
  }
}

/* === Panel table + layout fluidity (applies to admin/vendor/customer panels) === */
.dashboard-grid .table-container { overflow-x: auto; }
.dashboard-grid .table-container table { min-width: 620px; }
.dashboard-grid .section-card { min-width: 0; overflow: hidden; }
/* === Expand fluidly on wide effective viewports (browser zoom 50-90%) === */
@media (min-width: 1500px) {
  .dashboard-grid { grid-template-columns: 300px 1fr; }
  .dashboard-sidebar { width: 300px; }
}
@media (min-width: 1900px) {
  .dashboard-grid { grid-template-columns: 340px 1fr; gap: 2.5rem; }
  .dashboard-sidebar { width: 340px; }
  .container { padding: 0 3rem; }
}

/* ============================================================
   COMING SOON — animated placeholder (home + services pages)
   ============================================================ */
.cs-soon {
  position: relative;
  overflow: hidden;
  margin: 2.5rem auto;
  padding: 4.5rem 2rem 4rem;
  text-align: center;
  color: #fff;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(140deg, #0f172a 0%, #1e1b4b 45%, #312e81 100%);
  box-shadow: 0 45px 95px -30px rgba(49, 46, 129, 0.75);
  animation: csEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cs-soon::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 160%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(129, 140, 248, 0.28) 71%, rgba(56, 189, 248, 0.3) 79%, transparent 88%);
  animation: csSpin 8s linear infinite;
  pointer-events: none;
}
.cs-blob { position: absolute; border-radius: 50%; filter: blur(65px); opacity: 0.45; pointer-events: none; }
.cs-blob.b1 { width: 330px; height: 330px; background: #7c3aed; top: -130px; left: -80px; animation: csDrift 11s ease-in-out infinite alternate; }
.cs-blob.b2 { width: 300px; height: 300px; background: #0ea5e9; bottom: -120px; right: -60px; animation: csDrift 13s ease-in-out infinite alternate-reverse; }
.cs-blob.b3 { width: 190px; height: 190px; background: #ec4899; top: 35%; right: 18%; opacity: 0.3; animation: csDrift 15s ease-in-out infinite alternate; }
.cs-p {
  position: absolute;
  bottom: -12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e0e7ff, #818cf8);
  opacity: 0;
  animation: csRise 7s linear infinite;
  pointer-events: none;
}
.cs-p:nth-child(odd) { background: radial-gradient(circle at 30% 30%, #cffafe, #38bdf8); }
.cs-soon-inner { position: relative; z-index: 2; }
.cs-rocket-wrap { position: relative; display: inline-block; margin-bottom: 1.6rem; animation: csEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
.cs-rocket {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  font-size: 2.4rem;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #06b6d4);
  box-shadow: 0 18px 45px -12px rgba(139, 92, 246, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  animation: csFloat 3.2s ease-in-out infinite;
}
.cs-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(165, 180, 252, 0.65); animation: csRing 2.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
.cs-ring.r2 { animation-delay: 1.2s; }
.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e0e7ff;
  animation: csEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.cs-live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.cs-live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #34d399; animation: csRing2 1.6s cubic-bezier(0, 0, 0.2, 1) infinite; }
.cs-title {
  font-family: Poppins, sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.4rem;
  background: linear-gradient(92deg, #c7d2fe, #ffffff, #67e8f9, #f0abfc, #c7d2fe);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 26px rgba(129, 140, 248, 0.45));
  animation: csEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both, csSheen 4.5s linear 1s infinite;
}
.cs-title-sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: #a5b4fc;
  margin: 0 0 1.1rem;
  animation: csEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}
.cs-title-sub .cs-area {
  color: #fff;
  font-weight: 800;
  border-bottom: 2px dotted rgba(165, 180, 252, 0.65);
  padding-bottom: 1px;
}
.cs-desc {
  max-width: 560px;
  margin: 0 auto 2.1rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(224, 231, 255, 0.82);
  animation: csEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.cs-progress {
  position: relative;
  width: min(320px, 80%);
  height: 10px;
  margin: 0 auto 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  animation: csEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.46s both;
}
.cs-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 72%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #a78bfa, #22d3ee);
  animation: csGrow 3.4s cubic-bezier(0.65, 0, 0.35, 1) 0.8s both;
}
.cs-progress::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: csSweep 2.4s linear infinite;
  z-index: 2;
}
.cs-progress-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(199, 210, 254, 0.85);
  margin-bottom: 2rem;
  animation: csEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}
.cs-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.1rem;
  animation: csEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
.cs-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e0e7ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cs-chip i { color: #fbbf24; font-size: 0.72rem; }
.cs-chip:nth-child(2) i { color: #34d399; }
.cs-chip:nth-child(3) i { color: #67e8f9; }
.cs-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  animation: csEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both;
}
.cs-actions .btn { border-radius: 999px; padding: 0.8rem 1.7rem; font-weight: 700; }
.cs-btn-primary {
  border: none;
  color: #fff;
  background: linear-gradient(92deg, #6366f1, #8b5cf6, #06b6d4);
  background-size: 200% auto;
  box-shadow: 0 12px 34px -10px rgba(139, 92, 246, 0.75);
  animation: csBtnGlow 2.4s ease-in-out infinite, csSheen 5s linear infinite;
  transition: transform 0.25s ease;
}
.cs-btn-primary:hover { transform: translateY(-3px) scale(1.03); color: #fff; }
.cs-btn-ghost {
  color: #e0e7ff;
  border: 1.5px solid rgba(224, 231, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}
.cs-btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.14); transform: translateY(-3px); }
.cs-wave { position: absolute; left: 0; right: 0; bottom: 0; line-height: 0; opacity: 0.14; pointer-events: none; }
.cs-wave svg { width: 200%; height: 90px; animation: csWave 9s linear infinite; }
@keyframes csEnter { from { opacity: 0; transform: translateY(26px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes csSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes csDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(48px, 32px) scale(1.16); } }
@keyframes csFloat { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(5deg); } }
@keyframes csRing { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2); opacity: 0; } }
@keyframes csRing2 { 75%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes csSheen { to { background-position: 250% center; } }
@keyframes csGrow { from { width: 0; } to { width: 72%; } }
@keyframes csSweep { 0% { transform: translateX(-110%); } 65%, 100% { transform: translateX(290%); } }
@keyframes csRise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 12% { opacity: 0.9; } 100% { transform: translateY(-60vh) translateX(34px); opacity: 0; } }
@keyframes csBtnGlow { 0%, 100% { box-shadow: 0 12px 34px -10px rgba(139, 92, 246, 0.75); } 50% { box-shadow: 0 12px 44px -4px rgba(99, 102, 241, 0.95); } }
@keyframes csWave { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .cs-soon { padding: 3.4rem 1.1rem 3rem; }
  .cs-rocket { width: 78px; height: 78px; font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-soon *, .cs-soon::before, .cs-soon *::before, .cs-soon *::after { animation: none !important; }
}
