:root {
  --pine: #12372a;
  --fairway: #4f8b4c;
  --mint: #d8ead4;
  --ink: #17212b;
  --navy: #18334c;
  --paper: #f7f4ec;
  --white: #ffffff;
  --gold: #d8a845;
  --coral: #d86f45;
  --line: rgba(23, 33, 43, 0.14);
  --shadow: 0 18px 40px rgba(10, 22, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(10, 21, 17, 0.7), rgba(10, 21, 17, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(18, 55, 42, 0.75);
  color: var(--gold);
  font-size: 14px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--gold);
}

.public-menu-toggle {
  display: none !important;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  overflow: hidden;
  padding: 106px 0 28px;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 18, 14, 0.78) 0%, rgba(6, 18, 14, 0.58) 34%, rgba(6, 18, 14, 0.08) 72%),
    linear-gradient(180deg, rgba(6, 18, 14, 0.28) 0%, rgba(6, 18, 14, 0.12) 55%, rgba(6, 18, 14, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  align-self: flex-start;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(58px, 9vw, 122px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.15;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-signup-card {
  width: min(860px, 100%);
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  margin-top: 24px;
  padding: 18px;
  background: rgba(12, 33, 26, 0.58);
  backdrop-filter: blur(16px);
}

.hero-signup-card h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.hero-signup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.hero-signup-grid label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-signup-grid input {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
}

.hero-signup-error {
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 10px 12px;
  color: #fae6dc;
  background: rgba(138, 62, 37, 0.72);
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 13px 18px;
  font-weight: 800;
  line-height: 1.1;
}

.button.primary {
  color: #152117;
  background: var(--gold);
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-strip {
  position: relative;
  z-index: 2;
  width: calc(100% - (clamp(18px, 7vw, 96px) * 2));
  align-self: center;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(12, 33, 26, 0.62);
  backdrop-filter: blur(16px);
}

.hero-strip span {
  min-width: 0;
  padding: 17px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.hero-strip span:last-child {
  border-right: 0;
}

.hero-strip strong {
  display: block;
  color: var(--white);
  font-size: 24px;
}

.intro-band,
.split-section,
.metrics-section,
.analytics-band,
.launch-section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(26px, 6vw, 80px);
  align-items: end;
  background: var(--paper);
}

.intro-band p:last-child,
.content-panel p,
.analytics-copy p,
.launch-grid p,
.metric-card p {
  color: rgba(23, 33, 43, 0.72);
  font-size: 17px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--white);
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.content-panel {
  max-width: 560px;
}

.flow-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.flow-list div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-list span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.flow-list p {
  margin-bottom: 0;
}

.metrics-section {
  background: #112a24;
  color: var(--white);
}

.metrics-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.metric-card p {
  color: rgba(255, 255, 255, 0.72);
}

.metric-value {
  display: block;
  margin-bottom: 44px;
  color: var(--gold);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  line-height: 1;
}

.analytics-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  background: var(--paper);
}

.analytics-band img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.launch-section {
  background: var(--white);
}

.launch-section > h2 {
  max-width: 880px;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.launch-grid > div {
  padding: 24px;
  border-top: 4px solid var(--fairway);
  border-radius: 8px;
  background: #f2f7f0;
}

.launch-grid > div:nth-child(2) {
  border-top-color: var(--navy);
}

.launch-grid > div:nth-child(3) {
  border-top-color: var(--coral);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.8);
  background: var(--ink);
}

.aixe-footer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  line-height: 1;
}

.aixe-mark {
  display: inline-flex;
  align-items: center;
  opacity: 0.92;
}

.aixe-mark:hover,
.aixe-mark:focus-visible {
  opacity: 1;
}

.aixe-mark img {
  width: 84px;
  height: 28px;
}

.aixe-tagline {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.2;
}

.aixe-tagline:hover,
.aixe-tagline:focus-visible {
  color: var(--white);
}

.golfer-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(18, 55, 42, 0.12);
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(18px);
}

.golfer-brand,
.golfer-nav {
  display: inline-flex;
  align-items: center;
}

.golfer-brand {
  gap: 12px;
  font-weight: 900;
}

.golfer-brand .brand-mark {
  border-color: rgba(18, 55, 42, 0.26);
  background: var(--pine);
}

.golfer-nav {
  gap: clamp(12px, 2.4vw, 28px);
  color: rgba(23, 33, 43, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.nav-menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 55, 42, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
}

.nav-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--pine);
}

.golfer-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-modal-link {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.golfer-nav a:hover,
.golfer-nav a:focus-visible,
.nav-modal-link:hover,
.nav-modal-link:focus-visible {
  color: var(--pine);
  border-color: var(--gold);
}

.global-save-message,
.global-error-message {
  position: sticky;
  z-index: 29;
  top: 69px;
  width: fit-content;
  max-width: min(760px, calc(100% - 36px));
  border-radius: 6px;
  margin: 12px auto 0;
  padding: 10px 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(18, 55, 42, 0.12);
}

.global-save-message {
  color: #21492e;
  background: #dff0d9;
}

.global-error-message {
  color: #8a3e25;
  background: #fae6dc;
}

.golfer-page {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(30px, 5vw, 70px) 0;
}

.dashboard-hero,
.round-detail-hero,
.page-title-band,
.upload-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 22px;
  background: linear-gradient(120deg, #143d2f, #285f45 52%, #e8dcc3);
  color: var(--white);
}

.image-title-band {
  isolation: isolate;
  background: #143d2f;
}

.image-title-band::before,
.image-title-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.image-title-band::before {
  z-index: 0;
  background-image: var(--title-image);
  background-position: center;
  background-size: cover;
}

.image-title-band::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 27, 20, 0.86) 0%, rgba(9, 27, 20, 0.64) 42%, rgba(9, 27, 20, 0.18) 100%),
    linear-gradient(180deg, rgba(9, 27, 20, 0.2) 0%, rgba(9, 27, 20, 0.58) 100%);
}

.image-title-band > * {
  position: relative;
  z-index: 2;
}

.dashboard-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  min-height: 380px;
  align-items: center;
}

.dashboard-hero > div,
.round-detail-hero > div,
.page-title-band,
.upload-hero > div {
  padding: clamp(28px, 5vw, 58px);
}

.dashboard-hero img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.dashboard-hero h1,
.round-detail-hero h1,
.page-title-band h1,
.upload-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(46px, 7vw, 92px);
}

.dashboard-hero p:not(.section-kicker),
.round-detail-hero p:not(.section-kicker),
.page-title-band p:not(.section-kicker),
.upload-hero p:not(.section-kicker) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.page-title-band {
  min-height: 280px;
  align-content: end;
  background: linear-gradient(120deg, #143d2f, #3f7955 62%, #d8a845);
}

.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.stat-card-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.line-chart-card,
.drive-panel,
.insight-panel,
.recent-rounds-panel,
.round-table-card,
.club-card,
.manifest-course,
.auth-card,
.upload-drop,
.upload-contract-grid article {
  border: 1px solid rgba(18, 55, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(18, 55, 42, 0.1);
}

.stat-card {
  min-height: 164px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 244, 236, 0.86)),
    radial-gradient(circle at top right, rgba(216, 168, 69, 0.18), transparent 44%);
}

.stat-card span,
.chart-title span,
.round-table.header span {
  color: rgba(23, 33, 43, 0.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin: 12px 0 10px;
  color: var(--pine);
  font-size: clamp(40px, 5vw, 62px);
  line-height: 0.92;
}

.stat-card p,
.line-chart-card p,
.drive-panel p,
.insight-panel p,
.club-card p,
.upload-contract-grid p {
  margin-bottom: 0;
  color: rgba(23, 33, 43, 0.68);
}

.analytics-layout,
.dashboard-bottom-grid,
.upload-contract-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.6fr);
  gap: 18px;
  margin-top: 22px;
}

.dashboard-bottom-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.68fr);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading-row h2,
.drive-panel h2,
.insight-panel h2,
.recent-rounds-panel h2,
.manifest-course h2,
.upload-contract-grid h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.section-heading-row > span {
  color: rgba(23, 33, 43, 0.58);
  font-weight: 800;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.line-chart-card {
  padding: 18px;
}

.line-chart-card svg {
  width: 100%;
  height: auto;
  margin: 8px 0 4px;
}

.chart-gridline {
  fill: none;
  stroke: rgba(18, 55, 42, 0.13);
  stroke-width: 1;
}

.chart-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.chart-title h3 {
  margin-bottom: 0;
  color: var(--pine);
}

.drive-panel,
.insight-panel,
.recent-rounds-panel,
.round-table-card,
.manifest-course,
.auth-card {
  padding: 22px;
}

.fairway-map {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 18px;
  background:
    linear-gradient(90deg, rgba(216, 168, 69, 0.18), transparent 18%, rgba(79, 139, 76, 0.26) 50%, transparent 82%, rgba(216, 111, 69, 0.18)),
    repeating-linear-gradient(0deg, rgba(18, 55, 42, 0.08), rgba(18, 55, 42, 0.08) 1px, transparent 1px, transparent 42px),
    #edf4e8;
}

.fairway-map::before {
  content: "";
  position: absolute;
  inset: 8% 28%;
  border-radius: 50% / 42%;
  border: 2px solid rgba(79, 139, 76, 0.32);
  background: rgba(79, 139, 76, 0.14);
}

.fairway-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(18, 55, 42, 0.18);
}

.left-line {
  left: 35%;
}

.right-line {
  right: 35%;
}

.drive-dot {
  position: absolute;
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(18, 55, 42, 0.22);
}

.drive-dot-button {
  z-index: 2;
  padding: 0;
  appearance: none;
  cursor: pointer;
}

.drive-dot-button:hover,
.drive-dot-button:focus-visible,
.drive-dot-button.selected {
  width: 17px;
  height: 17px;
  outline: 3px solid rgba(216, 168, 69, 0.34);
  outline-offset: 2px;
}

.drive-dot.left {
  background: #d86f45;
}

.drive-dot.middle {
  background: #4f8b4c;
}

.drive-dot.right {
  background: #2e6f95;
}

.drive-dot.wth {
  background: #d8a845;
}

.drive-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: rgba(23, 33, 43, 0.7);
  font-weight: 800;
}

.drive-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.drive-legend .drive-dot {
  position: static;
  transform: none;
}

.drive-note-card {
  display: grid;
  gap: 7px;
  min-height: 126px;
  border: 1px solid rgba(18, 55, 42, 0.14);
  border-radius: 8px;
  margin-top: 16px;
  padding: 16px;
  background: #fffaf0;
}

.drive-note-card span {
  color: rgba(23, 33, 43, 0.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drive-note-card strong {
  color: var(--pine);
  font-size: 18px;
}

.drive-note-card p {
  margin: 0;
}

.insight-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.insight-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: #f4f7ef;
}

.compact-round-list {
  display: grid;
  gap: 10px;
}

.compact-round-list a,
.upload-target-row {
  display: grid;
  grid-template-columns: 84px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #f4f7ef;
}

.compact-round-list strong {
  color: var(--pine);
  font-size: 24px;
}

.compact-round-list em {
  overflow: hidden;
  color: rgba(23, 33, 43, 0.68);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round-table-card {
  overflow: hidden;
}

.round-table {
  display: grid;
  grid-template-columns: 140px minmax(180px, 1fr) 80px 80px 80px 80px minmax(150px, 0.7fr);
  gap: 12px;
  align-items: center;
  min-width: 860px;
}

.round-table.header {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.round-table.row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(18, 55, 42, 0.1);
}

.round-table.row:hover {
  color: var(--pine);
  background: rgba(79, 139, 76, 0.08);
}

.round-detail-hero {
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
}

.score-ring {
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  justify-self: center;
  border: 12px solid rgba(216, 168, 69, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.score-ring span {
  align-self: end;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 900;
  text-transform: uppercase;
}

.score-ring strong {
  align-self: start;
  font-size: 58px;
}

.hole-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.hole-card {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(18, 55, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.hole-card-edit {
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.hole-card-edit:hover,
.hole-card-edit:focus-visible {
  border-color: rgba(216, 168, 69, 0.9);
  box-shadow: 0 14px 28px rgba(18, 55, 42, 0.16);
  outline: none;
  transform: translateY(-2px);
}

.hole-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hole-card header strong {
  color: var(--pine);
  font-size: 30px;
}

.hole-card dl,
.club-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.hole-card dl div,
.club-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.hole-card dt,
.club-card dt {
  color: rgba(23, 33, 43, 0.56);
  font-weight: 800;
}

.hole-card dd,
.club-card dd {
  margin: 0;
}

.hole-card-edit-hint {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--pine);
  background: rgba(216, 168, 69, 0.18);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-open {
  overflow: hidden;
}

.hole-editor-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 20, 16, 0.68);
}

.hole-editor-backdrop[hidden] {
  display: none;
}

.hole-editor-card {
  width: min(1080px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border: 1px solid rgba(18, 55, 42, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 244, 236, 0.98)),
    var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.hole-editor-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 236, 0.96);
  backdrop-filter: blur(8px);
}

.hole-editor-header h2 {
  margin: 0;
  color: var(--pine);
  font-size: 34px;
}

.icon-close-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(18, 55, 42, 0.18);
  border-radius: 50%;
  color: var(--pine);
  background: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.hole-editor-form {
  padding: clamp(18px, 3vw, 30px);
}

.scorecard-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bubble-field {
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(18, 55, 42, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.bubble-field-wide {
  grid-column: 1 / -1;
}

.bubble-field legend,
.scorecard-number-input span {
  padding: 0 6px;
  color: rgba(23, 33, 43, 0.68);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.bubble-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tee-bubble-row {
  gap: 8px;
}

.bubble-option {
  display: inline-grid;
  min-width: 50px;
  min-height: 50px;
  place-items: center;
  cursor: pointer;
}

.bubble-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bubble-option span {
  display: grid;
  min-width: 50px;
  min-height: 50px;
  place-items: center;
  border: 2px solid rgba(18, 55, 42, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--pine);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.bubble-option-wide span {
  min-width: 72px;
}

.bubble-option input:focus-visible + span {
  outline: 3px solid rgba(216, 168, 69, 0.45);
  outline-offset: 2px;
}

.bubble-option input:checked + span {
  border-color: var(--pine);
  color: var(--white);
  background: var(--pine);
  box-shadow: inset 0 0 0 4px rgba(216, 168, 69, 0.55);
}

.scorecard-number-input {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(18, 55, 42, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.scorecard-number-input input {
  width: 100%;
  min-height: 58px;
  border: 2px solid rgba(18, 55, 42, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--pine);
  background: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.scorecard-number-input input:focus-visible {
  border-color: var(--gold);
  outline: 3px solid rgba(216, 168, 69, 0.26);
}

.hole-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
}

.primary-action {
  color: var(--white);
  background: var(--pine);
}

.secondary-action {
  color: var(--pine);
  background: #e8eee3;
}

.compact-modal-card {
  width: min(920px, 100%);
}

.quick-create-panel,
.empty-state-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(18, 55, 42, 0.12);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 244, 236, 0.82)),
    radial-gradient(circle at right center, rgba(216, 168, 69, 0.18), transparent 42%);
  box-shadow: 0 12px 28px rgba(18, 55, 42, 0.08);
}

.quick-create-panel h2,
.empty-state-panel h2 {
  margin-bottom: 8px;
  color: var(--pine);
  font-size: clamp(26px, 3vw, 40px);
}

.quick-create-panel p:last-child,
.empty-state-panel p:last-child {
  margin-bottom: 0;
  color: rgba(23, 33, 43, 0.68);
}

.empty-state-panel {
  display: grid;
  justify-content: stretch;
  min-height: 190px;
  align-content: center;
}

.tee-create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.club-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.club-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.small-action {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--pine);
  font-weight: 900;
}

.card-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.compact-action {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
}

.compact-form {
  border: 1px solid rgba(18, 55, 42, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.checkbox-line {
  display: flex !important;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(18, 55, 42, 0.14);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.checkbox-line input {
  width: 20px;
  height: 20px;
}

.manifest-stack {
  display: grid;
  gap: 18px;
}

.manifest-course header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.tee-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tee-strip span {
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef4e9;
}

.tee-strip strong {
  color: var(--pine);
}

.manifest-hole-table {
  display: grid;
  gap: 6px;
  overflow-x: auto;
}

.manifest-row {
  display: grid;
  grid-template-columns: var(--manifest-columns, minmax(90px, 1fr) repeat(3, 90px));
  min-width: max-content;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 6px;
  background: #f8faf5;
}

.manifest-row.header {
  background: #e7efe0;
  font-weight: 900;
}

.manifest-edit-button {
  margin-bottom: 16px;
}

.manifest-row-action {
  min-height: 36px;
  padding: 8px 12px;
}

.profile-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-form label {
  display: grid;
  gap: 7px;
  color: rgba(23, 33, 43, 0.7);
  font-weight: 900;
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 55, 42, 0.18);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
}

.profile-form .wide {
  grid-column: 1 / -1;
}

.readonly-stat {
  display: grid;
  min-height: 74px;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(18, 55, 42, 0.14);
  border-radius: 6px;
  padding: 12px 13px;
  background: rgba(216, 234, 212, 0.46);
}

.readonly-stat span {
  color: rgba(23, 33, 43, 0.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.readonly-stat strong {
  color: var(--pine);
}

.auth-copy {
  color: rgba(23, 33, 43, 0.7);
}

.profile-save {
  border: 0;
  cursor: pointer;
}

.save-message,
.form-error {
  width: fit-content;
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 12px 14px;
  font-weight: 900;
}

.save-message {
  background: #dff0d9;
  color: #21492e;
}

.form-error {
  background: #fae6dc;
  color: #8a3e25;
}

.auth-page {
  display: grid;
  min-height: 74vh;
  place-items: center;
}

.auth-card {
  width: min(520px, 100%);
}

.auth-secondary-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--pine);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-secondary-link:hover,
.auth-secondary-link:focus-visible {
  color: #815d19;
}

.wide-auth {
  width: min(820px, 100%);
}

.upload-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  align-items: center;
}

.upload-drop {
  display: grid;
  min-height: 230px;
  place-items: center;
  margin: clamp(20px, 3vw, 44px);
  border: 2px dashed rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  text-align: center;
}

.upload-drop strong {
  color: var(--gold);
  font-size: 28px;
}

.upload-contract-grid article {
  padding: 24px;
}

.upload-target-row {
  grid-template-columns: 130px 60px minmax(160px, 0.8fr) minmax(260px, 1fr);
  margin-top: 10px;
}

.upload-target-row code {
  overflow-wrap: anywhere;
  color: rgba(23, 33, 43, 0.64);
}

.golfer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.8);
  background: var(--pine);
}

@media (max-width: 880px) {
  .site-header {
    position: absolute;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
  }

  .nav-links {
    display: none;
  }

  .public-menu-toggle {
    position: fixed;
    top: 14px;
    right: 16px;
    left: auto;
    transform: translateX(-40px);
    display: inline-flex !important;
    flex: 0 0 44px;
    flex-direction: column;
    gap: 4px;
    opacity: 1;
    visibility: visible;
  }

  .site-header .nav-links.open {
    position: absolute;
    top: calc(100% - 8px);
    left: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    background: rgba(12, 33, 26, 0.94);
    box-shadow: var(--shadow);
  }

  .site-header .nav-links.open a {
    min-height: 42px;
    border-bottom: 0;
    border-radius: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    align-self: center;
    margin: 0 auto;
  }

  .hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 36px);
  }

  .hero-strip span:nth-child(2) {
    border-right: 0;
  }

  .hero-strip span:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .intro-band,
  .split-section,
  .analytics-band,
  .metric-grid,
  .launch-grid,
  .hero-signup-grid {
    grid-template-columns: 1fr;
  }

  .analytics-copy {
    order: 2;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .aixe-footer {
    margin-left: 0;
  }

  .golfer-header,
  .golfer-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .golfer-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .nav-menu-toggle {
    display: inline-flex !important;
    flex: 0 0 44px;
    flex-direction: column;
    gap: 4px;
    opacity: 1;
    visibility: visible;
  }

  .golfer-nav {
    display: none;
    flex: 1 0 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border-top: 1px solid rgba(18, 55, 42, 0.12);
    padding-top: 12px;
    overflow-x: visible;
  }

  .golfer-nav.open {
    display: flex;
  }

  .golfer-nav a,
  .nav-modal-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    border-bottom: 0;
    border-radius: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.62);
  }

  .dashboard-hero,
  .analytics-layout,
  .dashboard-bottom-grid,
  .round-detail-hero,
  .club-card-grid,
  .upload-hero,
  .upload-contract-grid,
  .stat-card-grid,
  .stat-card-grid.compact,
  .chart-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .quick-create-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .tee-create-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero img {
    min-height: 260px;
  }

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

  .scorecard-editor-grid {
    grid-template-columns: 1fr;
  }

  .round-table-card {
    overflow-x: auto;
  }

  .upload-target-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: 56px;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-signup-card {
    padding: 14px;
  }

  .hero-signup-grid input {
    min-height: 48px;
    font-size: 18px;
  }

  .hero-strip {
    width: calc(100% - 32px);
  }

  .hero-strip span {
    padding: 13px 12px;
    font-size: 12px;
  }

  .hole-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hole-editor-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .hole-editor-card {
    max-height: calc(100vh - 20px);
  }

  .hole-editor-header h2 {
    font-size: 28px;
  }

  .bubble-option,
  .bubble-option span {
    min-width: 46px;
    min-height: 46px;
  }

  .hole-editor-actions {
    display: grid;
  }

  .manifest-row {
    grid-template-columns: 1fr 54px 54px 54px;
  }
}
