/**
 * Mundial Typer CSS Stylesheet
 * Modern sport-themed design with neon colors, glassmorphism, responsive grids,
 * custom scrollbars, and fine-tuned hover animations.
 */

/* ==========================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================== */
:root {
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette */
  --bg-primary: #0a0d16;
  --bg-secondary: #111726;
  --bg-card: rgba(22, 30, 49, 0.65);
  --bg-card-hover: rgba(29, 39, 64, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(6, 182, 212, 0.4);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #1f2937;
  
  /* Accents */
  --color-cyan: #06b6d4;
  --color-cyan-glow: rgba(6, 182, 212, 0.2);
  --color-indigo: #6366f1;
  --color-indigo-glow: rgba(99, 102, 241, 0.2);
  --color-purple: #8b5cf6;
  --color-purple-glow: rgba(139, 92, 246, 0.2);
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.2);
  --color-gold: #f59e0b;
  --color-gold-glow: rgba(245, 158, 11, 0.25);
  --color-danger: #ef4444;
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.6);
  --shadow-cyan: 0 0 15px rgba(6, 182, 212, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   GENERAL RESET & SCROLLBAR
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 10% 20%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #1f2a45;
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-cyan);
  box-shadow: var(--shadow-cyan);
}

/* ==========================================
   GLASSMORPHISM UTILITIES
   ========================================== */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-center { text-align: center; }
.text-success { color: var(--color-emerald) !important; }
.text-cyan { color: var(--color-cyan) !important; }
.text-purple { color: var(--color-purple) !important; }
.text-gold { color: var(--color-gold) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-muted { color: var(--text-muted); }
.text-neon-cyan {
  color: var(--color-cyan);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}
.font-bold { font-weight: 700; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  gap: 8px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
}

.btn-lg {
  font-size: 17px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-indigo), var(--color-purple));
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-cyan {
  background: linear-gradient(135deg, #0891b2, var(--color-cyan));
  color: #fff;
}
.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan);
}

.btn-success {
  background: linear-gradient(135deg, #059669, var(--color-emerald));
  color: #fff;
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #1f2937;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: #374151;
  transform: translateY(-2px);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}
.btn-outline-secondary:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.btn-outline-cyan {
  background: transparent;
  color: var(--color-cyan);
  border: 1px solid var(--color-cyan);
}
.btn-outline-cyan:hover {
  background: var(--color-cyan);
  color: #000;
  box-shadow: var(--shadow-cyan);
}

.btn-outline-danger {
  background: transparent;
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}
.btn-outline-danger:hover {
  background: var(--color-danger);
  color: #fff;
}

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

/* Hover Lift Classes */
.hover-lift {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================
   FORMS & INPUTS
   ========================================== */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(10, 15, 30, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 15px;
  transition: all var(--transition-fast);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-cyan);
  background-color: rgba(10, 15, 30, 0.95);
}

.select-glow:focus {
  border-color: var(--color-indigo);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.textarea-glow:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* ==========================================
   BADGES & CHIPS
   ========================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-indigo { background-color: var(--color-indigo-glow); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-cyan { background-color: var(--color-cyan-glow); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-success { background-color: var(--color-emerald-glow); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-danger { background-color: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-secondary { background-color: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.1); }

/* ==========================================
   ALERTS & TOASTS
   ========================================== */
.alert {
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: var(--color-danger);
  color: #fca5a5;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border-color: var(--color-emerald);
  color: #a7f3d0;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border-color: var(--color-gold);
  color: #fde047;
}

.alert-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--color-emerald);
  color: #000;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================
   INITIAL LOADERS
   ========================================== */
#app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.initial-loader, .loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  text-align: center;
  padding: 40px;
}

.initial-loader h2 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 24px;
}

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

/* ==========================================
   AUTHENTICATION VIEW
   ========================================== */
.auth-card {
  width: 100%;
  max-width: 460px;
  margin: 60px auto;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background-color: rgba(22, 30, 49, 0.5);
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 32px;
  background: linear-gradient(to right, var(--color-cyan), var(--color-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 12px;
  margin-bottom: 8px;
}

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

.auth-tabs {
  display: flex;
  background-color: rgba(10, 15, 30, 0.6);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.auth-tab.active {
  background-color: var(--bg-secondary);
  color: var(--color-cyan);
  box-shadow: var(--shadow-sm);
}

/* ==========================================
   ROOM SELECTOR VIEW
   ========================================== */
.room-selector-container {
  max-width: 1100px;
  width: 100%;
  margin: 40px auto;
  padding: 0 20px;
  animation: fadeIn 0.5s ease-out;
}

.user-welcome-header {
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.user-welcome-header h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.user-welcome-header p {
  color: var(--text-muted);
}

.actions-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.action-card {
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-color);
  background: rgba(22, 30, 49, 0.4);
}

.action-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.action-card p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.my-rooms-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-indigo);
  padding-left: 12px;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.room-card {
  border-radius: var(--radius-md);
  padding: 24px;
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.room-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 10px;
}

.room-card-header h3 {
  font-size: 18px;
  word-break: break-word;
}

.room-card-body {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.room-card-body p {
  margin-bottom: 8px;
}

.room-card-body strong {
  color: var(--text-main);
}

/* ==========================================
   DASHBOARD HEADER & TABS
   ========================================== */
.dashboard-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-header {
  border-radius: var(--radius-md);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.room-title-info h2 {
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.room-code-badge {
  background: var(--color-indigo);
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.header-status-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.virtual-clock-widget {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  border: 1px solid var(--border-color-glow);
  text-align: center;
  min-width: 180px;
}

.virtual-clock-widget .clock-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--color-cyan);
  font-weight: 700;
}

.virtual-clock-widget .clock-time {
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.virtual-clock-widget .clock-status {
  font-size: 10px;
  margin-top: 2px;
}

.status-live {
  color: var(--color-emerald);
  font-weight: 700;
}

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

.user-badge {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
}

.dashboard-tabs {
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-tab {
  background: none;
  border: none;
  padding: 12px 24px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  flex-grow: 1;
  text-align: center;
}

.nav-tab:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.02);
}

.nav-tab.active {
  background-color: var(--bg-secondary);
  color: var(--color-cyan);
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--color-cyan);
}

.nav-tab.tab-accent.active {
  color: var(--color-purple);
  border-bottom-color: var(--color-purple);
}

/* ==========================================
   TAB 1: LEADERBOARD
   ========================================== */
.tab-section-header {
  margin-bottom: 24px;
}

.tab-section-header h3 {
  font-size: 20px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(10, 15, 30, 0.4);
  border-bottom: 2px solid var(--border-color);
}

.leaderboard-table td {
  padding: 16px 20px;
  font-size: 15px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast);
}

.leaderboard-row {
  cursor: pointer;
}

.leaderboard-row:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.row-highlight td {
  background-color: rgba(6, 182, 212, 0.05) !important;
}

.row-highlight:hover td {
  background-color: rgba(6, 182, 212, 0.08) !important;
}

.leaderboard-row .rank-cell {
  font-size: 18px;
}

.leaderboard-row .points-cell {
  font-weight: 700;
  font-size: 17px;
  color: var(--color-cyan);
}

.username-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Expanded Detail Row Styling */
.bets-detail-row td {
  padding: 0 !important;
}

.bets-detail-expanded {
  padding: 24px 30px;
  background: rgba(10, 15, 30, 0.6);
  border-bottom: 2px solid var(--color-cyan);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bets-detail-expanded h4 {
  font-size: 16px;
  margin-bottom: 18px;
  border-left: 3px solid var(--color-cyan);
  padding-left: 8px;
}

.expanded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.expanded-column h5 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.bets-compact-list, .special-compact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bet-compact-item, .spec-compact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 6px;
}

.bet-compact-item .match-teams-compact {
  font-weight: 500;
  min-width: 140px;
}

.spec-compact-item .spec-label {
  color: var(--text-muted);
}

.spec-compact-item .spec-value {
  color: var(--text-main);
}

.spec-compact-item .spec-actual {
  font-size: 12px;
  color: var(--color-cyan);
}

/* ==========================================
   TAB 2: MATCH CARDS
   ========================================== */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

@media (max-width: 480px) {
  .matches-grid {
    grid-template-columns: 1fr;
  }
}

.match-card {
  position: relative;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.match-card-header {
  padding: 14px 20px;
  background-color: rgba(10, 15, 30, 0.4);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.match-card-header .match-stage {
  font-weight: 600;
  text-transform: uppercase;
}

.match-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

.teams-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.flag-giant {
  font-size: 40px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.team-name {
  font-size: 16px;
  font-weight: 700;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-badge {
  background: var(--bg-primary);
  font-weight: 800;
  font-size: 11px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.match-card-action {
  background-color: rgba(10, 15, 30, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Match Betting Form */
.match-bet-form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.bet-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-input {
  width: 50px;
  height: 40px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  padding: 4px;
}

/* Remove number spinner arrows for clean style */
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.score-separator {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
}

.locked-bet-container {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  font-size: 14px;
}

.locked-bet-container .result-box {
  text-align: center;
}

.locked-bet-container .label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.score-display {
  font-size: 16px;
  font-weight: 700;
}

/* Points reward overlay bubble */
.points-reward {
  position: absolute;
  top: 60px;
  right: 15px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  box-shadow: var(--shadow-sm);
  transform: rotate(5deg);
}

.reward-success { background-color: var(--color-emerald); color: #000; }
.reward-cyan { background-color: var(--color-cyan); color: #000; }
.reward-secondary { background-color: #374151; color: var(--text-muted); }

/* ==========================================
   TAB 3: SPECIAL PREDICTIONS
   ========================================== */
.special-predictions-container {
  max-width: 900px;
  margin: 0 auto;
}

.special-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.special-inputs-grid .form-group {
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 0;
}

.special-locked-view {
  animation: fadeIn 0.4s ease;
}

.special-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.special-summary-item {
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.special-summary-item .icon {
  font-size: 32px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.special-summary-item h4 {
  font-size: 15px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.special-summary-item .user-choice {
  font-size: 18px;
  font-weight: 700;
}

.special-summary-item .actual-result {
  font-size: 13px;
  color: var(--color-cyan);
}

.special-summary-item .pts-info {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: auto;
}

/* ==========================================
   TAB 4: ADMIN SIMULATOR
   ========================================== */
.admin-tab-container {
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.admin-section {
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
}

.admin-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
}

.admin-section-header .section-icon {
  font-size: 28px;
}

.admin-section-header h3 {
  font-size: 18px;
}

.admin-section-header p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Clock Simulator */
.clock-sim-panel {
  padding: 24px;
}

.current-sim-time {
  font-size: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.custom-time-form {
  border-top: 1px dashed var(--border-color);
  padding-top: 20px;
}

.form-group-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-group-row input[type="datetime-local"] {
  width: auto;
  max-width: 240px;
}

/* Admin Matches Submitter */
.admin-matches-list {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.admin-match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 8px;
  flex-wrap: wrap;
  gap: 16px;
}

.match-played-row {
  border-left: 4px solid var(--color-emerald) !important;
}

.admin-match-row .match-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-match-row .match-info .stage {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-match-row .match-info .teams {
  font-size: 16px;
  font-weight: 700;
}

.admin-match-row .match-info .time {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-match-score-form {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-match-score-form .inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-match-score-form .inputs input {
  width: 44px;
  height: 36px;
  text-align: center;
  font-weight: 700;
}

/* Specials Resolver Form */
.admin-specials-form {
  padding: 24px;
}

.admin-specials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* Firebase Cloud Settings */
.firebase-settings-panel {
  padding: 24px;
}

.firebase-config-form {
  margin-top: 16px;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes trophy-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}

.trophy-bounce {
  display: inline-block;
  font-size: 48px;
  animation: trophy-bounce 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.99); box-shadow: 0 0 10px var(--color-cyan-glow); }
}

.pulse {
  animation: pulse 3s infinite ease-in-out;
}

@keyframes slideUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
  0% { transform: translateY(-10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

/* ==========================================
   FLAG ICONS STYLING
   ========================================== */
.flag-icon-rounded {
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: inline-block;
  width: 1.40em;
  height: 1.05em;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.flag-giant .flag-icon-rounded {
  width: 2.2em;
  height: 1.6em;
  border-radius: 6px;
  margin-right: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================
   SAVED BET & FRIENDS BETS PREMIUM STYLING
   ========================================== */
.saved-bet-info {
  margin-top: 12px;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.saved-bet-info .value {
  font-weight: 700;
  color: var(--color-cyan);
}

.saved-bet-info .value .text-warning {
  color: var(--color-danger);
  font-weight: 500;
}

.friends-bets-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.friends-bets-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  text-align: left;
  font-weight: 600;
}

.friends-bets-empty {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  text-align: left;
  padding: 4px 0;
}

.friends-bets-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.friend-bet-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  transition: var(--transition-fast);
}

.friend-bet-item.friend-bet-empty {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.12);
}

.friend-bet-item.friend-bet-saved {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.friend-bet-item.friend-bet-scored {
  background: rgba(6, 182, 212, 0.04);
  border: 1px solid rgba(6, 182, 212, 0.12);
}

.friend-name {
  font-weight: 600;
  color: var(--text-main);
}

.friend-status {
  font-family: monospace;
  font-weight: 700;
}

.friend-bet-empty .friend-status {
  color: var(--color-danger);
}

.friend-bet-saved .friend-status {
  color: var(--color-emerald);
}

.friend-bet-scored .friend-status {
  color: var(--color-cyan);
}

