/* ==========================================
   LUXE SALON & SPA - Complete Stylesheet
   ========================================== */

/* --- CSS Variables --- */
:root {
  --rose: #b76e79;
  --rose-light: #d4a0a8;
  --rose-dark: #8e4a54;
  --gold: #d4a574;
  --gold-light: #e8c9a0;
  --dark: #1a1a2e;
  --dark-light: #2a2a4e;
  --dark-mid: #3a3a5e;
  --cream: #faf3e0;
  --cream-dark: #f0e4c8;
  --white: #ffffff;
  --gray-100: #f7f7f7;
  --gray-200: #e8e8e8;
  --gray-300: #d0d0d0;
  --gray-500: #888;
  --gray-700: #444;
  --green: #4caf50;
  --red: #e74c3c;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, sans-serif;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

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

.accent { color: var(--rose); }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.section-title {
  text-align: center;
  margin-bottom: 8px;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.text-left { text-align: left; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--rose);
  color: var(--white);
}
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(183,110,121,0.4); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline {
  border: 2px solid var(--rose);
  color: var(--rose);
  background: transparent;
}
.btn-outline:hover { background: var(--rose); color: var(--white); }

.btn-lg { padding: 16px 40px; font-size: 1.1rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

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

/* --- Form Elements --- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: var(--dark); }

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--dark);
}
.form-input:focus { outline: none; border-color: var(--rose); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-error { color: var(--red); font-size: 0.85rem; margin-top: 6px; min-height: 20px; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(26,26,46,0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--rose);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 600;
}
.logo-accent { color: var(--rose-light); }

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

.nav-link {
  padding: 8px 16px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(183,110,121,0.25); }

.nav-login-btn {
  background: var(--rose) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
}
.nav-login-btn:hover { background: var(--rose-dark) !important; }

.nav-user-menu { position: relative; }
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(183,110,121,0.2);
  color: var(--white);
  transition: background var(--transition);
}
.nav-user-btn:hover { background: rgba(183,110,121,0.4); }
.nav-user-avatar {
  width: 30px; height: 30px;
  background: var(--rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
}
.nav-user-name { font-size: 0.85rem; }

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 160px;
  display: none;
  z-index: 100;
}
.nav-user-dropdown.show { display: block; }
.nav-user-dropdown a, .nav-user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 18px;
  color: var(--dark);
  font-size: 0.9rem;
  transition: background var(--transition);
}
.nav-user-dropdown a:hover, .nav-user-dropdown button:hover { background: var(--gray-100); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Pages --- */
.page { display: none; padding-top: var(--nav-height); min-height: 100vh; }
.page.active { display: block; }

.page-header {
  padding: 60px 20px 40px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(26,26,46,0.82) 0%, rgba(58,58,94,0.8) 100%),
    url('../images/gallery/salon-4.jpg') center/cover no-repeat;
  color: var(--white);
}
.page-title {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
.page-subtitle {
  color: var(--rose-light);
  font-size: 1.05rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Light overlay (was 0.65–0.75 — too heavy, hid the image). Reduced so the
     salon interior shows through while still keeping white text readable. */
  background:
    linear-gradient(135deg, rgba(26,26,46,0.32) 0%, rgba(22,22,43,0.28) 40%, rgba(42,26,46,0.28) 70%, rgba(58,58,94,0.22) 100%),
    url('../images/hero.jpg') center 30%/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(circle at 30% 30%, rgba(183,110,121,0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(212,165,116,0.1) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, -3%) scale(1.05); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  padding: 0 40px;
}

.hero-content {
  color: var(--white);
  padding: 10px 0 40px 0;
  text-align: left;
  align-self: end;     /* pin to bottom of the hero grid cell */
  justify-self: start; /* pin to left edge */
  max-width: 540px;
}

.hero-cta-card {
  background: rgba(26,26,46,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px 28px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: fadeInUp 0.8s ease 0.4s both;
  /* Light text shadow so headings stay readable over whatever background
     shows through the transparent card. */
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-cta-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #D4A017;
  margin-bottom: 10px;
}
.hero-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700;
  line-height: 1.15; margin: 0 0 10px;
}
.hero-cta-sub {
  font-size: 15px; color: rgba(255,255,255,0.85);
  margin: 0 0 16px;
}
.hero-cta-intro {
  font-size: 14px; color: rgba(255,255,255,0.75);
  margin: 0 0 14px;
}
.hero-cta-bullets {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: grid; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,0.9);
}
.hero-cta-btn {
  display: block; text-align: center;
  padding: 14px 24px;
  background: linear-gradient(135deg, #5B2C87, #8b5cb8);
  color: #fff; text-decoration: none;
  border-radius: 999px; font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 24px rgba(91,44,135,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(91,44,135,0.55);
}
.hero-cta-link {
  display: block; text-align: center;
  margin-top: 12px;
  font-size: 13px; color: rgba(255,255,255,0.7);
  text-decoration: underline;
}
.hero-cta-link:hover { color: #fff; }

.hero-cta-note {
  display: block; text-align: center;
  margin-top: 12px;
  font-size: 12px; color: rgba(255,255,255,0.6);
}

/* Mobile: stack vertically (salon content on top, CTA card below) */
@media (max-width: 960px) {
  .hero { height: auto; min-height: 100vh; padding: 110px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding: 0 20px; }
  .hero-content { text-align: center; }
  .hero-cta-card { padding: 24px 20px; }
  .hero-cta-title { font-size: 24px; }
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1px;
  animation: fadeInUp 0.8s ease;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #ffffff;
  font-style: italic;
  margin-bottom: 12px;
  animation: fadeInUp 0.8s ease 0.2s both;
  /* Heavier shadow so the tagline stays readable with lighter hero overlays */
  text-shadow:
    0 2px 6px rgba(0,0,0,0.9),
    0 0 18px rgba(0,0,0,0.75),
    0 4px 24px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 14px rgba(0,0,0,0.6);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-chat-btn {
  border-color: var(--white);
  color: var(--white);
}
.hero-chat-btn:hover {
  background: var(--white);
  color: var(--dark);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Sections --- */
.section { padding: 80px 0; }

/* Featured Services */
.featured-section { background: var(--gray-100); }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.featured-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--rose);
}
.featured-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.featured-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.featured-card h3 {
  margin-bottom: 8px;
  color: var(--dark);
}

.featured-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.featured-card .price {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--rose);
}

.featured-card .duration {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Reviews Carousel */
.reviews-section { background: var(--white); }

.reviews-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-carousel {
  flex: 1;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease;
}

.review-card {
  min-width: 100%;
  padding: 30px;
}

.review-card-inner {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.review-stars { color: #f5a623; font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 2px; }
.review-text { font-size: 1.05rem; line-height: 1.7; color: var(--dark); margin-bottom: 20px; font-style: italic; }
.review-author { font-weight: 600; color: var(--dark); }
.review-service { font-size: 0.85rem; color: var(--rose); }

.carousel-btn {
  width: 44px; height: 44px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--dark);
  transition: all var(--transition);
  flex-shrink: 0;
}
.carousel-btn:hover { border-color: var(--rose); color: var(--rose); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
}
.carousel-dot.active { background: var(--rose); transform: scale(1.2); }

/* About */
.about-section { background: var(--gray-100); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content p { color: var(--gray-700); margin-bottom: 16px; font-size: 1.02rem; }
.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rose);
}
.stat-label { font-size: 0.85rem; color: var(--gray-500); }

.about-image-placeholder {
  background: linear-gradient(135deg, var(--dark), var(--dark-mid));
  border-radius: var(--radius-lg);
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--rose-light);
  font-family: var(--font-heading);
  font-size: 2rem;
  gap: 8px;
}

/* --- Services Page --- */
.category-tabs, .book-category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  padding: 20px 0 0;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--gray-100);
  border: 2px solid transparent;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--rose); border-color: var(--rose-light); }
.tab-btn.active { background: var(--rose); color: var(--white); border-color: var(--rose); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding-bottom: 60px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--rose);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card h3 { margin-bottom: 8px; font-size: 1.25rem; }

.service-card-desc {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.service-card-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rose);
}

.service-card-duration {
  font-size: 0.85rem;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 50px;
}

/* --- Booking Flow --- */
.booking-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  gap: 0;
  flex-wrap: wrap;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.progress-step.active .step-num,
.progress-step.completed .step-num {
  background: var(--rose);
  color: var(--white);
}

.progress-step.completed .step-num { background: var(--green); }

.step-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
}
.progress-step.active .step-label { color: var(--rose); font-weight: 600; }
.progress-step.completed .step-label { color: var(--green); }

.progress-line {
  width: 60px;
  height: 2px;
  background: var(--gray-200);
  margin: 0 8px;
  margin-bottom: 20px;
  transition: background var(--transition);
}
.progress-line.completed { background: var(--green); }

.booking-step {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0 60px;
  animation: fadeInUp 0.4s ease;
}
.booking-step.active { display: block; }

.step-title {
  text-align: center;
  margin-bottom: 24px;
  color: var(--dark);
}

.step-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

/* Booking service cards */
.book-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.book-service-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.book-service-card:hover { border-color: var(--rose-light); }
.book-service-card.selected { border-color: var(--rose); background: rgba(183,110,121,0.05); box-shadow: 0 0 0 3px rgba(183,110,121,0.15); }

.book-service-card h4 { margin-bottom: 4px; font-size: 1.05rem; }
.book-service-card .meta { display: flex; gap: 16px; color: var(--gray-500); font-size: 0.85rem; margin-bottom: 6px; }
.book-service-card .meta .price { color: var(--rose); font-weight: 600; }
.book-service-card .desc { color: var(--gray-500); font-size: 0.85rem; }

/* Staff grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.staff-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.staff-card:hover { border-color: var(--rose-light); }
.staff-card.selected { border-color: var(--rose); background: rgba(183,110,121,0.05); box-shadow: 0 0 0 3px rgba(183,110,121,0.15); }

.staff-avatar {
  font-size: 3rem;
  margin-bottom: 12px;
}
.staff-card h4 { margin-bottom: 4px; }
.staff-card .role { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 8px; }
.staff-card .specialties {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.specialty-tag {
  padding: 3px 10px;
  background: var(--cream);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--rose-dark);
}

/* Date & Time picker */
.datetime-picker {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: start;
}

.date-picker-section input[type="date"] {
  font-size: 1rem;
  padding: 14px 16px;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.slots-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-500);
  padding: 30px;
}

.time-slot {
  padding: 12px;
  text-align: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}
.time-slot:hover { border-color: var(--rose-light); background: rgba(183,110,121,0.05); }
.time-slot.selected { border-color: var(--rose); background: var(--rose); color: var(--white); }

/* Booking summary */
.booking-summary {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
}
.booking-summary h3 { margin-bottom: 16px; font-size: 1.1rem; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
}
.summary-row.total {
  border-top: 2px solid var(--rose-light);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 600;
  font-size: 1rem;
}

/* Confirmation */
.confirmation-content {
  text-align: center;
  padding: 40px 20px;
}
.confirmation-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  color: var(--green);
}
.confirmation-content h2 { margin-bottom: 12px; color: var(--green); }
.confirmation-content p { color: var(--gray-500); margin-bottom: 8px; }
.confirmation-details {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 500px;
  margin: 24px auto;
  text-align: left;
}
.confirmation-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.9rem;
}
.confirmation-details .detail-row:last-child { border-bottom: none; }
.detail-label { font-weight: 500; color: var(--gray-700); }
.detail-value { color: var(--dark); }

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  padding: 40px 0 60px;
}

.gallery-item {
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  transition: transform var(--transition);
  cursor: pointer;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item span {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding: 40px 0 60px;
}

.contact-info { display: flex; flex-direction: column; gap: 20px; }

.contact-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-icon { font-size: 1.5rem; margin-bottom: 8px; }
.contact-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.contact-card p { color: var(--gray-700); font-size: 0.9rem; }

.contact-form-wrapper h2 { margin-bottom: 20px; }

.contact-form { margin-bottom: 30px; }

.map-placeholder {
  background: linear-gradient(135deg, var(--dark), var(--dark-mid));
  border-radius: var(--radius);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-inner { text-align: center; color: var(--white); }
.map-pin { font-size: 2rem; display: block; margin-bottom: 10px; }
.map-inner p { margin-bottom: 12px; color: rgba(255,255,255,0.8); }

/* --- Appointments Page --- */
.appointments-list { padding: 30px 0 60px; }

.appointment-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border-left: 4px solid var(--rose);
}
.appointment-card.cancelled { border-left-color: var(--gray-300); opacity: 0.7; }

.appt-info h3 { font-size: 1.1rem; margin-bottom: 6px; }
.appt-info p { font-size: 0.9rem; color: var(--gray-500); }
.appt-info .appt-datetime { color: var(--dark); font-weight: 500; }

.appt-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
  margin-top: 6px;
}
.appt-status.confirmed { background: rgba(76,175,80,0.12); color: var(--green); }
.appt-status.cancelled { background: rgba(231,76,60,0.12); color: var(--red); }

.appt-actions { display: flex; flex-direction: column; gap: 8px; }

.no-appointments {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.no-appointments h3 { margin-bottom: 12px; color: var(--dark); }

.loading-spinner {
  text-align: center;
  padding: 60px;
  color: var(--gray-500);
}

/* --- Admin Dashboard --- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 0;
}

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-stat-card .stat-icon { font-size: 1.5rem; margin-bottom: 8px; }
.admin-stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rose);
}
.admin-stat-card .stat-label { font-size: 0.85rem; color: var(--gray-500); margin-top: 4px; }

.admin-section { margin-top: 20px; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-header h2 { font-size: 1.4rem; }
.admin-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-filters .form-input { width: auto; }

.admin-table-wrapper {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th {
  background: var(--dark);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 500;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}
.admin-table tr:hover td { background: var(--gray-100); }

.admin-links { margin-top: 40px; padding-bottom: 60px; }
.admin-links h2 { margin-bottom: 20px; }
.admin-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.admin-link-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
  cursor: pointer;
}
.admin-link-card:hover { transform: translateY(-4px); }
.admin-link-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.admin-link-card h3 { margin-bottom: 8px; }
.admin-link-card p { color: var(--gray-500); font-size: 0.9rem; }

/* --- Auth Modal --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.modal-overlay.show { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: modalIn 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 1.6rem;
  color: var(--gray-500);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--gray-100); }

.modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--gray-200);
}
.modal-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.modal-tab.active { color: var(--rose); border-bottom-color: var(--rose); }

.modal-title { margin-bottom: 20px; text-align: center; }

/* --- Chat Widget --- */
.chat-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: var(--rose);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(183,110,121,0.4);
  z-index: 1500;
  transition: all var(--transition);
}
.chat-fab:hover { background: var(--rose-dark); transform: scale(1.08); }
.chat-fab.hidden { display: none; }

.chat-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 380px;
  height: 520px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 60px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1500;
  animation: chatIn 0.3s ease;
}
.chat-panel.show { display: flex; }

@keyframes chatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  background: var(--dark);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 36px; height: 36px;
  background: var(--rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}
.chat-header h3 { font-size: 0.95rem; margin-bottom: 2px; }
.chat-status { font-size: 0.75rem; color: var(--green); }
.chat-close {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.chat-close:hover { color: var(--white); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}
.chat-msg.bot .chat-bubble {
  background: var(--gray-100);
  color: var(--dark);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-bubble {
  background: var(--rose);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-typing .chat-bubble { display: flex; gap: 5px; align-items: center; padding: 14px 20px; }
.typing-dot {
  width: 8px; height: 8px;
  background: var(--gray-500);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.chat-input-area {
  display: flex;
  padding: 12px 16px;
  gap: 8px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}
.chat-input {
  flex: 1;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--rose); }
.chat-send {
  width: 42px; height: 42px;
  background: var(--rose);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.chat-send:hover { background: var(--rose-dark); }

.chat-mic {
  width: 42px; height: 42px;
  background: transparent;
  color: var(--gray-500);
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition);
}
.chat-mic:hover { color: var(--rose); border-color: var(--rose); }
.chat-mic.listening {
  color: var(--white);
  background: var(--rose);
  border-color: var(--rose);
  animation: micPulse 1.5s infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(183,110,121,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(183,110,121,0); }
}
.chat-mic.unsupported { display: none; }

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h3, .footer h4 { color: var(--white); margin-bottom: 16px; }
.footer-brand p { margin-bottom: 6px; font-size: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--rose-light); }
.footer-hours p { font-size: 0.9rem; margin-bottom: 4px; }
.footer-social p { font-size: 0.9rem; margin-bottom: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* --- Toast --- */
.toast {
  position: fixed;
  top: 90px;
  right: 20px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9rem;
  z-index: 3000;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  box-shadow: var(--shadow-lg);
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.info { background: var(--dark); }

@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; } }

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 992px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-image-placeholder { height: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-links-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .datetime-picker { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: right var(--transition);
  }
  .nav-links.open { right: 0; }
  .nav-link { width: 100%; padding: 12px 16px; }

  .hero-title { font-size: 2.6rem; }
  .hero-tagline { font-size: 1.2rem; }

  h1, .page-title { font-size: 2rem; }

  .featured-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .book-services-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-wide { grid-column: span 2; }
  .gallery-tall { grid-row: span 1; }

  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-links-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .chat-panel {
    width: calc(100% - 16px);
    height: calc(100% - 100px);
    bottom: 8px;
    right: 8px;
    border-radius: var(--radius);
  }

  .booking-progress { gap: 0; }
  .progress-line { width: 30px; }
  .step-label { font-size: 0.65rem; }

  .appointment-card { grid-template-columns: 1fr; }
  .appt-actions { flex-direction: row; }

  .modal { padding: 24px; margin: 10px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .about-stats { flex-direction: column; gap: 16px; }
  .admin-stats { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: span 1; }
  .step-label { display: none; }
  .progress-line { width: 20px; }
  .admin-filters { flex-direction: column; width: 100%; }
  .admin-filters .form-input { width: 100%; }
}

/* ==========================================
   Phase 1 additions: admin CRUD + gallery empty + polish
   ========================================== */

/* Admin CRUD list */
.admin-crud-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.admin-crud-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-crud-row:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
}

.admin-crud-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.admin-crud-main strong {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.admin-crud-meta {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.admin-crud-meta a {
  color: var(--rose);
  text-decoration: underline;
}

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

.admin-empty {
  padding: 18px;
  text-align: center;
  color: var(--gray-500);
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* Post-approval queue rows */
.post-queue-row {
  align-items: flex-start;
}
.post-thumb {
  width: 96px; height: 120px; flex: 0 0 96px;
  object-fit: cover; border-radius: 8px;
  background: var(--gray-100);
  margin-right: 14px;
}
.post-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--gray-500);
}
.post-status {
  display: inline-block; padding: 4px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; border-radius: 999px;
}
.post-status-approved { background: #d1fae5; color: #065f46; }
.post-status-rejected { background: #fee2e2; color: #991b1b; }
.post-status-failed   { background: #fef3c7; color: #92400e; }
.admin-crud-actions {
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-end;
}
.admin-header-meta {
  font-size: 12px; color: var(--gray-500); font-weight: normal;
}

/* Admin export */
.admin-export-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.admin-export-note {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Gallery empty state */
.gallery-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  color: var(--gray-500);
  font-size: 1rem;
  background: var(--gray-100);
  border-radius: var(--radius);
}

/* Admin form modal uses the same .modal-overlay / .modal pattern as auth modal */
#adminFormModal .modal { max-width: 480px; }
#adminFormModal .modal-title { margin-bottom: 16px; }

/* Gentle polish: slightly smoother focus + button transitions */
.form-input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.12);
}

.btn {
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(183, 110, 121, 0.28);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Admin section spacing */
.admin-section + .admin-section {
  margin-top: 28px;
}

@media (max-width: 600px) {
  .admin-crud-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-crud-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Phase 2 additions */

.admin-crud-badge {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.customer-stat-row {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.customer-stat {
  flex: 1;
  padding: 14px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  text-align: center;
}

.customer-stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--rose);
  font-weight: 600;
}

.customer-stat span {
  font-size: 0.78rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.customer-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.customer-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.customer-history-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#customerProfileModal .modal {
  max-width: 540px;
}

/* Phase 3 additions */

.svc-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

/* ============================================================
 * MoonFlower AI pricing cards (DEMO-ONLY marketing section)
 * ============================================================ */
.mf-pricing {
  background: linear-gradient(135deg, #5B2C87 0%, #1A1A2E 100%);
  color: #fff;
  padding: 80px 20px 96px;
}
.mf-pricing-container {
  max-width: 1180px;
  margin: 0 auto;
}
.mf-pricing-header {
  text-align: center;
  margin-bottom: 48px;
}
.mf-pricing-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D4A017;
  margin-bottom: 12px;
}
.mf-pricing-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}
.mf-pricing-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto;
}

.mf-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .mf-pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

.mf-pricing-loading,
.mf-pricing-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}
.mf-pricing-error a { color: #D4A017; text-decoration: underline; }

.mf-plan {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mf-plan:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 160, 23, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.mf-plan--highlight {
  background: linear-gradient(180deg, rgba(212, 160, 23, 0.14), rgba(255, 255, 255, 0.04));
  border-color: #D4A017;
  box-shadow: 0 12px 36px rgba(212, 160, 23, 0.2);
}

.mf-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #D4A017;
  color: #1A1A2E;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.mf-plan-head { margin-bottom: 20px; }
.mf-plan-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}
.mf-plan-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.45;
}

.mf-plan-price {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  margin-bottom: 20px;
}
.mf-plan-monthly {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.mf-plan-amt {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}
.mf-plan-per {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.mf-plan-setup {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.mf-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.mf-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.mf-plan-check {
  color: #D4A017;
  flex-shrink: 0;
  margin-top: 2px;
}

.mf-plan-cta {
  display: block;
  width: 100%;
  background: #D4A017;
  color: #1A1A2E;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.mf-plan-cta:hover:not(:disabled) {
  background: #e6b222;
  transform: translateY(-1px);
}
.mf-plan-cta:disabled {
  opacity: 0.7;
  cursor: default;
}
.mf-plan:not(.mf-plan--highlight) .mf-plan-cta {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.mf-plan:not(.mf-plan--highlight) .mf-plan-cta:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

.mf-pricing-fine {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}
.mf-pricing-fine a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.mf-plan-note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.mf-plan-token {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 10px;
}
.mf-plan-token-amt {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}
.mf-plan-token-label {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

/* ============================================================
 * DEMO MODE — hides ALL MoonFlower marketing so each demo feels
 * like a real, standalone salon website. Activated by JS when
 * ?demo=<tier> is in the URL.
 * ============================================================ */
body.demo-mode .marketing-only { display: none !important; }
.marketing-only-hidden { display: none; }
body.demo-mode .marketing-only-hidden { display: inline-flex; }

/* ============================================================
 * TIER-SPECIFIC HEROES
 * Each tier demo uses its OWN hero image so the backgrounds are
 * visually distinct (not just color-overlay variations).
 * ============================================================ */
/* Hero overlay strategy per tier:
 * - Small targeted radial on the brightest glare spot (dims ~30% in a tight area)
 * - Soft left-to-right linear (just enough dim on the tagline side for readability)
 * - Image keeps its natural colors; no muddy wash across the whole frame.
 */

/* Basic: clean minimalist hero — gentle tagline-side dim, no central wash. */
body.tier-basic .hero {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 45%, rgba(0,0,0,0.05) 100%),
    url('../images/hero-basic.jpg') center 30%/cover no-repeat !important;
}

/* Pro: targeted radial ONLY on the bright window spot, very soft elsewhere.
 * This kills the glare without dulling the pink velvet / brass / marble colors. */
body.tier-pro .hero {
  background:
    radial-gradient(circle at 75% 30%, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.08) 100%),
    url('../images/hero-pro.jpg') center 30%/cover no-repeat !important;
}
body.tier-pro {
  --rose: #14b8a6;
  --rose-dark: #0f766e;
}

/* Premium: bright modern hero — minimal dim so the blonde wood + marble pop. */
body.tier-premium .hero {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.08) 45%, rgba(0,0,0,0.1) 100%),
    url('../images/hero-premium.jpg') center 30%/cover no-repeat !important;
}
body.tier-premium {
  --rose: #fbbf24;
  --rose-dark: #d4a017;
}
/* Inner page headers (Services, Team, Contact) use the same tier hero too */
body.tier-basic .page-header {
  background:
    linear-gradient(135deg, rgba(19,78,74,0.82) 0%, rgba(20,184,166,0.60) 100%),
    url('../images/hero-basic.jpg') center/cover no-repeat !important;
}
body.tier-pro .page-header {
  background:
    linear-gradient(135deg, rgba(15,118,110,0.75) 0%, rgba(251,191,36,0.40) 100%),
    url('../images/hero-pro.jpg') center/cover no-repeat !important;
}
body.tier-premium .page-header {
  background:
    linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(251,191,36,0.40) 100%),
    url('../images/hero-premium.jpg') center/cover no-repeat !important;
}

/* Demo-mode back link in the tier bar */
.demo-tier-back {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  margin-right: 6px;
}
.demo-tier-back:hover { background: rgba(255,255,255,0.18); }

/* Big visible current-tier indicator — cannot miss this */
.tier-indicator {
  display: none;
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 1050;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1a1a2e;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  letter-spacing: 0.5px;
}
body.tier-basic   .tier-indicator { display: inline-flex; background: #14b8a6; }
body.tier-pro     .tier-indicator { display: inline-flex; background: linear-gradient(90deg,#14b8a6,#fbbf24); }
body.tier-premium .tier-indicator { display: inline-flex; background: linear-gradient(90deg,#1a1a2e,#fbbf24); color: #fff; }
.tier-indicator::before { content: '●'; margin-right: 8px; color: #fff; }
@media (max-width: 640px) { .tier-indicator { bottom: 140px; left: 12px; font-size: 12px; padding: 8px 14px; } }

/* ============================================================
 * DEMO-TIER SWITCHER — explore Basic / Pro / Premium demos
 * ============================================================ */
.demo-tier-bar {
  position: sticky;
  top: var(--nav-height);
  z-index: 900;
  background: linear-gradient(90deg, rgba(26,26,46,0.96), rgba(19,78,74,0.96));
  color: #fff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.demo-tier-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-tier-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  margin-right: 4px;
}
.demo-tier-btn {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .18s ease, border-color .18s ease;
}
.demo-tier-btn strong { font-weight: 700; }
.demo-tier-btn span {
  opacity: 0.7;
  font-size: 11px;
  font-weight: 400;
}
.demo-tier-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(212,160,23,0.6);
}
.demo-tier-btn.active {
  background: var(--gold);
  color: #1a1a2e;
  border-color: var(--gold);
}
.demo-tier-btn.active span { opacity: 0.8; color: rgba(26,26,46,0.7); }
.demo-tier-buy {
  margin-left: auto;
  background: var(--gold);
  color: #1a1a2e;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}
.demo-tier-buy:hover { background: #e6b222; }
@media (max-width: 720px) {
  .demo-tier-bar { position: static; }
  .demo-tier-inner { padding: 10px 12px; gap: 6px; }
  .demo-tier-btn { padding: 6px 10px; font-size: 12px; }
  .demo-tier-btn span { display: none; }
  .demo-tier-buy { margin-left: 0; flex-basis: 100%; text-align: center; margin-top: 4px; }
}

/* ============================================================
 * TIER-EXCLUSIVE FEATURE SHOWCASES
 * Visibility is controlled by body.tier-basic | .tier-pro | .tier-premium
 * ============================================================ */
.tier-showcase { display: none; padding: 60px 20px; }
body.tier-pro .tier-pro-showcase,
body.tier-premium .tier-pro-showcase,
body.tier-premium .tier-premium-showcase,
body.tier-pro .tier-social-feed,
body.tier-premium .tier-social-feed {
  display: block;
}

/* Social feed mockup — Instagram-style 4-card grid */
.tier-social-feed { background: linear-gradient(180deg, #fff 0%, #f5f0e6 100%); }

/* Tier-aware card visibility — Pro demo shows Pro cards, Premium shows Premium */
.tier-pro-card, .tier-premium-card { display: none; }
body.tier-pro .tier-pro-card,
body.tier-premium .tier-premium-card {
  display: flex;
}
.social-feed-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.social-feed-head .section-title { margin-bottom: 4px; color: var(--dark); }
.social-feed-head .section-subtitle { text-align: left; margin-bottom: 0; }
.social-feed-icons { display: flex; gap: 14px; color: var(--rose); }
.social-feed-icons a {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20,184,166,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
.social-feed-icons a:hover { transform: translateY(-2px); background: rgba(20,184,166,0.15); }

.social-feed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .social-feed-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .social-feed-grid { grid-template-columns: 1fr; } }

.social-post {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.social-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
.social-post-img {
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
}
.social-post-body { padding: 14px 14px 16px; }
.social-post-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--dark);
  margin-bottom: 8px;
}
.social-post-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--gold));
}
.social-post-caption {
  font-size: 13px; line-height: 1.45;
  color: #374151;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.social-post-tags {
  font-size: 11px;
  color: var(--rose);
  font-weight: 500;
}

.tier-pro-showcase {
  background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
}
.tier-premium-showcase {
  background: linear-gradient(135deg, #1a1a2e 0%, #134e4a 100%);
  color: #fff;
}
.tier-premium-showcase h4,
.tier-premium-showcase p { color: #fff; }

.tier-showcase-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: #374151;
  margin-bottom: 30px;
  font-weight: 500;
}
.tier-premium-showcase .tier-showcase-eyebrow { color: rgba(255,255,255,0.85); }

.tier-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}
.tier-badge-pro { background: #14b8a6; color: #fff; }
.tier-badge-premium { background: var(--gold); color: #1a1a2e; }

.tier-showcase-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .tier-showcase-items { grid-template-columns: 1fr; }
}

.tier-feature {
  display: flex;
  gap: 16px;
  background: rgba(255,255,255,0.75);
  padding: 22px 22px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.05);
}
.tier-premium-showcase .tier-feature {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.tier-feature h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}
.tier-feature p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: #4b5563;
}
.tier-premium-showcase .tier-feature p { color: rgba(255,255,255,0.8); }
.tier-feature-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,184,166,0.1);
  border-radius: 10px;
}
.tier-premium-showcase .tier-feature-icon {
  background: rgba(212,160,23,0.2);
}
.tier-feature-highlight {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, rgba(212,160,23,0.08), rgba(255,255,255,0.04));
}
.tier-feature-cta {
  display: inline-block;
  margin-top: 10px;
  background: var(--gold);
  color: #1a1a2e !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.tier-feature-cta:hover { background: #e6b222; }

.mf-plan-cta:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
