:root {
  --emerald: #0B3D2E;
  --emerald-dark: #072A1F;
  --fairway: #1B6B46;
  --fairway-light: #E8F4ED;
  --sand: #F7F5EF;
  --surface: #FFFFFF;
  --surface-alt: #F1EDE3;
  --charcoal: #141A17;
  --muted: #4B5951;
  --border: #D5CFC0;
  --gold: #C89B2B;
  --gold-dark: #9B7414;
  --gold-soft: #FDF6E3;
  --crimson: #C4372E;
  --crimson-soft: #FDECEB;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(11, 61, 46, 0.08);
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--sand);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
}

body {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

button, input, select {
  font-family: inherit;
  font-size: 1rem;
}

.hidden {
  display: none !important;
}

/* TOP BAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--emerald);
  color: #FFFFFF;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.topbar-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 3px 6px 3px 3px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.brand-lockup:hover,
.brand-lockup:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(242, 210, 123, 0.55);
  outline: none;
}

.brand-lockup.is-home-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 155, 43, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-flag {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--emerald-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.78rem;
  color: #D2E4DB;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-pill {
  min-height: 40px;
  padding: 6px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-qr-quick {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-pass {
  background: var(--gold);
  color: #141A17;
}

.btn-pass.is-unlocked {
  background: #1B6B46;
  color: #FFFFFF;
  border-color: #79D4A6;
}

.btn-pass.is-tournament {
  background: linear-gradient(135deg, #F2D27B 0%, #C89B2B 100%);
  color: #141A17;
  border-color: #FFF1C2;
  box-shadow: 0 2px 10px rgba(200, 155, 43, 0.38);
}

/* TOAST */
.toast-banner {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(92vw, 480px);
  background: var(--charcoal);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  border-left: 5px solid var(--gold);
}

/* MAIN LAYOUT */
.app-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 14px 12px 24px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--emerald);
}

.card-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.muted-copy {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.93rem;
}

/* BUTTONS (High contrast, >=48px thumb targets) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--emerald);
  color: #FFFFFF;
}

.btn-primary:active {
  background: var(--emerald-dark);
}

.btn-secondary {
  background: var(--fairway);
  color: #FFFFFF;
}

.btn-gold {
  background: var(--gold);
  color: #141A17;
}

.btn-outline {
  background: var(--surface);
  color: var(--emerald);
  border-color: var(--emerald);
}

.btn-danger-outline {
  background: var(--surface);
  color: var(--crimson);
  border-color: var(--crimson);
}

.btn-chip {
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--charcoal);
  cursor: pointer;
}

.btn-chip-emerald {
  background: var(--emerald);
  color: #FFFFFF;
  border-color: var(--emerald);
}

.btn-chip-gold {
  background: var(--gold);
  color: #141A17;
  border-color: var(--gold-dark);
}

/* CLUBHOUSE HOMEPAGE VIEW */
.home-hero {
  background: linear-gradient(155deg, #0B3D2E 0%, #072A1F 100%);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 24px 18px 20px;
  margin-bottom: 18px;
  border: 2px solid var(--gold);
  box-shadow: 0 12px 30px rgba(11, 61, 46, 0.22);
}

.home-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #F2D27B;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(242, 210, 123, 0.35);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.home-headline {
  margin: 0 0 10px;
  font-size: 1.88rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.home-subcopy {
  margin: 0 0 18px;
  color: #E3F0E9;
  font-size: 0.98rem;
  line-height: 1.52;
}

.home-hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn-hero-primary {
  background: #FFFFFF;
  color: var(--emerald);
  border-color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:active {
  background: var(--sand);
}

.home-hero-gift-wrap {
  margin-top: 12px;
  text-align: center;
}

.btn-home-gift-link {
  background: transparent;
  border: none;
  color: #F2D27B;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px 6px;
}

.home-trust-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.home-trust-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: #CFE6DA;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

.home-section-head {
  margin: 4px 2px 10px;
}

.home-section-title {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald);
}

.home-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.home-feature-card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--fairway-light);
  border: 1.5px solid #B7DEC8;
  color: var(--emerald);
  display: grid;
  place-items: center;
}

.home-feature-title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--emerald);
}

.home-feature-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-pricing-card {
  border-color: var(--gold);
  background: #FFFEFA;
}

.home-pricing-title {
  margin: 4px 0 0;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--emerald);
}

.home-compare-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.home-compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--sand);
}

.home-compare-row.is-competitor {
  color: var(--muted);
}

.compare-name {
  font-weight: 700;
  font-size: 0.94rem;
}

.compare-price-old {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--crimson);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  white-space: nowrap;
}

.home-compare-row.is-winner {
  background: var(--fairway-light);
  border-color: var(--fairway);
  align-items: flex-start;
}

.compare-winner-label {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--emerald);
  margin-bottom: 3px;
}

.compare-winner-detail {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
}

.compare-winner-tag {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.92rem;
  background: var(--emerald);
  color: #F2D27B;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-pricing-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-shop-teaser {
  border-color: var(--emerald);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F5EF 100%);
}

.home-teaser-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* SCORECARD VIEW */
.score-hero-strip {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.hole-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-step-hole {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 2px solid var(--emerald);
  background: var(--sand);
  color: var(--emerald);
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.hole-center-meta {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.hole-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hole-title-row h1,
.hole-title-row .hole-heading {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--emerald);
}

.badge-par {
  background: var(--emerald);
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
}

.badge-yards {
  background: var(--surface-alt);
  color: var(--charcoal);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.hole-cap-line {
  margin-top: 5px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.hole-strip-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 2px 4px;
  scrollbar-width: thin;
}

.hole-pill {
  min-width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--sand);
  color: var(--charcoal);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.hole-pill.active {
  background: var(--emerald);
  color: #FFFFFF;
  border-color: var(--emerald);
}

.hole-pill.has-score::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fairway);
  position: absolute;
  bottom: 4px;
}

.hole-pill.active.has-score::after {
  background: var(--gold);
}

.hole-pill.is-locked {
  background: #ECEAE4;
  color: #6B746E;
  border-style: dashed;
}

/* SKINS STRIP */
.skins-strip {
  background: var(--gold-soft);
  border: 1.5px solid #E2C678;
  color: #5C4304;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* TEAM SCORE CARDS */
.team-score-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.team-score-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.team-score-card.is-capped {
  border-color: var(--gold);
  background: #FFFEFA;
}

.team-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.team-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--charcoal);
}

.team-members {
  font-size: 0.84rem;
  color: var(--muted);
}

.team-running-pill {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--charcoal);
  white-space: nowrap;
}

.team-running-pill.under {
  background: var(--fairway-light);
  color: var(--fairway);
}

.team-running-pill.over {
  background: var(--crimson-soft);
  color: var(--crimson);
}

.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-stroke {
  width: 60px;
  height: 54px;
  border-radius: 12px;
  border: 2px solid var(--emerald);
  background: var(--sand);
  color: var(--emerald);
  font-size: 1.7rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

.btn-stroke:active {
  background: var(--emerald);
  color: #FFFFFF;
}

.btn-stroke-plus {
  background: var(--emerald);
  color: #FFFFFF;
}

.btn-stroke-plus:active {
  background: var(--emerald-dark);
}

.score-display-box {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 54px;
}

.score-big-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.score-sub-tag {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.score-sub-tag.is-birdie {
  color: var(--fairway);
}

.score-sub-tag.is-capped-tag {
  background: var(--gold);
  color: #141A17;
  padding: 2px 8px;
  border-radius: 999px;
}

.btn-par-quick {
  margin-top: 10px;
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1.5px dashed var(--fairway);
  background: var(--fairway-light);
  color: var(--emerald);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

/* HOLE HONORS */
.honors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.honor-box {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.honor-box label {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--emerald);
  margin-bottom: 6px;
}

.honor-inputs {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 8px;
}

.honor-inputs select,
.honor-inputs input {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--charcoal);
  font-weight: 600;
}

.quick-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* LOCK CARD */
.lock-card {
  background: var(--emerald);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 22px 18px;
  border: 2px solid var(--gold);
  margin-bottom: 14px;
}

.lock-card-eyebrow {
  color: #F2D27B;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.lock-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.lock-card p {
  margin: 0 0 16px;
  color: #DCECE3;
  font-size: 0.95rem;
}

.lock-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.lock-card .btn-outline {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}

/* GPS RANGEFINDER VIEW */
.gps-hud-card {
  background: var(--emerald);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  border: 2px solid var(--gold);
}

.gps-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.gps-source-pill {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #F2D27B;
}

.gps-source-pill.is-live {
  background: #1B6B46;
  color: #FFFFFF;
  border: 1px solid #79D4A6;
}

.gps-toggles {
  display: flex;
  gap: 8px;
}

.segmented {
  display: inline-flex;
  background: var(--emerald-dark);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.seg-btn {
  min-height: 36px;
  padding: 4px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #D2E4DB;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.seg-btn.active {
  background: #FFFFFF;
  color: var(--emerald);
}

.yardage-readout-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.yard-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.yard-main {
  background: #FFFFFF;
  color: var(--charcoal);
  border: 2px solid var(--gold);
}

.yard-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.yard-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.yard-main .yard-num {
  font-size: 2.35rem;
  color: var(--emerald);
}

.yard-unit {
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.8;
}

.layup-bar,
.drive-bar {
  background: rgba(7, 42, 31, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}

.drive-bar {
  border-color: var(--gold);
}

.drive-tag {
  background: var(--gold);
  color: #141A17;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  margin-right: 6px;
}

.drive-bar-actions {
  display: flex;
  gap: 6px;
}

.btn-inline-clear {
  background: transparent;
  color: #F2D27B;
  border: 1px solid #F2D27B;
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 700;
  cursor: pointer;
}

.gps-status-line {
  margin: 0;
  font-size: 0.85rem;
  color: #DCECE3;
}

.gps-hole-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(7, 42, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.gps-course-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.gps-course-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #FFFFFF;
}

.gps-course-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #F2D27B;
  white-space: nowrap;
}

.gps-course-badge.is-mapped {
  background: #1B6B46;
  color: #FFFFFF;
  border: 1px solid #79D4A6;
}

.gps-course-badge.is-tap-mode {
  background: rgba(200, 155, 43, 0.24);
  color: #F2D27B;
  border: 1px solid rgba(242, 210, 123, 0.45);
}

.gps-hole-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-gps-hole-step {
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  border: 1.5px solid rgba(242, 210, 123, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

.btn-gps-hole-step:active {
  background: var(--gold);
  color: #141A17;
}

.gps-hole-pill-label {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 800;
  color: #FFFFFF;
  min-width: 108px;
  text-align: center;
}

/* WORLDWIDE COURSE FINDER */
.course-finder-card {
  border-color: var(--fairway);
  background: #FFFFFF;
}

.course-finder-inline {
  background: #F4FAF6;
  border: 1.5px solid #B7DEC8;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-finder-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.course-finder-inline-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--emerald);
}

.course-finder-inline-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--fairway);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-search-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-search-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  background: var(--sand);
  color: var(--charcoal);
  font-weight: 600;
}

.course-search-input:focus {
  outline: none;
  border-color: var(--emerald);
  background: #FFFFFF;
}

.course-search-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.course-search-status {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--sand);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-search-status.is-error {
  background: var(--crimson-soft);
  border-color: #E5B4B1;
  color: var(--crimson);
}

.course-result-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-result-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--sand);
}

.course-result-pill.is-loaded {
  border-color: var(--fairway);
  background: var(--fairway-light);
}

.course-result-meta {
  min-width: 0;
  flex: 1;
}

.course-result-name {
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--charcoal);
  line-height: 1.25;
}

.course-result-sub {
  margin-top: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.course-dist-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--emerald);
  background: #FFFFFF;
  border: 1px solid #B7DEC8;
  padding: 1px 7px;
  border-radius: 999px;
}

.course-verified-badge {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald);
  color: #FFFFFF;
}

.course-verified-badge.is-tap-mode {
  background: var(--gold-soft);
  color: #5C4304;
  border: 1px solid #E2C678;
}

.btn-load-course {
  min-height: 42px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--emerald);
  background: var(--emerald);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-load-course:disabled {
  opacity: 0.78;
  cursor: wait;
}

.btn-load-course.is-loaded {
  background: var(--fairway);
  border-color: var(--fairway);
}

.slg-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  animation: slgSpin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.slg-spinner.is-dark {
  border-color: rgba(11, 61, 46, 0.22);
  border-top-color: var(--emerald);
}

@keyframes slgSpin {
  to {
    transform: rotate(360deg);
  }
}

.saved-courses-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.saved-courses-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}

.saved-course-chip {
  min-height: 40px;
  padding: 6px 11px;
  border-radius: 10px;
  border: 1.5px solid #B7DEC8;
  background: var(--fairway-light);
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.saved-course-chip.active {
  background: var(--emerald);
  color: #FFFFFF;
  border-color: var(--emerald);
}

.saved-course-chip-tag {
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0.86;
}

.gps-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--emerald);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  background: #DCE5DF;
}

.gps-map {
  width: 100%;
  height: 360px;
  z-index: 1;
}

.map-offline-fallback {
  padding: 28px 18px;
  text-align: center;
  color: var(--charcoal);
}

.gps-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.course-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-chip {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--sand);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.course-chip.active {
  background: var(--emerald);
  color: #FFFFFF;
  border-color: var(--emerald);
}

/* Custom Leaflet markers */
.gps-marker-wrap {
  background: transparent;
  border: none;
}

.gps-golfer-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563EB;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.35), 0 2px 6px rgba(0, 0, 0, 0.45);
}

.gps-golfer-dot.is-demo {
  background: #0B3D2E;
  box-shadow: 0 0 0 4px rgba(200, 155, 43, 0.5), 0 2px 6px rgba(0, 0, 0, 0.45);
}

.gps-pin-flag {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gps-pin-flag span {
  background: var(--crimson);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 6px;
  border-radius: 7px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.gps-layup-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #141A17;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.gps-tee-badge {
  background: #141A17;
  color: #F2D27B;
  border: 2px solid var(--gold);
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 800;
  text-align: center;
  line-height: 18px;
}

/* LEADERBOARD & 19TH HOLE */
.board-title {
  margin: 4px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--emerald);
}

.format-badge,
.badge-emerald {
  background: var(--fairway-light);
  color: var(--emerald);
  border: 1px solid #B7DEC8;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px;
}

.leaderboard-table,
.full-card-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.leaderboard-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 800;
}

.leaderboard-table td.num,
.leaderboard-table th.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.leaderboard-table tbody tr:first-child {
  background: var(--fairway-light);
}

.score-under {
  color: var(--fairway);
  font-weight: 800;
}

.score-over {
  color: var(--crimson);
  font-weight: 800;
}

.score-even {
  color: var(--charcoal);
  font-weight: 800;
}

.full-card-table th,
.full-card-table td {
  padding: 7px 6px;
  border: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}

.full-card-table th.sticky-col,
.full-card-table td.sticky-col {
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 700;
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 2;
  min-width: 120px;
}

.full-card-table thead th {
  background: var(--emerald);
  color: #FFFFFF;
}

.full-card-table thead th.sticky-col {
  background: var(--emerald);
}

.full-card-table tr.par-row td {
  background: var(--surface-alt);
  font-weight: 700;
}

.full-card-table td.cell-capped {
  background: var(--gold-soft);
  color: #6B4D00;
  font-weight: 800;
}

.full-card-table td.cell-under {
  background: var(--fairway-light);
  color: var(--fairway);
  font-weight: 800;
}

.honors-recap-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.honors-recap-item {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.export-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.tournament-upsell-banner {
  background: linear-gradient(155deg, #0B3D2E 0%, #072A1F 100%);
  color: #FFFFFF;
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.tournament-upsell-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F2D27B;
  margin-bottom: 4px;
}

.tournament-upsell-text {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
  color: #E3F0E9;
}

/* OUTING SETUP & QR */
.qr-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}

.qr-frame {
  width: 228px;
  height: 228px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 3px solid var(--emerald);
  border-radius: 16px;
  padding: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(11, 61, 46, 0.14);
}

.qr-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qr-meta {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.cart-sheet-cta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-sheet-help {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field > span {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--emerald);
}

.field input,
.field select {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--sand);
  color: var(--charcoal);
  font-weight: 600;
}

.field-help {
  font-size: 0.82rem;
  color: var(--muted);
}

.sidegames-toggles {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.sidegames-toggles h3 {
  margin: 0 0 10px;
  font-size: 0.96rem;
  color: var(--emerald);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
}

.toggle-row.indent {
  padding-left: 26px;
}

.toggle-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--emerald);
  flex-shrink: 0;
}

.teams-editor-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-edit-row {
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.team-edit-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.team-edit-fields input {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-weight: 600;
}

.btn-remove-team {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1.5px solid #E5B4B1;
  background: var(--crimson-soft);
  color: var(--crimson);
  font-weight: 800;
  cursor: pointer;
}

.danger-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* PRO SHOP VIEW */
.proshop-hero {
  background: var(--emerald);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 14px;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
}

.proshop-hero-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #F2D27B;
  margin-bottom: 6px;
}

.proshop-hero-title {
  margin: 0 0 8px;
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
}

.proshop-hero-copy {
  margin: 0 0 14px;
  color: #DCECE3;
  font-size: 0.94rem;
}

.proshop-perk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.proshop-perk-badge {
  font-size: 0.84rem;
  font-weight: 800;
  color: #F2D27B;
}

.proshop-perk-badge.is-active {
  color: #9EE8BE;
}

.proshop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.product-card {
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-stage {
  background: var(--sand);
  border-bottom: 1.5px solid var(--border);
  padding: 18px 14px 14px;
  display: grid;
  place-items: center;
  position: relative;
}

.product-drop-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--emerald);
  color: #F2D27B;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
}

.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--emerald);
}

.product-tagline {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  font-style: italic;
  color: var(--gold-dark);
}

.product-specs {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.proshop-waitlist-card {
  border-color: var(--gold);
  background: #FFFEFA;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.waitlist-form input {
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--charcoal);
  font-weight: 600;
}

.waitlist-feedback {
  margin-top: 8px;
  min-height: 18px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--crimson);
}

.waitlist-confirmed-box {
  margin-top: 10px;
  background: var(--fairway-light);
  border: 2px solid var(--fairway);
  border-radius: 12px;
  padding: 14px;
  color: var(--emerald);
}

.waitlist-confirmed-box p {
  margin: 6px 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

/* BOTTOM NAVIGATION */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: var(--surface);
  border-top: 2px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.nav-tab {
  min-height: 62px;
  padding: 4px 2px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-weight: 800;
  font-size: 0.74rem;
  cursor: pointer;
  position: relative;
}

.nav-tab.active {
  color: var(--emerald);
  background: var(--fairway-light);
}

.nav-tab.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 3.5px;
  background: var(--emerald);
  border-radius: 0 0 4px 4px;
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 26, 20, 0.72);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-sheet {
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 18px;
  padding: 22px 20px;
  border: 2.5px solid var(--gold);
  position: relative;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.modal-compact {
  max-width: 360px;
}

.modal-pass {
  max-width: 660px;
}

.pricing-tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.tier-card {
  background: var(--sand);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.tier-card-featured {
  background: #FFFEFA;
  border-color: var(--gold);
  box-shadow: 0 8px 22px rgba(200, 155, 43, 0.16);
}

.tier-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--emerald);
  color: #FFFFFF;
  margin-bottom: 8px;
}

.tier-badge-gold {
  background: var(--gold);
  color: #141A17;
}

.tier-name {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--emerald);
}

.tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tier-price {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--charcoal);
}

.tier-period {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.tier-anchor {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--crimson);
}

.modal-gift-row {
  margin-top: 10px;
  text-align: center;
}

.btn-link-gift {
  background: transparent;
  border: none;
  color: var(--emerald);
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 6px 8px;
}

/* PWA INSTALL & iOS HELPER */
.pwa-install-card {
  border-color: var(--fairway);
  background: #F4FAF6;
}

.ios-steps-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--charcoal);
  font-size: 0.94rem;
  line-height: 1.5;
}

.ios-steps-list li {
  margin-bottom: 10px;
}

/* CHRISTMAS GOLFER GIFT VOUCHER */
.gift-voucher-card {
  border-color: var(--gold);
  background: #FFFEFA;
}

.voucher-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.voucher-preview-shell {
  background: linear-gradient(155deg, #0B3D2E 0%, #072A1F 100%);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(11, 61, 46, 0.22);
  margin-bottom: 14px;
}

.voucher-inner-frame {
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 18px 16px;
  color: #FFFFFF;
  position: relative;
}

.voucher-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.voucher-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #F2D27B;
}

.voucher-rate-pill {
  background: var(--gold);
  color: #141A17;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
}

.voucher-brand-line {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  line-height: 1.15;
}

.voucher-pass-line {
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #CFE6DA;
  margin-bottom: 14px;
}

.voucher-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.voucher-meta-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 155, 43, 0.45);
  border-radius: 10px;
  padding: 10px 12px;
}

.voucher-meta-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #F2D27B;
  margin-bottom: 3px;
}

.voucher-meta-val {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: #FFFFFF;
  word-break: break-word;
}

.voucher-personal-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: rgba(247, 245, 239, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  font-size: 0.92rem;
  font-style: italic;
  color: #F7F5EF;
}

.voucher-unlock-box {
  background: var(--sand);
  color: var(--charcoal);
  border-radius: 10px;
  padding: 11px 12px;
  border: 1.5px solid var(--gold);
  margin-bottom: 12px;
}

.voucher-unlock-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--emerald);
  margin-bottom: 2px;
}

.voucher-unlock-copy {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--charcoal);
}

.voucher-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #B7D4C5;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.voucher-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.tier-sub {
  margin: 4px 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.tier-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--charcoal);
  font-size: 0.88rem;
  font-weight: 600;
  flex: 1;
}

.tier-list li {
  margin-bottom: 6px;
}

.pass-upgrade-row {
  margin-top: 12px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--sand);
  color: var(--charcoal);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
}

.modal-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.modal-sheet h2 {
  margin: 0 0 8px;
  color: var(--emerald);
  font-size: 1.38rem;
  padding-right: 40px;
}

.modal-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.pass-benefits {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.92rem;
}

.pass-benefits li {
  margin-bottom: 6px;
}

.pass-active-box {
  background: var(--fairway-light);
  border: 2px solid var(--fairway);
  border-radius: 12px;
  padding: 14px;
  color: var(--emerald);
}

.pass-active-box p {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.checkout-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.code-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.code-divider::before,
.code-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.code-form {
  display: flex;
  gap: 8px;
}

.code-form input {
  flex: 1;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--sand);
  font-weight: 700;
  text-transform: uppercase;
}

.code-feedback {
  margin-top: 8px;
  min-height: 20px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--crimson);
}

.code-feedback.is-ok {
  color: var(--fairway);
}

.par-picker-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.btn-par-pick {
  min-height: 54px;
  border-radius: 12px;
  border: 2px solid var(--emerald);
  background: var(--sand);
  color: var(--emerald);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}

.btn-par-pick.active {
  background: var(--emerald);
  color: #FFFFFF;
}

/* DESKTOP REFINEMENTS */
@media (min-width: 560px) {
  .home-hero {
    padding: 28px 26px 24px;
  }

  .home-headline {
    font-size: 2.25rem;
  }

  .home-hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .home-features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-teaser-actions {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-tier-grid {
    grid-template-columns: 1fr 1fr;
  }

  .waitlist-form {
    flex-direction: row;
  }

  .waitlist-form input {
    flex: 1;
  }
}

@media (min-width: 640px) {
  .home-pricing-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-sub {
    max-width: 340px;
  }

  .proshop-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .voucher-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .voucher-note-field {
    grid-column: 1 / -1;
  }

  .voucher-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .qr-layout {
    grid-template-columns: 240px 1fr;
  }

  .tournament-upsell-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .tournament-upsell-banner .btn {
    flex-shrink: 0;
  }

  .export-actions,
  .danger-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .danger-actions {
    grid-template-columns: 1fr 1fr;
  }

  .honors-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-edit-fields {
    grid-template-columns: 1fr 1fr;
  }

  .gps-map {
    height: 430px;
  }

  .course-search-row {
    flex-direction: row;
    align-items: stretch;
  }

  .course-search-input {
    flex: 1;
  }

  .course-search-actions {
    display: flex;
    flex-shrink: 0;
  }
}

/* 19TH-HOLE & GIFT VOUCHER PRINT STYLES */
@media print {
  body {
    background: #FFFFFF;
    padding: 0;
  }

  .no-print {
    display: none !important;
  }

  .view {
    display: none !important;
  }

  #view-board {
    display: block !important;
  }

  body.printing-voucher #view-board {
    display: none !important;
  }

  body.printing-voucher #view-shop {
    display: block !important;
  }

  body.printing-voucher #view-shop > *:not(#gift-voucher-card) {
    display: none !important;
  }

  body.printing-voucher #gift-voucher-card {
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }

  body.printing-voucher .voucher-preview-shell {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    box-shadow: none;
  }

  .card {
    box-shadow: none;
    border: 1px solid #888888;
    break-inside: avoid;
  }
}
