/* Competitions: cards, detail page, sign-up modals.
   Shared by competitions.html (public) and member-competitions.html (member dashboard v2).
   Page chrome (public header, reset) stays in competitions.html. */
@font-face {
  font-family: 'Nasalization';
  src: url('https://lobvqkkjtxpcrmxdgdyh.supabase.co/storage/v1/object/public/brand-assets/Nasalization-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nasalization';
  src: url('https://lobvqkkjtxpcrmxdgdyh.supabase.co/storage/v1/object/public/brand-assets/Nasalization-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Matter';
  src: url('https://lobvqkkjtxpcrmxdgdyh.supabase.co/storage/v1/object/public/brand-assets/Matter-Regular.woff2') format('woff2'),
       url('https://lobvqkkjtxpcrmxdgdyh.supabase.co/storage/v1/object/public/brand-assets/Matter-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Matter';
  src: url('https://lobvqkkjtxpcrmxdgdyh.supabase.co/storage/v1/object/public/brand-assets/Matter-Medium.woff2') format('woff2'),
       url('https://lobvqkkjtxpcrmxdgdyh.supabase.co/storage/v1/object/public/brand-assets/Matter-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --green: #0d3d2d;
  --green-deeper: #062418;
  --lime: #ccff62;
  --lime-dim: rgba(204, 255, 98, 0.15);
  --off-white: #f7f7f5;
  --paper: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-500: #737373;
  --gray-700: #404040;
  --gray-900: #171717;
  --red: #b91c1c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
}

.tabs-strip {
  background: var(--paper); border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 30;
}
.tabs-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 4px;
}
.tab {
  padding: 16px 24px; font-size: 14px; font-weight: 500;
  color: var(--gray-500); cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--green); }
.tab.active {
  color: var(--green); border-bottom-color: var(--lime);
  font-weight: 600;
}
.tab-count {
  display: inline-block; margin-left: 6px;
  font-size: 12px; padding: 1px 7px;
  background: var(--gray-100); color: var(--gray-500);
  border-radius: 10px; font-weight: 600;
}
.tab.active .tab-count {
  background: var(--lime-dim); color: var(--green);
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1100px; margin: 32px auto 80px; padding: 0 24px;
}

/* ---- FILTER CHIPS ---- */
.filter-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.chip {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  background: var(--paper); border: 1px solid var(--gray-200);
  border-radius: 999px; color: var(--gray-700); cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--green); }
.chip.active {
  background: var(--green); color: white; border-color: var(--green);
}

/* ---- BANNERS ---- */
.signin-banner {
  background: var(--lime-dim); border: 1px solid var(--lime);
  border-radius: 12px; padding: 14px 18px;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.signin-banner-text {
  font-size: 13px; color: var(--green); line-height: 1.4;
}
.signin-banner-text strong { color: var(--green); }
.signin-banner a {
  color: var(--green); font-weight: 600; text-decoration: underline;
  white-space: nowrap;
}

/* ---- CARDS GRID ---- */
.cards-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* ---- CARD: a ticket with the facts set out like a scorecard ---- */
.card {
  background: var(--paper); border: 1px solid var(--gray-200);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--green); }
.card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.card-image {
  width: 100%; aspect-ratio: 16 / 8; position: relative; overflow: hidden;
  background: var(--green) center / cover no-repeat;
}
.card-image .contour { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-kind {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 6px;
  background: var(--lime); color: var(--green);
}
.card-kind.tournament { background: #fff; }
.card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.card-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; min-height: 0; }
.flag { font-size: 12px; color: var(--green); border: 1px solid rgba(13,61,45,.25); border-radius: 6px; padding: 2px 8px; }
.flag.on { background: var(--lime); border-color: var(--lime); }
.flag.off { color: var(--red); border-color: rgba(185,28,28,.35); }
.card-title {
  font-family: 'Nasalization', sans-serif; font-weight: 400;
  font-size: 20px; color: var(--green); line-height: 1.2; letter-spacing: -0.2px;
}
.card-when { font-size: 14px; color: var(--gray-700); margin-top: 4px; }
.card-team-chip { font-size: 13px; color: var(--gray-700); margin-top: 6px; }
.card-team-chip strong { color: var(--green); font-weight: 500; }
/* the facts, ruled like a scorecard */
.sc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--gray-200); border-radius: 8px; margin: 14px 0 0; overflow: hidden; }
/* Format across the top, season and holes side by side, how it's won across the bottom */
.sc > div { padding: 8px 12px; min-width: 0; }
.sc > div:first-child, .sc > div:last-child { grid-column: 1 / -1; }
.sc > div + div { border-top: 1px solid var(--gray-200); }
.sc > div:nth-child(3) { border-left: 1px solid var(--gray-200); border-top: 1px solid var(--gray-200); }
.sc dt { font-size: 12px; color: var(--gray-500); }
.sc dd { font-size: 14px; color: var(--gray-900); font-weight: 500; margin-top: 2px; line-height: 1.3; }
.sc dd .two-line { display: block; }
.next-up { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--lime-dim); font-size: 13px; color: var(--green); line-height: 1.4; }
.next-up b { font-weight: 500; }
.card-footer {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-status { font-size: 13px; color: var(--gray-500); line-height: 1.35; }
.card-status b { color: var(--green); font-weight: 500; font-size: 15px; display: block; }
.card-btn {
  padding: 9px 16px; font-size: 14px; font-weight: 500;
  background: var(--lime); color: var(--green);
  border: none; border-radius: 8px; cursor: pointer;
  text-decoration: none; display: inline-block; font-family: inherit; white-space: nowrap;
}
.card-btn:hover { background: #b9f04a; }
.card-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.card-btn.secondary { background: var(--paper); color: var(--green); border: 1px solid var(--gray-300); }
.card-btn.secondary:hover { border-color: var(--green); }
.card-btn.danger { background: var(--paper); color: var(--red); border: 1px solid var(--gray-300); }
.card-btn:disabled, .card-btn.disabled { background: var(--gray-200); color: var(--gray-500); cursor: not-allowed; }
.card-acts { display: flex; gap: 6px; }

/* ---- DETAILS ---- */
#detail-view[hidden], #list-view[hidden] { display: none; }
.d-back { display: inline-block; margin: 0 0 18px; font-size: 14px; color: var(--gray-500); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.d-back:hover { color: var(--green); }
.d-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--green); border-radius: 18px; overflow: hidden; color: #fff; }
.d-hero-text { padding: 32px 32px 30px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; }
.d-hero h1 { font-family: 'Nasalization', sans-serif; font-weight: 400; font-size: 40px; line-height: 1.08; letter-spacing: -0.5px; color: #fff; margin-top: 12px; }
.d-hero .d-when { font-size: 17px; color: rgba(255,255,255,.85); margin-top: 12px; line-height: 1.45; max-width: 46ch; }
.d-hero .d-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.d-hero .flag { color: #fff; border-color: rgba(255,255,255,.35); }
.d-hero .flag.on { background: var(--lime); color: var(--green); border-color: var(--lime); }
.d-hero-art { position: relative; min-height: 260px; background: var(--green-deeper) center / cover no-repeat; }
.d-hero-art .contour { position: absolute; inset: 0; width: 100%; height: 100%; }
.d-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; margin-top: 28px; align-items: start; }
.d-sec { margin-bottom: 34px; }
/* match play bracket */
.bk-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.bk-col { display: flex; flex-direction: column; gap: 8px; }
.bk-col > header { font-size: 14px; font-weight: 600; color: var(--green); }
.bk-col > header small { display: block; font-weight: 400; font-size: 12px; color: var(--gray-500); margin-top: 2px; line-height: 1.4; }
.bk-stack { display: flex; flex-direction: column; justify-content: space-around; gap: 8px; flex: 1; }
.bk-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; padding: 8px 10px; font-size: 13px; }
.bk-card.mine { border-color: var(--green); box-shadow: 0 0 0 2px var(--lime-dim); }
.bk-card.bye { opacity: .65; }
.bk-side { display: grid; grid-template-columns: 20px 1fr auto; gap: 6px; align-items: baseline; padding: 3px 0; color: var(--gray-700); }
.bk-side .sd { font-size: 11px; color: var(--gray-500); text-align: right; }
.bk-side .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-side .nm small { font-size: 11px; color: var(--gray-500); }
.bk-side.win { color: var(--green); font-weight: 600; }
.bk-side.lose { color: var(--gray-500); }
.bk-side.me .nm { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.bk-side.tbd { color: var(--gray-500); font-style: italic; display: block; }
.bk-side .rs { font-size: 12px; font-weight: 600; color: #1f6b44; }
.bk-note { font-size: 12px; color: var(--gray-500); border-top: 1px solid var(--gray-200); margin-top: 4px; padding-top: 5px; }
.bk-live { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; background: #ccff62; color: #0d3d2d; margin-right: 4px; vertical-align: 1px; }
.bk-you { background: var(--lime-dim); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.d-sec h2 { font-family: 'Nasalization', sans-serif; font-weight: 400; font-size: 20px; color: var(--green); margin-bottom: 12px; }
.d-sec p { font-size: 15px; line-height: 1.6; color: var(--gray-700); max-width: 68ch; }
.d-sec p + p { margin-top: 10px; }
.d-desc { white-space: pre-line; }
/* schedule as a scorecard: weeks across the top, like holes */
.card-scroll { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--paper); }
table.scorecard { border-collapse: collapse; font-size: 13px; min-width: 100%; }
table.scorecard th, table.scorecard td { padding: 9px 12px; text-align: center; white-space: nowrap; border-left: 1px solid var(--gray-200); }
table.scorecard tr > :first-child { text-align: left; border-left: 0; position: sticky; left: 0; background: var(--paper); color: var(--gray-500); font-weight: 400; z-index: 1; }
table.scorecard thead th { background: var(--green); color: var(--lime); font-family: 'Nasalization', sans-serif; font-weight: 400; font-size: 15px; border-left-color: rgba(255,255,255,.12); }
table.scorecard thead th:first-child { background: var(--green); color: #fff; font-family: 'Matter', sans-serif; font-size: 13px; }
table.scorecard tbody tr + tr td, table.scorecard tbody tr + tr th { border-top: 1px solid var(--gray-200); }
table.scorecard td.course { white-space: normal; min-width: 110px; max-width: 150px; line-height: 1.3; }
table.scorecard td.past { color: var(--gray-500); }
table.scorecard .tier { display: block; font-size: 11px; color: var(--green); margin-top: 2px; }
.sched-list { display: none; list-style: none; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--paper); }
.sched-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 10px 14px; font-size: 14px; }
.sched-list li + li { border-top: 1px solid var(--gray-200); }
.sched-list .sn { font-family: 'Nasalization', sans-serif; color: var(--green); grid-row: span 2; }
.sched-list .sd { color: var(--gray-900); }
.sched-list .sc2 { color: var(--gray-500); font-size: 13px; }
.sched-list .tier { color: var(--green); }
.sched-list .sc3 { grid-column: 2; color: var(--gray-500); font-size: 12px; margin-top: 2px; }
/* Named rounds (match play): the name on its own line above the details. */
.sched-list.named li { grid-template-columns: 1fr; }
.sched-list.named .sn { grid-row: auto; margin-bottom: 2px; }
.sched-list.named .sc3 { grid-column: 1; }
.scorecard .sub-c { display: block; font-size: 12px; color: var(--gray-500); }
.scorecard td.cond { font-size: 13px; line-height: 1.45; color: var(--gray-700, #374151); }
table.scorecard td.po { background: #fafaf8; white-space: normal; min-width: 110px; max-width: 150px; line-height: 1.3; color: var(--gray-700, #374151); }
table.scorecard thead th.nm { font-size: 14px; }
.sched-list li.past .sd { color: var(--gray-500); }
@media (max-width: 640px) { .card-scroll { display: none; } .sched-list { display: block; } }
.card-scroll, .bk-cols { overscroll-behavior-x: none; }
.bk-cols { scroll-snap-type: x proximity; } .bk-col { scroll-snap-align: start; }
.prize-list { list-style: none; border-top: 1px solid var(--gray-200); }
.prize-list li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gray-200); font-size: 15px; color: var(--gray-900); }
.prize-list .pl { font-family: 'Nasalization', sans-serif; color: var(--green); width: 44px; flex: 0 0 auto; }
.prize-list img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; margin-left: auto; }
.prize-group + .prize-group { margin-top: 18px; }
.prize-group h3 { font-size: 13px; font-weight: 500; color: var(--gray-500); margin-bottom: 6px; }
table.top5 { width: 100%; border-collapse: collapse; font-size: 15px; }
table.top5 td { padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
table.top5 td.rk { width: 44px; font-family: 'Nasalization', sans-serif; color: var(--green); }
table.top5 th { font-size: 12px; font-weight: 500; color: var(--gray-500); text-align: right; padding: 0 0 4px; }
table.top5 td.pt + td.pt { width: 72px; }
table.top5 td.pt { text-align: right; color: var(--gray-700); white-space: nowrap; }
.d-note { font-size: 13px; color: var(--gray-500); margin-top: 10px; }
.d-note a { color: var(--green); }
/* the sign-up panel */
.d-panel { position: sticky; top: 76px; background: var(--paper); border: 1px solid var(--gray-200); border-radius: 14px; padding: 22px; }
.d-price { font-family: 'Nasalization', sans-serif; font-size: 34px; color: var(--green); line-height: 1; }
.d-price small { font-family: 'Matter', sans-serif; font-size: 14px; color: var(--gray-500); margin-left: 4px; }
.d-price-sub { font-size: 14px; color: var(--gray-700); margin-top: 8px; line-height: 1.5; }
.d-panel dl { margin: 16px 0 18px; border-top: 1px solid var(--gray-200); }
.d-panel dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.d-panel dt { color: var(--gray-500); white-space: nowrap; }
.d-panel dd { color: var(--gray-900); text-align: right; }
.d-panel dd .two-line { display: block; }
.d-panel .card-btn { width: 100%; text-align: center; padding: 12px 16px; font-size: 15px; }
.d-panel .alt { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--green); }
.d-in { background: var(--lime-dim); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--green); margin-bottom: 12px; line-height: 1.45; }
@media (max-width: 860px) {
  .d-hero { grid-template-columns: 1fr; }
  .d-hero-art { min-height: 150px; order: -1; }
  .d-hero-text { min-height: 0; padding: 24px 20px; }
  .d-hero h1 { font-size: 30px; }
  .d-cols { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .d-panel { position: static; order: -1; }
  .d-cols aside { order: -1; margin-bottom: 18px; }
}

/* ---- LOADING / EMPTY ---- */
.state-msg {
  grid-column: 1 / -1;
  padding: 60px 20px; text-align: center;
  color: var(--gray-500); font-size: 14px;
}
.state-msg strong { color: var(--gray-900); display: block; margin-bottom: 6px; font-size: 16px; }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--gray-200); border-top-color: var(--green);
  border-radius: 50%; animation: spin 0.9s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .page-title { font-size: 26px; }
  .tabs-inner { overflow-x: auto; }
  .tab { padding: 14px 16px; white-space: nowrap; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13, 61, 45, 0.6);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: modalFadeIn 0.15s ease;
}
/* Regular confirm/error modal stacks ABOVE the signup modal */
#modal-overlay { z-index: 200; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 28px 28px 24px;
  max-width: 440px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: modalSlideIn 0.2s ease;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--lime-dim); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.modal-icon.warn { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.modal-icon.error { background: rgba(185, 28, 28, 0.12); color: var(--red); }

.modal-title {
  font-family: 'Nasalization', sans-serif;
  font-weight: 400;
  color: var(--green);
  font-size: 22px;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.modal-body {
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  flex-wrap: wrap;
}
.modal-actions .card-btn {
  padding: 10px 18px; font-size: 14px;
}

/* ---- SIGNUP MODAL (larger, scrollable) ---- */
.signup-modal {
  background: var(--paper);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  max-width: 580px; width: 100%;
  max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: flex; flex-direction: column;
  animation: modalSlideIn 0.2s ease;
}
.signup-modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
}
.signup-modal-header .title {
  font-family: 'Nasalization', sans-serif;
  color: var(--green); font-size: 22px;
  font-weight: 400; letter-spacing: -0.3px;
  line-height: 1.2; margin-bottom: 4px;
}
.signup-modal-header .subtitle {
  color: var(--gray-500); font-size: 13px;
}
.signup-modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--gray-500);
  padding: 4px 8px; border-radius: 6px;
}
.signup-modal-close:hover { background: var(--gray-100); color: var(--gray-900); }
.signup-modal-body {
  padding: 20px 28px;
  overflow-y: auto;
  flex: 1;
}
.signup-modal-footer {
  padding: 16px 28px 20px;
  border-top: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.signup-total-wrap { display: flex; flex-direction: column; }
.signup-total-label {
  font-size: 11px; color: var(--gray-500); text-transform: uppercase;
  letter-spacing: 1px;
}
.signup-total-amount {
  font-family: 'Nasalization', sans-serif; color: var(--green);
  font-size: 24px; font-weight: 400; letter-spacing: -0.5px;
}
.signup-section { margin-bottom: 22px; }
.signup-section-title {
  font-size: 12px; font-weight: 700; color: var(--gray-700);
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px;
}
.signup-section-title .req,
.signup-field label .req {
  color: var(--red); margin-left: 2px; font-weight: 700;
}
.signup-field { margin-bottom: 12px; }
.signup-field label {
  display: block; font-size: 12px; color: var(--gray-500);
  margin-bottom: 4px; font-weight: 500;
}
.signup-field input {
  width: 100%; padding: 10px 12px; font-size: 14px;
  background: var(--paper); border: 1px solid var(--gray-300);
  border-radius: 8px; color: var(--gray-900);
  font-family: 'Matter', sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.signup-field input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px var(--lime-dim);
}
.signup-field input:disabled {
  background: var(--gray-100); color: var(--gray-500);
  cursor: not-allowed;
}
.signup-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (max-width: 500px) {
  .signup-field-row { grid-template-columns: 1fr; }
}

.member-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 16px;
  margin-bottom: 12px;
  background: var(--paper);
}
.member-card.captain { background: var(--lime-dim); border-color: var(--lime); }
.member-card-title {
  font-size: 13px; font-weight: 600; color: var(--green);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.member-card-title .badge-sm {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  background: var(--lime); color: var(--green); border-radius: 999px;
  letter-spacing: 0.5px;
}

.pass-card {
  background: var(--gray-100); border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
}
.pass-card label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
}
.pass-card input[type="checkbox"] {
  margin-top: 3px; width: 16px; height: 16px;
  accent-color: var(--green); cursor: pointer;
}
.pass-card-text { flex: 1; }
.pass-card-title { font-size: 14px; font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.pass-card-hint { font-size: 12px; color: var(--gray-500); line-height: 1.4; }

.breakdown-toggle {
  background: none; border: none; color: var(--green);
  font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 6px 0; text-decoration: underline;
}
.breakdown-list {
  margin-top: 8px; font-size: 13px; color: var(--gray-700);
  background: var(--gray-100); border-radius: 8px; padding: 12px;
}
.breakdown-line {
  display: flex; justify-content: space-between;
  padding: 4px 0;
}
.breakdown-line.subtotal {
  border-top: 1px solid var(--gray-300); margin-top: 6px; padding-top: 8px;
  font-weight: 600; color: var(--gray-900);
}
.breakdown-line.discount { color: var(--green); }

.signup-note {
  font-size: 12px; color: var(--gray-500);
  background: var(--gray-100); padding: 10px 12px;
  border-radius: 8px; line-height: 1.5;
  margin-top: 12px;
}
.signup-error {
  font-size: 13px; color: var(--red);
  background: rgba(185, 28, 28, 0.06);
  border: 1px solid rgba(185, 28, 28, 0.2);
  padding: 10px 12px; border-radius: 8px; margin-bottom: 12px;
}

.field-error {
  font-size: 12px; color: var(--red);
  margin-top: 4px;
}
.signup-field input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}
