/* LockedTee member portal, brand system.
   Palette: near-black #0E1116, warm ivory #F5F1E8, brass #C6A15B.
   Premium private-members-club concierge. No default-bootstrap look. */

:root {
  --ink: #0E1116;
  --ink-raise: #151A21;
  --ink-raise-2: #1B212A;
  --ivory: #F5F1E8;
  --ivory-dim: #C9C4B8;
  --ivory-faint: #8C887E;
  --brass: #C6A15B;
  --brass-soft: rgba(198, 161, 91, 0.16);
  --brass-line: rgba(198, 161, 91, 0.22);
  --hairline: rgba(245, 241, 232, 0.09);
  --ok: #7FB88A;
  --warn: #D9B25A;
  --bad: #C97F6E;
  --live: #6FA6C9;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.72);
  --serif: Georgia, "Times New Roman", ui-serif, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --space: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 620px at 78% -8%, rgba(198, 161, 91, 0.10), transparent 60%),
    radial-gradient(900px 520px at 6% 4%, rgba(198, 161, 91, 0.05), transparent 55%),
    var(--ink);
  min-height: 100vh;
}

a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--ivory); }

/* ---------- Brand wordmark ---------- */
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  gap: 0.62em;
}
.wordmark .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px var(--brass-soft);
  display: inline-block;
}
.wordmark b { font-weight: 600; color: var(--brass); }

/* ---------- Layout shell ---------- */
.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.topbar {
  border-bottom: 1px solid var(--hairline);
  background: rgba(14, 17, 22, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.topbar .meta {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ivory-faint);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.topbar .meta .who { color: var(--ivory-dim); }

.micro {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  color: var(--brass);
  font-weight: 600;
}

/* ---------- Hero band on the dashboard ---------- */
.hero {
  padding: 54px 0 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.35rem;
  line-height: 1.12;
  margin: 14px 0 8px;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--brass); }
.hero p.sub {
  color: var(--ivory-dim);
  max-width: 46ch;
  margin: 0;
  font-size: 1.02rem;
}

/* ---------- Section headers ---------- */
.section { padding: 22px 0 8px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.32rem;
  margin: 0;
  letter-spacing: 0.005em;
}
.section-head .count {
  color: var(--ivory-faint);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--ink-raise) 0%, rgba(21, 26, 33, 0.55) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }

/* Tee-time row card */
.tee {
  display: grid;
  grid-template-columns: 128px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 20px 24px;
}
.tee + .tee { border-top: 1px solid var(--hairline); }

.tee .date {
  border-right: 1px solid var(--hairline);
  padding-right: 20px;
}
.tee .date .dow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.66rem;
  color: var(--brass);
  font-weight: 600;
}
.tee .date .dnum {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1.05;
  margin-top: 2px;
}
.tee .date .mon {
  color: var(--ivory-faint);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.tee .body .course {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.tee .body .place { color: var(--ivory-faint); font-size: 0.84rem; }
.tee .body .detail {
  color: var(--ivory-dim);
  font-size: 0.88rem;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.tee .body .detail .k { color: var(--ivory-faint); }
.tee .body .note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ivory-faint);
}
.tee .body .note.bad { color: var(--bad); }

.tee .side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.tee .side .chosen {
  font-family: var(--serif);
  font-size: 1.24rem;
  color: var(--ivory);
}
.tee .side .chosen small { display: block; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-faint); margin-bottom: 2px; }

/* ---------- Status pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  color: var(--ivory-dim);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}
.pill.queued   { color: var(--ivory-dim); border-color: var(--hairline); }
.pill.scheduled{ color: var(--brass); border-color: var(--brass-line); background: var(--brass-soft); }
.pill.firing   { color: var(--live); border-color: rgba(111,166,201,0.3); }
.pill.booked   { color: var(--ok); border-color: rgba(127,184,138,0.32); background: rgba(127,184,138,0.08); }
.pill.needs_manual { color: var(--warn); border-color: rgba(217,178,90,0.32); }
.pill.failed   { color: var(--bad); border-color: rgba(201,127,110,0.32); }
.pill.canceled, .pill.skipped { color: var(--ivory-faint); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brass-line);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn:hover { background: var(--brass-soft); border-color: var(--brass); }
.btn.primary {
  background: var(--brass);
  color: #0E1116;
  border-color: var(--brass);
}
.btn.primary:hover { background: #d4b06a; }
.btn.ghost { border-color: var(--hairline); color: var(--ivory-dim); }
.btn.ghost:hover { border-color: var(--ivory-faint); background: rgba(245,241,232,0.04); color: var(--ivory); }
.btn.small { padding: 6px 12px; font-size: 0.74rem; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.rowactions { display: flex; gap: 8px; }

/* ---------- Request-a-booking form ---------- */
.request-card { padding: 26px 26px 28px; }
.request-card .lede { color: var(--ivory-dim); margin: 6px 0 20px; max-width: 52ch; }
.form-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 16px;
  align-items: end;
}
.field label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  color: var(--ivory-faint);
  margin-bottom: 8px;
  font-weight: 600;
}
.field select, .field input {
  width: 100%;
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  font-family: var(--sans);
  font-size: 0.94rem;
  appearance: none;
}
.field select:focus, .field input:focus,
.login input:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-soft);
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%); background-position: right 15px center, right 10px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

.formnote { margin-top: 14px; font-size: 0.82rem; color: var(--ivory-faint); }
.formnote.err { color: var(--bad); }

/* ---------- Empty state ---------- */
.empty {
  padding: 46px 26px;
  text-align: center;
  color: var(--ivory-faint);
}
.empty .mark { font-family: var(--serif); font-size: 1.1rem; color: var(--ivory-dim); }

/* ---------- Footer ---------- */
.foot {
  margin-top: 56px;
  border-top: 1px solid var(--hairline);
  padding: 26px 0 46px;
  color: var(--ivory-faint);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.foot .pledge { max-width: 54ch; }

/* ---------- Login page ---------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.login {
  width: 100%;
  max-width: 428px;
  background: linear-gradient(180deg, var(--ink-raise) 0%, rgba(21,26,33,0.5) 100%);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 44px 40px 38px;
}
.login .brandline { display: flex; justify-content: center; margin-bottom: 30px; }
.login h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.72rem;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.login h1 em { font-style: italic; color: var(--brass); }
.login .tag { text-align: center; color: var(--ivory-faint); font-size: 0.9rem; margin: 0 0 30px; }
.login .field { margin-bottom: 18px; }
.login .field input { padding: 13px 14px; }
.login .btn { width: 100%; padding: 13px; margin-top: 6px; }
.login .msg { margin-top: 16px; text-align: center; font-size: 0.85rem; color: var(--bad); min-height: 1.1em; }
.login .fine { margin-top: 24px; text-align: center; font-size: 0.76rem; color: var(--ivory-faint); }
.login .fine a { color: var(--brass); }

/* ---------- Onboarding (activation + add-a-course) ---------- */
.onboard-wrap {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 56px 20px 72px;
}
.onboard {
  width: 100%;
  max-width: 660px;
  background: linear-gradient(180deg, var(--ink-raise) 0%, rgba(21,26,33,0.5) 100%);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 44px 44px 40px;
}
.onboard.narrow { max-width: 480px; text-align: center; }
.onboard .brandline { display: flex; margin-bottom: 26px; }
.onboard.narrow .brandline { justify-content: center; }
.onboard h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 12px 0 10px;
}
.onboard h1 em { font-style: italic; color: var(--brass); }
.onboard .lede { color: var(--ivory-dim); margin: 0 0 24px; max-width: 54ch; font-size: 1.0rem; }
.onboard.narrow .lede { margin-left: auto; margin-right: auto; }
.onboard .fine { margin-top: 26px; font-size: 0.76rem; color: var(--ivory-faint); line-height: 1.6; }
.onboard.narrow .fine { text-align: center; }

/* account summary chip */
.acct-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding: 14px 18px;
  margin-bottom: 26px;
  border: 1px solid var(--brass-line);
  background: var(--brass-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ivory);
}
.acct-chip > div { min-width: 0; overflow-wrap: anywhere; }
.acct-chip .k {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  color: var(--ivory-faint);
  margin-bottom: 2px;
  font-weight: 600;
}

/* fieldset groups */
.fieldset {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0 0 8px;
  padding: 24px 0 6px;
}
.fieldset.terms-set { padding-bottom: 22px; }
.legend {
  font-family: var(--serif);
  font-size: 1.16rem;
  color: var(--ivory);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legend-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brass);
  color: #0E1116;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
}
.legend-sub { color: var(--ivory-faint); font-size: 0.86rem; margin: 8px 0 18px; max-width: 56ch; }

/* two-column field grid */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.grid2 .field.full { grid-column: 1 / -1; }
.field .hint { margin-top: 6px; font-size: 0.74rem; color: var(--ivory-faint); line-height: 1.5; }

.window-row { display: flex; align-items: center; gap: 10px; }
.window-row input { flex: 1; }
.window-row .to { color: var(--ivory-faint); font-size: 0.82rem; }

/* conditional field */
.hidden { display: none !important; }

/* terms checkbox */
.checkfield {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--ivory-dim);
  cursor: pointer;
  line-height: 1.5;
}
.checkfield input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
  border: 1px solid var(--brass-line);
  border-radius: 5px;
  background: var(--ink);
  cursor: pointer;
  position: relative;
  transition: background 140ms ease, border-color 140ms ease;
}
.checkfield input[type="checkbox"]:checked { background: var(--brass); border-color: var(--brass); }
.checkfield input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #0E1116;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkfield input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brass-soft); }
.checkfield a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }

.btn.big { width: 100%; padding: 15px; margin-top: 22px; font-size: 0.9rem; letter-spacing: 0.05em; }

/* add-a-course page (shares the dashboard shell) */
.onboard-page { padding-bottom: 60px; }
.onboard-card { padding: 8px 30px 30px; }
.onboard-card .fieldset:first-of-type { border-top: none; padding-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .shell { padding: 0 20px; }
  .topbar .shell { height: 64px; }
  .topbar .meta { gap: 12px; font-size: 0.74rem; }
  .hero { padding: 34px 0 14px; }
  .hero h1 { font-size: 1.82rem; }
  .tee {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tee .date {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding-right: 0;
    padding-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .tee .date .dnum { font-size: 1.4rem; }
  .tee .side { text-align: left; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; }
  .login { padding: 34px 24px 30px; }
  .onboard-wrap { padding: 28px 16px 48px; }
  .onboard { padding: 32px 22px 30px; }
  .onboard h1 { font-size: 1.6rem; }
  .grid2 { grid-template-columns: 1fr; }
  .onboard-card { padding: 6px 18px 22px; }
}

/* ---------- how payment works (per-course) ---------- */
.payrow { padding: 14px 0; border-top: 1px solid var(--brass-line); }
.payrow:first-of-type { border-top: 0; }
.payrow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.payrow-course { font-family: var(--font-display, Georgia, serif); font-size: 1.05rem; color: var(--ivory); }
.paytag {
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brass); background: var(--brass-soft); border: 1px solid var(--brass-line);
  border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.payrow-note { margin-top: 6px; color: var(--ivory-dim); font-size: 0.9rem; line-height: 1.5; }
