
/* ==============================================================
   TEMA RUST HORIZON - PALETA EXTRAÍDA DO BANNER
   - Rust Orange / Terracota: #D7573B / #E8684A
   - Retro Sky Teal / Pátina: #6C978E / #82ADA4 / #37534E
   - Mountain Sand / Ocre:   #C48D66 / #DEAC86
   - Dark Umber / Carvão:     #13100F / #1A1513 / #221B19
   ============================================================== */

:root {
  --marca: #D7573B !important;
  --marca-hover: #E8684A !important;
  --marca-glow: rgba(215, 87, 59, 0.35) !important;
  
  --teal-horizon: #6C978E !important;
  --teal-horizon-hover: #82ADA4 !important;
  --teal-horizon-bg: rgba(108, 151, 142, 0.12) !important;
  --teal-horizon-border: rgba(108, 151, 142, 0.3) !important;

  --sand-horizon: #C48D66 !important;
  --sand-horizon-bg: rgba(196, 141, 102, 0.15) !important;

  --primary: #D7573B !important;
  --primary-foreground: #FFFFFF !important;
  --background: #13100F !important;
  --foreground: #EDE8E5 !important;
  --card: #1C1615 !important;
  --card-foreground: #EDE8E5 !important;
  --border: rgba(108, 151, 142, 0.22) !important;
  --text: rgba(255, 255, 255, 0.92) !important;
  --text-muted: rgba(255, 255, 255, 0.6) !important;
  --text-dim: rgba(255, 255, 255, 0.4) !important;
  --bg-alt: #11100f !important;
}

html, body {
  background-color: #13100F !important;
  color: #EDE8E5 !important;
  overflow-x: hidden !important;
  width: 100% !important;
}


/* ==============================================================
   AJUSTES DO CABEÇALHO E LOGO RUST HORIZON
   ============================================================== */
.site-header {
  background: rgba(19, 16, 15, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(108, 151, 142, 0.22) !important;
  min-height: 85px !important;
  width: 100% !important;
  position: relative !important;
  z-index: 50 !important;
}

.site-header-conteudo {
  min-height: 85px !important;
  padding: 14px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
}

.site-header-direita {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  margin-left: auto !important;
}

.site-header-marca,
.horizon-brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  gap: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease;
}

.site-header-marca:hover,
.horizon-brand-logo:hover {
  transform: scale(1.02);
}

.horizon-brand-logo .horizon-brand-img,
.horizon-brand-img {
  height: 30px !important;
  max-height: 32px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: none !important;
  transition: transform 0.25s ease !important;
}

.horizon-brand-logo:hover .horizon-brand-img,
.site-header-marca:hover .horizon-brand-img {
  filter: none !important;
  transform: scale(1.02) !important;
}

@media (max-width: 640px) {
  .site-header {
    min-height: 60px !important;
    height: 60px !important;
    max-height: 60px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(19, 16, 15, 0.98) !important;
  }
  .site-header-conteudo {
    min-height: 60px !important;
    height: 60px !important;
    max-height: 60px !important;
    padding: 0 16px !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  .site-header-direita {
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .horizon-brand-logo .horizon-brand-img,
  .horizon-brand-img {
    height: 22px !important;
    max-height: 24px !important;
    filter: none !important;
  }
}

/* Hero Section - Primeira Dobra Inteira (100% da tela / 100vh) */
.hero {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  height: calc(100vh - 85px) !important;
  min-height: calc(100vh - 85px) !important;
  height: calc(100dvh - 85px) !important;
  min-height: calc(100dvh - 85px) !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgba(108, 151, 142, 0.22) !important;
  background: #13100F !important;
  padding: 0 !important;
}

@media (max-width: 640px) {
  .hero {
    height: auto !important;
    min-height: calc(100dvh - 60px) !important;
    padding: 32px 0 44px 0 !important;
    overflow: visible !important;
  }
}

/* Otimizações Mobile de Alta Performance (Alívio de GPU e 60 FPS) */
@media (max-width: 768px) {
  .hero-fundo video.hero-midia,
  video.hero-midia {
    filter: none !important;
    -webkit-filter: none !important;
  }
  .hero-fundo::after {
    background-image: linear-gradient(180deg, rgba(19, 16, 15, 0.35) 0%, transparent 35%, rgba(19, 16, 15, 0.85) 100%) !important;
    background-size: auto !important;
  }
  .feed-faixa,
  .wipe-section,
  .ranking-secao {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
  }
}

.hero-fundo {
  position: absolute !important;
  inset: 0 !important;
  isolation: isolate !important;
  overflow: hidden !important;
}

/* Vídeo com alta nitidez e vivacidade */
.hero-fundo video.hero-midia,
video.hero-midia {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 0.98 !important;
  filter: contrast(1.1) saturate(1.16) brightness(1.04) !important;
  display: block !important;
}

/* Efeito de micro-trama tática + vinheta balanceada:
   Elimina artefatos de compressão e pixelização sem esconder o vídeo */
.hero-fundo::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: 
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.22) 0px, rgba(0, 0, 0, 0.22) 1px, transparent 1px, transparent 3px),
    radial-gradient(circle at center, transparent 45%, rgba(19, 16, 15, 0.38) 100%),
    linear-gradient(180deg, rgba(19, 16, 15, 0.22) 0%, transparent 25%, transparent 72%, rgba(19, 16, 15, 0.75) 100%) !important;
  background-size: 3px 3px, 100% 100%, 100% 100% !important;
  pointer-events: none !important;
}

.hero-ruido,
.hero-linhas {
  display: none !important;
}

.hero-conteudo {
  width: 100% !important;
  position: relative !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding-top: clamp(20px, 3.5vw, 48px) !important;
  padding-bottom: clamp(20px, 3.5vw, 48px) !important;
}

.hero-titulo {
  font-size: clamp(2.2rem, 5vw, 4.2rem) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  color: #EDE8E5 !important;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.8) !important;
  max-width: 1100px !important;
  margin-top: 6px !important;
  margin-bottom: 26px !important;
}

.hero-destaque {
  color: #D7573B !important;
  text-shadow: 0 0 35px rgba(215, 87, 59, 0.7), 0 4px 25px rgba(0, 0, 0, 0.9) !important;
}

/* Card Principal do Servidor */
.card-servidor-horizon {
  background: linear-gradient(145deg, #1E1715 0%, #171312 100%) !important;
  border: 1px solid rgba(108, 151, 142, 0.35) !important;
  border-radius: 18px !important;
  padding: 32px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-servidor-horizon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6C978E, #D7573B, transparent);
}

.card-servidor-horizon:hover {
  border-color: rgba(215, 87, 59, 0.6) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(215, 87, 59, 0.15);
  transform: translateY(-2px);
}

.badge-tag-taxa {
  background: rgba(215, 87, 59, 0.16) !important;
  border: 1px solid rgba(215, 87, 59, 0.45) !important;
  color: #FF7B5E !important;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.badge-tag-teal {
  background: rgba(108, 151, 142, 0.15) !important;
  border: 1px solid rgba(108, 151, 142, 0.4) !important;
  color: #82ADA4 !important;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.badge-tag-sand {
  background: rgba(196, 141, 102, 0.15) !important;
  border: 1px solid rgba(196, 141, 102, 0.4) !important;
  color: #DEAC86 !important;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Caixa de IP */
.ip-box-container {
  display: flex;
  align-items: center;
  background: #0E0C0B !important;
  border: 1px solid rgba(108, 151, 142, 0.28) !important;
  border-radius: 12px;
  padding: 10px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  color: #EDE8E5;
  justify-content: space-between;
  gap: 16px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.btn-copiar-ip {
  background: linear-gradient(135deg, #D7573B 0%, #B84329 100%) !important;
  border: 1px solid #FF7B5E !important;
  color: #FFFFFF !important;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(215, 87, 59, 0.3);
}

.btn-copiar-ip:hover {
  filter: brightness(1.15);
  box-shadow: 0 6px 18px rgba(215, 87, 59, 0.5);
}

/* Botões do Tema */
/* Hero Spacing e Ações */
.hero-olho {
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
  flex-wrap: wrap !important;
  display: flex !important;
}

.hero-ip-sep {
  color: rgba(255, 255, 255, 0.25) !important;
  font-size: 12px !important;
  user-select: none !important;
}

@media (max-width: 580px) {
  .hero-ip-sep {
    display: none !important;
  }
}

.hero-server-ip {
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 4px 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(108, 151, 142, 0.3) !important;
  border-radius: 6px !important;
  font-family: 'Martian Mono', monospace !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
}

.hero-ip-label {
  color: #82ADA4 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.04em !important;
}

.hero-ip-val {
  color: #EDE8E5 !important;
  font-weight: 600 !important;
}

.hero-ip-icon {
  color: #82ADA4 !important;
  opacity: 0.85 !important;
  flex-shrink: 0 !important;
  transition: transform 0.15s ease !important;
}

.hero-server-ip:hover {
  background: rgba(108, 151, 142, 0.15) !important;
  border-color: rgba(108, 151, 142, 0.6) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
}

.hero-server-ip:hover .hero-ip-icon {
  transform: scale(1.1) !important;
  opacity: 1 !important;
}

.hero-server-ip:active {
  transform: translateY(0) !important;
}

.hero-acoes {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  margin-top: 10px !important;
}

.btn-horizon-primary,
.btn-horizon-discord {
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 46px 0 34px !important;
  gap: 16px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  --corte: 14px !important;
}

.btn-horizon-primary svg,
.btn-horizon-discord svg {
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
}

.btn-horizon-primary {
  background: linear-gradient(135deg, #D7573B 0%, #B84329 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 123, 94, 0.75) !important;
  box-shadow: 0 8px 25px rgba(215, 87, 59, 0.45) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s ease !important;
}

.btn-horizon-primary:hover {
  filter: brightness(1.15) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 35px rgba(215, 87, 59, 0.65) !important;
}

.btn-horizon-discord {
  background: rgba(19, 16, 15, 0.82) !important;
  backdrop-filter: blur(10px) !important;
  color: #EDE8E5 !important;
  border: 1px solid rgba(108, 151, 142, 0.5) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45) !important;
  transition: all 0.25s ease !important;
}

.btn-horizon-discord:hover {
  background: rgba(88, 101, 242, 0.35) !important;
  border-color: #5865F2 !important;
  color: #FFFFFF !important;
  box-shadow: 0 12px 35px rgba(88, 101, 242, 0.45) !important;
  transform: translateY(-2px) !important;
}

/* Cards de Loja e VIP */
[data-slot="card"] {
  background: #1C1615 !important;
  border: 1px solid rgba(108, 151, 142, 0.22) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.2s ease;
}

[data-slot="card"]:hover {
  border-color: rgba(215, 87, 59, 0.5) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(215, 87, 59, 0.15) !important;
}

.vip-nome {
  color: #EDE8E5 !important;
  font-weight: 800 !important;
}

.preco-valor {
  color: #D7573B !important;
  font-weight: 800 !important;
  text-shadow: 0 0 15px rgba(215, 87, 59, 0.3);
}

.perk::before {
  color: #6C978E !important;
}

/* Rodapé */
footer {
  background: #0E0C0B !important;
  border-top: 1px solid rgba(108, 151, 142, 0.2) !important;
}

/* Ajustes de Links e Navegação */
a.link-nav:hover {
  color: #D7573B !important;
}


/* =========================================================
   RODAPÉ: FAIXA 100% COM CONTEÚDO ALINHADO AO SITE (MAX-WIDTH 1200px)
   ========================================================= */
.site-footer,
footer.site-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  padding: 56px 0 40px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: var(--bg-alt, #11100f);
}

.site-footer > .shell,
.site-footer > .site-footer-conteudo {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* Fallback para caso não haja o wrapper .shell */
.site-footer > .rodape-grade,
.site-footer > [data-orientation="horizontal"],
.site-footer > [data-slot="separator"],
.site-footer > .rodape-base,
.site-footer > p {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

.rodape-grade {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 40px 48px !important;
  width: 100% !important;
}

.rodape-grade > :first-child {
  flex: 2 320px !important;
}

.rodape-grade > nav {
  flex: 1 140px !important;
}

.rodape-base {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: 8px 32px !important;
  font-size: 0.85rem !important;
  color: var(--text-dim) !important;
  width: 100% !important;
}

.site-footer .rodape-titulo {
  color: var(--text-dim) !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  font-size: .64rem !important;
  font-weight: 700 !important;
}

.site-footer .rodape-link {
  color: var(--text-muted) !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: .9rem !important;
  text-decoration: none !important;
  transition: color .15s ease !important;
  display: inline-flex !important;
}

.site-footer .rodape-link:hover {
  color: #EDE8E5 !important;
}

.site-footer .rodape-marca {
  letter-spacing: .02em !important;
  text-transform: uppercase !important;
  color: var(--text) !important;
  width: fit-content !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.site-footer-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  margin-bottom: 6px !important;
  transition: transform 0.2s ease !important;
}

.site-footer-logo:hover {
  transform: scale(1.03) !important;
}

.site-footer-logo-img {
  height: 28px !important;
  max-height: 30px !important;
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
}

.site-footer .rodape-sobre {
  max-width: 38ch !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
  font-size: .88rem !important;
  line-height: 1.6 !important;
}

/* Normalização universal do Rodapé para páginas sem Tailwind (ex: Perfil) */
.site-footer ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer li {
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer .rodape-grade {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 40px 48px !important;
}

.site-footer .rodape-grade > div:first-child {
  flex: 2 320px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.site-footer .rodape-grade > nav {
  flex: 1 140px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.site-footer .rodape-grade > nav ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.site-footer [data-variant="ghost"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  color: var(--text-muted) !important;
  transition: color 0.15s ease, background 0.15s ease !important;
}

.site-footer [data-variant="ghost"]:hover {
  color: #EDE8E5 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.site-footer [data-variant="ghost"] svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

.site-footer .rodape-base {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

.site-footer [data-slot="separator"] {
  height: 1px !important;
  width: 100% !important;
  background: rgba(108, 151, 142, 0.22) !important;
  margin: 32px 0 !important;
}

.site-footer > .shell > p:last-child,
.site-footer > .site-footer-conteudo > p:last-child {
  text-align: right !important;
  font-size: 0.7rem !important;
  color: var(--text-dim) !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
}

/* Ícones de itens no Leaderboard */
.hlb-item-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: transform 0.15s ease;
}

.hlb-item-icon:hover {
  transform: scale(1.15);
}

.site-footer-fullwidth-enforced { display: contents; }


/* =========================================================
   CABEÇALHO: ALINHADO AO COMEÇO DO CONTEÚDO (SHELL / GUTTER)
   ========================================================= */
.site-header {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 50 !important;
}

.site-header-conteudo {
  width: 100% !important;
  max-width: var(--shell) !important;
  margin: 0 auto !important;
  padding-left: var(--gutter) !important;
  padding-right: var(--gutter) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 75px !important;
}

.site-header-marca,
.horizon-brand-logo {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.site-header-direita {
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

/* =========================================================
   RANKINGS / LEADERBOARDS: Paleta Rust Horizon (Tema Home)
   ========================================================= */
body:has(.ranking),
.ranking {
  --bg: #13100F !important;
  --bg2: #161312 !important;
  --bg3: #1C1615 !important;
  --border: rgba(108, 151, 142, 0.22) !important;
  --border-subtle: rgba(255, 255, 255, 0.06) !important;
}

.ranking {
  background-color: #13100F !important;
}

.ranking .olho {
  color: #82ADA4 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.ranking-servidores {
  background: #181514 !important;
  border-color: rgba(108, 151, 142, 0.25) !important;
}

.ranking-servidor-atual {
  background: rgba(108, 151, 142, 0.18) !important;
  border-color: rgba(108, 151, 142, 0.45) !important;
  color: #82ADA4 !important;
}

.ranking-controles {
  margin: 24px 0 16px !important;
}

@media (max-width: 640px) {
  .ranking-controles {
    width: 100% !important;
    max-width: 100% !important;
  }
  .ranking-abas {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .ranking-aba {
    flex: 1 1 0 !important;
    padding: 8px 6px !important;
    font-size: 0.75rem !important;
    gap: 5px !important;
    justify-content: center !important;
  }
  .ranking-aba svg {
    width: 16px !important;
    height: 16px !important;
  }
}

.ranking-abas {
  background: #181514 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
}

.ranking-aba {
  color: #a1a1aa !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.2s ease !important;
}

.ranking-aba:hover {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.ranking-aba-atual,
.ranking-aba-atual:hover {
  color: #FFFFFF !important;
  background: rgba(215, 87, 59, 0.12) !important;
  box-shadow: inset 0 -3px 0 #D7573B !important;
}

.ranking-aba-atual .ranking-aba-icone {
  color: #D7573B !important;
}

.ranking-busca-campo {
  background: #181514 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
}

.ranking-busca-campo:focus-within {
  border-color: #D7573B !important;
}

.ranking-busca-input {
  color: #EDE8E5 !important;
}

.ranking-busca-input::placeholder {
  color: #71717a !important;
}

.ranking-total {
  color: #a1a1aa !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.86rem !important;
}

.ranking-caixa {
  background: #161312 !important;
  border: 1px solid rgba(108, 151, 142, 0.25) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65) !important;
  overflow: hidden !important;
}

.ranking-cabecalho {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(0, 0, 0, 0.28) !important;
}

.ranking-cab {
  color: #82ADA4 !important;
  background: transparent !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
}

.ranking-linha {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: background-color 0.15s ease !important;
}

.ranking-linha:hover {
  background: rgba(255, 255, 255, 0.035) !important;
}

.ranking-nome {
  color: #EDE8E5 !important;
  font-weight: 700 !important;
}

.ranking-id {
  color: #71717a !important;
  font-family: monospace !important;
}

.ranking-valor-destaque {
  color: #D7573B !important;
  font-weight: 900 !important;
}

.ranking-avatar {
  border: 1.5px solid rgba(215, 87, 59, 0.85) !important;
  border-radius: 50% !important;
}

.ranking-avatar-vazio {
  border: 1.5px solid #D7573B !important;
  background: #221d1b !important;
  color: #EDE8E5 !important;
  font-weight: 800 !important;
}

/* Espaçamento refinado da coluna do Rank e do Jogador */
.ranking-cab-rank {
  width: 85px !important;
  min-width: 85px !important;
  text-align: center !important;
  padding: 0 10px !important;
}

.ranking-celula-rank {
  width: 85px !important;
  min-width: 85px !important;
  padding: 0 10px !important;
  text-align: center !important;
}

/* Distribuição uniforme e balanceada para Recursos, Farming e Raid */
.ranking-tabela-recursos,
.ranking-tabela-farming,
.ranking-tabela-raid {
  table-layout: fixed !important;
  width: 100% !important;
}

.ranking-tabela-recursos .ranking-cab-rank,
.ranking-tabela-recursos .ranking-celula-rank,
.ranking-tabela-raid .ranking-cab-rank,
.ranking-tabela-raid .ranking-celula-rank {
  width: 75px !important;
  min-width: 75px !important;
  padding: 0 4px !important;
}

.ranking-tabela-farming .ranking-cab-rank,
.ranking-tabela-farming .ranking-celula-rank {
  width: 65px !important;
  min-width: 65px !important;
  padding: 0 4px !important;
}

.ranking-tabela-recursos .ranking-cab-jogador,
.ranking-tabela-recursos .ranking-celula-jogador,
.ranking-tabela-raid .ranking-cab-jogador,
.ranking-tabela-raid .ranking-celula-jogador {
  width: 28% !important;
  padding-left: 20px !important;
}

.ranking-tabela-farming .ranking-cab-jogador,
.ranking-tabela-farming .ranking-celula-jogador {
  width: 24% !important;
  padding-left: 16px !important;
}

.ranking-tabela-recursos th:nth-child(n+3),
.ranking-tabela-recursos td:nth-child(n+3) {
  width: 9% !important;
  text-align: center !important;
  padding: 0 4px !important;
}

.ranking-tabela-farming th:nth-child(n+3),
.ranking-tabela-farming td:nth-child(n+3) {
  width: 6.33% !important;
  text-align: center !important;
  padding: 0 2px !important;
}

.ranking-tabela-raid th:nth-child(n+3),
.ranking-tabela-raid td:nth-child(n+3) {
  width: 11% !important;
  text-align: center !important;
  padding: 0 4px !important;
}

/* Responsividade Tabela Desktop vs Cards Mobile */
@media (min-width: 768px) {
  .ranking-cartoes {
    display: none !important;
  }
  .ranking-desktop-wrap {
    display: block !important;
  }
}

@media (max-width: 767px) {
  .ranking-desktop-wrap {
    display: none !important;
  }
  .ranking-cartoes {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
}

.ranking-rank {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.ranking-cab-jogador {
  text-align: left !important;
  padding-left: 24px !important;
}

.ranking-celula-jogador,
.ranking-linha td:nth-child(2) {
  padding-left: 24px !important;
}

.ranking-jogador {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

/* ==============================================================
   PODIUM TOP 3 CARDS (HORIZON RANKING)
   ============================================================== */
.ranking-podium-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 28px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.podium-card {
  position: relative;
  background: #181413;
  border-radius: 12px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.podium-card:hover {
  transform: translateY(-4px);
}

/* Rank 1: Gold / Ouro */
.podium-card-rank-1 {
  order: 2;
  border: 1px solid rgba(234, 179, 8, 0.45);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.08) 0%, #1A1412 100%);
  box-shadow: 0 10px 30px -8px rgba(234, 179, 8, 0.25), inset 0 1px 0 rgba(234, 179, 8, 0.35);
  margin-top: -6px;
}
.podium-card-rank-1:hover {
  box-shadow: 0 14px 38px -8px rgba(234, 179, 8, 0.35), inset 0 1px 0 rgba(234, 179, 8, 0.5);
}

/* Rank 2: Silver / Prata */
.podium-card-rank-2 {
  order: 1;
  border: 1px solid rgba(203, 213, 225, 0.32);
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.05) 0%, #181413 100%);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(203, 213, 225, 0.2);
}
.podium-card-rank-2:hover {
  box-shadow: 0 12px 30px -8px rgba(203, 213, 225, 0.25), inset 0 1px 0 rgba(203, 213, 225, 0.35);
}

/* Rank 3: Bronze */
.podium-card-rank-3 {
  order: 3;
  border: 1px solid rgba(217, 119, 6, 0.32);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.05) 0%, #181413 100%);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(217, 119, 6, 0.2);
}
.podium-card-rank-3:hover {
  box-shadow: 0 12px 30px -8px rgba(217, 119, 6, 0.25), inset 0 1px 0 rgba(217, 119, 6, 0.35);
}

/* Mobile responsividade */
@media (max-width: 860px) {
  .ranking-podium-container {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 22px;
    width: 100% !important;
  }
  .podium-card-rank-1 {
    order: 1 !important;
    margin-top: 0 !important;
  }
  .podium-card-rank-2 {
    order: 2 !important;
  }
  .podium-card-rank-3 {
    order: 3 !important;
  }
}

.podium-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.podium-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  width: fit-content;
}

.podium-badge-gold {
  background: rgba(234, 179, 8, 0.15);
  color: #EAB308;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.podium-badge-silver {
  background: rgba(203, 213, 225, 0.14);
  color: #CBD5E1;
  border: 1px solid rgba(203, 213, 225, 0.3);
}

.podium-badge-bronze {
  background: rgba(217, 119, 6, 0.15);
  color: #D97706;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.podium-category-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #82ADA4;
}

.podium-player-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.podium-avatar-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.podium-avatar-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.podium-card-rank-1 .podium-avatar-img {
  border: 2.5px solid #EAB308;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.35);
}

.podium-card-rank-2 .podium-avatar-img {
  border: 2.5px solid #CBD5E1;
  box-shadow: 0 0 10px rgba(203, 213, 225, 0.25);
}

.podium-card-rank-3 .podium-avatar-img {
  border: 2.5px solid #D97706;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.25);
}

.podium-avatar-num {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #13100F;
}

.podium-card-rank-1 .podium-avatar-num { background: #EAB308; }
.podium-card-rank-2 .podium-avatar-num { background: #CBD5E1; }
.podium-card-rank-3 .podium-avatar-num { background: #D97706; }

.podium-player-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.podium-player-name {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.podium-player-name:hover {
  color: #D7573B;
}

.podium-player-steamid {
  color: #8E8B88;
  font-size: 0.72rem;
  font-family: monospace;
  margin-top: 2px;
}

.podium-stats-box {
  background: rgba(19, 16, 15, 0.65);
  border: 1px solid rgba(108, 151, 142, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.podium-primary-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(108, 151, 142, 0.14);
  padding-bottom: 6px;
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

.podium-stat-val {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  color: #EDE8E5;
}

.podium-card-rank-1 .podium-stat-val { color: #EAB308; }
.podium-card-rank-2 .podium-stat-val { color: #CBD5E1; }
.podium-card-rank-3 .podium-stat-val { color: #D97706; }

.podium-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #8E8B88;
  letter-spacing: 0.06em;
}

.podium-substats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 8px;
  width: 100%;
  box-sizing: border-box;
}

.podium-substat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  box-sizing: border-box;
}

.podium-substat-name {
  color: #8E8B88;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.podium-substat-name img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.podium-substat-val {
  color: #EDE8E5;
  font-weight: 700;
}

.podium-link-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(108, 151, 142, 0.08);
  border: 1px solid rgba(108, 151, 142, 0.25);
  color: #EDE8E5;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.podium-link-btn:hover {
  background: rgba(108, 151, 142, 0.2);
  border-color: rgba(108, 151, 142, 0.45);
  color: #FFFFFF;
}
