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

:root {
  --primary: #C2185B;
  --primary-dark: #880E4F;
  --primary-light: #FCE4EC;
  --primary-mid: #F48FB1;
  --amber: #D97706;
  --amber-light: #FFFBEB;
  --text: #1A1210;
  --text-muted: #6D5D58;
  --text-subtle: #B0998F;
  --border: #EDE8E3;
  --border-light: #F5F1ED;
  --bg: #FFFDF9;
  --bg-warm: #FFF8F2;
  --white: #FFFFFF;
  --success: #059669;
  --success-light: #D1FAE5;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --warning: #B45309;
  --warning-light: #FEF3C7;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(26,18,16,0.05);
  --shadow: 0 1px 4px rgba(26,18,16,0.07), 0 2px 8px rgba(26,18,16,0.04);
  --shadow-md: 0 4px 16px rgba(26,18,16,0.08), 0 1px 4px rgba(26,18,16,0.04);
  --shadow-lg: 0 12px 40px rgba(26,18,16,0.10), 0 2px 8px rgba(26,18,16,0.05);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.display { font-family: 'Playfair Display', Georgia, serif; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Nav ── */
.nav {
  background: rgba(255,253,249,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-links { display: flex; gap: 4px; align-items: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Nunito', system-ui, sans-serif;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(194,24,91,0.25), 0 4px 12px rgba(194,24,91,0.15);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 2px 6px rgba(194,24,91,0.3), 0 6px 20px rgba(194,24,91,0.18);
  transform: translateY(-1px);
}

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--border-light); color: var(--text); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #B91C1C; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-xl { padding: 14px 36px; font-size: 16px; border-radius: var(--radius-lg); font-weight: 700; letter-spacing: 0.01em; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card-body { padding: 28px; }
.card-header {
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.1px; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(194,24,91,0.08); }
.form-control::placeholder { color: var(--text-subtle); }
.form-hint { font-size: 12px; color: var(--text-subtle); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Alerts ── */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; font-weight: 600; }
.alert-error { background: var(--danger-light); color: var(--danger); border: 1px solid #FECACA; }
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid #A7F3D0; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary-mid); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-green { background: var(--success-light); color: var(--success); }
.badge-yellow { background: var(--warning-light); color: var(--warning); }
.badge-red { background: var(--danger-light); color: var(--danger); }
.badge-gray { background: var(--border-light); color: var(--text-muted); }

/* ── Dashboard Layout ── */
.dash-layout { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 64px); }

.dash-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 10px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.dash-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  padding: 0 14px;
  margin-bottom: 4px;
  margin-top: 16px;
}
.dash-sidebar-label:first-child { margin-top: 0; }
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.12s;
  letter-spacing: 0.01em;
}
.dash-nav-link:hover { background: var(--bg-warm); color: var(--text); text-decoration: none; }
.dash-nav-link.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.dash-nav-link.active svg { stroke: var(--primary); }

.dash-main { padding: 36px 40px; overflow: auto; background: var(--bg); }
.dash-main-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.dash-main-header h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  padding: 10px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
td { padding: 13px 20px; border-bottom: 1px solid var(--border-light); font-size: 13.5px; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,18,16,0.45);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.modal-header h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; min-height: 0; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-light); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex-shrink: 0; }

/* Mobile: bottom-sheet so footer buttons are always anchored at screen bottom */
@media (max-width: 640px) {
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { max-width: 100%; height: 92svh; height: 92vh; max-height: 92vh; border-radius: 20px 20px 0 0; border-bottom: none; }
}
.btn-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-subtle); line-height: 1; padding: 4px 6px; border-radius: 6px; }
.btn-close:hover { background: var(--border-light); color: var(--text); }

/* ── Step ── */
.step { display: none; }
.step.active { display: block; }

/* ── Slot Grid ── */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.slot-btn {
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Nunito', system-ui, sans-serif;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  color: var(--text);
}
.slot-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.slot-btn.selected { border-color: var(--primary); background: var(--primary); color: var(--white); box-shadow: 0 2px 8px rgba(194,24,91,0.25); }

/* ── Service Cards ── */
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.18s;
  background: var(--white);
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.service-card.selected { border-color: var(--primary); background: var(--primary-light); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

/* ── FullCalendar Overrides ── */
.fc { font-family: 'Nunito', system-ui, sans-serif !important; font-size: 13px; }
.fc-toolbar-title { font-size: 16px !important; font-weight: 700 !important; letter-spacing: -0.2px !important; }
.fc-button { font-family: 'Nunito', system-ui, sans-serif !important; font-weight: 600 !important; font-size: 13px !important; }
.fc-button-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.fc-button-primary:hover { background-color: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.fc-button-primary:not(:disabled).fc-button-active { background-color: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.fc-today-button { background-color: var(--white) !important; border-color: var(--border) !important; color: var(--text) !important; }
.fc-daygrid-day.fc-day-today, .fc-timegrid-col.fc-day-today { background: var(--primary-light) !important; }

/* ── Utilities ── */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 14px; } .mt-4 { margin-top: 20px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 14px; } .mb-4 { margin-bottom: 20px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* ── Mobile ── */
/* Mobile bottom nav */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1.5px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--text-subtle);
  font-size: 10px;
  font-weight: 700;
  gap: 3px;
  transition: color 0.15s;
  min-height: 56px;
}
.mobile-nav-item svg { flex-shrink: 0; }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item:hover { color: var(--primary); }
.mobile-nav-more { background: none; border: none; cursor: pointer; font-family: inherit; }

/* Mobile "More" drawer */
.mobile-nav-drawer { display: none; }
.mobile-nav-drawer.open { display: block; }
.mobile-nav-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  z-index: 110; animation: fadeIn 0.18s ease;
}
.mobile-nav-drawer-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-radius: 16px 16px 0 0;
  padding: 12px 0 calc(env(safe-area-inset-bottom) + 72px);
  z-index: 111; animation: slideUp 0.22s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
}
.mobile-nav-drawer-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 0 auto 16px;
}
.mobile-nav-drawer-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px; text-decoration: none;
  color: var(--text); font-size: 15px; font-weight: 600;
}
.mobile-nav-drawer-item.active { color: var(--primary); }
.mobile-nav-drawer-item:hover { color: var(--primary); background: var(--bg-warm); text-decoration: none; }
.mobile-nav-drawer-signout {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--text-muted); font-size: 15px; font-weight: 600;
  border-top: 1px solid var(--border); margin-top: 8px;
}
.mobile-nav-drawer-signout:hover { color: var(--primary); }
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 768px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-main { padding: 20px 16px 80px; }
  .form-row { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .mobile-nav { display: block; }
}

/* ── Dark mode ── */
[data-theme="dark"] {
  --text: #F0EBE8;
  --text-muted: #9E8880;
  --text-subtle: #6E5C55;
  --bg: #121010;
  --bg-warm: #161210;
  --white: #1C1917;
  --border: #2A2320;
  --border-light: #221D1A;
  --primary-light: #3D1525;
  --amber-light: #2A2010;
  --success-light: #0A2018;
  --danger-light: #2A1010;
  --warning-light: #2A1E08;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 1px 4px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.3);
}
/* ── Shared section typography ── */
.section-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--primary); margin-bottom: 16px; }
.section-h2 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; color: var(--text); letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 400px; line-height: 1.7; margin-bottom: 56px; }
/* ── Shared pricing card ── */
.pricing-card { border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.pricing-top { background: var(--text); padding: 44px 40px; color: white; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.pricing-body { padding: 32px 40px; background: var(--white); }
.price-big { font-family: 'Playfair Display', serif; font-size: 68px; font-weight: 700; line-height: 1; }
.price-big sup { font-size: 26px; font-family: 'Nunito', sans-serif; font-weight: 600; vertical-align: top; margin-top: 10px; }
.price-unit { font-size: 13px; opacity: 0.55; margin-top: 6px; font-weight: 500; }
.price-note { font-size: 12px; opacity: 0.4; margin-top: 12px; line-height: 1.6; }
.badge-free { display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.8); }
.price-feat { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 13.5px; font-weight: 500; }
.price-feat:last-of-type { border-bottom: none; }
.price-check { color: var(--success); font-size: 15px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 768px) {
  .pricing-top { flex-direction: column; gap: 14px; }
  .pricing-body { padding: 24px; }
  .price-big { font-size: 52px; }
  .section-h2 { font-size: 28px; }
  .section-sub { font-size: 14px; margin-bottom: 36px; }
}
/* ── Site footer ── */
footer { border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 28px 48px; font-size: 13px; color: var(--text-subtle); flex-wrap: wrap; gap: 12px; }
.foot-logo { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-weight: 700; color: var(--text-muted); }
footer a { color: var(--text-subtle); }
footer a:hover { color: var(--primary); text-decoration: none; }
@media (max-width: 768px) {
  footer { padding: 24px 20px; flex-direction: column; text-align: center; gap: 8px; }
}

[data-theme="dark"] { color-scheme: dark; }
[data-theme="dark"] .nav { background: rgba(18,16,16,0.94); }
[data-theme="dark"] .dash-sidebar { border-color: var(--border); }
[data-theme="dark"] .mobile-nav { background: var(--white); border-color: var(--border); }
[data-theme="dark"] select.form-control option { background: var(--white); }
