/* ============================================================
   Icarus Agenda — Premium Design System
   Palette originale: #f5f0e8 ivory · #c7a64a gold · #111111 black
   Stile elevato — ispirato a icarusenterprise.com
   ============================================================ */

:root {
  /* ── Palette ── */
  --ivory:        #faf8f4;
  --ivory-mid:    #f2ede6;
  --ivory-deep:   #e8e2d9;
  --ivory-border: rgba(17,17,17,0.08);

  --gold:         #deba6a;
  --gold-light:   #eacf8a;
  --gold-deep:    #c09a48;
  --gold-glow:    rgba(222,186,106,0.14);
  --gold-border:  rgba(222,186,106,0.35);

  --black:        #111111;
  --ink:          #1a1a1a;
  --ink-mid:      #3a3632;
  --ink-soft:     #6b6560;
  --ink-faint:    rgba(17,17,17,0.35);

  --white:        #ffffff;

  /* Status */
  --confirmed:    #2d9e5e;
  --confirmed-bg: rgba(45,158,94,0.08);
  --confirmed-bd: rgba(45,158,94,0.22);
  --pending:      #b07c15;
  --pending-bg:   rgba(176,124,21,0.08);
  --pending-bd:   rgba(176,124,21,0.22);
  --cancelled:    #c03535;
  --cancelled-bg: rgba(192,53,53,0.07);
  --cancelled-bd: rgba(192,53,53,0.22);

  /* Layout */
  --sidebar-w:  228px;

  /* Radii */
  --r-xs:  6px;
  --r-sm:  10px;
  --r:     14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Shadows — stratificati, più profondi */
  --shadow-xs: 0 1px 3px rgba(17,17,17,0.06), 0 1px 2px rgba(17,17,17,0.04);
  --shadow-sm: 0 2px 8px rgba(17,17,17,0.07), 0 1px 3px rgba(17,17,17,0.05);
  --shadow:    0 4px 20px rgba(17,17,17,0.09), 0 2px 8px rgba(17,17,17,0.06);
  --shadow-lg: 0 12px 40px rgba(17,17,17,0.13), 0 4px 16px rgba(17,17,17,0.08);
  --shadow-xl: 0 24px 64px rgba(17,17,17,0.18), 0 8px 24px rgba(17,17,17,0.10);

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--ivory);
  color: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 0.9rem; outline: none; }
::selection { background: rgba(199,166,74,0.18); }

/* ── Typography ── */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.01em;
  transition: all 0.22s var(--ease-out-expo);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--black);
  color: var(--ivory);
  box-shadow: 0 2px 8px rgba(17,17,17,0.18);
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17,17,17,0.22);
}
.btn-primary:active { transform: translateY(0); }

/* Variante gold per accenti principali */
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(199,166,74,0.25);
}
.btn-gold:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(199,166,74,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--ivory-border);
}
.btn-ghost:hover {
  background: var(--ivory-mid);
  color: var(--black);
  border-color: rgba(17,17,17,0.14);
}

.btn-full { width: 100%; justify-content: center; padding: 13px 20px; font-size: 0.95rem; border-radius: var(--r); }

/* ════════════════════════════════════════
   FORM ELEMENTS
════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: 'DM Mono', 'Courier New', monospace;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--ivory-border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--black);
  transition: border-color 0.18s, box-shadow 0.18s;
  font-size: 0.9rem;
  box-shadow: var(--shadow-xs);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(17,17,17,0.28); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b6560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-group textarea { resize: vertical; min-height: 72px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-error {
  color: var(--cancelled);
  font-size: 0.82rem;
  padding: 9px 13px;
  background: var(--cancelled-bg);
  border: 1.5px solid var(--cancelled-bd);
  border-radius: var(--r-sm);
  font-weight: 500;
}

/* ── Spinner ── */
.spinner {
  width: 32px; height: 32px;
  border: 2.5px solid var(--ivory-mid);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════
   LOGIN PAGE
════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
}
/* Radial texture */
.login-page::before {
  content: '';
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(199,166,74,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.login-container {
  width: 100%; max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s var(--ease-out-expo) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.login-logo {
  filter: drop-shadow(0 6px 18px rgba(199,166,74,0.30));
  transition: filter 0.4s ease;
}
.login-logo:hover { filter: drop-shadow(0 8px 24px rgba(199,166,74,0.45)); }

.login-title { font-size: 1.9rem; color: var(--black); letter-spacing: -0.02em; }
.login-subtitle {
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'DM Mono', 'Courier New', monospace;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--ivory-border);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
}
/* Linea oro in cima */
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold-light) 60%, transparent 100%);
}

.login-card h2 { font-size: 1.3rem; color: var(--black); font-weight: 500; }
.login-card form { display: flex; flex-direction: column; gap: 16px; }

.input-wrapper { position: relative; }
.input-wrapper input { width: 100%; padding-right: 46px; }
.toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--ink-faint);
  padding: 4px; transition: color 0.15s;
}
.toggle-pw:hover { color: var(--ink-mid); }

.login-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-family: 'DM Mono', monospace;
}
.login-footer a { color: var(--gold); }

/* ════════════════════════════════════════
   APP LAYOUT
════════════════════════════════════════ */
.app-page { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--black);
  display: flex;
  flex-direction: column;
  padding: 22px 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sidebar-nav {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,0.38);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s var(--ease-out-expo);
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
.nav-item.active {
  background: rgba(199,166,74,0.12);
  color: var(--gold-light);
  border: 1px solid rgba(199,166,74,0.22);
}

.sidebar-footer {
  padding: 14px 14px 4px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(199,166,74,0.12);
  border: 1.5px solid rgba(199,166,74,0.3);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.78rem;
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
}
.user-name  { color: rgba(255,255,255,0.72); font-size: 0.82rem; font-weight: 600; }
.user-tenant { color: rgba(255,255,255,0.28); font-size: 0.7rem; font-family: 'DM Mono', monospace; }
.btn-logout {
  margin-left: auto;
  background: none; border: none;
  color: rgba(255,255,255,0.22);
  padding: 7px; border-radius: var(--r-xs);
  transition: all 0.15s;
}
.btn-logout:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.07); }

/* ── Main ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--ivory);
}

/* ════════════════════════════════════════
   CALENDAR TOOLBAR
════════════════════════════════════════ */
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(245,240,232,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ivory-border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-xs);
}
.cal-toolbar-left, .cal-toolbar-right {
  display: flex; align-items: center; gap: 8px;
}

.cal-period {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.view-toggle {
  display: flex;
  background: var(--ivory-mid);
  border: 1.5px solid var(--ivory-border);
  border-radius: 999px;
  padding: 3px;
}
.view-btn {
  padding: 5px 15px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.18s;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.view-btn.active {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-xs);
}

/* ════════════════════════════════════════
   CALENDAR WRAPPER
════════════════════════════════════════ */
.cal-wrapper { flex: 1; overflow: auto; background: var(--ivory); }

/* ════════════════════
   WEEK VIEW
════════════════════ */
.week-view { display: flex; flex-direction: column; }

.week-header {
  display: grid;
  grid-template-columns: 54px repeat(7, 1fr);
  border-bottom: 1.5px solid var(--ivory-border);
  background: rgba(245,240,232,0.95);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 10;
}
.week-header-gutter {}

.week-day-header {
  padding: 12px 8px;
  text-align: center;
  border-left: 1px solid var(--ivory-border);
}
.week-day-name {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-weight: 700;
  font-family: 'DM Mono', monospace;
}
.week-day-num {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-mid);
  line-height: 1.2;
  margin-top: 3px;
  font-family: 'Outfit', sans-serif;
}
.week-day-header.today .week-day-num {
  color: var(--white);
  background: var(--black);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 3px auto 0;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(17,17,17,0.25);
}
.week-day-header.today .week-day-name { color: var(--gold); }

.week-body { display: flex; overflow: auto; flex: 1; }

.week-time-col {
  width: 54px; flex-shrink: 0;
  position: sticky; left: 0;
  background: var(--ivory);
  z-index: 5;
  border-right: 1px solid var(--ivory-border);
}
.week-time-slot {
  height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 5px 10px 0 0;
  font-size: 0.65rem;
  color: rgba(17,17,17,0.28);
  font-weight: 600;
  font-family: 'DM Mono', monospace;
  border-bottom: 1px solid rgba(17,17,17,0.04);
}
.week-time-slot:first-child { visibility: hidden; }

.week-days-grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); }

.week-day-col { position: relative; border-left: 1px solid var(--ivory-border); }
.week-hour-cell {
  height: 64px;
  border-bottom: 1px solid rgba(17,17,17,0.04);
  cursor: pointer;
  transition: background 0.12s;
}
.week-hour-cell:hover { background: rgba(199,166,74,0.05); }

/* Current time */
.now-line {
  position: absolute; left: 0; right: 0;
  height: 1.5px;
  background: var(--gold);
  z-index: 8; pointer-events: none;
  box-shadow: 0 0 6px rgba(199,166,74,0.4);
}
.now-line::before {
  content: '';
  position: absolute; left: -5px; top: -4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(199,166,74,0.5);
}

/* Appointment blocks */
.appt-block {
  position: absolute;
  left: 3px; right: 3px;
  border-radius: var(--r-xs);
  padding: 5px 9px;
  font-size: 0.73rem;
  overflow: hidden;
  cursor: pointer;
  z-index: 6;
  border-left: 2.5px solid transparent;
  transition: transform 0.16s var(--ease-out-expo), box-shadow 0.16s;
  box-shadow: var(--shadow-xs);
}
.appt-block:hover {
  transform: translateY(-1px) scale(1.015);
  box-shadow: var(--shadow-sm);
  z-index: 7;
}
.appt-block.confirmed {
  background: var(--confirmed-bg);
  border-left-color: var(--confirmed);
  color: #1a6b3c;
}
.appt-block.pending {
  background: var(--pending-bg);
  border-left-color: var(--pending);
  color: #7a5710;
}
.appt-block.cancelled {
  background: var(--cancelled-bg);
  border-left-color: var(--cancelled);
  color: #8b2020;
  opacity: 0.65;
}
.appt-block-time { font-weight: 700; font-size: 0.65rem; opacity: 0.72; font-family: 'DM Mono', monospace; }
.appt-block-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.appt-block-type { opacity: 0.65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.68rem; }

/* ════════════════════
   MONTH VIEW
════════════════════ */
.month-view {}

.month-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1.5px solid var(--ivory-border);
  background: rgba(245,240,232,0.95);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 10;
}
.month-weekday {
  padding: 11px 4px;
  text-align: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-weight: 700;
  font-family: 'DM Mono', monospace;
}
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.month-cell {
  min-height: 110px;
  padding: 8px;
  border-right: 1px solid rgba(17,17,17,0.05);
  border-bottom: 1px solid rgba(17,17,17,0.05);
  cursor: pointer;
  transition: background 0.12s;
}
.month-cell:nth-child(7n) { border-right: none; }
.month-cell:hover { background: rgba(199,166,74,0.04); }
.month-cell.other-month .month-day-num { color: rgba(17,17,17,0.2); }
.month-cell.today .month-day-num {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(17,17,17,0.25);
}

.month-day-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-mid);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: 'Outfit', sans-serif;
  transition: background 0.12s;
}

.month-appts { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.month-appt-pill {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.69rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: opacity 0.12s;
  border-left: 2px solid transparent;
}
.month-appt-pill:hover { opacity: 0.78; }
.month-appt-pill.confirmed { background: var(--confirmed-bg); color: #1a6b3c; border-left-color: var(--confirmed); }
.month-appt-pill.pending   { background: var(--pending-bg);   color: #7a5710; border-left-color: var(--pending);   }
.month-appt-pill.cancelled { background: var(--cancelled-bg); color: #8b2020; border-left-color: var(--cancelled); opacity:.5; }
.month-more { font-size: 0.68rem; color: var(--gold); font-weight: 700; padding: 1px 7px; font-family: 'DM Mono', monospace; }

/* ════════════════════════════════════════
   MODAL
════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(17,17,17,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayIn 0.2s ease both;
}
@keyframes overlayIn { from { opacity: 0 } to { opacity: 1 } }

.modal {
  background: var(--white);
  border: 1px solid var(--ivory-border);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.28s var(--ease-out-expo) both;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--ivory-border) transparent;
}
.modal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold-light) 60%, transparent 100%);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
@keyframes modalIn {
  from { transform: translateY(14px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 18px;
  border-bottom: 1px solid rgba(17,17,17,0.06);
}
.modal-title { font-size: 1.15rem; color: var(--black); font-weight: 500; }

.modal-close {
  background: var(--ivory-mid);
  border: 1.5px solid var(--ivory-border);
  border-radius: 50%;
  color: var(--ink-soft);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--ivory-deep); color: var(--black); }

.modal-body {
  padding: 22px 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px 24px;
  border-top: 1px solid rgba(17,17,17,0.06);
}
.modal-actions { display: flex; gap: 10px; }

/* Duration picker */
.duration-picker { display: flex; flex-direction: column; gap: 7px; }
.duration-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.duration-preset {
  padding: 5px 12px;
  border: 1.5px solid var(--ivory-border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
  font-family: 'DM Mono', monospace;
  transition: all 0.15s;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.duration-preset:hover { border-color: var(--gold-border); color: var(--gold-deep); }
.duration-preset.active {
  border-color: var(--gold);
  background: rgba(199,166,74,0.08);
  color: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* Status picker */
.status-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.status-opt {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 15px;
  border: 1.5px solid var(--ivory-border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.18s;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.status-opt:hover { border-color: rgba(17,17,17,0.2); color: var(--black); }
.status-opt.active.confirmed { border-color: var(--confirmed-bd); background: var(--confirmed-bg); color: #1a6b3c; }
.status-opt.active.pending   { border-color: var(--pending-bd);   background: var(--pending-bg);   color: #7a5710; }
.status-opt.active.cancelled { border-color: var(--cancelled-bd); background: var(--cancelled-bg); color: #8b2020; }

.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-confirmed { background: var(--confirmed); }
.dot-pending   { background: var(--pending);   }
.dot-cancelled { background: var(--cancelled); }

/* ════════════════════════════════════════
   BOOKING PAGE
════════════════════════════════════════ */
.booking-page {
  background: var(--ivory);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  position: relative;
  overflow: hidden;
}
.booking-page::before {
  content: '';
  position: fixed; top: -10vh; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(199,166,74,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.booking-container {
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative; z-index: 1;
  animation: fadeUp 0.7s var(--ease-out-expo) both;
}

.booking-header {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--ivory-border);
}
.booking-studio-name { font-size: 1.5rem; color: var(--black); }
.booking-studio-type {
  color: var(--ink-soft);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 3px;
  font-family: 'DM Mono', monospace;
}

.booking-loading { display: flex; justify-content: center; padding: 48px; }
.booking-error { text-align: center; padding: 48px; color: var(--cancelled); }

.booking-success {
  background: var(--white);
  border: 1px solid var(--ivory-border);
  border-radius: var(--r-xl);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  position: relative; overflow: hidden;
}
.booking-success::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), transparent);
}
.booking-success h2 { font-size: 1.6rem; color: var(--black); }
.booking-success p  { color: var(--ink-soft); max-width: 300px; font-size: 0.9rem; }

.success-icon {
  width: 64px; height: 64px;
  background: var(--confirmed-bg);
  border: 1.5px solid var(--confirmed-bd);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: pop 0.45s var(--ease-out-back) both;
}
@keyframes pop { 0%{transform:scale(0);opacity:0} 100%{transform:scale(1);opacity:1} }

.booking-step {
  background: var(--white);
  border: 1px solid var(--ivory-border);
  border-radius: var(--r-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
.booking-step::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.step-title { font-size: 1.2rem; color: var(--black); font-weight: 500; }
.back-btn { align-self: flex-start; font-size: 0.82rem; border: none !important; background: none !important; padding-left: 0; color: var(--ink-soft) !important; box-shadow: none !important; }
.back-btn:hover { color: var(--black) !important; }

.slots-hint { color: var(--ink-soft); font-size: 0.85rem; text-align: center; padding: 20px 0; }
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.slot-btn {
  padding: 10px 4px;
  border: 1.5px solid var(--ivory-border);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-mid);
  text-align: center;
  transition: all 0.18s var(--ease-out-expo);
  font-family: 'DM Mono', monospace;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}
.slot-btn:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.slot-btn.selected {
  border-color: var(--gold);
  background: rgba(199,166,74,0.08);
  color: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold-glow), var(--shadow-xs);
  transform: translateY(-1px);
}
.slot-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.slots-loading { display: flex; justify-content: center; padding: 24px; }
.no-slots { text-align: center; padding: 24px; color: var(--ink-soft); font-size: 0.88rem; }

.booking-footer {
  text-align: center; color: var(--ink-soft); font-size: 0.72rem;
  font-family: 'DM Mono', monospace; padding-top: 4px;
}
.booking-footer strong { color: var(--gold); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ivory-deep); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(17,17,17,0.2); }
