/* ===== CSS Variables ===== */
:root {
  --color-primary: #D4A24E;
  --color-primary-dark: #B8872E;
  --color-secondary: #2D5016;
  --color-accent: #C0392B;
  --color-bg: #FAF6F0;
  --color-card: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-light: #555;
  --color-border: #DDD;
  --color-bracket-line: #888;
  --color-selected: #D4A24E;
  --color-selected-bg: #FDF5E6;
  --color-hover-bg: #F5EFE5;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --bracket-gap: 2px;
  --matchup-height: 52px;
  --connector-width: 20px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--color-secondary);
  color: #fff;
}
.nav-brand { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 1px; display: flex; align-items: center; }
.nav-logo { height: 40px; width: auto; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--color-primary); }
.nav-links a.active { color: var(--color-primary); border-bottom: 2px solid var(--color-primary); padding-bottom: 2px; }
.nav-donate {
  background: var(--color-primary);
  padding: 6px 16px;
  border-radius: 6px;
  color: #fff !important;
  font-weight: 600;
}
.nav-donate:hover { background: var(--color-primary-dark); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1a3a0a 0%, #2D5016 50%, #1a3a0a 100%);
  color: #fff;
  padding: 60px 24px;
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-flyer { flex: 0 0 320px; }
.hero-flyer img { width: 100%; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.hero-text { flex: 1; }
.hero-text h1 { font-family: var(--font-display); font-size: 3.5rem; line-height: 1.1; margin-bottom: 8px; }
.hero-text .accent { color: var(--color-primary); }
.hero-subtitle { font-size: 1.4rem; color: var(--color-primary); font-weight: 600; margin-bottom: 16px; }
.hero-desc { font-size: 1.1rem; color: #ccc; margin-bottom: 24px; max-width: 500px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Hero Entrepreneur Spotlight ===== */
.hero-ent-spotlight {
  margin-top: 24px;
  max-width: 380px;
}
.hero-ent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: #fff;
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
}
.hero-ent-card:hover {
  background: rgba(255,255,255,0.14);
  border-color: var(--color-primary);
}
.hero-ent-photo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-primary);
}
.hero-ent-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: #999;
  font-size: 1.2rem;
}
.hero-ent-info {
  min-width: 0;
}
.hero-ent-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-ent-business {
  font-size: 0.78rem;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-ent-country {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 2px;
}
.hero-ent-flag {
  height: 12px;
  width: auto;
  vertical-align: middle;
  margin-right: 2px;
}
.hero-ent-funded {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(34,139,34,0.85);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 4px;
}
.hero-ent-fade-in {
  animation: heroEntFade 0.6s ease-in-out;
}
@keyframes heroEntFade {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1024px) {
  .hero-ent-spotlight { margin: 24px auto 0; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: #fff; }
.btn-entrepreneur { background: var(--color-secondary); color: #fff; border: 2px solid #4a8a2a; }
.btn-entrepreneur:hover { background: #4a8a2a; transform: translateY(-1px); }
.btn-large { padding: 16px 36px; font-size: 1.1rem; }

/* ===== Countdown Banner ===== */
.countdown-banner {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  padding: 20px 24px;
  text-align: center;
  color: #fff;
}
.countdown-inner { max-width: 600px; margin: 0 auto; }
.countdown-label {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}
.cd-unit span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-primary);
  line-height: 1;
}
.cd-unit small {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cd-sep {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #555;
  padding: 0 2px;
  margin-top: -14px;
}
.countdown-note {
  font-size: 0.8rem;
  color: #666;
  margin-top: 10px;
}
.countdown-locked {
  background: linear-gradient(135deg, var(--color-accent), #8b1a1a);
}
.countdown-locked .countdown-label {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}
.countdown-locked .countdown-note { color: #ffb3b3; }

@media (max-width: 480px) {
  .cd-unit { min-width: 44px; }
  .cd-unit span { font-size: 1.8rem; }
  .cd-sep { font-size: 1.4rem; }
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 60px 24px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.how-it-works h2 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 40px; }
.steps { display: flex; gap: 32px; justify-content: center; }
.step {
  flex: 1;
  max-width: 260px;
  text-align: center;
}
.step-number {
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 auto 12px;
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--color-text-light); font-size: 0.95rem; }

/* ===== Bracket Section ===== */
.bracket-section {
  padding: 40px 8px;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
}
.bracket-header {
  text-align: center;
  margin-bottom: 24px;
}
.bracket-header h2 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 12px; }
.bracket-progress { font-size: 0.95rem; color: var(--color-text-light); }
.progress-bar {
  width: 200px;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin: 8px auto 0;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s;
}

/* Region Tabs (mobile) */
.region-tabs {
  display: none;
  gap: 4px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.region-tab {
  padding: 8px 16px;
  border: 2px solid var(--color-border);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.region-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ===== Bracket Layout ===== */
.bracket-container {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 16px;
}
.bracket-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}
.region {
  flex: 1;
}
.region-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
  text-align: center;
}
.region-location { font-family: var(--font-body); font-size: 0.8rem; color: var(--color-text-light); font-weight: 400; }

/* Rounds layout */
.rounds {
  display: flex;
  align-items: stretch;
}
.bracket-right .rounds {
  flex-direction: row-reverse;
}
.round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 140px;
  padding: 0 4px;
  padding-top: 36px;
  position: relative;
}
/* Right-side regions: align text to right edge */
.bracket-right .team-slot {
  flex-direction: row-reverse;
  text-align: right;
}
.bracket-right .team-slot .seed {
  text-align: right;
}

/* ===== Round Date Labels ===== */
.round-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 4px 0;
  line-height: 1.2;
}
.round-label .round-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
}
.round-label .round-dates {
  display: block;
  font-size: 0.65rem;
  color: var(--color-text-light);
  font-weight: 500;
}
/* Hide duplicate labels on right-side regions (only show first occurrence per round position) */

/* ===== Matchup Styling ===== */
.matchup {
  position: relative;
  margin: var(--bracket-gap) 0;
}
.team-slot {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  cursor: pointer;
  font-size: 0.8rem;
  min-height: 26px;
  transition: all 0.15s;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-slot:first-child {
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}
.team-slot:last-child {
  border-radius: 0 0 4px 4px;
}
.team-slot:hover {
  background: var(--color-hover-bg);
}
.team-slot.selected {
  background: var(--color-selected-bg);
  border-color: var(--color-selected);
  font-weight: 600;
}
.team-slot.has-team {
  cursor: pointer;
}
.team-slot.empty {
  cursor: default;
  color: #aaa;
  font-style: italic;
}
.team-slot .seed {
  display: inline-block;
  width: 20px;
  font-weight: 700;
  color: var(--color-text-light);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.team-slot .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-slot .team-flag {
  height: 14px;
  width: auto;
  margin-left: 4px;
  flex-shrink: 0;
  vertical-align: middle;
}
.bracket-right .team-slot .team-flag {
  margin-left: 0;
  margin-right: 4px;
  order: -1;
}

/* ===== Bracket Connector Lines ===== */
.round:not(:last-child) .matchup::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 25%;
  height: 50%;
  width: 12px;
  border: 1px solid var(--color-bracket-line);
  border-left: none;
  border-radius: 0 4px 4px 0;
}
.bracket-right .round:not(:last-child) .matchup::after {
  right: auto;
  left: -12px;
  border-right: none;
  border-left: 1px solid var(--color-bracket-line);
  border-radius: 4px 0 0 4px;
}

/* ===== Finals ===== */
.final-four-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 0 16px;
}
.final-four-bracket {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.ff-semi .matchup,
.championship-matchup {
  min-width: 180px;
}
.championship-matchup .team-slot {
  cursor: default;
  pointer-events: none;
  opacity: 0.85;
}
.championship-matchup .team-slot.selected {
  opacity: 1;
}
/* Championship Score Prediction */
.championship-score {
  text-align: center;
  margin-top: 12px;
  padding: 16px 12px 12px;
  background: #fff;
  border-radius: 10px;
  border: 2px solid var(--color-primary);
  min-width: 200px;
}
/* Championship matchup nested inside the predict box */
.championship-score .championship-matchup {
  margin: 0 0 10px 0;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--color-border);
}
.championship-score .championship-matchup .team-slot {
  background: #f8f5f0;
  min-width: 160px;
}
.score-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}
.score-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.score-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.score-team-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-light);
  max-width: 70px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-input {
  width: 52px;
  padding: 6px 4px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.score-input:focus {
  border-color: var(--color-primary);
  outline: none;
}
.score-dash {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-top: 16px;
}

.champion-display {
  text-align: center;
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 12px;
  min-width: 180px;
}
.champion-label { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; }
.champion-name { color: #fff; font-family: var(--font-display); font-size: 1.8rem; margin-top: 4px; }

/* ===== Submit Section ===== */
.submit-section {
  padding: 60px 24px;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.submit-section h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 12px; }
.submit-section > p { color: var(--color-text-light); margin-bottom: 24px; }
.bracket-form { text-align: left; }
.form-row { display: flex; gap: 12px; }
.form-group { margin-bottom: 16px; flex: 1; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
.label-hint { font-weight: 400; font-size: 0.8rem; color: var(--color-text-light); }
.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--color-primary); outline: none; }
.form-actions { text-align: center; margin-top: 8px; }
.form-message {
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
  min-height: 24px;
}
.form-message.success { color: var(--color-secondary); }
.form-message.error { color: var(--color-accent); }

/* ===== Load Bracket ===== */
.load-bracket {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 8px;
  text-align: center;
}
.load-bracket-text { font-size: 0.95rem; color: #aaa; margin: 0; }
.btn-link {
  background: none;
  border: none;
  color: var(--color-secondary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}
.btn-link:hover { color: #fff; }
.load-bracket-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.load-bracket-form .form-group { margin: 0; }
.load-bracket-form input {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 0.9rem;
  width: 280px;
}
.btn-small { padding: 8px 20px; font-size: 0.85rem; }
.load-status { font-size: 0.85rem; font-weight: 600; }
.load-status.success { color: var(--color-secondary); }
.load-status.error { color: var(--color-accent); }

/* Bracket Picker (multiple brackets per email) */
.bracket-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.bracket-pick-btn {
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ===== Rotary Shark Pond Section ===== */
.sharkpond-section {
  padding: 60px 24px 40px;
  background: linear-gradient(135deg, #0d1f3c 0%, #1a3a5c 50%, #0d3b2e 100%);
  color: #fff;
  text-align: center;
}
.sharkpond-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.sharkpond-header .section-desc {
  font-size: 1.1rem;
  color: #90caf9;
  margin-bottom: 32px;
}
.sharkpond-story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto 32px;
}
.sharkpond-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s;
}
.sharkpond-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244,160,32,0.4);
}
.sharkpond-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.sharkpond-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #f4a020;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.sharkpond-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ccc;
}
.sharkpond-card strong { color: #fff; }
.sharkpond-card em { color: #f4a020; font-style: normal; font-weight: 600; }
.sharkpond-cta {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 24px;
  background: rgba(244,160,32,0.1);
  border: 1px solid rgba(244,160,32,0.3);
  border-radius: 8px;
  font-size: 1rem;
  color: #e0e0e0;
}
.sharkpond-cta strong { color: #f4a020; }

.sharkpond-sponsor {
  max-width: 600px;
  margin: 24px auto 0;
  padding: 16px 24px;
  font-size: 0.9rem;
  color: #aaa;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sharkpond-sponsor a {
  color: #90caf9;
  text-decoration: none;
}
.sharkpond-sponsor a:hover { text-decoration: underline; }
.sharkpond-sponsor strong { color: #e0e0e0; }

/* ===== Post-Save Modal ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.modal-card {
  background: linear-gradient(135deg, #0d1f3c, #1a3a5c);
  border: 1px solid rgba(244,160,32,0.3);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #fff; }
.modal-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.modal-card h3 {
  font-family: var(--font-display);
  color: #f4a020;
  font-size: 1.8rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.modal-card > p {
  color: #aaa;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.modal-btn {
  width: 100%;
  padding: 14px !important;
  font-size: 1rem !important;
  border-radius: 8px !important;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}
.modal-skip {
  background: none;
  border: none;
  color: #666;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}
.modal-skip:hover { color: #aaa; }
.modal-leaderboard-link {
  display: block;
  color: var(--color-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
  text-decoration: none;
}
.modal-leaderboard-link:hover { text-decoration: underline; }

/* Donation Boost Modal */
.donation-boost-modal {
  max-width: 420px;
}
.donation-boost-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  max-height: 300px;
  overflow-y: auto;
}
.donation-boost-ent-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.donation-boost-ent-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-selected-bg);
}
.donation-boost-ent-btn.selected {
  border-color: var(--color-secondary);
  background: #e8f5e1;
  color: var(--color-secondary);
}

/* ===== Donate Section ===== */
.donate-section {
  padding: 60px 24px;
  background: linear-gradient(135deg, #2D5016, #1a3a0a);
  color: #fff;
  text-align: center;
}
.donate-content { max-width: 600px; margin: 0 auto; }
.donate-content h2 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 12px; }
.donate-content > p { color: #ccc; margin-bottom: 24px; }
.donate-amounts {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.amount-btn {
  padding: 10px 20px;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.amount-btn.active,
.amount-btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.custom-amount {
  display: flex;
  align-items: center;
  gap: 6px;
}
.custom-amount label { font-size: 0.9rem; }
.custom-amount input {
  width: 80px;
  padding: 8px 12px;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
}
.custom-amount input::placeholder { color: rgba(255,255,255,0.5); }
.donate-note { font-size: 0.8rem; color: #999; margin-top: 16px; }

/* ===== Leaderboard Teaser (on main page) ===== */
.leaderboard-teaser {
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.leaderboard-teaser h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 8px;
}
.leaderboard-teaser p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

/* ===== Leaderboard Section (dedicated page) ===== */
.leaderboard-section {
  padding: 60px 24px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.leaderboard-page {
  padding-top: 100px; /* account for navbar on standalone page */
}
.leaderboard-section h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.leaderboard-subtitle {
  color: var(--color-text-light);
  margin-bottom: 20px;
}
.leaderboard-actions {
  margin-top: 24px;
}
.lb-bracket-name {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* Scoring Info */
.scoring-info {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid var(--color-border);
}
.scoring-title {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: 10px;
}
.scoring-rounds {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.scoring-round {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  white-space: nowrap;
}
.scoring-round strong {
  color: var(--color-primary-dark);
}
.scoring-max {
  font-size: 0.78rem;
  color: var(--color-text-light);
}
.scoring-max strong {
  color: var(--color-text);
}

/* Leaderboard Table */
.leaderboard-table-wrap {
  overflow-x: auto;
}
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.leaderboard-table thead {
  background: var(--color-secondary);
  color: #fff;
}
.leaderboard-table th {
  padding: 12px 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-align: left;
}
.leaderboard-table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}
.leaderboard-table tbody tr:hover {
  background: var(--color-hover-bg);
}
.leaderboard-top td {
  font-weight: 600;
}
.leaderboard-top:first-child td {
  background: #FDF5E6;
}
.lb-rank {
  text-align: center !important;
  font-size: 1.1rem;
  min-width: 44px;
}
.lb-score {
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: center !important;
}
.lb-tiebreaker {
  text-align: center !important;
  color: var(--color-text-light);
  font-size: 0.85rem;
}
.lb-champion {
  font-size: 0.85rem;
}
.leaderboard-empty {
  padding: 32px 16px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .leaderboard-table th,
  .leaderboard-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .scoring-rounds {
    gap: 4px;
  }
  .scoring-round {
    padding: 3px 6px;
    font-size: 0.65rem;
  }
}

/* ===== Entrepreneur Section ===== */
.entrepreneurs-section {
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.entrepreneurs-section h2 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 8px; }
.section-desc { color: var(--color-text-light); margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Entrepreneur Cards Grid */
.ent-cards-container {
  padding: 16px 0;
}
.ent-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ent-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.ent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.ent-card-selected {
  border-color: var(--color-primary);
  background: var(--color-selected-bg);
}

/* Photo area with hover controls */
.ent-card-photo {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e8e0d4;
  position: relative;
}
.ent-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 0.2s;
}
.ent-card-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e0d4;
  color: #b8a88a;
  font-size: 2.5rem;
  font-family: var(--font-display);
}

/* Photo position/zoom controls — visible on hover */
.ent-photo-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.65);
  padding: 8px 12px;
  display: flex;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.ent-card-photo:hover .ent-photo-controls {
  opacity: 1;
}
.ent-photo-controls label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ent-photo-controls label span {
  color: #ccc;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ent-photo-controls input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.ent-photo-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E9A825;
  cursor: pointer;
}
.ent-photo-controls input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E9A825;
  border: none;
  cursor: pointer;
}

/* Funded stamp overlay */
.ent-card-funded-stamp {
  background: rgba(34, 139, 34, 0.9);
  color: #fff;
  text-align: center;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.ent-card-funded-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
  opacity: 0.85;
  margin-top: 1px;
}

/* Teams assigned to this entrepreneur */
.ent-card-teams {
  margin-top: 10px;
}
.ent-card-teams-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.ent-card-teams-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ent-team-tag {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--color-text);
  white-space: nowrap;
}

/* Card body */
.ent-card-body {
  padding: 16px 20px;
  flex: 1;
}
.ent-card-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 4px;
  letter-spacing: 0.5px;
  color: var(--color-text);
}
.ent-card-business {
  color: #E9A825;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.ent-card-country {
  color: var(--color-text-light);
  font-size: 0.8rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ent-card-flag {
  height: 14px;
  width: auto;
  vertical-align: middle;
}
.ent-card-divider {
  border: none;
  border-top: 1px solid #e8e0d4;
  margin: 12px 0;
}
.ent-card-desc-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.ent-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
  margin: 0 0 12px;
}
.ent-card-plan-link {
  display: inline-block;
  font-size: 0.85rem;
  color: #E9A825;
  text-decoration: none;
  font-weight: 600;
}
.ent-card-plan-link:hover { text-decoration: underline; }

/* Card actions (boost button) */
.ent-card-actions {
  padding: 12px 20px;
  border-top: 1px solid #e8e0d4;
  text-align: center;
}
.ent-card-actions .btn-add-to-cart {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* Add to Cart Button */
.btn-add-to-cart {
  padding: 6px 14px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-add-to-cart:hover { background: var(--color-primary-dark); }

/* ===== Entrepreneur Preview Popup ===== */
.ent-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ent-popup-card {
  background: linear-gradient(135deg, #0d1f3c, #1a3a5c);
  border: 1px solid rgba(244,160,32,0.3);
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.ent-popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}
.ent-popup-close:hover { color: #fff; }
.ent-popup-photo {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #0a1628;
}
.ent-popup-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ent-popup-info {
  padding: 20px 24px 12px;
}
.ent-popup-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: 1px;
}
.ent-popup-business {
  font-size: 1rem;
  color: #f4a020;
  font-weight: 600;
  margin-bottom: 2px;
}
.ent-popup-country {
  font-size: 0.8rem;
  color: #90caf9;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ent-popup-desc {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.6;
  margin: 0 0 12px;
}
.ent-popup-plan-link {
  display: inline-block;
  font-size: 0.85rem;
  color: #90caf9;
  text-decoration: none;
  font-weight: 500;
}
.ent-popup-plan-link:hover { color: #fff; text-decoration: underline; }
.ent-popup-actions {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ent-popup-boost {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}
.ent-popup-cancel {
  background: none;
  border: none;
  color: #666;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
}
.ent-popup-cancel:hover { color: #aaa; }

@media (max-width: 480px) {
  .ent-popup-photo { height: 180px; }
  .ent-popup-card { border-radius: 12px; }
}

/* Cart Controls (inline +/-) */
.ent-cart-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.ent-cart-controls .ent-cart-amount {
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 28px;
  text-align: center;
}
.btn-cart-minus, .btn-cart-plus, .btn-cart-remove {
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0;
  line-height: 1;
}
.btn-cart-minus:hover, .btn-cart-plus:hover { background: var(--color-hover-bg); border-color: var(--color-primary); }
.btn-cart-remove { color: var(--color-accent); border-color: transparent; font-size: 1rem; }
.btn-cart-remove:hover { background: #fdecea; }

/* Conflict message */
.ent-cart-conflict {
  font-size: 0.65rem;
  color: #999;
  font-style: italic;
  flex-shrink: 0;
}

/* Selected slot highlight */
.ent-slot-selected {
  border-color: var(--color-primary) !important;
  background: var(--color-selected-bg);
}

/* In-cart badge */
.ent-cart-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-secondary);
  background: #e8f5e1;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

/* ===== Floating Cart ===== */
.ent-cart-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  z-index: 150;
  overflow: hidden;
  border: 2px solid var(--color-primary);
}
.ent-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}
.ent-cart-badge-count {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
}
.ent-cart-toggle-icon { font-size: 0.65rem; }
.ent-cart-body {
  display: none;
  padding: 12px 16px;
  max-height: 350px;
  overflow-y: auto;
}
.ent-cart-body.open { display: block; }

.ent-cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.ent-cart-item:last-of-type { border-bottom: none; }
.ent-cart-item-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--color-primary);
}
.ent-cart-item-info { flex: 1; min-width: 0; }
.ent-cart-item-name { font-weight: 600; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ent-cart-item-biz { font-size: 0.65rem; color: var(--color-text-light); }
.ent-cart-item-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
/* Donation amount section in cart */
.cart-donation-section {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e0d4;
}
.cart-donation-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.cart-donation-amounts {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.cart-amt-btn {
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--color-text);
}
.cart-amt-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-selected-bg);
}
.cart-amt-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.cart-custom-amount {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.cart-custom-amount input {
  width: 50px;
  padding: 4px 6px;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.8rem;
  text-align: center;
}
.cart-custom-amount input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.cart-donation-msg {
  font-size: 0.7rem;
  color: var(--color-text-light);
  margin-top: 6px;
  font-style: italic;
}
/* Boost section in cart */
.cart-boost-section {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e0d4;
}
.cart-boost-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.cart-boost-empty {
  padding: 4px 0;
}
.cart-boost-empty .ent-cart-browse-link {
  font-size: 0.8rem;
  font-weight: 500;
}
/* Browse link in cart */
.ent-cart-browse-link {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  padding: 6px 0;
  margin-bottom: 2px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.ent-cart-browse-link:hover {
  opacity: 1;
  text-decoration: underline;
}
/* Rotary Club field in cart */
.ent-cart-rotary {
  padding: 8px 0;
  margin-top: 4px;
  border-top: 1px solid #e8e0d4;
}
.ent-cart-rotary-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 4px;
}
.ent-cart-rotary-input {
  width: 100%;
  padding: 6px 10px;
  font-size: 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}
.ent-cart-rotary-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(233, 168, 37, 0.2);
}

/* Change link in cart suggestion */
.ent-cart-change-link {
  color: rgba(255,255,255,0.9);
  font-size: 0.7rem;
  margin-left: 4px;
}
.ent-cart-change-link:hover {
  color: #fff;
}
/* Add suggestion button in cart */
.ent-cart-add-suggestion {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  cursor: pointer;
  margin-left: 4px;
}
.ent-cart-add-suggestion:hover {
  background: var(--color-primary-dark);
}
/* "Helping all" variant */
.ent-cart-suggestion-all {
  background: linear-gradient(135deg, #1a3a6b 0%, #264d8e 100%);
}
/* Donor info fields */
.ent-cart-donor-info {
  padding: 8px 0 0;
  border-top: 1px solid #e8e0d4;
}
.cart-donor-name-row {
  display: flex;
  gap: 8px;
}
.cart-donor-name-field {
  flex: 1;
}
.ent-cart-donor-info .ent-cart-rotary-label {
  margin-top: 6px;
}
.ent-cart-donor-info .ent-cart-rotary-label:first-child,
.cart-donor-name-field .ent-cart-rotary-label {
  margin-top: 0;
}
/* Note below checkout button */
.ent-cart-note {
  text-align: center;
  font-size: 0.65rem;
  color: var(--color-text-light);
  margin-top: 6px;
  font-style: italic;
}
.ent-cart-total {
  padding: 10px 0 8px;
  text-align: center;
  font-size: 1rem;
  border-top: 2px solid var(--color-primary);
  margin-top: 4px;
}
.ent-cart-checkout {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-size: 0.95rem;
}

/* Mobile cart */
@media (max-width: 480px) {
  .ent-cart-floating { width: calc(100% - 24px); right: 12px; left: 12px; bottom: 12px; }
}

/* Champion Column */
.ent-champion-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0 8px;
}
.ent-champion-box {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  color: #fff;
  min-width: 100px;
}
.ent-champion-icon { font-size: 2rem; margin-bottom: 4px; }
.ent-champion-name { font-family: var(--font-display); font-size: 1.2rem; }

/* Prize Info */
.ent-prize-info {
  margin-top: 40px;
}
.ent-prize-info h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 16px; }
.prize-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.prize-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 300px;
  text-align: center;
}
.prize-icon { font-size: 2.5rem; margin-bottom: 8px; }
.prize-card h4 { font-size: 1rem; margin-bottom: 8px; }
.prize-card p { font-size: 0.9rem; color: var(--color-text-light); line-height: 1.5; }

/* Responsive Entrepreneur Cards */
@media (max-width: 1024px) {
  .ent-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .ent-cards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ===== Footer ===== */
.footer {
  background: #1a1a1a;
  color: #999;
  padding: 32px 24px;
  text-align: center;
}
.footer h3 { color: #fff; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 4px; }
.footer-links { margin-top: 12px; font-size: 0.85rem; }
.footer-legal {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #333;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.footer-legal p {
  font-size: 0.72rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 6px;
}
.footer-legal p:last-child { margin-bottom: 0; }
.admin-link {
  position: absolute;
  bottom: 12px;
  right: 16px;
  color: #444;
  text-decoration: none;
  font-size: 1.1rem;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.admin-link:hover { opacity: 1; color: #999; }
.footer .footer-content { position: relative; }

/* ===== Team → Entrepreneur Tooltip ===== */
.team-ent-tooltip {
  position: fixed;
  display: none;
  background: #1a1a1a;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 200;
  pointer-events: none;
  transform: translateX(-50%) translateY(-100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  max-width: 300px;
}
.team-ent-tooltip strong {
  color: var(--color-primary);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: transform 0.3s;
  z-index: 200;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content { flex-direction: column; text-align: center; }
  .hero-flyer { flex: 0 0 auto; max-width: 280px; }
  .hero-desc { margin: 0 auto 24px; }
  .hero-actions { justify-content: center; }
  .bracket-container { flex-direction: column; }
  .bracket-side { flex-direction: column; }
  .region { margin-bottom: 24px; }
  .final-four-container { order: 5; margin-top: 24px; }
  .bracket-right { order: 3; }
  .rounds { overflow-x: auto; padding-bottom: 8px; }
  .bracket-right .rounds { flex-direction: row; }
  .bracket-right .team-slot { flex-direction: row; text-align: left; }
  .bracket-right .team-slot .seed { text-align: left; }
  .bracket-right .round:not(:last-child) .matchup::after {
    right: -12px; left: auto;
    border-left: none; border-right: 1px solid var(--color-bracket-line);
    border-radius: 0 4px 4px 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-secondary); padding: 16px; gap: 12px; }
  .nav-toggle { display: block; }
  .hero { padding: 40px 16px; }
  .hero-text h1 { font-size: 2.5rem; }
  .steps { flex-direction: column; align-items: center; }
  .region-tabs { display: flex; }
  .bracket-container { flex-direction: column; }
  .region { display: none; }
  .region.active { display: block; }
  .final-four-container { display: none; }
  .final-four-container.active { display: flex; }
  .form-row { flex-direction: column; gap: 0; }
  .round { min-width: 130px; }
  .team-slot { font-size: 0.75rem; padding: 3px 6px; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 2rem; }
  .round { min-width: 110px; }
  .team-slot .seed { width: 16px; font-size: 0.7rem; }
}
