/* ============================================================
   HOME SERVICE PLATFORM — Design System
   Bongaon to Ranaghat Region
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Custom Properties ─────────────────────────────────── */
:root {
  /* Brand Colors */
  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --teal-400:    #2dd4bf;
  --teal-500:    #14b8a6;
  --teal-600:    #0d9488;

  /* Slate Greys */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Semantic */
  --color-bg:         #f0f4f8;
  --color-surface:    #ffffff;
  --color-surface-2:  #f8fafc;
  --color-primary:    var(--emerald-500);
  --color-primary-dk: var(--emerald-600);
  --color-primary-lt: var(--emerald-400);
  --color-accent:     var(--teal-500);
  --color-text:       var(--slate-800);
  --color-text-2:     var(--slate-500);
  --color-text-3:     var(--slate-400);
  --color-border:     var(--slate-200);
  --color-border-2:   var(--slate-300);

  /* Status */
  --status-pending:  #f59e0b;
  --status-assigned: #3b82f6;
  --status-progress: #8b5cf6;
  --status-done:     #10b981;
  --status-cancel:   #ef4444;
  --status-contact:  #06b6d4;

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;  --sp-20: 5rem;

  /* Typography */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --text-xs:   0.75rem;   --text-sm: 0.875rem;
  --text-base: 1rem;      --text-lg: 1.125rem;
  --text-xl:   1.25rem;   --text-2xl: 1.5rem;
  --text-3xl:  1.875rem;  --text-4xl: 2.25rem;
  --text-5xl:  3rem;

  /* Radius */
  --r-sm: 0.5rem; --r-md: 0.75rem; --r-lg: 1rem;
  --r-xl: 1.25rem; --r-2xl: 1.5rem; --r-3xl: 2rem; --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15), 0 8px 20px rgba(0,0,0,.10);
  --shadow-glow: 0 0 30px rgba(16,185,129,.25);
  --shadow-card: 0 2px 12px rgba(15,23,42,.07), 0 0 0 1px rgba(15,23,42,.04);

  /* Transitions */
  --trans-fast:   all .15s cubic-bezier(.4,0,.2,1);
  --trans-normal: all .25s cubic-bezier(.4,0,.2,1);
  --trans-slow:   all .4s cubic-bezier(.4,0,.2,1);
  --trans-spring: all .35s cubic-bezier(.34,1.56,.64,1);

  /* Sidebar */
  --sidebar-w: 260px;
  --topbar-h:  64px;
  --bottom-nav-h: 70px;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.4rem, 3.5vw, var(--text-3xl)); }
h3 { font-size: clamp(1.1rem, 2.5vw, var(--text-xl)); }
p  { line-height: 1.7; }

/* ── Layout ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }

/* ── App Shell ─────────────────────────────────────────── */
#app { min-height: 100vh; }

/* Page visibility */
.page { display: none; }
.page.active { display: block; }

/* ── Navigation Bar (top, customer) ────────────────────── */
.nav-top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  height: var(--topbar-h);
  display: flex; align-items: center;
  padding: 0 var(--sp-6);
  gap: var(--sp-4);
}
.nav-top .logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--slate-900);
  display: flex; align-items: center; gap: var(--sp-2);
}
.nav-top .logo span { color: var(--color-primary); }
.nav-top .nav-links {
  display: flex; gap: var(--sp-6); margin-left: auto;
  align-items: center; list-style: none; margin-bottom: 0; margin-top: 0; padding-left: 0;
}
.nav-top .nav-links li {
  display: flex; align-items: center; list-style: none;
}
.nav-top .nav-links a {
  font-size: var(--text-sm); font-weight: 500;
  color: var(--color-text-2); transition: var(--trans-fast);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.nav-top .nav-links a:hover, .nav-top .nav-links a.active {
  color: var(--color-primary); background: var(--emerald-50);
}
.nav-top .nav-btn {
  margin-left: var(--sp-4);
  background: var(--color-primary);
  color: #fff; padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full); font-size: var(--text-sm);
  font-weight: 600; transition: var(--trans-spring);
}
.nav-top .nav-btn:hover { background: var(--color-primary-dk); transform: translateY(-1px); box-shadow: var(--shadow-glow); }

/* ── Bottom Mobile Nav ─────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  height: var(--bottom-nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  padding: 0 var(--sp-4);
}
.bottom-nav-items {
  display: flex; height: 100%; width: 100%; max-width: 500px; margin: 0 auto;
  align-items: center; justify-content: space-between;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: var(--sp-2); border-radius: var(--r-lg);
  color: var(--color-text-2); transition: var(--trans-spring);
  font-size: 10px; font-weight: 600; min-width: 56px;
}
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item.active { color: var(--color-primary); }
.bottom-nav-item.active svg { filter: drop-shadow(0 0 6px var(--emerald-400)); }

/* ── Hero Section ──────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 50%, #0d2b1e 100%);
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: var(--sp-16) var(--sp-6);
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(16,185,129,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, var(--color-bg), transparent);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.3);
  color: var(--emerald-300); border-radius: var(--r-full);
  padding: var(--sp-1) var(--sp-4); font-size: var(--text-sm); font-weight: 600;
  margin-bottom: var(--sp-6); letter-spacing: .03em;
  animation: fadeInDown .6s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-400); animation: pulse-dot 2s ease infinite;
}
.hero h1 {
  color: #fff; margin-bottom: var(--sp-4);
  animation: fadeInUp .7s .1s ease both;
}
.hero h1 em { font-style: normal; color: var(--emerald-400); }
.hero p {
  color: var(--slate-400); font-size: var(--text-lg);
  margin-bottom: var(--sp-8); animation: fadeInUp .7s .2s ease both;
}

/* Search Bar */
.hero-search {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-2xl);
  backdrop-filter: blur(20px);
  display: flex; align-items: center;
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5);
  max-width: 580px; margin: 0 auto var(--sp-8);
  gap: var(--sp-3); animation: fadeInUp .7s .3s ease both;
  box-shadow: 0 0 0 1px rgba(16,185,129,.15), var(--shadow-lg);
}
.hero-search input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: var(--text-base);
  caret-color: var(--emerald-400);
}
.hero-search input::placeholder { color: var(--slate-500); }
.hero-search .search-btn {
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
  color: #fff; padding: var(--sp-3) var(--sp-6); border-radius: var(--r-xl);
  font-size: var(--text-sm); font-weight: 700; white-space: nowrap;
  transition: var(--trans-spring); letter-spacing: .02em;
}
.hero-search .search-btn:hover { transform: scale(1.03); box-shadow: var(--shadow-glow); }

/* Hero Stats */
.hero-stats {
  display: flex; justify-content: center; gap: var(--sp-8); flex-wrap: wrap;
  animation: fadeInUp .7s .4s ease both;
}
.hero-stat { color: #fff; text-align: center; }
.hero-stat .num { font-size: var(--text-2xl); font-weight: 800; color: var(--emerald-400); }
.hero-stat .lbl { font-size: var(--text-xs); color: var(--slate-400); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }

/* ── Section ────────────────────────────────────────────── */
.section { padding: var(--sp-16) 0; }
.section-header { text-align: center; margin-bottom: var(--sp-12); }
.section-header h2 { color: var(--slate-900); margin-bottom: var(--sp-3); }
.section-header p { color: var(--color-text-2); font-size: var(--text-lg); max-width: 560px; margin: 0 auto; }
.section-header .tag {
  display: inline-block; background: var(--emerald-50); color: var(--emerald-600);
  padding: var(--sp-1) var(--sp-4); border-radius: var(--r-full);
  font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--sp-3);
  border: 1px solid var(--emerald-200); letter-spacing: .04em; text-transform: uppercase;
}

/* ── Service Cards ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-5);
}
.service-card {
  background: var(--color-surface);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  padding: 0;
  cursor: pointer;
  transition: var(--trans-spring);
  position: relative; overflow: hidden;
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.service-card .card-content {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  /* background: linear-gradient(135deg, var(--emerald-50), transparent); */
  opacity: 0; transition: var(--trans-fast);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--emerald-200); }
  .service-card:hover::before { opacity: 1; }
}
.service-card .icon-wrap {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, var(--emerald-50), var(--teal-50));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0; overflow: hidden;
  border-bottom: 1px solid var(--color-border-2);
}
.service-card .icon-wrap img { 
  width: 100%; height: 100%; 
  object-fit: cover; 
  transition: transform var(--trans-spring);
}
.service-card:hover .icon-wrap img {
  transform: scale(1.15);
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--slate-900); margin-bottom: var(--sp-2); line-height: 1.3; }
.service-card .cat { font-size: var(--text-xs); color: var(--color-text-3); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.service-card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--sp-2); }
.service-card .price { font-size: var(--text-lg); font-weight: 800; color: var(--color-primary); }
.service-card .book-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-primary); display: flex; align-items: center; justify-content: center;
  color: #fff; transition: var(--trans-spring);
}
.service-card:hover .book-arrow { transform: scale(1.15) rotate(-45deg); }
.service-card .badge-inactive {
  position: absolute; top: 12px; right: 12px;
  background: var(--slate-200); color: var(--slate-500);
  font-size: var(--text-xs); font-weight: 600; padding: 2px 10px;
  border-radius: var(--r-full);
}

/* ── Category Filter Tabs ──────────────────────────────── */
.filter-tabs {
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
  margin-bottom: var(--sp-8); justify-content: center;
}
.filter-tab {
  padding: 0 var(--sp-3); border-radius: var(--r-full);
  border: 1.5px solid var(--color-border-2); background: var(--color-surface);
  font-size: var(--text-xs); font-weight: 600; color: var(--color-text-2);
  transition: var(--trans-spring); cursor: pointer;
  height: 32px; display: inline-flex; align-items: center; justify-content: center;
}
.filter-tab:hover { border-color: var(--emerald-400); color: var(--color-primary); background: var(--emerald-50); }
.filter-tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); box-shadow: 0 4px 14px rgba(16,185,129,.35); }

/* ── Button System ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6); border-radius: var(--r-xl);
  font-size: var(--text-sm); font-weight: 600; transition: var(--trans-spring);
  white-space: nowrap; letter-spacing: .01em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--emerald-500), var(--teal-600)); color: #fff; box-shadow: 0 4px 14px rgba(16,185,129,.3); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16,185,129,.45); }
}
.btn-secondary { background: var(--color-surface); border: 1.5px solid var(--color-border-2); color: var(--color-text); }
.btn-secondary:hover { border-color: var(--emerald-400); color: var(--color-primary); background: var(--emerald-50); }
.btn-danger { background: #fef2f2; border: 1.5px solid #fecaca; color: #dc2626; }
.btn-danger:hover { background: #fee2e2; }
.btn-ghost { color: var(--color-text-2); padding: var(--sp-2) var(--sp-3); }
.btn-ghost:hover { color: var(--color-text); background: var(--color-border); border-radius: var(--r-md); }
.btn-sm { padding: 0 var(--sp-3); font-size: var(--text-xs); border-radius: var(--r-md); height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: var(--text-base); border-radius: var(--r-2xl); }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ── Card Component ────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  padding: var(--sp-6);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-5); padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--color-border);
}
.card-title { font-size: var(--text-lg); font-weight: 700; color: var(--slate-900); display: flex; align-items: center; gap: var(--sp-2); }

/* ── Badge & Status Pills ──────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px; border-radius: var(--r-full);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending    { background: #fef3c7; color: #92400e; }
.badge-assigned   { background: #dbeafe; color: #1e40af; }
.badge-progress   { background: #ede9fe; color: #5b21b6; }
.badge-completed  { background: var(--emerald-100); color: var(--emerald-700); }
.badge-cancelled  { background: #fee2e2; color: #991b1b; }
.badge-contacted  { background: #cffafe; color: #155e75; }
.badge-active     { background: var(--emerald-100); color: var(--emerald-700); }
.badge-inactive   { background: var(--slate-100); color: var(--slate-500); }
.badge-verified   { background: var(--emerald-100); color: var(--emerald-700); }
.badge-pending-doc { background: #fef3c7; color: #92400e; }

/* ── Modal / Dialog ─────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--bottom-nav-h);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-backdrop.open .modal { transform: translateY(18px); }
.modal {
  position: relative;
  background: var(--color-surface);
  width: 100%; max-width: 540px; max-height: 92vh;
  border-radius: var(--r-3xl) var(--r-3xl) 0 0;
  overflow-y: auto; transform: translateY(100%);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  box-shadow: var(--shadow-xl);
  touch-action: manipulation;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--slate-100);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 50;
}
.modal-close:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}
.modal-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--slate-200); margin: var(--sp-4) auto var(--sp-2);
}
.modal-body { padding: var(--sp-2) var(--sp-6) var(--sp-8); }
.modal-title { font-size: var(--text-xl); font-weight: 800; color: var(--slate-900); margin-bottom: var(--sp-6); }

/* ── Multi-Step Booking ─────────────────────────────────── */
.step-indicator {
  display: flex; align-items: center; gap: 0;
  margin-bottom: var(--sp-8);
}
.step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: 700;
  background: var(--slate-100); color: var(--slate-400);
  transition: var(--trans-normal); flex-shrink: 0;
}
.step-dot.done { background: var(--color-primary); color: #fff; }
.step-dot.active { background: var(--color-primary); color: #fff; box-shadow: 0 0 0 5px rgba(16,185,129,.2); }
.step-line {
  flex: 1; height: 2px; background: var(--slate-200); transition: var(--trans-normal);
}
.step-line.done { background: var(--color-primary); }

/* Step content */
.booking-step { display: none; }
.booking-step.active { display: block; animation: fadeInUp .3s ease; }

/* ── Form Elements ─────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-4); }
.form-label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--slate-700); margin-bottom: var(--sp-2); }
.form-control {
  width: 100%; padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--color-border-2); border-radius: var(--r-xl);
  font-size: var(--text-base); color: var(--color-text);
  background: var(--color-surface-2); outline: none;
  transition: var(--trans-fast);
}
.form-control-sm {
  padding: 0 var(--sp-2); font-size: var(--text-xs); height: 32px;
  border-radius: var(--r-md);
}
.form-control:focus { border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 4px rgba(16,185,129,.1); }
.form-control::placeholder { color: var(--color-text-3); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }

.input-group { display: flex; gap: var(--sp-3); }
.input-group .form-group { flex: 1; }

/* ── Success Animation ──────────────────────────────────── */
.success-anim {
  text-align: center; padding: var(--sp-8) var(--sp-6);
}
.success-circle {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-400), var(--teal-500));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-6);
  animation: successPop .6s cubic-bezier(.34,1.56,.64,1) both;
  box-shadow: 0 0 0 0 rgba(16,185,129,.4);
}
.success-circle svg { width: 48px; height: 48px; color: #fff; }
.success-anim h3 { font-size: var(--text-2xl); color: var(--slate-900); margin-bottom: var(--sp-2); }
.success-anim p { color: var(--color-text-2); margin-bottom: var(--sp-6); }
.booking-id-display {
  background: var(--emerald-50); border: 1.5px solid var(--emerald-200);
  border-radius: var(--r-xl); padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-sm); color: var(--emerald-700); font-weight: 700;
  letter-spacing: .05em; display: inline-block; margin-bottom: var(--sp-6);
}

/* ── Admin Layout ───────────────────────────────────────── */
#page-admin { display: none; }
#page-admin.active { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--slate-900);
  min-height: 100vh; position: sticky; top: 0;
  display: flex; flex-direction: column;
  transition: var(--trans-normal);
}
.sidebar-logo {
  padding: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: var(--sp-3);
}
.sidebar-logo .logo-icon {
  width: 40px; height: 40px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  display: flex; align-items: center; justify-content: center;
}
.sidebar-logo .logo-text { font-family: var(--font-display); font-weight: 800; font-size: var(--text-base); color: #fff; }
.sidebar-logo .logo-text span { display: block; font-size: var(--text-xs); font-weight: 400; color: var(--slate-400); }

.sidebar-nav { padding: var(--sp-4) var(--sp-3); flex: 1; }
.sidebar-nav-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--slate-500); text-transform: uppercase; padding: var(--sp-3) var(--sp-3) var(--sp-2); }
.sidebar-link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3); border-radius: var(--r-lg);
  color: var(--slate-400); font-size: var(--text-sm); font-weight: 500;
  transition: var(--trans-fast); cursor: pointer; margin-bottom: 2px;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-link.active { color: #fff; background: rgba(16,185,129,.15); border-left: 3px solid var(--color-primary); padding-left: calc(var(--sp-3) - 3px); }
.sidebar-link.active svg { color: var(--emerald-400); }

.sidebar-footer {
  padding: var(--sp-4) var(--sp-3);
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Admin main content */
.admin-main { flex: 1; display: flex; flex-direction: column; }
.admin-topbar {
  min-height: var(--topbar-h); background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; padding: 0 var(--sp-6);
  gap: var(--sp-3); position: sticky; top: 0; z-index: 50;
  flex-wrap: wrap; padding-top: var(--sp-2); padding-bottom: var(--sp-2);
}
.admin-topbar .page-title { font-size: var(--text-lg); font-weight: 700; color: var(--slate-900); flex: 1; min-width: 160px; }
.admin-topbar .topbar-right { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.topbar-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 600;
  padding: 4px 12px; border-radius: 99px;
  border: 1px solid var(--emerald-200);
  background: var(--emerald-50); color: var(--emerald-700);
}
.topbar-chip.live { background: var(--emerald-50); color: var(--emerald-700); border-color: var(--emerald-200); }
.topbar-chip.live svg { color: var(--emerald-500); }
.topbar-chip.demo { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.topbar-chip.demo svg { color: #f59e0b; }
.admin-content { flex: 1; padding: var(--sp-6); overflow-y: auto; background: var(--color-bg); }

/* Admin tabs */
.admin-view { display: none; }
.admin-view.active { display: block; animation: fadeInUp .3s ease; }

/* ── Metric Cards ───────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4); margin-bottom: var(--sp-8);
}
.metric-card {
  background: var(--color-surface);
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: var(--r-2xl); padding: var(--sp-5) var(--sp-6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03); 
  border: 1px solid var(--color-border);
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.metric-card:hover { 
  transform: translateY(-5px) scale(1.02); 
  box-shadow: 0 12px 24px rgba(0,0,0,0.08); 
  border-color: var(--slate-300);
}
.metric-card::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px; border-radius: 0 var(--r-2xl) 0 80px;
  opacity: .06;
}
.metric-card.green::after { background: var(--emerald-500); }
.metric-card.blue::after { background: #3b82f6; }
.metric-card.purple::after { background: #8b5cf6; }
.metric-card.orange::after { background: #f59e0b; }
.metric-card.yellow::after { background: #eab308; }
.metric-card.red::after { background: #ef4444; }
.metric-card.teal::after { background: #14b8a6; }
.metric-icon {
  width: 44px; height: 44px; border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4);
}
.metric-icon.green { background: var(--emerald-50); color: var(--emerald-600); }
.metric-icon.blue  { background: #eff6ff; color: #2563eb; }
.metric-icon.purple { background: #f5f3ff; color: #7c3aed; }
.metric-icon.orange { background: #fffbeb; color: #d97706; }
.metric-icon.yellow { background: #fefce8; color: #ca8a04; }
.metric-icon.red { background: #fef2f2; color: #dc2626; }
.metric-icon.teal { background: #f0fdfa; color: #0d9488; }
.metric-icon svg { width: 22px; height: 22px; }
.metric-value { font-size: var(--text-3xl); font-weight: 800; color: var(--slate-900); line-height: 1; margin-bottom: var(--sp-1); }
.metric-label { font-size: var(--text-sm); color: var(--color-text-2); font-weight: 500; }
.metric-change { font-size: var(--text-xs); color: var(--emerald-600); font-weight: 600; margin-top: var(--sp-2); }

/* ── Table ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-2xl); border: 1px solid var(--color-border); }
table { width: 100%; border-collapse: collapse; background: var(--color-surface); }
thead th {
  text-align: left; padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--slate-500); background: var(--slate-50);
  border-bottom: 1px solid var(--color-border);
}
tbody tr { transition: var(--trans-fast); }
tbody tr:hover { background: var(--slate-50); }
tbody tr:not(:last-child) td { border-bottom: 1px solid var(--color-border); }
tbody td { padding: var(--sp-4) var(--sp-5); font-size: var(--text-sm); color: var(--color-text); vertical-align: middle; }

/* ── Action Buttons in Table ────────────────────────────── */
.action-btns { display: flex; gap: var(--sp-2); }
.action-btn {
  width: 32px; height: 32px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); color: var(--color-text-2);
  background: var(--color-surface); transition: var(--trans-fast);
}
.action-btn:hover { border-color: var(--emerald-400); color: var(--color-primary); background: var(--emerald-50); }
.action-btn.danger:hover { border-color: #fca5a5; color: #dc2626; background: #fef2f2; }
.action-btn svg { width: 14px; height: 14px; }

/* ── Inline Edit ────────────────────────────────────────── */
.editable-cell { cursor: pointer; border-radius: var(--r-md); padding: 2px 6px; transition: var(--trans-fast); }
.editable-cell:hover { background: var(--emerald-50); outline: 1.5px dashed var(--emerald-300); }
.inline-edit-input {
  width: 100px; padding: 4px 8px; border: 1.5px solid var(--color-primary);
  border-radius: var(--r-md); font-size: var(--text-sm); font-weight: 700;
  color: var(--color-text); background: #fff; outline: none;
}

/* ── Booking Tracker ────────────────────────────────────── */
.tracker-section { max-width: 600px; margin: 0 auto; }
.tracker-search {
  display: flex; gap: var(--sp-3);
  background: var(--color-surface);
  padding: var(--sp-3); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card); border: 1px solid var(--color-border);
  margin-bottom: var(--sp-8);
}
.tracker-search input { flex: 1; border: none; background: none; outline: none; font-size: var(--text-base); padding: var(--sp-2); }

.tracker-result { animation: fadeInUp .4s ease; }
.timeline {
  position: relative; padding-left: var(--sp-8); margin-top: var(--sp-4);
}
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 8px;
  bottom: 8px; width: 2px; background: var(--color-border);
}
.timeline-item { position: relative; margin-bottom: var(--sp-6); }
.timeline-item::before {
  content: ''; position: absolute; left: -33px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2.5px solid var(--color-border); background: var(--color-surface);
  z-index: 1;
}
.timeline-item.done::before { border-color: var(--color-primary); background: var(--color-primary); }
.timeline-item.active::before { border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 4px rgba(16,185,129,.2); animation: pulse-dot 2s ease infinite; }
.timeline-item h4 { font-size: var(--text-sm); font-weight: 700; color: var(--slate-900); }
.timeline-item p { font-size: var(--text-xs); color: var(--color-text-2); margin-top: 2px; }
.timeline-item.inactive h4 { color: var(--color-text-3); }

/* ── Partner Portal ────────────────────────────────────── */
.partner-hero {
  background: linear-gradient(135deg, var(--slate-900), #0a2218);
  padding: var(--sp-20) var(--sp-6);
  text-align: center; position: relative; overflow: hidden;
}
.partner-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(16,185,129,.15), transparent);
}
.partner-hero h1 { color: #fff; position: relative; }
.partner-hero h1 span { color: var(--emerald-400); }
.partner-hero p { color: var(--slate-300); margin-top: var(--sp-3); font-size: var(--text-lg); position: relative; }

.partner-form-card {
  max-width: 680px; margin: -var(--sp-10) auto 0;
  position: relative; z-index: 10;
}

.partner-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4); margin-bottom: var(--sp-12);
}
.benefit-card {
  text-align: center; padding: var(--sp-6);
  background: var(--color-surface); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card); border: 1px solid var(--color-border);
}
.benefit-icon {
  width: 56px; height: 56px; border-radius: var(--r-xl);
  background: var(--emerald-50); display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-4); color: var(--color-primary);
}
.benefit-icon svg { width: 28px; height: 28px; }
.benefit-card h4 { font-size: var(--text-base); margin-bottom: var(--sp-2); }
.benefit-card p { font-size: var(--text-sm); color: var(--color-text-2); }

/* ── Glassmorphism Card ─────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow-lg);
}

/* ── Rating Stars ───────────────────────────────────────── */
.stars { color: #f59e0b; font-size: var(--text-sm); letter-spacing: .1em; }

/* ── Loading States ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--slate-100), var(--slate-200), var(--slate-100));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}
.skeleton-text { height: 14px; margin-bottom: var(--sp-2); }
.skeleton-card { height: 320px; border-radius: var(--r-2xl); }

/* ── Toast Notifications ────────────────────────────────── */
.toast-container {
  position: fixed; bottom: calc(var(--bottom-nav-h) + 12px); left: 50%;
  transform: translateX(-50%); z-index: 1000;
  display: flex; flex-direction: column; gap: var(--sp-2);
  pointer-events: none; width: min(400px, 90vw);
}
.toast {
  background: var(--slate-900); color: #fff;
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-xl);
  font-size: var(--text-sm); font-weight: 500;
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: var(--sp-3);
  animation: toastIn .35s cubic-bezier(.34,1.56,.64,1) both;
  border-left: 3px solid var(--color-primary);
}
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }

/* ── Setup / Config Screen ──────────────────────────────── */
.config-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, var(--slate-900), #0a2218);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
}
.config-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-3xl); padding: var(--sp-10);
  max-width: 520px; width: 100%; text-align: center;
}
.config-card h2 { color: #fff; margin-bottom: var(--sp-3); }
.config-card p { color: var(--slate-400); margin-bottom: var(--sp-6); }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.4); }
  50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes successPop {
  0% { transform: scale(0) rotate(-10deg); opacity: 0; }
  70% { transform: scale(1.1) rotate(3deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes successRing {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.4); }
  100% { box-shadow: 0 0 0 40px rgba(16,185,129,0); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes typing {
  0%, 100% { width: 0; }
  40%, 60% { width: 100%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin .8s linear infinite; }
@keyframes countUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Typewriter effect ──────────────────────────────────── */
.typewriter { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 3px solid var(--emerald-400); vertical-align: bottom; }

/* ── Chip multi-select ──────────────────────────────────── */
.chip-group { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  padding: var(--sp-1) var(--sp-4); border-radius: var(--r-full);
  border: 1.5px solid var(--color-border-2); background: var(--color-surface);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-text-2);
  cursor: pointer; transition: var(--trans-fast);
}
.chip:hover { border-color: var(--emerald-300); color: var(--color-primary); }
.chip.selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ── Divider ────────────────────────────────────────────── */
.divider { height: 1px; background: var(--color-border); margin: var(--sp-6) 0; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--slate-900); color: var(--slate-400);
  padding: var(--sp-10) var(--sp-6);
  text-align: center; font-size: var(--text-sm);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer strong { color: var(--emerald-400); }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-300); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .nav-top .nav-links { display: none; }
  .nav-top .nav-btn   { display: none; }

  .bottom-nav { display: flex; }

  .hero { min-height: 75vh; padding: var(--sp-12) var(--sp-4) var(--sp-10); }
  .hero-stats { gap: var(--sp-6); }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .service-card { padding: 0; }
  .service-card .card-content { padding: var(--sp-4); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-benefits { grid-template-columns: 1fr; }

  .admin-sidebar { display: none; }
  .admin-sidebar.show-mobile {
    display: flex !important;
    position: fixed;
    z-index: 1000;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: 280px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #admin-mobile-menu-btn, #admin-mobile-close-btn { display: block !important; }

  #page-admin.active { flex-direction: column; }
  .admin-topbar {
    padding: var(--sp-2) var(--sp-4);
    flex-wrap: nowrap;
    gap: var(--sp-2);
  }
  .admin-topbar .page-title {
    font-size: var(--text-sm);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .admin-topbar .topbar-right {
    flex-wrap: nowrap;
    flex-shrink: 0;
  }
  .admin-topbar .topbar-label { display: none; }
  .admin-topbar .topbar-chip { padding: 5px 7px; }
  .admin-topbar .topbar-icon-btn { padding: 6px 8px; }
  .admin-content { padding: var(--sp-4); }

  .modal { border-radius: var(--r-3xl) var(--r-3xl) 0 0; }

  .section { padding: var(--sp-12) 0; }

  .hero-search { padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); }
  .hero-search .search-btn { padding: var(--sp-3) var(--sp-4); }

  .input-group { flex-direction: column; gap: 0; }

  /* Bottom padding for content above bottom nav */
  .customer-content { padding-bottom: var(--bottom-nav-h); }
}

@media (min-width: 769px) {
  .modal-backdrop { align-items: center; padding-bottom: 0; }
  .modal { border-radius: var(--r-3xl); max-height: 85vh; }
  .modal::before { display: none; }
  .modal-handle { display: none; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
  .service-card .icon-wrap { height: 110px; }
  .metrics-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
  
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; text-align: left; }
  .step-card { padding: 1rem; display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
  .step-icon { width: 56px; height: 56px; margin: 0; flex-shrink: 0; }
  .step-icon svg { width: 24px; height: 24px; }
  .step-text h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
  .step-text p { font-size: 0.8rem; margin: 0; }
}

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; text-align: center; }
.step-card { padding: 2rem; }
.step-icon { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #ecfdf5, #d1fae5); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; border: 3px solid #a7f3d0; }
.step-text h3 { margin-bottom: 0.5rem; }

/* ── Utility ────────────────────────────────────────────── */
.hidden  { display: none !important; }
.visible { display: block !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.fw-700 { font-weight: 700; }
.text-sm { font-size: var(--text-sm); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-2); }
.w-full { width: 100%; }

/* Modern Checkbox Labels for Sub-Admin Modal */
.modern-cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
.modern-cb-label { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 6px; cursor: pointer; transition: all 0.2s ease; font-size: 0.85rem; color: var(--slate-700); user-select: none; }
.modern-cb-label:hover { background: var(--slate-100); border-color: var(--slate-300); }
.modern-cb-label:has(input:checked) { background: #e0f2fe; border-color: #38bdf8; color: #0284c7; font-weight: 500; }
.modern-cb-label:has(input:checked) input { accent-color: #0284c7; }

