/* Soul Arts & Events — main.css — v2.5 purple brand */
:root {
  --ink:    #1a0a2e;        /* deep purple-black (was warm brown) */
  --gold:   #421355;        /* primary brand purple (exact logo color) */
  --gold2:  #6b2d8b;        /* hover purple */
  --purple-light: #8b3aad;  /* lighter accent */
  --cream:  #f8f5ff;        /* cool off-white with purple tint */
  --white:  #ffffff;
  --mid:    #6b6b6b;
  --light:  #e8e0f0;        /* purple-tinted light border */
  --red:    #dc2626;
  --green:  #16a34a;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 16px rgba(66,19,85,.12);
  --shadow-lg: 0 8px 40px rgba(66,19,85,.20);
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --transition: .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.page-content { padding: 40px 0 80px; }

/* ── NAV ── */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(66,19,85,.4);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #d4b8f0;
  font-weight: 600;
}
.nav-logo img { height: 112px; width: auto; border-radius: 50%; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: #ccc;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); font-weight: 600; }

/* Sign In button */
.btn-signin {
  background: var(--gold) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px !important;
  padding: 7px 18px !important;
  border: 1px solid rgba(255,255,255,.2) !important;
}
.btn-signin:hover { background: var(--gold2) !important; }

/* User menu */
.user-menu { position: relative; }
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition);
}
.user-menu-trigger:hover { background: rgba(255,255,255,.2); }
.user-menu-trigger svg { flex-shrink: 0; }
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  overflow: hidden;
  z-index: 200;
  display: none;
}
.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  padding: 11px 18px;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  background: none;
  border: none;
  transition: background var(--transition);
}
.user-dropdown a:hover,
.user-dropdown button:hover { background: var(--cream); }
.user-dropdown .divider { border-top: 1px solid var(--light); margin: 4px 0; }
.user-dropdown button#btn-logout { color: var(--red); }

/* ── HERO ── */
.hero {
  background: var(--ink);
  background-image: radial-gradient(ellipse at 60% 40%, rgba(107,45,139,.25) 0%, transparent 70%);
  padding: 70px 24px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #d4b8f0;
  margin-bottom: 14px;
}
.hero p {
  color: #bbb;
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── STEPPER ── */
.stepper {
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--white);
  font-size: 14px;
  color: var(--mid);
  border-right: 1px solid var(--light);
}
.step:last-child { border-right: none; }
.step.active { background: #f5eeff; color: var(--ink); font-weight: 600; }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--light);
  color: var(--mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.step.active .step-num { background: var(--gold); color: #fff; }

/* ── BOOKING LAYOUT ── */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .booking-layout { grid-template-columns: 1fr; }
}

/* ── DAY VIEW ── */
.day-view {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.day-view-header {
  background: var(--ink);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.day-view-header h2 {
  font-family: var(--font-display);
  color: #d4b8f0;
  font-size: 1.4rem;
}
.day-view-header p { color: #a888c8; font-size: 13px; margin-top: 2px; }
.day-nav { display: flex; gap: 8px; align-items: center; }
.day-nav button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.day-nav button:hover { background: rgba(255,255,255,.18); }
.day-nav .btn-today {
  width: auto;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 13px;
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 600;
}
.day-nav .btn-today:hover { background: var(--gold2); border-color: var(--gold2); }
.slots-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.time-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid var(--light);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.time-slot:hover:not(.past):not(.unavailable) {
  border-color: var(--gold);
  background: #f8f0ff;
}
.time-slot.selected {
  border-color: var(--gold);
  background: #f5eeff;
}
.time-slot.past, .time-slot.unavailable {
  opacity: .5;
  cursor: not-allowed;
}
.slot-time { font-size: 14px; font-weight: 500; }
.slot-label { font-size: 12px; color: var(--mid); }
.slot-check {
  width: 20px; height: 20px;
  border: 2px solid var(--light);
  border-radius: 4px;
  transition: all var(--transition);
}
.time-slot.selected .slot-check {
  background: var(--gold);
  border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── MINI CALENDAR ── */
.mini-cal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mini-cal-header {
  background: var(--ink);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mini-cal-header h3 {
  font-family: var(--font-display);
  color: #d4b8f0;
  font-size: 1.1rem;
}
.mini-cal-nav button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition);
}
.mini-cal-nav button:hover { background: rgba(255,255,255,.2); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 12px;
}
.cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--mid);
  padding: 4px 0 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cal-day {
  text-align: center;
  padding: 7px 4px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.cal-day:hover:not(.past):not(.empty) { background: #f5eeff; }
.cal-day.past { color: var(--light); cursor: default; }
.cal-day.empty { cursor: default; }
.cal-day.selected {
  background: var(--gold);
  color: #fff;
  font-weight: 700;
}
.cal-day.has-bookings::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.cal-day.selected::after { background: rgba(255,255,255,.7); }

/* ── RIGHT PANEL (booking form) ── */
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--light);
  font-weight: 600;
  font-size: 15px;
}
.card-body { padding: 20px; }

/* Booking type cards */
.type-cards { display: flex; flex-direction: column; gap: 8px; }
.type-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--light);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
}
.type-card:hover { border-color: var(--gold); background: #f8f0ff; }
.type-card.selected { border-color: var(--gold); background: #f5eeff; }
.type-icon { font-size: 22px; flex-shrink: 0; }
.type-label { font-weight: 600; font-size: 14px; }
.type-price { font-size: 12px; color: var(--mid); }
.type-rate { font-weight: 600; color: var(--gold); font-size: 13px; }

/* Duration picker */
.duration-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.duration-row label { font-size: 13px; color: var(--mid); min-width: 70px; }
.duration-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border-radius: 8px;
  padding: 6px 12px;
}
.duration-ctrl button {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--light);
  background: var(--white);
  font-size: 16px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.duration-ctrl span { font-weight: 700; font-size: 16px; min-width: 24px; text-align: center; }

/* Price preview */
.price-preview {
  background: var(--cream);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  display: none;
}
.price-row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--mid); }
.price-row.total { font-weight: 700; color: var(--ink); border-top: 1px solid var(--light); margin-top: 6px; padding-top: 8px; }
.price-row.deposit-note { color: var(--gold); font-size: 12px; }

/* Selected summary */
.selected-summary {
  font-size: 13px;
  color: var(--mid);
  padding: 8px 0;
  min-height: 24px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold2); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--light);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--gold); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #b91c1c; }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--light);
  border-radius: 8px;
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--gold); }
.form-hint { font-size: 12px; color: var(--mid); margin-top: 4px; }

/* ── AUTH PAGE ── */
.auth-page {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--ink) 0%, #2d0d45 100%);
}
.auth-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}
.auth-box-header {
  background: var(--ink);
  padding: 32px 36px 24px;
  text-align: center;
}
.auth-box-header h1 {
  font-family: var(--font-display);
  color: #d4b8f0;
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.auth-box-header p { color: #aaa; font-size: 14px; }
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--light);
}
.auth-tab {
  flex: 1;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--mid);
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.auth-form { padding: 28px 32px 32px; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-link { font-size: 13px; color: var(--mid); text-align: center; margin-top: 16px; }
.auth-link a { color: var(--gold); font-weight: 600; }

/* ── ALERT ── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-error { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ── CHECKOUT ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; }
}
.summary-card { position: sticky; top: 80px; }
.summary-rows { font-size: 14px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--light);
}
.summary-row .label { color: var(--mid); }
.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  font-weight: 700;
  font-size: 16px;
}
.deposit-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f5eeff;
  border-radius: 8px;
  font-size: 12px;
  color: #5b1a7a;
  border: 1px solid #d4b8f0;
}

/* Agreement section */
.agreement-section { display: none; }
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--cream);
  border: 1.5px solid var(--light);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}
.pdf-link:hover { border-color: var(--gold); }
.chk-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  cursor: pointer;
}
.chk-row input[type=checkbox] { margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.btn-accept {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: not-allowed;
  background: var(--light);
  color: var(--mid);
  margin-top: 12px;
  transition: all var(--transition);
}
.btn-accept.enabled { background: var(--gold); color: #fff; cursor: pointer; }
.btn-accept.enabled:hover { background: var(--gold2); }
.accepted-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

/* Square */
.payment-section { display: none; }
#card-container { min-height: 90px; margin-bottom: 16px; }
#pay-error { color: var(--red); font-size: 13px; display: none; margin-bottom: 12px; }

/* ── MY BOOKINGS ── */
.booking-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.booking-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.booking-type { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.booking-date { font-size: 13px; color: var(--mid); }
.booking-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.status-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-confirmed { background: #f0fdf4; color: var(--green); }
.status-pending   { background: #fffbeb; color: #92400e; }
.status-cancelled { background: #fef2f2; color: var(--red); }
.booking-amount { font-size: 13px; font-weight: 600; color: var(--mid); }
.booking-actions { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--light); }
.btn-cancel-booking {
  padding: 8px 16px;
  border: 1.5px solid #fecaca;
  border-radius: 7px;
  background: none;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-cancel-booking:hover { background: #fef2f2; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,10,46,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--light);
  font-weight: 700;
  font-size: 16px;
}
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--mid);
  cursor: pointer;
  line-height: 1;
}
.modal-body { padding: 24px; }
.refund-table { width: 100%; font-size: 14px; margin: 14px 0; border-collapse: collapse; }
.refund-table td { padding: 6px 0; }
.refund-table td:last-child { text-align: right; font-weight: 600; }
.refund-table tr.total td { border-top: 2px solid var(--light); padding-top: 10px; font-weight: 700; font-size: 16px; }
.modal-footer { padding: 0 24px 24px; display: flex; gap: 10px; flex-direction: column; }

/* ── TOAST ── */
#toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 13px 20px;
  border-radius: 10px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  display: none;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
}

/* ── ADMIN ── */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: calc(100vh - 60px);
}
.admin-sidebar {
  background: var(--ink);
  padding: 24px 0;
}
.admin-sidebar a {
  display: block;
  padding: 11px 24px;
  color: #ccc;
  font-size: 14px;
  transition: all var(--transition);
}
.admin-sidebar a:hover,
.admin-sidebar a.active { color: #d4b8f0; background: rgba(107,45,139,.15); }
.admin-main { padding: 32px; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-section h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 24px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .settings-grid { grid-template-columns: 1fr; } }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--cream);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--mid);
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--light); vertical-align: middle; }
.data-table tr:hover td { background: #fafafa; }

/* ── CONFIRMATION ── */
.confirmation-box {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  text-align: center;
}
.confirmation-icon { font-size: 56px; margin-bottom: 20px; }
.confirmation-box h1 { font-family: var(--font-display); font-size: 2rem; color: var(--green); margin-bottom: 12px; }
.confirmation-box p { color: var(--mid); font-size: 15px; margin-bottom: 8px; }
.confirmation-details {
  margin: 24px 0;
  text-align: left;
  background: var(--cream);
  border-radius: 10px;
  padding: 20px;
  font-size: 14px;
}
.conf-row { display: flex; justify-content: space-between; padding: 6px 0; }
.conf-row .label { color: var(--mid); }
.conf-row .value { font-weight: 600; }