/* app.css - FIFA 2026 Prediction Application Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --surface-glass: rgba(22, 31, 54, 0.65);
  --surface-solid: #1e293b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 255, 170, 0.2);
  
  /* Brand Accents */
  --accent-mint: #00ffaa;
  --accent-mint-hover: #00e699;
  --accent-gold: #ffd700;
  --accent-gold-hover: #e6c200;
  --accent-red: #ff4757;
  
  /* Text colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Fonts */
  --font-family: 'Outfit', sans-serif;
  
  /* Layout constraints */
  --header-height: 70px;
  --sidebar-width: 320px;
  --transition-speed: 0.25s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Custom Scrollbars */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--accent-mint);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism utility */
.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.glow-mint {
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.15);
  border-color: rgba(0, 255, 170, 0.3) !important;
}

.glow-gold {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.3) !important;
}

/* App Header Styling */
header {
  height: var(--header-height);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(10px);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-badge {
  background: rgba(0, 255, 170, 0.15);
  border: 1px solid var(--accent-mint);
  color: var(--accent-mint);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Simulated Time Controls */
.time-simulator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  font-size: 0.85rem;
}

.time-simulator span {
  color: var(--text-secondary);
}

.time-simulator select {
  background: transparent;
  border: none;
  color: var(--accent-mint);
  font-family: var(--font-family);
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.user-score-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 12px;
}

.user-score-badge .score-label {
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.user-score-badge .score-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Desktop Split Pane Layout */
main {
  display: grid;
  grid-template-columns: 1fr 400px 320px;
  flex: 1;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

/* Left Pane (Match Center) */
.pane-matches {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Navigation Tabs */
.tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.25rem;
  border-radius: 12px;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.tab-btn.active {
  background: var(--surface-solid);
  color: var(--accent-mint);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

/* Match Cards list */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-card {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.match-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: all var(--transition-speed);
}

.match-card:hover {
  transform: translateY(-2px);
  background: rgba(22, 31, 54, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}

.match-card.active-match {
  background: rgba(0, 255, 170, 0.04);
  border-color: rgba(0, 255, 170, 0.25);
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.05);
}

.match-card.active-match::before {
  background: var(--accent-mint);
}

.match-card.locked-card::before {
  background: var(--text-muted);
}

.match-status-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border-right: 1px solid var(--border-color);
  padding-right: 0.5rem;
}

.match-time {
  font-weight: 700;
  color: var(--text-primary);
}

.match-date {
  color: var(--text-muted);
  font-size: 0.65rem;
  margin-top: 0.15rem;
}

.status-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

.status-badge.live {
  background: rgba(255, 71, 87, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 71, 87, 0.3);
  animation: pulse 1.5s infinite;
}

.status-badge.completed {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.status-badge.scheduled {
  background: rgba(0, 255, 170, 0.1);
  color: var(--accent-mint);
}

.status-live-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-red);
}

.match-teams-area {
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-flag {
  font-size: 1.2rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.team-rank-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.35rem;
}

.team-score {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.match-predict-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-left: 1px solid var(--border-color);
  padding-left: 0.5rem;
}

.user-pred-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.user-pred-badge.exact {
  border-color: var(--accent-mint);
  color: var(--accent-mint);
  background: rgba(0, 255, 170, 0.05);
}

.user-pred-badge.outcome {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.05);
}

.pred-points-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-mint);
  margin-top: 0.15rem;
}

.lock-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.lock-indicator.locked {
  color: var(--accent-red);
}

/* Middle Pane (Interactive User Prediction Dashboard) */
.pane-prediction {
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(10, 15, 28, 0.3);
}

.pane-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pane-title-badge {
  font-size: 0.7rem;
  background: var(--surface-solid);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: var(--text-secondary);
}

.prediction-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.no-match-selected {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  gap: 1rem;
  flex: 1;
}

.no-match-selected i {
  font-size: 2.5rem;
}

/* Selected Match Detail Panel */
.selected-match-card {
  padding: 1.25rem;
  text-align: center;
  position: relative;
}

.venue-info {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.score-editor-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0;
  gap: 0.5rem;
}

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

.score-editor-team .flag {
  font-size: 2.2rem;
}

.score-editor-team .name {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.score-dial {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.25rem;
}

.dial-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--surface-solid);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed);
}

.dial-btn:hover {
  background: var(--accent-mint);
  color: var(--bg-primary);
}

.dial-val {
  width: 36px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-family);
  border: none;
  background: transparent;
  color: var(--text-primary);
  outline: none;
}

.dial-separator {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
}

/* Category Toggles (1X2 outcome indicator) */
.outcome-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.25rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.outcome-option {
  flex: 1;
  text-align: center;
  padding: 0.4rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all var(--transition-speed);
}

.outcome-option.selected {
  background: var(--surface-solid);
  color: var(--accent-mint);
}

/* First Goalscorer Row styling */
.goalscorer-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.goalscorer-picker label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.goalscorer-select {
  background: var(--surface-solid);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.65rem;
  font-family: var(--font-family);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  width: 100%;
}

.goalscorer-select:focus {
  border-color: var(--accent-mint);
}

/* Underdog details display */
.underdog-alert {
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3;
}

.underdog-alert .icon {
  color: var(--accent-gold);
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.underdog-alert strong {
  color: var(--accent-gold);
}

/* Scoring Engine Guidelines */
.rules-reminder-card {
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rules-reminder-card h4 {
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rule-item {
  display: flex;
  justify-content: space-between;
}

.rule-item span:first-child {
  color: var(--text-muted);
}

.rule-item span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* Submit Actions */
.prediction-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-primary {
  background: var(--accent-mint);
  color: var(--bg-primary);
  border: none;
  padding: 0.8rem;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--accent-mint-hover);
  box-shadow: 0 4px 15px rgba(0, 255, 170, 0.3);
}

.btn-primary:disabled {
  background: var(--surface-solid);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.8rem;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Far Right Pane (Leaderboard & Leagues) */
.pane-leaderboard {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(8, 12, 20, 0.5);
}

.leaderboard-toggle {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  gap: 1rem;
}

.leader-tab {
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  padding-bottom: 0.5rem;
}

.leader-tab.active {
  color: var(--accent-mint);
}

.leader-tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.55rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-mint);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
}

.leader-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leader-rank {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 20px;
}

.leaderboard-item:nth-child(1) .leader-rank { color: var(--accent-gold); }
.leaderboard-item:nth-child(2) .leader-rank { color: #c0c0c0; }
.leaderboard-item:nth-child(3) .leader-rank { color: #cd7f32; }

.leader-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.leader-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.leaderboard-item.current-user {
  background: rgba(0, 255, 170, 0.05);
  border-color: rgba(0, 255, 170, 0.2);
}

.leader-points {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Friend leagues area */
.league-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.league-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.league-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.league-name-txt {
  font-size: 0.9rem;
  font-weight: 600;
}

.league-code-tag {
  font-size: 0.7rem;
  background: var(--surface-solid);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Group Standings Tab Content */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding-bottom: 2rem;
}

.group-table-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.group-table-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.35rem;
  color: var(--accent-mint);
  display: flex;
  justify-content: space-between;
}

.group-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.group-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.25rem 0.15rem;
}

.group-table td {
  padding: 0.35rem 0.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.group-table tr:nth-child(1) td:first-child,
.group-table tr:nth-child(2) td:first-child {
  border-left: 2px solid var(--accent-mint);
  padding-left: 0.25rem;
}

.group-table tr:nth-child(3) td:first-child {
  border-left: 2px solid var(--accent-gold);
  padding-left: 0.25rem;
}

.group-team-name {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

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

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

/* Best 3rd-placed table container */
.third-placed-container {
  margin-top: 1.5rem;
  padding: 1.25rem;
}

.third-placed-container h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
}

.third-placed-container p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.third-placed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.third-placed-table th {
  text-align: left;
  color: var(--text-muted);
  padding: 0.35rem;
}

.third-placed-table td {
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.third-placed-table tr.qualifier {
  background: rgba(0, 255, 170, 0.02);
}

.third-placed-table tr.qualifier td:first-child {
  border-left: 3px solid var(--accent-mint);
}

.third-placed-table tr.disqualified td:first-child {
  border-left: 3px solid var(--accent-red);
}

/* Knockout Bracket Layout */
.bracket-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  width: 100%;
}

.bracket-viewport {
  display: flex;
  gap: 2rem;
  min-width: 1200px;
  padding-bottom: 1rem;
}

.bracket-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-height: 550px;
  gap: 1rem;
}

.bracket-stage-header {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.bracket-match {
  display: flex;
  flex-direction: column;
  background: var(--surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.75rem;
  width: 170px;
}

.bracket-match-header {
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.6rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  display: flex;
  justify-content: space-between;
}

.bracket-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  transition: background var(--transition-speed);
}

.bracket-team-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.bracket-team-row.selected-winner {
  color: var(--accent-mint);
  font-weight: 600;
  background: rgba(0, 255, 170, 0.05);
}

.bracket-team-row.winner-predicted-wrong {
  color: var(--accent-red);
  text-decoration: line-through;
}

.bracket-team-row.empty-slot {
  color: var(--text-muted);
  font-style: italic;
  cursor: default;
}

/* Mobile responsive navigation & bottom drawer styles */
.mobile-nav-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #0d1322;
  border-top: 1px solid var(--border-color);
  z-index: 90;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  border: none;
  gap: 0.25rem;
  cursor: pointer;
}

.mobile-nav-item.active {
  color: var(--accent-mint);
}

.mobile-nav-item i {
  font-size: 1.1rem;
}

/* Bottom Sheet Modal Drawer styling for mobile */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80vh;
  background: var(--bg-secondary);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid var(--border-color);
  border-bottom: none;
  z-index: 1000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bottom-sheet-backdrop.open {
  display: block;
  opacity: 1;
}

.bottom-sheet-handle {
  width: 40px;
  height: 5px;
  background: var(--border-color);
  border-radius: 10px;
  align-self: center;
  margin-bottom: 1.5rem;
}

.bottom-sheet-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 1.25rem;
}

/* Keyframe animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 71, 87, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  main {
    grid-template-columns: 1fr 340px;
  }
  .pane-leaderboard {
    display: none; /* Hide leaderboard in main on medium screens, we can access via tab */
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 1rem;
  }
  
  .header-controls .time-simulator {
    display: none; /* Hide time simulator from header on mobile, place in settings/drawer */
  }

  main {
    grid-template-columns: 1fr;
    height: calc(100vh - var(--header-height) - 60px);
  }

  .pane-matches {
    padding: 1rem;
    padding-bottom: 2rem;
  }

  .pane-prediction {
    display: none; /* Accessible only via bottom sheet */
  }

  .pane-leaderboard {
    display: none;
  }
  
  .mobile-nav-bar {
    display: flex;
  }

  /* Single column tabs layout on mobile match center */
  .pane-matches .tabs {
    position: sticky;
    top: 0;
    margin-bottom: 0.75rem;
  }

  .match-card {
    grid-template-columns: 75px 1fr 90px;
  }

  .match-predict-preview {
    display: flex;
    border-left: 1px solid var(--border-color);
    padding-left: 0.5rem;
    align-items: center;
    justify-content: center;
  }
}

.user-pred-badge.predict-cta {
  border-color: var(--accent-mint) !important;
  color: var(--accent-mint) !important;
  background: rgba(0, 255, 170, 0.1);
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.2);
  animation: pulse-mint 2s infinite;
}

@keyframes pulse-mint {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(0, 255, 170, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 170, 0);
  }
}

/* Simplified App Container */
.app-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem 3rem 1rem;
}

.control-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 16px;
}

.control-group {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.input-action-row {
  display: flex;
  gap: 0.5rem;
}

.input-action-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.input-action-row input:focus {
  border-color: var(--accent-mint);
}

.control-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.main-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.main-tab-btn {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.main-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.main-tab-btn.active {
  background: rgba(0, 255, 170, 0.08);
  border-color: var(--accent-mint);
  color: var(--accent-mint);
  box-shadow: 0 0 12px rgba(0, 255, 170, 0.15);
}

/* Match card layout update for simplified predictions */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.simplified-match-card {
  padding: 1.25rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.simplified-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.simplified-match-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.team-block {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-block.home {
  justify-content: flex-end;
  text-align: right;
}

.team-block.away {
  justify-content: flex-start;
  text-align: left;
}

.team-block .name {
  font-weight: 600;
  font-size: 1rem;
}

.team-block .flag {
  font-size: 1.5rem;
}

.score-editor-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.score-editor-block .score-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.score-editor-block .score-btn:hover:not(:disabled) {
  border-color: var(--accent-mint);
  color: var(--accent-mint);
  background: rgba(0, 255, 170, 0.05);
}

.score-editor-block .score-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.score-editor-block .score-val {
  font-size: 1.25rem;
  font-weight: 700;
  width: 24px;
  text-align: center;
  color: var(--accent-mint);
}

.score-editor-block .score-val.live-score {
  color: var(--accent-gold);
}

.score-editor-block .score-separator {
  color: var(--text-secondary);
  font-weight: bold;
  margin: 0 0.2rem;
}

.goalscorer-block {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.5rem;
}

.goalscorer-select-card {
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  outline: none;
}

.goalscorer-select-card:focus {
  border-color: var(--accent-mint);
  color: var(--text-primary);
}

.leaderboard-card {
  padding: 1.5rem;
  border-radius: 16px;
}

.leaderboard-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* Responsive Overrides */
@media (max-width: 600px) {
  .team-block .name {
    display: none; /* Hide team name on very small screens, flag is enough */
  }
  .team-block .flag {
    font-size: 1.5rem;
  }
  .simplified-match-body {
    gap: 0.5rem;
  }
  .control-panel {
    gap: 1rem;
    padding: 1rem;
  }
}

/* Onboarding overlay styles */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.5rem;
}

.onboarding-card {
  max-width: 480px;
  width: 100%;
  padding: 2.5rem;
  border-radius: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.onboarding-trophy {
  font-size: 3.5rem;
  animation: trophy-bounce 2s infinite ease-in-out;
}

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

.onboarding-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.onboarding-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.onboarding-form input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  text-align: center;
  transition: all 0.3s;
}

.onboarding-form input:focus {
  border-color: var(--accent-mint);
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.1);
}

.onboarding-form button {
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
}

/* Onboarding selection updates */
.onboarding-players-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.onboarding-players-section h3, .onboarding-form h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.onboarding-players-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.onboarding-player-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.onboarding-player-btn:hover {
  border-color: var(--accent-mint);
  background: rgba(0, 255, 170, 0.05);
  transform: translateY(-2px);
}

.onboarding-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: bold;
}

.onboarding-divider::before, .onboarding-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.onboarding-divider::before {
  margin-right: 0.5rem;
}

.onboarding-divider::after {
  margin-left: 0.5rem;
}

.onboarding-form {
  text-align: left;
}

/* Predictions Modal Styling */
.predictions-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  padding: 1.5rem;
}

.predictions-modal-card {
  max-width: 480px;
  width: 100%;
  padding: 1.75rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.predictions-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.predictions-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.predictions-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.predictions-modal-close:hover {
  color: var(--accent-mint);
}

.predictions-modal-body {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
