/* ===========================
   THE ARBOURS - Main Stylesheet
   Botanical Green Theme
   =========================== */

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

:root {
  --green-900: #1a3d2e;
  --green-800: #1e4d39;
  --green-700: #235c44;
  --green-600: #2d6a4f;
  --green-500: #40916c;
  --green-400: #52b788;
  --green-300: #74c69d;
  --green-200: #95d5b2;
  --green-100: #d8f3dc;
  --green-50: #f0fdf4;
  --sage: #b7d4ba;
  --cream: #faf7f0;
  --amber: #e6a817;
  --coral: #e07a5f;
  --text-dark: #1a2419;
  --text-mid: #3d4f3b;
  --text-light: #6b7f6a;
  --text-muted: #9eb09d;
  --white: #ffffff;
  --card-bg: #ffffff;
  --border: #e4ede5;
  --shadow-sm: 0 1px 3px rgba(29,77,57,.08);
  --shadow: 0 4px 16px rgba(29,77,57,.12);
  --shadow-lg: 0 12px 40px rgba(29,77,57,.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* ===== LAYOUT ===== */
.app-container { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--white); position: relative; }

/* ===== TOP NAV ===== */
.top-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.nav-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-brand .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-800);
  line-height: 1;
}

.nav-brand .brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
}

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

.nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: var(--green-50);
  color: var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.nav-btn:hover { background: var(--green-100); }

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--coral);
  color: white;
  border-radius: 10px;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 2px solid white;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(29,77,57,.08);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}

.nav-item.active, .nav-item:hover { color: var(--green-600); }

.nav-item .nav-label { font-size: 10px; font-weight: 500; letter-spacing: .03em; }

.nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-500);
  display: none;
}

.nav-item.active .nav-dot { display: block; }

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 20px;
  padding-bottom: 100px;
}

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card + .card { margin-top: 14px; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ===== HERO BANNER ===== */
.hero-banner {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.hero-banner::before {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}

.hero-banner::after {
  content: '';
  position: absolute;
  right: 30px;
  bottom: -30px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

.hero-greeting { font-size: 13px; opacity: .8; margin-bottom: 4px; }
.hero-name { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.hero-sub { font-size: 13px; opacity: .75; }

/* ===== STAT GRID ===== */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.stat-value { font-size: 24px; font-weight: 700; color: var(--text-dark); font-family: 'Playfair Display', serif; }
.stat-label { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  font-family: 'Playfair Display', serif;
}

.see-all {
  font-size: 13px;
  color: var(--green-600);
  text-decoration: none;
  font-weight: 500;
}

/* ===== SERVICE CHIPS ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.service-chip {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--green-700);
  transition: all .2s;
}

.service-chip:hover, .service-chip.selected {
  background: var(--green-600);
  border-color: var(--green-600);
  color: white;
  box-shadow: var(--shadow);
}

.service-chip .chip-icon { font-size: 22px; }
.service-chip .chip-label { font-size: 11px; font-weight: 600; text-align: center; }

/* ===== BOOKING CARD ===== */
.booking-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.booking-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.booking-service { font-weight: 600; font-size: 15px; color: var(--text-dark); }
.booking-date { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-assigned { background: #e0e7ff; color: #3730a3; }
.status-in-progress { background: var(--green-100); color: var(--green-700); }
.status-completed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ===== PLANT CARD ===== */
.plant-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.plant-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plant-img-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-400);
}

.plant-info { padding: 14px; }
.plant-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.plant-type { font-size: 12px; color: var(--text-light); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(64,145,108,.12);
}

textarea.form-control { resize: vertical; min-height: 80px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7f6a' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white;
  box-shadow: 0 4px 12px rgba(45,106,79,.3);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(45,106,79,.35); }

.btn-secondary {
  background: var(--green-50);
  color: var(--green-700);
  border: 1.5px solid var(--green-200);
}

.btn-danger { background: #fee2e2; color: #dc2626; border: 1.5px solid #fecaca; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-light);
}

.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .5; }
.empty-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text-mid); }
.empty-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* ===== LIST ITEMS ===== */
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--green-50); }

.list-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
  flex-shrink: 0;
}

.list-content { flex: 1; min-width: 0; }
.list-title { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.list-sub { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ===== TABS ===== */
.tab-bar {
  display: flex;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  text-align: center;
}

.tab-btn.active {
  background: var(--white);
  color: var(--green-700);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.alert-info { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-warning { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }

/* ===== CHECKLIST ===== */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.checklist-item:last-child { border-bottom: none; }

.check-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s;
}

.check-box.checked {
  background: var(--green-500);
  border-color: var(--green-500);
  color: white;
}

.check-label {
  font-size: 14px;
  color: var(--text-mid);
  flex: 1;
}

.check-label.done { text-decoration: line-through; color: var(--text-muted); }

/* ===== AVATAR ===== */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-placeholder {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

/* ===== TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--green-50);
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-light);
}

.data-table td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--green-50); }

/* ===== PROGRESS BAR ===== */
.progress-bar { height: 6px; background: var(--green-100); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(to right, var(--green-500), var(--green-400)); border-radius: 3px; transition: width .3s; }

/* ===== SUBSCRIPTION PLAN CARD ===== */
.plan-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.plan-card.popular { border-color: var(--green-500); }
.plan-popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--amber);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.plan-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 4px; color: var(--green-800); }
.plan-price { font-size: 36px; font-weight: 800; color: var(--green-700); }
.plan-price span { font-size: 16px; font-weight: 400; color: var(--text-light); }
.plan-features { margin: 16px 0; }
.plan-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
  padding: 5px 0;
}

/* ===== PHOTO UPLOAD ===== */
.photo-upload-zone {
  border: 2px dashed var(--green-200);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--text-light);
  cursor: pointer;
  transition: all .2s;
}

.photo-upload-zone:hover { border-color: var(--green-400); background: var(--green-50); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.photo-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity .2s;
}
.photo-thumb:hover { opacity: .85; }

/* ===== RATING STARS ===== */
.stars { display: flex; gap: 4px; }
.star { font-size: 20px; cursor: pointer; color: var(--border); transition: color .15s; }
.star.filled { color: var(--amber); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: -8px auto 20px;
}

/* ===== ADMIN SIDEBAR ===== */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  background: var(--green-900);
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { width: 100% !important; }
}

.admin-main { flex: 1; padding: 24px; background: var(--cream); overflow-x: hidden; }

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.sidebar-nav { flex: 1; padding: 16px 0; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 14px;
  transition: all .2s;
}

.sidebar-link:hover, .sidebar-link.active {
  color: white;
  background: rgba(255,255,255,.1);
}

.sidebar-link.active { border-left: 3px solid var(--green-400); padding-left: 17px; }

.sidebar-section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  padding: 12px 20px 4px;
}

/* ===== ADMIN TOP BAR ===== */
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-radius: var(--radius);
}

.admin-page-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--green-900); }

/* ===== GRID STATS ADMIN ===== */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== COLORS ===== */
.bg-green { background: linear-gradient(135deg, var(--green-600), var(--green-500)); }
.bg-amber { background: linear-gradient(135deg, var(--amber), #f59e0b); }
.bg-coral { background: linear-gradient(135deg, var(--coral), #f87171); }
.bg-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.bg-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.text-green { color: var(--green-600); }
.text-amber { color: var(--amber); }
.text-coral { color: var(--coral); }

/* ===== UTILITIES ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-900);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.toast.show { opacity: 1; }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--green-50);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  gap: 10px;
  margin-bottom: 16px;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
  color: var(--text-dark);
}

/* ===== MAP CARD ===== */
.map-card {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 16px;
}

/* ===== LANDING PAGE ===== */
.landing-hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 50%, var(--green-500) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  color: white;
  position: relative;
}

.landing-logo {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.15);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
}

.landing-title { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.landing-sub { font-size: 16px; opacity: .8; margin-bottom: 40px; max-width: 300px; }

.landing-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }

.btn-white { background: white; color: var(--green-800); font-weight: 700; }
.btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,.5); color: white; }

.features-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  padding: 0 8px;
  width: 100%;
  max-width: 360px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 30px;
  padding: 8px 16px;
  white-space: nowrap;
  font-size: 13px;
  backdrop-filter: blur(6px);
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-header {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  padding: 40px 24px 60px;
  color: white;
}

.auth-body {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: -24px;
  padding: 32px 24px;
}

/* ===== SCROLLABLE HORIZONTAL ===== */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }

/* ===== FLOATING ACTION BUTTON ===== */
.fab {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(45,106,79,.4);
  cursor: pointer;
  text-decoration: none;
  z-index: 50;
  transition: transform .2s;
}

.fab:hover { transform: scale(1.05); }

/* ===== TIPS CARD ===== */
.tips-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.tips-scroll::-webkit-scrollbar { display: none; }

.tip-card {
  min-width: 200px;
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  border: 1px solid var(--green-200);
  border-radius: var(--radius);
  padding: 16px;
}

.tip-emoji { font-size: 24px; margin-bottom: 8px; }
.tip-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--green-800); }
.tip-text { font-size: 12px; color: var(--green-700); line-height: 1.4; }

/* ===== REAL-TIME / TRACKING ===== */
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,.3); }
  50%      { box-shadow: 0 0 0 7px rgba(74,222,128,.08); }
}

.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.5s ease-in-out infinite;
  display: inline-block;
}

.tracking-active {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== ADMIN TOPBAR CONSISTENCY ===== */
.admin-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green-900);
}
.admin-page-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 3px;
}
.topbar-badge {
  display: inline-flex;
  align-items: center;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-badge-warn {
  background: #fef3c7;
  color: #92400e;
}
.topbar-badge-red {
  background: #fee2e2;
  color: #991b1b;
}

/* ===== MISSING / CONSOLIDATED CLASSES ===== */

/* Status badge: in-progress (both spellings used in views) */
.status-inprogress,
.status-in-progress { background: #d1fae5; color: #065f46; }

/* Admin badge variants (defined inline in layout.ejs — move to stylesheet) */
.badge-active      { background: #d1fae5; color: #065f46; }
.badge-inactive    { background: #fee2e2; color: #991b1b; }
.badge-pending     { background: #fef9c3; color: #854d0e; }
.badge-assigned    { background: #dbeafe; color: #1e40af; }
.badge-inprogress  { background: #ede9fe; color: #5b21b6; }
.badge-completed   { background: #d1fae5; color: #065f46; }
.badge-cancelled   { background: #fee2e2; color: #991b1b; }

/* Admin table & card (defined inline in layout.ejs — add here too) */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 12px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); border-bottom: 2px solid var(--border); background: var(--green-50); }
.admin-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--green-50); }
.table-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }

/* Notification dot badge */
.notif-dot {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 16px; height: 16px;
  background: var(--coral);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Checklist toggle button */
.checklist-toggle {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
  color: white;
}
.checklist-toggle.checked {
  background: var(--green-500);
  border-color: var(--green-500);
}
.checklist-toggle:disabled { opacity: .5; cursor: default; }

/* Service booking chip tags (multi-select summary) */
.chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.15);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 2px;
}
.chip-tag.free-chip { background: rgba(74,222,128,.25); color: #4ade80; }
.chip-tag .remove-chip {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 14px;
  margin-left: 2px;
}

/* Live tracking UI (job-detail / booking-detail) */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #15803d;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.eta-card {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.eta-val {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
}
.eta-badge {
  background: rgba(255,255,255,.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}

/* Service free badge (services booking page) */
.free-badge {
  position: absolute;
  top: -7px;
  left: 10px;
  background: var(--green-500);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .04em;
}

/* Invoice banner (job-detail complete) */
.invoice-banner {
  background: linear-gradient(135deg, #1a3d2e, #2d6a4f);
  border-radius: var(--radius);
  padding: 16px;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sticky order summary bar (services booking page) */
.order-summary {
  position: sticky;
  bottom: 72px;
  background: var(--green-900);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0 0;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.order-summary.visible { display: block; }

/* Payment method button (job-detail payment modal) */
.pay-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: white;
  cursor: pointer;
  transition: all .2s;
  flex: 1;
}
.pay-method-btn:hover,
.pay-method-btn.selected { border-color: var(--green-500); background: var(--green-50); }
.pay-method-btn .pm-icon { font-size: 28px; }
.pay-method-btn .pm-label { font-size: 13px; font-weight: 700; color: var(--green-900); }
.pay-method-btn .pm-sub { font-size: 11px; color: var(--text-muted); }

/* Pay loading overlay */
.pay-loading {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.pay-loading .spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* Modal content area */
.modal-content { padding: 16px 0; }


/* Invoice slide-in animation */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== ADMIN STATUS PILL (table rows — not the notification dot) ===== */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.status-pill.pill-pending     { background: #fef9c3; color: #854d0e; }
.status-pill.pill-confirmed   { background: #dbeafe; color: #1e40af; }
.status-pill.pill-assigned    { background: #e0e7ff; color: #3730a3; }
.status-pill.pill-inprogress  { background: #ede9fe; color: #5b21b6; }
.status-pill.pill-completed   { background: #d1fae5; color: #065f46; }
.status-pill.pill-cancelled   { background: #fee2e2; color: #991b1b; }

/* Live pulse indicator */
.live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-600);
}
.live-pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  animation: pulse 1.5s ease-in-out infinite;
}
