/* Drive By Outreach: coral/amber gradient, teal, warm cream (matches the homepage design) */
:root {
  --coral: #FF6B5B;
  --amber: #FFA439;
  --teal: #0D9488;
  --teal-l: #14B8A6;
  --cream: #FFFBF5;
  --page: #FFFDF9;
  --navy: #0F172A;
  --ink: #1E293B;
  --s700: #334155;
  --s600: #475569;
  --s500: #64748B;
  --s200: #E2E8F0;
  --s100: #F1F5F9;
  --s50: #F8FAFC;
  --o100: #FFEDD5;
  --o50: #FFF7ED;
  --amber-50: #FFFBEB;
  --amber-300: #FCD34D;
  --amber-600: #D97706;
  --danger: #DC2626;
  --focus: #FF6B5B;
  --venmo: #008CFF;
  --zelle: #6D1ED4;
  --grad: linear-gradient(135deg, #FF6B5B 0%, #FFA439 100%);
  --grad-teal: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background-color: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- design tokens shared with the homepage ---------- */
.gradient-accent { background: var(--grad); }
.gradient-teal { background: var(--grad-teal); }
.pattern-dots { background-image: radial-gradient(#FF6B5B22 1.5px, transparent 1.5px); background-size: 20px 20px; }
@keyframes pulse-subtle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .85; transform: scale(1.03); } }
.animate-subtle { animation: pulse-subtle 3s infinite ease-in-out; }
@media (prefers-reduced-motion: reduce) {
  .animate-subtle, .animate-ping, .animate-pulse { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* selected supply tab on the homepage: always coral with white text */
.tab-btn[aria-selected="true"] { background-color: #FF6B5B; color: #fff; }

/* ---------- page pieces used by club.html and admin.html ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }
.page-wrap { max-width: 1024px; }
.muted { color: var(--s500); }
.tiny { font-size: 13px; }
.eyebrow { color: var(--coral); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.section-title { font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: var(--navy); line-height: 1.15; margin: 4px 0 0; }

/* ---------- buttons & forms ---------- */
a.btn, button.btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px;
  border: 0; border-radius: 16px; padding: 12px 22px; min-height: 48px;
  background: var(--grad); color: #fff; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 20px -8px rgba(249, 115, 22, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 24px -8px rgba(249, 115, 22, .45); }
.btn:active { transform: scale(.98); }
.btn.lane { background: var(--grad); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--s200); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--coral); color: var(--coral); }
.btn.dark { background: var(--navy); box-shadow: 0 10px 20px -10px rgba(15, 23, 42, .5); }
.btn.teal { background: var(--grad-teal); box-shadow: 0 10px 20px -10px rgba(13, 148, 136, .5); }
.btn.venmo { background: var(--venmo); box-shadow: none; }
.btn.zelle { background: var(--zelle); box-shadow: none; }
.btn.danger { background: var(--danger); box-shadow: none; }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: 13.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
label { display: block; font-weight: 700; font-size: 12px; text-transform: uppercase; color: var(--s600); margin-top: 14px; letter-spacing: .02em; }
body input, body select, body textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 15px;
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--s200); background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--coral); outline: none; box-shadow: 0 0 0 3px rgba(255, 107, 91, .2); }
fieldset { border: 0; padding: 0; margin: 14px 0 0; }
legend { font-weight: 700; font-size: 12px; text-transform: uppercase; color: var(--s600); padding: 0; letter-spacing: .02em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; background: var(--s100); padding: 4px; border-radius: 16px; }
.seg label { margin: 0; text-transform: none; letter-spacing: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: block; text-align: center; padding: 10px; border-radius: 12px;
  font-weight: 700; font-size: 14px; cursor: pointer; color: var(--s500);
}
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.tw label, .tw input, .tw select, .tw textarea { margin-top: 0; }
.tw label { text-transform: none; }
.tw label.uppercase { text-transform: uppercase; }
.form-error { color: var(--danger); font-weight: 600; margin-top: 10px; font-size: 14px; }

/* ---------- club page hero ---------- */
.club-hero { position: relative; overflow: hidden; padding: 44px 0 40px; background: linear-gradient(to bottom, rgba(255, 237, 213, .6), var(--cream) 55%, #fff); }
.club-hero .pattern-dots { position: absolute; inset: 0; opacity: .4; pointer-events: none; }
.club-hero .wrap { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
  background: #F0FDFA; border: 1px solid rgba(153, 246, 228, .8); color: #0F766E; font-size: 13px; font-weight: 700;
}
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-l); }
.club-hero h1 { font-size: clamp(34px, 6.5vw, 58px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--navy); margin: 18px 0 0; }
.club-hero h1 .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.club-hero .lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--s600); margin: 14px 0 0; max-width: 46ch; }
.hero-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.coach-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 999px; }

/* ---------- countdown ---------- */
.countdown {
  display: inline-flex; flex-direction: column; gap: 2px; margin-top: 20px;
  background: #fff; border: 1px solid var(--o100); border-radius: 18px; padding: 12px 18px;
  box-shadow: 0 10px 25px -12px rgba(249, 115, 22, .35); max-width: 100%;
}
.countdown strong { font-size: clamp(26px, 5vw, 36px); font-weight: 800; line-height: 1.05; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown span { font-size: 14px; font-weight: 600; color: var(--s600); }
.countdown.final { background: var(--grad); border-color: transparent; }
.countdown.final strong { background: none; color: #fff; -webkit-text-fill-color: #fff; }
.countdown.final span { color: #FFF7ED; }
.countdown.ended { background: var(--navy); border-color: var(--navy); }
.countdown.ended strong { background: none; color: #fff; -webkit-text-fill-color: #fff; }
.countdown.ended span { color: #CBD5E1; }

/* ---------- player picker + board ---------- */
.picker { margin-top: 30px; }
.picker-label { font-weight: 800; font-size: 12px; color: var(--teal); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips button {
  font: inherit; font-weight: 700; font-size: 15px; min-height: 44px;
  padding: 8px 18px; border-radius: 14px; border: 0;
  background: var(--s100); color: var(--s700); cursor: pointer;
}
.chips button:hover { background: var(--s200); }
.chips button[aria-pressed="true"] { background: var(--coral); color: #fff; box-shadow: 0 6px 14px -6px rgba(255, 107, 91, .6); }
.chips.small button { min-height: 36px; padding: 5px 12px; font-size: 13px; border-radius: 10px; }

.board { margin-top: 24px; background: #fff; border-radius: 28px; padding: 24px 20px 22px; border: 1px solid var(--s100); box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .12); }
@media (min-width: 640px) { .board { padding: 32px 36px 30px; } }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; }
.board-head h2 { font-size: clamp(24px, 4.5vw, 32px); font-weight: 800; color: var(--navy); margin: 0; }
.meter { height: 12px; background: var(--s100); border-radius: 999px; overflow: hidden; margin-top: 16px; }
.meter span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .4s ease; }
.progress-text { margin: 8px 0 0; font-size: 14px; color: var(--s500); }
.progress-text strong { color: var(--navy); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 12px; font-size: 13px; color: var(--s500); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--s200); background: #fff; display: inline-block; }
.legend i.pick { background: var(--o50); border-color: var(--coral); }
.legend i.held { background: repeating-linear-gradient(135deg, #FEF3C7 0 4px, #fff 4px 8px); border: 2px dashed var(--amber); }
.legend i.paid { background: var(--grad-teal); border-color: var(--teal); }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
button.day, .day {
  appearance: none; font: inherit; cursor: pointer;
  aspect-ratio: 1 / 1; min-height: 44px; padding: 2px; min-width: 0;
  border-radius: 14px; border: 2px solid var(--s200); background: #fff; color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-weight: 800; font-size: clamp(14px, 3.3vw, 20px); line-height: 1;
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
.day:hover { border-color: var(--coral); transform: translateY(-1px); }
.day small { font-size: clamp(9px, 1.5vw, 11px); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 3px; }
.day.pick { background: var(--o50); border-color: var(--coral); color: var(--coral); box-shadow: 0 6px 14px -8px rgba(255, 107, 91, .7); }
.day.paid { background: var(--grad-teal); border-color: transparent; color: #fff; cursor: default; }
.day.paid:hover { transform: none; }
.day.held { background: repeating-linear-gradient(135deg, #FEF3C7 0 6px, #FFFBEB 6px 12px); border: 2px dashed var(--amber); color: #92400E; cursor: default; }
.coach .day.paid, .coach .day.held { cursor: pointer; }

@media (min-width: 1024px) {
  .board-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
  .board-body .sales { margin-top: 18px; padding: 22px; border: 1px solid var(--s100); border-radius: 22px; background: var(--s50); }
  .board-body .sales-stats { grid-template-columns: 1fr; }
  .board-body .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .board-body .stat span { margin-top: 0; text-align: right; }
  .cal-grid { max-width: 640px; }
}

/* ---------- what a player has sold ---------- */
.sales { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--s100); }
.sales h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin: 0; }
.sales-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.stat { border-radius: 18px; padding: 14px; background: var(--s50); border: 1px solid var(--s100); }
.stat strong { display: block; font-size: clamp(22px, 5vw, 30px); font-weight: 800; line-height: 1.05; color: var(--navy); }
.stat span { display: block; font-size: 13px; color: var(--s500); margin-top: 4px; line-height: 1.3; }
.stat.paid { background: var(--grad-teal); border-color: transparent; }
.stat.paid strong { color: #fff; }
.stat.paid span { color: #CCFBF1; }
.stat.held { background: var(--amber-50); border: 1px solid rgba(252, 211, 77, .7); }
.stat.held strong { color: #B45309; }
.sales-note { margin: 14px 0 0; font-size: 14px; color: var(--s500); }
.unpaid { list-style: none; padding: 0; margin: 8px 0 0; }
.unpaid li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--s100); font-size: 15px; }
.unpaid li:first-child { border-top: 0; }
.unpaid span { color: var(--s500); }
.final-push { margin-top: 14px; background: var(--o50); border: 1px solid var(--o100); color: #9A3412; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }

.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--s100); align-items: center; }
.share-row p { flex: 1 1 100%; margin: 0; font-size: 14px; color: var(--s500); }

.empty { margin-top: 26px; background: var(--cream); border: 2px dashed var(--o100); border-radius: 24px; padding: 28px 22px; }
.empty h2 { font-size: 24px; font-weight: 800; color: var(--navy); margin: 0; }
.empty p { margin: 8px 0 0; color: var(--s600); max-width: 52ch; }

.checkout {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(15, 23, 42, .96); backdrop-filter: blur(8px); color: #fff;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .2);
}
.checkout .wrap { display: flex; align-items: center; gap: 12px; }
.checkout-text { flex: 1; min-width: 0; }
.checkout-text strong { font-size: 24px; font-weight: 800; display: block; line-height: 1.1; }
.checkout-text span { font-size: 13px; color: #CBD5E1; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout .link-btn { color: #CBD5E1; font-size: 14px; }
body.has-checkout { padding-bottom: 96px; }
button.link-btn, .link-btn { background: none; border: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 6px 0; }

.club-tools { display: flex; justify-content: center; margin: 28px 0 0; }

/* ---------- coach / admin panels ---------- */
.coach-panel { margin-top: 36px; }
.coach-panel > h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.panel { background: #fff; border: 1px solid var(--s100); border-radius: 24px; padding: 22px 20px; margin-top: 16px; box-shadow: 0 6px 20px -12px rgba(15, 23, 42, .15); }
@media (min-width: 640px) { .panel { padding: 26px 28px; } }
.panel h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin: 0; }
.panel > p { margin: 6px 0 0; color: var(--s500); font-size: 14px; max-width: 64ch; }
.rows { margin-top: 12px; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--s100); }
.row:first-child { border-top: 0; }
.row-main { min-width: 0; flex: 1 1 240px; }
.row-main strong { font-size: 16px; color: var(--navy); }
.row-main div { font-size: 14px; color: var(--s500); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.inline-form input { margin: 0; flex: 1 1 200px; width: auto; }

/* ---------- dialog ---------- */
.dlg { border: 0; padding: 0; border-radius: 28px; width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: #fff; color: var(--ink); box-shadow: 0 25px 50px -12px rgba(15, 23, 42, .35); }
.dlg::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
.dlg-body { padding: 28px 24px 24px; }
.dlg-body h2 { font-size: 26px; font-weight: 800; color: var(--navy); padding-right: 40px; margin: 0; }
.dlg-body h3 { margin: 22px 0 0; font-size: 15px; font-weight: 800; color: var(--navy); }
.dlg-body > p { margin: 8px 0 0; }
button.dlg-x, .dlg-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--s100); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.stack { display: grid; gap: 8px; margin-top: 10px; }
.payto { background: var(--s50); border: 1px solid var(--s100); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.payto strong { font-size: 16px; word-break: break-all; }
.copy-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
button.copy-btn, .copy-btn { flex: none; font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--s200); background: #fff; border-radius: 10px; padding: 5px 10px; cursor: pointer; color: var(--ink); }
.notice { background: var(--amber-50); border: 1px solid rgba(252, 211, 77, .7); color: #78350F; border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-top: 12px; }
.done-mark { width: 56px; height: 56px; border-radius: 18px; background: var(--grad-teal); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 800; margin-bottom: 14px; box-shadow: 0 10px 20px -8px rgba(13, 148, 136, .6); }
.detail { margin-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.detail dt { color: var(--s500); }
.detail dd { margin: 0; font-weight: 600; }
.report-msg { white-space: pre-line; font-size: 14px; }

/* ---------- toast & preview banner ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100vw - 32px); font-size: 14px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.has-checkout .toast { bottom: 112px; }
.demo-banner { background: #FEF3C7; color: #78350F; font-size: 13px; padding: 9px 0; }
.demo-banner .wrap { max-width: 1280px; }
.demo-banner strong { font-weight: 800; }

/* ---------- admin ---------- */
.admin-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.admin-top h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: var(--navy); margin: 0; }
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.totals div { font-size: 13px; color: var(--s500); background: #fff; border: 1px solid var(--s100); border-radius: 20px; padding: 16px 18px; box-shadow: 0 6px 20px -14px rgba(15, 23, 42, .2); }
.totals strong { display: block; font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1.05; }
.totals div:first-child strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--s500); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 2px solid var(--s100); white-space: nowrap; }
td { padding: 12px 10px; border-bottom: 1px solid var(--s100); vertical-align: middle; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td a { color: var(--coral); font-weight: 700; }
.status-off { color: var(--danger); font-weight: 600; }
.gate { max-width: 440px; margin: 56px auto 0; background: #fff; border: 1px solid var(--o100); border-radius: 28px; padding: 30px 26px; box-shadow: 0 25px 50px -20px rgba(249, 115, 22, .35); }
.gate h1 { font-size: 30px; font-weight: 800; color: var(--navy); margin: 8px 0 0; }
.gate p { color: var(--s500); margin: 6px 0 0; font-size: 14px; }
.grid-2 { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.spot { border-left: 4px solid var(--coral); padding-left: 12px; }

@media (max-width: 520px) {
  .cal-grid { gap: 5px; }
  .day { border-radius: 10px; }
  .board { border-radius: 22px; }
  .sales-stats { gap: 6px; }
  .stat { padding: 10px; border-radius: 14px; }
}
