/* Tables */
.table {
  --bs-table-bg: transparent;
}

.table-bordered > :not(caption) > * > * {
  border-width: 1px;
}

/* ============================================
   FIX: Morpheus v6 CSS Override
   Impedir que o Bootstrap do morpheus.css
   quebre o layout fixo do template
   ============================================ */

/* Restaurar o .container do template (3 colunas flex) */
.wrapper .container {
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 1300px;
  display: flex;
  position: relative;
}

/* Impedir que o morpheus.css altere o body background */
body {
  background-color: #eaecff !important;
}

/* Fix: Botões do slide/banner do Morpheus v6 */
/* Esconder texto e deixar apenas setas modernas */
.sy-controls li,
.slider-prev,
.slider-next,
[class*="slider"] [class*="prev"],
[class*="slider"] [class*="next"],
[class*="slide"] [class*="prev"],
[class*="slide"] [class*="next"],
.morpheus-banner-prev,
.morpheus-banner-next,
.banner-prev,
.banner-next {
  background: rgba(0,0,0,0.4) !important;
  border: none !important;
  color: #fff !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  cursor: pointer !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
}

.sy-controls li::after,
.slider-prev::after,
.slider-next::after,
[class*="slider"] [class*="prev"]::after,
[class*="slider"] [class*="next"]::after,
[class*="slide"] [class*="prev"]::after,
[class*="slide"] [class*="next"]::after,
.morpheus-banner-prev::after,
.morpheus-banner-next::after,
.banner-prev::after,
.banner-next::after {
  font-size: 16px !important;
  text-indent: 0 !important;
  content: "❮" !important;
  display: block !important;
}

.sy-controls li.sy-next::after,
.slider-next::after,
[class*="slider"] [class*="next"]::after,
[class*="slide"] [class*="next"]::after,
.morpheus-banner-next::after,
.banner-next::after {
  content: "❯" !important;
}

.sy-controls li:first-child,
.slider-prev,
[class*="slider"] [class*="prev"],
[class*="slide"] [class*="prev"],
.morpheus-banner-prev,
.banner-prev {
  left: 10px !important;
}

.sy-controls li:last-child,
.sy-controls li.sy-next,
.slider-next,
[class*="slider"] [class*="next"],
[class*="slide"] [class*="next"],
.morpheus-banner-next,
.banner-next {
  right: 10px !important;
  left: auto !important;
}

.sy-controls li:hover,
.slider-prev:hover,
.slider-next:hover,
[class*="slider"] [class*="prev"]:hover,
[class*="slider"] [class*="next"]:hover,
.morpheus-banner-prev:hover,
.morpheus-banner-next:hover {
  background: rgba(112,163,193,0.7) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* Fix: Pager do slide (botão azul embaixo) - esconder ou estilizar como dots */
.sy-pager,
.slider-pager,
[class*="slider"] [class*="pager"],
.morpheus-banner-pager,
.banner-pager {
  position: absolute !important;
  bottom: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 6px !important;
  z-index: 10 !important;
}

.sy-pager li,
.slider-pager li,
.slider-pager span,
[class*="slider"] [class*="pager"] li,
[class*="slider"] [class*="pager"] span,
.morpheus-banner-pager li,
.morpheus-banner-pager span,
.banner-pager li,
.banner-pager span {
  width: 8px !important;
  height: 8px !important;
  background: rgba(255,255,255,0.35) !important;
  border: none !important;
  border-radius: 50% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-indent: -9999px !important;
  display: block !important;
}

.sy-pager li.sy-active,
.sy-pager li.active,
.slider-pager li.active,
.slider-pager span.active,
[class*="slider"] [class*="pager"] li.active,
[class*="slider"] [class*="pager"] span.active,
.morpheus-banner-pager li.active,
.banner-pager li.active {
  background: #70a3c1 !important;
  width: 22px !important;
  border-radius: 10px !important;
}

/* Fix: Banner/Slide container */
.sy-box,
.morpheus-banner,
.morpheus-slides,
[class*="morpheus-banner"],
[class*="morpheus-slide"] {
  background: rgba(0,0,0,0.2) !important;
  border: 1px solid rgba(112,163,193,0.12) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Fix: Header da seção "Últimas Notícias" - mais discreto e integrado */
.content-title,
.posts-header,
.latest-posts-title,
h1.d-flex,
.content > h1 {
  background: rgba(10,25,50,0.7) !important;
  border: none !important;
  border-bottom: 1px solid rgba(112,163,193,0.2) !important;
  border-radius: 0 !important;
  color: #a8c8dc !important;
  padding: 10px 15px !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin: 0 !important;
  backdrop-filter: blur(3px);
}

.content-title a,
.posts-header a,
h1.d-flex a,
.content > h1 a {
  color: #70a3c1 !important;
  font-size: 11px !important;
  text-decoration: none !important;
}

.content-title a:hover,
.posts-header a:hover {
  color: #fff !important;
}

/* Fix: Morpheus notify elements */
.morpheus-notification {
  z-index: 9999;
}

/* Fix: Progress bar do Morpheus */
.progress {
  background-color: rgba(0,0,0,0.3) !important;
}

.progress-bar {
  background-color: #70a3c1 !important;
}

/* Fix: Badges */
.badge.bg-success {
  background-color: #27ae60 !important;
}

.badge.bg-danger {
  background-color: #c0392b !important;
}

/* Fix: Alert warning */
.alert-warning {
  background: rgba(255,193,7,0.1) !important;
  border: 1px solid rgba(255,193,7,0.3) !important;
  color: #ffc107 !important;
  border-radius: 4px;
  padding: 10px 15px;
}

/* Fix: SweetAlert no tema dark */
.swal2-popup {
  background: #1a1a2e !important;
  color: #fff !important;
}

.swal2-title {
  color: #fff !important;
}

/* Fix: Dropdown do Morpheus */
.dropdown-menu {
  background-color: rgba(10,20,40,0.95) !important;
  border: 1px solid rgba(112,163,193,0.3) !important;
}

.dropdown-item {
  color: #ccc !important;
}

.dropdown-item:hover {
  background-color: rgba(112,163,193,0.2) !important;
  color: #fff !important;
}

/* forms */
.form-control:focus {
  color: #fff;
}

/* Container de Plugin Integrado */
/* Título Principal com Borda Inferior */
.plugin-title {
  color: #4e1910;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
  padding-bottom: 10px;
  margin-bottom: 15px;
  border-bottom: 2px solid #c07334;
  letter-spacing: 1px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Rótulos e Textos */
.info-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #774318;
  font-weight: bold;
  margin-bottom: 8px;
}

.info-value {
  font-size: 13px;
  color: #4e1910;
  font-weight: bold;
}

/* Estilo do Input */
.input-container-box {
  width: 100%;
}

.input-dark-theme {
  width: 100%;
  background: #221001;
  border: 1px solid #4e1910;
  color: #c07334;
  padding: 10px;
  font-size: 12px;
  text-align: center;
  outline: none;
}

/* Seção de Recompensas interna ao bloco */
.sub-title-simple {
  font-size: 11px;
  text-transform: uppercase;
  color: #4e1910;
  font-weight: bold;
  margin-bottom: 12px;
  display: block;
}

.reward-row {
  padding: 5px 0;
  border-bottom: 1px dashed rgba(78, 25, 16, 0.1);
}

.reward-row:last-child {
  border-bottom: none;
}

.reward-label {
  font-size: 12px;
  color: #774318;
}

/* Botão de Ação */
.btn-theme-solid {
  display: block;
  background: linear-gradient(180deg, #c07334 0%, #774318 100%);
  border: 1px solid #4e1910;
  color: #fff !important;
  text-align: center;
  padding: 10px;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 11px;
  text-decoration: none !important;
  margin-top: 10px;
  transition: 0.3s;
}

.btn-theme-solid.active {
    background: linear-gradient(180deg, #774318 0%, #4e1910 100%) !important;
}

.btn-theme-solid:hover {
  filter: brightness(1.2);
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.2);
  background: linear-gradient(180deg, #774318 0%, #4e1910 100%) !important;
}

.gold-text {
  color: #c07334;
}
.link-copper {
  color: #c07334 !important;
  font-size: 10px;
  text-decoration: none;
}

/* Infor panel */
.row-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(78, 25, 16, 0.1);
}

.row-info:last-child {
  border-bottom: none;
}

.small-date {
  font-size: 11px;
  color: #774318;
}

/* Grid de Personagens */
.character-grid-custom {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  padding: 5px;
}

.char-card-custom {
  background: rgba(34, 16, 1, 0.05);
  border: 1px solid rgba(192, 115, 52, 0.2);
  text-align: center;
  transition: 0.3s;
}

.char-card-custom:hover {
  border-color: #c07334;
  background: rgba(34, 16, 1, 0.1);
}

.char-name-header {
  background: #4e1910;
  color: #ffd4a3;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 5px;
}

.char-avatar-box {
  padding: 10px;
  background: #221001;
}

.char-avatar-box img {
  width: 80px;
  height: 90px;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.btn-char-manage {
  display: block;
  background: #c07334;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 8px;
  transition: 0.3s;
}

.btn-char-manage:hover {
  background: #774318;
}

/* Estilos de Botão de Segurança */
.btn-danger-theme {
  background: linear-gradient(180deg, #8b0000 0%, #4e1910 100%) !important;
  border-color: #4e1910 !important;
}
.btn-success-theme {
  background: linear-gradient(180deg, #2d5a27 0%, #1a3a16 100%) !important;
  border-color: #0e240c !important;
}

/* Bloco de Banimento */
.ban-block {
  border-left: 4px solid #8b0000;
  background: rgba(139, 0, 0, 0.05);
}
.ban-text {
  font-size: 13px;
  color: #4e1910;
  margin-top: 10px;
}

/* Social login */
/* Bloco de Alerta */
.notice-item {
  background: rgba(34, 16, 1, 0.05);
  padding: 12px;
  border-left: 3px solid #774318;
  margin-bottom: 20px;
}

.small-text {
  font-size: 12px;
  color: #774318;
  line-height: 1.4;
  margin: 0;
}

/* Grid de Social Login (ajustado para os 440px de área útil) */
.social-grid-custom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

/* Card Social Individual */
.social-card-custom {
  background: rgba(34, 16, 1, 0.05);
  border: 1px solid rgba(78, 25, 16, 0.1);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.social-card-custom:hover {
  border-color: #c07334;
  background: rgba(34, 16, 1, 0.08);
}

/* Área do Ícone */
.social-icon-box {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(34, 16, 1, 0.03);
}

.social-img {
  max-height: 50px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: 0.3s;
}

.social-card-custom:hover .social-img {
  transform: scale(1.05);
}

/* Área do Botão */
.social-action-area {
  padding: 10px;
  border-top: 1px dashed rgba(78, 25, 16, 0.1);
}

/* Breadcrumb Minimalista */
.breadcrumber-custom {
  display: flex;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  gap: 8px;
  font-size: 10px;
  text-transform: uppercase;
}
.breadcrumber-custom a {
  color: #774318;
  text-decoration: none;
}
.breadcrumber-custom .active {
  color: #c07334;
  font-weight: bold;
}
.breadcrumber-custom .sep {
  opacity: 0.3;
  color: #4e1910;
}

/* Blocos de Conteúdo */
.info-block-item {
  background: rgba(34, 16, 1, 0.05);
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid rgba(78, 25, 16, 0.05);
}

/* Tabelas Limpas do Painel */
.table-clean {
  width: 100%;
  border-collapse: collapse;
}
.table-clean thead th {
  color: #774318;
  font-size: 11px;
  text-transform: uppercase;
  padding: 10px 5px;
  border-bottom: 1px solid #c07334;
  text-align: left;
}
.table-clean tbody td {
  padding: 8px 5px;
  border-bottom: 1px solid rgba(78, 25, 16, 0.05);
  font-size: 12px;
}
.char-name {
  color: #4e1910;
}
.value-text {
  color: #4e1910;
}
.gold-text {
  color: #c07334;
  font-weight: bold;
}
.small-date {
  font-size: 10px;
  color: #774318;
}

/* Grid de Cupons no Painel */
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.coupon-cashback-box {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed rgba(192, 115, 52, 0.2);
}

/* Ajuste fino para o paginador do Bootstrap não quebrar o tema dark */
.pagination-container-custom .pagination {
  justify-content: center;
}

.pagination-container-custom .page-link {
  background: #221001;
  border-color: #4e1910;
  color: #c07334;
}

.pagination-container-custom .page-item.active .page-link {
  background: #c07334;
  border-color: #4e1910;
  color: #fff;
}

.pagination-container-custom .page-link:hover {
  background: #4e1910;
  color: #fff;
}

/* Reaproveitamento de Estilos Existentes */
/* Grid de Itens (Estilo Inventário) */
.item-image-container {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(192, 115, 52, 0.1);
  padding: 10px;
  margin: 5px 0;
  transition: 0.3s;
}

.item-image-container:hover {
  border-color: #c07334;
  background: rgba(192, 115, 52, 0.05);
}

/* Ajustes para a Sidebar em Mobile (dentro de Categorias) */
@media (max-width: 991px) {
  .panel-container-flex {
    flex-direction: column;
  }
  .panel-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(192, 115, 52, 0.2);
    margin-bottom: 20px;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .sidebar-link {
    border-bottom: none !important;
    border: 1px solid rgba(192, 115, 52, 0.1);
    margin: 2px;
  }
}

/* Links de Mensagem */
.message-link-item {
  text-decoration: none !important;
  color: #4e1910;
  font-size: 13px;
  display: flex;
  align-items: center;
  transition: 0.3s;
}

.message-link-item:hover {
  color: #c07334;
  padding-left: 5px;
}

/* Estado Não Lida */
.message-link-item.unread {
  font-weight: bold;
  color: #774318;
}

.message-link-item.unread .status-dot {
  width: 8px;
  height: 8px;
  background-color: #c07334;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
  box-shadow: 0 0 5px rgba(192, 115, 52, 0.5);
}

/* Estado Lida */
.message-link-item.read .status-dot {
  width: 8px;
  height: 8px;
  background-color: rgba(78, 25, 16, 0.2);
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
}

/* Tabelas Limpas (Garantindo o padrão reciclado) */
.table-clean tbody tr:hover {
  background: rgba(34, 16, 1, 0.05);
}

/* Ajustes para o corpo da mensagem */
.message-body-content {
  line-height: 1.8;
  color: #4e1910;
  font-size: 14px;
  word-wrap: break-word;
  min-height: 150px;
}

/* Meta informação (Data) */
.message-meta {
  margin-top: -10px;
  margin-bottom: 15px;
  opacity: 0.8;
}

/* Garantindo que imagens dentro da mensagem não quebrem o layout de 440px/630px */
.message-body-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(192, 115, 52, 0.2);
  padding: 5px;
  background: rgba(0, 0, 0, 0.1);
}

/* Badge de Caixas Disponíveis */
.badge-custom-gold {
  position: absolute;
  top: 35px;
  right: 5px;
  background: #c07334;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Brilho de Raridade nos Itens */
.rarity-glow {
  border-bottom: 2px solid var(--rarity-color) !important;
  transition: 0.3s;
}
.rarity-glow:hover {
  background: rgba(34, 16, 1, 0.1);
  box-shadow: inset 0 0 10px var(--rarity-color);
}

/* Estilo para as Partials (Case/Wheel) */
.lootbox-case,
.lootbox-wheel {
  background: #120a05;
  border: 1px solid #412a0b;
  border-radius: 4px;
}

/* ============================================
   ESTILOS PARA A PÁGINA DE ACHIEVEMENTS
   ============================================ */
.achievement-card {
  background: rgba(136, 93, 15, 0.2);
  border: 1px solid #c09074;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
}

/* Bordas coloridas por status */
.achievement-status-completed {
  border-left: 4px solid #2d5a27 !important;
}

.achievement-status-available {
  border-left: 4px solid #c07334 !important;
}

.achievement-status-locked {
  border-left: 4px solid #774318 !important;
}

.achievement-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.achievement-description {
  min-height: 40px;
  font-size: 11px !important;
  color: #4e1910;
  line-height: 1.4;
}

/* Badge de Status */
.achievement-badge {
  font-size: 9px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: bold;
  display: inline-block;
}

.status-completed {
  background: rgba(45, 90, 39, 0.2);
  color: #2d5a27;
  border: 1px solid #2d5a27;
}

.status-available {
  background: rgba(192, 115, 52, 0.2);
  color: #c07334;
  border: 1px solid #c07334;
}

.status-locked {
  background: rgba(119, 67, 24, 0.2);
  color: #774318;
  border: 1px solid #774318;
}

/* Labels de Requisitos */
.requirement-label {
  font-size: 10px;
  color: #774318;
}

.requirement-label span:last-child {
  color: #4e1910;
  font-weight: bold;
}

/* Barra de Progresso */
.achievement-progress {
  height: 6px;
  background: rgba(34, 16, 1, 0.1);
  margin: 5px 0;
  position: relative;
  overflow: hidden;
}

.achievement-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #c07334, #774318);
  transition: width 0.5s ease;
  position: relative;
}

/* Porcentagem */
.achievement-percentage {
  font-size: 9px;
  color: #774318;
  margin-top: 2px;
  text-align: right;
}

/* Título de Recompensas */
.rewards-title {
  font-size: 10px;
  color: #4e1910;
  font-weight: bold;
  margin-bottom: 5px;
  text-transform: uppercase;
}

/* Lista de Recompensas */
.rewards-list {
  overflow-y: auto;
  padding: 5px;
  background: rgba(34, 16, 1, 0.05);
  font-size: 10px;
  padding: 10px;
}

.rewards-list::-webkit-scrollbar {
  width: 4px;
}

.rewards-list::-webkit-scrollbar-track {
  background: rgba(34, 16, 1, 0.05);
}

.rewards-list::-webkit-scrollbar-thumb {
  background: #c07334;
  border-radius: 2px;
}

/* Item de Recompensa */
.reward-item {
  padding: 2px 0;
  border-bottom: 1px dashed rgba(78, 25, 16, 0.1);
  color: #774318;
}

.reward-item:last-child {
  border-bottom: none;
}

/* Botões de Ação */
.achievement-action-btn {
  font-size: 10px !important;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Botão de Concluído */
.claimed-btn {
  background: linear-gradient(180deg, #2d5a27 0%, #1a3a16 100%) !important;
  border-color: #0e240c !important;
  cursor: default !important;
}

.claimed-btn:hover {
  filter: none !important;
}

/* Botão de Em Progresso */
.progress-btn {
  background: linear-gradient(180deg, #774318 0%, #4e1910 100%) !important;
  border-color: #4e1910 !important;
  cursor: default !important;
}

.progress-btn:hover {
  filter: none !important;
}

/* ============================================
   ESTILOS PARA AUCTION (LEILÕES)
   ============================================ */
.auction-card,
.auction-item-card {
  background: rgba(136, 93, 15, 0.15);
  border: 1px solid #c09074;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
}

.auction-card:hover,
.auction-item-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  border-color: #c07334;
}

.auction-image,
.auction-item-image {
  max-height: 120px;
  width: auto;
  margin: 0 auto;
  border: 1px solid rgba(192, 115, 52, 0.3);
  padding: 5px;
  background: rgba(34, 16, 1, 0.1);
}

.auction-description {
  min-height: 40px;
  font-size: 11px !important;
  color: #4e1910;
  line-height: 1.4;
  text-align: center;
}

.auction-items-grid {
  padding: 10px;
}

.auction-item-card[data-auction-item] {
  border: 1px solid rgba(192, 115, 52, 0.5);
}

.auction-item-image {
  max-height: 80px;
  width: 80px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.bid-info,
.best-bid-info {
  margin-bottom: 10px;
}

.best-bid-price {
  font-size: 14px;
  color: #ffd700;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.bidder-name {
  font-style: italic;
  margin-top: 2px;
}

/* Timer de contagem regressiva */
.auction-timer {
  padding: 8px;
  background: rgba(34, 16, 1, 0.1);
  border: 1px solid rgba(192, 115, 52, 0.2);
  border-radius: 3px;
}

.timer-countdown {
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  color: #c07334 !important;
}

.timer-countdown.ending-soon {
  color: #ff4444 !important;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

.timer-countdown.expired {
  color: #8b0000 !important;
}

/* Botão de lance */
.auction-bid-btn {
  font-size: 10px !important;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auction-bid-btn:hover {
  filter: brightness(1.2);
  transform: scale(1.02);
}

.auction-bid-btn:active {
  transform: scale(0.98);
}

.auction-bid-btn.disabled {
  background: linear-gradient(180deg, #774318 0%, #4e1910 100%) !important;
  border-color: #4e1910 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.auction-bid-btn.disabled:hover {
  filter: none !important;
  transform: none !important;
}

/* Efeito de brilho para itens raros */
.auction-item-card.rare-item {
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.1);
}

.auction-item-card.rare-item:hover {
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

/* ============================================
   ESTILOS PARA HELP DESK (SUPORTE)
   ============================================ */
.support-tickets-table {
  width: 100%;
  border-collapse: collapse;
}

.support-tickets-table thead th {
  color: #774318;
  font-size: 11px;
  text-transform: uppercase;
  padding: 12px 8px;
  border-bottom: 2px solid #c07334;
  text-align: left;
  background: rgba(34, 16, 1, 0.05);
}

.support-tickets-table tbody td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(78, 25, 16, 0.1);
  font-size: 12px;
  vertical-align: middle;
}

.ticket-row {
  transition: all 0.3s ease;
}

.ticket-row:hover {
  background: rgba(34, 16, 1, 0.05);
}

.ticket-id-link {
  color: #c07334 !important;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 11px;
  transition: all 0.3s ease;
}

.ticket-id-link:hover {
  color: #ffd4a3 !important;
  text-decoration: underline !important;
}

.ticket-subject {
  color: #4e1910;
  font-weight: bold;
  font-size: 12px;
}

.ticket-department {
  font-size: 10px;
  background: rgba(192, 115, 52, 0.1);
  color: #774318;
  padding: 3px 8px;
  border-radius: 2px;
  display: inline-block;
}

.ticket-status {
  font-size: 10px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: bold;
  display: inline-block;
}

.status-0 {
  /* Aberto */
  background: rgba(192, 115, 52, 0.2);
  color: #c07334;
  border: 1px solid #c07334;
}

.status-1 {
  /* Em andamento */
  background: rgb(64 56 17);
  color: #ffd700;
  border: 1px solid #ffd700;
}

.status-2 {
  /* Respondido */
  background: rgba(65, 105, 225, 0.2);
  color: #4169e1;
  border: 1px solid #4169e1;
}

.status-3 {
  /* Fechado */
  background: rgba(45, 90, 39, 0.2);
  color: #2d5a27;
  border: 1px solid #2d5a27;
}

.ticket-status-large {
  font-size: 12px;
  text-transform: uppercase;
  padding: 6px 15px;
  border-radius: 3px;
  font-weight: bold;
  display: inline-block;
}

.ticket-department-badge {
  font-size: 10px;
  background: rgba(78, 25, 16, 0.1);
  color: #4e1910;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: bold;
}

.support-rules {
  line-height: 1.6;
  color: #4e1910;
  max-height: 150px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(34, 16, 1, 0.03);
  border: 1px solid rgba(78, 25, 16, 0.1);
}

.support-rules::-webkit-scrollbar {
  width: 4px;
}

.support-rules::-webkit-scrollbar-track {
  background: rgba(34, 16, 1, 0.05);
}

.support-rules::-webkit-scrollbar-thumb {
  background: #c07334;
  border-radius: 2px;
}

.support-ticket-form textarea,
.reply-ticket-form textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.char-counter {
  font-size: 10px;
}

.file-upload-wrapper {
  position: relative;
}

.file-upload-hint {
  font-style: italic;
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-thumbnail {
  display: block;
  transition: all 0.3s ease;
}

.image-thumbnail:hover {
  transform: scale(1.05);
}

.image-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid rgba(192, 115, 52, 0.3);
  padding: 2px;
  background: rgba(34, 16, 1, 0.05);
}

.message-item {
  padding: 15px;
  border-radius: 3px;
}

.admin-message {
  background: rgba(192, 115, 52, 0.05);
  border-left: 3px solid #c07334;
}

.user-message {
  background: rgba(34, 16, 1, 0.03);
  border-left: 3px solid #774318;
}

.message-header {
  margin-bottom: 10px;
}

.admin-badge {
  font-size: 9px;
  background: rgba(192, 115, 52, 0.2);
  color: #c07334;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 8px;
  text-transform: uppercase;
  font-weight: bold;
}

.message-date {
  font-style: italic;
}

.message-content {
  line-height: 1.6;
  word-wrap: break-word;
}

.btn-theme-solid[type="submit"]:hover {
  filter: brightness(1.2);
}

.btn-theme-solid[type="submit"]:active {
  transform: scale(0.98);
}

/* ============================================
   ESTILOS PARA RIFAS (RAFFLES)
   ============================================ */
.raffles-grid {
  padding: 10px;
}

.raffle-card {
  background: rgba(136, 93, 15, 0.15);
  border: 1px solid #c09074;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
}

.raffle-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  border-color: #c07334;
}

.raffle-description {
  min-height: 60px;
  font-size: 11px !important;
  color: #4e1910;
  line-height: 1.4;
  text-align: center;
}

.raffle-status {
  font-size: 9px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: bold;
  display: inline-block;
}

.status-open {
  background: rgba(45, 90, 39, 0.2);
  color: #2d5a27;
  border: 1px solid #2d5a27;
}

.raffle-price {
  font-size: 14px;
}

.winning-number {
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
  text-shadow: 0 0 5px rgba(192, 115, 52, 0.5);
  padding: 5px 10px;
  background: rgba(34, 16, 1, 0.1);
  border: 1px solid #c07334;
  display: inline-block;
  border-radius: 3px;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 8px;
  padding: 10px;
  background: rgba(34, 16, 1, 0.03);
  border: 1px solid rgba(78, 25, 16, 0.1);
  border-radius: 3px;
  max-height: 400px;
  overflow-y: auto;
}

.numbers-grid::-webkit-scrollbar {
  width: 4px;
}

.numbers-grid::-webkit-scrollbar-track {
  background: rgba(34, 16, 1, 0.05);
}

.numbers-grid::-webkit-scrollbar-thumb {
  background: #c07334;
  border-radius: 2px;
}

.raffle-number {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: rgba(34, 16, 1, 0.05);
  padding: 0 !important;
}

.raffle-number.active {
  cursor: pointer;
  box-shadow: 0 0 10px rgba(192, 115, 52, 0.3) !important;
  background: rgb(192, 115, 52) !important;
}

.raffle-number.allowed {
  border-color: rgba(192, 115, 52, 0.3);
  color: #4e1910;
}

.raffle-number.allowed:hover {
  border-color: #c07334;
  background: rgba(192, 115, 52, 0.1);
  transform: scale(1.05);
}

.raffle-number.allowed.selected {
  border-color: #c07334;
  background: rgba(192, 115, 52, 0.2);
  color: #fff;
  box-shadow: 0 0 10px rgba(192, 115, 52, 0.5);
}

.raffle-number.taken {
  border-color: rgba(139, 0, 0, 0.2);
  color: rgba(78, 25, 16, 0.5);
  background: rgba(139, 0, 0, 0.05);
  cursor: not-allowed;
}

.raffle-number.my-number {
  border-color: rgba(45, 90, 39, 0.3);
  color: #2d5a27;
  background: rgba(45, 90, 39, 0.1);
  cursor: default;
}

.my-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 8px;
  background: #2d5a27;
  color: #fff;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: bold;
}

.number-value {
  font-family: "Courier New", monospace;
}

.raffle-total-price {
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
}

/* Badges de recompensa */
.vip-badge {
  font-size: 10px;
  background: rgba(65, 105, 225, 0.2);
  color: #4169e1;
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid #4169e1;
  display: inline-block;
}

.credits-badge {
  font-size: 10px;
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid #ffd700;
  display: inline-block;
}

.coins-badge {
  font-size: 10px;
  background: rgba(192, 115, 52, 0.2);
  color: #c07334;
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid #c07334;
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 5px;
}

.raffle-full-description {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
}

.raffle-full-description::-webkit-scrollbar {
  width: 4px;
}

.raffle-full-description::-webkit-scrollbar-track {
  background: rgba(34, 16, 1, 0.05);
}

.raffle-full-description::-webkit-scrollbar-thumb {
  background: #c07334;
  border-radius: 2px;
}

.raffle-number.allowed.selected {
  animation: pulse 0.5s ease;
}

.selected-count {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(34, 16, 1, 0.9);
  color: #ffd4a3;
  padding: 8px 15px;
  border-radius: 3px;
  font-size: 12px;
  border: 1px solid #c07334;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.confirmation-message {
  background: rgba(34, 16, 1, 0.95);
  color: #ffd4a3;
  padding: 15px;
  border-radius: 3px;
  border: 1px solid #c07334;
  margin-bottom: 15px;
  font-size: 12px;
  text-align: center;
}

/* ============================================
   ESTILOS PARA LOOT BOXES
   ============================================ */
.lootboxes-grid {
  padding: 10px;
}

.lootbox-card {
  background: rgba(136, 93, 15, 0.15);
  border: 1px solid #c09074;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
}

.lootbox-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  border-color: #c07334;
}

.lootbox-image-container {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 16, 1, 0.05);
  border: 1px solid rgba(192, 115, 52, 0.1);
  padding: 10px;
}

.lootbox-image {
  max-height: 100px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.lootbox-card:hover .lootbox-image {
  transform: scale(1.05);
}

.lootbox-description {
  font-size: 10px !important;
  color: #4e1910;
  line-height: 1.4;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lootbox-price {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.lootbox-price small {
  font-size: 10px;
  color: #774318;
  font-weight: normal;
}

.lootbox-view-btn {
  font-size: 10px !important;
  text-transform: uppercase;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.lootbox-view-btn:hover {
  filter: brightness(1.2);
  transform: scale(1.02);
}

.lootbox-view-btn:active {
  transform: scale(0.98);
}

/* Raridade das loot boxes */
.lootbox-card.common {
  border-color: rgba(192, 192, 192, 0.5);
}
.lootbox-card.uncommon {
  border-color: rgba(30, 255, 0, 0.3);
}
.lootbox-card.rare {
  border-color: rgba(0, 112, 255, 0.3);
}
.lootbox-card.epic {
  border-color: rgba(163, 53, 238, 0.3);
}
.lootbox-card.legendary {
  border-color: rgba(255, 215, 0, 0.5);
}

.lootbox-card.rare:hover,
.lootbox-card.epic:hover,
.lootbox-card.legendary:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.lootbox-card.legendary .badge-custom-gold {
  background: linear-gradient(135deg, #ffd700, #ff6b00);
  color: #221001;
  border-color: rgba(255, 215, 0, 0.5);
}

@keyframes newBoxPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(192, 115, 52, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(192, 115, 52, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(192, 115, 52, 0);
  }
}

.lootbox-card.new {
  animation: newBoxPulse 2s infinite;
}

@keyframes boxHoverGlow {
  0% {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  100% {
    box-shadow: 0 5px 20px rgba(192, 115, 52, 0.3);
  }
}

.lootbox-card:hover {
  animation: boxHoverGlow 0.3s ease forwards;
}

.lootbox-card.out-of-stock {
  opacity: 0.6;
  filter: grayscale(0.5);
}

.lootbox-card.out-of-stock .lootbox-view-btn {
  background: linear-gradient(180deg, #774318 0%, #4e1910 100%) !important;
  border-color: #4e1910 !important;
  cursor: not-allowed;
}

.lootbox-card.out-of-stock .lootbox-view-btn:hover {
  filter: none !important;
  transform: none !important;
}

.lootbox-card.free .lootbox-price {
  color: #2d5a27;
}

.lootbox-card.free .badge-custom-gold {
  background: linear-gradient(135deg, #2d5a27, #1a3a16);
  color: #fff;
}

/* ============================================
   ESTILOS PARA LOOT BOX VIEW
   ============================================ */
.lootbox-open-btn {
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.lootbox-open-btn:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

.lootbox-open-btn:active {
  transform: scale(0.98);
}

.lootbox-open-btn .open-icon {
  margin-right: 8px;
  font-size: 18px;
  vertical-align: middle;
}

.gift-link {
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 3px;
  display: inline-block;
}

.gift-link:hover {
  background: rgba(192, 115, 52, 0.1);
  padding: 5px 15px;
}

.lootbox-rewards-grid {
  padding: 10px;
}

.reward-chance {
  background: rgba(34, 16, 1, 0.1);
  padding: 3px;
  border-radius: 2px;
  display: inline-block;
  margin: 0 auto;
}

.rarity-glow {
  border-bottom: 3px solid var(--rarity-color) !important;
  position: relative;
}

.rarity-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 70%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

.reward-name {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-form {
  max-width: 500px;
  margin: 0 auto;
}

.gift-info {
  border-bottom: 1px solid rgba(192, 115, 52, 0.2);
  padding-bottom: 20px;
}

.gift-icon {
  margin-right: 8px;
  font-size: 16px;
  vertical-align: middle;
}

.lootbox-case-container {
  padding: 30px 20px !important;
  position: relative;
  overflow: hidden;
}

.lootbox-case__window {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(192, 115, 52, 0.3);
  border-radius: 5px;
}

.lootbox-case__rotatable {
  display: flex;
  transition: transform 0.1s linear;
  height: 100%;
  align-items: center;
}

.lootbox-case__item {
  flex: 0 0 120px;
  height: 130px;
  margin: 0 10px;
  background: rgba(34, 16, 1, 0.2);
  border: 1px solid rgba(192, 115, 52, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  transition: all 0.3s ease;
}

.lootbox-case__item-image {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.lootbox-case__item-name {
  font-size: 9px;
  color: #ffd4a3;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 1.2;
  max-height: 30px;
  overflow: hidden;
}

.lootbox-case__line {
  position: absolute;
  left: 50%;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #c07334, transparent);
  z-index: 10;
  transform: translateX(-50%);
  box-shadow: 0 0 10px #c07334;
}

.lootbox-case__shadow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  z-index: 5;
}

.lootbox-instructions,
.wheel-instructions {
  background: rgba(34, 16, 1, 0.1);
  padding: 10px;
  border-radius: 3px;
  border: 1px solid rgba(192, 115, 52, 0.1);
}

.lootbox-wheel-container {
  padding: 30px 20px !important;
}

.wheel-wrapper {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: #c07334;
  font-size: 32px;
  text-shadow: 0 0 15px rgba(192, 115, 52, 0.8);
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  animation: pointerGlow 2s infinite alternate;
}

@keyframes pointerGlow {
  0% {
    text-shadow: 0 0 10px rgba(192, 115, 52, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(192, 115, 52, 0.8),
      0 0 30px rgba(192, 115, 52, 0.4);
  }
}

#lootbox-wheel-canvas {
  display: block;
  margin: 0 auto;
}

@keyframes legendaryGlow {
  0% {
    box-shadow: 0 0 5px var(--rarity-color);
  }
  100% {
    box-shadow: 0 0 15px var(--rarity-color), 0 0 25px rgba(255, 215, 0, 0.3);
  }
}

.rarity-glow.legendary {
  animation: legendaryGlow 2s infinite alternate;
}

.lootbox-case__item.selected {
  animation: selectedItemPulse 0.5s ease;
  box-shadow: 0 0 20px var(--rarity-color);
  z-index: 5;
}

@keyframes selectedItemPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.lootbox-case__rotatable.spinning {
  animation: caseSpin 0.5s linear infinite;
}

@keyframes caseSpin {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ============================================
   ESTILOS PARA TRACKERS
   ============================================ */
.tracker-status-badge {
  font-size: 10px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: bold;
  display: inline-block;
}

.status-in-progress {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid #ffd700;
}

.status-fixed {
  background: rgba(65, 105, 225, 0.2);
  color: #4169e1;
  border: 1px solid #4169e1;
}

.my-trackers-table {
  width: 100%;
  border-collapse: collapse;
}

.tracker-id-link {
  color: #c07334 !important;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 11px;
  transition: all 0.3s ease;
}

.tracker-id-link:hover {
  color: #ffd4a3 !important;
  text-decoration: underline !important;
}

.tracker-title {
  color: #4e1910;
  font-weight: bold;
  font-size: 12px;
}

.tracker-category {
  font-size: 10px;
  background: rgba(192, 115, 52, 0.1);
  color: #774318;
  padding: 3px 8px;
  border-radius: 2px;
  display: inline-block;
}

.trackers-version-list {
  padding: 10px;
}

.tracker-item {
  transition: all 0.3s ease;
  border-radius: 3px;
}

.tracker-item:hover {
  background: rgba(34, 16, 1, 0.08) !important;
  border-color: rgba(192, 115, 52, 0.3) !important;
  transform: translateX(2px);
}

.tracker-link {
  color: #4e1910 !important;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 13px;
  transition: all 0.3s ease;
}

.tracker-link:hover {
  color: #c07334 !important;
  text-decoration: underline !important;
}

.votes-container {
  background: rgba(34, 16, 1, 0.05);
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid rgba(78, 25, 16, 0.1);
}

.vote-action {
  text-decoration: none !important;
  color: #4e1910;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 2px;
}

.vote-up {
  margin-right: 10px;
}

.vote-up:hover {
  color: #2d5a27;
  background: rgba(45, 90, 39, 0.1);
}

.vote-down:hover {
  color: #8b0000;
  background: rgba(139, 0, 0, 0.1);
}

.vote-up-icon,
.vote-down-icon {
  font-weight: bold;
  margin-right: 3px;
  font-size: 14px;
}

.vote-count {
  font-size: 12px;
  font-weight: bold;
}

.fixed-info {
  font-size: 10px;
  font-weight: bold;
  margin-bottom: 3px;
}

.comment-item {
  padding: 15px;
  border-radius: 3px;
}

.admin-comment {
  background: rgba(192, 115, 52, 0.05);
  border-left: 3px solid #c07334;
}

.user-comment {
  background: rgba(34, 16, 1, 0.03);
  border-left: 3px solid #774318;
}

.comment-date {
  font-style: italic;
}

.changelog-content {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(34, 16, 1, 0.03);
  border: 1px solid rgba(78, 25, 16, 0.1);
}

.changelog-content::-webkit-scrollbar {
  width: 4px;
}

.changelog-content::-webkit-scrollbar-track {
  background: rgba(34, 16, 1, 0.05);
}

.changelog-content::-webkit-scrollbar-thumb {
  background: #c07334;
  border-radius: 2px;
}

/* ============================================
   ESTILOS PARA WORKSHOP
   ============================================ */
.workshop-menu-item {
  background: rgba(136, 93, 15, 0.15);
  border: 1px solid #c09074;
  border-radius: 0;
  transition: all 0.3s ease;
  text-decoration: none !important;
  color: inherit;
}

.workshop-menu-item:hover {
  background: rgba(192, 115, 52, 0.1);
  border-color: #c07334;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.workshop-inventory-view .inventory {
  flex-direction: column;
}

.menu-icon {
  color: #c07334;
}

.menu-title {
  background: #4e1910;
  color: #ffd4a3;
}

.character-selector {
  padding: 10px;
}

.character-card {
  display: block;
  padding: 15px;
  background: rgba(34, 16, 1, 0.05);
  border: 1px solid rgba(192, 115, 52, 0.1);
  border-radius: 3px;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.character-card:hover {
  background: rgba(192, 115, 52, 0.05);
  border-color: #c07334;
  transform: translateY(-2px);
}

.character-card.active {
  background: rgba(192, 115, 52, 0.1);
  border-color: #c07334;
  box-shadow: 0 0 10px rgba(192, 115, 52, 0.3);
}

.character-avatar img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.character-name {
  font-size: 12px;
  margin-top: 5px;
}

.workshop-inventory-view {
  background: rgba(34, 16, 1, 0.05);
  min-height: 300px;
}

.workshop-item-panel {
  background: rgba(34, 16, 1, 0.05);
  border: 1px solid rgba(78, 25, 16, 0.1);
  padding: 20px;
  height: 100%;
}

.workshop-item-placeholder {
  opacity: 0.6;
}

.workshop-upgrade-form {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 5px;
}

.workshop-upgrade-form::-webkit-scrollbar {
  width: 4px;
}

.workshop-upgrade-form::-webkit-scrollbar-track {
  background: rgba(34, 16, 1, 0.05);
}

.workshop-upgrade-form::-webkit-scrollbar-thumb {
  background: #c07334;
  border-radius: 2px;
}

.price-options {
  padding: 10px;
  background: rgba(34, 16, 1, 0.03);
  border: 1px solid rgba(78, 25, 16, 0.1);
}

.price-option {
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.price-option:hover {
  background: rgba(34, 16, 1, 0.05);
}

.price-radio {
  display: none;
}

.price-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid rgba(192, 115, 52, 0.2);
  border-radius: 3px;
  flex-grow: 1;
  transition: all 0.3s ease;
}

.price-radio:checked + .price-label {
  background: rgba(192, 115, 52, 0.1);
  border-color: #c07334;
  color: #c07334;
}

.price-amount {
  font-weight: bold;
  font-size: 16px;
  margin-right: 8px;
  color: #c07334;
}

.price-currency {
  font-size: 12px;
  color: #774318;
}

.workshop-range {
  width: 100%;
  height: 6px;
  background: rgba(34, 16, 1, 0.1);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.workshop-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #c07334;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.workshop-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #c07334;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.range-container {
  padding: 10px;
  background: rgba(34, 16, 1, 0.03);
  border: 1px solid rgba(78, 25, 16, 0.1);
  border-radius: 3px;
}

.workshop-checkbox-option {
  padding: 8px;
  background: rgba(34, 16, 1, 0.03);
  border: 1px solid rgba(78, 25, 16, 0.1);
  border-radius: 3px;
  text-align: center;
}

.workshop-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  margin-bottom: 5px;
}

.workshop-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.workshop-switch-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(34, 16, 1, 0.2);
  transition: 0.4s;
  border-radius: 20px;
}

.workshop-switch-label:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 0;
  bottom: -1px;
  background: #774318;
  transition: 0.4s;
  border-radius: 50%;
}

.workshop-checkbox:checked + .workshop-switch-label {
  background: rgba(192, 115, 52, 0.3);
}

.workshop-checkbox:checked + .workshop-switch-label:before {
  transform: translateX(20px);
  background: #c07334;
}

.workshop-select,
.harmony-type-select,
.harmony-level-select,
.socket-select {
  width: 100%;
  background: #221001;
  border: 1px solid #4e1910;
  color: #c07334;
  padding: 8px 12px;
  font-size: 11px;
  outline: none;
  transition: all 0.3s ease;
}

.workshop-select:focus,
.harmony-type-select:focus,
.harmony-level-select:focus,
.socket-select:focus {
  border-color: #c07334;
  box-shadow: 0 0 5px rgba(192, 115, 52, 0.3);
}

.excellent-label,
.mastery-label {
  display: block;
  margin-top: 3px;
  line-height: 1.2;
}

.harmony-slot,
.socket-slot {
  padding: 10px;
  background: rgba(34, 16, 1, 0.03);
  border: 1px solid rgba(78, 25, 16, 0.1);
  border-radius: 3px;
}

.level-value,
.option-value {
  color: #c07334;
  font-weight: bold;
  font-size: 14px;
}

@keyframes itemPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(192, 115, 52, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(192, 115, 52, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(192, 115, 52, 0);
  }
}

.character-card.active {
  animation: itemPulse 2s infinite;
}

@keyframes upgradeSuccess {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.workshop-upgrade-success {
  animation: upgradeSuccess 0.5s ease;
}

/* ============================================
   ESTILOS COMUNS E ESTADOS
   ============================================ */
.input-dark-theme:disabled {
  background: rgba(34, 16, 1, 0.1);
  color: rgba(192, 115, 52, 0.5);
  cursor: not-allowed;
}

.form-message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 3px;
  font-size: 11px;
}

.form-message.success {
  background: rgba(45, 90, 39, 0.1);
  color: #2d5a27;
  border: 1px solid #2d5a27;
}

.form-message.error {
  background: rgba(139, 0, 0, 0.1);
  color: #8b0000;
  border: 1px solid #8b0000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-item,
.comment-item {
  animation: fadeIn 0.3s ease;
}

/* Estados específicos */
.ticket-row.closed,
.tracker-item.closed {
  opacity: 0.7;
}

.ticket-row.closed:hover,
.tracker-item.closed:hover {
  opacity: 0.9;
}

.vote-action.voted {
  pointer-events: none;
  opacity: 0.5;
}

.vote-up.voted .vote-up-icon {
  color: #2d5a27;
}

.vote-down.voted .vote-down-icon {
  color: #8b0000;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .support-tickets-table,
  .my-trackers-table {
    min-width: 700px;
  }

  .support-tickets-table thead th,
  .support-tickets-table tbody td,
  .my-trackers-table thead th,
  .my-trackers-table tbody td {
    padding: 8px 6px;
    font-size: 11px;
  }

  .ticket-status,
  .tracker-status-badge {
    font-size: 9px;
    padding: 3px 6px;
  }

  .input-dark-theme {
    padding: 8px 12px;
    font-size: 11px;
  }

  textarea.input-dark-theme {
    min-height: 80px;
  }

  .image-gallery {
    gap: 5px;
  }

  .image-thumbnail img {
    width: 60px;
    height: 60px;
  }

  .message-item,
  .comment-item {
    padding: 10px;
  }

  .ticket-status-large {
    font-size: 10px;
    padding: 4px 10px;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .panel-container-flex {
    flex-direction: column;
  }

  .panel-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(192, 115, 52, 0.2);
    margin-bottom: 20px;
  }

  .achievement-description {
    min-height: 30px;
    font-size: 10px !important;
  }

  .rewards-list {
    max-height: 50px;
  }

  .auctions-grid .row,
  .auction-items-grid .row,
  .raffles-grid .row,
  .lootboxes-grid .row {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  }

  .auction-image,
  .auction-item-image,
  .lootbox-image-container {
    max-height: 100px;
    height: 100px;
  }

  .auction-image,
  .auction-item-image {
    max-height: 100px;
  }

  .char-name-header {
    font-size: 11px !important;
    padding: 8px !important;
  }

  .lootbox-image {
    max-height: 80px;
  }

  .lootbox-description {
    font-size: 9px !important;
    min-height: 25px;
  }

  .badge-custom-gold {
    font-size: 9px;
    padding: 2px 6px;
    top: 8px;
    right: 8px;
  }

  .lootbox-price {
    font-size: 12px;
  }

  .lootbox-price small {
    font-size: 9px;
  }

  .numbers-grid {
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 6px;
    padding: 8px;
    max-height: 300px;
  }

  .raffle-number {
    width: 45px;
    height: 45px;
    font-size: 13px;
  }

  .row.g-4 {
    flex-direction: column;
  }

  .col-lg-9,
  .col-lg-3 {
    width: 100%;
  }

  .vip-badge,
  .credits-badge,
  .coins-badge {
    font-size: 9px;
    padding: 3px 6px;
  }

  .raffle-total-price {
    font-size: 18px !important;
  }

  .lootbox-case__window {
    height: 140px;
  }

  .lootbox-case__item {
    flex: 0 0 100px;
    height: 110px;
    margin: 0 8px;
  }

  .lootbox-case__item-image {
    height: 60px;
  }

  .lootbox-case__item-name {
    font-size: 8px;
  }

  #lootbox-wheel-canvas {
    width: 300px !important;
    height: 300px !important;
  }

  .wheel-pointer {
    font-size: 24px;
    top: -15px;
  }

  .lootbox-rewards-grid .row {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .reward-item {
    padding: 8px !important;
  }

  .reward-image img {
    max-height: 40px !important;
  }

  .lootbox-open-btn {
    padding: 10px 30px !important;
    font-size: 12px !important;
  }

  .tracker-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .tracker-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(78, 25, 16, 0.1);
  }

  .votes-container {
    margin-right: 0 !important;
  }

  .workshop-main {
    flex-direction: column;
  }

  .workshop-inventory-view,
  .workshop-item-panel {
    width: 100%;
    margin-bottom: 20px;
  }

  .character-selector .row {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .workshop-menu .row {
    grid-template-columns: 1fr !important;
  }

  .workshop-upgrade-form {
    max-height: 500px;
  }

  .workshop-advanced-options .row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .workshop-excellent .row,
  .workshop-socket .row,
  .workshop-mastery .row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .char-name-header {
    font-size: 11px !important;
    padding: 8px !important;
  }

  .btn-theme-solid {
    padding: 10px 25px !important;
    font-size: 11px !important;
  }

  .ticket-department-badge,
  .tracker-category {
    font-size: 9px;
    padding: 3px 8px;
  }

  .admin-badge {
    font-size: 8px;
    padding: 1px 4px;
  }

  .achievement-card {
    margin-bottom: 10px;
  }

  .char-name-header {
    font-size: 10px !important;
    padding: 6px !important;
  }

  .auctions-grid .row,
  .auction-items-grid .row,
  .raffles-grid .row {
    grid-template-columns: 1fr !important;
  }

  .auction-card,
  .auction-item-card,
  .raffle-card {
    margin-bottom: 15px;
  }

  .auction-timer {
    padding: 6px;
  }

  .timer-countdown {
    font-size: 11px !important;
  }

  .lootboxes-grid .row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .lootbox-card {
    margin-bottom: 0;
  }

  .lootbox-image-container {
    height: 80px;
    padding: 8px;
  }

  .lootbox-image {
    max-height: 60px;
  }

  .lootbox-view-btn {
    padding: 6px !important;
    font-size: 9px !important;
  }

  .numbers-grid {
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 5px;
  }

  .raffle-number {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .row.mb-4 {
    flex-direction: column;
  }

  #lootbox-wheel-canvas {
    width: 250px !important;
    height: 250px !important;
  }

  .wheel-pointer {
    font-size: 20px;
  }

  .lootbox-rewards-grid .row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .panel-container-flex {
    flex-direction: column;
  }

  .panel-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(192, 115, 52, 0.2);
    margin-bottom: 20px;
  }

  .vote-action {
    padding: 1px 4px;
    font-size: 12px;
  }

  .vote-count {
    font-size: 11px;
  }

  .character-selector .row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .workshop-advanced-options .row {
    grid-template-columns: 1fr !important;
  }

  .workshop-excellent .row,
  .workshop-socket .row,
  .workshop-mastery .row {
    grid-template-columns: 1fr !important;
  }

  .harmony-slot .row {
    flex-direction: column;
  }

  .harmony-type-select,
  .harmony-level-select {
    width: 100%;
    margin-bottom: 5px;
  }

  .price-label {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-amount {
    font-size: 14px;
  }
}

/* Customização de Alertas para o Tema Dark */
.flash-container .alert {
  background: transparent !important;
  border: none !important;
  color: #4e1910;
  font-size: 14px;
  padding: 0;
  margin: 0;
}

.flash-container .alert-success {
  color: #2d5a27;
  font-weight: bold;
}

.flash-container .alert-danger {
  color: #8b0000;
  font-weight: bold;
}

.verification-container {
  padding: 20px 0;
}



/* Container do Personagem */
.char-display-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.char-main-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tag VIP Pequena */
.vip-tag-small {
    font-size: 9px;
    color: #c07334;
    background: rgba(192, 115, 52, 0.1);
    padding: 1px 4px;
    border: 1px solid rgba(192, 115, 52, 0.2);
    font-weight: bold;
}

/* Medalhão da Classe */
.class-icon-wrapper {
    display: inline-block;
    padding: 2px;
    background: #221001;
    border: 1px solid #4e1910;
    border-radius: 50%;
    line-height: 0;
}

.class-medallion {
    border-radius: 50%;
    filter: sepia(0.3) contrast(1.1);
}

/* Guilda */
.guild-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.guild-link {
    text-decoration: none !important;
    font-size: 12px;
    font-weight: bold;
}

.guild-link:hover {
    text-decoration: underline !important;
}

/* Reuso da Navegação Superior */
.ranking-nav-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

/* Estilo para os botões da partial rankings que você colocou no topo */
#panel-rankings button {
    background: rgba(78, 25, 16, 0.05);
    border: 1px solid rgba(192, 115, 52, 0.2);
    color: #774318;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#panel-rankings .active button {
    background: linear-gradient(180deg, #c07334 0%, #774318 100%);
    color: #fff;
    border-color: #4e1910;
}


/* Garantir que a tabela ocupe 100% */
.ranking-full-width {
    width: 100%;
    clear: both;
}

.card-header:first-child {
    border-radius: 0;
}

/* Estrutura de Card Medieval */
.card.info-block-item {
    background: transparent;
    border: 1px solid #4e1910;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.card-header.char-name-header {
    background: linear-gradient(180deg, #4e1910 0%, #2a0b06 100%);
    border-bottom: 1px solid #c07334;
    color: #ffd4a3;
    padding: 10px 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.card-body {
    background: rgba(34, 16, 1, 0.05); /* O fundo 0.05 solicitado */
    padding: 20px;
    color: #4e1910;
}

.card-footer {
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px dashed rgba(192, 115, 52, 0.2);
    padding: 15px;
}

/* Ajuste para alertas dentro do card */
.card-body .alert {
    border-radius: 0;
    font-size: 11px;
    border: 1px solid rgba(139, 0, 0, 0.2);
}


/* Container de Autenticação Centralizado */
.auth-container-center {
    animation: fadeInDown 0.5s ease-out;
}

/* Efeito de Divisor para Social Login */
.social-login-box .form-section-divider {
    justify-content: center;
    border-bottom: none;
}

.social-login-box .form-section-divider::before,
.social-login-box .form-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(192, 115, 52, 0.2);
    margin: 0 15px;
}

/* Botões Sociais */
.social-icon-btn {
    transition: 0.3s;
    filter: grayscale(0.5) brightness(0.8);
}

.social-icon-btn:hover {
    filter: grayscale(0) brightness(1.1);
    transform: translateY(-3px);
}

/* Animação Simples */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Grid de Seleção de Personagens */
.character-selection-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.char-select-card {
    position: relative;
    width: 110px;
    background: rgba(34, 16, 1, 0.05);
    border: 1px solid #4e1910;
    padding: 10px;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.char-select-card:hover {
    background: rgba(192, 115, 52, 0.1);
    border-color: #c07334;
    transform: translateY(-5px);
}

.char-select-card.active {
    background: rgba(192, 115, 52, 0.15);
    border-color: #ffde00;
    box-shadow: 0 0 15px rgba(255, 222, 0, 0.2);
}

/* Avatar e Nome */
.char-avatar-wrapper {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: #000;
    margin-bottom: 8px;
    border: 1px solid rgba(192, 115, 52, 0.2);
}

.char-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.char-select-card:hover .char-avatar-wrapper img {
    transform: scale(1.1);
}

.char-name-tag {
    color: #774318;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.char-select-card.active .char-name-tag {
    color: #4e1910;
}

/* Indicador de Ativo */
.active-indicator {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffde00;
    color: #000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Ajustes da Sidebar e Main Area */
.service-content-render {
    min-height: 300px;
    color: #4e1910;
}

/* Sidebar Links */
.sidebar-link .arrow {
    margin-right: 5px;
    opacity: 0.3;
    transition: 0.3s;
}

.sidebar-link.active .arrow {
    opacity: 1;
    color: #c07334;
}

/* Preview do Avatar */
.border-copper {
    border: 1px solid #c07334 !important;
}

.avatar-upload-area {
    padding: 15px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px dashed rgba(192, 115, 52, 0.2);
}

/* Estilo do Input de Arquivo */
.input-dark-theme[type="file"] {
    font-size: 11px;
    color: #ffd4a3;
    cursor: pointer;
}

/* Estilizando o botão interno do navegador (opcional, mas recomendado) */
.input-dark-theme[type="file"]::file-selector-button {
    background: #4e1910;
    color: #ffd4a3;
    border: 1px solid #c07334;
    padding: 4px 10px;
    margin-right: 10px;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
}

.input-dark-theme[type="file"]::file-selector-button:hover {
    background: #c07334;
    color: #fff;
}
/* Estilização do Accordion Medieval */
.accordion-medieval .accordion-item {
    background: transparent;
    border: 1px solid #4e1910;
    border-radius: 0 !important;
    overflow: hidden;
}

.accordion-medieval .accordion-button {
    background: linear-gradient(180deg, #4e1910 0%, #2a0b06 100%);
    color: #ffd4a3;
    box-shadow: none;
    border-radius: 0 !important;
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
}

.accordion-medieval .accordion-button:not(.collapsed) {
    color: #ffde00;
    background: linear-gradient(180deg, #2a0b06 0%, #4e1910 100%);
    border-bottom: 1px solid #c07334;
}

/* Seta do Accordion (Ícone) */
.accordion-medieval .accordion-button::after {
    filter: sepia(1) saturate(5) hue-rotate(330deg); /* Torna a seta dourada */
}

.accordion-medieval .accordion-body {
    background: rgba(34, 16, 1, 0.05); /* Fundo 0.05 solicitado */
    color: #4e1910;
    padding: 20px;
    border-top: 1px solid rgba(192, 115, 52, 0.1);
}

/* Ajuste para botões pequenos na navegação */
.btn-small {
    padding: 6px 15px !important;
    font-size: 11px !important;
    text-decoration: none;
}

/* Estilo para a lista de eventos injetada */
.events .event {
    border-bottom: 1px solid rgba(78, 25, 16, 0.2);
    padding: 10px 0;
}

.events .events-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}

.events .events-event .events-event-name {
    color: #fff;
    display: flex;
    align-items: center;
}

.page-events .events .events-event .events-event-name {
    color: #1b1105;
}

.events .event:last-child {
    border-bottom: none;
}

/* Garante que a classe .nav necessária para o JS não quebre o visual do dropdown */
.dropdown-menu.nav {
    display: none; /* O Bootstrap Dropdown controlará o display */
    flex-wrap: nowrap;
    flex-direction: column;
}

.dropdown-menu.nav.show {
    display: block;
}

/* Remove estilos de link azul padrão que a classe .nav do bootstrap pode forçar */
.dropdown-medieval .nav-link.dropdown-item {
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
}

/* Container do Menu Dropdown */
.dropdown-medieval {
    background: linear-gradient(180deg, #2a0b06 0%, #1a0502 100%) !important;
    border: 1px solid #4e1910 !important;
    border-top: 3px solid #c07334 !important; /* Destaque superior em cobre */
    border-radius: 0 !important;
    padding: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8) !important;
    min-width: 100%;
    z-index: 1050;
}

/* Itens e Links dentro do Dropdown */
.dropdown-medieval .dropdown-item,
.dropdown-medieval .nav-link {
    color: #ffd4a3 !important; /* Tom de ouro pálido */
    font-size: 12px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(78, 25, 16, 0.5) !important;
    transition: all 0.2s ease-in-out !important;
    background: transparent !important;
    display: block;
    width: 100%;
    text-align: left;
}

/* Remover borda do último item */
.dropdown-medieval li:last-child .dropdown-item,
.dropdown-medieval li:last-child .nav-link {
    border-bottom: none !important;
}

/* Estado Hover e Ativo (Efeito btn-theme-solid) */
.dropdown-medieval .dropdown-item:hover,
.dropdown-medieval .dropdown-item.active,
.dropdown-medieval .nav-link:hover,
.dropdown-medieval .nav-link.active {
    background: linear-gradient(180deg, #c07334 0%, #774318 100%) !important;
    color: #ffffff !important;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8) !important;
    padding-left: 25px !important; /* Pequeno recuo para a direita no hover */
}

/* Ajuste para o triângulo (seta) do dropdown no botão principal */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.55em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    color: #c07334; /* Cor de cobre na seta */
}

.w--112 {
    width: 112px !important;
}

.h--112 {
    height: 112px !important;
}
/* Container da Sidebar */
.donate-sidebar-medieval {
    padding: 5px;
}

/* Item de Link Individual */
.sidebar-medieval-link {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #4e1910;
    padding: 12px 15px;
    text-decoration: none !important;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sidebar-medieval-link .label-text {
    font-size: 9px;
    text-transform: uppercase;
    color: rgba(255, 212, 163, 0.5);
    letter-spacing: 1px;
}

.sidebar-medieval-link .gateway-name {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Logo do Gateway */
.gateway-logo-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 50px;
}

.gateway-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
}

/* Hover e Estado Ativo */
.sidebar-medieval-link:hover,
.sidebar-medieval-link.active {
    background: linear-gradient(90deg, rgba(192, 115, 52, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
    border-color: #c07334;
    padding-left: 20px;
}

.sidebar-medieval-link.active .gateway-logo-wrapper {
    background: rgba(192, 115, 52, 0.4);
    border: 1px solid #ffde00;
}

.sidebar-medieval-link.active .gateway-logo-wrapper img {
    filter: none; /* Restaura a cor original do logo quando selecionado */
    opacity: 1;
}

/* Indicador lateral */
.sidebar-medieval-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ffde00;
    box-shadow: 0 0 10px #ffde00;
}

.w--16 {
  width: 16px !important;
}
.h--16 {
  height: 16px !important;
}

.w-24 {
  width: 24px !important;
}
.h-24 {
  height: 24px !important;
}

.w-36 {
  width: 36px !important;
}
.h-36 {
  height: 36px !important;
}

.w-42 {
  width: 42px !important;
}
.h-42 {
  height: 42px !important;
}

.square-pic-42 {
  width: 42px !important;
  height: 42px !important;
}


/* ============================================
   FIX: Trocar todas as cores vermelhas/marrons
   para o tom azul do site
   ============================================ */

/* --- Inputs (bordas laranja/marrom → azul) --- */
input,
select,
textarea {
  background: rgba(10,30,60,0.6) !important;
  border: 1px solid rgba(112,163,193,0.4) !important;
  border-radius: 30px !important;
  color: #fff !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #70a3c1 !important;
  box-shadow: 0 0 8px rgba(112,163,193,0.3) !important;
}

/* --- Botões (laranja/marrom → azul) --- */
button,
.button,
input[type="submit"],
.btn-theme-solid {
  background: linear-gradient(180deg, #1a5276 0%, #0d3450 100%) !important;
  border: 1px solid rgba(112,163,193,0.4) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.btn-theme-solid:hover {
  background: linear-gradient(180deg, #217dbb 0%, #1a5276 100%) !important;
  border-color: #70a3c1 !important;
}

/* --- Card headers (vermelho escuro → azul escuro) --- */
.card-header.char-name-header,
.accordion-medieval .accordion-button,
.page-title h3,
h3.plugin-title {
  background: linear-gradient(180deg, #0d3450 0%, #091e30 100%) !important;
  border-bottom: 1px solid rgba(112,163,193,0.3) !important;
  color: #a8c8dc !important;
}

.accordion-medieval .accordion-button:not(.collapsed) {
  background: linear-gradient(180deg, #091e30 0%, #0d3450 100%) !important;
  color: #70a3c1 !important;
  border-bottom: 1px solid rgba(112,163,193,0.4) !important;
}

/* --- Tabelas (header azul já está bom, bordas vermelhas → azul) --- */
table th {
  background-color: rgba(13,52,80,0.7) !important;
  border: 1px solid rgba(112,163,193,0.3) !important;
  color: #a8c8dc !important;
}

table td {
  border: 1px solid rgba(112,163,193,0.15) !important;
  color: #ddd !important;
}

table tr:nth-child(odd) {
  background-color: rgba(13,52,80,0.3) !important;
}

table tr:nth-child(even) {
  background-color: rgba(10,25,50,0.2) !important;
}

/* --- Breadcrumb --- */
.breadcrumb {
  background-color: rgba(10,30,60,0.5) !important;
}

.breadcrumb-item a {
  color: #70a3c1 !important;
}

.breadcrumb-item.active {
  color: #a8c8dc !important;
}

/* --- Links gold/cobre → azul --- */
.panel-li a,
.gold-text,
.link-copper,
a.gold-text {
  color: #70a3c1 !important;
}

/* --- Plugin title (borda cobre → azul) --- */
.plugin-title {
  color: #a8c8dc !important;
  border-bottom: 2px solid rgba(112,163,193,0.4) !important;
}

/* --- Info labels --- */
.info-label {
  color: #6ba3c2 !important;
}

.info-value {
  color: #ddd !important;
}

/* --- Sub title --- */
.sub-title-simple {
  color: #6ba3c2 !important;
}

/* --- Sidebar links (marrom → azul) --- */
.sidebar-medieval-link {
  border-color: rgba(112,163,193,0.2) !important;
}

.sidebar-medieval-link:hover,
.sidebar-medieval-link.active {
  background: linear-gradient(90deg, rgba(112,163,193,0.15) 0%, rgba(0,0,0,0.4) 100%) !important;
  border-color: #70a3c1 !important;
}

.sidebar-medieval-link.active::before {
  background: #70a3c1 !important;
  box-shadow: 0 0 10px #70a3c1 !important;
}

/* --- Cards gerais (borda marrom → azul) --- */
.card.info-block-item {
  border-color: rgba(112,163,193,0.2) !important;
}

/* --- Rankings navigation --- */
#panel-rankings button {
  background: rgba(10,30,60,0.4) !important;
  border: 1px solid rgba(112,163,193,0.2) !important;
  color: #a8c8dc !important;
}

#panel-rankings .active button {
  background: linear-gradient(180deg, #1a5276 0%, #0d3450 100%) !important;
  color: #fff !important;
  border-color: #70a3c1 !important;
}

/* --- Dropdown medieval (marrom → azul) --- */
.dropdown-medieval {
  background: linear-gradient(180deg, #091e30 0%, #050e18 100%) !important;
  border: 1px solid rgba(112,163,193,0.2) !important;
  border-top: 3px solid #70a3c1 !important;
}

.dropdown-medieval .dropdown-item,
.dropdown-medieval .nav-link {
  color: #a8c8dc !important;
  border-bottom: 1px solid rgba(112,163,193,0.1) !important;
}

.dropdown-medieval .dropdown-item:hover,
.dropdown-medieval .dropdown-item.active,
.dropdown-medieval .nav-link:hover,
.dropdown-medieval .nav-link.active {
  background: linear-gradient(180deg, #1a5276 0%, #0d3450 100%) !important;
  color: #fff !important;
}

/* --- Botão de registro (laranja → azul) --- */
.content form button[type="submit"],
.content form input[type="submit"] {
  background: linear-gradient(180deg, #1a5276 0%, #0d3450 100%) !important;
  border: 1px solid #70a3c1 !important;
  color: #fff !important;
  border-radius: 5px !important;
  padding: 12px 28px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
}

.content form button[type="submit"]:hover,
.content form input[type="submit"]:hover {
  background: linear-gradient(180deg, #217dbb 0%, #1a5276 100%) !important;
}

/* --- Accordion (vermelho → azul) --- */
.accordion-medieval .accordion-item {
  border-color: rgba(112,163,193,0.2) !important;
}

.accordion-medieval .accordion-button::after {
  filter: hue-rotate(180deg) saturate(0.5) brightness(1.5) !important;
}

/* --- Títulos de página --- */
.content-title h1,
.content-title .title,
h1.title {
  color: #fff !important;
}

/* --- Nav tabs (vermelho → azul) --- */
.nav-tabs {
  border-bottom-color: rgba(112,163,193,0.3) !important;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  background-color: rgba(13,52,80,0.6) !important;
  border-color: #70a3c1 #70a3c1 transparent !important;
  color: #fff !important;
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
  border-color: rgba(112,163,193,0.4) !important;
  color: #70a3c1 !important;
}

/* --- List group items --- */
.list-group-item {
  border-color: rgba(112,163,193,0.1) !important;
}

.list-group-item.active {
  background-color: #1a5276 !important;
  border-color: #70a3c1 !important;
}

/* --- Checkbox styled --- */
.styled-checkbox:checked + label::before {
  border-color: #70a3c1 !important;
}

.styled-checkbox + label::after {
  color: #70a3c1 !important;
}

/* --- Notifications badge --- */
.notification {
  background: #70a3c1 !important;
  color: #fff !important;
}

/* --- Panel login border/colors --- */
.panel-li {
  border-bottom-color: rgba(112,163,193,0.2) !important;
}

/* --- Download section headers (vermelho → azul) --- */
.content h3,
.content h2 {
  color: #a8c8dc !important;
}

/* --- Widget titles que possam ter vermelho residual --- */
.widget .widget-title {

}

/* --- Form control focus (vermelho → azul) --- */
.form-control:focus {
  border-color: #70a3c1 !important;
  box-shadow: 0 0 0 3px rgba(112,163,193,0.2) !important;
}

/* --- Captcha area --- */
.captcha-container,
[class*="captcha"] {
  border-color: rgba(112,163,193,0.2) !important;
}

/* --- Estilo geral para "Ver Mais" e links de ação --- */
.no-reset a,
a.btn-more {
  color: #70a3c1 !important;
}

.no-reset a:hover,
a.btn-more:hover {
  color: #fff !important;
}


/* --- Fix: Placeholders rosa → azul claro --- */
::placeholder,
::-webkit-input-placeholder,
::-moz-placeholder,
:-moz-placeholder,
:-ms-input-placeholder {
  color: rgba(112,163,193,0.5) !important;
}

/* --- Fix: Links de rankings/nav que ficam laranja --- */
.content a,
.content-page a,
.nav-link,
a.nav-link,
.list-group-item a,
.rankings a,
.ranking-nav-flex a {
  color: #70a3c1 !important;
}

.content a:hover,
.content-page a:hover,
.nav-link:hover,
a.nav-link:hover,
.rankings a:hover {
  color: #fff !important;
  text-shadow: 0 0 5px rgba(112,163,193,0.4);
}

/* Fix: Links ativos nos rankings */
.nav-link.active,
a.nav-link.active {
  color: #fff !important;
}

/* Fix: Ícones de membros laranja (emoji) */
.content td a,
.content td {
  color: #ddd !important;
}


/* ============================================
   MODERNIZAÇÃO: Painel Minha Conta (panel/account/info)
   ============================================ */

/* --- Container do plugin --- */
.plugin-container {
  padding: 10px 0;
}

/* --- Blocos de informação --- */
.plugin-container .info-block-item {
  background: rgba(10,25,50,0.4) !important;
  border: 1px solid rgba(112,163,193,0.12) !important;
  border-radius: 8px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  backdrop-filter: blur(2px);
}

/* --- Título do bloco (INFORMATION, MOEDAS, etc.) --- */
.plugin-container .plugin-title {
  color: #a8c8dc !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  padding-bottom: 12px !important;
  margin-bottom: 15px !important;
  border-bottom: 1px solid rgba(112,163,193,0.15) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Linhas de informação (row-info) --- */
.plugin-container .row-info {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 15px !important;
  border-bottom: 1px solid rgba(112,163,193,0.06) !important;
  border-radius: 4px !important;
  transition: background 0.2s ease;
}

.plugin-container .row-info:last-child {
  border-bottom: none !important;
}

.plugin-container .row-info:hover {
  background: rgba(112,163,193,0.04) !important;
}

/* --- Labels --- */
.plugin-container .info-label {
  color: rgba(168,200,220,0.6) !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
}

/* --- Valores --- */
.plugin-container .info-value {
  color: #e0e8f0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* --- Gold text (valores de moeda) → azul claro --- */
.plugin-container .gold-text {
  color: #70a3c1 !important;
  font-weight: 700 !important;
}

/* --- Botões 2FA --- */
.plugin-container .btn-theme-solid {
  background: linear-gradient(135deg, #1a5276 0%, #0d3450 100%) !important;
  border: 1px solid rgba(112,163,193,0.3) !important;
  color: #fff !important;
  padding: 12px 30px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  text-decoration: none !important;
}

.plugin-container .btn-theme-solid:hover {
  background: linear-gradient(135deg, #217dbb 0%, #1a5276 100%) !important;
  border-color: #70a3c1 !important;
  box-shadow: 0 4px 20px rgba(112,163,193,0.25) !important;
  transform: translateY(-2px) !important;
}

.plugin-container .btn-success-theme {
  background: linear-gradient(135deg, #1a6b4a 0%, #0d4030 100%) !important;
  border-color: rgba(39,174,96,0.3) !important;
}

.plugin-container .btn-success-theme:hover {
  background: linear-gradient(135deg, #27ae60 0%, #1a6b4a 100%) !important;
  box-shadow: 0 4px 20px rgba(39,174,96,0.25) !important;
}

.plugin-container .btn-danger-theme {
  background: linear-gradient(135deg, #7b2d3b 0%, #4a1a24 100%) !important;
  border-color: rgba(192,57,43,0.3) !important;
}

.plugin-container .btn-danger-theme:hover {
  background: linear-gradient(135deg, #c0392b 0%, #7b2d3b 100%) !important;
  box-shadow: 0 4px 20px rgba(192,57,43,0.25) !important;
}

/* --- Grid de personagens --- */
.plugin-container .character-grid-custom {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
  gap: 12px !important;
  padding: 10px 0 !important;
}

/* --- Cards de personagem --- */
.plugin-container .char-card-custom {
  background: rgba(10,25,50,0.5) !important;
  border: 1px solid rgba(112,163,193,0.12) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

.plugin-container .char-card-custom:hover {
  border-color: #70a3c1 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
}

/* --- Header do card de personagem --- */
.plugin-container .char-name-header {
  background: linear-gradient(135deg, #0d3450 0%, #091e30 100%) !important;
  color: #a8c8dc !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 8px 10px !important;
  text-align: center !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1px solid rgba(112,163,193,0.15) !important;
}

/* --- Avatar box --- */
.plugin-container .char-avatar-box {
  background: rgba(0,0,0,0.3) !important;
  padding: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.plugin-container .char-avatar-box img {
  width: 70px !important;
  height: 80px !important;
  border-radius: 4px !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)) !important;
}

/* --- Botão gerenciar personagem --- */
.plugin-container .btn-char-manage {
  background: linear-gradient(135deg, #1a5276 0%, #0d3450 100%) !important;
  color: #a8c8dc !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 8px !important;
  text-align: center !important;
  display: block !important;
  text-decoration: none !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  border-top: 1px solid rgba(112,163,193,0.1) !important;
}

.plugin-container .btn-char-manage:hover {
  background: linear-gradient(135deg, #217dbb 0%, #1a5276 100%) !important;
  color: #fff !important;
}

/* --- Sidebar do painel (Serviços) --- */
.panel-container-flex {
  display: flex !important;
  gap: 20px !important;
}

.panel-sidebar {
  min-width: 180px !important;
}

.panel-sidebar .title-gradient,
.panel-wrapper-area .title-gradient {
  background: linear-gradient(135deg, #0d3450 0%, #091e30 100%) !important;
  color: #a8c8dc !important;
  padding: 10px 15px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  border-left: 3px solid #70a3c1 !important;
  margin-bottom: 10px !important;
  border-radius: 0 4px 4px 0 !important;
}

.panel-sidebar .sidebar-link {
  display: block !important;
  padding: 10px 15px !important;
  color: rgba(168,200,220,0.7) !important;
  font-size: 12px !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(112,163,193,0.06) !important;
  transition: all 0.2s ease !important;
}

.panel-sidebar .sidebar-link:hover {
  color: #fff !important;
  background: rgba(112,163,193,0.05) !important;
  padding-left: 20px !important;
}

.panel-sidebar .sidebar-link.active {
  color: #70a3c1 !important;
  font-weight: 700 !important;
  border-left: 2px solid #70a3c1 !important;
  background: rgba(112,163,193,0.05) !important;
}

/* --- Ban block --- */
.plugin-container .ban-block {
  border-left: 4px solid #c0392b !important;
  background: rgba(192,57,43,0.05) !important;
}

/* --- Small date --- */
.plugin-container .small-date {
  color: rgba(168,200,220,0.5) !important;
  font-size: 11px !important;
}


/* --- Esconder bandeiras/flags no Hall da Fama (top-players) --- */
.top-block img[src*="flag"],
.top-block img[src*="countr"],
.widget table img[src*="flag"],
.widget table img[src*="countr"] {
  display: none !important;
}


/* --- Esconder imagens quebradas no Hall da Fama / top-players --- */
.widget table img,
.widget .top-block img,
.right-sidebar table img,
.left-sidebar table img {
  display: none !important;
}
