/* Good Trouble Bar — reservation flow
   Ported from the Claude Design source "Good Trouble Bar Booking.dc.html". */

:root {
  --accent: #C9A253;
  --on-accent: #221A0D;

  --bg-page: #080706;
  --bg-app: #13110E;
  --bg-panel: #1C1917;

  --ink: #F2EDE4;
  --ink-strong: #F7F2E9;
  --ink-soft: #C9C2B4;
  --ink-softer: #B8B0A2;
  --muted: #8C8478;
  --dim: #6B6459;
  --disabled: #4A453D;

  --danger: #B5654F;
  --success: #7A9B76;
  --lilac: #9E9ECF;

  --line: rgba(255, 255, 255, .1);
  --line-soft: rgba(255, 255, 255, .06);
  --field: rgba(255, 255, 255, .05);
  --field-border: rgba(255, 255, 255, .12);
  --surface: rgba(255, 255, 255, .04);

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg-page);
  font-family: var(--sans);
}

input, select, textarea, button { font-family: var(--sans); }
::placeholder { color: var(--dim); }

button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@keyframes gt-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes gt-up { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: translateY(0) } }
@keyframes gt-spin { to { transform: rotate(360deg) } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- shell ---------- */

.page {
  min-height: 100vh;
  background: var(--bg-page);
  display: flex;
  justify-content: center;
}

.phone {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg-app);
  color: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, .5);
}

.screen { display: flex; flex-direction: column; min-height: 100vh; }
.enter { animation: gt-up .35s ease both; }

.noscript {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 24px;
  color: var(--ink);
  font-family: var(--sans);
  text-align: center;
}
.noscript a { color: var(--accent); }

h1.title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  margin: 8px 0 4px;
  color: var(--ink-strong);
  font-weight: 400;
}
h1.title--spaced { margin-bottom: 16px; }
.subtitle { margin: 0 0 20px; color: var(--muted); font-size: 13.5px; }
.subtitle a, .fineprint a { color: var(--accent); }

/* ---------- hero (step 1) ---------- */

.hero { position: relative; width: 100%; height: 340px; flex: none; }
.hero-media { position: absolute; top: 0; left: 0; right: 0; height: 220px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0) 55%, var(--bg-app) 100%);
  pointer-events: none;
}
.hero-body { position: absolute; left: 20px; right: 20px; bottom: 16px; }
.hero-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  line-height: 1.05;
  color: var(--ink-strong);
}
.hero-address { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- sticky top bar (steps 2-6) ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-app);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-back { background: none; border: none; color: var(--ink); padding: 4px; display: flex; cursor: pointer; }
.topbar-title {
  flex: 1;
  min-width: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icon-round {
  background: var(--line-soft);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex: none;
}

/* ---------- stepper ---------- */

.stepper {
  display: flex;
  align-items: center;
  width: calc(100% - 40px);
  max-width: 360px;
  margin: 0 auto;
  padding: 16px 0 6px;
  gap: 4px;
}
.stepper-seg { display: flex; align-items: center; flex: 1; }
.stepper-seg:last-child { flex: 0 0 22px; }
.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: var(--dim);
}
.step-dot.is-active { border-color: var(--accent); color: var(--accent); }
.step-dot.is-done { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

.step-line { height: 1.5px; flex: 1; background: rgba(255, 255, 255, .12); margin: 0 2px; }
.step-line.is-done { background: var(--accent); }

.step-label {
  width: calc(100% - 40px);
  max-width: 360px;
  margin: 0 auto;
  padding: 0 0 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}

.content { flex: 1; padding: 4px 20px 120px; }
.content--three-step { padding-bottom: 36px; }

.form-section { margin-top: 24px; }
.form-section .field-label { margin-bottom: 10px; }

/* ---------- step 1 : seating ---------- */

.seat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seat-card {
  background: var(--surface);
  border: 1.5px solid var(--field-border);
  border-radius: 16px;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-height: 130px;
  justify-content: center;
  color: var(--ink);
}
.seat-card svg { stroke: var(--ink); }
.seat-card.is-sel { background: var(--accent); border-color: var(--accent); }
.seat-card.is-sel svg { stroke: var(--on-accent); }
.seat-card.is-sel .seat-name, .seat-card.is-sel .seat-sub { color: var(--on-accent); }
.seat-name { color: var(--ink); font-weight: 700; font-size: 15px; }
.seat-sub { color: var(--muted); font-size: 11.5px; }

/* ---------- step 2 : calendar ---------- */

.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 10px; }
.cal-nav {
  background: var(--line-soft);
  border: 1px solid var(--field-border);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cal-nav:disabled { color: var(--disabled); cursor: default; }
.cal-month { font-weight: 700; font-size: 14.5px; color: var(--ink); }

.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekdays { margin-bottom: 4px; }
.cal-weekday { text-align: center; font-size: 10px; color: var(--dim); font-weight: 700; padding: 4px 0; }

.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1.5px solid rgba(255, 255, 255, .08);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px;
  cursor: pointer;
}
.cal-cell.is-blank { background: transparent; border-color: transparent; opacity: 0; pointer-events: none; }
.cal-cell.is-past { color: var(--disabled); opacity: .4; cursor: default; }
.cal-cell.is-full { background: rgba(181, 101, 79, .12); border-color: rgba(181, 101, 79, .3); color: var(--danger); }
.cal-cell.is-sel { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cal-tag { font-size: 7px; font-weight: 800; letter-spacing: .02em; color: var(--danger); }
.cal-cell.is-sel .cal-tag { color: var(--on-accent); }

.fineprint { margin: 16px 0 0; color: var(--dim); font-size: 12px; }

/* ---------- step 3 : guests ---------- */

.guest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.guest-btn {
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--field-border);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.guest-btn.is-sel { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.guest-btn.is-over { background: rgba(255, 255, 255, .02); color: var(--disabled); }
.guest-grid--compact { grid-template-columns: repeat(6, 1fr); gap: 7px; }
.guest-grid--compact .guest-btn { aspect-ratio: auto; min-height: 46px; border-radius: 11px; font-size: 14px; }
.guest-grid--compact .guest-btn--large { grid-column: span 2; }

.large-group-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(201, 162, 83, .35);
  border-radius: 14px;
  background: rgba(201, 162, 83, .08);
}
.large-group-box strong { color: var(--accent); font-size: 14px; }
.large-group-box p { margin: 7px 0 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.55; }

/* ---------- step 4 : time ---------- */

.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.time-btn {
  padding: 16px 6px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px solid var(--field-border);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.time-btn.is-sel { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.walkin {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  gap: 3px;
  font-size: 12px;
}
.walkin strong { color: var(--ink); }
.walkin span { color: var(--muted); }
.walkin a { color: var(--accent); font-weight: 700; text-decoration: none; margin-top: 3px; }

/* ---------- step 5 : contact ---------- */

.field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}

.field {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--field);
  border: 1.5px solid var(--field-border);
  color: var(--ink);
  font-size: 15px;
  outline: none;
}
.field:focus { border-color: var(--accent); }
.content--three-step .field { margin: 7px 0 18px; }
.field--name { margin: 6px 0 20px; }
.content--three-step .field--email { margin: 6px 0 0; }
.hint--email { margin-bottom: 10px; }

.optional { color: var(--dim); font-weight: 600; text-transform: none; letter-spacing: 0; }
.notes--customer { margin-bottom: 0; min-height: 92px; }

.phone-row { display: flex; gap: 4px; margin: 8px 0 4px; justify-content: center; align-items: center; }
.phone-prefix {
  width: 26px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  flex: none;
}
.phone-box {
  width: auto;
  min-width: 0;
  max-width: 30px;
  height: 42px;
  border-radius: 8px;
  background: var(--field);
  border: 1.5px solid var(--field-border);
  color: var(--ink);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  padding: 0;
  flex: 1 1 0;
}
.phone-box:focus { border-color: var(--accent); }
.phone-sep { color: var(--dim); font-weight: 700; }
.hint--phone { margin: 0 0 20px; }

.hint { margin-top: 10px; color: var(--muted); font-size: 12px; }

/* ---------- step 6 : summary ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.row { display: flex; justify-content: space-between; gap: 16px; }
.row-key { color: var(--muted); font-size: 13px; flex: none; }
.row-val { font-weight: 700; font-size: 13.5px; text-align: right; }
.row-val--wrap { word-break: break-all; }
.divider { height: 1px; background: rgba(255, 255, 255, .08); }

.summary-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 4px 0 20px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.summary-compact strong { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; line-height: 1.45; }
.summary-compact button { background: none; border: none; color: var(--accent); font-size: 12px; font-weight: 800; cursor: pointer; }
.review-card { margin-top: 14px; }

/* ---------- step 7 : confirmation ---------- */

.confirm { animation: gt-up .4s ease both; text-align: center; padding-top: 24px; }
.confirm-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(122, 155, 118, .15);
  border: 1.5px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.confirm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.confirm-card-label { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.confirm-id { font-size: 17px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.confirm-date { font-size: 14.5px; font-weight: 700; }
.confirm-meta { display: flex; gap: 14px; font-size: 13.5px; color: var(--ink-soft); flex-wrap: wrap; }
.confirm-note { margin: 18px 0 0; color: var(--muted); font-size: 12.5px; }
.confirm-actions { display: flex; gap: 10px; margin-top: 22px; }
.confirm-actions a {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  background: var(--line-soft);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  text-align: center;
  text-decoration: none;
}
.link-btn {
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* ---------- sticky footer nav ---------- */

.footnav {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(19, 17, 14, 0), var(--bg-app) 22%);
  padding: 14px 20px 22px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
}
.btn-back {
  flex: none;
  width: 52px;
  border-radius: 14px;
  background: var(--line-soft);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-primary {
  flex: 1;
  padding: 16px;
  border-radius: 14px;
  background: var(--accent);
  border: none;
  color: var(--on-accent);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.btn-primary:disabled { background: rgba(255, 255, 255, .08); color: #5A554C; cursor: default; }
.btn-primary--inline { width: 100%; margin-top: 24px; }

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(34, 26, 13, .3);
  border-top-color: var(--on-accent);
  border-radius: 50%;
  animation: gt-spin .7s linear infinite;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 8px;
}
.spinner--inline {
  margin: 0 0 0 6px;
  border-color: rgba(255, 255, 255, .18);
  border-top-color: var(--accent);
}
.spinner--lg {
  width: 30px;
  height: 30px;
  border-width: 3px;
  border-color: rgba(255, 255, 255, .12);
  border-top-color: var(--accent);
  margin-right: 0;
}

.boot-screen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}
.boot-screen--error { flex-direction: column; gap: 8px; color: var(--ink-soft); }
.boot-screen-detail { color: var(--dim); font-size: 11.5px; }

.admin--loading { align-items: center; justify-content: center; min-height: 100vh; }

.staff-row { text-align: center; padding: 0 0 18px; }
.staff-link { background: none; border: none; color: var(--dim); font-size: 11px; cursor: pointer; }

/* ---------- capacity modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: gt-fade .2s ease both;
}
.modal {
  background: var(--bg-panel);
  border: 1px solid var(--field-border);
  border-radius: 18px;
  padding: 26px 22px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}
.modal-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(181, 101, 79, .15);
  border: 1.5px solid var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.modal h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-weight: 400;
}
.modal p { margin: 0 0 18px; color: var(--ink-softer); font-size: 13.5px; line-height: 1.5; }
.modal-actions { display: flex; flex-direction: column; gap: 9px; }
.modal-actions a, .modal-actions button {
  padding: 13px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
}
.modal-actions .m-primary { background: var(--accent); color: var(--on-accent); font-weight: 800; border: none; }
.modal-actions .m-secondary {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--ink);
}
.modal-actions .m-ghost { background: none; border: none; color: var(--muted); }

/* ---------- staff login ---------- */

.login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 28px; }
.login-back { align-self: flex-start; background: none; border: none; color: var(--muted); font-size: 12.5px; margin-bottom: 26px; cursor: pointer; }
.login-title { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--ink-strong); margin-bottom: 4px; }
.login-sub { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.login .field { margin: 8px 0 8px; }
.login-error { color: var(--danger); font-size: 12.5px; margin-bottom: 8px; }
.login-submit {
  margin-top: 10px;
  padding: 15px;
  border-radius: 12px;
  background: var(--accent);
  border: none;
  color: var(--on-accent);
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
}
.login-demo { margin-top: 14px; color: #544E44; font-size: 11px; text-align: center; }

/* ---------- admin dashboard ---------- */

.admin { min-height: 100vh; display: flex; flex-direction: column; }
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.admin-name { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-strong); }
.admin-sub { font-size: 11px; color: var(--muted); }
.today-label { padding: 18px 20px 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.admin-logout {
  background: var(--line-soft);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.stats { padding: 18px 20px 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
}
.stat-num { font-size: 19px; font-weight: 800; color: var(--ink-strong); }
.stat-num.is-accent { color: var(--accent); }
.stat-label {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: 2px;
}

.section-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.section-label--strip { padding: 18px 20px 6px; }
.section-label--list { padding: 6px 20px 6px; }

.strip { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 16px; }
.strip-day {
  flex: none;
  width: 78px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
}
.strip-day.is-full { border-color: rgba(181, 101, 79, .35); }
.strip-day.is-full .strip-date { color: var(--danger); }
.strip-day.is-sel { background: var(--accent); border-color: var(--accent); }
.strip-day.is-sel .strip-date { color: var(--on-accent); }
.strip-day.is-sel .strip-groups, .strip-day.is-sel .strip-guests { color: #4A3B1A; }
.strip-date { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.strip-groups { font-size: 10px; color: var(--muted); margin-top: 6px; }
.strip-guests { font-size: 10px; color: var(--muted); margin-top: 2px; font-weight: 700; }

.booking-list { flex: 1; padding: 0 20px 40px; display: flex; flex-direction: column; gap: 10px; }
.empty { color: var(--dim); font-size: 13px; padding: 30px 0; text-align: center; }

.booking {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  width: 100%;
}
.booking-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.booking-time { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.booking-name { margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--ink); }
.booking-meta { margin-top: 2px; font-size: 12px; color: var(--muted); }
.booking-note { margin-top: 7px; color: var(--ink-softer); font-size: 11.5px; line-height: 1.45; }

.admin-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 2px 20px 14px; padding: 4px; background: var(--surface); border-radius: 12px; }
.admin-tabs button { border: none; border-radius: 9px; padding: 10px 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-tabs button.is-active { background: var(--accent); color: var(--on-accent); }
.admin-tabs span { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,.12); }

.badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
  flex: none;
}
.badge[data-status="Confirmed"] { background: rgba(122, 155, 118, .15); color: var(--success); }
.badge[data-status="Cancelled"] { background: rgba(181, 101, 79, .15); color: var(--danger); }
.badge[data-status="Completed"] { background: rgba(140, 140, 175, .15); color: var(--lilac); }
.badge[data-status="No Show"] { background: rgba(201, 162, 83, .15); color: var(--accent); }

/* ---------- admin detail drawer ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 110;
}
.drawer {
  background: var(--bg-panel);
  border: 1px solid var(--field-border);
  border-radius: 22px 22px 0 0;
  padding: 22px 20px 30px;
  max-width: 480px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  animation: gt-up .25s ease both;
}
.drawer-grip { width: 36px; height: 4px; background: rgba(255, 255, 255, .2); border-radius: 2px; margin: 0 auto 18px; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.drawer-name { font-weight: 800; font-size: 19px; color: var(--ink-strong); }
.drawer-id { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.drawer-close {
  background: var(--line-soft);
  border: none;
  color: var(--ink);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  flex: none;
}

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.drawer > .field-label { margin-top: 14px; }
.drawer > .field { margin-top: 7px; }
.detail-tile { background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.detail-key { font-size: 9.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.detail-val { font-size: 13px; font-weight: 700; margin-top: 3px; }

.guest-stepper { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.stepper-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--field);
  border: 1.5px solid var(--field-border);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.stepper-btn:disabled { color: var(--disabled); cursor: default; }
.stepper-value { font-size: 15px; font-weight: 800; color: var(--ink); min-width: 16px; text-align: center; }
.guest-count-input { width: 56px; height: 34px; border-radius: 8px; background: var(--field); border: 1.5px solid var(--field-border); color: var(--ink); text-align: center; font-size: 15px; font-weight: 800; outline: none; }
.guest-count-input:focus { border-color: var(--accent); }

.large-confirm { margin: 18px 0; padding: 16px; border: 1px solid rgba(201, 162, 83, .35); border-radius: 14px; background: rgba(201, 162, 83, .08); }
.large-confirm .field-label:not(:first-child) { margin-top: 14px; }
.large-confirm .field { margin-top: 7px; }
.large-confirm .btn-primary--inline { margin-top: 16px; }

.detail-error {
  margin: -6px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(181, 101, 79, .12);
  border: 1px solid rgba(181, 101, 79, .3);
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.5;
}

.delete-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.btn-danger-outline {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: none;
  border: 1.5px solid rgba(181, 101, 79, .4);
  color: var(--danger);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
.btn-danger-outline:disabled { opacity: .5; cursor: default; }

.delete-confirm-box {
  background: rgba(181, 101, 79, .08);
  border: 1px solid rgba(181, 101, 79, .3);
  border-radius: 14px;
  padding: 16px;
}
.delete-confirm-title { margin: 0 0 8px; font-weight: 800; font-size: 14.5px; color: var(--ink-strong); }
.delete-confirm-body { margin: 0 0 6px; font-size: 12.5px; color: var(--ink-soft); }
.delete-confirm-note { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.delete-confirm-actions { display: flex; gap: 10px; }
.delete-confirm-actions .m-ghost {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: var(--line-soft);
  border: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.delete-confirm-actions .m-ghost:disabled { opacity: .5; cursor: default; }
.btn-danger {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: var(--danger);
  border: none;
  color: #2A140D;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.btn-danger:disabled { opacity: .6; cursor: default; }

.detail-actions { display: flex; gap: 10px; margin-bottom: 18px; }
.detail-actions a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--line-soft);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 18px; }
.status-btn {
  padding: 11px;
  border-radius: 10px;
  background: var(--surface);
  border: 1.5px solid var(--field-border);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.status-btn.is-active[data-status="Confirmed"] { background: rgba(122, 155, 118, .15); border-color: var(--success); color: var(--success); }
.status-btn.is-active[data-status="Cancelled"] { background: rgba(181, 101, 79, .15); border-color: var(--danger); color: var(--danger); }
.status-btn.is-active[data-status="Completed"] { background: rgba(140, 140, 175, .15); border-color: var(--lilac); color: var(--lilac); }
.status-btn.is-active[data-status="No Show"] { background: rgba(201, 162, 83, .15); border-color: var(--accent); color: var(--accent); }

.notes {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  min-height: 70px;
  border-radius: 12px;
  background: var(--field);
  border: 1.5px solid var(--field-border);
  color: var(--ink);
  font-size: 13.5px;
  outline: none;
  resize: vertical;
}
.notes:focus { border-color: var(--accent); }

@media (max-width: 380px) {
  .guest-grid--compact { grid-template-columns: repeat(5, 1fr); }
  .guest-grid--compact .guest-btn--large { grid-column: span 1; }
  .time-grid { grid-template-columns: repeat(2, 1fr); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
