* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fonte do banner (Visitor) */
@font-face {
  font-family: 'Visitor';
  src: url('/assets-sponsor/fonts/visitor2.woff2?v=1') format('woff2'),
       url('/assets-sponsor/fonts/visitor2.ttf?v=1') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* Garante a aplicação no banner */
.sponsor-slot .premium-banner, .sponsor-slot .premium-banner *, .feature-slot .premium-banner, .feature-slot .premium-banner * {
  font-family: 'Visitor', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

:root {
  --primary: #00ffcc;
  --secondary: #ff00ff;
  --accent: #ffaa00;
  --bg-dark: #0a0a0f;
  --bg-card: rgba(20, 20, 35, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #b8b8c8;
  --text-muted: #7a7a8c;
  --success: #00ff88;
  --danger: #ff4444;
  --warning: #ffaa00;
}

html {
  font-size: 80%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-size: 0.9em; /* Reduz tudo em ~10% */
}

/* Área de patrocinador (iframe) */
.sponsor-slot, .feature-slot {
  margin: 0 0 20px 0;
}
.sponsor-iframe {
  width: 100%;
  height: 140px; /* altura inicial visível; será ajustada via JS conforme o conteúdo */
  border: 0;
  display: block;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
}

/* Placeholder padrão quando inclusão for direta (sem iframe) */
.sponsor-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  color: #0b132b;
  font-weight: 800;
  font-size: 16px;
  border: 2px dashed var(--primary);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.25), rgba(255, 0, 255, 0.25));
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.15);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Banner real (parcial incluído) */
.sponsor-banner-box {
  padding: 18px 20px;
  border-radius: 14px;
  background: 
    url('/assets-sponsor/28.webp') top center / 220px auto no-repeat,
    url('/assets-sponsor/10.webp') right -12px bottom -10px / 200px auto no-repeat,
    url('/assets-sponsor/5.webp') left -10px bottom -6px / 180px auto no-repeat,
    linear-gradient(135deg, rgba(0, 255, 204, 0.12), rgba(255, 0, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 10px 16px;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.sponsor-title {
  grid-column: 1 / -1;
  font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  letter-spacing: .5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}
.sponsor-title.no-transform { text-transform: none; }

.sponsor-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.sponsor-tag {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .5px;
  background: rgba(0, 255, 204, 0.08);
}

.sponsor-footer {
  justify-self: center;
  color: #9aa3af;
  font-weight: 700;
}

/* Arte decorativa do banner */
.sponsor-art { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.sponsor-banner-box > *:not(.sponsor-art) { position: relative; z-index: 1; }
.sponsor-art .art { position: absolute; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); opacity: .9; }
.sponsor-art .art-top { top: -12px; left: 50%; transform: translateX(-50%); width: 128px; height: auto; }
.sponsor-art .art-right { right: -12px; bottom: -10px; width: 140px; height: auto; transform: rotate(-8deg); opacity: .85; }
.sponsor-art .art-left { left: -10px; bottom: -6px; width: 120px; height: auto; transform: rotate(6deg); opacity: .85; }

@media (max-width: 768px) {
  .sponsor-art .art-top { width: 92px; top: -10px; }
  .sponsor-art .art-right { width: 100px; right: -10px; bottom: -8px; }
  .sponsor-art .art-left { width: 90px; left: -8px; bottom: -6px; }
  .sponsor-banner-box { 
    background: 
      url('/assets-sponsor/28.webp') top center / 160px auto no-repeat,
      url('/assets-sponsor/10.webp') right -10px bottom -8px / 140px auto no-repeat,
      url('/assets-sponsor/5.webp') left -8px bottom -6px / 120px auto no-repeat,
      linear-gradient(135deg, rgba(0, 255, 204, 0.12), rgba(255, 0, 255, 0.12));
  }
}

/* Background animado épico */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 255, 204, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 170, 0, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
  z-index: -2;
}

/* Grid de partículas animadas */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at center, rgba(0, 255, 204, 0.4) 0%, transparent 2%),
    radial-gradient(circle at center, rgba(255, 0, 255, 0.3) 0%, transparent 2%);
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 25px 25px;
  animation: floatGrid 20s linear infinite;
  opacity: 0.3;
  z-index: -1;
}

@keyframes floatGrid {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, -50px); }
}

/* Container principal */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Header épico */
.header {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
  margin-bottom: 40px;
}

.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  /* Fallback padrão: texto visível em cor sólida */
  color: var(--text-primary);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 0 30px rgba(0, 255, 204, 0.5));
  animation: glow 3s ease-in-out infinite alternate;
}
/* Aplica o gradiente no texto SOMENTE quando o navegador suporta corretamente */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* Fallback duro: garante título visível em qualquer navegador */
h1,
.brand-title,
.brand-title .brand-word {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  color: var(--text-primary) !important;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.25);
}
.brand-title {
  display: inline-flex;
  gap: .5ch;
  letter-spacing: -1px;
  position: relative;
  padding: 8px 16px;
  border-radius: 16px;
}
.brand-title::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px; /* espessura da moldura */
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  box-shadow: 0 0 22px rgba(0,255,204,.25);
}
.brand-title .brand-word { position: relative; padding: 0 .2ch; }
.brand-title .brand-word::after { display: none; }

@keyframes glow {
  0% { filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.5)); }
  100% { filter: drop-shadow(0 0 40px rgba(255, 0, 255, 0.8)); }
}

/* Link para descrição interna */
.item-desc-link {
  color: var(--primary);
  text-decoration: none;
  margin-left: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.item-desc-link:hover { text-decoration: underline; }
.item-desc-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Modal de descrição */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-backdrop.is-open { display: flex; }
.is-hidden { display: none !important; }
.icon-hidden { visibility: hidden !important; }
.modal {
  width: min(720px, 92vw);
  background: #f5f6f7;
  border: 1px solid #dddddd;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  overflow: visible;
  color: #111111;
}
.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-body {
  padding: 14px 16px;
  overflow: visible;
  line-height: 1.4;
  color: #111111;
  white-space: normal;
  position: relative;
}
.modal-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}
.modal-icon { width: 96px; height: 96px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.06); }

/* Mods (cartas/encantamentos) dentro do tooltip principal */
.mods { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; position: relative; z-index: 10; }
.mod { position: relative; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; }
.mod .mod-icon { width: 32px; height: 32px; border-radius: 6px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); display: block; cursor: pointer; user-select: none; }
.mod .mod-icon.clickable { cursor: pointer; }
.mods, .mod, .mod * { -webkit-user-select: none; user-select: none; cursor: pointer; }
.card-icon, .card-link, [data-tooltip], [title] { cursor: pointer !important; user-select: none; }
.mod .card-illustration { position: absolute; top: 40px; left: 0; display: none; background: rgba(0,0,0,0.85); border: 1px solid var(--border); border-radius: 10px; padding: 6px; z-index: 3000; }
.mod .card-illustration img { width: 196px; height: auto; display: block; }

/* Popover central para carta (ilustração + tooltip) */
.card-popover { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #f5f6f7; border: 1px solid #dddddd; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.45); width: min(720px, 92vw); max-height: 78vh; overflow: auto; padding: 14px 16px; color: #111; z-index: 5000; }
.tooltip { z-index: 9999 !important; position: fixed; }
/* Colorização do título do item */
.refine { font-weight: 800; background: linear-gradient(135deg, #00ffc6, #6a5acd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.refine-top { font-weight: 900; background: linear-gradient(135deg, #ffd700, #ff6b6b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(255,215,0,.35)); }
.card-tag { color: #00d1ff; font-weight: 700; }
.enchant-tag { color: #ffaa00; font-weight: 700; }
.slot-tag { color: #9aa3af; font-weight: 600; }
.bracket { color: #6b7280; }
.card-popover .close { position: absolute; top: 8px; right: 10px; background: transparent; border: 0; font-size: 20px; cursor: pointer; color: #333; }
.card-popover .illustration { display: block; width: 260px; max-width: 80%; height: auto; margin: 10px auto; border-radius: 8px; background: rgba(0,0,0,.05); }
.card-popover .tooltip-html { margin-top: 8px; line-height: 1.3; }

.item-desc-link {
  color: var(--primary);
  text-decoration: none;
  margin-left: 8px;
  font-weight: 700;
}
.item-desc-link:hover { text-decoration: underline; }

.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 10px;
}

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, var(--bg-glass), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 204, 0.3);
  box-shadow: 0 10px 40px rgba(0, 255, 204, 0.2);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

/* Cores por servidor nos cards por servidor */
.server-name[data-server="Freya"] { color: #4db8ff; font-weight: 800 }
.server-name[data-server="Nidhogg"] { color: #ff6b6b; font-weight: 800 }
.server-name[data-server="Yggdrasil"] { color: #4dff88; font-weight: 800 }

/* Controles de busca */
.controls {
  background: linear-gradient(135deg, rgba(20, 20, 35, 0.9), rgba(30, 30, 50, 0.9));
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 25px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 20px;
  z-index: 100;
}

/* Autocomplete dropdown */
.ac-wrap { position: relative }
.ac-list { position:absolute; top: 100%; left:0; right:0; z-index: 200; background: rgba(20,22,30,.98); border:1px solid var(--border); border-radius: 12px; margin-top:6px; padding:6px 0; max-height: 260px; overflow:auto; box-shadow: 0 10px 30px rgba(0,0,0,.5) }
.ac-item { padding:10px 14px; color:#e7ecf5; cursor:pointer; }
.ac-item:hover, .ac-item.active { background: rgba(0,255,204,.08); color:#fff }

/* Desabilita autocomplete do navegador */
#q::-webkit-autofill,
#q::-webkit-autofill:hover,
#q::-webkit-autofill:focus,
#q::-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #14161e inset !important;
  -webkit-text-fill-color: #e7ecf5 !important;
  background-color: #14161e !important;
}

.controls-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 15px;
  align-items: center;
}

@media (max-width: 768px) {
  .controls-grid {
    grid-template-columns: 1fr;
  }
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

input[type="text"],
select {
  width: 100%;
  padding: 15px 20px 15px 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

select {
  padding-left: 20px;
  cursor: pointer;
}

/* Torna opções do select legíveis em navegadores com fundo claro no dropdown */
select option {
  color: #111111;
  background: #f2f5f9;
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 255, 204, 0.05);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.2);
}

input::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 15px;
  color: var(--bg-dark);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.4);
}

.btn-primary:active::before {
  width: 300px;
  height: 300px;
}
#pager .btn-primary.active { filter: brightness(1.6) saturate(1.2); border: 2px solid var(--primary); }

/* Pager */
#pager .pager-wrapper { display:flex; flex-wrap:wrap; gap:6px; align-items:center; justify-content:center }
.btn-nav, .btn-page { padding:6px 10px; font-size:.85rem; border-radius:8px }
#pager .pager-ellipsis { padding:6px 8px; color:#93a4c9 }
#pager .pager-meta { color:#93a4c9 }
#pager .pager-jump-input { width:64px; padding:6px 8px; border-radius:8px; border:1px solid #1f2a4a; background:#0e1630; color:#e7ecf5 }

/* Section title */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

/* Groups (lojas) */
.group {
  background: linear-gradient(135deg, var(--bg-card), rgba(30, 30, 50, 0.8));
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.group::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.1), transparent);
  transition: left 0.5s ease;
}

.group:hover::before {
  left: 100%;
}

.group:hover {
  border-color: rgba(0, 255, 204, 0.3);
  transform: translateX(5px);
  box-shadow: 0 10px 40px rgba(0, 255, 204, 0.1);
}

.group-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.3s ease;
  position: relative;
}

.group-header:hover {
  background: rgba(0, 255, 204, 0.05);
}

.group-header .icon {
  width: auto;
  height: auto;
  max-width: 33.6px; /* ~5% maior que 32px */
  max-height: 33.6px;
  border-radius: 0;
  object-fit: contain;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  image-rendering: pixelated; /* mantém nítido em ícones pequenos */
}

.group-header .info {
  flex: 1;
}

.vh {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}
/* Botão WhatsApp estilizado como botão */
.vh button.wa-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #25d366;
  background: rgba(37, 211, 102, .08);
  color: inherit;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-size: inherit;
}
.vh button.wa-wrap:hover {
  background: rgba(37, 211, 102, .15);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
}
.vh .wa-text { color:#d4f8e8; font-weight:700; font-size:.85rem; letter-spacing:.3px }
.vh .wa-inline.btn-whatsapp-pulse { position: static; width: 28px; height: 28px; padding: 0; font-size: 16px; display: inline-flex; align-items:center; justify-content:center; border-radius: 50%; background:#25d366 !important; color:#fff !important; animation: pulse 1.5s ease-out infinite }
.vh .wa-inline.btn-whatsapp-pulse i, .vh .wa-inline.btn-whatsapp-pulse svg { width: 16px; height: 16px; line-height: 1; display:inline-block; fill: currentColor }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5) } 80% { box-shadow: 0 0 0 10px rgba(37,211,102,0) } }
.vh .vendor-name { color: #00d1ff; font-weight: 800 }
.vh .shop-title { color: #e0e7ff; font-weight: 600 }

.sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.pill {
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(255, 0, 255, 0.2));
  border: 1px solid var(--primary);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.btn-map { font-size: 0.85rem; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text-primary); cursor: pointer; }
.btn-map:hover { background: rgba(0, 255, 204, 0.08); border-color: var(--primary); }
.map-area { display: none; padding: 12px 20px; border-top: 1px solid var(--border); background: rgba(0,0,0,0.15); }
.map-wrap { display: flex; gap: 16px; align-items: flex-start; }
.map-info { font-size: 0.9rem; color: var(--text-secondary); }
.map-canvas { width: 240px; height: 240px; border-radius: 12px; border: 1px solid var(--border); background: #f4f6f8; }

.group-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background: rgba(0, 0, 0, 0.2);
}

.group.open .group-body {
  max-height: 2000px;
}

.group.open .group-header {
  border-bottom: 1px solid var(--border);
}

/* Tabela modernizada */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background: rgba(0, 255, 204, 0.1);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  padding: 15px;
  text-align: left;
  border-bottom: 2px solid rgba(0, 255, 204, 0.3);
}
.col-icon { width:60px }
.col-qty { width:100px }
.col-price { width:150px }

td {
  padding: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

tr {
  transition: all 0.2s ease;
}

tbody tr:hover {
  background: rgba(0, 255, 204, 0.05);
}

tbody tr:hover td {
  color: var(--text-primary);
  transform: translateX(5px);
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
}

/* Contorno gradiente para ícones dos itens listados (tabela) */
table .icon {
  /* Fundo branco com borda em gradiente, cantos quadrados */
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
  padding: 0;
  border-radius: 0;
  border: 2px solid transparent;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.25), 0 0 14px rgba(255, 0, 255, 0.15);
}

.right {
  text-align: right;
}

/* Preço com destaque */
.price {
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
  white-space: nowrap;
}
.price-rose { color: #ff4dc4; filter: drop-shadow(0 0 8px rgba(255,77,196,.25)); }
.price-blue { color: #4db8ff; filter: drop-shadow(0 0 8px rgba(77,184,255,.2)); }
.price-green { color: #4dff88; filter: drop-shadow(0 0 8px rgba(77,255,136,.2)); }
.price-red { color: #ff6b6b; filter: drop-shadow(0 0 8px rgba(255,107,107,.25)); }
.price-gold { color: #ffd700; filter: drop-shadow(0 0 10px rgba(255,215,0,.35)); font-weight: 700; }

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 255, 204, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.9);
  color: var(--text-primary);
  font-size: 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

/* Animação de entrada */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.group {
  animation: slideIn 0.5s ease forwards;
  opacity: 0;
}

.group:nth-child(1) { animation-delay: 0.1s; }
.group:nth-child(2) { animation-delay: 0.2s; }
.group:nth-child(3) { animation-delay: 0.3s; }
.group:nth-child(4) { animation-delay: 0.4s; }
.group:nth-child(5) { animation-delay: 0.5s; }

/* Scrollbar customizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}

/* Meta info */
.meta-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 10px;
  margin: 0 auto 30px auto;
  color: var(--primary);
  font-size: 0.9rem;
  text-align: center;
  max-width: 360px;
}

.meta-info .status-dot { display:none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Map overlay (CSP-safe, sem inline styles) */
.map-backdrop { position: fixed; inset:0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; z-index: 3000 }
.map-backdrop.is-open { display: flex }
.map-overlay { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; overflow: visible; position: relative; display: inline-block }
.map-canvas-ov { display:block; max-width: 92vw; height: auto }
.map-copy-btn { position:absolute; top:10px; right:10px; padding:8px 12px; border-radius:8px; border:1px solid rgba(255,255,255,.3); background:rgba(0,0,0,.6); color:#fff; cursor:pointer; backdrop-filter: blur(4px); font-weight:600 }

/* App meta areas */
.pager-container { margin: 20px 0; }
.app-version { text-align:center; color:#6b7280; font-size:.85rem; margin:20px 0 }

/* Enchant popover mais simples (sem inline) */
.enchant-popover { position: fixed; top: 10%; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.9); border: 1px solid #00ffcc; border-radius: 6px; padding: 10px 12px; font-size: 12px; font-weight: bold; color: #00ffcc; white-space: nowrap; z-index: 10000; box-shadow: 0 2px 8px rgba(0,0,0,.5) }

/* Modal de seleção de itens WhatsApp */
.wa-modal { 
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.wa-modal .modal-header {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  padding: 15px 20px;
}
.wa-modal #waModalTitle {
  font-size: 1.2rem;
  font-weight: 600;
  flex: 1;
}
.wa-items-list { 
  max-height: 400px; 
  overflow-y: auto; 
  border: 1px solid var(--border);
  border-radius: 8px; 
  padding: 10px; 
  margin-bottom: 20px;
  background: var(--bg-card);
}
.wa-item-row { 
  display: flex; 
  align-items: center; 
  padding: 8px; 
  margin-bottom: 8px; 
  border-radius: 6px; 
  transition: background 0.2s; 
  background: var(--bg-glass);
  border: 1px solid var(--border);
}
.wa-item-row:hover { 
  background: rgba(0, 255, 204, 0.08); 
  border-color: var(--primary); 
}
.wa-item-row input[type="checkbox"] { 
  width: 20px; 
  height: 20px; 
  margin-right: 12px; 
  cursor: pointer;
  accent-color: var(--primary);
}
.wa-item-row label { 
  flex: 1; 
  display: flex; 
  align-items: center; 
  gap: 15px; 
  cursor: pointer; 
  padding: 4px 0;
  color: var(--text-primary);
}
.wa-item-name { 
  flex: 1; 
  color: var(--text-primary);
  font-weight: 500; 
  font-size: 0.95rem;
}
.wa-item-price { 
  color: var(--accent);
  font-weight: 600; 
  min-width: 120px;
  text-align: right;
  font-size: 1rem;
}
.wa-item-qty { 
  color: var(--text-muted);
  font-size: 0.9rem; 
  min-width: 80px;
  text-align: right;
}
.wa-modal-actions { 
  display: flex; 
  gap: 10px; 
  justify-content: center; 
  margin-top: 20px; 
}
.btn-secondary { 
  padding: 10px 20px; 
  background: rgba(108, 117, 125, 0.8);
  color: white; 
  border: none; 
  border-radius: 8px; 
  cursor: pointer; 
  font-weight: 600;
  transition: all 0.3s;
  font-family: inherit;
}
.btn-secondary:hover { 
  background: rgba(90, 98, 104, 0.9);
  transform: translateY(-1px);
}
.wa-modal .btn-primary { 
  flex: 1; 
  max-width: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wa-modal .btn-primary:hover {
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* Banner do Discord PROFISSIONAL */
.discord-banner {
  width: 100%;
  max-width: 1400px;
  margin: 20px auto;
  background: linear-gradient(135deg, #5865F2 0%, #404EED 100%);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(88, 101, 242, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discord-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 80px rgba(88, 101, 242, 0.4);
}

/* Efeito de brilho animado */
.discord-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.discord-banner-content {
  display: flex;
  align-items: center;
  padding: 15px 35px;
  gap: 25px;
  position: relative;
  z-index: 1;
}

/* Logo centralizado e bem posicionado */
.discord-logo-wrapper {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: float 3s ease-in-out infinite;
}

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

.discord-logo-wrapper svg {
  width: 45px;
  height: 45px;
  fill: white;
}

/* Conteúdo textual */
.discord-text-content {
  flex: 1;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.discord-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
  text-align: center;
}

.discord-subtitle {
  font-size: 16px;
  opacity: 0.95;
  line-height: 1.4;
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
}

/* Área de ações */
.discord-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
  transform: translateX(-25%);
}

.discord-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.discord-btn-primary {
  background: white;
  color: #5865F2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.discord-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #f0f0f0;
}

.discord-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.discord-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Animação de pulse no botão principal */
.discord-btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(88, 101, 242, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.discord-btn-primary:active::after {
  width: 300px;
  height: 300px;
}

/* Contador de membros */
.discord-members {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.9;
  transform: translateX(-10%);
}

.discord-online-indicator {
  width: 10px;
  height: 10px;
  background: #3BA55D;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(59, 165, 93, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(59, 165, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 165, 93, 0); }
}

/* Responsive */
@media (max-width: 768px) {
  .discord-banner-content {
    flex-direction: column;
    padding: 25px;
    text-align: center;
  }
  
  .discord-title {
    font-size: 22px;
  }
  
  .discord-subtitle {
    font-size: 14px;
  }
  
  .discord-actions {
    justify-content: center;
  }
  
  .discord-logo-wrapper {
    width: 80px;
    height: 80px;
  }
}