/* ============================================================================
   NIBLA — Modern Esports Tabletop Football Stylesheet
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-deep: #060913;
  --bg-card: rgba(15, 23, 42, 0.82);
  --bg-card-hover: rgba(23, 37, 68, 0.92);
  --border-glass: rgba(148, 163, 184, 0.18);
  --cyan: #06b6d4;
  --cyan-bright: #38bdf8;
  --gold: #facc15;
  --gold-deep: #eab308;
  --emerald: #10b981;
  --rose: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  background: var(--bg-deep) url('assets/bg_stadium.webp') center center / cover no-repeat fixed;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(6, 9, 19, 0.68) 0%, rgba(4, 7, 15, 0.92) 100%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

/* ============================================================================
   APP SHELL & TOP HUD BAR
   ============================================================================ */
#app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  transition: opacity 0.25s ease;
}

#app-shell.in-match {
  display: none;
}

.top-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(9, 14, 28, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  gap: 16px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
}

.brand-title-wrap h1 {
  font-size: 1.45rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 55%, #facc15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.06em;
}

.brand-title-wrap small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.player-pill-hud {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.9);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  cursor: pointer;
}

.lvl-badge {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  font-weight: 800;
  font-size: 0.74rem;
  padding: 4px 9px;
  border-radius: 999px;
}

.xp-bar-mini {
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 3px;
}

#hud-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  transition: width 0.3s ease;
}

.currencies-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.currency-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border-glass);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}

.currency-pill.coins-pill {
  border-color: rgba(250, 204, 21, 0.4);
  color: var(--gold);
}

.currency-pill.season-pill-top {
  border-color: rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
}

/* ============================================================================
   NAVIGATION TABS
   ============================================================================ */
.main-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(11, 17, 34, 0.78);
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
}

.nav-tab-btn {
  position: relative;
  background: rgba(30, 41, 59, 0.55);
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(51, 65, 85, 0.7);
}

.nav-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(59, 130, 246, 0.28));
  border-color: var(--cyan-bright);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.nav-badge {
  background: var(--rose);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
}

/* ============================================================================
   SCREEN PANELS
   ============================================================================ */
.screens-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px 36px;
}

.screen-panel {
  display: none;
  max-width: 1360px;
  margin: 0 auto;
  animation: fadeIn 0.22s ease;
}

.screen-panel.active {
  display: block;
}

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

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-header-row h2, .section-header-row h3 {
  font-size: 1.2rem;
  color: #f8fafc;
}

/* ============================================================================
   ARENAS CAROUSEL & LOBBY BOTTOM GRID
   ============================================================================ */
.arenas-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.arena-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--arena-border, var(--border-glass));
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.arena-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.22);
}

.arena-card.locked {
  opacity: 0.72;
}

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

.arena-tier-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.danger-badge {
  background: rgba(244, 63, 94, 0.25);
  color: #fda4af;
}

.arena-physics-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan-bright);
  background: rgba(6, 182, 212, 0.15);
  padding: 3px 9px;
  border-radius: 99px;
}

.arena-flag-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arena-flag {
  font-size: 2.1rem;
}

.arena-rule-sub {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
}

.arena-phys-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.arena-stakes-box {
  background: rgba(9, 13, 25, 0.75);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
}

.stake-row {
  display: flex;
  justify-content: space-between;
}

.prize-val {
  color: var(--gold);
  font-size: 0.95rem;
}

.salary-row {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.arena-boot-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #cbd5e1;
}

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

.lobby-bottom-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}

@media (max-width: 980px) {
  .lobby-bottom-grid {
    grid-template-columns: 1fr;
  }
}

.glass-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.pack-slots-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.pack-slot {
  background: rgba(9, 14, 28, 0.75);
  border: 1.5px dashed rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.pack-slot.filled {
  border-style: solid;
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.14), rgba(15, 23, 42, 0.9));
  cursor: pointer;
}

.pack-slot-badge {
  background: var(--emerald);
  color: #052e16;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 99px;
}

.pack-slot-icon {
  font-size: 1.8rem;
}

.btn-mini-open {
  background: var(--gold);
  color: #0f172a;
  border: none;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* ============================================================================
   CHALLENGES, TEAMS, FORMATIONS, MODES & MINI-GAMES
   ============================================================================ */
.challenge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(9, 14, 28, 0.65);
  border-radius: 12px;
  margin-top: 8px;
  border: 1px solid var(--border-glass);
}

.challenge-bar-wrap {
  width: 180px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  margin: 5px 0 3px;
  overflow: hidden;
}

.challenge-bar-fill {
  height: 100%;
  background: var(--cyan-bright);
}

.stage-pill {
  background: rgba(56, 189, 248, 0.18);
  color: var(--cyan-bright);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  margin-right: 6px;
}

.modes-grid, .teams-grid, .formations-grid, .gg-levels-grid, .agents-grid, .boots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.mode-feature-card, .team-card, .formation-card, .gg-level-card, .agent-card, .minigame-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-card.equipped, .formation-card.equipped, .agent-card.equipped, .cosmetic-pill-card.equipped {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

.team-disc-showcase {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 5px solid #e2e8f0;
  margin: 4px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.attr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  margin: 4px 0;
}

.attr-pips {
  display: flex;
  gap: 4px;
}

.stat-pip {
  width: 14px;
  height: 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.mini-pitch-diagram {
  position: relative;
  height: 92px;
  background: linear-gradient(90deg, #14532d 50%, #166534 50%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  overflow: hidden;
}

.mini-pitch-Dot, .mini-pitch-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan-bright);
  border: 2px solid #ffffff;
  transform: translate(-50%, -50%);
}

/* ============================================================================
   MINI-GAMES (WHEEL, SCRATCHER, PACKS) & GALAXY PASS
   ============================================================================ */
.minigames-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.minigame-panel.full-span {
  grid-column: 1 / -1;
}

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

.wheel-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  font-size: 1.5rem;
  color: var(--gold);
  z-index: 2;
  text-shadow: 0 2px 6px #000;
}

.scratch-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0;
}

.scratch-tile {
  height: 64px;
  background: linear-gradient(135deg, #334155, #1e293b);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

.scratch-tile.match-win {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.35), rgba(16, 185, 129, 0.35));
  border-color: var(--gold);
  color: var(--gold);
}

.packs-showcase-banner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 920px) {
  .packs-showcase-banner {
    grid-template-columns: 1fr;
  }
}

.pack-art-img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-glass);
}

.packs-buy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.pack-shop-card {
  background: rgba(9, 14, 28, 0.8);
  border: 2px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pack-shop-card ul {
  list-style: none;
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.galaxy-pass-banner {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.65), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.pass-horizontal-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.pass-tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pass-tier-card.reached {
  border-color: var(--cyan-bright);
}

.pass-reward-box {
  background: rgba(9, 14, 28, 0.75);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}

/* ============================================================================
   ACTIVE MATCH VIEW & SCOREBOARD HUD
   ============================================================================ */
#match-view {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  flex-direction: column;
  background: radial-gradient(circle at 50% 50%, rgba(11, 19, 38, 0.92), rgba(4, 7, 16, 0.98));
}

#match-view.active {
  display: flex;
}

.match-top-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(9, 14, 28, 0.92);
  border-bottom: 1px solid var(--border-glass);
  gap: 16px;
}

.match-player-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.55);
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.match-player-card.active-turn {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

.score-center-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.score-digits {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.95);
  padding: 2px 22px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  letter-spacing: 0.08em;
}

.turn-timer-bar {
  width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

#match-turn-timer-fill {
  height: 100%;
  width: 100%;
  background: var(--cyan-bright);
  transition: width 0.1s linear;
}

.pitch-stage-container {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#pitch-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#pitch-canvas:active {
  cursor: grabbing;
}

.match-bottom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  background: rgba(9, 14, 28, 0.92);
  border-top: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 12px;
}

.emotes-strip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.emote-btn {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  font-size: 1.15rem;
  padding: 4px 9px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.emote-btn:hover {
  transform: scale(1.18);
}

.emote-bubble {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: #ffffff;
  color: #0f172a;
  font-size: 1.5rem;
  padding: 4px 12px;
  border-radius: 99px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 20;
}

.emote-bubble.pop {
  transform: translateX(-50%) scale(1);
}

/* Goal Banner Overlay */
#goal-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(6, 9, 19, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 30;
}

#goal-banner-overlay.show {
  opacity: 1;
}

.goal-banner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 4.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #facc15, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
  letter-spacing: 0.08em;
}

/* ============================================================================
   BUTTONS, MODALS, LEADERBOARDS & TOASTS
   ============================================================================ */
.btn-primary, .btn-gold, .btn-secondary, .btn-danger-glow, .btn-equipped, .btn-disabled, .btn-claim-sm {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.12);
}

.btn-gold {
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #0f172a;
}

.btn-secondary {
  background: rgba(51, 65, 85, 0.85);
  color: #f8fafc;
  border: 1px solid var(--border-glass);
}

.btn-secondary.active {
  background: var(--cyan);
  color: #060913;
}

.btn-danger-glow {
  background: linear-gradient(135deg, #f43f5e, #ea580c);
  color: #fff;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.4);
}

.btn-equipped {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid #10b981;
}

.btn-disabled {
  background: rgba(30, 41, 59, 0.6);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.78rem;
}

.btn-claim-sm {
  background: var(--emerald);
  color: #052e16;
  padding: 6px 12px;
  font-size: 0.76rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.82);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: #0f172a;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 22px;
  max-width: 560px;
  width: 100%;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.mm-versus-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 22px 0;
}

.mm-disc-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 8px;
}

.mm-pot-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
}

.result-score-pill {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 10px 0;
  color: var(--cyan-bright);
}

.result-breakdown {
  background: rgba(6, 9, 19, 0.65);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.rb-row {
  display: flex;
  justify-content: space-between;
}

.modal-btn-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.pack-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.pack-reward-card {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prc-icon {
  font-size: 1.8rem;
}

/* Leaderboards, Friends & Profile helpers */
.cosmetics-two-col, .friends-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 820px) {
  .cosmetics-two-col, .friends-two-col {
    grid-template-columns: 1fr;
  }
}

.cosmetic-pill-card, .friend-card, .gift-item, .champ-item {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.swatch-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  flex-shrink: 0;
}

.leaderboard-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.lb-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.lb-trophy-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

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

.lb-table th, .lb-table td, .odds-table th, .odds-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-table tr.me-row {
  background: rgba(6, 182, 212, 0.16);
}

.profile-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.profile-avatar-big {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.profile-stats-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(9, 14, 28, 0.8);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.boot-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.boot-badge-card.locked {
  opacity: 0.45;
}

.boot-icon {
  font-size: 1.9rem;
}

.add-friend-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.add-friend-bar input {
  flex: 1;
  background: rgba(9, 14, 28, 0.9);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
}

#toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border-left: 4px solid var(--cyan-bright);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
  transition: opacity 0.3s ease;
}

.toast-gold {
  border-left-color: var(--gold);
}

.toast-error {
  border-left-color: var(--rose);
}

.toast.fade-out {
  opacity: 0;
}

.gold-text {
  color: var(--gold);
}
