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

:root {
  --navy: #1b3a5c;
  --navy-light: #264d7a;
  --navy-dark: #122740;
  --gold: #b8962e;
  --gold-light: #d4af5a;
  --gold-pale: #f5edd6;
  --cream: #faf8f5;
  --warm-gray: #f0ede8;
  --border: #ddd8d0;
  --text: #2a2a2a;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;
  --success: #3d7a52;
  --success-bg: #edf7f1;
  --warning: #c47b2b;
  --warning-bg: #fef3e2;
  --danger: #9b3a3a;
  --danger-bg: #fdf0f0;
  --info: #1f6b9b;
  --info-bg: #e8f4fd;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy-dark);
}

a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

/* ---- NAV ---- */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--warm-gray);
  color: var(--navy);
}

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

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--warm-gray);
  font-size: 13px;
  color: var(--text-muted);
}

.nav-user strong { color: var(--navy); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--navy);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--navy-light); color: #fff; }

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover:not(:disabled) { background: #a07828; color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover:not(:disabled) { background: var(--navy); color: #fff; }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover:not(:disabled) { background: var(--gold-pale); color: var(--gold); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover:not(:disabled) { background: var(--warm-gray); color: var(--navy); }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover:not(:disabled) { background: #7a2d2d; color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2d5a8e 100%);
  color: #fff;
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-content { position: relative; max-width: 700px; margin: 0 auto; }

.hero-tag {
  display: inline-block;
  background: rgba(184, 150, 46, 0.3);
  color: var(--gold-light);
  border: 1px solid rgba(184, 150, 46, 0.4);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 480px;
  line-height: 1.65;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- SECTIONS ---- */
.section {
  padding: 72px 24px;
}

.section-alt { background: #fff; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ---- CARDS ---- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: var(--shadow); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-header h3 { font-size: 16px; font-weight: 600; }

/* ---- PACKAGE CARDS ---- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pkg-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.pkg-card:hover { border-color: var(--navy-light); box-shadow: var(--shadow); transform: translateY(-2px); }

.pkg-card.selected {
  border-color: var(--navy);
  background: #f0f4f9;
  box-shadow: var(--shadow);
}

.pkg-card.featured {
  border-color: var(--gold);
  background: #fffdf6;
  box-shadow: 0 6px 24px rgba(184,150,46,0.12);
}

/* Trust micro-strip below pricing */
.pkg-trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.pkg-trust-item {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.pkg-trust-item span { font-size: 16px; }

.pkg-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pkg-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.pkg-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.pkg-price sup { font-size: 18px; vertical-align: super; }
.pkg-price span { font-size: 15px; font-weight: 400; color: var(--text-muted); }

.pkg-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 40px;
}

.pkg-features { list-style: none; margin-bottom: 24px; }

.pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--warm-gray);
}

.pkg-features li:last-child { border-bottom: none; }

.pkg-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* pkg-trial-icons — remove this block + pkgIcons in index.html to revert */
.pkg-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
/* end pkg-trial-icons */

/* ---- STATUS BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-assigning, .badge-pending_assignment, .badge-reassigning { background: #e0f2fe; color: #0369a1; }
.badge-assigned, .badge-offered { background: #f3e8ff; color: #7c3aed; }
.badge-accepted { background: var(--info-bg); color: var(--info); }
.badge-in_progress { background: #fff3cd; color: #856404; }
.badge-completed { background: var(--success-bg); color: var(--success); }
.badge-cancelled { background: var(--danger-bg); color: var(--danger); }
.badge-failed  { background: #fee2e2; color: #b91c1c; }
.badge-expired { background: #f1f5f9; color: #64748b; }
.badge-pending_reschedule, .badge-weather_delay { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-being_rescheduled { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-customer    { background: #e8f4fd; color: var(--info); }
.badge-freelancer  { background: var(--success-bg); color: var(--success); }
.badge-admin       { background: var(--gold-pale); color: var(--gold); }
.badge-dispatcher  { background: #f3e8ff; color: #7c3aed; }

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
}

.form-control::placeholder { color: var(--text-light); }

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

.form-hint { font-size: 12px; color: var(--text-light); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- STATS GRID ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 22px; }

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

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- ORDER LIST ---- */
.order-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.15s;
}

.order-item:hover { box-shadow: var(--shadow); }

.order-item-main { flex: 1; min-width: 0; }

.order-num { font-size: 13px; font-weight: 600; color: var(--navy); }

.order-name {
  font-size: 15px;
  font-weight: 600;
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-meta { font-size: 12px; color: var(--text-muted); }

.order-price { font-size: 16px; font-weight: 600; color: var(--navy); flex-shrink: 0; }

.order-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---- STATUS TIMELINE ---- */
.timeline { position: relative; padding: 10px 0; }

.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--warm-gray);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-item.done .timeline-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.timeline-item.active .timeline-dot {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.timeline-item:not(:last-child) .timeline-dot::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--border);
  z-index: 0;
}

.timeline-item.done:not(:last-child) .timeline-dot::after { background: var(--success); }

.timeline-content { flex: 1; padding-top: 6px; }
.timeline-content h4 { font-size: 14px; font-weight: 600; color: var(--navy-dark); margin-bottom: 2px; }
.timeline-content p { font-size: 12px; color: var(--text-muted); }

/* ---- DASHBOARD LAYOUT ---- */
.dash-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

.dash-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-header h1 { font-size: 28px; color: var(--navy-dark); }
.dash-header p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ---- PHOTO GRID ---- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }

.photo-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}

.photo-item img { width: 100%; height: 130px; object-fit: cover; display: block; transition: transform 0.2s; }
.photo-item:hover img { transform: scale(1.04); }
.photo-item-label { padding: 6px 8px; font-size: 11px; color: var(--text-muted); background: var(--warm-gray); text-align: center; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- UPLOAD ZONE ---- */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--warm-gray);
}

.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--navy);
  background: #edf1f7;
}

.upload-zone p { color: var(--text-muted); font-size: 14px; margin-top: 10px; }
.upload-zone span { font-size: 36px; }

/* ---- HOW IT WORKS ---- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }

.step-card { text-align: center; padding: 32px 24px; }

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 18px;
}

.step-card h3 { font-size: 17px; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-muted); }

/* ---- TRUST SECTION ---- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }

.trust-item { text-align: center; padding: 24px; }
.trust-icon { font-size: 36px; margin-bottom: 12px; }
.trust-item h4 { font-size: 15px; margin-bottom: 6px; }
.trust-item p { font-size: 13px; color: var(--text-muted); }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 28px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-brand p { font-size: 13px; line-height: 1.7; }

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 13px; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal { transform: translateY(0); }

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

.modal-header h3 { font-size: 20px; }

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
}

.modal-close:hover { color: var(--danger); }

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

.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(155,58,58,0.2); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(61,122,82,0.2); }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(31,107,155,0.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(196,123,43,0.2); }

/* ---- AUTH PAGES ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo h2 {
  font-size: 22px;
  color: var(--navy-dark);
  margin-top: 10px;
}

.auth-logo p { font-size: 13px; color: var(--text-muted); }

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: var(--warm-gray);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text-muted);
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
}

.auth-tab.active {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* ---- TABLES ---- */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th {
  text-align: left;
  padding: 10px 14px;
  background: var(--warm-gray);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--warm-gray);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--cream); }

/* ---- TABS ---- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: color 0.15s;
}

.tab-btn:hover { color: var(--navy); }

.tab-btn.active {
  color: var(--navy);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- ADDON CARDS ---- */
.addons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

.addon-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.addon-card:hover { border-color: var(--navy-light); }
.addon-card.selected { border-color: var(--navy); background: #f0f4f9; }

.addon-preview {
  display: none;
  width: 100%;
  max-height: 130px;
  object-fit: cover;
  border-radius: calc(var(--radius-sm));
  margin-top: 4px;
}
.addon-card.selected .addon-preview { display: block; }

.addon-color-picker { display: none; width: 100%; margin-top: 10px; }
.addon-card.selected .addon-color-picker { display: block; }

.color-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.color-btn:hover { border-color: var(--navy-light); }
.color-btn.active { border-color: var(--navy); background: var(--navy); color: #fff; }

.addon-color-preview {
  width: 100%;
  max-height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  display: block;
}

.addon-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.addon-card.selected .addon-check {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.addon-info { flex: 1; }
.addon-info h4 { font-size: 13.5px; font-weight: 600; color: var(--navy-dark); }
.addon-info p { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.addon-price { font-weight: 600; color: var(--navy); font-size: 14px; flex-shrink: 0; }

/* ---- ORDER SUMMARY ---- */
.summary-card {
  background: var(--navy-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.summary-card h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 6px 0;
  color: rgba(255,255,255,0.8);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open { display: flex; }

/* Wrapper shrinks to the image so the info overlay is anchored to its corner */
.lightbox-wrapper {
  position: relative;
  display: inline-flex;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-wrapper img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
  display: block;
}


.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ---- LOADING ---- */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--warm-gray);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-state { text-align: center; padding: 40px; color: var(--text-muted); }

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

.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 18px; color: var(--text-muted); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ---- BOOKING LAYOUT ---- */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  align-items: start;
}

/* ---- UTILITY ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px; box-shadow: var(--shadow); }
  .nav-actions.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-inner { position: relative; }
  .hamburger { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .booking-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .order-item { flex-wrap: wrap; }
  .order-actions { width: 100%; }
  .hero { padding: 60px 20px 50px; }
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .pkg-card { padding: 24px 20px; }
  .stat-value { font-size: 22px; }
}
