/* ==========================================================================
   NOVA APEX DESIGN SYSTEM - MAIN APPLICATION STYLESHEET
   Awwwards-Tier Cosmic Holographic Glassmorphism • Double-Bezel Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & Global Foundations
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-deep-void);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Guardrail: Universal SVG size constraint */
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   2. Cosmic Ambient Mesh Background
   -------------------------------------------------------------------------- */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  will-change: transform;
}

.orb-primary {
  top: -10%;
  left: 15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(63, 214, 214, 0.12) 0%, rgba(10, 10, 10, 0) 70%);
  animation: ambientDrift1 18s ease-in-out infinite;
  opacity: 0.25;
}

.orb-secondary {
  bottom: -15%;
  left: 5%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, rgba(10, 10, 10, 0) 70%);
  animation: ambientDrift2 24s ease-in-out infinite;
  opacity: 0.2;
}

.orb-gold {
  top: 25%;
  right: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(255, 209, 0, 0.14) 0%, rgba(10, 10, 10, 0) 70%);
  animation: ambientDrift1 22s ease-in-out reverse infinite;
  opacity: 0.2;
}

.app-viewport {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   3. Floating Island Navigation Bar
   -------------------------------------------------------------------------- */
.navbar-wrapper {
  position: sticky;
  top: 1.25rem;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
  animation: slideDownIsland 0.6s var(--ease-spring) both;
}

.nav-island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: 1380px;
  padding: 0.65rem 1.25rem;
  background: var(--bg-nav-island);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: var(--border-glass-subtle);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-badge {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(63, 214, 214, 0.4);
  border-radius: var(--radius-sm);
  color: var(--tier-cyan);
  box-shadow: 0 0 16px rgba(63, 214, 214, 0.2);
  flex-shrink: 0;
}

.brand-icon {
  width: 22px;
  height: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-pure-white);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--tier-cyan);
  text-transform: uppercase;
}

/* Period Switcher */
.period-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(5, 8, 24, 0.7);
  padding: 0.3rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.period-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.period-pill:hover {
  color: var(--text-pure-white);
  background: rgba(255, 255, 255, 0.05);
}

.period-pill.active {
  color: var(--brand-black, #0A0A0A);
  background: var(--brand-cyan, #3FD6D6);
  border: 1px solid var(--brand-cyan, #3FD6D6);
  box-shadow: 0 0 14px rgba(63, 214, 214, 0.35);
  font-weight: 700;
}

/* Nav Action CTAs */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-island-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--brand-cyan, #3FD6D6);
  color: var(--brand-black, #0A0A0A);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.5rem 0.45rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(63, 214, 214, 0.35);
  transition: all var(--transition-normal);
}

.btn-island-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 24px rgba(63, 214, 214, 0.55);
  filter: brightness(1.06);
}

.btn-island-primary:active {
  transform: scale(0.98);
}

.btn-icon-wrapper {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.btn-icon-wrapper svg {
  width: 14px;
  height: 14px;
}

.btn-island-primary:hover .btn-icon-wrapper {
  transform: rotate(90deg);
}

.btn-island-secondary {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-island-secondary svg {
  width: 18px;
  height: 18px;
}

.btn-island-secondary:hover {
  background: rgba(0, 238, 255, 0.15);
  border-color: rgba(0, 238, 255, 0.4);
  color: var(--tier-cyan);
}

.btn-island-secondary.tv-mode-btn {
  width: auto;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--tier-cyan);
  border: 1px solid rgba(0, 238, 255, 0.35);
  background: rgba(0, 238, 255, 0.1);
  box-shadow: 0 0 14px rgba(0, 238, 255, 0.2);
}

.btn-island-secondary.btn-reset-cycle:hover {
  background: rgba(247, 152, 36, 0.2);
  border-color: rgba(247, 152, 36, 0.6);
  color: var(--tier-bronze);
  box-shadow: 0 0 16px rgba(247, 152, 36, 0.35);
  transform: translateY(-1px);
}

.btn-island-secondary.btn-tv-cycle:hover {
  background: rgba(0, 238, 255, 0.2);
  border-color: rgba(0, 238, 255, 0.6);
  color: var(--tier-cyan);
  box-shadow: 0 0 16px rgba(0, 238, 255, 0.35);
  transform: translateY(-1px);
}

.btn-island-secondary.btn-admin-link:hover {
  background: rgba(255, 209, 0, 0.2);
  border-color: rgba(255, 209, 0, 0.6);
  color: var(--tier-gold);
  box-shadow: 0 0 16px rgba(255, 209, 0, 0.35);
  transform: translateY(-1px);
}


/* --------------------------------------------------------------------------
   4. Arena Main Grid Layout
   -------------------------------------------------------------------------- */
.arena-container {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 2rem;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  align-items: start;
}

/* --------------------------------------------------------------------------
   5. Holographic 3D Podium Showcase (Left Column)
   -------------------------------------------------------------------------- */
.podium-showcase {
  background: linear-gradient(180deg, rgba(14, 20, 52, 0.75) 0%, rgba(8, 12, 34, 0.95) 100%);
  border: var(--border-glass-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.podium-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 238, 255, 0.4), rgba(255, 209, 0, 0.5), transparent);
}

.showcase-header {
  text-align: center;
  margin-bottom: 2rem;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  background: rgba(0, 238, 255, 0.1);
  border: 1px solid rgba(0, 238, 255, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--tier-cyan);
  margin-bottom: 0.5rem;
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald-green);
  box-shadow: 0 0 8px var(--accent-emerald-green);
  animation: pulseLive 2s infinite;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-pure-white);
  line-height: 1.15;
}

.showcase-description {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* 3D Stage & Holographic Teleportation Floor */
.podium-stage {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  perspective: 1000px;
  padding-bottom: 1rem;
}

.hologram-ground {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateX(68deg);
  transform-style: preserve-3d;
}

.ground-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  pointer-events: none;
}

.ring-outer {
  width: 440px;
  height: 440px;
  border-width: 2px;
  border-color: rgba(0, 238, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 238, 255, 0.2), inset 0 0 20px rgba(0, 238, 255, 0.15);
}

.ring-mid {
  width: 310px;
  height: 310px;
  border-width: 1px;
  border-color: rgba(255, 209, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 209, 0, 0.2);
}

.ring-core {
  width: 180px;
  height: 180px;
  border-width: 2px;
  border-color: rgba(0, 238, 255, 0.45);
  box-shadow: 0 0 24px rgba(0, 238, 255, 0.35);
}

/* Pedestals Arrangement */
.pedestals-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
}

.shield-pedestal {
  flex: 1;
  max-width: 155px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform var(--transition-normal);
}

.shield-pedestal:hover {
  transform: translateY(-6px);
}

.shield-pedestal.rank-1 {
  order: 2;
  z-index: 3;
  margin-bottom: 25px;
}

.shield-pedestal.rank-2 {
  order: 1;
  z-index: 2;
  margin-bottom: 0px;
}

.shield-pedestal.rank-3 {
  order: 3;
  z-index: 1;
  margin-bottom: 0px;
}

.shield-body {
  width: 100%;
  padding: 1.6rem 0.85rem 1.45rem;
  border-radius: 20px 20px 26px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.shield-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  pointer-events: none;
}

.rank-1 .shield-body {
  background: linear-gradient(180deg, rgba(28, 22, 10, 0.96) 0%, #121212 75%, rgba(35, 26, 10, 0.98) 100%);
  border: 2px solid var(--tier-gold);
  border-bottom: 3px solid #ffe66d;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.8), 0 0 32px rgba(255, 209, 0, 0.25), inset 0 2px 10px rgba(255, 209, 0, 0.3), inset 0 -4px 14px rgba(255, 209, 0, 0.18);
  min-height: 295px;
}

.rank-2 .shield-body {
  background: linear-gradient(180deg, rgba(10, 26, 28, 0.96) 0%, #121212 75%, rgba(10, 24, 26, 0.98) 100%);
  border: 2px solid var(--tier-cyan);
  border-bottom: 3px solid #6ee7e7;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75), 0 0 26px rgba(63, 214, 214, 0.22), inset 0 2px 8px rgba(63, 214, 214, 0.28), inset 0 -4px 12px rgba(63, 214, 214, 0.16);
  min-height: 260px;
}

.rank-3 .shield-body {
  background: linear-gradient(180deg, rgba(28, 16, 10, 0.96) 0%, #121212 75%, rgba(32, 18, 10, 0.98) 100%);
  border: 2px solid var(--tier-bronze);
  border-bottom: 3px solid #ffb066;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75), 0 0 26px rgba(247, 152, 36, 0.2), inset 0 2px 8px rgba(247, 152, 36, 0.25), inset 0 -4px 12px rgba(247, 152, 36, 0.15);
  min-height: 245px;
}

/* Floating levitation aura disc beneath each pedestal card */
.shield-pedestal::after {
  content: '';
  width: 75%;
  height: 12px;
  border-radius: 50%;
  margin-top: 10px;
  transition: all var(--transition-normal);
  pointer-events: none;
  flex-shrink: 0;
}

.shield-pedestal.rank-1::after {
  background: radial-gradient(ellipse at center, rgba(255, 209, 0, 0.65) 0%, rgba(255, 209, 0, 0.2) 50%, transparent 75%);
  filter: blur(4px);
  box-shadow: 0 0 22px rgba(255, 209, 0, 0.45);
}

.shield-pedestal.rank-2::after {
  background: radial-gradient(ellipse at center, rgba(0, 238, 255, 0.55) 0%, rgba(0, 238, 255, 0.18) 50%, transparent 75%);
  filter: blur(4px);
  box-shadow: 0 0 18px rgba(0, 238, 255, 0.4);
}

.shield-pedestal.rank-3::after {
  background: radial-gradient(ellipse at center, rgba(247, 152, 36, 0.55) 0%, rgba(247, 152, 36, 0.18) 50%, transparent 75%);
  filter: blur(4px);
  box-shadow: 0 0 18px rgba(247, 152, 36, 0.4);
}

.shield-crest {
  position: absolute;
  top: -13px;
  width: 24px;
  height: 24px;
  transform: rotate(45deg);
  border-radius: 4px;
}

.rank-1 .shield-crest {
  background: linear-gradient(135deg, #ffd100, #ff8800);
  border: 1px solid #fff;
  box-shadow: 0 0 16px rgba(255, 209, 0, 0.8);
}

.rank-2 .shield-crest {
  background: linear-gradient(135deg, #00eeff, #006edb);
  border: 1px solid #fff;
  box-shadow: 0 0 14px rgba(0, 238, 255, 0.7);
}

.rank-3 .shield-crest {
  background: linear-gradient(135deg, #f79824, #9c4302);
  border: 1px solid #fff;
  box-shadow: 0 0 14px rgba(247, 152, 36, 0.7);
}

.shield-avatar-wrap {
  position: relative;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}

.podium-crown {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podium-crown-img {
  width: 82px;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.95)) drop-shadow(0 0 26px rgba(255, 200, 0, 0.6));
  transition: transform 0.3s ease;
}

/* Ocultar a crista losango do rank 1 para a coroa ser o ápice exclusivo da forma */
.shield-pedestal.rank-1 .shield-crest {
  display: none;
}

.shield-avatar {
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.rank-1 .shield-avatar {
  width: 74px;
  height: 74px;
  border: 2px solid var(--tier-gold);
  box-shadow: 0 0 20px rgba(255, 209, 0, 0.4);
}

.rank-2 .shield-avatar {
  width: 62px;
  height: 62px;
  border: 2px solid var(--tier-cyan);
  box-shadow: 0 0 16px rgba(0, 238, 255, 0.35);
}

.rank-3 .shield-avatar {
  width: 58px;
  height: 58px;
  border: 2px solid var(--tier-bronze);
  box-shadow: 0 0 14px rgba(247, 152, 36, 0.35);
}

.shield-rank-badge {
  position: absolute;
  bottom: -4px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.rank-1 .shield-rank-badge {
  background: linear-gradient(135deg, #ffd100, #ffaa00);
}

.rank-2 .shield-rank-badge {
  background: linear-gradient(135deg, #00eeff, #a5f3fc);
}

.rank-3 .shield-rank-badge {
  background: linear-gradient(135deg, #f79824, #fed7aa);
}

.shield-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-pure-white);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.shield-sales {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.rank-1 .shield-sales {
  color: var(--tier-gold);
  text-shadow: 0 0 14px rgba(255, 209, 0, 0.4);
}

.rank-2 .shield-sales {
  color: var(--tier-cyan);
  text-shadow: 0 0 12px rgba(0, 238, 255, 0.35);
}

.rank-3 .shield-sales {
  color: var(--tier-bronze);
  text-shadow: 0 0 12px rgba(247, 152, 36, 0.35);
}

.shield-pct-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.rank-1 .shield-pct-pill {
  background: rgba(255, 209, 0, 0.15);
  color: var(--tier-gold);
  border: 1px solid rgba(255, 209, 0, 0.3);
}

.rank-2 .shield-pct-pill {
  background: rgba(0, 238, 255, 0.15);
  color: var(--tier-cyan);
  border: 1px solid rgba(0, 238, 255, 0.3);
}

.rank-3 .shield-pct-pill {
  background: rgba(247, 152, 36, 0.15);
  color: var(--tier-bronze);
  border: 1px solid rgba(247, 152, 36, 0.3);
}

.shield-quick-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-pure-white);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.shield-quick-btn:hover {
  background: rgba(0, 238, 255, 0.2);
  border-color: rgba(0, 238, 255, 0.5);
  color: var(--tier-cyan);
}

/* --------------------------------------------------------------------------
   6. Right Column: Team Goal Master Card & Leaderboard Feed (Passo 3 Core)
   -------------------------------------------------------------------------- */
.leaderboard-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Double-Bezel Team Goal Master Card */
.team-goal-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: var(--border-bezel-outer);
  border-radius: var(--radius-xl);
  padding: 0.4rem;
  box-shadow: var(--shadow-ambient);
}

.team-goal-card {
  background: linear-gradient(180deg, rgba(15, 22, 56, 0.9) 0%, rgba(9, 13, 36, 0.98) 100%);
  border: var(--border-glass-subtle);
  border-radius: calc(var(--radius-xl) - 0.4rem);
  padding: 1.6rem 1.85rem;
  position: relative;
  overflow: hidden;
}

.team-goal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 238, 255, 0.35), transparent);
}

.goal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.goal-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--tier-cyan);
  text-transform: uppercase;
}

.goal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-pure-white);
  line-height: 1.2;
}

.goal-percent-badge {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--tier-gold);
  background: rgba(255, 209, 0, 0.12);
  border: 1px solid rgba(255, 209, 0, 0.35);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 16px rgba(255, 209, 0, 0.25);
  font-variant-numeric: tabular-nums;
}

.goal-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #161616;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.25rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-pure-white);
  font-variant-numeric: tabular-nums;
}

.text-accent-cyan {
  color: var(--tier-cyan);
  text-shadow: 0 0 12px rgba(63, 214, 214, 0.35);
}

.text-accent-gold {
  color: var(--tier-gold);
  text-shadow: 0 0 12px rgba(255, 209, 0, 0.3);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
}

/* Kinetic Bioluminescent Progress Bar */
.goal-progress-track {
  width: 100%;
  height: 14px;
  background: #111111;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px;
  position: relative;
  overflow: hidden;
}

.goal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ab3b3 0%, var(--brand-cyan, #3FD6D6) 70%, #6ee7e7 100%);
  border-radius: var(--radius-pill);
  position: relative;
  transition: width 1.2s var(--ease-spring);
  box-shadow: 0 0 18px rgba(63, 214, 214, 0.45);
}

.progress-glow-tip {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
  background: #ffffff;
  filter: blur(2px);
  border-radius: var(--radius-pill);
}

/* List Controls (Search & Member Count) */
.list-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.list-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.list-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-pure-white);
}

.member-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tier-cyan);
  background: rgba(0, 238, 255, 0.1);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 238, 255, 0.25);
}

.search-box {
  position: relative;
  width: 250px;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  color: var(--text-pure-white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 238, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 238, 255, 0.25);
}

/* Members Stack: Modern Leaderboard Cards */
.members-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.members-stack::-webkit-scrollbar {
  width: 5px;
}

.members-stack::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-pill);
}

.members-stack::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
}

/* Individual Seller Card (Double-Bezel & Haptic Motion) */
.member-card-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.member-card-row:hover {
  background: #161616;
  border-color: rgba(63, 214, 214, 0.35);
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.member-rank-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-rank-num.rank-gold {
  background: linear-gradient(135deg, #ffd100, #ff8800);
  color: #000;
  box-shadow: 0 0 12px rgba(255, 209, 0, 0.5);
}

.member-rank-num.rank-cyan {
  background: linear-gradient(135deg, #3FD6D6, #6ee7e7);
  color: #000;
  box-shadow: 0 0 10px rgba(63, 214, 214, 0.5);
}

.member-rank-num.rank-bronze {
  background: linear-gradient(135deg, #f79824, #9c4302);
  color: #000;
  box-shadow: 0 0 10px rgba(247, 152, 36, 0.5);
}

.member-rank-num.rank-standard {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.member-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.member-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.member-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.member-name-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.member-name-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-pure-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-role-badge {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 600;
}

.member-progress-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.member-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.member-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ab3b3, var(--brand-cyan, #3FD6D6));
  border-radius: var(--radius-pill);
}

.member-progress-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.member-sales-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  min-width: 120px;
}

.member-sales-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-pure-white);
  font-variant-numeric: tabular-nums;
}

.member-sales-diff {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Action Buttons */
.member-actions-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.btn-member-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  padding: 0.38rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-member-action.add {
  background: rgba(63, 214, 214, 0.15);
  border: 1px solid rgba(63, 214, 214, 0.4);
  color: var(--brand-cyan, #3FD6D6);
}

.btn-member-action.add:hover {
  background: rgba(63, 214, 214, 0.3);
  color: #fff;
  transform: scale(1.03);
}

.btn-member-action.sub {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.btn-member-action.sub:hover {
  background: rgba(255, 51, 75, 0.15);
  border-color: rgba(255, 51, 75, 0.35);
  color: #ff6b7d;
}

/* --------------------------------------------------------------------------
   7. Modals: Overlay & Dialogs
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  overflow-y: auto; /* Permite rolar suavemente caso a tela do usuário seja pequena */
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  display: flex !important;
  opacity: 1;
}

.modal-bezel-outer {
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-bezel-outer);
  border-radius: var(--radius-xl);
  padding: 0.45rem;
  width: 100%;
  max-width: 560px;
  margin: auto; /* Garante centralização vertical perfeita com suporte a scroll sem cortar topo ou base */
  box-shadow: var(--shadow-modal);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-bezel-outer {
  transform: scale(1);
}

.modal-inner-core {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius-xl) - 0.45rem);
  padding: 1.4rem 1.6rem;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.modal-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--tier-gold);
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-pure-white);
  margin-top: 0.2rem;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-pure-white);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 520px) {
  .modal-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-group input,
.form-group select {
  width: 100%;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  color: var(--text-pure-white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.form-group select option {
  background: #161616;
  color: #fff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  background: #1a1a1a;
  border-color: var(--brand-cyan, #3FD6D6);
  box-shadow: 0 0 0 3px rgba(63, 214, 214, 0.18);
}

/* Currency input prefix & real-time mask styling */
.currency-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.currency-prefix {
  position: absolute;
  left: 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--tier-cyan);
  pointer-events: none;
  user-select: none;
}

.currency-input-wrap input {
  padding-left: 2.85rem !important;
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.form-helper {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 0.2rem;
}

.form-error-msg {
  font-size: 0.75rem;
  color: #ff4d62;
  font-weight: 600;
  margin-top: 0.25rem;
  display: none;
}

.modal-eyebrow.red {
  color: #ff4d62;
}

.btn-submit-action.danger {
  background: linear-gradient(135deg, #d32f2f, #9a0007);
  box-shadow: 0 4px 18px rgba(211, 47, 47, 0.45);
}

.btn-submit-action.danger:hover {
  background: linear-gradient(135deg, #e53935, #b71c1c);
  box-shadow: 0 6px 24px rgba(211, 47, 47, 0.65);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cancel:hover {
  color: var(--text-pure-white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-submit-action {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--brand-cyan, #3FD6D6);
  color: var(--brand-black, #0A0A0A);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.65rem 0.55rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(63, 214, 214, 0.35);
  transition: all var(--transition-normal);
}

.btn-submit-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 24px rgba(63, 214, 214, 0.55);
}



/* --------------------------------------------------------------------------
   8. Toast Notification System
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(14, 22, 56, 0.95);
  border: 1px solid rgba(0, 238, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 238, 255, 0.3);
  backdrop-filter: blur(12px);
  color: var(--text-pure-white);
  font-size: 0.85rem;
  animation: fadeInScaleUp 0.3s var(--ease-spring) both;
}

.toast-message.gold {
  border-color: rgba(255, 209, 0, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 209, 0, 0.35);
}

/* --------------------------------------------------------------------------
   8.1 Celebration Canvas Layer
   -------------------------------------------------------------------------- */
.celebration-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1500;
}

/* --------------------------------------------------------------------------
   8.2 Modo Exibição / TV Kiosk (Recepção) Styles
   -------------------------------------------------------------------------- */
.display-mode-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-deep-void);
  z-index: 2000;
  overflow: hidden;
  flex-direction: column;
}

.display-mode-overlay.active,
.display-mode-overlay.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* TV HUD Control Bar */
.tv-hud-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.tv-hud-bar.hud-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.display-mode-overlay.hud-inactive {
  cursor: none;
}

.tv-hud-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tv-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent-emerald-green);
  background: rgba(0, 206, 103, 0.12);
  border: 1px solid rgba(0, 206, 103, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.tv-scene-badge {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-pure-white);
  letter-spacing: 0.05em;
}

/* Top Progress Timer Line */
.tv-timer-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.tv-timer-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2ab3b3, var(--brand-cyan, #3FD6D6), #ffd100);
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(63, 214, 214, 0.8);
}

.tv-hud-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tv-ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tv-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-pure-white);
}

.tv-ctrl-btn.exit {
  background: rgba(255, 51, 75, 0.15);
  border-color: rgba(255, 51, 75, 0.4);
  color: #ff6b7d;
}

.tv-ctrl-btn.exit:hover {
  background: rgba(255, 51, 75, 0.3);
  color: #fff;
}

/* TV Scenes Viewport */
.tv-scene {
  position: absolute;
  inset: 0;
  top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              top 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  padding: 1.25rem 3rem;
}

.tv-scene.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Quando o HUD sobe / se esconde, a cena se ajusta suavemente para top: 0
   e centraliza todas as informações no meio exato da tela sem espaço vazio superior */
.display-mode-overlay.hud-inactive .tv-scene {
  top: 0;
  padding: 2rem 3rem;
}

#tvSceneBrand {
  top: 0 !important;
  padding: 0 !important;
}

.tv-scene-inner {
  width: 100%;
  max-width: 1480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

/* Scene 1: TV Master Podium & Goal */
.tv-goal-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 1.25rem 2.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.tv-goal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-pure-white);
  line-height: 1.1;
  margin-top: 0.25rem;
}

.tv-goal-numbers {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.tv-metric {
  display: flex;
  flex-direction: column;
}

.tv-metric-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.tv-metric-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-pure-white);
  font-variant-numeric: tabular-nums;
}

.tv-metric-value.cyan {
  color: var(--brand-cyan, #3FD6D6);
  text-shadow: 0 0 16px rgba(63, 214, 214, 0.4);
}

.tv-metric-value.gold {
  color: var(--tier-gold);
  text-shadow: 0 0 16px rgba(255, 209, 0, 0.45);
}

.tv-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
}

.tv-podium-chamber {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  perspective: 1000px;
}

.tv-podium-chamber .pedestals-wrapper {
  gap: 2rem;
}

.tv-podium-chamber .shield-pedestal {
  max-width: 220px;
}

.tv-podium-chamber .shield-pedestal.rank-1 {
  margin-bottom: 35px;
}

.tv-podium-chamber .shield-body {
  padding: 2.2rem 1.25rem 2rem;
  border-radius: 26px 26px 32px 32px;
}

.tv-podium-chamber .rank-1 .shield-body {
  min-height: 380px;
}

.tv-podium-chamber .rank-2 .shield-body {
  min-height: 340px;
}

.tv-podium-chamber .rank-3 .shield-body {
  min-height: 320px;
}

.tv-podium-chamber .shield-pedestal::after {
  height: 18px;
  margin-top: 14px;
}

.tv-podium-chamber .podium-crown {
  top: -52px;
}

.tv-podium-chamber .podium-crown-img {
  width: 104px;
  filter: drop-shadow(0 0 18px rgba(255, 215, 0, 1)) drop-shadow(0 0 34px rgba(255, 230, 100, 0.7));
}

.tv-podium-chamber .shield-avatar {
  width: 90px !important;
  height: 90px !important;
}

.tv-podium-chamber .shield-name {
  font-size: 1.15rem;
}

.tv-podium-chamber .shield-sales {
  font-size: 1.45rem;
}

/* Scene 2: TV Roster Grid (Staggered Slide-in Right to Left) */
.tv-scene-inner.roster-view {
  align-items: center;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.tv-roster-header {
  text-align: center;
  margin-bottom: 0.75rem;
}

.tv-roster-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-pure-white);
  margin-top: 0.25rem;
}

.tv-roster-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.tv-roster-grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.25rem 0.5rem;
}

.tv-roster-grid::-webkit-scrollbar {
  width: 5px;
}

.tv-roster-grid::-webkit-scrollbar-track {
  background: transparent;
}

.tv-roster-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.tv-roster-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 1.15rem 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.tv-roster-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}

.tv-roster-card.rank-1::before { background: var(--tier-gold); box-shadow: 0 0 12px var(--tier-gold); }
.tv-roster-card.rank-2::before { background: var(--brand-cyan, #3FD6D6); box-shadow: 0 0 12px rgba(63, 214, 214, 0.6); }
.tv-roster-card.rank-3::before { background: var(--tier-bronze); box-shadow: 0 0 12px var(--tier-bronze); }
.tv-roster-card.rank-standard::before { background: rgba(255, 255, 255, 0.15); }

.tv-roster-card.rank-1 {
  border: 1px solid rgba(255, 209, 0, 0.45);
  background: linear-gradient(135deg, rgba(28, 24, 10, 0.96) 0%, #141414 100%);
  position: relative;
  z-index: 10;
}

.tv-roster-card.rank-1 .tv-card-rank {
  background: linear-gradient(135deg, #ffd100, #ff9d00);
  color: #030510;
  box-shadow: 0 0 18px rgba(255, 209, 0, 0.65);
}

.tv-avatar-crown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-champion-floating-crown {
  position: absolute;
  top: -18px;
  left: 50%;
  font-size: 1.65rem;
  line-height: 1;
  z-index: 15;
  pointer-events: none;
}

.tv-roster-card.rank-1 .tv-card-avatar {
  border: 2px solid var(--tier-gold);
  box-shadow: 0 0 16px rgba(255, 209, 0, 0.45);
}

.tv-card-rank {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tv-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.tv-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.tv-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-pure-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tv-card-role {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

.tv-card-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  width: 100%;
}

.tv-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ab3b3, var(--brand-cyan, #3FD6D6));
  border-radius: var(--radius-pill);
}

.tv-card-sales {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.tv-card-amount {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-pure-white);
  font-variant-numeric: tabular-nums;
}

.tv-card-pct {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-cyan, #3FD6D6);
}

/* Scene 3: D+ Ranking Brand Showcase on Full Background */
.tv-brand-backdrop {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url('../assets/Background.webp') center center / cover no-repeat;
  overflow: hidden;
}

.tv-brand-center-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1180px;
  padding: 2rem;
}

.tv-brand-logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 960px;
  width: 82%;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 35px rgba(63, 214, 214, 0.35));
}

.tv-brand-logo-img {
  width: 100%;
  height: auto;
  max-width: 780px;
  max-height: 430px;
  object-fit: contain;
  display: block;
}

/* Adaptação inteligente do Modo TV para telas de notebook ou alturas verticais reduzidas (< 820px) */
@media (max-height: 820px) {
  .tv-scene {
    padding: 0.75rem 2rem;
  }
  .display-mode-overlay.hud-inactive .tv-scene {
    padding: 1.25rem 2rem;
  }
  .tv-scene-inner {
    gap: 1.15rem;
  }
  .tv-goal-banner {
    padding: 0.85rem 1.8rem;
  }
  .tv-goal-title {
    font-size: 1.35rem;
  }
  .tv-metric-value {
    font-size: 1.35rem;
  }
  .tv-divider {
    height: 28px;
  }
  .tv-podium-chamber {
    min-height: 390px;
  }
  .tv-podium-chamber .pedestals-wrapper {
    gap: 1.25rem;
  }
  .tv-podium-chamber .shield-pedestal {
    max-width: 190px;
  }
  .tv-podium-chamber .shield-body {
    padding: 1.6rem 1rem 1.4rem;
  }
  .tv-podium-chamber .rank-1 .shield-body {
    min-height: 310px;
  }
  .tv-podium-chamber .rank-2 .shield-body {
    min-height: 280px;
  }
  .tv-podium-chamber .rank-3 .shield-body {
    min-height: 260px;
  }
  .tv-podium-chamber .shield-avatar {
    width: 72px !important;
    height: 72px !important;
  }
  .tv-roster-title {
    font-size: 1.75rem;
  }
  .tv-roster-grid {
    gap: 0.85rem;
    max-width: 860px;
  }
  .tv-roster-card {
    padding: 0.75rem 1.25rem;
  }
  .tv-brand-logo-img {
    max-width: 600px;
    max-height: 330px;
  }
}


/* --------------------------------------------------------------------------
   9. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .arena-container {
    grid-template-columns: 1fr;
  }

  .podium-showcase {
    order: 1;
  }

  .leaderboard-feed {
    order: 2;
  }
}

@media (max-width: 768px) {
  .nav-island {
    flex-direction: column;
    border-radius: var(--radius-lg);
    gap: 0.85rem;
    padding: 1rem;
  }

  .period-switcher {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .arena-container {
    padding: 1rem;
  }

  .pedestals-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .shield-pedestal {
    width: 100%;
    max-width: 320px;
  }

  .shield-pedestal.rank-1 { order: 1; margin-bottom: 0; }
  .shield-pedestal.rank-2 { order: 2; }
  .shield-pedestal.rank-3 { order: 3; }

  .goal-metric-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .metric-divider {
    display: none;
  }

  .member-card-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .member-sales-block {
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   10. Avatar Upload & Live Picker Component
   -------------------------------------------------------------------------- */
.avatar-picker-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 0.6rem 0.85rem;
}

.avatar-preview-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--tier-cyan);
  box-shadow: 0 0 12px rgba(0, 238, 255, 0.35);
  flex-shrink: 0;
  background: #0d122b;
}

.avatar-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.btn-upload-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(0, 238, 255, 0.12);
  border: 1px solid rgba(0, 238, 255, 0.35);
  color: var(--tier-cyan);
  border-radius: var(--radius-pill);
  padding: 0.38rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  width: fit-content;
}

.btn-upload-file:hover {
  background: rgba(0, 238, 255, 0.25);
  box-shadow: 0 0 16px rgba(0, 238, 255, 0.35);
  color: #fff;
}

.avatar-or-text {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input-subtle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  color: var(--text-pure-white);
  outline: none;
  width: 100%;
}

.form-input-subtle:focus {
  border-color: var(--tier-cyan);
}

/* --------------------------------------------------------------------------
   14. Application Footer
   -------------------------------------------------------------------------- */
.app-footer {
  margin-top: 3.5rem;
  padding: 1.75rem 2rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(3, 5, 15, 0.4);
  backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-pure-white);
}

.footer-brand img,
.footer-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-bullet {
  color: rgba(255, 255, 255, 0.25);
}

.footer-highlight {
  color: var(--tier-cyan);
  font-weight: 600;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}



/* Suporte responsivo e adaptativo para Pódio com 2 corretores (Duo) ou 1 corretor (Solo) */
.pedestals-wrapper.podium-duo {
  gap: 1.5rem;
  max-width: 360px;
  margin: 0 auto;
}

.pedestals-wrapper.podium-duo .shield-pedestal {
  max-width: 165px;
}

.pedestals-wrapper.podium-duo .shield-pedestal.rank-1 {
  order: 2;
  margin-bottom: 20px;
}

.pedestals-wrapper.podium-duo .shield-pedestal.rank-2 {
  order: 1;
  margin-bottom: 0px;
}

.pedestals-wrapper.podium-solo {
  max-width: 200px;
  margin: 0 auto;
}

.pedestals-wrapper.podium-solo .shield-pedestal.rank-1 {
  order: 1;
  max-width: 180px;
  margin-bottom: 0px;
}

/* No Modo TV */
.tv-podium-chamber .pedestals-wrapper.podium-duo {
  gap: 3rem;
  max-width: 520px;
  margin: 0 auto;
}

.tv-podium-chamber .pedestals-wrapper.podium-duo .shield-pedestal {
  max-width: 240px;
}

.tv-podium-chamber .pedestals-wrapper.podium-solo {
  max-width: 280px;
  margin: 0 auto;
}

.tv-podium-chamber .pedestals-wrapper.podium-solo .shield-pedestal {
  max-width: 260px;
}
