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

:root {
  --green-darkest: #0a3d1f;
  --green-dark: #0d3d1a;
  --green-mid: #155d30;
  --green-accent: #1e7a3e;
  --green-bright: #2db560;
  --gold: #f5c842;
  --gold-dark: #c9a200;
  --red: #e03030;
  --white: #f0f5f0;
  --gray-light: #c8d4c8;
  --gray-mid: #7a927a;
  --border: rgba(255,255,255,0.10);
  --card-bg: rgba(255,255,255,0.04);
  --card-bg-hover: rgba(255,255,255,0.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Barlow Condensed', sans-serif;
  background-color: var(--green-darkest);
  color: var(--white);
  min-height: 100vh;
  font-size: 16px;
}

a { color: var(--green-bright); text-decoration: none; }
a:hover { color: var(--gold); }

/* ===== NAV ===== */
nav {
  background: var(--green-dark);
  border-bottom: 2px solid var(--green-accent);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 8px rgba(245,197,24,0.4);
  line-height: 1.1;
}

.nav-brand span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--green-bright);
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.2s;
}

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

.nav-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--gray-mid);
  font-weight: 500;
}

.nav-user strong { color: var(--white); }

/* ===== LAYOUT ===== */
.page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }

.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 16px rgba(245,197,24,0.3);
  line-height: 1;
}

.page-header p {
  margin-top: 0.5rem;
  font-size: 1.15rem;
  color: var(--gray-light);
  font-weight: 400;
}

/* ===== HERO / LANDING ===== */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: radial-gradient(ellipse at center top, rgba(30,122,30,0.25) 0%, transparent 65%);
}

.hero-ball {
  font-size: 5rem;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 24px rgba(245,197,24,0.35);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--green-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray-light);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.18s;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-darkest);
}
.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--green-darkest);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245,197,24,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--green-darkest);
  transform: translateY(-1px);
}

.btn-green {
  background: var(--green-accent);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-bright);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-danger {
  background: var(--red);
  color: var(--white);
}
.btn-danger:hover { background: #c02020; }

/* ===== FORMS ===== */

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.card-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  padding: 0.6rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

input:focus, select:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
}

input::placeholder { color: var(--gray-mid); }

select option {
  background: var(--green-dark);
  color: var(--white);
}

.form-footer {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray-mid);
}

/* ===== ALERTS ===== */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.alert-error {
  background: rgba(224,48,48,0.15);
  border: 1px solid rgba(224,48,48,0.4);
  color: #f08080;
}

.alert-success {
  background: rgba(45,181,45,0.15);
  border: 1px solid rgba(45,181,45,0.4);
  color: var(--green-bright);
}

/* ===== MATCHES GRID ===== */
.group-section { margin-bottom: 2.5rem; }

.group-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.18s;
}

.match-card:hover { background: var(--card-bg-hover); }

.team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.team-away { justify-content: flex-end; flex-direction: row-reverse; }

.flag {
  display: inline-block;
  width: 28px;
  height: 21px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  flex-shrink: 0;
  overflow: hidden;
}

.flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.match-center {
  text-align: center;
  min-width: 80px;
}

.match-score {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1;
}

.match-vs {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-mid);
  letter-spacing: 0.1em;
}

.match-meta {
  font-size: 0.78rem;
  color: var(--gray-mid);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 0.1rem;
}

.match-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-upcoming { background: rgba(100,150,100,0.2); color: var(--gray-light); }
.status-live { background: rgba(224,48,48,0.25); color: #f08080; animation: pulse 1.2s ease-in-out infinite; }
.status-final { background: rgba(245,197,24,0.18); color: var(--gold); }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }

.pick-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pick-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pick-input-wrap input {
  width: 48px;
  text-align: center;
  padding: 0.3rem 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

/* ===== LEADERBOARD ===== */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th, .leaderboard-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
}

.leaderboard-table th {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  background: rgba(255,255,255,0.03);
}

.leaderboard-table tr:hover td { background: var(--card-bg-hover); }

.rank-badge {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
}

.rank-1 { background: var(--gold); color: var(--green-darkest); }
.rank-2 { background: #c0c0c0; color: var(--green-darkest); }
.rank-3 { background: #cd7f32; color: var(--white); }
.rank-other { background: transparent; color: var(--gray-mid); }

.pts {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
}

.winner-pick-badge {
  display: inline-block;
  background: rgba(245,197,24,0.15);
  border: 1px solid rgba(245,197,24,0.3);
  color: var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ===== PROFILE / SETTINGS ===== */
.profile-card { max-width: 600px; margin: 0 auto; }

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

/* ===== ADMIN ===== */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.score-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.score-form input { width: 52px; text-align: center; }

/* ===== STATS CARDS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-top: 0.2rem;
}

/* ===== SCORING LEGEND ===== */
.scoring-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-light);
}

.scoring-legend span { font-weight: 700; color: var(--gold); }

/* ===== PITCH BACKGROUND ===== */
.pitch-bg {
  min-height: calc(100vh - 64px);
  background-image: repeating-linear-gradient(
    180deg,
    transparent          0px,
    transparent          56px,
    rgba(13,77,39,0.45)  56px,
    rgba(13,77,39,0.45) 112px
  );
  padding: 1.5rem 1.25rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== DASH HEADER ===== */
.dash-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.dash-greeting {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.dash-name {
  color: var(--gold);
  font-weight: 900;
}

/* ===== TABS ===== */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.75rem;
}

.tab-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover {
  color: var(--white);
}

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* ===== STAT CARDS (dashboard) ===== */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
}

.stat-card--gold {
  border-color: rgba(245,200,66,0.35);
  background: rgba(245,200,66,0.05);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 0.4rem;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat-card--gold .stat-value {
  color: var(--gold);
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--gray-mid);
  margin-top: 0.2rem;
  font-weight: 500;
}

/* ===== SCORING GUIDE ===== */
.scoring-guide {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.scoring-guide-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-light);
  list-style: none;
  user-select: none;
}
.scoring-guide-toggle::-webkit-details-marker { display: none; }
.scoring-guide-toggle:hover { color: var(--white); }

.toggle-chevron {
  width: 18px;
  height: 18px;
  color: var(--gray-mid);
  transition: transform 0.2s;
  flex-shrink: 0;
}
details[open] .toggle-chevron { transform: rotate(180deg); }

.scoring-guide-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.scoring-rule {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.scoring-rule:last-child { border-bottom: none; }

.scoring-rule--star .pts-badge { box-shadow: 0 0 12px rgba(245,200,66,0.45); }

.scoring-rule strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1.2;
}

.scoring-desc {
  font-size: 0.8rem;
  color: var(--gray-mid);
  margin-top: 0.15rem;
}

.pts-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: 'Barlow Condensed', sans-serif;
}
.pts-3  { background: rgba(46,180,80,0.25);   color: #5de89c; }
.pts-1  { background: rgba(100,150,255,0.2);  color: #90b8ff; }
.pts-5  { background: rgba(245,200,66,0.2);   color: var(--gold); }
.pts-10 { background: rgba(255,120,50,0.2);   color: #ffaa70; }

.scoring-tiebreakers {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.scoring-tb-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 0.4rem;
}

.scoring-tiebreakers ol {
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.8;
}

/* ===== LEADERBOARD TABLE ===== */
.table-wrap { overflow-x: auto; }

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.lb-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.lb-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}

.lb-table tr:last-child td { border-bottom: none; }
.lb-table tbody tr:hover td { background: rgba(255,255,255,0.03); }

.lb-me td { background: rgba(245,200,66,0.05) !important; }

.lb-rank { width: 48px; }
.lb-pts  { font-size: 1.3rem; font-weight: 900; color: var(--gold); white-space: nowrap; }
.lb-name { font-weight: 600; }
.lb-you  {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
  border: 1px solid var(--green-bright);
  border-radius: 3px;
  padding: 0 0.3rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.lb-exact { text-align: center; color: var(--gray-light); font-weight: 600; }
.lb-empty {
  text-align: center;
  color: var(--gray-mid);
  padding: 2rem;
  font-size: 0.95rem;
}

.acc-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  width: 80px;
  display: inline-block;
  vertical-align: middle;
}
.acc-bar-fill {
  height: 100%;
  background: var(--green-bright);
  border-radius: 3px;
}
.acc-pct {
  font-size: 0.78rem;
  color: var(--gray-mid);
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ===== MATCH CARDS (dashboard tab) ===== */
.match-group { margin-bottom: 2rem; }

.match-group-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(245,200,66,0.2);
}

.match-group-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.mc {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.mc:hover { border-color: rgba(255,255,255,0.18); }

.mc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.mc-date {
  font-size: 0.76rem;
  color: var(--gray-mid);
  font-weight: 500;
}

/* Status pills */
.pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.pill-live     { background: rgba(224,48,48,0.25); color: #f08080; animation: pulse 1.2s ease-in-out infinite; }
.pill-final    { background: rgba(245,200,66,0.18); color: var(--gold); }
.pill-upcoming { background: rgba(100,150,100,0.2); color: var(--gray-light); }

.mc-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem;
}

.mc-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.mc-team-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

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

.mc-score {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.mc-score--final { color: #5de89c; }
.mc-score--live  { color: #f08080; }

.mc-vs {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-mid);
  letter-spacing: 0.1em;
}

.mc-footer {
  padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.mc-pick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mc-pick--locked { color: var(--gray-mid); font-size: 0.85rem; }
.mc-pick--none { font-size: 0.8rem; color: var(--gray-mid); }

.mc-pick-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.mc-pick-score {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
}

.mc-pick-form { display: flex; align-items: center; }

.mc-pick-inputs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}
.mc-pick-inputs input[type="number"] {
  width: 42px;
  text-align: center;
  padding: 0.3rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.mc-pick-dash {
  color: var(--gray-mid);
  font-weight: 700;
}

/* ===== FLAG IMAGE ===== */
.flag-img {
  width: 30px;
  height: auto;
  border-radius: 2px;
  display: block;
}

/* ===== MY PICKS TABLE ===== */
.pr-table {
  width: 100%;
  border-collapse: collapse;
}

.pr-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.pr-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
  font-size: 0.95rem;
  font-weight: 600;
}
.pr-table tr:last-child td { border-bottom: none; }

/* Row colouring */
.pr-exact td  { background: rgba(46,180,80,0.06); }
.pr-correct td{ background: rgba(46,180,80,0.03); }
.pr-wrong td  { background: rgba(224,48,48,0.04); }

.pr-teams {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.pr-flag   { display: inline-flex; align-items: center; }
.pr-team-name { font-weight: 600; white-space: nowrap; }
.pr-vs     { font-size: 0.75rem; color: var(--gray-mid); font-weight: 600; margin: 0 0.1rem; }
.pr-meta   { font-size: 0.72rem; color: var(--gray-mid); margin-top: 0.25rem; }

.pr-pick-col    { white-space: nowrap; font-size: 1rem; font-weight: 800; }
.pr-result-col  { white-space: nowrap; }
.pr-pts-col     { white-space: nowrap; text-align: center; }

.pr-no-pick  { color: var(--gray-mid); font-weight: 400; }
.pr-pending  { color: var(--gray-mid); }

.pr-actual {
  font-size: 1rem;
  font-weight: 800;
}
.pr-exact .pr-actual   { color: #5de89c; }
.pr-correct .pr-actual { color: #5de89c; }
.pr-wrong .pr-actual   { color: #f08080; }

.pr-pts         { font-size: 1rem; font-weight: 800; font-family: 'Barlow Condensed', sans-serif; }
.pr-pts--good   { color: #5de89c; }
.pr-pts--zero   { color: #f08080; }
.pr-pts--pending{ color: var(--gray-mid); font-weight: 500; }

/* ===== POSITION CHANGE & LEADERBOARD EXTRAS ===== */
.lb-pos { width: 36px; text-align: center; }

.pos-up   { color: #5de89c; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; }
.pos-down { color: #f08080; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; }
.pos-same { color: var(--gray-mid); font-size: 0.85rem; }
.pos-new  {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); background: rgba(245,200,66,0.12); border-radius: 3px;
  padding: 0.1rem 0.3rem;
}

.lb-winner-bonus { margin-left: 0.25rem; font-size: 0.9rem; }
.lb-goals-guess  { color: var(--gold); font-weight: 700; }
.lb-na           { color: var(--gray-mid); }
.lb-goals        { text-align: center; font-size: 0.85rem; }

.winner-banner {
  background: rgba(245,200,66,0.1);
  border: 1px solid rgba(245,200,66,0.3);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}
.winner-banner strong { color: var(--white); }

.goals-note {
  font-size: 0.82rem;
  color: var(--gray-mid);
  margin-bottom: 0.75rem;
}
.goals-note strong { color: var(--white); }

.empty-msg { color: var(--gray-mid); text-align: center; padding: 3rem 1rem; font-size: 1rem; }

/* ===== SYNC BADGE ===== */
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}
.sync-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sync-ok {
  background: rgba(93, 232, 156, 0.12);
  color: #5de89c;
  border: 1px solid rgba(93, 232, 156, 0.25);
}
.sync-ok::before { background: #5de89c; }

.sync-error {
  background: rgba(240, 128, 128, 0.12);
  color: #f08080;
  border: 1px solid rgba(240, 128, 128, 0.25);
}
.sync-error::before { background: #f08080; }

.sync-pending {
  background: rgba(161, 161, 170, 0.1);
  color: var(--gray-mid);
  border: 1px solid rgba(161, 161, 170, 0.2);
}
.sync-pending::before { background: var(--gray-mid); }

/* ===== MC PICK ROW (modal trigger) ===== */
.mc-pick-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mc-pick-row--locked {
  gap: 0.6rem;
}

.mc-locked {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.mc-saved-score {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.04em;
}

.pick-btn--change {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid rgba(245,200,66,0.5);
}
.pick-btn--change:hover {
  background: rgba(245,200,66,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== PICK MODAL ===== */
.pick-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
}

.pick-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.pick-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.pick-modal-dialog {
  position: relative;
  z-index: 1;
  background: #0d3d1a;
  border: 1px solid rgba(245,200,66,0.25);
  border-radius: 12px;
  padding: 2rem 2.25rem 1.75rem;
  width: min(420px, 92vw);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), opacity 0.18s;
  opacity: 0;
}

.pick-modal.open .pick-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pick-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--gray-mid);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.pick-modal-close:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.pick-modal-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.pick-modal-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.pick-modal-flag {
  width: 48px;
  height: auto;
  border-radius: 3px;
  display: block;
}

.pick-modal-team-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}

.pick-modal-sep {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  flex-shrink: 0;
}

.pick-modal-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.pick-modal-score-input {
  width: 76px !important;
  height: 60px;
  font-size: 2rem !important;
  font-weight: 900 !important;
  text-align: center;
  background: rgba(255,255,255,0.07) !important;
  border: 2px solid var(--border) !important;
  border-radius: 8px;
  color: var(--white) !important;
  font-family: 'Barlow Condensed', sans-serif;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
  padding: 0 !important;
}
.pick-modal-score-input::-webkit-inner-spin-button,
.pick-modal-score-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pick-modal-score-input:focus {
  border-color: var(--gold) !important;
  outline: none;
}

.pick-modal-score-sep {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gray-mid);
  font-family: 'Barlow Condensed', sans-serif;
}

.pick-modal-error {
  font-size: 0.85rem;
  color: #f08080;
  text-align: center;
  min-height: 1.2em;
  margin-bottom: 0.5rem;
}

.pick-modal-save {
  width: 100%;
  padding: 0.8rem;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  transition: background 0.15s, opacity 0.15s;
}
.pick-modal-save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ===== AUTH PAGES ===== */
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245,200,66,0.07) 0%, transparent 65%),
    var(--green-darkest);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}

.auth-badge {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}


.auth-title {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.auth-sub {
  font-size: 0.85rem;
  text-align: center;
  color: var(--gray-mid);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.auth-form {
  margin-top: 1.25rem;
}

.auth-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(245,200,66,0.2);
}

.btn-full {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

/* ===== DASHBOARD ===== */
.dashboard-hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}

.dashboard-greeting {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.dashboard-name {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.dashboard-tagline {
  font-size: 0.9rem;
  color: var(--gray-mid);
  font-weight: 500;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dash-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
}

.dash-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 0.6rem;
}

.dash-card-value {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.dash-card-value--team {
  font-size: 1.7rem;
  color: var(--gold);
}

.dash-card-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-mid);
}

.dash-card-sub {
  font-size: 0.82rem;
  color: var(--gray-mid);
  font-weight: 500;
  margin-top: 0.5rem;
}

.dash-card-empty {
  font-size: 1rem;
  color: var(--gray-mid);
  font-weight: 500;
}

.dash-progress-bar {
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 0.75rem 0 0.25rem;
}

.dash-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding-bottom: 2rem;
}

.btn-admin {
  border-color: rgba(245,200,66,0.5);
  color: var(--gold);
}

/* ===== LIVE DOT ===== */
.live-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em;
  color: #fff; background: #e03030; border-radius: 3px;
  padding: 0.15rem 0.4rem; margin-left: 0.5rem;
  vertical-align: middle; position: relative; top: -1px;
  text-transform: uppercase;
}
.live-dot-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: live-pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ===== TOURNAMENT PROGRESS BAR ===== */
.tournament-progress {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.45rem 2rem;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tp-track {
  flex: 1; height: 5px; background: rgba(255,255,255,0.12);
  border-radius: 3px; overflow: hidden; max-width: 400px;
}
.tp-fill {
  height: 100%; background: var(--gold); border-radius: 3px;
  transition: width 0.6s ease;
}
.tp-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--gray-mid); white-space: nowrap;
  text-transform: uppercase;
}

/* ===== NAV HAMBURGER ===== */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer { display: contents; }

/* ===== AVATAR CIRCLE ===== */
.lb-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 800; color: #fff; flex-shrink: 0;
  letter-spacing: 0;
}
.lb-name { display: flex; align-items: center; gap: 0.5rem; }
.lb-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== SHARE BUTTON ===== */
.lb-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.6rem;
}
.lb-count {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gray-mid);
}
.share-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; padding: 0.3rem 0.75rem;
  transition: background 0.2s, color 0.2s;
}
.share-btn.copied { background: #2ecc71; color: #fff; border-color: transparent; }

/* ===== RESPONSIVE ===== */

/* ── 768px: hide text labels in nav so it fits on tablet ── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-drawer {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--green-dark);
    border-bottom: 2px solid var(--green-accent);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  }
  .nav-drawer.open { display: flex; }

  nav { position: relative; }

  .nav-links {
    flex-direction: column; align-items: flex-start; gap: 0.15rem;
    width: 100%; margin-bottom: 0.75rem;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 0.5rem 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 1.05rem;
  }
  .nav-user { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  .tournament-progress { padding: 0.4rem 1rem; }
  .tp-track { max-width: none; }
}

/* ── 640px: full mobile ── */
@media (max-width: 640px) {
  nav { padding: 0 1rem; height: 56px; }
  .nav-brand { font-size: 1rem; }
  .nav-drawer { top: 56px; }

  .tournament-progress { padding: 0.35rem 0.75rem; gap: 0.5rem; }
  .tp-label { font-size: 0.68rem; }

  .match-card { grid-template-columns: 1fr; gap: 0.5rem; }
  .team-away { flex-direction: row; justify-content: flex-start; }
  .admin-grid { grid-template-columns: 1fr; }
  .pick-section { justify-content: flex-start; }
  .pitch-bg { padding: 1rem 0.75rem 2rem; }

  .tab-nav { gap: 0; }
  .tab-btn { padding: 0.6rem 0.8rem; font-size: 0.88rem; flex: 1; text-align: center; }

  .match-group-cards { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .acc-bar-wrap { width: 50px; }
  .pr-teams { font-size: 0.82rem; }
  .pr-flag .flag-img { width: 22px; }

  /* Leaderboard: tighten up for phone */
  .lb-table { font-size: 0.88rem; }
  .lb-avatar { width: 28px !important; height: 28px !important; font-size: 11px !important; }
  .rank-badge { width: 24px; height: 24px; font-size: 0.75rem; }
  .lb-pts { font-weight: 800; }
  .lb-toolbar { margin-bottom: 0.5rem; }

  /* Stat cards in standings: single column on very small */
  .stat-cards { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
  .stat-card { padding: 0.65rem 0.5rem; }
  .stat-value { font-size: 1.8rem; }
  .stat-sub { font-size: 0.72rem; }
}

/* ── 420px: hide lower-priority columns ── */
@media (max-width: 480px) {
  .hide-xs { display: none !important; }
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
}

/* ===== LOCKED PREDICTION FIELDS ===== */
.locked-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
}

.locked-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  flex: 1;
}

.locked-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-mid);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.locked-hint {
  font-size: 0.8rem;
  color: var(--gray-mid);
  margin-top: 0.35rem;
  font-style: italic;
}

/* ===== PAGE ANIMATIONS ===== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.93) translateY(18px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes kickIn {
  0%   { transform: rotate(-20deg) scale(0.7); opacity: 0; }
  55%  { transform: rotate(12deg)  scale(1.15); opacity: 1; }
  75%  { transform: rotate(-6deg)  scale(1.04); }
  90%  { transform: rotate(3deg)   scale(0.99); }
  100% { transform: rotate(0deg)   scale(1); opacity: 1; }
}

/* Nav */
nav { animation: slideDown 0.35s ease both; }

/* Auth card */
.auth-card {
  animation: scaleIn 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}

/* Auth emoji badge */
.auth-badge {
  animation: kickIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s both;
}

/* Alerts slide in */
.alert { animation: slideDown 0.28s ease both; }

/* Dashboard */
.dashboard-hero        { animation: fadeUp 0.4s ease 0.05s both; }
.dashboard-actions     { animation: fadeUp 0.4s ease 0.32s both; }

/* Staggered dash stat cards */
.dashboard-grid .dash-card:nth-child(1)   { animation: fadeUp 0.4s ease 0.08s both; }
.dashboard-grid .dash-card:nth-child(2)   { animation: fadeUp 0.4s ease 0.16s both; }
.dashboard-grid .dash-card:nth-child(3)   { animation: fadeUp 0.4s ease 0.24s both; }
.dashboard-grid .dash-card:nth-child(4)   { animation: fadeUp 0.4s ease 0.30s both; }
.dashboard-grid .dash-card:nth-child(n+5) { animation: fadeUp 0.4s ease 0.36s both; }

/* Page header / section title */
.page-header  { animation: fadeUp 0.4s ease both; }

/* Profile */
.profile-card { animation: fadeUp 0.45s ease 0.05s both; }

/* Tab panel fade when switching */
.tab-panel.active { animation: fadeIn 0.22s ease both; }

/* Button press tactile feedback */
.btn:active:not(:disabled) {
  transform: scale(0.96) translateY(1px) !important;
  transition: transform 0.07s !important;
}

/* ── Scroll-reveal (class added by JS) ── */
.reveal-item {
  opacity: 0;
  will-change: opacity, transform;
}
.reveal-item.in-view {
  animation: fadeUp 0.38s ease both;
  opacity: 1;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay:    0ms   !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-item { opacity: 1 !important; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--green-darkest); }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 3px; }
