/* ==========================================================================
   BOLÃO COPA 2026 - PREMIUM CSS STYLE SHEET
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  /* Colors */
  --bg-body: #010918;
  --bg-shell: #03122c;
  --bg-shell-gradient: linear-gradient(180deg, #03122c 0%, #071939 100%);
  --bg-card: rgba(12, 34, 76, 0.7);
  --bg-card-hover: rgba(18, 47, 102, 0.85);
  --bg-input: #08193a;
  --bg-header: rgba(3, 18, 44, 0.85);
  --bg-nav: rgba(3, 18, 44, 0.85);
  --border-header: rgba(255, 255, 255, 0.05);
  --border-nav: rgba(255, 255, 255, 0.05);
  --bg-modal: #041635;
  --bg-modal-overlay: rgba(1, 9, 24, 0.75);
  --featured-gradient: linear-gradient(180deg, rgba(3, 18, 44, 0.4) 0%, rgba(3, 18, 44, 0.85) 100%), 
                        radial-gradient(ellipse at center, rgba(16, 185, 129, 0.1) 0%, rgba(3, 18, 44, 0) 70%);
  
  --color-primary: #ffffff;
  --color-secondary: #94a3b8;
  --color-accent: #ffd000;
  --color-accent-hover: #e5bb00;
  
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-live: #ff5e5e;
  
  --border-color: rgba(30, 64, 175, 0.4);
  --border-color-glow: rgba(251, 191, 36, 0.5);
  
  /* Font Stack */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --shell-max-width: 480px;
  --header-height: 64px;
  --nav-height: 72px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 0 15px rgba(255, 208, 0, 0.25);
  --shadow-glow-active: 0 0 20px rgba(30, 64, 175, 0.3);
}

/* Hero Theme Variables Switch (Superhero Vibe) */
body.hero-theme {
  --bg-body: #0b132b; /* Deep comic book navy */
  --bg-shell: #1c2541; /* Softer steel blue/navy shell */
  --bg-shell-gradient: linear-gradient(180deg, #1c2541 0%, #3a506b 100%); /* Heroic gradient */
  --bg-card: rgba(28, 37, 65, 0.75); /* Slate card */
  --bg-card-hover: rgba(58, 80, 107, 0.85);
  --bg-input: #0b132b;
  --bg-header: rgba(28, 37, 65, 0.9);
  --bg-nav: rgba(28, 37, 65, 0.9);
  --border-header: rgba(245, 158, 11, 0.2);
  --border-nav: rgba(245, 158, 11, 0.2);
  --bg-modal: #1c2541;
  --bg-modal-overlay: rgba(11, 19, 43, 0.8);
  --featured-gradient: linear-gradient(180deg, rgba(28, 37, 65, 0.4) 0%, rgba(28, 37, 65, 0.9) 100%), 
                        radial-gradient(ellipse at center, rgba(225, 29, 72, 0.25) 0%, rgba(28, 37, 65, 0) 70%); /* Scarlet highlight */
  
  --color-primary: #ffffff;
  --color-secondary: #cbd5e1; /* Ice slate text */
  --color-accent: #ffd000; /* Warm hero gold */
  --color-accent-hover: #d97706;
  
  --border-color: rgba(99, 102, 241, 0.35); /* Soft heroic indigo borders */
  --border-color-glow: rgba(245, 158, 11, 0.6);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 15px rgba(99, 102, 241, 0.15);
  --shadow-lg: 0 10px 25px rgba(11, 19, 43, 0.5);
  --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.35);
  --shadow-glow-active: 0 0 20px rgba(99, 102, 241, 0.35);
}

/* Base Reset & Scrollbar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Hide scrollbars across sections but allow scrolling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* App Shell container to constrain mobile look on desktop screens */
.app-shell {
  width: 100%;
  max-width: var(--shell-max-width);
  height: 100vh;
  background: var(--bg-shell-gradient);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Header styling */
.app-header {
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-accent);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition-fast);
}
.avatar-mini:hover {
  transform: scale(1.05);
}
.avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--color-primary);
  text-transform: uppercase;
}
.app-logo span {
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(255, 208, 0, 0.3);
}

.icon-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  position: relative;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.icon-btn .icon {
  width: 22px;
  height: 22px;
}
.icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background-color: var(--color-danger);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-danger);
  display: none; /* Dynamic in js */
}

/* Main View Panel Wrapper */
.app-main {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: calc(var(--nav-height) + 16px);
}

/* Tab Panels */
.view-panel {
  display: none;
  animation: fadeIn var(--transition-normal);
}
.view-panel.active {
  display: block;
}

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

/* Headings and Typography */
h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.5px;
}
p.subtitle {
  color: var(--color-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.view-header-title {
  margin-bottom: 20px;
}

/* 1. HOME VIEW (INÍCIO) */
.welcome-banner {
  margin-bottom: 16px;
}
.banner-sub {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-secondary);
  text-transform: uppercase;
}
.banner-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary);
  margin-top: 2px;
}

/* Mini stats grid */
.mini-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.mini-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.mini-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 64, 175, 0.7);
}
.mini-stat-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.mini-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
}

/* Featured match card with Stadium Backdrop */
.featured-match-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  aspect-ratio: 16/9;
}
.featured-match-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--featured-gradient);
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.featured-match-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.match-badge-live {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--color-live);
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.teams-versus-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin-bottom: 8px;
}
.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}
.team-flag-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-fast);
}
.team-flag-wrapper:hover {
  transform: scale(1.08);
}
.flag-icon {
  font-size: 28px;
  line-height: 1;
}
.team-abbrev {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.vs-divider {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(255, 208, 0, 0.4);
}

.match-datetime {
  font-size: 12px;
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  border: none;
  outline: none;
  font-family: var(--font-main);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.btn-primary {
  background-color: var(--color-accent);
  color: #03122c;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 0 20px rgba(255, 208, 0, 0.45);
}
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
.font-bold {
  font-weight: 700;
}
.ripple {
  position: relative;
  overflow: hidden;
}
.btn-logout {
  width: 100%;
  background-color: rgba(239, 68, 68, 0.12);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
}
.btn-logout:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

/* Sections containers */
.section-container {
  margin-top: 24px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}
.text-link-btn {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.text-link-btn:hover {
  color: var(--color-accent);
}
.trophy-header-icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

/* Groups Horizontal Scroll */
.groups-horizontal-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scroll-snap-type: x mandatory;
}
.group-circle-card {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  scroll-snap-align: start;
}
.group-icon-holder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  color: var(--color-accent);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.group-icon-holder svg {
  width: 24px;
  height: 24px;
}
.group-circle-card:hover .group-icon-holder {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--color-accent);
}
.group-circle-card.dashed .group-icon-holder {
  border-style: dashed;
  background: transparent;
  color: var(--color-secondary);
}
.plus-holder span {
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}
.group-circle-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.group-circle-rank {
  font-size: 10px;
  color: var(--color-secondary);
  margin-top: 1px;
}

/* Ranking Preview on Home */
.ranking-preview-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ranking-row {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  transition: border-color var(--transition-fast);
}
.ranking-row:hover {
  border-color: rgba(30, 64, 175, 0.6);
}
.ranking-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ranking-pos {
  font-size: 18px;
  font-weight: 900;
  color: var(--color-secondary);
  width: 24px;
  text-align: center;
}
.ranking-pos.pos-1 {
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(255, 208, 0, 0.4);
}
.ranking-pos.pos-2 {
  color: #c0c0c0;
}
.ranking-pos.pos-3 {
  color: #cd7f32;
}

.ranking-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.ranking-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ranking-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}
.ranking-points {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 2px;
}
.ranking-trend-icon {
  width: 18px;
  height: 18px;
}
.trend-up {
  color: var(--color-success);
}
.trend-down {
  color: var(--color-danger);
}
.trend-same {
  color: var(--color-secondary);
}

/* 2. MATCHES / PALPITES VIEW */
.match-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
}
.filter-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--color-secondary);
  padding: 8px 12px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-tab.active {
  background: var(--color-accent);
  color: #03122c;
  border-color: var(--color-accent);
}

.matches-list-scrollable {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.match-card:hover {
  border-color: rgba(30, 64, 175, 0.6);
  transform: translateY(-1px);
}
.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-secondary);
}
.match-status-label {
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.match-status-label.live {
  color: var(--color-live);
  animation: pulse-simple 1.5s infinite;
}
@keyframes pulse-simple {
  50% { opacity: 0.6; }
}
.match-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.match-team {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 40%;
}
.match-team.team-away {
  justify-content: flex-end;
}
.match-team-flag {
  font-size: 22px;
}
.match-team-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-scores-middle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
}
.actual-score {
  color: var(--color-secondary);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.match-prediction-bar {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.pred-label {
  color: var(--color-secondary);
  font-weight: 500;
}
.pred-value {
  color: var(--color-accent);
  font-weight: 700;
}
.pred-empty {
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}
.prediction-points-badge {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  padding: 2px 6px;
  font-weight: 700;
}

/* 3. RANKING VIEW */
.premium-select {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--color-primary);
  padding: 12px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffd000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  margin-bottom: 16px;
}
.premium-select:focus {
  border-color: var(--color-accent);
}

.leaderboard-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.leaderboard-header-row {
  display: flex;
  background: rgba(3, 18, 44, 0.4);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.5px;
}
.leaderboard-col.rank { width: 12%; text-align: center; }
.leaderboard-col.user { width: 53%; }
.leaderboard-col.points { width: 20%; text-align: right; }
.leaderboard-col.trend { width: 15%; text-align: center; }

.leaderboard-list {
  display: flex;
  flex-direction: column;
}
.leaderboard-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background-color var(--transition-fast);
}
.leaderboard-row:last-child {
  border-bottom: none;
}
.leaderboard-row:hover {
  background-color: rgba(255, 255, 255, 0.02);
}
.leaderboard-row.current-user {
  background-color: rgba(255, 208, 0, 0.04);
}
.leaderboard-row.current-user .leaderboard-cell-name {
  color: var(--color-accent);
  font-weight: 700;
}
.leaderboard-cell-rank {
  width: 12%;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-secondary);
}
.leaderboard-cell-rank.pos-1 { color: var(--color-accent); }
.leaderboard-cell-rank.pos-2 { color: #c0c0c0; }
.leaderboard-cell-rank.pos-3 { color: #cd7f32; }

.leaderboard-cell-user {
  width: 53%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.leaderboard-cell-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.leaderboard-cell-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leaderboard-cell-name {
  font-size: 13px;
  font-weight: 600;
}
.leaderboard-cell-points {
  width: 20%;
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary);
}
.leaderboard-cell-trend {
  width: 15%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 4. PERFIL VIEW */
.profile-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 24px;
}
.profile-avatar-wrapper {
  position: relative;
  margin-bottom: 12px;
}
.profile-avatar-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #ffd000 0%, #d4af37 100%);
  box-shadow: 0 0 25px rgba(255, 208, 0, 0.35);
}
.profile-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-shell);
}
.badge-premium {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: #03122c;
  font-size: 8px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.profile-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
}

/* Big Stats Grid */
.stats-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}
.stat-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent);
}

/* Achievements Horizontal Scroll */
.achievements-horizontal-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 10px;
}
.achievement-badge-card {
  flex: 0 0 110px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: border-color var(--transition-fast);
}
.achievement-badge-card.highlight {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-gold);
}
.achievement-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
}
.achievement-icon.gold { color: var(--color-accent); }
.achievement-icon.blue { color: #3b82f6; }
.achievement-icon.gray { color: var(--color-secondary); }
.achievement-icon svg {
  width: 20px;
  height: 20px;
}
.achievement-name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.achievement-badge-card.disabled {
  opacity: 0.4;
}

/* Settings List */
.settings-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}
.settings-item {
  background: none;
  border: none;
  outline: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.settings-item:last-child {
  border-bottom: none;
}
.settings-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
}
.settings-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.item-icon {
  width: 18px;
  height: 18px;
  color: var(--color-secondary);
}
.chevron-right {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
}
.settings-value-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-secondary);
}

/* FLOATING ACTION BUTTON */
.floating-action-btn {
  position: absolute;
  bottom: calc(var(--nav-height) + 16px);
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #03122c;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 208, 0, 0.4);
  cursor: pointer;
  z-index: 90;
  transition: transform var(--transition-fast);
}
.floating-action-btn:hover {
  transform: scale(1.06);
}
.plus-sign {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}
.pulse-glow {
  animation: pulse-glow-ani 2.5s infinite;
}
@keyframes pulse-glow-ani {
  0% { box-shadow: 0 0 0 0 rgba(255, 208, 0, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(255, 208, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 208, 0, 0); }
}

/* BOTTOM NAVIGATION BAR */
.app-navigation {
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-nav);
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}
.nav-tab {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--color-secondary);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast);
  position: relative;
}
.nav-tab:hover {
  color: var(--color-primary);
}
.nav-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}
.nav-tab:hover .nav-icon {
  transform: scale(1.05);
}
.nav-tab.active {
  color: var(--color-accent);
}
.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent);
}

/* TOAST NOTIFICATIONS */
.toast-container {
  position: absolute;
  top: 76px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
  pointer-events: none;
}
.toast {
  background: rgba(12, 34, 76, 0.95);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideIn var(--transition-fast) forwards;
  pointer-events: auto;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast.toast-success { border-left-color: var(--color-success); }
.toast.toast-danger { border-left-color: var(--color-danger); }
.toast-close {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 16px;
  cursor: pointer;
  margin-left: 10px;
}

/* MODALS SYSTEM styling */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-modal-overlay);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast) ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  width: 100%;
  background: var(--bg-modal);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid var(--border-color);
  border-bottom: none;
  padding: 24px 20px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}
.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-header h4 {
  font-size: 18px;
  font-weight: 800;
}
.close-btn {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 24px;
  cursor: pointer;
}
.modal-subtitle {
  font-size: 13px;
  color: var(--color-secondary);
  margin-top: -8px;
  margin-bottom: 20px;
}

/* Input Fields styling */
.input-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.5px;
}
.premium-input {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--color-primary);
  padding: 12px;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
}
.premium-input:focus {
  border-color: var(--color-accent);
}

/* Match prediction form styling */
.match-predict-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}
.predict-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 40%;
}
.flag-icon-large {
  font-size: 40px;
}
.predict-team-name {
  font-size: 14px;
  font-weight: 700;
}
.score-input {
  width: 60px;
  height: 50px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  outline: none;
}
.score-input:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-gold);
}
/* Hide input spinners */
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.predict-vs {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-secondary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}
.modal-footer .btn {
  flex: 1;
  padding: 12px;
}

/* ==========================================================================
   AUTH SCREEN STYLING
   ========================================================================== */
.auth-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-shell-gradient);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
  z-index: 150;
  animation: fadeIn var(--transition-normal);
}

.app-shell.auth-required .auth-screen {
  display: flex;
}

.app-shell.auth-required .app-header,
.app-shell.auth-required .app-main,
.app-shell.auth-required .app-navigation,
.app-shell.auth-required .floating-action-btn {
  display: none !important;
}

.auth-card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.auth-logo span {
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(255, 208, 0, 0.4);
}

.auth-subtitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-secondary);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.auth-form-container {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.auth-toggle-wrapper {
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sandbox-indicator {
  margin-top: 36px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 12px;
}

/* ==========================================================================
   PENDING ACCOUNT WARNING BANNER
   ========================================================================= */
.pending-user-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.04);
}
.pending-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.warning-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
}
.pending-banner-content strong {
  font-size: 13px;
  color: #f59e0b;
  display: block;
}
.pending-banner-content p {
  font-size: 11px;
  color: var(--color-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   ADMIN PANEL USER LIST MODAL
   ========================================================================= */
.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.admin-user-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color var(--transition-fast);
}
.admin-user-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.admin-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-user-info .name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}
.admin-user-info .email {
  font-size: 11px;
  color: var(--color-secondary);
}
.admin-user-info .points {
  font-size: 11px;
  color: var(--color-accent);
  margin-top: 2px;
  font-weight: 600;
}
.admin-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}
.status-badge.approved {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-badge.pending {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.btn-status-toggle {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-primary);
  transition: all var(--transition-fast);
}
.btn-status-toggle.approve-action {
  background-color: var(--color-accent);
  color: #03122c;
  box-shadow: 0 0 10px rgba(255, 208, 0, 0.15);
}
.btn-status-toggle.approve-action:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 0 15px rgba(255, 208, 0, 0.35);
}
.btn-status-toggle.suspend-action:hover {
  background-color: rgba(239, 68, 68, 0.12);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}


