/* ============================================================
   WILLOW WALKERS — Dark Golf Theme
   ============================================================ */

:root {
  --bg: #000;
  --bg-card: rgba(0,0,0,0.88);
  --bg-card2: rgba(0,0,0,0.95);
  --gold: #c9a227;
  --gold-dark: #9c7a1a;
  --green: #1e5631;
  --green-light: #2d7a4a;
  --usa-red: #c0392b;
  --usa-blue: #1a4bb8;
  --euro-blue: #003dc7;
  --euro-gold: #ffcc00;
  --text: #ebebeb;
  --text-muted: #a8bfa8;
  --border: #1e3021;
  --card-radius: 12px;
}

* { box-sizing: border-box; }

body {
  background-color: #000;
  background-image: url('/static/images/willow_bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 0;
  pointer-events: none;
}
body.login-page::before {
  background: #000;
}
main, .topbar, .bottom-nav, .side-menu { position: relative; z-index: 1; }
.text-muted { color: var(--text-muted) !important; }

/* ── Layout ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.topbar-logo { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; }
.topbar-logo-img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); }
.small-logo { color: var(--gold) !important; font-size: 0.78rem; letter-spacing: 0.12em; }

.page-content { padding-top: 0; }
.page-content.has-topbar { padding-top: 52px; }
.page-content.has-bottomnav { padding-bottom: 72px; }

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  gap: 2px;
  padding: 4px 8px;
  transition: color 0.2s;
}
.bottom-nav-item i { font-size: 1.3rem; }
.bottom-nav-item.active { color: var(--gold); }
.bottom-nav-item:hover { color: var(--text); }

/* ── Side Menu ── */
.side-menu {
  position: fixed;
  top: 0; left: -280px;
  width: 280px;
  height: 100vh;
  background: rgba(0,0,0,0.97);
  z-index: 200;
  transition: left 0.25s ease;
  padding: 20px;
  border-right: 1px solid var(--border);
}
.side-menu.open { left: 0; }
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}
.menu-overlay.open { display: block; }

.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav-item {
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.side-nav-item:hover { background: var(--bg-card); }

/* ── Hero Header ── */
.hero-header {
  position: relative;
  background: #000;
  overflow: hidden;
  min-height: 160px;
}
.hero-header::before { display: none; }
.hero-overlay { display: none; }
.hero-content { position: relative; z-index: 1; }
.hero-logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.home-hero-logo { max-width: 320px; width: 80vw; height: auto; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.8)); }
.hero-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  line-height: 1;
}
.hero-sub { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--gold); margin: 0; }

/* ── Scoreboard ── */
.scoreboard-banner {
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--border);
  border-radius: 0;
}
.team-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; }
.team-members { font-size: 0.65rem; color: var(--text-muted); margin: 2px 0; }
.team-pts { font-size: 2.4rem; font-weight: 900; line-height: 1; }
.pts-label { font-size: 0.6rem; font-weight: 400; color: var(--text-muted); }
.vs-badge { }
.trophy-icon { font-size: 1.8rem; }
.vs-year { font-size: 0.65rem; font-weight: 700; color: var(--gold); letter-spacing: 0.2em; }
.standings-label { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text-muted); }

/* ── Cards ── */
.ww-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 0;
}
.ww-card-header {
  padding: 12px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.ww-card > *:not(.ww-card-header) { padding: 12px 16px; }
.ww-card > table, .ww-card > .table-responsive { padding: 0; }

/* ── Buttons ── */
.btn-gold {
  background: var(--gold);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 8px;
}
.btn-gold:hover { background: var(--gold-dark); color: #000; }
.btn-view-details {
  display: block;
  text-align: center;
  padding: 12px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  border-top: 1px solid var(--border);
}
.btn-view-details:hover { background: rgba(201,162,39,0.08); }
.btn-xs { font-size: 0.65rem; padding: 2px 6px; }

/* ── Team colors ── */
.text-usa { color: #e05252 !important; }
.text-euro { color: #4a7ff0 !important; }
.text-gold { color: var(--gold) !important; }
.team-usa { background: linear-gradient(135deg, #6e1a1a, #4a0e0e) !important; }
.team-euro { background: linear-gradient(135deg, #1a2e7a, #0d1a5c) !important; }
.bg-gold { background: var(--gold) !important; }

/* ── Roast Card ── */
.roast-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--card-radius);
  padding: 12px 16px;
  font-style: italic;
  font-size: 0.85rem;
}

/* ── Match Mini ── */
.match-mini { padding: 12px 16px 4px; }
.match-mini-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.match-mini-team { }
.match-mini-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; margin-bottom: 8px; }
.match-mini-players { display: flex; gap: 12px; }
.match-mini-player { text-align: center; }
.match-mini-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.6rem; color: #fff;
  margin: 0 auto;
  border: 2px solid rgba(255,255,255,0.1);
}
.match-mini-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.team-usa-border { border: 2px solid var(--usa-red); }
.team-euro-border { border: 2px solid var(--euro-blue); }
.match-mini-name { font-size: 0.5rem; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 4px; }
.match-mini-score { font-size: 1.4rem; font-weight: 900; line-height: 1.1; }

.match-mini-center { text-align: center; padding: 0 4px; }
.match-mini-vegas { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.match-vegas-num { font-size: 2rem; font-weight: 900; line-height: 1; }
.match-vegas-sep { font-size: 0.6rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.1em; }
.match-mini-badge {
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 3px 8px; border-radius: 4px;
  white-space: nowrap;
}
.badge-usa { background: rgba(200,50,50,0.2); color: #e05252; border: 1px solid #e05252; }
.badge-euro { background: rgba(74,127,240,0.2); color: #4a7ff0; border: 1px solid #4a7ff0; }
.badge-tie { background: rgba(150,150,150,0.2); color: #999; border: 1px solid #999; }

.winner-badge {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 4px;
}
.vegas-pts { font-size: 0.8rem; }

.mini-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff; margin: 0 auto;
}
.mini-avatar-xs {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.6rem; color: #fff;
}
.mini-avatar-sm {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.7rem; color: #fff;
}
.mini-photo-circle {
  width: 22px; height: 22px;
  border-radius: 50%; object-fit: cover;
}
.border-usa { border: 1px solid var(--usa-red); }
.border-euro { border: 1px solid var(--euro-blue); }

.score-name { font-size: 0.55rem; letter-spacing: 0.1em; color: var(--text-muted); margin-top: 3px; }
.score-num { font-size: 1.3rem; font-weight: 900; }

/* ── Trip Pot ── */
.trip-pot-total { font-size: 2rem; font-weight: 900; color: var(--gold); }
.money-table { border-collapse: collapse; font-size: 0.8rem; }
.money-table th { padding: 4px 12px; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.money-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }

/* ── Season Leaders ── */
.leaders-list { padding: 4px 16px; }
.leader-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.leader-row:last-child { border-bottom: none; }
.leader-cat { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; }
.leader-name { font-size: 0.9rem; font-weight: 700; }
.leader-value { font-size: 1.4rem; font-weight: 900; }

/* ── Activity ── */
.activity-list { padding: 4px 0; }
.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.activity-row:last-child { border-bottom: none; }
.activity-icon { font-size: 1rem; flex-shrink: 0; padding-top: 1px; }
.activity-text { flex: 1; line-height: 1.4; }
.activity-date { flex-shrink: 0; font-size: 0.65rem; }

/* ── Player Dashboard ── */
.dash-stat-val { font-size: 1.4rem; font-weight: 900; }
.dash-stat-label { font-size: 0.55rem; letter-spacing: 0.1em; color: var(--text-muted); }

/* ── Page Header ── */
.page-header { border-bottom: 1px solid var(--border); }
.page-title { font-size: 1.1rem; font-weight: 800; letter-spacing: 0.1em; margin: 0; }

/* ── Year Tabs ── */
.year-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.year-tab {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}
.year-tab.active { background: var(--gold); color: #000; border-color: var(--gold); }

/* ── Match List ── */
.match-card-link { text-decoration: none; color: inherit; }
.match-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: background 0.15s;
}
.match-list-card:hover { background: var(--bg-card2); }
.match-list-card.needs-review { border-color: #c09a00; }
.match-team-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; }
.match-pts { font-size: 2rem; font-weight: 900; }
.winner-pts { color: var(--gold); }
.match-season-pts { }
.match-winner-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}
.tag-usa { background: rgba(200,50,50,0.15); color: #e05252; }
.tag-euro { background: rgba(74,127,240,0.15); color: #4a7ff0; }
.tag-tie { background: rgba(150,150,150,0.15); color: #999; }
.match-status-badge { font-size: 0.55rem; padding: 2px 6px; border-radius: 4px; background: rgba(45,122,74,0.3); color: var(--green-light); letter-spacing: 0.1em; }

/* ── Back Link ── */
.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.back-link:hover { color: var(--gold); }

/* ── Match Detail ── */
.match-detail-header { background: var(--bg-card); border-bottom: 1px solid var(--border); }
.match-detail-members { font-size: 0.65rem; color: var(--text-muted); }
.match-detail-pts { font-size: 2.5rem; font-weight: 900; }
.winner-seal {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
}
.usa-seal { background: rgba(200,50,50,0.2); border: 2px solid #e05252; color: #e05252; }
.euro-seal { background: rgba(74,127,240,0.2); border: 2px solid #4a7ff0; color: #4a7ff0; }
.tie-seal { background: rgba(150,150,150,0.2); border: 2px solid #999; color: #999; }

.individual-score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}
.usa-card { border-top: 2px solid var(--usa-red); }
.euro-card { border-top: 2px solid var(--euro-blue); }
.ind-name { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); }
.ind-score { font-size: 1.8rem; font-weight: 900; }
.best-score { color: var(--gold) !important; }

/* ── Hole Table ── */
.hole-table-wrapper { overflow-x: auto; }
.hole-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.hole-table th {
  padding: 6px 8px;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card2);
}
.hole-table td {
  padding: 7px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hole-row { transition: background 0.1s; }
.hole-row:hover { background: rgba(255,255,255,0.04); }
.hole-usa { background: rgba(200,50,50,0.06); }
.hole-euro { background: rgba(74,127,240,0.06); }
.hole-tie { }
.hole-num { font-weight: 700; color: var(--gold); }
.vegas-num { font-weight: 700; font-size: 0.8rem; }
.flipped-num { color: #f0a500; }
.winner-num { background: rgba(201,162,39,0.15); border-radius: 4px; }
.flip-indicator { font-size: 0.6rem; vertical-align: super; }

.badge-usa-sm { background: rgba(200,50,50,0.15); color: #e05252; font-size: 0.6rem; padding: 2px 4px; border-radius: 3px; }
.badge-euro-sm { background: rgba(74,127,240,0.15); color: #4a7ff0; font-size: 0.6rem; padding: 2px 4px; border-radius: 3px; }
.badge-tie-sm { background: rgba(150,150,150,0.15); color: #999; font-size: 0.6rem; padding: 2px 4px; border-radius: 3px; }

.score-birdie { color: #2ecc71; font-weight: 700; }
.score-par { color: var(--text); }
.score-bogey { color: #e74c3c; }
.score-double { color: #c0392b; font-weight: 700; }

.hole-totals-row { background: rgba(201,162,39,0.08); border-top: 2px solid var(--gold); }
.hole-detail-row { background: #0c1b0f; }
.hole-explain { padding: 12px; font-size: 0.78rem; text-align: left; }
.hole-explain p { margin-bottom: 6px; }

/* ── Player Cards ── */
.player-card-link { text-decoration: none; color: inherit; }
.player-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 16px 12px;
  text-align: center;
  transition: background 0.15s;
}
.player-profile-card:hover { background: var(--bg-card2); }
.player-profile-card.usa-card { border-top: 3px solid var(--usa-red); }
.player-profile-card.euro-card { border-top: 3px solid var(--euro-blue); }

.player-card-photo-wrap { width: 72px; height: 72px; margin: 0 auto 8px; }
.player-card-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}
.player-profile-card.usa-card .player-card-photo { border: 3px solid var(--usa-red); }
.player-profile-card.euro-card .player-card-photo { border: 3px solid var(--euro-blue); }
.player-card-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  background: #111;
}
.player-card-name { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; }
.player-card-team { font-size: 0.55rem; letter-spacing: 0.2em; color: var(--text-muted); margin: 3px 0 8px; }
.player-card-stats { display: flex; justify-content: space-around; margin-top: 8px; }
.player-card-stat { }
.stat-val { font-size: 1rem; font-weight: 700; }
.stat-lbl { font-size: 0.5rem; letter-spacing: 0.1em; color: var(--text-muted); }

/* ── Player Hero ── */
.player-hero {
  padding: 32px 16px 24px;
  background: rgba(0,0,0,0.65);
}
.hero-usa { background: rgba(30,5,5,0.8) !important; }
.hero-euro { background: rgba(5,10,30,0.8) !important; }
.player-hero-photo-wrap { width: 100px; height: 100px; }
.player-hero-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; background: #000; border: 3px solid var(--gold); }
.player-hero-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  background: #111;
  border: 3px solid var(--gold);
}

.photo-edit-btn {
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  border: 2px solid #000;
  z-index: 2;
}
.photo-edit-btn:hover { background: var(--gold-dark); }
.player-hero-name { font-size: 1.8rem; font-weight: 900; letter-spacing: 0.1em; }
.player-hero-team { font-size: 0.65rem; letter-spacing: 0.2em; color: var(--gold); margin-top: 4px; }

.ai-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--card-radius);
  padding: 14px 16px;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.5;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 8px;
}
.stat-card-val { font-size: 1.6rem; font-weight: 900; }
.stat-card-label { font-size: 0.55rem; letter-spacing: 0.1em; color: var(--text-muted); }

.big-stat { font-size: 2rem; font-weight: 900; }
.big-stat-label { font-size: 0.55rem; letter-spacing: 0.1em; color: var(--text-muted); }

.demon-hole-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.demon-hole-num { font-weight: 700; font-size: 0.9rem; }

.recent-round-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.rr-score { font-size: 1.1rem; }

/* ── Stats ── */
.stats-table { font-size: 0.75rem; }
.stats-table th { font-size: 0.6rem; letter-spacing: 0.08em; color: var(--text-muted); background: var(--bg-card2) !important; }
.stats-table td { border-color: var(--border) !important; }

/* ── Import ── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--card-radius);
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--gold);
  background: rgba(201,162,39,0.05);
}
.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.player-select-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--card-radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.player-select-tile input[type="radio"] { display: none; }
.player-select-tile:hover { border-color: var(--gold); }
.player-select-tile.selected { border-color: var(--gold); background: rgba(201,162,39,0.08); }
.player-select-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.player-select-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; color: #fff;
}
.bg-usa  { background: var(--usa-color, #c0392b); }
.bg-euro { background: var(--euro-color, #2980b9); }
.result-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.import-history-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
}
.x-small { font-size: 0.65rem; }

/* ── Admin ── */
.flagged-match-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.player-admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.mini-player-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }

.team-tag {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 4px;
}
.team-tag.usa { background: rgba(200,50,50,0.2); color: #e05252; }
.team-tag.euro { background: rgba(74,127,240,0.2); color: #4a7ff0; }
.badge-gold { background: var(--gold) !important; }

/* ── Login Page ── */
.login-page {
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.login-hero {
  position: relative;
  z-index: 1;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 16px 20px;
}
.login-hero-overlay { display: none; }
.login-content { position: relative; z-index: 1; text-align: center; }
.login-app-logo {
  width: min(72vw, 340px);
  height: auto;
  display: block;
  margin: 0 auto;
}
.login-prompt-text {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #fff;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.login-panel { position: relative; z-index: 1; max-width: 540px; margin: 0 auto; padding: 16px 16px 48px; width: 100%; }

.player-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 0; }
.player-tile {
  background: rgba(10,10,10,0.78);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 3px solid transparent;
  border-radius: 16px;
  padding: 22px 8px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.player-tile.tile-usa { border-top-color: var(--usa-red); }
.player-tile.tile-euro { border-top-color: var(--euro-blue); }
.player-tile:hover {
  background: rgba(20,20,20,0.90);
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,162,39,0.35);
  transform: translateY(-4px);
  border-color: rgba(201,162,39,0.4);
  border-top-color: var(--gold);
}
.player-tile:active { transform: translateY(-1px); }

.player-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}
.player-avatar.team-usa { border: 3px solid var(--usa-red); box-shadow: 0 0 12px rgba(192,57,43,0.4); }
.player-avatar.team-euro { border: 3px solid var(--euro-blue); box-shadow: 0 0 12px rgba(0,61,199,0.4); }
.player-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { font-size: 2.2rem; font-weight: 900; color: #fff; }
.player-name { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.12em; color: #fff; margin-top: 10px; }
.player-team-badge {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 6px;
}
.player-team-badge.usa { background: rgba(200,50,50,0.2); color: #e05252; }
.player-team-badge.euro { background: rgba(74,127,240,0.2); color: #4a7ff0; }

.pin-section { }
.player-avatar-lg {
  width: 90px; height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--gold);
}
.pin-section h5 { color: #fff; }
.pin-section .text-muted { color: #bbb !important; }
.pin-section .btn-link { color: #aaa !important; }

.pin-display {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.pin-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  background: transparent;
  transition: background 0.15s;
}
.pin-dot.filled { background: var(--gold); border-color: var(--gold); }

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 240px;
  margin: 0 auto;
}
.pin-key {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin-key:hover, .pin-key:active { background: rgba(255,255,255,0.18); border-color: var(--gold); color: #fff; }
.pin-key-del { font-size: 1rem; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 48px 16px; }

/* ── No Data Banner ── */
.no-data-banner { }
.no-data-inner {
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Utility ── */
.letter-spacing { letter-spacing: 0.12em; }

/* ── Responsive tweaks ── */
@media (min-width: 480px) {
  .hero-title { font-size: 2.6rem; }
  .player-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .player-avatar { width: 90px; height: 90px; }
}
@media (min-width: 600px) {
  .player-grid { gap: 16px; }
  .player-avatar { width: 96px; height: 96px; }
  .login-app-logo { width: min(65vw, 380px); }
}
@media (min-width: 768px) {
  .page-content { max-width: 600px; margin: 0 auto; }
  .topbar { max-width: 600px; left: 50%; transform: translateX(-50%); border-radius: 0 0 12px 12px; }
  .bottom-nav { max-width: 600px; left: 50%; transform: translateX(-50%); border-radius: 12px 12px 0 0; }
}
