/* ============================================
   Crown & Blade — Global Styles
   ============================================ */

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

/* ---- Demo Bar ---- */
.demo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 36px;
  background: #0e0e14;
  border-bottom: 1px solid rgba(124, 92, 252, 0.25);
  display: flex; align-items: center; justify-content: center;
  gap: 20px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
}
.demo-bar__label {
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.demo-bar__label::before {
  content: '◉ ';
  color: #7c5cfc;
}
.demo-bar__exit {
  color: #7c5cfc;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.demo-bar__exit:hover { opacity: 0.75; color: #7c5cfc; }

:root {
  --black:      #0a0a0a;
  --dark:       #111111;
  --dark2:      #1a1a1a;
  --dark3:      #242424;
  --gold:       #c9a84c;
  --gold-light: #f0c040;
  --gold-dim:   #8a6f2e;
  --white:      #ffffff;
  --grey:       #e0e0e0;
  --grey-mid:   #999999;
  --grey-dark:  #444444;
  --danger:     #e05252;
  --success:    #52c07a;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-display: 'Bebas Neue', Impact, sans-serif;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-gold: 0 0 30px rgba(201, 168, 76, 0.15);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-deep: 0 20px 60px rgba(0,0,0,0.6);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: 36px; /* demo bar height */
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---- Selection ---- */
::selection { background: var(--gold); color: var(--black); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--grey); line-height: 1.75; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

.display-font { font-family: var(--font-display); letter-spacing: 0.05em; }
.gold { color: var(--gold); }
.gold-light { color: var(--gold-light); }
.serif { font-family: var(--font-serif); }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* ---- Divider ---- */
.gold-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 16px auto 32px;
}
.gold-divider.left { margin-left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.03em; cursor: pointer; border: none;
  transition: var(--transition); text-decoration: none;
  white-space: nowrap; user-select: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--black);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.5);
  color: var(--black);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c03a3a; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 48px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- Cards ---- */
.card {
  background: var(--dark2);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.card-body { padding: 28px; }

/* ---- Glass ---- */
.glass {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 76, 0.15);
}

/* ---- Form Elements ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 8px;
  font-size: 0.875rem; font-weight: 500;
  color: var(--grey-mid); letter-spacing: 0.05em; text-transform: uppercase;
}
.form-control {
  width: 100%; padding: 13px 16px;
  background: var(--dark3); border: 1.5px solid var(--grey-dark);
  border-radius: var(--radius); color: var(--white);
  font-family: var(--font-sans); font-size: 0.95rem;
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1); }
.form-control::placeholder { color: var(--grey-dark); }
.form-control option { background: var(--dark2); }

/* ---- Badge ---- */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-gold { background: rgba(201, 168, 76, 0.15); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.badge-success { background: rgba(82, 192, 122, 0.15); color: var(--success); border: 1px solid rgba(82,192,122,0.3); }
.badge-danger { background: rgba(224, 82, 82, 0.15); color: var(--danger); border: 1px solid rgba(224,82,82,0.3); }
.badge-grey { background: rgba(255,255,255,0.08); color: var(--grey-mid); border: 1px solid rgba(255,255,255,0.1); }

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 36px; left: 0; right: 0; z-index: 1000;
  padding: 0 24px; height: 72px;
  display: flex; align-items: center;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 700;
  color: var(--white);
}
.nav-logo-text span { color: var(--gold); }
.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--grey); font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: var(--transition); text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(255,255,255,0.06);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: var(--black);
  cursor: pointer; transition: var(--transition);
}
.nav-avatar:hover { transform: scale(1.05); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-serif); font-size: 2rem;
  color: var(--white); text-decoration: none;
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 1.5rem; cursor: pointer; color: var(--grey-mid);
  background: none; border: none; color: var(--white);
}

/* ---- Hero Section ---- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1503951914875-452162b0f3f1?w=1800&q=80');
  background-size: cover; background-position: center;
  filter: brightness(0.3);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.4) 60%,
    rgba(201,168,76,0.05) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  padding-top: 136px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 40px; height: 1px; background: var(--gold);
}
.hero h1 {
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 1.1rem; color: var(--grey-mid);
  max-width: 520px; margin-bottom: 48px;
}
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  position: absolute; bottom: 60px; right: 24px;
  display: flex; gap: 32px;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem; color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem; color: var(--grey-mid);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--grey-mid); font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator svg { animation: scrollArrow 1.5s ease-in-out infinite; }
@keyframes bounce { 0%,100% { opacity: 0.4; transform: translateX(-50%) translateY(0); } 50% { opacity: 1; transform: translateX(-50%) translateY(-8px); } }
@keyframes scrollArrow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---- Section Headers ---- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header.left { text-align: left; }
.section-eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-deep); }
.service-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition-slow);
}
.service-card:hover img { transform: scale(1.08); }
.service-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.service-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px;
  transform: translateY(120px); transition: var(--transition);
}
.service-card:hover .service-info { transform: translateY(0); }
.service-name {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600;
  color: var(--white); margin-bottom: 6px;
}
.service-price {
  font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-light);
  margin-bottom: 10px;
}
.service-duration { font-size: 0.8rem; color: var(--gold); margin-bottom: 8px; }
.service-desc { font-size: 0.85rem; color: var(--grey); line-height: 1.5; }

/* ---- Calendar / Booking ---- */
.booking-wrapper {
  display: grid; grid-template-columns: 1fr 380px; gap: 40px;
  align-items: start;
}
.calendar-grid {
  background: var(--dark2); border-radius: var(--radius-lg);
  border: 1px solid rgba(201,168,76,0.1);
  overflow: hidden;
}
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.calendar-nav-btn {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); width: 36px; height: 36px;
  border-radius: var(--radius-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: 1rem;
}
.calendar-nav-btn:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.calendar-month {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600;
}
.calendar-days-header {
  display: grid; grid-template-columns: repeat(7, 1fr);
  padding: 12px 16px 0;
}
.cal-day-name {
  text-align: center; font-size: 0.75rem; font-weight: 600;
  color: var(--grey-mid); letter-spacing: 0.05em;
  text-transform: uppercase; padding: 8px 0;
}
.calendar-days {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px; padding: 8px 16px 20px;
}
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); cursor: pointer; font-size: 0.9rem;
  transition: var(--transition); position: relative;
  font-weight: 500;
}
.cal-day:hover { background: rgba(201,168,76,0.1); color: var(--gold); }
.cal-day.other-month { color: var(--grey-dark); }
.cal-day.today {
  background: rgba(201,168,76,0.15);
  color: var(--gold); font-weight: 700;
}
.cal-day.today::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.cal-day.selected {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black); font-weight: 700;
}
.cal-day.has-appt::before {
  content: ''; position: absolute; top: 4px; right: 4px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.cal-day.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

.time-slots-section { margin-top: 24px; }
.time-slots-title {
  font-size: 0.8rem; font-weight: 600; color: var(--grey-mid);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.time-slots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.time-slot {
  padding: 10px 8px; text-align: center; border-radius: var(--radius-sm);
  background: var(--dark3); border: 1px solid var(--grey-dark);
  cursor: pointer; font-size: 0.85rem; font-weight: 500;
  transition: var(--transition); color: var(--grey);
}
.time-slot:hover { border-color: var(--gold); color: var(--gold); }
.time-slot.selected { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 700; }
.time-slot.booked { background: rgba(255,255,255,0.03); color: var(--grey-dark); cursor: not-allowed; border-color: transparent; }

/* Booking Form Panel */
.booking-panel {
  background: var(--dark2); border-radius: var(--radius-lg);
  border: 1px solid rgba(201,168,76,0.1);
  padding: 32px; position: sticky; top: 100px;
}
.booking-panel-title {
  font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 24px;
}
.booking-summary {
  background: var(--dark3); border-radius: var(--radius);
  padding: 16px; margin-bottom: 24px;
}
.booking-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
}
.booking-summary-row + .booking-summary-row {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.summary-label { font-size: 0.82rem; color: var(--grey-mid); }
.summary-value { font-size: 0.9rem; font-weight: 500; color: var(--white); }
.summary-value.price { color: var(--gold); font-family: var(--font-display); font-size: 1.2rem; }

/* ---- Day View Calendar ---- */
.day-view-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.day-view-nav {
  display: flex; align-items: center; gap: 16px;
}
.day-view-date {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
}
.day-timeline {
  display: flex; gap: 0;
}
.timeline-labels {
  display: flex; flex-direction: column; gap: 0;
  padding-top: 0; min-width: 60px;
}
.timeline-hour-label {
  height: 120px; display: flex; align-items: flex-start;
  font-size: 0.75rem; color: var(--grey-dark); padding-right: 12px;
  padding-top: 2px;
}
.timeline-body { flex: 1; position: relative; }
.timeline-grid {
  position: relative;
}
.timeline-row {
  height: 120px; border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.timeline-row:nth-child(even) { background: rgba(255,255,255,0.01); }
.appt-block {
  position: absolute; left: 4px; right: 4px;
  border-radius: var(--radius-sm);
  padding: 8px 12px; overflow: hidden;
  cursor: pointer; transition: var(--transition);
  border-left: 3px solid var(--gold);
  background: rgba(201, 168, 76, 0.1);
  backdrop-filter: blur(10px);
  z-index: 2;
}
.appt-block:hover { transform: scaleX(1.02); box-shadow: var(--shadow-gold); }
.appt-block.appt-confirmed { background: rgba(82, 192, 122, 0.12); border-color: var(--success); }
.appt-block.appt-pending { background: rgba(201, 168, 76, 0.12); border-color: var(--gold); }
.appt-block.appt-cancelled { background: rgba(224, 82, 82, 0.1); border-color: var(--danger); opacity: 0.6; }
.appt-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.appt-service { font-size: 0.75rem; color: var(--grey-mid); }
.now-indicator {
  position: absolute; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  pointer-events: none;
}
.now-line { flex: 1; height: 2px; background: var(--danger); }
.now-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); flex-shrink: 0; }
.now-time { font-size: 0.7rem; color: var(--danger); font-weight: 600; white-space: nowrap; }

/* ---- Team Section ---- */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.barber-card {
  text-align: center; padding: 32px 24px;
  background: var(--dark2); border-radius: var(--radius-lg);
  border: 1px solid rgba(201,168,76,0.08);
  transition: var(--transition);
}
.barber-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-6px);
}
.barber-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 20px;
  border: 3px solid var(--gold); display: block;
}
.barber-name { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 4px; }
.barber-role { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.barber-bio { font-size: 0.85rem; color: var(--grey-mid); line-height: 1.6; }

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: var(--transition-slow);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:first-child { grid-row: span 2; }
.gallery-item:nth-child(2) { aspect-ratio: 4/3; }
.gallery-item:nth-child(3) { aspect-ratio: 4/3; }

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  padding: 32px; background: var(--dark2);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201,168,76,0.08);
  position: relative;
}
.testimonial-card::before {
  content: '"'; position: absolute; top: 16px; left: 24px;
  font-family: var(--font-serif); font-size: 5rem; color: var(--gold);
  opacity: 0.15; line-height: 1;
}
.testimonial-stars { color: var(--gold); margin-bottom: 16px; font-size: 1rem; }
.testimonial-text { font-style: italic; color: var(--grey); margin-bottom: 20px; line-height: 1.7; }
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--gold-dim);
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-date { font-size: 0.8rem; color: var(--grey-mid); }

/* ---- CTA Section ---- */
.cta-section {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-xl);
  padding: 80px 60px; text-align: center;
  margin: 0 24px;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Footer ---- */
.footer {
  background: var(--dark); padding: 80px 0 40px;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
}
.footer-brand p { color: var(--grey-mid); font-size: 0.9rem; margin-top: 16px; max-width: 280px; }
.footer-title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--grey-mid); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem; color: var(--grey-mid);
}

/* ---- Auth Pages ---- */
.auth-page {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  position: relative; overflow: hidden;
}
.auth-visual img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.5);
}
.auth-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.5), rgba(201,168,76,0.1));
  display: flex; flex-direction: column; justify-content: center; padding: 60px;
}
.auth-form-side {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px; background: var(--dark);
}
.auth-form-inner { max-width: 400px; margin: 0 auto; width: 100%; }
.auth-title { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 8px; }
.auth-subtitle { color: var(--grey-mid); margin-bottom: 40px; }
.auth-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0; color: var(--grey-dark); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--grey-dark);
}
.auth-switch { text-align: center; margin-top: 24px; color: var(--grey-mid); font-size: 0.9rem; }

/* ---- Dashboard ---- */
.dashboard-layout {
  display: grid; grid-template-columns: 260px 1fr; min-height: 100vh;
}
.sidebar {
  background: var(--dark); padding: 0;
  border-right: 1px solid rgba(201,168,76,0.08);
  position: fixed; left: 0; top: 0; bottom: 0; width: 260px;
  display: flex; flex-direction: column; z-index: 100;
}
.sidebar-header {
  padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-user {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px; margin-bottom: 8px;
  background: rgba(201,168,76,0.05); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: var(--black); flex-shrink: 0;
}
.sidebar-user-name { font-weight: 600; font-size: 0.95rem; }
.sidebar-user-role { font-size: 0.75rem; color: var(--gold); }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  cursor: pointer; margin-bottom: 4px;
  color: var(--grey-mid); font-size: 0.9rem; font-weight: 500;
  transition: var(--transition); text-decoration: none; border: none;
  background: none; width: 100%; text-align: left;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.sidebar-nav-item.active { background: rgba(201,168,76,0.1); color: var(--gold); }
.sidebar-nav-item svg { flex-shrink: 0; }
.sidebar-section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--grey-dark);
  padding: 16px 14px 8px;
}
.sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.05); }

.dashboard-main { margin-left: 260px; padding: 40px; min-height: 100vh; }
.dash-header { margin-bottom: 40px; }
.dash-title { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 600; }
.dash-subtitle { color: var(--grey-mid); margin-top: 4px; }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px;
}
.stat-card {
  background: var(--dark2); border-radius: var(--radius-lg);
  border: 1px solid rgba(201,168,76,0.08);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.stat-card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: rgba(201,168,76,0.1);
}
.stat-card-value { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); }
.stat-card-label { font-size: 0.8rem; color: var(--grey-mid); }

/* ---- Tables ---- */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th {
  text-align: left; padding: 12px 16px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--grey-mid);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: var(--dark3);
}
.data-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.data-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.data-table td {
  padding: 14px 16px; font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table tr:last-child td { border-bottom: none; }

/* ---- Modals ---- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--dark2); border-radius: var(--radius-xl);
  border: 1px solid rgba(201,168,76,0.15);
  padding: 40px; width: 90%; max-width: 520px;
  transform: translateY(20px) scale(0.97); transition: var(--transition);
  box-shadow: var(--shadow-deep);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.modal-title { font-family: var(--font-serif); font-size: 1.4rem; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: none;
  color: var(--grey-mid); cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* ---- Toast ---- */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  padding: 14px 20px; border-radius: var(--radius);
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; min-width: 280px;
  animation: slideIn 0.3s ease;
}
.toast.success { border-color: rgba(82,192,122,0.3); }
.toast.error { border-color: rgba(224,82,82,0.3); }
.toast.info { border-color: rgba(201,168,76,0.3); }
.toast-icon { font-size: 1.1rem; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ---- Tabs ---- */
.tabs { display: flex; gap: 4px; margin-bottom: 28px; background: var(--dark3); border-radius: var(--radius); padding: 4px; }
.tab-btn {
  flex: 1; padding: 10px 16px; border-radius: calc(var(--radius) - 4px);
  background: none; border: none; color: var(--grey-mid);
  font-size: 0.88rem; font-weight: 500; cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active { background: var(--dark2); color: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* ---- Page Transitions ---- */
.page { display: none; }
.page.active { display: block; }
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .booking-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-row: auto; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Auth */
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 40px 24px; }

  /* Dashboard / Admin */
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .dashboard-main { margin-left: 0; padding: 16px; }

  /* Hero */
  .hero-stats { display: none; }
  .hero-content { padding-top: 156px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Sections */
  .section { padding: 64px 0; }
  .cta-section { padding: 48px 24px; margin: 0 12px; }
  .cta-section .btn { width: 100%; justify-content: center; }

  /* Grids */
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Calendar */
  .time-slots { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .time-slot { font-size: 0.78rem; padding: 8px 4px; }
  .calendar-header { padding: 16px; }

  /* Booking panel stacks below on mobile — already 1 col from 1024px breakpoint */
  .booking-panel { position: static; }

  /* Tables: horizontal scroll */
  .data-table { display: block; overflow-x: auto; white-space: nowrap; }

  /* Dashboard stats */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card-value { font-size: 1.6rem; }

  /* Touch targets */
  .btn { min-height: 44px; }
  .cal-day { min-height: 36px; }
  .time-slot { min-height: 40px; }
  .sidebar-nav-item { min-height: 44px; }
  .form-control { min-height: 48px; font-size: 16px; } /* 16px prevents iOS zoom */

  /* Modal */
  .modal { padding: 28px 20px; margin: 16px; width: calc(100% - 32px); }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.6rem; }
  .container { padding: 0 16px; }
}
