/* ==========================================================================
   FALCTEC - ESTILOS ESPECÍFICOS DOS 3 MODOS DE VISUALIZAÇÃO (EXPANDIDO)
   ========================================================================== */

/* --------------------------------------------------------------------------
   MODO 1: EXECUTIVO / C-LEVEL
   -------------------------------------------------------------------------- */
.exec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.exec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  transition: all 0.25s ease;
}

.exec-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 10px 30px rgba(0, 136, 255, 0.15);
  transform: translateY(-2px);
}

.exec-card-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
  background: rgba(0, 136, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exec-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.exec-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.exec-highlight-box {
  background: #06080c;
  border-left: 3px solid var(--accent-green);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #e2e8f0;
  font-family: var(--font-mono);
}

.roi-banner {
  background: linear-gradient(135deg, #0e1524, #080d16);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.roi-content h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 8px;
}

.roi-content p {
  color: var(--text-muted);
  max-width: 600px;
}

.roi-badge-large {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-green);
  text-shadow: 0 0 20px var(--accent-green-glow);
}

/* Citações dos Titãs */
.titans-section {
  margin-top: 48px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
}

.section-title::before {
  content: "//";
  color: var(--accent-green);
}

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

.titan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.titan-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 20px;
  line-height: 1.6;
}

.titan-meta {
  border-top: 1px solid var(--border-steel);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.titan-author {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.titan-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   MODO 2: DEVS NERDS - TECH BATTLE RPG (STREET FIGHTER / SMASH BROS)
   -------------------------------------------------------------------------- */

/* Banner Cinematográfico com Imagem da Arena */
.arena-cinematic-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 170, 0, 0.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 170, 0, 0.2);
  margin-bottom: 36px;
  max-height: 480px;
}

.arena-banner-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) brightness(0.9);
  transition: transform 0.6s ease;
}

.arena-cinematic-banner:hover .arena-banner-img {
  transform: scale(1.02);
}

.arena-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 13, 0.95) 85%);
  padding: 40px 32px 24px;
}

.arena-title-badge {
  display: inline-block;
  background: var(--accent-amber);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.82rem;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.arena-hero-heading {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255, 170, 0, 0.6);
}

.arena-hero-sub {
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-top: 6px;
}

/* Roster de Lutadores com Retratos Reais */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.roster-card {
  background: #090c12;
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.roster-card:hover, .roster-card.active {
  border-color: var(--accent-amber);
  background: #14111c;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 170, 0, 0.3);
}

.roster-card.active::after {
  content: "SELECTED";
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--accent-amber);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.6rem;
  padding: 2px 4px;
  border-radius: 2px;
}

.roster-img-wrapper {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.roster-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.roster-card:hover .roster-mascot-img {
  transform: scale(1.08);
}

.roster-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}

.roster-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-cost {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-green);
  margin-top: 4px;
  font-weight: 700;
}

.roster-tier {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
}

.tier-s { background: rgba(255, 51, 85, 0.2); color: #ff3355; border: 1px solid #ff3355; }
.tier-a { background: rgba(0, 255, 136, 0.2); color: #00ff88; border: 1px solid #00ff88; }
.tier-b { background: rgba(0, 136, 255, 0.2); color: #0088ff; border: 1px solid #0088ff; }
.tier-c { background: rgba(255, 170, 0, 0.2); color: #ffaa00; border: 1px solid #ffaa00; }

/* Ficha Técnica Expandida do Lutador */
.fighter-detail-box {
  background: #0d121c;
  border: 2px solid var(--accent-amber);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.fighter-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.fighter-detail-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--accent-amber);
  box-shadow: 0 0 16px rgba(255, 170, 0, 0.4);
}

.btn-close-detail {
  background: transparent;
  border: 1px solid var(--border-steel);
  color: var(--text-muted);
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: all 0.2s;
}

.btn-close-detail:hover {
  background: rgba(255, 51, 85, 0.1);
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.fighter-stats-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.stat-bar-group {
  background: #06080d;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-steel);
}

.stat-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.fighter-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  margin-bottom: 16px;
}

.f-metric-card {
  background: #06080d;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid var(--border-steel);
}

.fighter-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 0.88rem;
}

.pro-box {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 12px 16px;
  border-radius: 4px;
  color: #e2e8f0;
}

.con-box {
  background: rgba(255, 51, 85, 0.05);
  border: 1px solid rgba(255, 51, 85, 0.2);
  padding: 12px 16px;
  border-radius: 4px;
  color: #e2e8f0;
}

/* Confrontos ROUNDS VS */
.battle-rounds-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.battle-card {
  background: #0a0d14;
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.battle-round-badge {
  position: absolute;
  top: 0;
  left: 30px;
  background: var(--accent-amber);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  letter-spacing: 1px;
}

.battle-round-title {
  font-size: 1.35rem;
  color: #fff;
  margin-top: 16px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.battle-art-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  max-height: 380px;
}

.battle-art-img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.battle-art-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.battle-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.fighter-side {
  background: #06080c;
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.fighter-side.winner {
  border-color: var(--accent-green);
  box-shadow: 0 0 24px var(--accent-green-glow);
  background: #091216;
}

.fighter-portrait-box {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-steel);
}

.fighter-side.winner .fighter-portrait-box {
  border-color: var(--accent-green);
  box-shadow: 0 0 16px var(--accent-green);
}

.fighter-face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ko-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transform: rotate(-10deg);
  background: rgba(0, 0, 0, 0.7);
  animation: koPulse 2s infinite;
}

@keyframes koPulse {
  0%, 100% { transform: rotate(-10deg) scale(1); }
  50% { transform: rotate(-10deg) scale(1.08); }
}

.vs-badge {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-red);
  text-shadow: 0 0 16px rgba(255, 51, 85, 0.8);
  text-align: center;
}

.battle-narrative {
  background: #040608;
  border-left: 4px solid var(--accent-amber);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.battle-impact {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent-green);
}

/* --------------------------------------------------------------------------
   MODO 3: TÉCNICO & COMPLETO (RANKINGS, TABELA 35 PROJETOS & GLOSSÁRIO)
   -------------------------------------------------------------------------- */
.tech-header-panel {
  background: #06090e;
  border: 1px solid var(--border-steel);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 40px;
}

.tech-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: #0c1017;
  border: 1px solid var(--border-steel);
  padding: 8px 14px;
  border-radius: 4px;
  color: var(--accent-green);
}

/* Abas dos 4 Rankings Oficiais */
.rankings-tab-container {
  background: #090c12;
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.rankings-tab-bar {
  display: flex;
  background: #05070a;
  border-bottom: 1px solid var(--border-steel);
  overflow-x: auto;
}

.rank-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 16px 22px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
}

.rank-tab-btn:hover {
  color: #fff;
}

.rank-tab-btn.active {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
  background: rgba(0, 255, 136, 0.04);
}

.rank-content-box {
  padding: 30px;
}

.ranking-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
}

.ranking-panel-text h4 {
  font-size: 1.4rem;
  color: #fff;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.ranking-panel-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.ranking-img-frame {
  background: #05070a;
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.ranking-display-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

/* Barra Seletora das 8 Tabelas Técnicas */
.table-switcher-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}

.table-switcher-bar::-webkit-scrollbar {
  height: 6px;
}

.table-switcher-bar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.table-switcher-bar::-webkit-scrollbar-thumb {
  background: var(--border-steel);
  border-radius: 4px;
}

.t-switch-btn {
  background: #090c12;
  border: 1px solid var(--border-steel);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.t-switch-btn:hover {
  color: #fff;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.04);
}

.t-switch-btn.active {
  background: var(--border-steel);
  color: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green-glow);
}

body.light-theme .t-switch-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

body.light-theme .t-switch-btn.active {
  background: #f1f5f9;
  color: var(--accent-green);
  border-color: var(--accent-green);
}

/* Tabela dos 35 Projetos */
.tech-table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  margin-bottom: 40px;
  -webkit-overflow-scrolling: touch;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-align: left;
}

.tech-table th {
  background: #06090e;
  color: var(--accent-cyan);
  padding: 14px 16px;
  border-bottom: 2px solid var(--border-steel);
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.tech-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-steel);
  color: #cbd5e1;
  white-space: nowrap;
}

.tech-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

/* Glossário Técnico & Dicionário FinOps */
.glossary-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gloss-filter-btn {
  background: #090c12;
  border: 1px solid var(--border-steel);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.gloss-filter-btn:hover {
  color: #fff;
  border-color: var(--accent-cyan);
}

.gloss-filter-btn.active {
  background: var(--border-steel);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

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

.glossary-card {
  background: #090c12;
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.2s;
}

.glossary-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.12);
  transform: translateY(-2px);
}

.glossary-cat-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 10px;
}

.glossary-term {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.glossary-short {
  font-size: 0.88rem;
  color: var(--accent-green);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}

.glossary-full {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Plot Twist Banner */
.plot-twist-banner {
  background: linear-gradient(135deg, #160d26 0%, #0a0d14 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 48px;
  position: relative;
}

.twist-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 900;
  color: #ff3355;
  background: rgba(255, 51, 85, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

/* Avatar no Modal e Hero */
.cv-avatar-box {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-green);
  box-shadow: 0 0 16px var(--accent-green-glow);
}

.cv-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.cv-avatar-led {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--accent-green);
  border: 2px solid #06080d;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

/* ------------------------------------------------------------------------
 * SUBVIEW TOGGLE (GRÁFICO INTERATIVO / TABELA / INFOGRÁFICO)
 * ------------------------------------------------------------------------ */
.rank-subview-toggle {
  display: flex;
  background: #090c12;
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
}

.rank-sub-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rank-sub-btn:hover {
  color: #fff;
}

.rank-sub-btn.active {
  background: var(--border-steel);
  color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

/* Header & Intro do Ranking */
.ranking-intro-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-steel);
}

.ranking-intro-header h4 {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 8px;
}

.ranking-intro-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 820px;
}

.ranking-champion-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid var(--accent-green);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 12px var(--accent-green-glow);
  white-space: nowrap;
}

/* ------------------------------------------------------------------------
 * GRÁFICO VISUAL INTERATIVO DE BARRAS (35 PROJETOS)
 * ------------------------------------------------------------------------ */
.rank-chart-box {
  background: #06090e;
  border: 1px solid var(--border-steel);
  border-radius: var(--radius-md);
  padding: 16px;
  max-height: 700px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.rank-chart-legend {
  display: grid;
  grid-template-columns: 280px 1fr 180px;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-steel);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rank-chart-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.rank-bar-row {
  display: grid;
  grid-template-columns: 280px 1fr 180px;
  gap: 16px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.rank-bar-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-cyan);
  transform: translateX(3px);
}

.rank-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rank-pos-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  min-width: 32px;
  text-align: center;
}

.rank-pos-gold {
  background: #eab308;
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.rank-pos-silver {
  background: #cbd5e1;
  color: #000;
  font-weight: 900;
}

.rank-pos-bronze {
  background: #d97706;
  color: #fff;
  font-weight: 900;
}

.rank-pos-norm {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.rank-bar-names {
  min-width: 0;
  overflow: hidden;
}

.rank-proj-name {
  font-size: 0.88rem;
  color: #fff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-lang-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  padding-left: 6px;
  white-space: nowrap;
}

.chart-sub-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-bar-track-wrap {
  width: 100%;
}

.rank-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
}

.rank-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rank-bar-values {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
  white-space: nowrap;
}

.rank-metric-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #fff;
}

.rank-delta-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.rank-delta-pill.is-base {
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent-green);
  border-color: rgba(0, 255, 136, 0.25);
}

.rank-table-pos {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}

.zoom-img-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--accent-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}

.zoom-img-btn:hover {
  background: var(--accent-cyan);
  color: #000;
}

/* ------------------------------------------------------------------------
 * INSIGHT CARD DAS 8 TABELAS & STICKY COLUMN
 * ------------------------------------------------------------------------ */
.table-insight-card {
  background: #090c12;
  border: 1px solid var(--border-steel);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.insight-stat-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.i-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-steel);
  color: var(--accent-cyan);
  padding: 3px 8px;
  border-radius: 4px;
}

.table-scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid var(--accent-green);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Coluna fixa no mobile para as tabelas técnicas */
.tech-table th:first-child,
.tech-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #06090e;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3);
}

/* ------------------------------------------------------------------------
 * REGRAS DO TEMA CLARO CORPORATIVO (LIGHT THEME OVERRIDES)
 * ------------------------------------------------------------------------ */
body.light-theme .rank-subview-toggle {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

body.light-theme .rank-sub-btn {
  color: #475569;
}

body.light-theme .rank-sub-btn:hover {
  color: #0f172a;
}

body.light-theme .rank-sub-btn.active {
  background: #ffffff;
  color: var(--accent-green);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

body.light-theme .rankings-tab-bar {
  background: #f1f5f9;
  border-bottom-color: #cbd5e1;
}

body.light-theme .rank-tab-btn {
  color: #475569;
}

body.light-theme .rank-tab-btn:hover {
  color: #0f172a;
}

body.light-theme .rank-tab-btn.active {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
  background: #ffffff;
}

body.light-theme .rank-content-box {
  background: #ffffff;
}

body.light-theme .ranking-intro-header {
  border-bottom-color: #e2e8f0;
}

body.light-theme .ranking-intro-header h4 {
  color: #0f172a;
}

body.light-theme .ranking-champion-badge {
  background: #ecfdf5;
  border-color: #059669;
  color: #059669;
}

body.light-theme .rank-chart-box {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light-theme .rank-chart-legend {
  border-bottom-color: #e2e8f0;
  color: #64748b;
}

body.light-theme .rank-bar-row {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.light-theme .rank-bar-row:hover {
  background: #f1f5f9;
  border-color: var(--accent-green);
}

body.light-theme .rank-proj-name {
  color: #0f172a;
}

body.light-theme .rank-metric-val {
  color: #0f172a;
}

body.light-theme .rank-bar-track {
  background: #e2e8f0;
}

body.light-theme .table-insight-card {
  background: #ffffff;
  border-color: #e2e8f0;
  border-left-color: #059669;
}

body.light-theme .i-tag {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0284c7;
}

body.light-theme .tech-table th:first-child,
body.light-theme .tech-table td:first-child {
  background: #ffffff;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.06);
}

body.light-theme .tech-header-panel {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light-theme .tech-header-panel h2 {
  color: #0f172a;
}

body.light-theme .tech-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

body.light-theme .glossary-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light-theme .glossary-term {
  color: #0f172a;
}

body.light-theme .gloss-filter-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

body.light-theme .gloss-filter-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

body.light-theme .plot-twist-banner {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: #c4b5fd;
}

body.light-theme .plot-twist-banner h3 {
  color: #1e1b4b;
}

body.light-theme .plot-twist-banner p {
  color: #334155;
}

body.light-theme .arch-card.legacy {
  background: #fff1f2;
  border-color: #fecdd3;
}

body.light-theme .arch-card.legacy h4 {
  color: #be123c;
}

body.light-theme .arch-card.modern {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

body.light-theme .arch-card.modern h4 {
  color: #15803d;
}

body.light-theme .arena-header-banner {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light-theme .arena-title {
  color: #0f172a;
}

body.light-theme .roster-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

body.light-theme .roster-name {
  color: #0f172a;
}

body.light-theme .matchup-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.light-theme .m-fighter-name {
  color: #0f172a;
}

body.light-theme .versus-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #e11d48;
}

body.light-theme .round-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

body.light-theme .round-title {
  color: #0f172a;
}

body.light-theme .round-banner {
  border-bottom-color: #e2e8f0;
}

body.light-theme .roi-banner {
  background: linear-gradient(135deg, #f0fdf4, #f8fafc);
  border-color: #bbf7d0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-theme .roi-content h3 {
  color: #0f172a;
}

body.light-theme .titan-quote {
  color: #334155;
}

body.light-theme .titan-author {
  color: #0f172a;
}

/* Responsividade Mobile */
@media (max-width: 900px) {
  .ranking-panel {
    grid-template-columns: 1fr;
  }
  .battle-matchup {
    grid-template-columns: 1fr;
  }
  .rank-chart-legend {
    display: none;
  }
  .rank-bar-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .rank-bar-track-wrap {
    grid-column: 1 / -1;
    order: 3;
    margin-top: 4px;
  }
  .rank-bar-values {
    order: 2;
  }
}
