:root {
  --gold: #c5a059;
  --gold-dim: #7c6539;
  --bg-dark: #0a0a0a;
  --panel-overlay: rgba(15, 15, 15, 0.8);
  --font-ui: 'Rajdhani', sans-serif;
  --font-title: 'Cinzel', serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Estilização da Barra de Rolagem (Webkit - Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.5);
  border-left: 1px solid rgba(197, 160, 89, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* Estilização para Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) rgba(10, 10, 10, 0.5);
}

/* Tela de Carregamento Estilo Conan */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000 url('https://image.api.playstation.com/vulcan/ap/rnd/202410/1607/825ac7f316e18b0464fa62f50c3ac3f7400ff2278b586cb2.png') no-repeat center center;
  background-size: cover;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 50px;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.loading-content {
  width: 80%;
  max-width: 800px;
  margin-bottom: 15px;
}

.loading-text {
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 900;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9), 0 0 10px rgba(197, 160, 89, 0.5);
}

.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--gold-dim);
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  transition: width 0.4s ease;
}

body {
  background-color: var(--bg-dark);
  color: #e0e0e0;
  font-family: var(--font-ui);
  margin: 0;
  height: 100vh;
  overflow-x: hidden;
}

/* Camadas de Fundo */
#bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
}

#bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

/* Navegação */
.game-nav {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.nav-key {
  border: 1px solid var(--gold);
  padding: 2px 10px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.nav-key:active {
  background-color: var(--gold);
  color: #ffffff;
  box-shadow: 0 0 10px var(--gold);
}

#main-tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  align-items: flex-start;
  height: 15px;
}

#main-tabs li {
  display: flex;
  align-items: flex-start;
  font-size: 22px;
  color: #ffffff;
  cursor: pointer;
  text-transform: capitalize;
  font-weight: 900;
  position: relative;
  transition: font-size 0.2s ease;
  line-height: 1;
  margin: 0;
  padding: 0;
}

#main-tabs li.active {
  font-size: 24px;
  text-shadow: 0 0 15px var(--gold), 0 0 25px var(--gold-dim);
  color: #ffffff;
  margin-top: -1px;
}

#main-tabs li.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  width: 100%;
  height: 3px;
}

/* Painéis de Conteúdo */
.tab-content {
  display: none;
  width: 95%;
  margin: 40px auto;
}

.tab-content.active {
  display: block;
}

.dashboard-grid {
  display: grid;
  gap: 20px;
  width: 100%;
}

.col-1 {
  grid-template-columns: 1fr;
}

.col-2 {
  grid-template-columns: repeat(2, 1fr);
}

.col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.content-block {
  padding: 20px;
  background: var(--panel-overlay);
  border: 1px solid rgba(197, 160, 89, 0.2);
  animation: fadeIn 0.4s;
  min-height: 200px;
}

@media (max-width: 992px) {

  .col-2,
  .col-3 {
    grid-template-columns: 1fr;
  }
}

/* Títulos das Seções (Unificado) */
.section-title {
  font-family: var(--font-title);
  color: var(--gold);
  border-bottom: 1px solid rgba(197, 160, 89, 0.3);
  margin-bottom: 15px;
  padding-bottom: 5px;
  font-size: 18px;
  text-transform: capitalize;
}

.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ==========================================================================
   CORREÇÃO DO MERCADO (REMOÇÃO DAS LINHAS E FIX DA SOBREPOSIÇÃO)
   ========================================================================== */

/* 1. Anula o height: 100% que estava no HTML para a caixa expandir sozinha e não sobrepor */
.content-block:has(.player-market-highlights) {
  height: auto !important;
}

/* 2. Remove a borda do título apenas neste bloco */
.content-block:has(.player-market-highlights) .section-title {
  border-bottom: none !important;
  margin-bottom: 5px;
}

/* 3. Remove a borda do botão abaixo (que estava via HTML) apenas neste bloco */
.content-block:has(.player-market-highlights) .align-right {
  border-top: none !important;
  padding-top: 10px !important;
}

/* Barras de Status Estilizadas */
.bar {
  height: 14px;
  background: #222;
  margin-bottom: 10px;
  border: 1px solid #444;
  position: relative;
}

.bar::before {
  content: attr(data-value);
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 11px;
  line-height: 14px;
  z-index: 2;
}

.health {
  background: linear-gradient(90deg, #8b0000, #ff0000);
  width: 100%;
  max-width: 300px;
}

.stamina {
  background: linear-gradient(90deg, #b8860b, #ffd700);
  width: 80%;
  max-width: 250px;
}

/* Linhas de Dados Compactas */
.row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.stat-category h3 {
  color: var(--gold);
  font-size: 14px;
  margin: 15px 0 5px 0;
}

.sub-category {
  font-size: 12px;
  color: #aaa;
  margin: 10px 0 5px 0;
}

/* Mobile */
.mobile-menu-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-icon span {
  width: 25px;
  height: 3px;
  background: var(--gold);
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-menu-icon {
    display: flex;
  }

  #main-tabs {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 2px solid var(--gold);
    padding: 20px 0;
    text-align: center;
  }

  #main-tabs.show {
    display: flex;
  }

  .layout-split {
    grid-template-columns: 1fr;
  }
}

/* Estilos Específicos do Bazar */
.item-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.item-card:hover {
  transform: scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.item-title {
  font-family: var(--font-title);
  font-size: 14px;
  color: #fff;
}

.item-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
}

.item-price small {
  display: inline-flex;
  align-items: center;
}

.item-preview {
  flex-grow: 1;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 5px 0;
  min-height: 140px;
  position: relative;
  /* <-- ADICIONE APENAS ESTA LINHA */
}

/* ==========================================================================
   ESTILIZAÇÃO DO ÍCONE DO ITEM NO BAZAR
   ========================================================================== */
/* Container que organiza os múltiplos quadrados */
.item-icon-container {
  position: absolute;
  top: 8px;
  right: 8px;
  /* Posicionado no canto direito */
  bottom: 8px;
  /* Trava a altura no limite do card para forçar a quebra de coluna */

  display: flex;
  flex-direction: column;
  /* Empilha de cima para baixo */
  flex-wrap: wrap-reverse;
  /* Se acabar o espaço, cria nova coluna para a ESQUERDA */
  align-content: flex-end;
  /* Alinha todo o bloco à direita */
  gap: 6px;
  /* Espaçamento entre os quadrados */
  z-index: 2;
}

/* O estilo individual de cada quadrado */
.item-icon-box {
  /* Removemos o position: absolute daqui, o container já faz isso */
  width: 40px;
  height: 40px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  transition: border-color 0.2s ease, transform 0.2s ease;

  /* flex-shrink: 0 impede que o quadrado amasse caso a tela fique muito pequena */
  flex-shrink: 0;
}

.item-card:hover .item-icon-box {
  border-color: var(--gold);
}

.item-icon-box img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
}

/* Estilização da nova descrição sobre a imagem */
.item-description {
  position: absolute;
  bottom: 0;
  /* Prende o texto na parte de baixo da imagem */
  left: 0;
  width: 100%;
  /* Faz a faixa ocupar toda a largura */
  /* Estética: Fundo semi-transparente para garantir a leitura do texto por cima de qualquer imagem */
  background: rgba(0, 0, 0, 0.75);
  color: #e0e0e0;
  /* Espaçamento interno */
  padding: 8px 10px;
  box-sizing: border-box;
  /* Impede que o padding faça o texto vazar para fora do card */
  /* Tipografia: Seguindo a fonte UI padrão do seu projeto */
  font-family: var(--font-ui);
  font-size: 13px;
  text-align: left;
  /* Centraliza o texto (opcional, pode mudar para left se preferir) */
  /* Adiciona uma linha muito sutil no topo da descrição para separar visualmente */
  border-top: 1px solid rgba(197, 160, 89, 0.2);
}

.status-tag {
  font-size: 11px;
  color: var(--gold-dim);
  letter-spacing: 1px;
  font-weight: 600;
}

.item-card.owned {
  opacity: 0.8;
}

.item-card.highlight {
  border-width: 2px;
  box-shadow: inset 0 0 10px rgba(197, 160, 89, 0.1);
}

.game-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 15px 40px;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  border-top: 1px solid var(--gold-dim);
  z-index: 1000;
}

.action-btn {
  background: #111;
  border: 1px solid var(--gold-dim);
  color: #fff;
  font-family: var(--font-title);
  padding: 6px 20px;
  cursor: pointer;
}

/* Estilos do Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  width: 90%;
  max-width: 700px;
  animation: fadeIn 0.3s ease;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.close-modal {
  color: var(--gold);
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  margin-top: 20px;
}

.modal-preview {
  height: 250px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gold-dim);
}

.modal-info p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-footer {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  padding-top: 15px;
}

/* Estilos da Galeria de Mapas */
.map-card {
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.map-card:hover {
  border-color: var(--gold);
  transform: scale(1.01);
}

.map-thumb {
  height: 300px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(197, 160, 89, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.map-overlay-text {
  pointer-events: none;
  background: rgba(0, 0, 0, 0.7);
  color: var(--gold);
  padding: 10px 20px;
  font-family: var(--font-title);
  border: 1px solid var(--gold);
  transition: 0.3s;
  opacity: 0;
}

.map-card:hover .map-overlay-text {
  opacity: 1;
}

.modal-full-image {
  width: 100%;
  height: 70vh;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid var(--gold-dim);
}

#map-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.map-footer-overlay {
  margin-top: -40px;
  z-index: 10002;
}

.user-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  color: var(--gold);
  font-weight: bold;
  font-size: 18px;
}

.coin-icon {
  width: 24px;
  height: 24px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-dim);
  display: inline-block;
}

.footer-actions {
  display: flex;
  gap: 15px;
}

.close-lightbox {
  position: fixed;
  top: 20px;
  right: 30px;
  color: var(--gold);
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10005;
  text-shadow: 0 0 10px #000;
}

#map-viewport {
  cursor: grab;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}

#map-viewport:active {
  cursor: grabbing;
}

#map-full-image {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  transition: transform 0.2s ease-out;
}

.map-controls {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10005;
}

.map-controls button {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
}

.key-hint {
  font-size: 10px;
  color: var(--gold-dim);
  vertical-align: super;
  margin-left: 2px;
  opacity: 0.7;
}

/* Correção de Estilização para Formulários do Jogo */
.game-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-family: var(--font-ui);
  color: #aaa;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-form input {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(197, 160, 89, 0.3) !important;
  padding: 10px;
  color: #fff !important;
  font-family: var(--font-ui);
  font-size: 14px;
  border-radius: 0px;
  box-sizing: border-box;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.game-form input:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.4) !important;
  background: rgba(15, 15, 15, 0.8) !important;
}

.form-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.remember-me {
  font-size: 13px;
  color: #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.remember-me input[type="checkbox"] {
  width: auto;
  accent-color: var(--gold);
}

.game-form input:-webkit-autofill,
.game-form input:-webkit-autofill:hover,
.game-form input:-webkit-autofill:focus,
.game-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0.6) inset !important;
  box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0.6) inset !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  border: 1px solid rgba(197, 160, 89, 0.3) !important;
  border-radius: 0px !important;
  transition: background-color 999999s ease-in-out 0s, color 999999s ease-in-out 0s !important;
}

.game-form input:-webkit-autofill:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0px 1000px rgba(15, 15, 15, 0.8) inset, 0 0 8px rgba(197, 160, 89, 0.4) !important;
  -webkit-box-shadow: 0 0 0px 1000px rgba(15, 15, 15, 0.8) inset, 0 0 8px rgba(197, 160, 89, 0.4) !important;
}

.notifier-wrapper {
  width: 95%;
  margin: 0 auto;
  padding: 0;
  display: block;
}

.notifier-container {
  display: none;
  background: rgba(20, 10, 10, 0.9);
  border: 1px solid var(--gold);
  padding: 15px;
  box-sizing: border-box;
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.notifier-container.success {
  color: #5cb85c;
  border-color: #5cb85c;
  background: rgba(10, 25, 10, 0.9);
}

.notifier-container.error {
  color: #d9534f;
  border-color: #d9534f;
  background: rgba(25, 10, 10, 0.9);
}

#game-content {
  padding: 10px;
  box-sizing: border-box;
}

.image-preview-box {
  width: 150px;
  height: 150px;
  border: 1px solid var(--gold-dim);
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-top: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.purchase-orders-section {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  background: rgba(20, 17, 15, 0.9);
  border: 1px solid #3d352e;
  border-radius: 4px;
  padding: 20px;
  box-sizing: border-box;
}

.purchase-orders-section h2 {
  color: #ccab7a;
  margin-top: 0;
  margin-bottom: 20px;
  font-family: sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  border-bottom: 2px solid #3d352e;
  padding-bottom: 10px;
}

.orders-table-container {
  width: 100%;
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: sans-serif;
  font-size: 14px;
  color: #e0e0e0;
}

.orders-table th,
.orders-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #2a241f;
}

.orders-table th {
  background-color: rgba(0, 0, 0, 0.4);
  color: #8c7759;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.order-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
}

.coin-icon-small {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.badge {
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
}

.badge.status-success {
  background-color: rgba(46, 105, 48, 0.3);
  color: #a3ffa6;
  border: 1px solid #2e6930;
}

.badge.status-pending {
  background-color: rgba(128, 96, 27, 0.3);
  color: #ffe699;
  border: 1px solid #80601b;
}

.badge.status-canceled {
  background-color: rgba(115, 36, 36, 0.3);
  color: #ffb3b3;
  border: 1px solid #732424;
}

.orders-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #3d352e;
  font-family: sans-serif;
  font-size: 14px;
  color: #8c7759;
}

.pagination-info b {
  color: #e0e0e0;
}

.pagination-buttons {
  display: flex;
  gap: 5px;
}

.pag-btn {
  background: #2a241f;
  border: 1px solid #4d4239;
  color: #ccab7a;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.pag-btn:not(:disabled):hover {
  background: #3d352e;
  color: #fff;
  border-color: #ccab7a;
}

.pag-btn.active {
  background: #ccab7a;
  color: #14110f;
  border-color: #ccab7a;
  cursor: default;
}

.pag-btn:disabled {
  background: rgba(42, 36, 31, 0.5);
  border-color: #2a241f;
  color: #594e43;
  cursor: not-allowed;
}

.market-pane {
  display: none !important;
}

.market-pane.active {
  display: grid !important;
}

.market-sub-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #3d352e;
  padding-bottom: 5px;
}

.sub-tab-btn {
  background: transparent;
  border: none;
  color: #8c7759;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
}

.sub-tab-btn:hover {
  color: #e0e0e0;
}

.sub-tab-btn.active {
  color: #ccab7a;
}

.sub-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ccab7a;
  box-shadow: 0 0 8px rgba(204, 171, 122, 0.6);
}

.btn-view-order {
  display: inline-block;
  background-color: #2a241f;
  border: 1px solid #4d4239;
  color: #ccab7a;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.btn-view-order:hover {
  background-color: #ccab7a;
  color: #14110f;
  border-color: #ccab7a;
  box-shadow: 0 0 6px rgba(204, 171, 122, 0.4);
}

.orders-table th:last-child,
.orders-table td:last-child {
  text-align: center;
  width: 100px;
}

.order-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #3d352e;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.order-details-header .section-title {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.btn-back {
  color: #8c7759;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: color 0.2s;
}

.btn-back:hover {
  color: #ccab7a;
}

.order-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.summary-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #2a241f;
  padding: 12px;
  border-radius: 4px;
}

.summary-card .card-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #8c7759;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.summary-card .card-value {
  color: #e0e0e0;
  font-size: 15px;
  font-weight: bold;
}

.details-sub-block {
  margin-bottom: 25px;
}

.details-sub-block h3 {
  color: #ccab7a;
  font-size: 15px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-left: 3px solid #ccab7a;
  padding-left: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.01);
  padding: 10px 15px;
  border-bottom: 1px solid #2a241f;
  color: #b3b3b3;
  font-size: 14px;
}

.order-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-thumbnail-small {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid #4d4239;
  border-radius: 3px;
}

.item-name-bold {
  font-weight: bold;
  color: #e0e0e0;
}

.order-checkout-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-top: 1px solid #3d352e;
  padding-top: 20px;
  margin-top: 20px;
  width: 100%;
}

.checkout-totals {
  width: 300px;
  margin-bottom: 20px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  color: #8c7759;
  font-size: 14px;
  margin-bottom: 6px;
}

.total-row span:last-child {
  color: #e0e0e0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.final-total {
  font-size: 18px;
  font-weight: bold;
  border-top: 1px dashed #3d352e;
  padding-top: 8px;
  margin-top: 8px;
}

.gold-text {
  color: #ccab7a !important;
}

.btn-generate-payment {
  background: linear-gradient(180deg, #b53c24 0%, #822210 100%);
  border: 1px solid #541105;
  color: #ffffff;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease-in-out;
}

.btn-generate-payment:hover {
  background: linear-gradient(180deg, #d44d33 0%, #a12f1b 100%);
  box-shadow: 0 0 12px rgba(212, 77, 51, 0.4);
  transform: translateY(-1px);
}

.btn-generate-payment:active {
  transform: translateY(1px);
}

.checkout-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 20px;
}

.qr-code-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px auto 10px auto;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #2a241f;
  border-radius: 4px;
  padding: 20px;
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

.qr-instruction {
  font-family: sans-serif;
  font-size: 12px;
  color: #8c7759;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.4;
}

.qr-code-frame {
  background: #ffffff;
  padding: 10px;
  border-radius: 4px;
  display: inline-flex;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.qr-image {
  width: 160px;
  height: 160px;
  display: block;
}

.qr-timeout {
  font-family: sans-serif;
  font-size: 11px;
  color: #b53c24;
  margin-top: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   ESTILIZAÇÃO DA SEÇÃO ERRO 404
   ========================================================================== */

.error-404-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 40px;
  background: rgba(10, 10, 10, 0.85) !important;
  border: 2px solid var(--gold-dim);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.7);
  text-align: center;
  margin: 20px auto;
  max-width: 700px;
}

.error-404-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.error-code {
  font-family: var(--font-display), 'Cinzel', serif;
  font-size: 80px;
  font-weight: bold;
  color: var(--gold);
  line-height: 1;
  margin: 0;
  text-shadow: 0 0 15px rgba(197, 160, 89, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 5px;
}

.error-title {
  font-family: var(--font-ui), sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 2px;
  margin: 0;
}

.error-divider {
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
  margin: 10px 0;
}

.error-message {
  font-family: var(--font-ui), sans-serif;
  font-size: 15px;
  color: #b0b0b0;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 0 15px 0;
}

.error-actions .action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  font-size: 14px;
  text-transform: uppercase;
}

.error-actions .action-btn i {
  font-size: 16px;
  color: var(--gold);
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(197, 160, 89, 0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: forja-spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: sub;
}

@keyframes forja-spin {
  to {
    transform: rotate(360deg);
  }
}

.game-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   SISTEMA DE MERCADO & VENDAS DOS JOGADORES
   ========================================================================== */

.market-forge-block,
.market-contracts-block {
  border-color: var(--gold-dim);
}

#form-new-sale {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.market-label {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 14px;
}

.market-select,
.market-input {
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--gold-dim);
  color: #ffffff;
  font-family: var(--font-ui);
}

.market-select:focus,
.market-input:focus {
  border-color: var(--gold);
  outline: none;
}

.tax-calculator {
  background: rgba(197, 160, 89, 0.1);
  padding: 10px;
  border-left: 3px solid var(--gold);
}

.tax-row {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #cccccc;
  font-family: var(--font-ui);
}

.tax-row:last-child {
  margin-bottom: 0;
}

.text-danger {
  color: #e74c3c;
}

.text-gold {
  color: var(--gold);
  font-size: 16px;
}

.text-real {
  color: #2ecc71;
  font-size: 15px;
}

.market-real-divider {
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  padding-top: 5px;
  margin-top: 5px;
}

.market-contracts-list {
  margin-top: 15px;
}

.contract-row {
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  margin-bottom: 5px;
  border-left: 2px solid var(--gold-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contract-info {
  display: flex;
  flex-direction: column;
}

.contract-name {
  display: block;
  color: var(--gold);
  font-weight: bold;
  font-family: var(--font-ui);
}

.contract-meta {
  font-size: 12px;
  color: #888888;
  font-family: var(--font-ui);
}

.btn-cancel-sale {
  padding: 5px 15px;
  font-size: 12px;
  background: rgba(200, 50, 50, 0.2);
  border-color: #e74c3c;
  color: #e74c3c;
}

.btn-cancel-sale:hover {
  background: rgba(200, 50, 50, 0.4);
  color: #ffffff;
}

/* ==========================================================================
   PÁGINA INICIAL (DASHBOARD) - COMPONENTES E GALERIAS
   ========================================================================== */

.grid-spacing {
  margin-top: 20px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.pt-5 {
  padding-top: 5px;
}

.align-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.no-padding {
  padding: 0;
  overflow: hidden;
}

.border-gold {
  border-color: var(--gold-dim);
}

.link-btn {
  text-decoration: none;
}

.bazaar-container {
  position: relative;
  height: 220px;
  background: rgba(0, 0, 0, 0.6);
}

.bazaar-slide {
  position: absolute;
  inset: 0;
  display: flex;
  transition: opacity 0.8s ease;
  z-index: 2;
}

.inactive-slide {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.bazaar-preview {
  flex: 1.5;
  border-right: 2px solid rgba(197, 160, 89, 0.2);
  background-size: cover;
  background-position: center;
}

.bazaar-info {
  flex: 2;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bazaar-label {
  color: var(--gold-dim);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.bazaar-title {
  color: var(--gold);
  font-size: 1.8em;
  margin: 0 0 10px 0;
  font-family: var(--font-title), serif;
}

.bazaar-desc {
  font-size: 0.95em;
  opacity: 0.8;
  margin-bottom: 20px;
}

.bazaar-action-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bazaar-price {
  font-size: 1.4em;
  font-weight: bold;
}

/* Ofertas dos Jogadores (Mini-lista e Scroll) */
.player-market-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scrollable-market {
  max-height: 215px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
  margin-bottom: 15px;
  /* Empurra o botão garantindo que não haja sobreposição */
}

.offer-main-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.offer-thumb {
  width: 45px;
  height: 45px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
}

.offer-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.player-offer-row {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 10px;
  border-left: 2px solid var(--gold-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer-details {
  display: flex;
  flex-direction: column;
}

.offer-item {
  color: var(--gold);
  font-weight: bold;
  font-family: var(--font-ui);
  font-size: 14px;
}

.offer-seller {
  font-size: 12px;
  color: #888888;
  font-family: var(--font-ui);
}

.offer-price {
  font-weight: bold;
  color: #fff;
  font-size: 14px;
}

.small-btn {
  padding: 5px 12px;
  font-size: 12px;
}

/* Status e Eventos */
.status-online {
  color: #4CAF50;
  font-weight: bold;
  text-shadow: 0 0 5px #4CAF50;
}

.ip-copy {
  color: var(--gold);
  user-select: all;
  cursor: pointer;
}

.event-banner {
  height: 120px;
  border-bottom: 2px solid var(--gold-dim);
  background-size: cover;
  background-position: center;
}

.event-title {
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  color: var(--gold);
  font-weight: bold;
  display: inline-block;
  margin-top: 85px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-date {
  color: var(--gold-dim);
  font-size: 0.85em;
  margin-bottom: 2px;
}

.news-title {
  color: var(--gold);
  font-weight: bold;
  font-size: 1.1em;
}

.news-desc {
  margin: 5px 0 0 0;
  font-size: 0.9em;
  opacity: 0.8;
}

.news-divider {
  border: 0;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  margin: 0;
}

.hof-highlight {
  background: rgba(197, 160, 89, 0.1);
  padding: 5px 10px;
}

.row-padded {
  padding: 5px 10px;
}

.hof-footer {
  text-align: center;
  font-size: 0.85em;
  margin-top: 10px;
  opacity: 0.7;
}

/* Galeria */
.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 100px);
  gap: 10px;
  margin-bottom: 15px;
}

.gallery-thumb {
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gold-dim);
  cursor: pointer;
  transition: 0.3s ease;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-thumb:hover {
  border-color: var(--gold);
  transform: scale(1.03);
}

.video-container {
  width: 100%;
  height: 200px;
  border: 1px solid var(--gold-dim);
  margin-bottom: 10px;
}

.video-container iframe {
  width: 100%;
  height: 100%;
}

.video-playlist {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 120px;
  overflow-y: auto;
}

.playlist-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid transparent;
  color: #ccc;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: 0.3s;
}

.playlist-btn:hover {
  background: rgba(197, 160, 89, 0.2);
  border-left: 2px solid var(--gold-dim);
  color: #fff;
}

.playlist-btn.active {
  background: rgba(197, 160, 89, 0.1);
  border-left: 2px solid var(--gold);
  color: var(--gold);
  font-weight: bold;
}

.decrees-layout {
  display: flex;
  flex-direction: row;
  /* Mantém as abas na esquerda e conteúdo na direita */
  gap: 20px;
  height: 100%;
}

.decrees-tabs {
  list-style: none;
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
  /* Garante que fique acima de outros elementos */
  pointer-events: auto;
}

.decrees-tabs li {
  cursor: pointer;
  pointer-events: auto;
  padding: 8px;
  background: rgba(197, 160, 89, 0.1);
  margin-bottom: 5px;
  cursor: pointer;
  border-left: 2px solid var(--gold-dim);
  font-size: 0.85em;
  transition: 0.3s;
}

.decrees-tabs li.active,
.decrees-tabs li:hover {
  background: rgba(197, 160, 89, 0.2);
  border-left-color: var(--gold);
}

.decrees-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  /* Essencial para o rodapé fixo */
  position: relative;
  min-height: 150px;
  /* Ajuste conforme a altura que você deseja */
}

.decree-tab {
  flex-grow: 1;
  /* Faz o conteúdo ocupar o espaço disponível */
}

.decree-tab.active {
  display: block;
}

.decree-footer {
  margin-top: auto;
  /* Força o rodapé para baixo da div */
  padding-top: 15px;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  font-size: 0.75em;
  color: var(--gold);
  text-transform: uppercase;
  width: 100%;
}

/* Remove margens extras que podem estar impedindo o alinhamento */
.decrees-tabs {
  margin: 0 !important;
}

.tab-link {
  padding: 10px 5px;
  border-left: 3px solid transparent;
  cursor: pointer;
  color: #fff;
  transition: 0.2s;
}

.tab-link.active {
  border-left-color: var(--gold);
  background: rgba(197, 160, 89, 0.1);
}

.decree-tab {
  display: none;
  /* Oculta todos por padrão */
}

.decree-tab.active {
  display: block;
  /* Exibe apenas o ativo */
}

.ymir-coins {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ymir-coins-small {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ymir-coins-tiny {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.server-selector {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.server-select {
  width: auto;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  height: 26px;
}

/* --- Tooltip do Hover --- */
.tooltip-container {
  position: relative;
  cursor: pointer;
}

.custom-tooltip {
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  text-align: center;
  padding: 4px 8px;
  border-radius: 4px;
  position: absolute;
  z-index: 10;
  bottom: 110%;
  /* Posiciona acima do ícone */
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  /* Fonte pequena e densa para não poluir a UI */
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
  /* Garante que não interfira no clique da imagem */
}

.tooltip-container:hover .custom-tooltip {
  visibility: visible;
  opacity: 1;
}

/* --- Modal da Imagem --- */
#imageOverlay {
  display: none;
  /* Escondido por padrão */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* O cursor indica que clicar vai fechar */
}

#imageOverlay img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Espaço entre ícone, texto e número */
}

.cart-count {
  background-color: slategrey;
  /* Cor de destaque */
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

.form-container {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  /* Alinha os labels no topo */
}

.input-group {
  display: flex;
  flex-direction: column;
  /* Coloca o label acima do input */
  flex: 1;
}

.game-input {
  padding: 8px;
  margin-top: 5px;
  /* Espaçamento entre label e input */
}

.content-items {
  min-height: auto;
}

.section-title-items {
  font-size: 14px;
}

.content-inventory {
  min-height: 100px;
}

.modal-content_items {
  width: 505px;
  min-height: 254px;
  background-image: url('/assets/img/bgs/bg_modal_itens.png');
  background-size: cover;
  background-position: center;
  padding: 20px;
  color: #fff;
  position: relative;

  /* Flexbox para fixar o rodapé */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  /* Garante que o padding não aumente o tamanho */
}

#modalBody {
  flex: 1;
  overflow-y: none;
}

#modalWeightContainer {
  padding-top: 20px;
  text-align: right;
}

#modalAttributes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 30px;
  font-size: 0.85em;
  padding: 0px 15px;
  width: 100%;
  box-sizing: border-box;
  float: none;
}

#modalType {
  color: #aaa;
  text-transform: uppercase;
  font-size: 0.8em;
  padding-bottom: 2px;
  margin: 5px;
  position: absolute;
  top: 115px;
  left: 10px;
}

#modalWeight {
  font-size: 0.8em;
  color: #888;
  margin: 0;
  position: absolute;
  bottom: 6px;
  right: 15px;
}

#modalDesc {
  font-size: 0.8em;
  color: #ccc;
  position: absolute;
  top: 33px;
  width: 395px;
  text-align: left;
  margin-left: 73px;
}

#modalIcon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 2px solid #333;
  float: left;
}

#modalTitle {
  font-size: 1.2em;
  float: left;
  margin-left: 10px;
  margin-top: -4px;
}

/* Container do seletor */
.quantity-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  /* Removido gap para as bordas se tocarem se desejar */
}

/* Estilo dos botões seguindo o padrão dos seus inputs */
.btn-qty {
  width: 25px;
  height: 25px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(197, 160, 89, 0.3) !important;
  color: #fff !important;
  font-family: var(--font-ui);
  padding: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-qty:hover {
  border-color: var(--gold) !important;
  background: rgba(15, 15, 15, 0.8) !important;
}

/* Remove a borda e o foco do input de quantidade */
.item-quantity {
  height: 25px;
  width: 40px !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(197, 160, 89, 0.3) !important;
  border-left: none !important;
  border-right: none !important;
  color: #fff !important;
  font-family: var(--font-ui);
  text-align: center;
  /* Texto centralizado */
  border-radius: 0px !important;
  box-sizing: border-box;
  padding: 0 5px;
  -moz-appearance: textfield;
  /* Remove setas do input number no Firefox */
}

/* Garante que nenhum efeito de borda/glow apareça no foco */
.item-quantity:focus {
  outline: none !important;
  box-shadow: none !important;
  border: 1px solid rgba(197, 160, 89, 0.3) !important;
  border-left: none !important;
  border-right: none !important;
}

/* Remove setas do input number no Chrome/Safari */
.item-quantity::-webkit-outer-spin-button,
.item-quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-remove {
  width: 25px !important;
  height: 25px !important;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(197, 160, 89, 0.3) !important;
  color: #fff !important;
  font-family: var(--font-ui);
  padding: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  border-radius: 0px !important;
}

.btn-remove:hover {
  border-color: var(--gold) !important;
  background: rgba(15, 15, 15, 0.8) !important;
  color: #c5a059 !important;
  /* Dourado ao passar o mouse */
}

.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--gold, #c5a059);
  padding: 20px;
  color: #fff;
  text-align: center;
  width: 300px;
}

.modal-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.btn-cancel,
.btn-confirm {
  padding: 8px 15px;
  cursor: pointer;
  border: 1px solid rgba(197, 160, 89, 0.3);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.btn-confirm:hover {
  border-color: var(--gold);
  background: #c5a059;
  color: #000;
}

.pointer {
  cursor: pointer;
}

/* Container que envolve o texto dos termos */
.terms-container {
  padding: 10px 5px;
  /* overflow-y: auto; => Opcional: remova o comentário se quiser barra de rolagem interna */
}

/* Texto de introdução */
.terms-intro {
  color: #bbb;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
  font-style: italic;
}

/* Lista ordenada dos termos */
.terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Espaçamento confortável entre os itens */
}

/* Cada item/cláusula do termo */
.terms-item {
  color: #dfdfdf;
  font-size: 12.5px;
  /* Fonte ligeiramente menor conforme preferência */
  line-height: 1.6;
  text-align: justify;
}

/* Destaca os títulos dos termos em dourado */
.terms-item strong {
  font-family: var(--font-title), sans-serif;
  color: var(--gold);
  /* Cor dourada padrão do seu sistema */
  display: block;
  font-size: 13.5px;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.empty-cart-message {
  background-color: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  padding: 15px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.empty-cart-message span {
  font-size: 20px;
}

.empty-cart-message strong {
  color: #ffc107;
  display: block;
}

.empty-cart-message label {
  color: #aaa8a5;
  font-size: 14px;
}