/* Yoga with Tallulah booking — same palette and fonts as the main site, sized for easy tapping */
:root {
  --sage: #8FAE8B;
  --sage-deep: #4E6B4A;
  --sage-darker: #3E5A3B;
  --sage-light: #EEF3ED;
  --ocean: #9ABAC7;
  --blush: #E8C4B8;
  --blush-light: #FBF1EE;
  --cream: #FAF7F2;
  --charcoal: #3D3D3D;
  --muted: #5F5F5F;
  --line: #E4DED4;
  --white: #FFFFFF;
  --danger: #A63D2F;
  --danger-light: #FBEDEA;
  --warn-light: #FFF6E0;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Karla', system-ui, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; line-height: 1.15; color: var(--charcoal); }
h1 { font-size: 2.1rem; margin-bottom: 0.4rem; }
h2 { font-size: 1.6rem; margin: 1.6rem 0 0.6rem; }
h3 { font-size: 1.3rem; }
a { color: var(--sage-deep); }
p { margin-bottom: 0.8rem; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 247, 242, 0.96);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 760px; margin: 0 auto; padding: 0.7rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.brand { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; font-weight: 600; color: var(--sage-deep); text-decoration: none; white-space: nowrap; }
@media (max-width: 420px) {
  .brand { font-size: 1.15rem; }
  .topbar-inner { padding: 0.6rem 0.75rem; gap: 0.4rem; }
  .topnav { gap: 0.25rem; }
  .topnav a { padding: 0.5rem 0.65rem; font-size: 0.9rem; }
}
@media (max-width: 350px) { .brand { font-size: 1rem; } }
.topnav { display: flex; gap: 0.4rem; align-items: center; }
.topnav a {
  white-space: nowrap; font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--charcoal);
  padding: 0.55rem 0.8rem; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.topnav a.active, .topnav a:hover { background: var(--sage-light); color: var(--sage-darker); }
.credit-pill {
  background: var(--sage-deep); color: var(--white) !important; padding: 0.45rem 0.85rem !important;
}
.credit-pill:hover { background: var(--sage-darker) !important; color: var(--white) !important; }

main { max-width: 760px; margin: 0 auto; padding: 1.2rem 1rem 4rem; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 52px; padding: 0.7rem 1.4rem; border-radius: 999px;
  font: 600 1rem 'Karla', system-ui, sans-serif; text-decoration: none; cursor: pointer;
  border: 2px solid var(--sage-deep); background: var(--sage-deep); color: var(--white);
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--sage-darker); border-color: var(--sage-darker); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--sage-deep); }
.btn.secondary:hover { background: var(--sage-light); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger.secondary { background: transparent; color: var(--danger); }
.btn.small { min-height: 44px; padding: 0.45rem 1rem; font-size: 0.92rem; }
.btn.block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.btn-row.stack { flex-direction: column; }
.linkbtn { background: none; border: none; color: var(--sage-deep); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0.5rem 0; min-height: 44px; }

label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field { margin-bottom: 1.1rem; }
.hint { font-size: 0.88rem; color: var(--muted); margin-top: 0.3rem; }
input, select, textarea {
  width: 100%; font: 1.05rem 'Karla', system-ui, sans-serif; color: var(--charcoal);
  padding: 0.8rem 0.9rem; min-height: 52px; border: 2px solid #CFC7BA; border-radius: 10px; background: var(--white);
}
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ocean); outline-offset: 2px;
}
input.code { font-size: 1.8rem; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; min-height: 44px; cursor: pointer; }
.check input { width: 26px; height: 26px; min-height: 0; accent-color: var(--sage-deep); }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 440px) { .inline-fields { grid-template-columns: 1fr; } }

/* ---------- cards & notices ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 0.8rem; }
.notice { border-radius: 12px; padding: 0.9rem 1rem; margin: 0.8rem 0; font-size: 0.98rem; }
.notice.info { background: var(--sage-light); }
.notice.warn { background: var(--warn-light); border: 1px solid #EBD9A6; }
.notice.error { background: var(--danger-light); border: 1px solid #EBC3BB; color: #7A2A20; }
.notice.success { background: var(--sage-light); border: 1px solid #C8D8C5; }
.notice strong { display: block; margin-bottom: 0.2rem; }

.price-strip { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.95rem; color: var(--muted); margin: 0.4rem 0 1rem; }
.price-strip b { color: var(--charcoal); }

/* ---------- timetable ---------- */
.day { margin-top: 1.4rem; }
.day-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.45rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--sage-darker); }
.class-row {
  display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.2rem 0.9rem; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.6rem;
}
.class-time { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.class-time .end { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.class-venue { font-weight: 700; font-size: 1.1rem; }
.class-hall { color: var(--muted); font-size: 0.92rem; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; background: var(--blush-light); color: #8A4B3C; border-radius: 999px; padding: 0.1rem 0.6rem; margin-left: 0.3rem; vertical-align: 2px; }
.class-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.6rem; flex-wrap: wrap; }
.spaces { font-weight: 600; font-size: 0.95rem; }
.spaces.low { color: #8A5A00; }
.spaces.full { color: var(--danger); }
.booked-badge { color: var(--sage-deep); font-weight: 700; }
.class-row.cancelled { background: #F4F1EC; }
.class-row.cancelled .class-time, .class-row.cancelled .class-venue, .class-row.cancelled .class-hall { text-decoration: line-through; color: #8A8A8A; }
.venue-filter { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0.2rem; }
.chip {
  border: 2px solid var(--line); background: var(--white); border-radius: 999px; padding: 0.4rem 0.9rem;
  font: 600 0.92rem 'Karla', sans-serif; color: var(--charcoal); min-height: 44px; cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--sage-deep); background: var(--sage-light); color: var(--sage-darker); }

/* ---------- booking / buying ---------- */
.summary { background: var(--sage-light); border-radius: var(--radius); padding: 1.1rem; margin: 1rem 0; }
.summary .big { font-size: 1.25rem; font-weight: 700; }
.packs { display: grid; gap: 0.7rem; margin-top: 0.8rem; }
.pack {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; text-align: left;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem;
  cursor: pointer; font: inherit; color: inherit; min-height: 72px;
}
.pack:hover { border-color: var(--sage); }
.pack .pack-name { font-weight: 700; font-size: 1.1rem; display: block; }
.pack .pack-note { font-size: 0.9rem; color: var(--muted); display: block; }
.pack .pack-price { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.9rem; font-weight: 600; color: var(--sage-deep); white-space: nowrap; }
.pack.featured { border-color: var(--sage-deep); }

/* ---------- account ---------- */
.balance { text-align: center; padding: 1.4rem 1rem; }
.balance .num { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 4rem; line-height: 1; font-weight: 600; color: var(--sage-deep); }
.balance .num.negative { color: var(--danger); }
.balance .lbl { font-weight: 600; }
.booking-item { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.confirm-box { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px dashed var(--line); }
details { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 0.5rem; color: var(--sage-deep); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '▸'; display: inline-block; transition: transform 0.15s ease; }
details[open] > summary::before { transform: rotate(90deg); }
.list-plain { list-style: none; }
.list-plain li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }

/* ---------- admin ---------- */
.admin-tabs { display: flex; gap: 0.3rem; margin: 0 0 1rem; border-bottom: 2px solid var(--line); overflow-x: auto; }
.admin-tabs a { padding: 0.7rem 0.9rem; font-weight: 700; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; min-height: 44px; }
.admin-tabs a.active { color: var(--sage-darker); border-color: var(--sage-deep); }
.stats { font-size: 0.95rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.9rem; margin-bottom: 0.8rem; }
.admin-class { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; text-decoration: none; color: inherit; }
.admin-class:hover { border-color: var(--sage); }
.meter { height: 8px; background: #EFEAE2; border-radius: 99px; overflow: hidden; margin-top: 0.35rem; width: 120px; }
.meter span { display: block; height: 100%; background: var(--sage); }
.meter span.over { background: #C98A2E; }
.count { font-weight: 700; font-size: 1.1rem; text-align: right; white-space: nowrap; }
.warn-text { color: #8A5A00; font-weight: 600; font-size: 0.88rem; }
.neg { color: var(--danger); font-weight: 700; }
.person { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.8rem; align-items: center; }
.person .name { font-weight: 700; font-size: 1.05rem; }
.person .meta { font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; }
.pill { display: inline-block; font-size: 0.8rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.55rem; }
.pill.ok { background: var(--sage-light); color: var(--sage-darker); }
.pill.no { background: var(--danger-light); color: var(--danger); }
.pill.cash { background: #EAF2F5; color: #34606F; }
.pill.free { background: #F3EEF7; color: #5E4378; }
.pill.credit { background: #F4F1EC; color: #5F5F5F; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.ledger th, table.ledger td { text-align: left; padding: 0.5rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ledger td.delta { font-weight: 700; white-space: nowrap; }
table.ledger td.delta.plus { color: var(--sage-deep); }
table.ledger td.delta.minus { color: var(--danger); }
.search-results { margin-top: 0.5rem; }
.search-results button { width: 100%; text-align: left; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- modal & toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(40, 40, 40, 0.45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; padding: 0; }
.modal { background: var(--cream); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 1.3rem 1.1rem 1.6rem; }
@media (min-width: 600px) { .modal-backdrop { align-items: center; padding: 1rem; } .modal { border-radius: 18px; } }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: var(--charcoal); color: var(--white); padding: 0.8rem 1.2rem; border-radius: 12px; z-index: 60; font-weight: 600; max-width: calc(100% - 2rem); }
.spinner { display: inline-block; width: 1.1em; height: 1.1em; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 2rem 0; text-align: center; color: var(--muted); }
footer.site-foot { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 2.5rem; font-size: 0.88rem; color: var(--muted); }
