/* ============ CRITICAL FIX: enforce hidden attribute ============ */
[hidden] { display: none !important; }

/* ============ THEME TOKENS ============ */
:root {
  --bg: #fbf7f1;
  --bg-alt: #f3ece1;
  --surface: #ffffff;
  --surface-2: #faf5ec;
  --text: #1a120b;
  --text-soft: #5a4a3a;
  --muted: #8a7860;
  --border: #e6dccb;
  --primary: #8a5a2b;
  --primary-hover: #6f4520;
  --accent: #d4a24c;
  --accent-soft: #f4dba0;
  --danger: #b3261e;
  --success: #2e7d32;
  --warning: #b07000;
  --shadow: 0 4px 16px rgba(40, 25, 10, 0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-display: 'Georgia', 'Times New Roman', serif;
}

[data-theme="dark"] {
  --bg: #14110d;
  --bg-alt: #1c1814;
  --surface: #221d17;
  --surface-2: #2a241d;
  --text: #f5ede0;
  --text-soft: #c9b89a;
  --muted: #8e7f6a;
  --border: #3a2f25;
  --primary: #d4a24c;
  --primary-hover: #e7b966;
  --accent: #f4dba0;
  --accent-soft: #5a4520;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110d; --bg-alt: #1c1814; --surface: #221d17; --surface-2: #2a241d;
    --text: #f5ede0; --text-soft: #c9b89a; --muted: #8e7f6a; --border: #3a2f25;
    --primary: #d4a24c; --primary-hover: #e7b966; --accent: #f4dba0; --accent-soft: #5a4520;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  }
}

/* ============ BASE ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-top: 0; }
h3 { font-size: 1.25rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
button { font-family: inherit; }
kbd {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 3px; padding: 1px 5px; font-size: 0.75rem; font-family: monospace;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.1;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; min-height: 36px; }
.btn-danger { background: var(--danger); color: #fff; }
.icon-btn {
  background: transparent; border: none; font-size: 1.6rem; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); }

/* ============ PROMO BANNER ============ */
.promo-banner {
  background: var(--accent);
  color: #1a120b;
  text-align: center;
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
}
.promo-close {
  position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; font-size: 1.4rem; cursor: pointer; color: inherit;
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(8px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-family: var(--font-display); font-size: 0.95rem;
  letter-spacing: -0.5px;
}
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.brand-name em { font-style: italic; color: var(--accent); font-weight: 400; }

.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.primary-nav a {
  color: var(--text-soft); font-weight: 500; font-size: 0.95rem; padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--primary); text-decoration: none; border-color: var(--accent); }
.nav-cta {
  background: var(--primary); color: #fff !important; padding: 0.55rem 1.1rem !important;
  border-radius: var(--radius-sm); border: none !important;
}
.nav-cta:hover { background: var(--primary-hover); border-bottom-color: transparent !important; }
.theme-toggle {
  background: transparent; border: 1px solid var(--border); border-radius: 50%;
  width: 38px; height: 38px; cursor: pointer; font-size: 1rem;
}
.theme-toggle:hover { background: var(--surface-2); }

.nav-toggle {
  display: none; background: transparent; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: 0.2s; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 0.5rem 0; max-height: 0; overflow: hidden; transition: max-height 0.25s;
  }
  .primary-nav.open { max-height: 100vh; }
  .primary-nav a, .primary-nav button { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-cta { margin: 0.5rem 1.25rem; text-align: center; }
  .theme-toggle { margin: 0.5rem 1.25rem; width: auto; border-radius: var(--radius-sm); height: 44px; }
}

/* ============ HERO ============ */
.hero {
  background:
    linear-gradient(rgba(20,17,13,0.65), rgba(20,17,13,0.85)),
    radial-gradient(circle at 30% 30%, #5a3a1c, #1a120b 70%);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(212,162,76,0.04) 0 2px, transparent 2px 12px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 800px; }
.hero .eyebrow {
  color: var(--accent); letter-spacing: 2px; font-size: 0.8rem;
  text-transform: uppercase; margin: 0 0 0.5rem;
}
.hero h1 { margin: 0 0 1rem; color: #fff; }
.hero .lead { font-size: 1.15rem; color: #e6dccb; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,0.1); }
.hero-strip {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-strip div { display: flex; flex-direction: column; }
.hero-strip strong { color: var(--accent); font-size: 1.5rem; font-family: var(--font-display); }
.hero-strip span { font-size: 0.85rem; color: #c9b89a; }

/* ============ SECTIONS ============ */
.section { padding: 4rem 0; }
.section.alt { background: var(--bg-alt); }
.section-title { margin-bottom: 0.5rem; }
.section-title::after {
  content: ''; display: block; width: 50px; height: 3px;
  background: var(--accent); margin-top: 0.5rem;
}
.section-sub { color: var(--text-soft); margin-bottom: 2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

.value-list { list-style: none; padding: 0; }
.value-list li { padding: 0.4rem 0; font-size: 1.05rem; }
.about-card {
  background: var(--surface); padding: 2rem; border-radius: var(--radius);
  border-left: 4px solid var(--accent); box-shadow: var(--shadow);
}
.about-card blockquote {
  margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-style: italic;
}
.about-card cite { display: block; margin-top: 1rem; font-style: normal; color: var(--muted); font-size: 0.9rem; }

/* ============ SERVICES ============ */
.grid { display: grid; gap: 1.25rem; }
.services-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.service-card {
  background: var(--surface); padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); transition: transform 0.15s, box-shadow 0.15s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card h3 { margin: 0 0 0.5rem; }
.service-card .price { font-size: 1.5rem; color: var(--primary); font-weight: 700; }
.service-card .duration { color: var(--muted); font-size: 0.85rem; }
.service-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ============ BARBERS ============ */
.barbers-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.barber-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.barber-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.barber-avatar {
  width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; font-size: 4rem; color: #fff;
  font-family: var(--font-display); font-weight: 700;
}
.barber-card .body { padding: 1.25rem; }
.barber-card h3 { margin: 0 0 0.25rem; }
.barber-card .specialty { color: var(--accent); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.barber-card .bio { font-size: 0.9rem; color: var(--text-soft); margin: 0.75rem 0; }

/* ============ GALLERY ============ */
.gallery-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip {
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.45rem 1rem; border-radius: 999px; cursor: pointer;
  font-size: 0.85rem; color: var(--text); font-weight: 500;
}
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}
.gallery-item {
  aspect-ratio: 1; background: var(--surface-2); border-radius: var(--radius-sm);
  cursor: pointer; overflow: hidden; position: relative;
  display: grid; place-items: center; font-size: 3rem;
  border: 1px solid var(--border);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item .gallery-tag {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff; font-size: 0.75rem; padding: 0.5rem; text-transform: uppercase; letter-spacing: 1px;
}

/* ============ BOOKING ============ */
.booking-form {
  background: var(--surface); padding: 2rem; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.booking-steps {
  list-style: none; padding: 0; margin: 0 0 2rem;
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 120px; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; border-bottom: 3px solid var(--border);
  color: var(--muted); font-size: 0.9rem; font-weight: 600;
}
.step span {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); display: grid; place-items: center;
  font-size: 0.85rem;
}
.step.active { color: var(--primary); border-bottom-color: var(--primary); }
.step.active span { background: var(--primary); color: #fff; }
.step.done { color: var(--success); border-bottom-color: var(--success); }
.step.done span { background: var(--success); color: #fff; font-size: 0; }
.step.done span::before { content: '✓'; font-size: 0.9rem; }

.booking-step { border: none; padding: 0; margin: 0; }
.booking-step legend { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 1rem; }

.option-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem; margin-bottom: 1.5rem;
}
.option-card {
  background: var(--surface-2); border: 2px solid var(--border);
  padding: 1rem; border-radius: var(--radius-sm); cursor: pointer;
  text-align: left; font-family: inherit; color: inherit;
  transition: all 0.15s;
}
.option-card:hover { border-color: var(--primary); }
.option-card.selected { border-color: var(--primary); background: var(--accent-soft); }
.option-card .opt-title { font-weight: 700; }
.option-card .opt-sub { font-size: 0.85rem; color: var(--text-soft); margin-top: 0.25rem; }
.option-card .opt-price { float: right; color: var(--primary); font-weight: 700; }

.datetime-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .datetime-grid { grid-template-columns: 1fr; } }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.5rem; }
.slot {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 0.6rem; border-radius: var(--radius-sm); cursor: pointer;
  text-align: center; font-size: 0.9rem; color: inherit; font-family: inherit;
}
.slot:hover:not(:disabled) { border-color: var(--primary); }
.slot.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.slot:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.step-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border);
}

.booking-summary {
  background: var(--surface-2); padding: 1rem; border-radius: var(--radius-sm);
  margin: 1rem 0; border-left: 3px solid var(--accent);
}
.booking-summary dt { font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.booking-summary dd { margin: 0 0 0.5rem; }

.success-card {
  background: var(--surface); padding: 2rem; border-radius: var(--radius);
  border-left: 4px solid var(--success); box-shadow: var(--shadow); margin-top: 1.5rem;
}
.success-card h3 { color: var(--success); margin-top: 0; }

.manage-card {
  background: var(--surface-2); padding: 1.5rem; border-radius: var(--radius);
  margin-top: 2rem; border: 1px solid var(--border);
}
.manage-card h3 { margin-top: 0; }
.inline-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 180px; }

/* ============ FORMS ============ */
.form-grid { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; }
.field-check { flex-direction: row; align-items: center; gap: 0.5rem; }
.field-check label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--text-soft); }
input, select, textarea {
  font-family: inherit; font-size: 1rem; padding: 0.65rem 0.85rem;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 44px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(138, 90, 43, 0.15);
}
input.error, select.error, textarea.error { border-color: var(--danger); }
input.error:focus, select.error:focus, textarea.error:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.15); }
input.valid, select.valid, textarea.valid { border-color: var(--success); }
.field-msg { font-size: 0.8rem; margin-top: 0.3rem; min-height: 1em; color: var(--danger); }
.field-msg.valid { color: var(--success); }

/* ============ COMMUNITY ============ */
.community-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.tab {
  background: transparent; border: none; padding: 0.75rem 1.25rem;
  cursor: pointer; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; font-size: 0.95rem;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab:hover { color: var(--text); }

.events-list { display: grid; gap: 1rem; }
.event-card {
  background: var(--surface); padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); display: grid;
  grid-template-columns: 100px 1fr; gap: 1.25rem;
}
@media (max-width: 540px) { .event-card { grid-template-columns: 1fr; } }
.event-date {
  background: var(--accent-soft); color: var(--primary);
  border-radius: var(--radius-sm); padding: 0.75rem; text-align: center;
  font-family: var(--font-display);
}
.event-date strong { display: block; font-size: 1.8rem; line-height: 1; }
.event-date span { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.event-card h3 { margin: 0 0 0.5rem; }
.event-card .event-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.event-card p { margin: 0; color: var(--text-soft); }

/* ============ REVIEWS ============ */
.reviews-summary {
  background: var(--surface); padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 2rem; text-align: center;
}
.rating-big strong { font-size: 3rem; font-family: var(--font-display); color: var(--primary); display: block; line-height: 1; }
.stars { color: var(--accent); font-size: 1.4rem; letter-spacing: 2px; }
.stars .empty { color: var(--border); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.review-card {
  background: var(--surface); padding: 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.review-card .review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.review-card .review-name { font-weight: 700; }
.review-card .review-meta { font-size: 0.8rem; color: var(--muted); }
.review-card .review-text { font-style: italic; color: var(--text-soft); }

.leave-review {
  background: var(--surface); padding: 1rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.leave-review summary { cursor: pointer; font-weight: 600; padding: 0.5rem 0; }
.leave-review[open] summary { margin-bottom: 1rem; border-bottom: 1px solid var(--border); }

.star-input { display: flex; gap: 0.25rem; }
.star-input button {
  background: transparent; border: none; font-size: 2rem;
  color: var(--border); cursor: pointer; padding: 0;
}
.star-input button.filled { color: var(--accent); }

/* ============ VISIT / CONTACT ============ */
.visit-info { font-size: 1.05rem; margin-bottom: 1.5rem; }
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.hours-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.hours-table td:first-child { font-weight: 600; }
.hours-table td:last-child { text-align: right; color: var(--text-soft); }
.hours-table tr.today td { color: var(--primary); font-weight: 700; }

.map-embed {
  width: 100%; min-height: 400px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-2), var(--bg-alt));
  display: grid; place-items: center;
  border: 1px solid var(--border); overflow: hidden;
  cursor: pointer; position: relative;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 400px; border: none; }

/* ============ FOOTER ============ */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: var(--text-soft); }
.socials { display: flex; gap: 0.75rem; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--surface-2); border-radius: 50%; font-weight: 700; font-size: 0.85rem;
}
.copyright { text-align: center; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); }

.staff-login-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text) !important;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s;
}
.staff-login-link:hover {
  background: var(--primary);
  color: #fff !important;
  text-decoration: none;
  border-color: var(--primary);
}
.staff-hint {
  margin-top: 0.5rem !important;
  font-size: 0.75rem !important;
}

/* ============ MODAL ============ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative; background: var(--surface);
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 1000px; width: 100%; max-height: 90vh; overflow: auto;
}
.admin-panel { max-width: 1100px; }
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-head h2 { margin: 0; }

/* ============ ADMIN ============ */
.admin-login { padding: 2rem; max-width: 400px; margin: 0 auto; }
.admin-dash { display: flex; min-height: 500px; }
@media (max-width: 768px) { .admin-dash { flex-direction: column; } }
.admin-tabs {
  display: flex; flex-direction: column; gap: 0;
  background: var(--surface-2); border-right: 1px solid var(--border);
  min-width: 200px; padding: 0.5rem 0;
}
@media (max-width: 768px) {
  .admin-tabs { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--border); }
}
.admin-tab {
  background: transparent; border: none; padding: 0.8rem 1.25rem;
  text-align: left; cursor: pointer; font-weight: 500;
  color: var(--text-soft); border-left: 3px solid transparent; font-size: 0.95rem;
}
.admin-tab:hover { background: var(--surface); color: var(--text); }
.admin-tab.active { background: var(--surface); color: var(--primary); border-left-color: var(--primary); font-weight: 700; }
.admin-tab.logout { color: var(--danger); margin-top: auto; }
.admin-pane { flex: 1; padding: 1.5rem; overflow-x: auto; }
.admin-pane h3 { margin-top: 0; }
.admin-filters { margin-bottom: 1rem; }

.admin-table-wrap { overflow-x: auto; margin-top: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table tr:hover { background: var(--surface-2); }
.admin-table .row-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-pending { background: var(--accent-soft); color: var(--warning); }
.badge-confirmed { background: #d1e7d4; color: var(--success); }
.badge-cancelled { background: #f5d1cf; color: var(--danger); }
.badge-approved { background: #d1e7d4; color: var(--success); }
[data-theme="dark"] .badge-pending { background: #4a3a10; color: var(--accent); }
[data-theme="dark"] .badge-confirmed { background: #1c3a1f; color: #8ec890; }
[data-theme="dark"] .badge-cancelled { background: #3a1a1a; color: #e89b97; }
[data-theme="dark"] .badge-approved { background: #1c3a1f; color: #8ec890; }

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all 0.25s;
  z-index: 200; max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); color: #fff; }
.toast.success { background: var(--success); color: #fff; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.92);
  place-items: center; padding: 2rem;
}
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: none; color: #fff; font-size: 2.5rem;
  cursor: pointer; line-height: 1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .booking-form { padding: 1.25rem; }
  .booking-steps .step { font-size: 0.75rem; min-width: 60px; padding: 0.4rem 0.3rem; }
  .booking-steps .step span { width: 22px; height: 22px; font-size: 0.75rem; }
}
