body {
    margin: 0;
    font-family: 'Lora', serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Combina a sobreposição de cor com a imagem de fundo */
    background: linear-gradient(rgba(13, 18, 28, 0.623), rgba(31, 44, 70, 0.651)), url('../imagens/icon_Antrodemus.jpg') no-repeat center center fixed;
    background-size: cover;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2325256b, #2229286c, #1f222279);
    z-index: -1;
}

/* Estilo inicial para a página */
.page {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Estilo ativo para a página carregada */
.page.active {
    opacity: 1;
    transform: translateY(0);
}

/* Estilo da Nav-Bar */
nav {
    background: rgba(50, 52, 53, 0.548);
    color: #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(1px);
}

/* Estilo do Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10%;
    margin-left: 1px;
}

.logo img {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
    color: #ecf0f1;
    margin-right: 20px;
    margin-left: 10px;
}

.nav-links {
    display: flex;
    gap: 11px;
}

.sidebar-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #ccc;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.3s ease;
    overflow: hidden;
}

.sidebar-item .icon {
    font-size: 18px;
}

.sidebar-item .highlight-bar {
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #b8f1ff, #86eefc, #b8f1ff);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-item:hover .highlight-bar {
    opacity: 1;
}

.sidebar-item:hover {
    color: #b3fcff;
}

/* Container do botão de dados e ícones */
.dado-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 1rem;
    margin-right: 1%;
    gap: 1em; /* Espaço entre os itens (botão, dado, novo ícone) */
}

/* Botão Glow */
.glow-on-hover {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #cfcfcf;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Efeito ao passar o mouse */
.glow-on-hover:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(180, 255, 255, 0.8);
}

/* Imagem do dado (estilo existente, mantido aqui para referência) */
.dado {
    width: 3.75em; /* Aproximadamente 60px. Usaremos isso como referência de altura. */
    height: auto;
    margin-bottom: 1rem;
    transition: transform 0.3s ease-in-out;
}

.dado:hover {
    transform: scale(1.2);
}

/* Estilo para o link do novo ícone - Contém as principais mudanças */
.new-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-right: 5em; /* Mantém o grande espaço à direita da navbar */
    /* Adições para o círculo (mantidas para manter a estrutura e alinhamento) */
    width: 4em; /* Define a largura para ser igual à altura do dado para um círculo perfeito */
    height: 4em; /* Define a altura para ser igual à largura (e altura do dado) */
    border-radius: 50%; /* Torna o elemento circular */
    overflow: hidden; /* Garante que a imagem dentro seja cortada para caber no círculo */
    background-color: rgba(255, 255, 255, 0); /* Fundo totalmente transparente */
    margin-bottom: 1rem; /* Alinha com o botão e o dado */
    /* Remova o transition: transform 0.3s ease-in-out; daqui se ele estiver duplicado com .new-icon */
}

/* Estilo para a imagem dentro do novo ícone */
.new-icon {
    width: 80%; /* Ajuste o percentual para a imagem caber bem no círculo */
    height: 80%; /* Ajuste o percentual */
    border-radius: 40%; /* Isso criará cantos arredondados na imagem interna, não a tornará circular completa se a imagem não for quadrada */
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out; /* Adiciona transition para o filter também */
    object-fit: contain; /* Garante que a imagem se ajuste sem cortar ou distorcer no círculo */
    filter: brightness(1.5); /* Aumenta um pouco o brilho da imagem para destacar */
}

.new-icon-link:hover .new-icon { /* Aplica o efeito diretamente à imagem quando o link é hover */
    transform: scale(1.2); /* Efeito de zoom ao passar o mouse */
}

.Container-nav {
    display: flex;
    justify-content: flex-start;
}
@media (max-width: 480px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.3rem 0.4rem; /* Padding reduzido para mais espaço */
        box-sizing: border-box;
        height: auto;
    }

    .logo {
        display: flex;
        align-items: center;
        transform: scale(0.6); /* Logo ainda menor */
    }

    .nav-left {
        margin-right: 0.3rem; /* Margem reduzida */
    }

    .logo img {
        max-width: 50px; /* Reduzir ainda mais a imagem do logo */
        max-height: 50px;
        margin-right: 0.1rem;
    }

    .logo h1 {
        font-size: 0.8rem; /* Fonte do título menor */
        margin: 0;
    }

    .nav-middle {
        display: flex;
        justify-content: center;
        width: 65%; /* Um pouco mais de largura para o nav-middle */
    }

    .nav-links {
        display: grid;
        /* Em telas muito pequenas, 3 ou 4 colunas podem ser mais eficazes para evitar cortes */
        grid-template-columns: repeat(auto-fit, minmax(28px, 1fr)); /* Min-width menor */
        gap: 0.2rem; /* Gap ainda menor */
        width: 100%;
        padding: 20px 0; /* Padding vertical reduzido */
        margin-left: 0;
        margin-right: 0;
    }

    .sidebar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: auto;
        padding: 0.3rem; /* Padding reduzido */
        font-size: 0.5rem; /* Fonte do item menor */
        text-align: center;
        overflow: hidden;
    }

    .sidebar-item .icon {
        font-size: 0.8rem; /* Tamanho do ícone menor */
        margin-bottom: 0.1rem;
    }

    .sidebar-item span {
        display: block;
        font-size: 0.5rem; /* Fonte do texto do item menor */
        line-height: 1;
    }

    .nav-right {
        display: flex;
        align-items: center;
        margin-right: -2rem; /* Ajustar margem para que não corte */
        margin-bottom: 1rem; /* Ajustar margem */
    }

    .dado-container {
        display: flex;
        align-items: center;
        gap: 0.2rem; /* Gap menor */
        margin-left: 0.5rem; /* Margem ajustada */
    }

    .glow-on-hover {
        font-size: 0.5rem; /* Fonte do botão menor */
        padding: 0.1rem 0.3rem;
        margin-right: 0;
    }

    .dado {
        width: 1.5rem; /* Dado menor */
        height: auto;
        margin-bottom: 0;
    }
}

/* ======================================================= */
/* Ajustes para celulares maiores e tablets pequenos (481px a 767px) */
/* ======================================================= */
@media (min-width: 481px) and (max-width: 767px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 0.6rem; /* Padding ligeiramente ajustado */
        box-sizing: border-box;
        height: auto;
    }

    .logo {
        display: flex;
        align-items: center;
        transform: scale(0.65); /* Escala intermediária para o logo */
    }

    .nav-left {
        margin-right: 0.4rem;
    }

    .logo img {
        max-width: 55px; /* Tamanho intermediário para a imagem do logo */
        max-height: 55px;
        margin-right: 0.1rem;
    }

    .logo h1 {
        font-size: 0.85rem; /* Fonte intermediária para o título */
        margin: 0;
    }

    .nav-middle {
        display: flex;
        justify-content: center;
        width: 60%; /* Manter largura do nav-middle como na versão de 780px */
    }

    .nav-links {
        display: grid;
        /* Min-width um pouco maior que para 480px, mas ainda otimizado para menos espaço */
        grid-template-columns: repeat(auto-fit, minmax(25px, 1fr));
        gap: 0.3rem; /* Gap ligeiramente menor que o original de 780px */
        width: 100%;
        padding: 25px 0; /* Padding vertical ajustado */
        margin-left: 0;
        margin-right: 0;
    }

    .sidebar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: auto;
        padding: 0.4rem; /* Padding ligeiramente ajustado */
        font-size: 0.55rem; /* Fonte do item ligeiramente ajustada */
        text-align: center;
        overflow: hidden;
    }

    .sidebar-item .icon {
        font-size: 0.9rem; /* Tamanho do ícone ligeiramente ajustado */
        margin-bottom: 0.2rem;
    }

    .sidebar-item span {
        display: block;
        font-size: 0.55rem;
        line-height: 1.05;
    }

    .nav-right {
        display: flex;
        align-items: center;
        margin-right: -2.5rem; /* Ajuste similar ao de 780px, mas ligeiramente ajustado */
        margin-bottom: 1.5rem; /* Ajuste similar ao de 780px, mas ligeiramente ajustado */
    }

    .dado-container {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        margin-left: 0.8rem;
    }

    .glow-on-hover {
        font-size: 0.55rem;
        padding: 0.15rem 0.35rem;
        margin-right: 0;
    }

    .dado {
        width: 1.8rem;
        height: auto;
        margin-bottom: 0;
    }
}

/* ================================================= */
/* Ajustes para tablets maiores e laptops pequenos (768px a 1024px) */
/* ================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0.8rem;
        box-sizing: border-box;
        height: auto;
       
    }

    .logo {
        display: flex;
        align-items: center;
        transform: scale(0.7); /* Manter escala do logo igual ao original de 780px */
    }

    .nav-left {
        margin-right: 0.5rem;
    }

    .logo img {
        max-width: 60px; /* Manter tamanho da imagem do logo */
        max-height: 60px;
        margin-right: 0.1rem;
    }

    .logo h1 {
        font-size: 0.9rem; /* Manter fonte do título */
        margin: 0;
    }

    .nav-middle {
        display: flex;
        justify-content: center;
        width: 60%; /* Manter largura do nav-middle */
    }

    .nav-links {
        display: grid;
        /* Aqui podemos dar um pouco mais de espaço para cada coluna, ou manter o repeat(6, 1fr) se os textos couberem */
        /* Vou manter o auto-fit para flexibilidade, com um min-width um pouco maior */
        grid-template-columns: repeat(auto-fit, minmax(38px, 1fr)); /* Min-width ajustado */
        gap: 0.5rem; /* Ajustar o gap, ligeiramente maior que 767px */
        width: 100%;
        padding: 30px 0;
        margin-left: 0;
        margin-right: 0;
    }

    .sidebar-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: auto;
        padding: 0.5rem;
        font-size: 0.6rem;
        text-align: center;
        overflow: hidden;
    }

    .sidebar-item .icon {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .sidebar-item span {
        display: block;
        font-size: 0.6rem;
        line-height: 1.1;
    }

     .dado-container {
        flex-direction: column; /* Ícone abaixo do botão e dado */
        align-items: center; /* Centraliza horizontalmente na coluna */
        gap: 0.3rem; /* Espaço entre os elementos empilhados */
        margin-left: 0; /* Ajuste se houver margem que atrapalhe o centralizar */
        margin-right: 0;
    }

    .glow-on-hover {
        font-size: 0.6rem;
        padding: 0.2rem 0.3rem;
        margin-bottom: 0.2rem; /* Espaço abaixo do botão */
    }

    .dado {
        width: 2rem;
        height: auto;
        margin-bottom: 0.2rem; /* Espaço abaixo do dado */
    }

    .new-icon-link {
        width: 2.5em; /* Ajuste o tamanho do container do ícone */
        height: 2.5em;
        margin-bottom: 0; /* Não precisa de margem inferior extra */
        margin-right: 0; /* Remove a margem direita para centralizar melhor */
    }

    .new-icon {
        width: 85%;
        height: 85%;
    }

    .nav-right {
        margin-right: 0; /* Garante que o nav-right não empurre para fora */
        margin-bottom: 0; /* Ajusta a margem para evitar excesso de espaço */
    }
}



  
/* Ajustes para telas menores (até 780px) */
@media (max-width: 780px) {
  nav {
      display: flex; /* Alinha os três blocos principais horizontalmente */
      justify-content: space-between; /* Espaço máximo entre os blocos */
      align-items: center; /* Alinha verticalmente ao centro */
      padding: 0.5rem 1rem;
      box-sizing: border-box;
      height: auto;
    
  }

  .logo {
      display: flex;
      align-items: center;
      transform: scale(0.7); /* Ajuste o tamanho do logo se necessário */
  }
  .nav-left{
 margin-right: 0.3rem;

  }
  .logo img {
      max-width: 45px;
      max-height: 45px;
      margin-right: 0.1rem;
  }

  .logo h1 {
      font-size: 0.7rem;
      margin: 0;
  }

  .nav-middle {
      display: flex;
      justify-content: center; /* Centraliza o conteúdo horizontalmente */
      width: 70%; /* Ocupa uma parte da largura para os ícones */
  }

.nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22px, 1fr)); /* Tente 90px ou 100px */
    gap: 0.5rem; /* Reduzir um pouco o gap pode ajudar */
    width: 100%;
    padding: 30px 0;
    margin-left: 0; /* Remover ou reduzir estas margens */
    margin-right: 0; /* Remover ou reduzir estas margens */
}

  .sidebar-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-width: auto;
      padding: 0.5rem;
      font-size: 0.6rem;
      text-align: center;
      overflow: hidden;
  }

  .sidebar-item .icon {
      font-size: 1rem;
      margin-bottom: 0.2rem;
  }

  .sidebar-item span {
      display: block;
      font-size: 0.6rem;
      line-height: 1.1;
  }

  .nav-right {
      display: flex;
      align-items: center; /* Alinha verticalmente o botão e a imagem */
      margin-right: -3rem;
      margin-bottom: 2rem;
  }

   .dado-container {
        flex-direction: column; /* Ícone abaixo do botão e dado */
        align-items: center; /* Centraliza horizontalmente na coluna */
        gap: 0.2rem; /* Espaço entre os elementos empilhados */
        margin-left: 0;
        margin-right: 0;
    }

  .glow-on-hover {
        font-size: 0.55rem;
        padding: 0.15rem 0.35rem;
        margin-bottom: 0.15rem;
    }

    .dado {
        width: 1.8rem;
        height: auto;
        margin-bottom: 0.15rem;
    }
    .new-icon-link {
        width: 2.3em;
        height: 2.3em;
        margin-bottom: 0;
        margin-right: 0;
    }

    .new-icon {
        width: 90%;
        height: 90%;
    }

    .nav-right {
        margin-right: 0;
        margin-bottom: 0;
    }
}


/* Menu de Dados */
/* Menu */
.menu {
    position: fixed; /* Fixa o menu em uma posição específica na tela */
    top: 1%; /* Define a distância do menu a partir do topo da tela */
    right: 1%; /* Define a distância do menu a partir da borda direita */
    width: 350px; /* Aumenta a largura do menu */
    background-color: #1d1919ec; /* Cor de fundo */
    border: 1px solid #c0c0c0; /* Borda */
    border-radius: 5px; /* Bordas arredondadas */
    padding: 1.2rem; /* Espaçamento interno maior */
    box-shadow: 0 4px 8px rgba(245, 245, 245, 0.322); /* Sombra */
    z-index: 1000; /* Garante que o menu fique acima de outros elementos */
    color: #defcfd;
    transition: all 0.3s ease;
}

/* Menu escondido */
.hidden {
    display: none;
}

.menu button {
    padding: 0.7rem 1.2rem; /* Botões maiores */
    font-size: 1rem; /* Texto maior nos botões */
    margin: 0.5rem 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Estilo do botão "Fechar" */
#closeMenu {
    background-color: #aa0303;
    color: white;
    float: right;
}

#closeMenu:hover {
    box-shadow: 0 0 15px rgba(253, 189, 11, 0.8); /* Efeito de brilho */
    transform: scale(1.1); /* Aumenta tamanho ao passar o mouse */
}

/* Estilo do botão "Rolar Dados" */
#rollDice {
    background-color: #fc631c;
    color: white;
}

/* Estilo do botão "Limpar Registro" */
#clearRolls {
    background-color: #f89f19;
    color: white;
    padding: 0.7rem 1.2rem; /* Botões maiores */
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#clearRolls:hover {
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.8); /* Efeito de brilho */
    transform: scale(1.1); /* Aumenta tamanho ao passar o mouse */
}

/* Estilo da área de registro */
#rolls {
    margin-top: 1rem;
    max-height: 250px; /* Aumenta a altura da área de registro */
    overflow-y: auto; /* Adiciona rolagem vertical */
    padding-right: 10px; /* Espaço extra para o scroll */
    border: 1px solid #ccc; /* Adiciona uma borda para destacar a área */
    border-radius: 5px;
    background-color: #d1972bb9; /* Fundo levemente diferente para separar visualmente */
}

#rollList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#rollList li {
    margin: 0.3rem 0;
    font-weight: bold;
    color: #1f0101;
}

/* Campos de entrada */
#diceSelect, #playerName {
    width: 100%;
    padding: 0.7rem; /* Aumenta o espaço interno */
    font-size: 1rem; /* Texto maior */
    border: 1px solid #faa80e;
    border-radius: 5px;
    color: #0e0b00;
    margin-top: 5px;
}

/* Responsividade */
@media (max-width: 1780px) {
    .menu {
        width: 300px; /* Diminui o menu em telas menores */
        top: 3%; /* Ajusta a posição */
        right: 3%;
        font-size: 0.9rem; /* Texto menor no menu */
    }

    #closeMenu {
        font-size: 0.7rem; /* Ajusta o tamanho do texto no botão */
    }

    #rolls {
        max-height: 200px; /* Ajusta a altura da área de registro */
    }

    #diceSelect, #playerName {
        padding: 0.5rem; /* Reduz o espaço interno */
        font-size: 0.9rem; /* Texto menor */
    }

    .menu button {
        font-size: 0.6rem; /* Ajusta o tamanho dos botões */
        padding: 0.5rem 0.5rem; /* Reduz o tamanho */
    }
}
/* Estilo para a barra de rolagem */
#rolls::-webkit-scrollbar {
    width: 12px; /* Largura da barra vertical */
    height: 12px; /* Altura da barra horizontal (caso exista) */
}

#rolls::-webkit-scrollbar-thumb {
    background-color: #fc631c; /* Cor da barra de rolagem */
    border-radius: 10px; /* Deixa os cantos arredondados */
    border: 3px solid #ffb936; /* Adiciona um contorno para destacar */
}

#rolls::-webkit-scrollbar-thumb:hover {
    background-color: #f89f19; /* Cor ao passar o mouse */
}

#rolls::-webkit-scrollbar-track {
    background-color: #ffe3a8; /* Fundo do trilho da barra */
    border-radius: 10px; /* Cantos arredondados do trilho */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1); /* Leve sombra interna */
}

/* Ajuste do tamanho do scroll para dispositivos móveis */
@media (max-width: 768px) {
    #rolls::-webkit-scrollbar {
        width: 16px; /* Aumenta a largura do scrollbar para ajudar no toque */
    }

    #rolls::-webkit-scrollbar-thumb {
        border: 4px solid #ffb936; /* Ajusta o contorno para manter o tamanho visual */
    }
}

/* Título Principal - Centralizado */
.titulo_principal {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente (se houver altura) */
    margin-top: 110px;
    perspective: 1000px;
    margin-bottom: 10px;
    text-align: center; /* Garante que o texto dentro do h1 esteja centralizado */
}
@media (max-width: 788px) {

/* Título Principal - Centralizado */
.titulo_principal {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente (se houver altura) */
    margin-top: 110px;
    perspective: 600px;
    margin-bottom: 20px;
    text-align: center; /* Garante que o texto dentro do h1 esteja centralizado */
}

.titulo_efeito {
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #1a1a1a, #000000, #1a1a1a);
    border-radius: 25px;
    padding: 25px 40px;
    border: 3px solid #333333;
    color: #b6fff3;
    text-shadow:
        0 0 10px rgba(193, 240, 248, 0.8),
        0 0 30px rgba(193, 240, 248, 0.6),
        0 0 60px rgba(193, 240, 248, 0.4);
    position: relative;
    max-width: 380px;
    overflow: hidden;
    animation: pulseGlowCyan 3s infinite alternate, floatEffect 5s ease-in-out infinite;
    transform-style: preserve-3d;
    text-align: center; /* Garante o texto centralizado dentro do elemento */
}
}

@media (max-width: 480px) {

/* Título Principal - Centralizado */
.titulo_principal {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente (se houver altura) */
    margin-top: 110px;
    perspective: 600px;
    margin-bottom: 20px;
    text-align: center; /* Garante que o texto dentro do h1 esteja centralizado */
}

.titulo_efeito {
    font-size: 1rem;
    font-weight: bold;
    background: linear-gradient(135deg, #1a1a1a, #000000, #1a1a1a);
    border-radius: 25px;
    padding: 25px 40px;
    border: 3px solid #333333;
    color: #b6fff3;
    text-shadow:
        0 0 10px rgba(193, 240, 248, 0.8),
        0 0 30px rgba(193, 240, 248, 0.6),
        0 0 60px rgba(193, 240, 248, 0.4);
    position: relative;
    max-width: 380px;
    overflow: hidden;
    animation: pulseGlowCyan 3s infinite alternate, floatEffect 5s ease-in-out infinite;
    transform-style: preserve-3d;
    text-align: center; /* Garante o texto centralizado dentro do elemento */
}
}



.titulo_efeito {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #1a1a1a, #000000, #1a1a1a);
    border-radius: 25px;
    padding: 25px 40px;
    border: 3px solid #333333;
    color: #b6fff3;
    text-shadow:
        0 0 10px rgba(193, 240, 248, 0.8),
        0 0 30px rgba(193, 240, 248, 0.6),
        0 0 60px rgba(193, 240, 248, 0.4);
    position: relative;
    max-width: 280px;
    overflow: hidden;
    animation: pulseGlowCyan 3s infinite alternate, floatEffect 5s ease-in-out infinite;
    transform-style: preserve-3d;
    text-align: center; /* Garante o texto centralizado dentro do elemento */
}

/* Keyframes (mantidos os mesmos) */
@keyframes pulseGlowCyan {
    0% {
        box-shadow: 0 0 15px rgba(193, 240, 248, 0.6);
    }
    100% {
        box-shadow: 0 0 35px rgba(193, 240, 248, 1);
    }
}

@keyframes floatEffect {
    0% {
        transform: translateY(0) rotateX(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
    100% {
        transform: translateY(0) rotateX(0deg);
    }
}

.titulo_efeito::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shineEffect 3s infinite linear;
    transform: skewX(-20deg);
    pointer-events: none;
}

@keyframes shineEffect {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.titulo_efeito::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #999999, #b6fff3, #d6feff, #b6fff3, #999999);
    animation: wave 8s infinite linear;
    transform-origin: bottom center;
}

@keyframes wave {
    0% {
        transform: scaleX(0.1);
        left: 0%;
        background-position: 0% 0%;
    }
    25% {
        transform: scaleX(1);
        left: 0%;
        background-position: 100% 0%;
    }
    50% {
        transform: scaleX(0.1);
        left: 90%;
        background-position: 0% 0%;
    }
    75% {
        transform: scaleX(1);
        left: 0%;
        background-position: 100% 0%;
    }
    100% {
        transform: scaleX(0.1);
        left: 0%;
        background-position: 0% 0%;
    }
}
         /* Animações e variáveis */
        @keyframes misty-glow {
            0% { box-shadow: 0 0 10px rgba(193, 240, 248, 0.2), 0 0 20px rgba(193, 240, 248, 0.15), 0 0 30px rgba(193, 240, 248, 0.1); }
            50% { box-shadow: 0 0 20px rgba(193, 240, 248, 0.4), 0 0 40px rgba(193, 240, 248, 0.3), 0 0 60px rgba(193, 240, 248, 0.2); }
            100% { box-shadow: 0 0 10px rgba(193, 240, 248, 0.2), 0 0 20px rgba(193, 240, 248, 0.15), 0 0 30px rgba(193, 240, 248, 0.1); }
        }

        @keyframes fadeInScale {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }
        
        @keyframes pulse-aura {
            0% { transform: scale(1); opacity: 0.8; }
            50% { transform: scale(1.1); opacity: 1; }
            100% { transform: scale(1); opacity: 0.8; }
        }

        @keyframes shine-through {
            0% { transform: skewX(-20deg) translateX(-100%); }
            100% { transform: skewX(-20deg) translateX(200%); }
        }
        
        /* Bloco para o ícone animado */
.eras-header-icon {
    display: flex; /* Para centralizar o ícone */
    justify-content: center;
    align-items: center;
    width: 20%;
    max-width: 300px;
    height: 300px; /* Altura do bloco */
    margin: 0 auto 20px auto; /* Centraliza e adiciona margem inferior */
    
    /* Cores e bordas da tabela */
    background: linear-gradient(135deg,  rgba(35, 35, 35, 0.95), rgba(0, 0, 0, 0.9), rgba(35, 35, 35, 0.95));
    border-radius: 25px;
    box-shadow: 0 0 20px rgba(193, 240, 248, 0.603);
    border: 3px solid rgba(219, 248, 253, 0.568);
    overflow: hidden; /* Garante que o gif não transborde */
    backdrop-filter: blur(5px);
    
    /* Efeito de brilho pulsante opcional */
    animation: border-glow 2s infinite ease-in-out;
}

/* Estilo do ícone animado dentro do bloco */
.era-icon-animated {
    width: 280px; /* Tamanho do ícone, ajuste conforme o seu GIF */
    height: 280px;
    object-fit: contain; /* Garante que o GIF se encaixe sem distorcer */
    transition: transform 0.8s ease;
}

/* Efeito de hover no ícone */
.era-icon-animated:hover {
    transform: scale(1.1);
}


/* Telas de Tablets (até 768px de largura) */
@media (max-width: 768px) {
    .eras-header-icon {
        width: 30%; /* Aumenta a largura em telas de tablet */
        max-width: 250px; /* Reduz o tamanho máximo */
        height: 250px;
        margin-bottom: 15px; /* Ajusta a margem inferior */
    }

    .era-icon-animated {
        width: 230px; /* Reduz o tamanho do ícone */
        height: 230px;
    }
}

/* Telas de Celulares (até 480px de largura) */
@media (max-width: 480px) {
    .eras-header-icon {
        width: 50%; /* Aumenta a largura para ocupar mais espaço na tela */
        max-width: 200px;
        height: 200px;
        border-radius: 20px; /* Borda mais suave em telas menores */
    }

    .era-icon-animated {
        width: 180px; /* Reduz ainda mais o tamanho do ícone */
        height: 180px;
    }
}
      

        /* Estilo para a seção de botões de eras */
        .eras {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 40px;
        }

        .eras button {
            background: linear-gradient(45deg, rgba(20, 20, 20, 0.9), rgba(30, 30, 30, 0.95));
            color: #C1F0F8;
            border: 2px solid rgba(193, 240, 248, 0.5);
            padding: 12px 24px;
            border-radius: 20px;
            cursor: pointer;
            text-transform: uppercase;
            font-weight: bold;
            box-shadow: 0 0 10px rgba(193, 240, 248, 0.3);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .eras button:hover {
            background: linear-gradient(45deg, rgba(30, 30, 30, 0.9), rgba(40, 40, 40, 0.95));
            border-color: #B1F1FC;
            box-shadow: 0 0 20px rgba(193, 240, 248, 0.6);
            transform: translateY(-2px);
        }

        .eras button.active {
            background: #1c445788;
            border-color: #cedcff;
            box-shadow: 0 0 25px rgba(211, 224, 255, 0.8);
        }

        /* Estilo da Tabela - Adaptado do seu tema */
        .tabela {
            display: none;
            width: 90%;
            max-width: 1000px;
            margin: 0 auto 40px auto;
            border-collapse: collapse;
            background: linear-gradient(135deg, rgba(25, 25, 25, 0.9), rgba(35, 35, 35, 0.842));
            border-radius: 25px;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(193, 240, 248, 0.3);
            border: 3px solid rgba(193, 240, 248, 0.3);
            animation: fadeInScale 0.7s ease-out;
            position: relative;
            backdrop-filter: blur(5px);
        }

        .tabela.active {
            display: table;
        }

        .tabela th {
            background: rgba(40, 40, 40, 0.95);
            color: #affaea; /* Cor de destaque para o cabeçalho */
            font-size: 1.2rem;
            padding: 18px 15px;
            border-bottom: 2px solid rgba(193, 240, 248, 0.5);
            text-align: left;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: bold;
        }

        .tabela td {
            padding: 15px;
            border-bottom: 1px solid rgba(193, 240, 248, 0.1);
            color: #d0d0d0;
            font-size: 1rem;
            text-shadow: 0 0 3px rgba(193, 240, 248, 0.05);
            transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
        }
        
        .tabela tr:last-child td {
            border-bottom: none;
        }

        .tabela tr:hover {
            background-color: rgba(60, 60, 60, 0.6);
            transform: scale(1.01);
            box-shadow: 0 0 10px rgba(193, 240, 248, 0.2);
            z-index: 1; /* Garante que a linha fique acima */
            position: relative;
        }

        .tabela td.arma {
            font-weight: bold;
            color: #C1F0F8;
            cursor: pointer;
            position: relative;
            z-index: 1;
        }

        /* Efeito de brilho na célula clicável */
        .tabela td.arma:hover {
            color: white;
            text-shadow: 0 0 15px rgba(193, 240, 248, 0.8);
        }

        /* Efeito de brilho no hover */
.eras button:hover {
    background: linear-gradient(45deg, rgba(30, 30, 30, 0.9), rgba(40, 40, 40, 0.95));
    border-color: #B1F1FC;
    box-shadow: 0 0 20px rgba(193, 240, 248, 0.6);
    transform: translateY(-2px) scale(1.05); /* Escala o botão no hover */
}

/* Efeito de brilho adicional para o estado ativo */
.eras button.active {
    background: linear-gradient(45deg, rgba(28, 68, 87, 0.8), rgba(28, 68, 87, 0.8));
    border-color: #cedcff;
    box-shadow: 0 0 25px rgba(211, 224, 255, 0.8);
    animation: pulse-glow 1.5s infinite alternate; /* Nova animação de pulso */
}
/* Efeito de brilho na borda da tabela ao ser ativada */
.tabela.active {
    display: table;
    animation: fadeInScale 0.7s ease-out, border-glow 2s infinite ease-in-out;
}


        /* Responsive */
        @media (max-width: 768px) {
            .eras {
                gap: 10px;
            }
            .eras button {
                font-size: 0.9rem;
                padding: 10px 18px;
            }
            .tabela {
                width: 90%;
                font-size: 0.9rem;
                padding: 10px;
            }
            .tabela th, .tabela td {
                padding: 12px 8px;
            }
        }
        @media (max-width: 480px) {
            .eras button {
                font-size: 0.7rem;
                padding: 8px 12px;
            }
            .tabela th {
                font-size: 1rem;
            }
        }


         /* Animações e variáveis do seu CSS */
        @keyframes misty-glow {
            0% { box-shadow: 0 0 10px rgba(193, 240, 248, 0.2), 0 0 20px rgba(193, 240, 248, 0.15), 0 0 30px rgba(193, 240, 248, 0.1); }
            50% { box-shadow: 0 0 20px rgba(193, 240, 248, 0.4), 0 0 40px rgba(193, 240, 248, 0.3), 0 0 60px rgba(193, 240, 248, 0.2); }
            100% { box-shadow: 0 0 10px rgba(193, 240, 248, 0.2), 0 0 20px rgba(193, 240, 248, 0.15), 0 0 30px rgba(193, 240, 248, 0.1); }
        }

        @keyframes fadeInScale {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

     
#pedra td.arma::before {
    background-image: url('../imagens/Icone_ark_v4.png');
}

#ferro td.arma::before {
    background-image: url('../imagens/Icone_ark_v4.png');
}

#aco td.arma::before {
    background-image: url('../imagens/Icone_ark_v4.png');
}

#radiante td.arma::before {
    background-image: url('../imagens/Icone_ark_v4.png');
}

#final td.arma::before {
    background-image: url('../imagens/Icone_ark_v4.png');
}

/* ============================================= */
/* ESTILOS PARA A TABELA DE ARMAS */
/* ============================================= */

.weapons-table-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 40px auto;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.9), rgba(35, 35, 35, 0.842));
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(193, 240, 248, 0.3);
    border: 3px solid rgba(193, 240, 248, 0.3);
    animation: fadeInScale 0.7s ease-out;
    position: relative;
    backdrop-filter: blur(5px);
    padding: 25px;
}

.era-title {
    color: #b6fff3;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 
        0 0 10px rgba(176, 255, 248, 0.7),
        0 0 20px rgba(176, 255, 248, 0.4);
    border-bottom: 2px solid rgba(176, 255, 248, 0.5);
    padding-bottom: 15px;
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.era-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 20%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(66, 7, 204, 0.836) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: brilhoDeslizante 5s infinite;
    z-index: 1;
    pointer-events: none;
}

.weapons-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 30, 30, 0.7);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.weapons-table thead {
    background: linear-gradient(45deg, rgba(40, 40, 40, 0.95), rgba(50, 50, 50, 0.95));
}

.weapons-table th {
    color: #affaea;
    font-size: 1.2rem;
    padding: 18px 15px;
    border-bottom: 2px solid rgba(193, 240, 248, 0.5);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(175, 250, 234, 0.5);
}

.weapons-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(193, 240, 248, 0.1);
    color: #d0d0d0;
    font-size: 1rem;
    text-shadow: 0 0 3px rgba(193, 240, 248, 0.05);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.weapons-table tr:last-child td {
    border-bottom: none;
}

.weapons-table tr:hover {
    background-color: rgba(60, 60, 60, 0.6);
    transform: scale(1.01);
    box-shadow: 0 0 10px rgba(193, 240, 248, 0.2);
    z-index: 1;
    position: relative;
}
/* ============================================= */
/* ESTILOS PARA A SEÇÃO DE FORJA */
/* ============================================= */

/* Botão Ver Minha Ficha */
.ficha-button-container {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    position: relative;
    z-index: 100;
}

.btn-ficha-glow {
    background: linear-gradient(135deg, #303135 0%, #131214 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 0 20px rgba(180, 193, 250, 0.5),
        0 0 40px rgba(164, 181, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-ficha-glow:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 0 30px rgba(102, 126, 234, 0.7),
        0 0 60px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Estilo específico para valores de estatísticas */
.weapon-modal .stat-value {
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-align: center;
    padding: 5px 10px;
    border-radius: 8px;
    min-width: 80px;
    display: inline-block;
}

/* Estilo específico para CT */
.weapon-modal .stat-item:nth-child(2) .stat-value {
    color: #4db8ff; /* Azul para CT */
    background: rgba(77, 184, 255, 0.15);
    border: 1px solid rgba(77, 184, 255, 0.3);
    text-shadow: 0 0 8px rgba(77, 184, 255, 0.5);
}

/* Estilo específico para Críticos */
.weapon-modal .stat-item:nth-child(3) .stat-value {
    color: #ff6b9d; /* Rosa/Roxo para críticos */
    background: rgba(255, 107, 157, 0.15);
    border: 1px solid rgba(255, 107, 157, 0.3);
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.5);
}

/* Estilo para dano (já existente, mantido para referência) */
.weapon-modal .damage-highlight {
    color: #f8f66e !important; /* Amarelo para dano */
    text-shadow: 
        0 0 10px rgba(248, 246, 110, 0.7),
        0 0 20px rgba(248, 246, 110, 0.4) !important;
    background: rgba(40, 40, 20, 0.3) !important;
    padding: 8px 15px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(248, 246, 110, 0.3) !important;
}

/* Se ainda não estiver funcionando, use estilos mais específicos */
.weapon-modal .modal-stats .stat-item .stat-value {
    font-size: 1.5em !important;
    font-weight: bold !important;
    font-family: 'Courier New', monospace !important;
    display: block !important;
    margin-top: 5px !important;
}

/* Estilo alternativo usando IDs ou classes específicas */
.weapon-modal .modal-stats .stat-item:nth-of-type(1) .stat-value {
    /* Dano */
    color: #f8f66e !important;
    text-shadow: 0 0 8px rgba(248, 246, 110, 0.7) !important;
}

.weapon-modal .modal-stats .stat-item:nth-of-type(2) .stat-value {
    /* CT */
    color: #4db8ff !important;
    text-shadow: 0 0 8px rgba(77, 184, 255, 0.5) !important;
}

.weapon-modal .modal-stats .stat-item:nth-of-type(3) .stat-value {
    /* Críticos */
    color: #ff6b9d !important;
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.5) !important;
}

/* Se o problema for na tabela principal (não no modal) */
.weapons-table td:nth-child(3), /* CT na tabela */
.weapons-table td:nth-child(4) { /* Críticos na tabela */
    font-family: 'Courier New', monospace;
    text-align: center;
    font-weight: bold;
}

.weapons-table td:nth-child(3) {
    color: #4db8ff;
    text-shadow: 0 0 5px rgba(77, 184, 255, 0.3);
}

.weapons-table td:nth-child(4) {
    color: #ff6b9d;
    text-shadow: 0 0 5px rgba(255, 107, 157, 0.3);
}

/* Para a tabela no modal */
.weapon-modal .weapons-table td:nth-child(3),
.weapon-modal .weapons-table td:nth-child(4) {
    font-family: 'Courier New', monospace !important;
    font-weight: bold !important;
    text-align: center !important;
    padding: 10px !important;
}

/* ============================================= */
/* ESTILOS DE FALLBACK - APLICAR DIRETAMENTE */
/* ============================================= */

/* Se nada funcionar, use este estilo que aplica a todos os elementos */
.ct-value,
.criticos-value,
[class*="ct"],
[class*="critico"] {
    font-family: 'Courier New', monospace !important;
    font-weight: bold !important;
    color: #4db8ff !important;
    text-shadow: 0 0 5px rgba(77, 184, 255, 0.5) !important;
}

/* Estilo direto para o valor de críticos */
.weapon-modal .modal-stats .stat-item:last-child .stat-value {
    color: #ff6b9d !important;
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.5) !important;
    background: rgba(255, 107, 157, 0.1) !important;
    border: 1px solid rgba(255, 107, 157, 0.3) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 1.4em !important;
}

.btn-ficha-glow:active {
    transform: translateY(-1px) scale(1.02);
}

/* Garantir que os modificadores sejam visíveis */
.modal-mods {
    background: rgba(30, 30, 40, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid rgba(193, 240, 248, 0.2);
}

.modal-mods h4 {
    color: #b6fff3;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.mod-card {
    background: rgba(40, 40, 50, 0.9);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #b6fff3;
    transition: transform 0.3s ease;
}

.mod-card.joia {
    border-left-color: #ffd700;
    background: rgba(50, 40, 30, 0.9);
}

.mod-card:hover {
    transform: translateY(-5px);
}

.mod-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mod-card-header h5 {
    color: #d0d0d0;
    font-size: 1rem;
    margin: 0;
}

.mod-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(176, 255, 248, 0.2);
    color: #b6fff3;
    font-weight: bold;
}

.mod-card.joia .mod-badge {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.mod-card-body {
    color: #aaa;
    font-size: 0.9rem;
}

.mod-efeito {
    color: #affaea;
    font-weight: bold;
    margin: 8px 0;
    font-size: 0.95rem;
}

.mod-desc {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 5px 0 0;
}
/* ============================================= */
/* ESTILOS PARA O BADGE "ARMA RADIANTE" NO MODAL */
/* ============================================= */

.modal-radiante-badge {
    display: inline-block;
    background: linear-gradient(45deg, 
        rgba(255, 215, 0, 0.9) 0%, 
        rgba(255, 140, 0, 0.9) 50%, 
        rgba(255, 215, 0, 0.9) 100%);
    color: #8B0000; /* Vermelho escuro para contraste */
    padding: 8px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 3px solid rgba(255, 255, 255, 0.7);
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 140, 0, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulseRadianteBadge 2s infinite ease-in-out;
    margin: 10px 0;
    font-family: 'Cinzel Decorative', serif;
    transform: translateZ(0);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Efeito de brilho deslizante */
.modal-radiante-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transform: skewX(-20deg);
    animation: shineRadianteBadge 3s infinite linear;
    pointer-events: none;
}

/* Efeito de borda brilhante */
.modal-radiante-badge::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        #ffd700, #ff8c00, #ffd700, #ff8c00, #ffd700);
    border-radius: 28px;
    z-index: -1;
    animation: borderGlow 4s infinite linear;
    filter: blur(5px);
    opacity: 0.7;
}

/* Animação do badge */
@keyframes pulseRadianteBadge {
    0%, 100% {
        transform: scale(1) translateZ(0);
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 140, 0, 0.6),
            inset 0 0 15px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05) translateZ(0);
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 1),
            0 0 60px rgba(255, 140, 0, 0.8),
            inset 0 0 20px rgba(255, 255, 255, 0.5);
    }
}

@keyframes shineRadianteBadge {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Efeito hover */
.modal-radiante-badge:hover {
    animation: pulseRadianteBadgeHover 0.8s ease-in-out infinite alternate;
    cursor: pointer;
    transform: translateY(-2px) translateZ(0);
}

@keyframes pulseRadianteBadgeHover {
    from {
        transform: translateY(-2px) scale(1) translateZ(0);
        box-shadow: 
            0 0 25px rgba(255, 215, 0, 0.9),
            0 0 50px rgba(255, 140, 0, 0.7),
            inset 0 0 20px rgba(255, 255, 255, 0.4);
    }
    to {
        transform: translateY(-2px) scale(1.08) translateZ(0);
        box-shadow: 
            0 0 35px rgba(255, 215, 0, 1),
            0 0 70px rgba(255, 140, 0, 0.9),
            inset 0 0 25px rgba(255, 255, 255, 0.6);
    }
}

/* Posicionamento no cabeçalho do modal */
.modal-header .modal-radiante-badge {
    margin: 15px 0 20px 0;
    display: inline-block;
    float: none;
    clear: both;
}

/* Badge no corpo do modal */
.modal-body .modal-radiante-badge {
    margin: 15px auto;
    display: table;
}

/* Variantes para outras raridades (opcional) */
.modal-radiante-badge.pedra {
    background: linear-gradient(45deg, 
        rgba(139, 115, 85, 0.9) 0%, 
        rgba(101, 84, 62, 0.9) 100%);
    color: #d4b483;
    border-color: rgba(212, 180, 131, 0.7);
    box-shadow: 
        0 0 15px rgba(139, 115, 85, 0.8),
        inset 0 0 10px rgba(212, 180, 131, 0.3);
}

.modal-radiante-badge.ferro {
    background: linear-gradient(45deg, 
        rgba(168, 168, 168, 0.9) 0%, 
        rgba(128, 128, 128, 0.9) 100%);
    color: #2c2c2c;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 0 15px rgba(168, 168, 168, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.modal-radiante-badge.aco {
    background: linear-gradient(45deg, 
        rgba(74, 144, 226, 0.9) 0%, 
        rgba(42, 82, 190, 0.9) 100%);
    color: white;
    border-color: rgba(173, 216, 230, 0.7);
    box-shadow: 
        0 0 15px rgba(74, 144, 226, 0.8),
        inset 0 0 10px rgba(173, 216, 230, 0.3);
}

.modal-radiante-badge.final {
    background: linear-gradient(45deg, 
        rgba(155, 48, 255, 0.9) 0%, 
        rgba(128, 0, 128, 0.9) 100%);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 
        0 0 20px rgba(155, 48, 255, 0.9),
        0 0 40px rgba(128, 0, 128, 0.7),
        inset 0 0 15px rgba(255, 215, 0, 0.3);
    animation: pulseFinalBadge 2.5s infinite ease-in-out;
}

@keyframes pulseFinalBadge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(155, 48, 255, 0.9),
            0 0 40px rgba(128, 0, 128, 0.7),
            inset 0 0 15px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.07);
        box-shadow: 
            0 0 30px rgba(155, 48, 255, 1),
            0 0 60px rgba(128, 0, 128, 0.9),
            inset 0 0 20px rgba(255, 215, 0, 0.5);
    }
}

/* Badge pequeno para tabelas/lists */
.modal-radiante-badge.sm {
    padding: 4px 12px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-width: 2px;
}

/* Badge grande para destaque */
.modal-radiante-badge.lg {
    padding: 12px 35px;
    font-size: 1.3rem;
    letter-spacing: 3px;
    border-width: 4px;
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-radiante-badge {
        padding: 6px 20px;
        font-size: 1rem;
        letter-spacing: 1.5px;
        border-width: 2px;
    }
    
    .modal-radiante-badge.lg {
        padding: 10px 25px;
        font-size: 1.1rem;
    }
    
    .modal-header .modal-radiante-badge {
        margin: 10px 0 15px 0;
    }
}

@media (max-width: 480px) {
    .modal-radiante-badge {
        padding: 5px 15px;
        font-size: 0.9rem;
        letter-spacing: 1px;
        border-width: 2px;
    }
    
    .modal-radiante-badge::after {
        filter: blur(3px);
    }
}

/* Para usar com diferentes contextos */
.modal-header h3 + .modal-radiante-badge {
    margin-left: 15px;
    vertical-align: middle;
}

.modal-stats .modal-radiante-badge {
    margin: 10px 0;
    grid-column: 1 / -1;
    justify-self: center;
}

/* Badge com ícone */
.modal-radiante-badge.with-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

.modal-radiante-badge.with-icon i {
    font-size: 1.2em;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.modal-radiante-badge.with-icon i.fa-sun {
    color: #ffd700;
    animation: spinSun 4s infinite linear;
}

@keyframes spinSun {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-radiante-badge.with-icon i.fa-fire {
    color: #ff4500;
    animation: flickerFire 1s infinite alternate;
}

@keyframes flickerFire {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}
.ficha-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(102, 126, 234, 0.4) 0%, 
        rgba(118, 75, 162, 0.2) 50%, 
        transparent 70%);
    animation: pulse-aura 2s infinite ease-in-out;
    z-index: -1;
    border-radius: 25px;
}

@keyframes pulse-aura {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Seção de Forja */
.forja-section {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
    background: linear-gradient(135deg, 
        rgba(25, 25, 25, 0.9), 
        rgba(35, 35, 35, 0.85),
        rgba(25, 25, 25, 0.9));
    border-radius: 30px;
    border: 3px solid rgba(193, 240, 248, 0.3);
    box-shadow: 
        0 0 30px rgba(193, 240, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.forja-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(193, 240, 248, 0.8), 
        transparent);
    animation: slide-glow 3s infinite linear;
}

@keyframes slide-glow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.forja-titulo-container {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.forja-titulo {
    color: #b6fff3;
    font-size: 2.5rem;
    font-family: 'Cinzel Decorative', serif;
    text-shadow: 
        0 0 15px rgba(176, 255, 248, 0.7),
        0 0 30px rgba(176, 255, 248, 0.4);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.forja-titulo i {
    animation: float-icon 3s ease-in-out infinite;
}

.forja-titulo i:first-child {
    animation-delay: 0s;
}

.forja-titulo i:last-child {
    animation-delay: 1.5s;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.forja-descricao {
    color: #d0d0d0;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Merriweather', serif;
}

/* Container principal da forja */
.forja-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 1024px) {
    .forja-container {
        grid-template-columns: 1fr;
    }
}

/* Formulário de criação */
.forja-form-container {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(193, 240, 248, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(193, 240, 248, 0.1);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: #affaea;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
}

.form-section h3 i {
    color: #b6fff3;
}

/* Botões de raridade */
.raridade-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.btn-raridade {
    background: linear-gradient(135deg, 
        rgba(40, 40, 40, 0.9), 
        rgba(50, 50, 50, 0.9));
    border: 2px solid rgba(193, 240, 248, 0.2);
    border-radius: 15px;
    padding: 15px 10px;
    color: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
}

.btn-raridade:hover {
    transform: translateY(-3px);
    border-color: rgba(193, 240, 248, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-raridade.active {
    border-color: #b6fff3;
    background: linear-gradient(135deg, 
        rgba(28, 68, 87, 0.9), 
        rgba(28, 68, 87, 0.7));
    box-shadow: 0 0 20px rgba(176, 255, 248, 0.4);
    color: #b6fff3;
}

.btn-raridade i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.btn-raridade span {
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-raridade small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Estilos específicos para cada raridade */
.btn-raridade[data-raridade="pedra"]:hover,
.btn-raridade[data-raridade="pedra"].active {
    border-color: #8b7355;
    color: #8b7355;
}

.btn-raridade[data-raridade="ferro"]:hover,
.btn-raridade[data-raridade="ferro"].active {
    border-color: #a8a8a8;
    color: #a8a8a8;
}

.btn-raridade[data-raridade="aco"]:hover,
.btn-raridade[data-raridade="aco"].active {
    border-color: #4a90e2;
    color: #4a90e2;
}

.btn-raridade[data-raridade="radiante"]:hover,
.btn-raridade[data-raridade="radiante"].active {
    border-color: #ffd700;
    color: #ffd700;
}

.btn-raridade[data-raridade="final"]:hover,
.btn-raridade[data-raridade="final"].active {
    border-color: #9b30ff;
    color: #9b30ff;
}

/* Formulário de detalhes */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #affaea;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cinzel', serif;
}

.form-input, .form-textarea {
    background: rgba(50, 50, 50, 0.8);
    border: 1px solid rgba(193, 240, 248, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    color: #d0d0d0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Merriweather', serif;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #b6fff3;
    box-shadow: 0 0 10px rgba(176, 255, 248, 0.2);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.ct-group {
    position: relative;
}

.ct-group small {
    position: absolute;
    bottom: -18px;
    left: 0;
    color: #888;
    font-size: 0.8rem;
}

/* Container de modificadores */
.modificadores-container {
    margin-top: 20px;
}

.modificadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(40, 40, 40, 0.5);
    border-radius: 10px;
}

.modificador-item {
    background: rgba(60, 60, 60, 0.7);
    border: 2px solid rgba(193, 240, 248, 0.1);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.modificador-item:hover {
    border-color: rgba(193, 240, 248, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modificador-item.selected {
    border-color: #b6fff3;
    background: rgba(28, 68, 87, 0.3);
    box-shadow: 0 0 15px rgba(176, 255, 248, 0.3);
}

.modificador-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modificador-header h4 {
    color: #d0d0d0;
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Cinzel', serif;
}

.modificador-tipo {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(193, 240, 248, 0.2);
    color: #b6fff3;
    font-weight: bold;
}

.modificador-efeito {
    color: #affaea;
    font-size: 0.8rem;
    margin: 5px 0;
    font-weight: bold;
}

.modificador-desc {
    color: #aaa;
    font-size: 0.75rem;
    margin: 5px 0 0;
    line-height: 1.3;
}

.modificador-selected {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #b6fff3;
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.joias-section, .radiante-section {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.joias-section h4, .radiante-section h4 {
    color: #ffd700;
    font-size: 1rem;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.radiante-section h4 {
    color: #ff6b6b;
}

.joia-item.selected {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.radiante-item.selected {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.mod-limit-info {
    display: block;
    margin-top: 10px;
    color: #888;
    font-size: 0.8rem;
    text-align: center;
}

.mod-limit-info span {
    color: #b6fff3;
    font-weight: bold;
}

/* Ações do formulário */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn-criar-arma, .btn-limpar {
    padding: 12px 25px;
    border-radius: 20px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
}

.btn-criar-arma {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-criar-arma:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-limpar {
    background: rgba(60, 60, 60, 0.8);
    color: #d0d0d0;
    border: 2px solid rgba(193, 240, 248, 0.2);
}

.btn-limpar:hover {
    background: rgba(80, 80, 80, 0.8);
    border-color: rgba(193, 240, 248, 0.4);
    transform: translateY(-3px);
}

/* Preview da arma */
.forja-preview {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(193, 240, 248, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.forja-preview h3 {
    color: #affaea;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
}

.preview-card {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 15px;
    padding: 20px;
    min-height: 300px;
    border: 2px solid rgba(193, 240, 248, 0.1);
    margin-bottom: 30px;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
}

.preview-placeholder i {
    margin-bottom: 15px;
    color: #444;
}

.preview-content {
    color: #d0d0d0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(193, 240, 248, 0.1);
}

.preview-header h4 {
    color: #b6fff3;
    font-size: 1.4rem;
    margin: 0;
    font-family: 'Cinzel Decorative', serif;
}

.preview-raridade {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.preview-raridade.pedra {
    background: rgba(139, 115, 85, 0.3);
    color: #8b7355;
    border: 1px solid #8b7355;
}

.preview-raridade.ferro {
    background: rgba(168, 168, 168, 0.3);
    color: #a8a8a8;
    border: 1px solid #a8a8a8;
}

.preview-raridade.aco {
    background: rgba(74, 144, 226, 0.3);
    color: #4a90e2;
    border: 1px solid #4a90e2;
}

.preview-raridade.radiante {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.preview-raridade.final {
    background: rgba(155, 48, 255, 0.3);
    color: #9b30ff;
    border: 1px solid #9b30ff;
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.preview-stat {
    background: rgba(50, 50, 50, 0.5);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(193, 240, 248, 0.1);
}

.preview-stat span {
    color: #888;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 5px;
}

.preview-stat strong {
    color: #affaea;
    font-size: 1rem;
}

.preview-passiva {
    background: rgba(28, 68, 87, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #b6fff3;
}

.preview-passiva.radiante {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: #ffd700;
}

.preview-passiva.tek {
    background: rgba(155, 48, 255, 0.1);
    border-left-color: #9b30ff;
}

.preview-passiva span {
    color: #b6fff3;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    font-family: 'Cinzel', serif;
}

.preview-passiva.radiante span {
    color: #ffd700;
}

.preview-passiva.tek span {
    color: #9b30ff;
}

.preview-desc {
    background: rgba(60, 60, 60, 0.5);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.preview-desc span {
    color: #b6fff3;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.preview-mods {
    background: rgba(40, 40, 40, 0.7);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(193, 240, 248, 0.2);
}

.preview-mods h5 {
    color: #affaea;
    margin: 0 0 10px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-mods ul {
    margin: 0;
    padding-left: 20px;
}

.preview-mods li {
    margin-bottom: 5px;
    font-size: 0.85rem;
    line-height: 1.3;
}

.preview-mods li.joia-mod {
    color: #ffd700;
}

/* Armás Criadas */
.armas-criadas-section {
    margin-top: 30px;
}

.armas-criadas-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(40, 40, 40, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(193, 240, 248, 0.1);
}

.armas-criadas-empty, .armas-criadas-error {
    text-align: center;
    padding: 30px;
    color: #666;
}

.armas-criadas-empty i, .armas-criadas-error i {
    margin-bottom: 15px;
    display: block;
    font-size: 2rem;
}

.armas-criadas-error i {
    color: #ff6b6b;
}

.arma-criada-card {
    background: rgba(60, 60, 60, 0.7);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid rgba(193, 240, 248, 0.1);
    transition: all 0.3s ease;
}

.arma-criada-card:hover {
    border-color: rgba(193, 240, 248, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.arma-criada-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.arma-criada-header h4 {
    color: #d0d0d0;
    font-size: 1rem;
    margin: 0;
    font-family: 'Cinzel', serif;
}

.arma-criada-raridade {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.arma-criada-raridade.pedra {
    background: rgba(139, 115, 85, 0.3);
    color: #8b7355;
    border: 1px solid #8b7355;
}

.arma-criada-raridade.ferro {
    background: rgba(168, 168, 168, 0.3);
    color: #a8a8a8;
    border: 1px solid #a8a8a8;
}

.arma-criada-raridade.aco {
    background: rgba(74, 144, 226, 0.3);
    color: #4a90e2;
    border: 1px solid #4a90e2;
}

.arma-criada-raridade.radiante {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.arma-criada-raridade.final {
    background: rgba(155, 48, 255, 0.3);
    color: #9b30ff;
    border: 1px solid #9b30ff;
}

.arma-criada-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.arma-criada-stat {
    color: #aaa;
    font-size: 0.85rem;
}

.arma-criada-stat strong {
    color: #affaea;
}

.arma-criada-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-arma-action {
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-arma-action.ver {
    background: rgba(74, 144, 226, 0.3);
    color: #4a90e2;
}

.btn-arma-action.editar {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.btn-arma-action.adicionar {
    background: rgba(76, 217, 100, 0.3);
    color: #4cd964;
}

.btn-arma-action.remover {
    background: rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

.btn-arma-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.arma-criada-footer {
    text-align: right;
}

.arma-criada-footer small {
    color: #666;
    font-size: 0.7rem;
}

/* Tabela de Modificadores */
.modificadores-tabela-section {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
    background: linear-gradient(135deg, 
        rgba(25, 25, 25, 0.9), 
        rgba(35, 35, 35, 0.85));
    border-radius: 30px;
    border: 3px solid rgba(193, 240, 248, 0.3);
    box-shadow: 0 0 30px rgba(193, 240, 248, 0.2);
}

.tabela-modificadores-container h3 {
    color: #b6fff3;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Cinzel Decorative', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tabela-modificadores {
    overflow-x: auto;
}

.mod-tabela {
    width: 100%;
    border-collapse: collapse;
    background: rgba(40, 40, 40, 0.7);
    border-radius: 15px;
    overflow: hidden;
}

.mod-tabela thead {
    background: linear-gradient(45deg, 
        rgba(28, 68, 87, 0.9), 
        rgba(28, 68, 87, 0.7));
}

.mod-tabela th {
    color: #affaea;
    padding: 15px;
    text-align: left;
    font-size: 1rem;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(193, 240, 248, 0.3);
}

.mod-tabela td {
    padding: 12px 15px;
    color: #d0d0d0;
    border-bottom: 1px solid rgba(193, 240, 248, 0.1);
    font-size: 0.9rem;
}

.mod-tabela tr:hover {
    background: rgba(60, 60, 60, 0.5);
}

.mod-tabela tr:last-child td {
    border-bottom: none;
}

.mod-tipo-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.mod-tipo-badge.pedra {
    background: rgba(139, 115, 85, 0.3);
    color: #8b7355;
    border: 1px solid #8b7355;
}

.mod-tipo-badge.ferro {
    background: rgba(168, 168, 168, 0.3);
    color: #a8a8a8;
    border: 1px solid #a8a8a8;
}

.mod-tipo-badge.aco {
    background: rgba(74, 144, 226, 0.3);
    color: #4a90e2;
    border: 1px solid #4a90e2;
}

.mod-tipo-badge.radiante {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.mod-tipo-badge.joia {
    background: rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    border: 1px solid #ff3b30;
}

.mod-efeito {
    color: #affaea;
    font-weight: bold;
}

.mod-desc {
    color: #aaa;
    font-size: 0.85rem;
}

.joias-header {
    background: rgba(255, 59, 48, 0.1) !important;
    text-align: center;
}

.joias-header h4 {
    color: #ff3b30;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
    .forja-section {
        width: 95%;
        padding: 20px;
    }
    
    .forja-titulo {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .raridade-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .modificadores-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .mod-tabela {
        font-size: 0.8rem;
    }
    
    .mod-tabela th, .mod-tabela td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .forja-titulo {
        font-size: 1.5rem;
    }
    
    .raridade-buttons {
        grid-template-columns: 1fr;
    }
    
    .btn-ficha-glow {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .btn-criar-arma, .btn-limpar {
        width: 100%;
        justify-content: center;
    }
}

/* Células específicas */
.weapon-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #C1F0F8;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.weapon-name-cell strong {
    color: #C1F0F8;
    text-shadow: 0 0 5px rgba(193, 240, 248, 0.3);
}

.weapon-name-cell:hover strong {
    color: white;
    text-shadow: 0 0 15px rgba(193, 240, 248, 0.8);
}

.radiante-badge {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    color: #ffc107;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    border: 1px solid rgba(255, 193, 7, 0.5);
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.damage-cell {
    color: #f8f66e;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(248, 246, 110, 0.5);
    background: rgba(40, 40, 40, 0.3);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(248, 246, 110, 0.3);
}

/* Botões de ação na tabela */
.weapons-table td:last-child {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.btn-detalhes, .btn-adicionar {
    background: rgba(40, 40, 40, 0.8);
    color: #C1F0F8;
    border: 2px solid rgba(193, 240, 248, 0.3);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.btn-detalhes:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
}

.btn-adicionar:hover {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    color: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

/* Mensagem quando não há armas */
.no-weapons-message {
    background: rgba(16, 16, 25, 0.8);
    border: 2px dashed rgba(193, 240, 248, 0.3);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    color: #d6feff;
    margin-top: 20px;
}

.no-weapons-message p {
    font-size: 1.2em;
    font-style: italic;
    color: rgba(214, 254, 255, 0.7);
}

/* Efeitos de brilho na tabela */
.weapons-table-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(193, 240, 248, 0.05) 0%, rgba(193, 240, 248, 0) 70%);
    animation: pulse-aura 15s infinite ease-in-out alternate;
    z-index: -1;
}

/* Animações */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-aura {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes brilhoDeslizante {
    0% { left: -75%; }
    50% { left: 125%; }
    100% { left: 125%; }
}

/* Responsividade */
@media (max-width: 768px) {
    .weapons-table-container {
        width: 95%;
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .era-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .weapons-table {
        display: block;
        overflow-x: auto;
    }
    
    .weapons-table th,
    .weapons-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .weapon-name-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .btn-detalhes, .btn-adicionar {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .era-title {
        font-size: 1.5rem;
    }
    
    .weapons-table th {
        font-size: 1rem;
    }
    
    .weapons-table td {
        padding: 10px 5px;
        font-size: 0.85rem;
    }
    
    .radiante-badge {
        font-size: 0.7em;
        padding: 2px 8px;
    }
    
    .no-weapons-message {
        padding: 30px 20px;
    }
    
    .no-weapons-message p {
        font-size: 1em;
    }
}

/* Efeito de brilho nos botões da tabela */
.weapons-table tr:hover .btn-detalhes,
.weapons-table tr:hover .btn-adicionar {
    background: rgba(60, 60, 60, 0.9);
    border-color: rgba(193, 240, 248, 0.5);
}

/* Estilo para colunas específicas */
.weapons-table td:nth-child(2) { /* Dano */
    color: #f8f66e;
    font-weight: bold;
    font-family: monospace;
}

.weapons-table td:nth-child(3), /* CT */
.weapons-table td:nth-child(4) { /* Críticos */
    font-family: monospace;
    color: #C1F0F8;
    text-align: center;
}

/* Ícones nos botões */
.btn-detalhes i,
.btn-adicionar i {
    transition: transform 0.3s ease;
}

.btn-detalhes:hover i {
    transform: scale(1.2);
}

.btn-adicionar:hover i {
    transform: scale(1.2) rotate(90deg);
}

/* ============================================= */
/* ESTILOS DO MODAL DE DETALHES DA ARMA */
/* ============================================= */

/* Overlay do modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Conteúdo do modal */
.modal-content {
    background: linear-gradient(135deg, 
        rgba(20, 20, 30, 0.95) 0%, 
        rgba(30, 20, 40, 0.9) 50%, 
        rgba(20, 30, 40, 0.95) 100%);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 25px;
    border: 3px solid rgba(193, 240, 248, 0.3);
    box-shadow: 
        0 0 40px rgba(193, 240, 248, 0.4),
        0 0 80px rgba(176, 255, 248, 0.2),
        inset 0 0 20px rgba(193, 240, 248, 0.1);
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Botão fechar */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, 
        rgba(90, 3, 78, 0.8), 
        rgba(42, 4, 59, 0.9));
    color: #ffd7f2;
    border: 2px solid rgba(248, 193, 210, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(248, 193, 210, 0.3);
}

.close-modal:hover {
    background: linear-gradient(45deg, 
        rgba(120, 3, 103, 0.9), 
        rgba(62, 4, 84, 1));
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 25px rgba(248, 193, 210, 0.5);
}

/* Cabeçalho do modal */
.modal-header {
    background: linear-gradient(90deg, 
        rgba(16, 16, 25, 0.9), 
        rgba(20, 10, 30, 0.8), 
        rgba(16, 16, 25, 0.9));
    padding: 30px 40px 20px 40px;
    border-bottom: 2px solid rgba(193, 240, 248, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-header h3 {
    color: #b6fff3;
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    text-shadow: 
        0 0 10px rgba(176, 255, 248, 0.7),
        0 0 20px rgba(176, 255, 248, 0.4),
        0 0 40px rgba(176, 255, 248, 0.2);
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 1px;
}

.modal-radiante-badge {
    display: inline-block;
    background: linear-gradient(45deg, 
        rgba(255, 193, 7, 0.3), 
        rgba(255, 149, 0, 0.3));
    color: #ffc107;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid rgba(255, 193, 7, 0.6);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 0 15px rgba(255, 193, 7, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    animation: pulseRadiante 2s infinite alternate;
}

@keyframes pulseRadiante {
    from {
        box-shadow: 
            0 0 15px rgba(255, 193, 7, 0.3),
            inset 0 0 10px rgba(255, 255, 255, 0.1);
    }
    to {
        box-shadow: 
            0 0 25px rgba(255, 193, 7, 0.6),
            inset 0 0 15px rgba(255, 255, 255, 0.2);
    }
}

/* Corpo do modal */
.modal-body {
    padding: 30px 40px;
}

/* Imagem da arma */
.modal-weapon-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 15px;
    border: 3px solid rgba(193, 240, 248, 0.4);
    box-shadow: 
        0 0 20px rgba(193, 240, 248, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    background: rgba(10, 10, 20, 0.5);
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-weapon-image:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 30px rgba(193, 240, 248, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Estatísticas */
.modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(16, 16, 25, 0.7);
    padding: 25px;
    border-radius: 20px;
    border: 2px solid rgba(193, 240, 248, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(25, 25, 35, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(193, 240, 248, 0.15);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(30, 30, 40, 0.95);
    border-color: rgba(193, 240, 248, 0.3);
    transform: translateY(-5px);
}

.stat-label {
    color: #b6fff3;
    font-size: 1.1em;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(176, 255, 248, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.damage-highlight {
    color: #f8f66e;
    text-shadow: 
        0 0 10px rgba(248, 246, 110, 0.7),
        0 0 20px rgba(248, 246, 110, 0.4);
    background: rgba(40, 40, 20, 0.3);
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid rgba(248, 246, 110, 0.3);
}

/* Passivas */
.modal-passives {
    margin-bottom: 30px;
}

.passive-item {
    background: rgba(16, 16, 25, 0.8);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 5px solid rgba(46, 204, 113, 0.5);
    border: 2px solid rgba(193, 240, 248, 0.2);
}

.passive-item.radiante {
    border-left: 5px solid rgba(255, 193, 7, 0.5);
    background: linear-gradient(135deg, 
        rgba(16, 16, 25, 0.8) 0%,
        rgba(30, 20, 25, 0.9) 100%);
    border-color: rgba(255, 193, 7, 0.3);
}

.passive-item h4 {
    color: #2ecc71;
    font-size: 1.4em;
    margin: 0 0 15px 0;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
    font-family: 'Cinzel', serif;
}

.passive-item.radiante h4 {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.7);
}

.passive-item p {
    color: #d6feff;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 0 3px rgba(214, 254, 255, 0.3);
    padding-left: 10px;
    border-left: 2px solid rgba(214, 254, 255, 0.2);
}

/* Descrição */
.modal-description {
    background: rgba(16, 16, 25, 0.8);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(193, 240, 248, 0.2);
}

.modal-description h4 {
    color: #C1F0F8;
    font-size: 1.4em;
    margin: 0 0 15px 0;
    text-shadow: 0 0 10px rgba(193, 240, 248, 0.5);
    font-family: 'Cinzel', serif;
}

.modal-description p {
    color: #e0e0e0;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 0 3px rgba(193, 240, 248, 0.1);
}

/* Ações do modal */
.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 2px solid rgba(193, 240, 248, 0.1);
}

.btn-adicionar-modal {
    background: linear-gradient(45deg, 
        rgba(46, 204, 113, 0.8), 
        rgba(39, 174, 96, 0.9));
    color: white;
    border: 2px solid rgba(46, 204, 113, 0.5);
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
}

.btn-adicionar-modal:hover {
    background: linear-gradient(45deg, 
        rgba(52, 235, 123, 0.9), 
        rgba(46, 204, 113, 1));
    border-color: #2ecc71;
    transform: translateY(-5px);
    box-shadow: 
        0 0 25px rgba(46, 204, 113, 0.6),
        0 0 40px rgba(46, 204, 113, 0.3);
}

.btn-adicionar-modal:active {
    transform: translateY(-2px);
}

.btn-fechar-modal {
    background: linear-gradient(45deg, 
        rgba(96, 5, 216, 0.8), 
        rgba(225, 0, 255, 0.8));
    color: #ffd7f2;
    border: 2px solid rgba(248, 193, 210, 0.5);
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(248, 193, 210, 0.3);
}

.btn-fechar-modal:hover {
    background: linear-gradient(45deg, 
        rgba(120, 5, 255, 0.9), 
        rgba(255, 0, 255, 0.9));
    border-color: rgba(248, 193, 210, 0.8);
    transform: translateY(-5px);
    box-shadow: 
        0 0 25px rgba(248, 193, 210, 0.6),
        0 0 40px rgba(248, 193, 210, 0.3);
}

.btn-fechar-modal:active {
    transform: translateY(-2px);
}

/* Efeitos de brilho no modal */
.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
        rgba(193, 240, 248, 0.05) 0%, 
        rgba(193, 240, 248, 0) 70%);
    animation: pulse-aura 15s infinite ease-in-out alternate;
    z-index: -1;
}

@keyframes pulse-aura {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        padding: 0;
    }
    
    .modal-header {
        padding: 25px 20px 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 2rem;
        text-align: center;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .modal-weapon-image {
        max-width: 100%;
        height: 250px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-adicionar-modal,
    .btn-fechar-modal {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .modal-header h3 {
        font-size: 1.6rem;
    }
    
    .modal-radiante-badge {
        font-size: 0.9em;
        padding: 6px 15px;
    }
    
    .modal-weapon-image {
        height: 200px;
    }
    
    .stat-label {
        font-size: 1em;
    }
    
    .stat-value {
        font-size: 1.3em;
    }
    
    .passive-item,
    .modal-description {
        padding: 15px;
    }
    
    .passive-item h4,
    .modal-description h4 {
        font-size: 1.2em;
    }
}

/* Efeito de brilho deslizante no cabeçalho */
.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 20%;
    height: 100%;
    background: linear-gradient(120deg, 
        rgba(255,255,255,0) 0%, 
        rgba(66, 7, 204, 0.836) 50%, 
        rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: brilhoDeslizante 5s infinite;
    pointer-events: none;
}

@keyframes brilhoDeslizante {
    0% { left: -75%; }
    50% { left: 125%; }
    100% { left: 125%; }
}

/* Scrollbar personalizada para o modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(16, 16, 25, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, 
        rgba(96, 5, 216, 0.8), 
        rgba(225, 0, 255, 0.8));
    border-radius: 4px;
    border: 1px solid rgba(248, 193, 210, 0.3);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, 
        rgba(120, 5, 255, 0.9), 
        rgba(255, 0, 255, 0.9));
}


/* ============================================= */
/* ESTILOS COMPLETOS PARA OS MODAIS DE ARMAS */
/* ============================================= */

/* Estilo para todos os modais de armas */
.weapon-modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    animation: modalFadeIn 0.3s ease-out;
    overflow: hidden;
}

/* Quando o modal está visível */
.weapon-modal[style*="display: block"],
.weapon-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

/* Conteúdo do Modal */
.weapon-modal .modal-content {
    background: linear-gradient(135deg, 
        rgba(20, 20, 30, 0.98) 0%, 
        rgba(30, 20, 40, 0.95) 50%, 
        rgba(20, 30, 40, 0.98) 100%);
    margin: 5% auto;
    padding: 35px 40px;
    border: 3px solid rgba(193, 240, 248, 0.4);
    width: 85%;
    max-width: 750px;
    max-height: 85vh;
    border-radius: 30px;
    box-shadow: 
        0 0 40px rgba(193, 240, 248, 0.5),
        0 0 80px rgba(176, 255, 248, 0.3),
        inset 0 0 20px rgba(193, 240, 248, 0.1);
    position: relative;
    animation: modalSlideIn 0.5s ease-out;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Cinzel', serif;
    transform: translateZ(0);
}

/* Botão Fechar */
.weapon-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #C1F0F8;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(90, 3, 78, 0.3);
    border: 2px solid rgba(248, 193, 210, 0.4);
    z-index: 10;
}

.weapon-modal .close-modal:hover,
.weapon-modal .close-modal:focus {
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    transform: rotate(90deg) scale(1.1);
    background: rgba(120, 3, 103, 0.5);
    border-color: rgba(255, 107, 107, 0.7);
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.5);
}

/* Cabeçalho do Modal */
.weapon-modal .modal-header {
    background: linear-gradient(90deg, 
        rgba(16, 16, 25, 0.9), 
        rgba(20, 10, 30, 0.8), 
        rgba(16, 16, 25, 0.9));
    padding: 25px 30px 20px 30px;
    border-bottom: 2px solid rgba(193, 240, 248, 0.3);
    position: relative;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
}

.weapon-modal .modal-header h3 {
    color: #b6fff3;
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    text-shadow: 
        0 0 10px rgba(176, 255, 248, 0.7),
        0 0 20px rgba(176, 255, 248, 0.4),
        0 0 40px rgba(176, 255, 248, 0.2);
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 1px;
    text-align: center;
}

/* Badge Radiante */
.weapon-modal .modal-radiante-badge {
    display: inline-block;
    background: linear-gradient(45deg, 
        rgba(255, 193, 7, 0.3), 
        rgba(255, 149, 0, 0.3));
    color: #ffc107;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1.1em;
    font-weight: bold;
    border: 2px solid rgba(255, 193, 7, 0.6);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 0 15px rgba(255, 193, 7, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    animation: pulseRadiante 2s infinite alternate;
}

/* Corpo do Modal */
.weapon-modal .modal-body {
    padding: 30px;
    background: rgba(16, 16, 25, 0.5);
    border-radius: 0 0 25px 25px;
}

/* Imagem da Arma */
.weapon-modal .modal-weapon-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 15px;
    border: 3px solid rgba(193, 240, 248, 0.4);
    box-shadow: 
        0 0 20px rgba(193, 240, 248, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    background: rgba(10, 10, 20, 0.5);
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.weapon-modal .modal-weapon-image:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 30px rgba(193, 240, 248, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Estatísticas */
.weapon-modal .modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(16, 16, 25, 0.7);
    padding: 25px;
    border-radius: 20px;
    border: 2px solid rgba(193, 240, 248, 0.2);
}

.weapon-modal .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(25, 25, 35, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(193, 240, 248, 0.15);
    transition: all 0.3s ease;
}

.weapon-modal .stat-item:hover {
    background: rgba(30, 30, 40, 0.95);
    border-color: rgba(193, 240, 248, 0.3);
    transform: translateY(-5px);
}

.weapon-modal .stat-label {
    color: #b6fff3;
    font-size: 1.1em;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(176, 255, 248, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.weapon-modal .stat-value {
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.weapon-modal .damage-highlight {
    color: #f8f66e;
    text-shadow: 
        0 0 10px rgba(248, 246, 110, 0.7),
        0 0 20px rgba(248, 246, 110, 0.4);
    background: rgba(40, 40, 20, 0.3);
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid rgba(248, 246, 110, 0.3);
}

/* Passivas */
.weapon-modal .modal-passives {
    margin-bottom: 30px;
}

.weapon-modal .passive-item {
    background: rgba(16, 16, 25, 0.8);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 5px solid rgba(46, 204, 113, 0.5);
    border: 2px solid rgba(193, 240, 248, 0.2);
}

.weapon-modal .passive-item.radiante {
    border-left: 5px solid rgba(255, 193, 7, 0.5);
    background: linear-gradient(135deg, 
        rgba(16, 16, 25, 0.8) 0%,
        rgba(30, 20, 25, 0.9) 100%);
    border-color: rgba(255, 193, 7, 0.3);
}

.weapon-modal .passive-item h4 {
    color: #2ecc71;
    font-size: 1.4em;
    margin: 0 0 15px 0;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
    font-family: 'Cinzel', serif;
}

.weapon-modal .passive-item.radiante h4 {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.7);
}

.weapon-modal .passive-item p {
    color: #d6feff;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 0 3px rgba(214, 254, 255, 0.3);
    padding-left: 10px;
    border-left: 2px solid rgba(214, 254, 255, 0.2);
}

/* Descrição */
.weapon-modal .modal-description {
    background: rgba(16, 16, 25, 0.8);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(193, 240, 248, 0.2);
}

.weapon-modal .modal-description h4 {
    color: #C1F0F8;
    font-size: 1.4em;
    margin: 0 0 15px 0;
    text-shadow: 0 0 10px rgba(193, 240, 248, 0.5);
    font-family: 'Cinzel', serif;
}

.weapon-modal .modal-description p {
    color: #e0e0e0;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 0 3px rgba(193, 240, 248, 0.1);
}

/* Ações do Modal */
.weapon-modal .modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 2px solid rgba(193, 240, 248, 0.1);
}

/* Botão Adicionar */
.weapon-modal .btn-adicionar-modal {
    background: linear-gradient(45deg, 
        rgba(46, 204, 113, 0.8), 
        rgba(39, 174, 96, 0.9));
    color: white;
    border: 2px solid rgba(46, 204, 113, 0.5);
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
}

.weapon-modal .btn-adicionar-modal:hover {
    background: linear-gradient(45deg, 
        rgba(52, 235, 123, 0.9), 
        rgba(46, 204, 113, 1));
    border-color: #2ecc71;
    transform: translateY(-5px);
    box-shadow: 
        0 0 25px rgba(46, 204, 113, 0.6),
        0 0 40px rgba(46, 204, 113, 0.3);
}

.weapon-modal .btn-adicionar-modal:active {
    transform: translateY(-2px);
}

/* Botão Fechar Modal */
.weapon-modal .btn-fechar-modal {
    background: linear-gradient(45deg, 
        rgba(96, 5, 216, 0.8), 
        rgba(225, 0, 255, 0.8));
    color: #ffd7f2;
    border: 2px solid rgba(248, 193, 210, 0.5);
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(248, 193, 210, 0.3);
}

.weapon-modal .btn-fechar-modal:hover {
    background: linear-gradient(45deg, 
        rgba(120, 5, 255, 0.9), 
        rgba(255, 0, 255, 0.9));
    border-color: rgba(248, 193, 210, 0.8);
    transform: translateY(-5px);
    box-shadow: 
        0 0 25px rgba(248, 193, 210, 0.6),
        0 0 40px rgba(248, 193, 210, 0.3);
}

.weapon-modal .btn-fechar-modal:active {
    transform: translateY(-2px);
}

/* ============================================= */
/* ANIMAÇÕES */
/* ============================================= */

@keyframes modalFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-60px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseRadiante {
    from {
        box-shadow: 
            0 0 15px rgba(255, 193, 7, 0.3),
            inset 0 0 10px rgba(255, 255, 255, 0.1);
    }
    to {
        box-shadow: 
            0 0 25px rgba(255, 193, 7, 0.6),
            inset 0 0 15px rgba(255, 255, 255, 0.2);
    }
}

@keyframes pulse-aura {
    0%, 100% { 
        opacity: 0.8; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1);
    }
}

/* ============================================= */
/* SCROLLBAR PERSONALIZADA */
/* ============================================= */

.weapon-modal .modal-content::-webkit-scrollbar {
    width: 10px;
    border-radius: 10px;
}

.weapon-modal .modal-content::-webkit-scrollbar-track {
    background: rgba(16, 16, 25, 0.4);
    border-radius: 10px;
    margin: 5px;
}

.weapon-modal .modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, 
        rgba(96, 5, 216, 0.8), 
        rgba(225, 0, 255, 0.8));
    border-radius: 10px;
    border: 2px solid rgba(248, 193, 210, 0.3);
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
}

.weapon-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, 
        rgba(120, 5, 255, 0.9), 
        rgba(255, 0, 255, 0.9));
}

/* ============================================= */
/* RESPONSIVIDADE */
/* ============================================= */

@media (max-width: 1024px) {
    .weapon-modal .modal-content {
        width: 90%;
        padding: 30px;
        margin: 10% auto;
    }
    
    .weapon-modal .modal-header h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .weapon-modal {
        padding: 20px;
    }
    
    .weapon-modal .modal-content {
        width: 95%;
        padding: 25px;
        margin: 15% auto;
        max-height: 90vh;
        border-radius: 25px;
    }
    
    .weapon-modal .modal-header {
        padding: 20px 15px;
    }
    
    .weapon-modal .modal-header h3 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .weapon-modal .close-modal {
        top: 15px;
        right: 20px;
        font-size: 35px;
        width: 35px;
        height: 35px;
    }
    
    .weapon-modal .modal-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .weapon-modal .modal-weapon-image {
        max-width: 100%;
        height: 250px;
    }
    
    .weapon-modal .modal-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .weapon-modal .btn-adicionar-modal,
    .weapon-modal .btn-fechar-modal {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .weapon-modal .modal-content {
        width: 98%;
        padding: 20px 15px;
        margin: 20% auto;
        border-radius: 20px;
    }
    
    .weapon-modal .modal-header h3 {
        font-size: 1.5rem;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    
    .weapon-modal .modal-radiante-badge {
        font-size: 0.9em;
        padding: 6px 15px;
    }
    
    .weapon-modal .close-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 30px;
        height: 30px;
    }
    
    .weapon-modal .modal-weapon-image {
        height: 200px;
    }
    
    .weapon-modal .stat-label {
        font-size: 1em;
    }
    
    .weapon-modal .stat-value {
        font-size: 1.3em;
    }
    
    .weapon-modal .passive-item,
    .weapon-modal .modal-description {
        padding: 15px;
    }
    
    .weapon-modal .passive-item h4,
    .weapon-modal .modal-description h4 {
        font-size: 1.2em;
    }
    
    .weapon-modal .btn-adicionar-modal,
    .weapon-modal .btn-fechar-modal {
        padding: 12px;
        font-size: 1em;
    }
}

/* ============================================= */
/* CORREÇÕES DE SOBREPOSIÇÃO E Z-INDEX */
/* ============================================= */

/* Garantir que o modal fique acima de tudo */
.weapon-modal {
    z-index: 9999 !important;
}

/* Corrigir problemas de sobreposição */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Corrigir posicionamento em dispositivos móveis */
@media (max-width: 768px) {
    .weapon-modal {
        align-items: flex-start;
        padding-top: 20%;
        overflow-y: auto;
    }
    
    .weapon-modal .modal-content {
        margin-top: 0;
    }
}

/* Efeito de brilho deslizante no cabeçalho */
.weapon-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 20%;
    height: 100%;
    background: linear-gradient(120deg, 
        rgba(255,255,255,0) 0%, 
        rgba(66, 7, 204, 0.836) 50%, 
        rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: brilhoDeslizante 5s infinite;
    pointer-events: none;
}

@keyframes brilhoDeslizante {
    0% { left: -75%; }
    50% { left: 125%; }
    100% { left: 125%; }
}

/* Aura animada ao redor do modal */
.weapon-modal .modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
        rgba(193, 240, 248, 0.08) 0%, 
        rgba(193, 240, 248, 0.02) 70%);
    animation: pulse-aura 15s infinite ease-in-out alternate;
    z-index: -1;
    pointer-events: none;
}



/* Geral do footer ------------------------------------------------------------------------------*/
/* Estilo Geral do Footer (Desktop/Default) */
footer {
    background: linear-gradient(145deg, #1a1a1a, #1a1a1a, #000, #1a1a1a, #1a1a1a); /* Seu degradê */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 100px;
}

/* Conteúdo Principal */
.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex-wrap: wrap; /* Allows sections to wrap to the next line on smaller screens */
}

/* Seções do Footer */
.footer-section {
    flex: 1; /* Allows sections to grow and shrink */
    margin: 10px;
    min-width: 250px; /* Ensures sections don't get too small before wrapping */
}

.footer-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Links */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    background: linear-gradient(45deg, #fbf9fd, #b6fff3);
    background-size: 300%;
    background-clip: text; /* Faz o gradiente ser aplicado ao texto */
    -webkit-text-fill-color: transparent; /* Torna a parte não preenchida transparente */
    animation: gradiente-animado 4s ease infinite;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

@keyframes gradiente-animado {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-section ul li a:hover {
    color: #ff9800;
}

/* Ícones de Redes Sociais */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    border: 2px solid #fff;
    padding: 15px;
    border-radius: 20px;
}

.social-icons a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease-in-out;
}

.social-icons a img:hover {
    transform: scale(1.2);
}

/* Rodapé Inferior */
.footer-bottom {
    margin-top: 20px;
    font-size: 0.8rem;
    border-top: 1px solid #444;
    padding: 10px;
}

/* ======================================================= */
/* RESPONSIVENESS */
/* ======================================================= */

/* Para telas de Tablet (max-width: 780px) */
@media (max-width: 780px) {
    footer {
        padding: 15px 0; /* Reduz o padding do footer */
    }

    .footer-content {
        padding: 15px; /* Reduz o padding interno do conteúdo */
        /* Flex-wrap is already set, so sections will wrap if they don't fit */
        justify-content: center; /* Centers sections when they wrap */
    }

    .footer-section {
        margin: 10px; /* Mantém a margem entre as seções */
        min-width: 200px; /* Permite que as seções fiquem um pouco menores antes de empilhar */
        flex-basis: auto; /* Allow items to determine their own flexible basis */
    }

    .footer-section h2 {
        font-size: 1.3rem; /* Reduz o tamanho do título */
    }

    .footer-section p {
        font-size: 0.85rem; /* Reduz o tamanho do texto */
    }

    .footer-section ul li {
        margin: 8px 0; /* Reduz a margem dos itens da lista */
    }

    .social-icons {
        gap: 10px; /* Reduz o espaçamento entre os ícones */
        padding: 10px; /* Reduz o padding do container de ícones */
    }

    .social-icons a img {
        width: 25px; /* Reduz o tamanho dos ícones */
        height: 25px;
    }

    .footer-bottom {
        margin-top: 15px;
        font-size: 0.75rem; /* Reduz o tamanho da fonte do rodapé inferior */
        padding: 8px;
    }
}

/* Para telas de Celular (max-width: 480px - ajuste conforme necessário) */
@media (max-width: 480px) {
    footer {
        padding: 10px 0; /* Mais redução de padding */
    }

    .footer-content {
        flex-direction: column; /* Força as seções a empilharem verticalmente */
        padding: 10px;
        align-items: center; /* Centraliza as seções empilhadas */
    }

    .footer-section {
        margin: 15px 0; /* Aumenta a margem vertical entre as seções empilhadas */
        width: 90%; /* Ocupa quase toda a largura para cada seção */
        min-width: unset; /* Remove o min-width para permitir que ocupe a largura total disponível */
    }

    .footer-section h2 {
        font-size: 1.2rem; /* Mais redução de tamanho de título */
        margin-bottom: 10px;
    }

    .footer-section p {
        font-size: 0.8rem; /* Mais redução de tamanho de texto */
    }

    .footer-section ul {
        text-align: center; /* Centraliza os links quando as seções empilham */
    }

    .footer-section ul li {
        margin: 6px 0;
    }

    .social-icons {
        gap: 8px; /* Última redução de espaçamento */
        padding: 8px;
    }

    .social-icons a img {
        width: 20px; /* Última redução de tamanho de ícones */
        height: 20px;
    }

    .footer-bottom {
        margin-top: 10px;
        font-size: 0.7rem;
        padding: 5px;
    }
}


