/* ============================================
   MY FIRST GOLF CLUB - COMPLETE STYLES
   Premium golf club meets baseball collector card
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
  --green: #1a5e3a;
  --green-light: #2d8a5e;
  --green-dark: #0d3520;
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #a07d2e;
  --cream: #faf8f0;
  --cream-dark: #f0ece0;
  --navy: #1b2a4a;
  --maroon: #6b1d2a;
  --royal: #2c3e8c;
  --black-card: #1a1a1a;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --text-muted: #999;
  --border: #e0dcd0;
  --shadow: rgba(0,0,0,0.1);
  --shadow-lg: rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-accent: 'Bebas Neue', Impact, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ============================================
   3. NAVIGATION (.nav)
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 112px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--green);
  background: rgba(26, 94, 58, 0.06);
}

.nav-link.active {
  color: var(--green);
  background: rgba(26, 94, 58, 0.08);
  font-weight: 600;
}

/* Nav Right - Auth & User */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-avatar-wrapper {
  position: relative;
  cursor: pointer;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.nav-avatar:hover {
  border-color: var(--gold);
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px 0;
  z-index: 1001;
}

.nav-dropdown.open {
  display: block;
}

.nav-dropdown a,
.nav-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.nav-dropdown a:hover,
.nav-dropdown button:hover {
  background: var(--cream);
  color: var(--green);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Mobile Navigation */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--border);
}

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

.nav-mobile a {
  text-decoration: none;
  color: var(--text);
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile-auth {
  display: flex;
  gap: 8px;
  padding-top: 12px;
}

.nav-mobile-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-user .nav-avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

/* ============================================
   4. BUTTONS (.btn)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Ghost on light backgrounds */
.btn-ghost-light {
  background: transparent;
  color: var(--text-light);
  border-color: var(--border);
}

.btn-ghost-light:hover {
  background: var(--cream);
  border-color: var(--green-light);
  color: var(--green);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-arrow {
  font-size: 20px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================
   5. SECTIONS (General)
   ============================================ */
.section {
  min-height: 100vh;
  padding-top: 120px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   6. HERO SECTION (.hero-section)
   ============================================ */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(165deg, var(--green-dark) 0%, var(--green) 40%, var(--green-light) 100%);
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.3) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255, 255, 255, 0.02) 30px, rgba(255, 255, 255, 0.02) 60px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 80px 24px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-accent);
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title-accent {
  color: var(--gold);
  font-style: italic;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-family: var(--font-accent);
  font-size: 36px;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

/* Floating cards on hero */
.hero-card-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
  top: 15%;
  right: 8%;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 18%;
  left: 6%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-20px) rotate(3deg);
  }
}

.mini-card {
  width: 160px;
  padding: 20px 16px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--gold);
}

.mini-card-player {
  background: linear-gradient(135deg, #1a5e3a, #0d3520);
}

.mini-card-org {
  background: linear-gradient(135deg, #1b2a4a, #0f1a30);
}

.mini-card-badge {
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}

.mini-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  border: 2px solid var(--gold);
}

.mini-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.mini-card-year {
  font-size: 11px;
  color: var(--gold-light);
}

@media (max-width: 900px) {
  .hero-card-preview {
    display: none;
  }
}

/* ============================================
   7. AUTH MODAL (.modal-auth)
   ============================================ */
.modal-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

.modal-auth {
  max-width: 420px;
  width: 100%;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-auth .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-auth .modal-close:hover {
  background: var(--cream-dark);
}

.modal-auth-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 8px;
  text-align: center;
}

.modal-auth-subtitle {
  font-size: 15px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 28px;
}

.auth-toggle {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 20px;
}

.auth-toggle a,
.auth-toggle button {
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  text-decoration: underline;
  transition: var(--transition);
}

.auth-toggle a:hover,
.auth-toggle button:hover {
  color: var(--green-light);
}

/* ============================================
   8. SUBMIT SECTION (.submit-section)
   ============================================ */
.submit-section {
  background: var(--cream);
  min-height: 100vh;
}

.submit-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.submit-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Card Type Toggle */
.card-type-toggle {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 40px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.type-btn:hover {
  border-color: var(--green-light);
}

.type-btn.active {
  border-color: var(--green);
  background: rgba(26, 94, 58, 0.04);
  box-shadow: 0 0 0 3px rgba(26, 94, 58, 0.1);
}

.type-icon {
  font-size: 28px;
}

.type-label {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.type-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Submit Layout */
.submit-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* Forms */
.card-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

.required {
  color: var(--maroon);
}

/* Form validation error states */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #c0392b;
  background: #fdf2f2;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-group.has-error label {
  color: #c0392b;
}

.field-error {
  display: block;
  color: #c0392b;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  animation: fieldErrorIn 0.3s ease;
}

@keyframes fieldErrorIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 94, 58, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.char-count {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Club Selector */
.club-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.club-option {
  cursor: pointer;
}

.club-option input {
  display: none;
}

.club-option span {
  display: block;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
}

.club-option input:checked + span {
  border-color: var(--green);
  background: rgba(26, 94, 58, 0.08);
  color: var(--green);
}

.club-option:hover span {
  border-color: var(--green-light);
}

/* Color Selector */
.color-selector {
  display: flex;
  gap: 12px;
}

.color-option {
  cursor: pointer;
}

.color-option input {
  display: none;
}

.color-swatch {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: var(--transition);
}

.color-option input:checked + .color-swatch {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.4);
  transform: scale(1.1);
}

.color-green {
  background: var(--green);
}

.color-navy {
  background: var(--navy);
}

.color-maroon {
  background: var(--maroon);
}

.color-black {
  background: var(--black-card);
}

.color-royal {
  background: var(--royal);
}

/* Photo Upload */
.photo-upload {
  position: relative;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 120px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  font-size: 14px;
}

.photo-placeholder:hover {
  border-color: var(--green);
  background: rgba(26, 94, 58, 0.02);
}

.photo-icon {
  font-size: 32px;
}

.photo-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid var(--border);
}

/* Preview Side */
.preview-side {
  position: relative;
}

.preview-sticky {
  position: sticky;
  top: 88px;
  text-align: center;
}

.preview-label {
  font-family: var(--font-accent);
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.preview-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.preview-flip-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

/* ============================================
   9. THE COLLECTOR CARD (.golf-card)
   ============================================ */
.card-preview-container {
  perspective: 1000px;
}

.golf-card {
  width: 320px;
  height: 460px;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.golf-card.flipped {
  transform: rotateY(180deg);
}

.golf-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* --- Card Front --- */
.card-front {
  display: flex;
  flex-direction: column;
}

/* Color themes - front */
.card-theme-green .card-front {
  background: linear-gradient(160deg, #1a5e3a 0%, #0d3520 100%);
}

.card-theme-navy .card-front {
  background: linear-gradient(160deg, #1b2a4a 0%, #0f1a30 100%);
}

.card-theme-maroon .card-front {
  background: linear-gradient(160deg, #6b1d2a 0%, #3d1018 100%);
}

.card-theme-black .card-front {
  background: linear-gradient(160deg, #2a2a2a 0%, #111 100%);
}

.card-theme-royal .card-front {
  background: linear-gradient(160deg, #2c3e8c 0%, #1a2452 100%);
}

/* Gold foil border effect */
.card-front::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid var(--gold);
  border-radius: calc(var(--radius-lg) - 4px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  transition: var(--transition);
}

/* Subtle diagonal stripe pattern */
.card-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.01) 20px,
    rgba(255, 255, 255, 0.01) 40px
  );
  pointer-events: none;
  z-index: 1;
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 0;
  position: relative;
  z-index: 2;
}

.card-type-badge {
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
}

.card-era-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.card-era-vintage {
  background: linear-gradient(135deg, #c9a84c, #a07d2e);
  color: #fff;
}

.card-era-classic {
  background: linear-gradient(135deg, #8a8a8a, #666);
  color: #fff;
}

.card-era-modern {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: #fff;
}

.card-photo-area {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px 12px;
  position: relative;
  z-index: 2;
}

.card-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card-initials {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card-name-area {
  text-align: center;
  padding: 0 18px 8px;
  position: relative;
  z-index: 2;
}

.card-player-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 2px;
}

.card-location {
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

.card-divider {
  height: 1px;
  margin: 6px 24px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
  position: relative;
  z-index: 2;
}

.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 8px 18px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.card-stat {
  text-align: center;
  padding: 6px 4px;
}

.card-stat-value {
  font-family: var(--font-accent);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.card-stat-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-bottom-bar {
  padding: 8px 18px 14px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.card-serial {
  font-family: var(--font-accent);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Card Back --- */
.card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}

/* Color themes - back (reversed gradients) */
.card-theme-green .card-back {
  background: linear-gradient(160deg, #0d3520 0%, #1a5e3a 100%);
}

.card-theme-navy .card-back {
  background: linear-gradient(160deg, #0f1a30 0%, #1b2a4a 100%);
}

.card-theme-maroon .card-back {
  background: linear-gradient(160deg, #3d1018 0%, #6b1d2a 100%);
}

.card-theme-black .card-back {
  background: linear-gradient(160deg, #111 0%, #2a2a2a 100%);
}

.card-theme-royal .card-back {
  background: linear-gradient(160deg, #1a2452 0%, #2c3e8c 100%);
}

/* Gold border on back */
.card-back::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid var(--gold);
  border-radius: calc(var(--radius-lg) - 4px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.card-back-header {
  padding: 20px 24px 12px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.card-back-title {
  font-family: var(--font-accent);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 2px;
}

.card-back-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.card-back-story {
  flex: 1;
  padding: 8px 24px;
  position: relative;
  z-index: 2;
}

.card-back-story p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-style: italic;
}

.card-back-details {
  padding: 12px 24px;
  position: relative;
  z-index: 2;
}

.card-back-detail {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.card-back-detail:last-child {
  border-bottom: none;
}

.card-back-detail-label {
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
}

.card-back-detail-value {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.card-back-footer {
  padding: 10px 24px 16px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.card-back-logo {
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

/* Grid size variant (smaller cards) */
.card-grid .golf-card {
  width: 260px;
  height: 374px;
}

.card-grid .card-player-name {
  font-size: 18px;
}

.card-grid .card-initials {
  width: 80px;
  height: 80px;
  font-size: 28px;
}

.card-grid .card-photo {
  width: 80px;
  height: 80px;
}

.card-grid .card-stat-value {
  font-size: 14px;
}

.card-grid .card-stat-label {
  font-size: 8px;
}

.card-grid .card-back-story p {
  font-size: 11px;
}

.card-grid .card-back-detail {
  font-size: 11px;
}

.card-grid .card-back-detail-label {
  font-size: 9px;
}

/* Hover shimmer effect */
.golf-card:hover .card-front::before {
  opacity: 0.9;
  background: linear-gradient(
    135deg,
    transparent 20%,
    rgba(201, 168, 76, 0.1) 30%,
    rgba(201, 168, 76, 0.2) 50%,
    rgba(201, 168, 76, 0.1) 70%,
    transparent 80%
  );
  border: 2px solid var(--gold);
}

/* ============================================
   10. MODALS (General)
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.modal-text {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.modal-card {
  margin: 0 auto 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-actions .btn-ghost {
  color: var(--text-light);
  border-color: var(--border);
}

.modal-actions .btn-ghost:hover {
  background: var(--cream);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--cream-dark);
}

/* Detail Modal */
.modal-detail {
  max-width: 720px;
  text-align: left;
  padding: 48px;
}

.detail-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}

.detail-info h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.detail-info .detail-type {
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.detail-info .detail-story {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

.detail-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-stat-item {
  background: var(--cream);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.detail-stat-item .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.detail-stat-item .value {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

/* ============================================
   11. SUCCESS MODAL
   ============================================ */
.modal-success {
  max-width: 480px;
  text-align: center;
}

.modal-success .modal-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.modal-success .modal-title {
  font-size: 32px;
  margin-bottom: 12px;
}

.success-xp-notification {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 10px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--gold-dark);
  font-size: 15px;
}

.success-xp-notification .xp-icon {
  font-size: 20px;
}

/* ============================================
   12. CLUBHOUSE / DASHBOARD (.clubhouse-section)
   ============================================ */
.clubhouse-section {
  background: var(--cream);
  min-height: 100vh;
}

.clubhouse-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* Clubhouse Header */
.clubhouse-header {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
  padding: 32px;
  margin-bottom: 32px;
  display: flex;
  gap: 32px;
  align-items: center;
}

.clubhouse-header-card {
  flex-shrink: 0;
}

.clubhouse-header-info {
  flex: 1;
}

.clubhouse-header-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.clubhouse-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.clubhouse-header-member-since {
  font-size: 14px;
  color: var(--text-light);
}

/* Level Badge */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.level-badge-bogey {
  background: rgba(107, 29, 42, 0.1);
  color: var(--maroon);
}

.level-badge-par {
  background: rgba(26, 94, 58, 0.1);
  color: var(--green);
}

.level-badge-birdie {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-dark);
}

.level-badge-eagle {
  background: rgba(44, 62, 140, 0.1);
  color: var(--royal);
}

.level-badge-albatross {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(232, 212, 139, 0.2));
  color: var(--gold-dark);
  border: 1px solid rgba(201, 168, 76, 0.3);
}

/* XP Bar */
.xp-bar-container {
  margin-bottom: 8px;
}

.xp-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.xp-bar-label strong {
  color: var(--gold-dark);
  font-weight: 700;
}

.xp-bar {
  width: 100%;
  height: 8px;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.clubhouse-header-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.clubhouse-header-stat {
  text-align: center;
}

.clubhouse-header-stat-value {
  font-family: var(--font-accent);
  font-size: 24px;
  color: var(--green);
  line-height: 1.2;
}

.clubhouse-header-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Clubhouse Tabs */
.clubhouse-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.clubhouse-tab {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.clubhouse-tab:hover {
  color: var(--green);
  background: rgba(26, 94, 58, 0.04);
}

.clubhouse-tab.active {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

/* --- Overview Tab --- */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow);
}

.stat-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.stat-card-value {
  font-family: var(--font-accent);
  font-size: 32px;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Rounds Tab --- */
.rounds-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.round-entry {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: var(--transition);
}

.round-entry:hover {
  box-shadow: 0 4px 16px var(--shadow);
}

.round-score-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-accent);
  font-size: 24px;
  color: #fff;
  line-height: 1;
}

.round-score-circle.score-under {
  background: linear-gradient(135deg, var(--green), var(--green-light));
}

.round-score-circle.score-even {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}

.round-score-circle.score-over {
  background: linear-gradient(135deg, var(--maroon), #8b2e3d);
}

.round-vs-par {
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.03em;
}

.round-details {
  flex: 1;
}

.round-course-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.round-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.round-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.round-conditions-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(26, 94, 58, 0.08);
  color: var(--green);
}

.round-notes {
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
  margin-top: 4px;
}

.round-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.round-empty {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.round-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.round-empty h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
}

.round-empty p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* --- Badges Tab --- */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.badge-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
}

.badge-card.unlocked {
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.3);
}

.badge-card.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.badge-card.unlocked:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.2);
}

.badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 22px;
}

.badge-icon-green {
  background: rgba(26, 94, 58, 0.12);
}

.badge-icon-gold {
  background: rgba(201, 168, 76, 0.15);
}

.badge-icon-royal {
  background: rgba(44, 62, 140, 0.12);
}

.badge-icon-maroon {
  background: rgba(107, 29, 42, 0.12);
}

.badge-card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.badge-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.badge-card-date {
  font-size: 11px;
  color: var(--gold-dark);
  margin-top: 8px;
  font-weight: 600;
}

/* --- Collection Tab --- */
.collection-progress {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.collection-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.collection-progress-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.collection-progress-count {
  font-family: var(--font-accent);
  font-size: 20px;
  color: var(--green);
}

.collection-progress-bar {
  width: 100%;
  height: 10px;
  background: var(--cream-dark);
  border-radius: 5px;
  overflow: hidden;
}

.collection-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--green), var(--green-light));
  border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.collection-item {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.collection-item.played {
  border-left: 4px solid var(--green);
  opacity: 1;
}

.collection-item.unplayed {
  opacity: 0.5;
}

.collection-item.played:hover {
  box-shadow: 0 2px 8px var(--shadow);
}

.collection-item-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.collection-item.played .collection-item-check {
  background: var(--green);
  color: #fff;
}

.collection-item.unplayed .collection-item-check {
  background: var(--cream-dark);
  color: var(--text-muted);
}

.collection-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.collection-item-location {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   13. ROUND MODAL
   ============================================ */
.modal-round {
  max-width: 520px;
  text-align: left;
  padding: 36px;
}

.modal-round .modal-title {
  text-align: center;
  margin-bottom: 24px;
}

.modal-round .form-group {
  margin-bottom: 18px;
}

.modal-round .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-round .modal-actions {
  margin-top: 24px;
}

/* ============================================
   14. COMMUNITY SECTION (.community-section)
   ============================================ */
.community-section {
  background: var(--cream);
  min-height: 100vh;
}

.community-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.community-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Activity Feed */
.activity-feed {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.feed-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.feed-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow: hidden;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.feed-item-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}

.feed-item-text strong {
  font-weight: 700;
  color: var(--green-dark);
}

.feed-item-time {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Community Filters */
.community-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--green-light);
}

.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
}

.search-box input {
  padding: 9px 16px 9px 36px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  width: 200px;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--green);
  width: 260px;
}

.sort-select {
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  background: #fff;
  cursor: pointer;
  color: var(--text);
}

/* Era Legend */
.era-legend {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.era-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.03em;
}

.era-vintage {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-dark);
}

.era-classic {
  background: rgba(100, 100, 100, 0.1);
  color: #666;
}

.era-modern {
  background: rgba(205, 127, 50, 0.15);
  color: #a0522d;
}

/* Card Grid */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ============================================
   15. TOP 100 SECTION
   ============================================ */
.top100-section {
  background: var(--cream);
  min-height: 100vh;
}

.top100-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.top100-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Ambassador Badge */
.ambassador-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #c9a84c 0%, #e8d48b 50%, #c9a84c 100%);
  color: var(--green-dark);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.3);
}

.ambassador-icon {
  font-size: 16px;
}

.ambassador-label {
  text-transform: uppercase;
}

/* Top 100 Tabs */
.top100-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.top100-tab {
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.top100-tab:hover {
  color: var(--green);
  background: rgba(26, 94, 58, 0.04);
}

.top100-tab.active {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

/* Top 100 Controls */
.top100-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.top100-view-toggle {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.view-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  color: var(--green);
}

.view-btn.active {
  background: var(--green);
  color: #fff;
}

/* Course Cards Grid */
.top100-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Course Card */
.course-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-lg);
}

.course-card-rank {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-accent);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rank-gold {
  background: linear-gradient(135deg, #c9a84c, #e8d48b);
  color: var(--green-dark);
}

.rank-silver {
  background: linear-gradient(135deg, #b8b8b8, #e0e0e0);
  color: #333;
}

.rank-bronze {
  background: linear-gradient(135deg, #cd7f32, #daa060);
  color: #fff;
}

.rank-standard {
  background: var(--green);
  color: #fff;
}

.course-card-banner {
  height: 140px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.course-card-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 90%, rgba(45, 138, 94, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 60%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
}

.course-card-banner-label {
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

.course-card-body {
  padding: 20px;
}

.course-card-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.course-card-location {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.course-card-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.course-card-stat {
  display: flex;
  flex-direction: column;
}

.course-card-stat-value {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.course-card-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.course-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.course-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.course-tag-links {
  background: rgba(26, 94, 58, 0.08);
  color: var(--green);
}

.course-tag-parkland {
  background: rgba(107, 29, 42, 0.08);
  color: var(--maroon);
}

.course-tag-desert {
  background: rgba(205, 127, 50, 0.1);
  color: #a0522d;
}

.course-tag-heathland {
  background: rgba(100, 80, 140, 0.08);
  color: #64508c;
}

.course-tag-coastal {
  background: rgba(44, 62, 140, 0.08);
  color: var(--royal);
}

.course-tag-championship {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold-dark);
}

.course-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-card-community {
  font-size: 12px;
  color: var(--text-muted);
}

.course-card-community strong {
  color: var(--green);
}

.top100-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  background: rgba(201, 168, 76, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.top100-inline-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

/* List View */
.top100-list-view {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.top100-list-header {
  display: grid;
  grid-template-columns: 60px 1fr 180px 120px 100px;
  padding: 12px 20px;
  background: var(--cream-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.top100-list-row {
  display: grid;
  grid-template-columns: 60px 1fr 180px 120px 100px;
  padding: 16px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.top100-list-row:last-child {
  border-bottom: none;
}

.top100-list-row:hover {
  background: rgba(26, 94, 58, 0.02);
}

.list-rank {
  font-family: var(--font-accent);
  font-size: 24px;
  color: var(--green);
}

.list-rank.rank-top3 {
  color: var(--gold-dark);
}

.list-course-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.list-course-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.list-location {
  font-size: 14px;
  color: var(--text-light);
}

.list-type {
  font-size: 13px;
  color: var(--text-light);
}

.list-community-count {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

/* CTA Card */
.top100-community-link {
  margin-top: 48px;
  margin-bottom: 32px;
}

.top100-cta-card {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: #fff;
}

.top100-cta-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
}

.top100-cta-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* Attribution */
.top100-attribution {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.top100-attribution strong {
  color: var(--text-light);
}

/* ============================================
   16. ABOUT SECTION
   ============================================ */
.about-section {
  background: var(--cream);
  min-height: 100vh;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.about-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-lg);
}

.about-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   17. FOOTER (.footer)
   ============================================ */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 96px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-tagline {
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

/* ============================================
   18. TOAST NOTIFICATIONS (.toast-container)
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 4px solid var(--green);
}

.toast-xp {
  border-left-color: var(--gold);
}

.toast-badge {
  border-left-color: var(--green);
}

.toast-level {
  border-left-color: var(--royal);
}

.toast-error {
  border-left-color: var(--maroon);
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.toast-message {
  font-size: 13px;
  color: var(--text-light);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: var(--transition);
}

.toast-close:hover {
  color: var(--text);
}

.toast.toast-out {
  animation: toastOut 0.3s ease forwards;
}

/* ============================================
   19. BADGE MODAL (.modal-badge)
   ============================================ */
.modal-badge {
  max-width: 400px;
  text-align: center;
  padding: 40px;
  overflow: visible;
}

.badge-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.badge-confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFall 3s ease-in-out forwards;
}

.badge-confetti-particle:nth-child(1) {
  background: var(--gold);
  left: 10%;
  animation-delay: 0s;
}

.badge-confetti-particle:nth-child(2) {
  background: var(--green);
  left: 25%;
  animation-delay: 0.2s;
}

.badge-confetti-particle:nth-child(3) {
  background: var(--gold-light);
  left: 40%;
  animation-delay: 0.1s;
}

.badge-confetti-particle:nth-child(4) {
  background: var(--royal);
  left: 55%;
  animation-delay: 0.3s;
}

.badge-confetti-particle:nth-child(5) {
  background: var(--maroon);
  left: 70%;
  animation-delay: 0.15s;
}

.badge-confetti-particle:nth-child(6) {
  background: var(--gold);
  left: 85%;
  animation-delay: 0.25s;
}

.badge-confetti-particle:nth-child(7) {
  background: var(--green-light);
  left: 50%;
  animation-delay: 0.35s;
}

.badge-confetti-particle:nth-child(8) {
  background: var(--gold-dark);
  left: 15%;
  animation-delay: 0.4s;
}

.modal-badge .badge-display {
  position: relative;
  z-index: 1;
}

.modal-badge .badge-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(232, 212, 139, 0.2));
  border: 2px solid var(--gold);
}

.modal-badge .badge-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.modal-badge .badge-description {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   20. SHARE MODAL
   ============================================ */
.modal-share {
  max-width: 480px;
  text-align: center;
}

.modal-share .share-card-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  perspective: 1000px;
}

.modal-share .share-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(26, 94, 58, 0.04);
}

.share-btn-icon {
  font-size: 18px;
}

/* ============================================
   21. ANIMATIONS & KEYFRAMES
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(400px) rotate(720deg);
    opacity: 0;
  }
}

.card-enter {
  animation: cardEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ============================================
   22. CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   23. UTILITY CLASSES
   ============================================ */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

/* ============================================
   24. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet and below */
@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-right .nav-auth {
    display: none;
  }

  /* Hero */
  .hero-stats {
    gap: 20px;
  }

  .hero-stat-number {
    font-size: 28px;
  }

  /* Clubhouse */
  .clubhouse-header {
    flex-direction: column;
    text-align: center;
  }

  .clubhouse-header-stats {
    justify-content: center;
  }

  .clubhouse-header-meta {
    justify-content: center;
  }

  .clubhouse-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .clubhouse-tab {
    flex-shrink: 0;
  }

  /* Overview */
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Rounds */
  .round-entry {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .round-actions {
    justify-content: center;
  }

  /* Badge grid */
  .badge-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  /* Collection */
  .collection-grid {
    grid-template-columns: 1fr;
  }

  /* Top 100 list */
  .top100-list-header,
  .top100-list-row {
    grid-template-columns: 50px 1fr 100px;
  }

  .top100-list-header > *:nth-child(3),
  .top100-list-row > *:nth-child(3),
  .top100-list-header > *:nth-child(4),
  .top100-list-row > *:nth-child(4) {
    display: none;
  }

  /* Submit */
  .submit-layout {
    grid-template-columns: 1fr;
  }

  .preview-side {
    order: -1;
  }

  /* Stat cards */
  .stat-card-value {
    font-size: 26px;
  }

  /* Toast */
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    min-width: auto;
  }
}

/* Small tablets / large phones */
@media (max-width: 600px) {
  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Detail modal */
  .detail-content {
    grid-template-columns: 1fr;
  }

  .modal-detail {
    padding: 24px;
  }

  .modal {
    padding: 24px;
  }

  .modal-auth {
    padding: 28px;
  }

  /* Overview */
  .overview-grid {
    grid-template-columns: 1fr;
  }

  /* Top 100 grid */
  .top100-grid {
    grid-template-columns: 1fr;
  }

  /* Community filters */
  .community-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box input {
    width: 100%;
  }

  .search-box input:focus {
    width: 100%;
  }
}

/* Mobile phones */
@media (max-width: 500px) {
  /* Form rows */
  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-round .form-row {
    grid-template-columns: 1fr;
  }

  /* Smaller fonts */
  .section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .hero-subtitle {
    font-size: 16px;
  }

  /* Card type toggle */
  .card-type-toggle {
    flex-direction: column;
    align-items: center;
  }

  .type-btn {
    width: 100%;
    max-width: 280px;
  }

  /* Buttons */
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Card form */
  .card-form {
    padding: 20px;
  }

  /* Clubhouse header */
  .clubhouse-header {
    padding: 20px;
  }

  .clubhouse-header-name {
    font-size: 22px;
  }

  /* Feed */
  .feed-item {
    gap: 8px;
  }

  .feed-item-text {
    font-size: 13px;
  }

  /* Golf card on small screens */
  .golf-card {
    width: 280px;
    height: 402px;
  }

  .card-player-name {
    font-size: 18px;
  }

  .card-initials {
    width: 90px;
    height: 90px;
    font-size: 30px;
  }

  .card-photo {
    width: 90px;
    height: 90px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .nav-inner {
    padding: 0 16px;
  }

  .submit-container,
  .community-container,
  .clubhouse-container,
  .about-container,
  .top100-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .golf-card {
    width: 260px;
    height: 374px;
  }

  .card-grid .golf-card {
    width: 240px;
    height: 346px;
  }
}

/* ============================================
   PATCH: Missing clubhouse/dashboard styles
   ============================================ */
.overview-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 700px) {
  .overview-sections { grid-template-columns: 1fr; }
}

.overview-block {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
}

.overview-block h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.rounds-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.rounds-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--green-dark);
}

.badges-header {
  margin-bottom: 24px;
}

.badges-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.badges-header p {
  color: var(--text-light);
  font-size: 14px;
}

.collection-header {
  margin-bottom: 24px;
}

.collection-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.collection-header p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
}

.collection-progress-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

.mini-badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mini-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.mini-badge-icon {
  font-size: 20px;
}

.text-muted {
  color: var(--text-muted);
  font-size: 14px;
}

.text-muted a {
  color: var(--green);
  text-decoration: underline;
}

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost-light:hover {
  border-color: var(--green-light);
  color: var(--green);
  background: rgba(26, 94, 58, 0.04);
}

.feed-empty {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

.feed-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ============================================
   CELEBRATION / SUCCESS OVERLAY
   Full-screen celebration when a card is created
   ============================================ */
.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(13, 53, 32, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  animation: celebrationFadeIn 0.5s ease;
}

@keyframes celebrationFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.celebration-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.confetti-particle {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.celebration-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: celebrationSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes celebrationSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.celebration-header {
  margin-bottom: 24px;
}

.celebration-badge-anim {
  font-size: 56px;
  display: inline-block;
  animation: celebrationBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

@keyframes celebrationBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.celebration-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  color: #fff;
  margin: 12px 0 8px;
  animation: celebrationSlideUp 0.6s ease 0.5s both;
}

.celebration-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  animation: celebrationSlideUp 0.6s ease 0.6s both;
}

.celebration-card-reveal {
  position: relative;
  margin: 28px auto;
  display: inline-block;
  animation: cardReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
}

@keyframes cardReveal {
  0% { transform: scale(0.3) rotateY(40deg); opacity: 0; }
  60% { transform: scale(1.05) rotateY(-5deg); opacity: 1; }
  100% { transform: scale(1) rotateY(0); opacity: 1; }
}

.celebration-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.25) 0%, transparent 70%);
  border-radius: 30px;
  animation: glowPulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.celebration-xp {
  margin: 16px 0;
  animation: celebrationSlideUp 0.5s ease 1s both;
}

.xp-earned {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-accent);
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--gold);
  animation: xpPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
}

@keyframes xpPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.xp-earned-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0;
}

.celebration-share {
  margin: 24px 0;
  animation: celebrationSlideUp 0.5s ease 1.1s both;
}

.celebration-share-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.celebration-share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

.share-btn-x:hover { border-color: #fff; }
.share-btn-fb { }
.share-btn-fb:hover { border-color: #1877F2; color: #1877F2; }
.share-btn-fb span:first-child { font-weight: 900; font-size: 16px; }
.share-btn-li { }
.share-btn-li:hover { border-color: #0A66C2; color: #0A66C2; }
.share-btn-li span:first-child { font-weight: 900; font-size: 14px; }
.share-btn-wa:hover { border-color: #25D366; color: #25D366; }
.share-btn-copy:hover { border-color: var(--gold); color: var(--gold); }
.share-btn-download:hover { border-color: var(--green-light); color: var(--green-light); }

.celebration-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  animation: celebrationSlideUp 0.5s ease 1.3s both;
}

.celebration-actions .btn-primary {
  min-width: 260px;
}

.celebration-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  min-width: 260px;
}

.celebration-btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.6);
}

/* ============================================
   DESKTOP LAYOUT (min-width: 1024px)
   Transforms the mobile-first layout into a
   proper desktop experience
   ============================================ */
@media (min-width: 1024px) {

  /* ---- HERO: side-by-side text + floating cards ---- */
  .hero-section {
    justify-content: flex-start;
  }

  .hero-content {
    max-width: 55%;
    padding: 120px 60px 120px 8%;
    text-align: left;
    margin: 0;
  }

  .hero-title {
    font-size: 62px;
  }

  .hero-subtitle {
    font-size: 19px;
    max-width: 540px;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-eyebrow {
    font-size: 17px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .hero-stat-number {
    font-size: 44px;
  }

  /* Floating cards fill the right side */
  .hero-card-preview {
    display: block;
  }

  .floating-card-1 {
    top: 22%;
    right: 8%;
  }

  .floating-card-2 {
    bottom: 22%;
    right: 22%;
    left: auto;
  }

  .mini-card {
    width: 190px;
    padding: 26px 22px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  }

  .mini-card-avatar {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }

  .mini-card-name {
    font-size: 16px;
  }

  /* ---- NAV ---- */
  .nav-inner {
    max-width: 1400px;
    padding: 0 48px;
    height: 140px;
  }

  .nav-logo-img {
    height: 128px;
  }

  .nav-link {
    font-size: 15px;
    padding: 10px 20px;
  }

  /* ---- SECTION TITLES ---- */
  .section-title {
    font-size: 48px;
  }

  .section-subtitle {
    font-size: 18px;
    max-width: 620px;
  }

  /* ---- COMMUNITY: full-width card grid ---- */
  .community-container {
    max-width: 1400px;
    padding: 60px 48px 80px;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    justify-items: center;
  }

  .card-grid .golf-card {
    width: 100%;
    max-width: 310px;
    height: 440px;
  }

  .card-grid .card-player-name {
    font-size: 20px;
  }

  .card-grid .card-initials {
    width: 95px;
    height: 95px;
    font-size: 34px;
  }

  .card-grid .card-photo {
    width: 95px;
    height: 95px;
  }

  .card-grid .card-stat-value {
    font-size: 15px;
  }

  .card-grid .card-stat-label {
    font-size: 9px;
  }

  .card-grid .card-back-story p {
    font-size: 12px;
  }

  /* ---- ACTIVITY FEED: card style, 2 columns ---- */
  .activity-feed {
    margin-bottom: 36px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px 32px;
    box-shadow: 0 2px 8px var(--shadow);
  }

  .feed-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 32px;
  }

  .feed-item {
    padding: 10px 0;
  }

  /* ---- FILTERS: spread out ---- */
  .community-filters {
    margin-bottom: 28px;
  }

  .search-box input {
    width: 260px;
  }

  .search-box input:focus {
    width: 320px;
  }

  /* ---- SUBMIT: spacious layout ---- */
  .submit-container {
    max-width: 1200px;
    padding: 60px 48px 80px;
  }

  .submit-layout {
    grid-template-columns: 1fr 440px;
    gap: 64px;
  }

  .card-form {
    padding: 40px 44px;
  }

  /* ---- CLUBHOUSE ---- */
  .clubhouse-container {
    max-width: 1200px;
    padding: 60px 48px 80px;
  }

  .clubhouse-header {
    padding: 32px 36px;
  }

  .overview-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .stat-card {
    padding: 28px 24px;
  }

  .stat-card-value {
    font-size: 38px;
  }

  .stat-card-label {
    font-size: 13px;
  }

  .overview-sections {
    gap: 28px;
  }

  .round-entry {
    padding: 16px 20px;
  }

  /* ---- TOP 100 ---- */
  .top100-container {
    max-width: 1400px;
    padding: 60px 48px 80px;
  }

  .top100-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .course-card-banner {
    height: 160px;
  }

  .course-card-body {
    padding: 24px;
  }

  .course-card-name {
    font-size: 22px;
  }

  .top100-cta-card {
    padding: 56px 48px;
  }

  .top100-cta-card h3 {
    font-size: 32px;
  }

  /* ---- ABOUT: bigger cards ---- */
  .about-container {
    max-width: 1100px;
    padding: 60px 48px 80px;
  }

  .about-card {
    padding: 36px;
  }

  .about-card h3 {
    font-size: 24px;
  }

  .about-card p {
    font-size: 15px;
  }

  /* ---- MODALS ---- */
  .modal {
    max-width: 540px;
    padding: 48px;
  }

  .modal-detail {
    max-width: 800px;
    padding: 56px;
  }

  .detail-stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* ---- FOOTER ---- */
  .footer {
    padding: 48px 48px;
  }
}

/* ============================================
   LARGE DESKTOP (min-width: 1440px)
   ============================================ */
@media (min-width: 1440px) {

  .hero-content {
    padding-left: 10%;
    max-width: 50%;
  }

  .hero-title {
    font-size: 72px;
  }

  .floating-card-1 {
    right: 10%;
    top: 25%;
  }

  .floating-card-2 {
    right: 25%;
    bottom: 25%;
  }

  .mini-card {
    width: 200px;
    padding: 28px 24px;
  }

  .card-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
  }

  .top100-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .community-container,
  .top100-container {
    max-width: 1500px;
  }

  .feed-items {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ============================================
   ULTRAWIDE (min-width: 1800px)
   ============================================ */
@media (min-width: 1800px) {

  .hero-title {
    font-size: 80px;
  }

  .card-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1700px;
    margin: 0 auto;
  }

  .card-grid .golf-card {
    max-width: 340px;
    height: 480px;
  }

  .top100-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1700px;
    margin: 0 auto;
  }
}
