/* ═══════════════════════════════════════════════════════════════════════════
   LORGEN INVITATIONAL — Main Stylesheet
   Colors: White & Gold  |  PGA-inspired design
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --gold:          #C9A84C;
  --gold-light:    #E8C87A;
  --gold-lighter:  #F5E4A8;
  --gold-dark:     #9A7B2E;
  --gold-darker:   #6B5420;
  --gold-pale:     #FAF4E3;
  --gold-border:   #E5D9A9;
  --white:         #FFFFFF;
  --off-white:     #FAF9F6;
  --light:         #F5F3EE;
  --dark:          #0D1B2A;
  --dark-mid:      #162236;
  --dark-light:    #1E3048;
  --text:          #1A1A1A;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;
  --success:       #16A34A;
  --danger:        #DC2626;
  --warning:       #D97706;
  --info:          #2563EB;

  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm:     4px;
  --radius:        8px;
  --radius-lg:     12px;
  --radius-xl:     20px;
  --radius-pill:   999px;

  --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
  --shadow:        0 4px 14px rgba(0,0,0,.12);
  --shadow-lg:     0 8px 30px rgba(0,0,0,.18);
  --shadow-gold:   0 4px 20px rgba(201,168,76,.35);

  --transition:    0.25s ease;
  --nav-height:    72px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 800px; }
.container--wide   { max-width: 1400px; }

.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--dark);
  border-bottom: 1px solid rgba(201,168,76,.2);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(13,27,42,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-logo {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,.45);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar-brand:hover .navbar-logo {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201,168,76,.45);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  color: rgba(255,255,255,.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--gold-light); }

.nav-link--cta {
  background: var(--gold);
  color: var(--dark) !important;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover { background: var(--gold-light); transform: translateY(-1px); }

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-mobile {
  display: none;
  background: var(--dark-mid);
  border-bottom: 1px solid rgba(201,168,76,.15);
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  z-index: 999;
  padding: 16px 24px;
}
.navbar-mobile.open { display: block; }
.navbar-mobile .nav-link {
  display: block;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar-mobile .nav-link:last-child { border-bottom: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--dark);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,168,76,.5);
  filter: brightness(1.05);
}
.btn--outline {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}
.btn--dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn--dark:hover { background: var(--dark-mid); transform: translateY(-1px); }
.btn--sm { padding: 8px 18px; font-size: 0.8rem; }
.btn--lg { padding: 16px 36px; font-size: 1rem; }
.btn--danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn--danger:hover { background: #b91c1c; }
.btn--success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gold-border);
  background: var(--gold-pale);
}
.card-body { padding: 24px; }
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gold-border);
  background: var(--light);
}

/* ── Section Headers ─────────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold-dark);
  border: 1px solid var(--gold-border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title span { color: var(--gold); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Gold Divider ─────────────────────────────────────────────────────────── */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gold-divider i { color: var(--gold); font-size: 0.75rem; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--white) 0%, var(--gold-pale) 55%, var(--white) 100%);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(201,168,76,.12) 0%, transparent 65%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(201,168,76,.03) 60px,
      rgba(201,168,76,.03) 61px
    );
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.hero-logo {
  width: min(260px, 54vw);
  height: min(260px, 54vw);
  border-radius: 50%;
  margin: 0 auto 32px;
  border: 3px solid var(--gold-border);
  box-shadow: 0 4px 40px rgba(201,168,76,.2), 0 0 0 8px rgba(201,168,76,.07);
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--dark);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.hero-title span { color: var(--gold); }
.hero-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 32px;
}
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-meta-item {
  text-align: center;
}
.hero-meta-item .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.hero-meta-item .value {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--dark);
}
.hero-divider {
  width: 1px;
  height: 40px;
  background: var(--gold-border);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Page Hero (inner pages — light gold/white per CLAUDE.md) ─────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--white) 50%, var(--gold-pale) 100%);
  border-bottom: 1px solid var(--gold-border);
  padding: calc(var(--nav-height) + 56px) 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,168,76,.1) 0%, transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(201,168,76,.12);
  border: 1px solid var(--gold-border);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--dark);
  margin-bottom: 12px;
}
.page-hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Feature Cards (3-col) ─────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-gold); transform: translateY(-4px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--gold);
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 10px;
}
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ── Scoreboard Table ─────────────────────────────────────────────────────── */
.leaderboard-wrap { overflow-x: auto; }
.leaderboard {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}
.leaderboard thead th {
  background: var(--dark);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--gold);
}
.leaderboard thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.leaderboard thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.leaderboard tbody tr {
  border-bottom: 1px solid var(--gold-border);
  transition: background var(--transition);
}
.leaderboard tbody tr:hover { background: var(--gold-pale); }
.leaderboard tbody tr:last-child { border-bottom: none; }
.leaderboard td { padding: 14px 16px; vertical-align: middle; }

.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}
.pos-1 { background: var(--gold); color: var(--dark); box-shadow: var(--shadow-gold); }
.pos-2 { background: #C0C0C0; color: #333; }
.pos-3 { background: #CD7F32; color: var(--white); }
.pos-other { background: var(--light); color: var(--text-muted); border: 1px solid var(--gold-border); }

.team-name-cell .team { font-weight: 600; color: var(--dark); font-size: 0.95rem; }
.team-name-cell .players { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.score-par {
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
}
.score-under { color: var(--success); }
.score-even  { color: var(--text); }
.score-over  { color: var(--danger); }

/* Hole scorecard grid */
.scorecard-wrap { overflow-x: auto; }
.scorecard {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 900px;
}
.scorecard th {
  background: var(--dark);
  color: rgba(255,255,255,.85);
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.08);
}
.scorecard th.hole-special { color: var(--gold-light); }
.scorecard td {
  padding: 9px 8px;
  text-align: center;
  border: 1px solid var(--gold-border);
  background: var(--white);
}
.scorecard tr:nth-child(odd) td { background: var(--off-white); }
.scorecard .par-row td { background: var(--dark-mid) !important; color: rgba(255,255,255,.6); font-size: 0.7rem; font-style: italic; }
.scorecard .totals-col { background: var(--dark) !important; color: var(--gold-light) !important; font-weight: 700; }

/* Hole score chips */
.score-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.78rem;
}
.chip-eagle   { background: #2563EB; color: white; }
.chip-birdie  { background: #DC2626; color: white; }
.chip-par     { background: transparent; border: 1.5px solid #9CA3AF; color: var(--text); }
.chip-bogey   { background: #FEF3C7; border: 1px solid #F59E0B; color: #92400E; }
.chip-double  { background: #FEE2E2; border: 1px solid #EF4444; color: #991B1B; }

/* ── Awards ─────────────────────────────────────────────────────────────────── */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.award-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.award-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201,168,76,.12), transparent 60%);
}
.award-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
  position: relative;
}
.award-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  position: relative;
}
.award-team {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 4px;
  position: relative;
}
.award-players {
  font-size: 0.82rem;
  color: rgba(255,255,255,.55);
  position: relative;
}
.award-detail {
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-top: 8px;
  font-style: italic;
  position: relative;
}

/* ── Live indicator ─────────────────────────────────────────────────────────── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220,38,38,.15);
  color: #f87171;
  border: 1px solid rgba(220,38,38,.3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(0.75); }
}

/* ── Legacy ─────────────────────────────────────────────────────────────────── */
.legacy-trophy-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.trophy-card {
  background: linear-gradient(145deg, var(--dark), var(--dark-mid));
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius-lg);
  padding: 32px 20px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.trophy-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, rgba(201,168,76,.2), transparent 60%);
}
.trophy-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(201,168,76,.25); }
.trophy-year {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.trophy-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(201,168,76,.6));
}
.trophy-team {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.trophy-players {
  font-size: 0.8rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.trophy-score {
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 4px; }

/* PIN Input */
.pin-input-wrap {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}
.pin-digit {
  width: 64px;
  height: 72px;
  border: 2px solid var(--gold-border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: all var(--transition);
}
.pin-digit:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,.2);
  transform: scale(1.05);
}

/* ── Scorecard entry (player) ─────────────────────────────────────────────── */
.score-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.hole-card {
  background: var(--white);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.hole-card.submitted { border-color: var(--success); background: #f0fdf4; }
.hole-card.photo-required { border-color: var(--warning); }
.hole-card.photo-required.photo-done { border-color: var(--gold); }
.hole-number-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.hole-par {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.hole-score-input {
  width: 70px;
  height: 56px;
  border: 2px solid var(--gold-border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 auto 12px;
  display: block;
  outline: none;
  transition: all var(--transition);
}
.hole-score-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.hole-score-input:disabled { background: var(--light); color: var(--text-muted); }
.hole-photo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  background: var(--gold-pale);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 600;
  transition: all var(--transition);
  margin-bottom: 10px;
}
.hole-photo-btn:hover { background: var(--gold-border); }
.hole-photo-btn.uploaded { background: #f0fdf4; border-color: var(--success); color: var(--success); }

/* ── Admin Panel ─────────────────────────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-height));
}
.admin-sidebar {
  background: var(--dark);
  padding: 32px 0;
  border-right: 1px solid rgba(201,168,76,.15);
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.sidebar-section {
  margin-bottom: 8px;
  padding: 0 20px;
}
.sidebar-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 8px 12px 4px;
  margin-bottom: 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255,255,255,.7);
  font-size: 0.875rem;
  transition: all var(--transition);
  cursor: pointer;
}
.sidebar-link:hover { background: rgba(201,168,76,.1); color: var(--gold-light); }
.sidebar-link.active { background: rgba(201,168,76,.15); color: var(--gold-light); border-left: 2px solid var(--gold); }
.sidebar-link i { width: 18px; text-align: center; font-size: 0.9rem; }

.admin-content { padding: 40px; background: var(--off-white); overflow-y: auto; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-panel-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 6px;
}
.admin-panel-sub { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 32px; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

/* Hole config table */
.hole-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.hole-config-cell {
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
}
.hole-config-cell h4 { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.hole-config-cell select { width: 100%; padding: 4px 6px; border: 1px solid var(--gold-border); border-radius: var(--radius-sm); font-size: 0.82rem; }
.photo-toggle { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 0.72rem; color: var(--text-muted); }
.photo-toggle input { accent-color: var(--gold); }

/* ── Toast notifications ─────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
  max-width: 340px;
}
.toast--success { background: #1a3a1a; border: 1px solid var(--success); color: #86efac; }
.toast--error   { background: #3a1a1a; border: 1px solid var(--danger); color: #fca5a5; }
.toast--info    { background: #1a2a3a; border: 1px solid var(--info); color: #93c5fd; }
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Modal ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(.96);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 20px;
}
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-toggle { display: flex; }

  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    height: auto;
    padding: 16px 0;
  }
  .admin-content { padding: 24px 16px; }

  .score-entry-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { gap: 16px; }
  .hero-divider { display: none; }

  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }

  .leaderboard { font-size: 0.82rem; }
  .leaderboard td, .leaderboard th { padding: 10px 10px; }

  .trophy-card { padding: 24px 14px 18px; }
}

@media (max-width: 480px) {
  .pin-digit { width: 52px; height: 60px; font-size: 1.6rem; }
  .score-entry-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.text-gold   { color: var(--gold); }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.78rem; }

.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2       { gap: 8px; }
.gap-4       { gap: 16px; }

.bg-dark     { background: var(--dark); }
.bg-light    { background: var(--light); }

.d-none { display: none !important; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--gold    { background: var(--gold-pale); color: var(--gold-dark); border: 1px solid var(--gold-border); }
.badge--success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.badge--danger  { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.badge--info    { background: #eff6ff; color: var(--info); border: 1px solid #bfdbfe; }
.badge--active  { background: rgba(22,163,74,.15); color: #4ade80; border: 1px solid rgba(22,163,74,.3); }

.empty-state {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 36px 24px;
}
.empty-state__icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.empty-state__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.empty-state__description {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 18px;
  line-height: 1.55;
}
.empty-state__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(201,168,76,.2);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-logo { height: 54px; width: 54px; border-radius: 50%; margin-bottom: 12px; border: 2px solid rgba(201,168,76,.3); }
.footer-tagline { font-size: 0.78rem; color: rgba(255,255,255,.4); letter-spacing: 0.12em; text-transform: uppercase; }
.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.55); font-size: 0.875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ── Instagram QR-kode ──────────────────────────────────────────────────────── */
.instagram-qr {
  width: 100px; height: 100px; border-radius: var(--radius);
  border: 2px solid rgba(201,168,76,.35);
  display: block; margin-top: 4px;
}

/* ── Hurtignavigasjon (quick-nav) ────────────────────────────────────────────── */
.quick-nav {
  position: relative;
  z-index: 1001;
  margin-left: 12px;
}
.quick-nav-btn {
  width: 42px; height: 42px;
  background: var(--gold);
  border: none; border-radius: 50%;
  color: var(--dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold);
  transition: background .2s, transform .2s;
}
.quick-nav-btn:hover { background: var(--gold-light); transform: scale(1.08); }
.quick-nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--dark);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 195px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 2px;
}
.quick-nav-panel.open { display: flex; }
.quick-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.quick-nav-link i { width: 16px; color: var(--gold); text-align: center; }
.quick-nav-link:hover { background: rgba(201,168,76,.1); color: var(--gold-light); }
.quick-nav-link.active { background: rgba(201,168,76,.15); color: var(--gold); font-weight: 600; }

@media (max-width: 768px) {
  .quick-nav { display: none; }
}
