:root {
  --bg: var(--bsx-bg, #060810);
  --bg2: var(--bsx-bg-soft, #0a0e18);
  --surface: var(--bsx-panel, #0f1522);
  --surface2: var(--bsx-panel-hover, #131b2c);
  --border: var(--bsx-line, #1a2435);
  --text: var(--bsx-text, #e8ecf4);
  --muted: var(--bsx-muted, #7c8ba4);
  --accent: var(--bsx-brand, #4da6ff);
  --accent2: var(--bsx-brand-soft, #6ebcff);
  --danger: var(--bsx-danger, #ef5350);
  --warning: var(--bsx-warning, #ffb74d);
  --radius: var(--bsx-radius, 12px);
  --shadow: var(--bsx-shadow, 0 12px 40px rgba(0,0,0,.45));
  --font: var(--bsx-font, "Outfit", system-ui, sans-serif);
  --font-display: var(--bsx-font-display, "Rajdhani", sans-serif);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background-color: #050505;
  /* Fundo exclusivo SCUM — wasteland/survival (cores BSX no tema) */
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(58, 42, 28, 0.38), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 10%, rgba(77, 166, 255, 0.09), transparent 52%),
    radial-gradient(ellipse 45% 35% at 90% 20%, rgba(40, 36, 32, 0.32), transparent 48%),
    linear-gradient(168deg, #050505 0%, #060810 42%, #0a0c10 74%, #050505 100%);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1140px, 92vw); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 8, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.wipe-ticker {
  background: linear-gradient(90deg, #0d2847, #1a4a7a 35%, #0d2847);
  border-bottom: 1px solid rgba(77, 166, 255, 0.35);
  color: #e8f4ff;
  overflow: hidden;
}
.wipe-ticker-inner {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.wipe-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  min-width: max-content;
  padding: .5rem 0;
  animation: wipe-ticker-scroll 28s linear infinite;
}
.wipe-ticker-text {
  display: inline-block;
  white-space: nowrap;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
}
@keyframes wipe-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% / 3)); }
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; text-decoration: none; }
.brand-icon { font-size: 1.5rem; }
.nav-main { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nav-main a { color: var(--muted); font-weight: 500; text-decoration: none; }
.nav-main a.active, .nav-main a:hover { color: var(--accent2); }
.nav-hub {
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(77, 166, 255, 0.12);
  border: 1px solid rgba(77, 166, 255, 0.35);
  color: var(--accent2) !important;
  text-decoration: none;
}
.nav-hub:hover { background: rgba(77, 166, 255, 0.2); text-decoration: none; }
.badge {
  display: inline-block; min-width: 1.25rem; padding: 0 .35rem;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: .75rem; font-weight: 700; text-align: center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1.1rem; border-radius: 8px; border: none;
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--accent2), #2d7fd8); color: #fff; box-shadow: 0 4px 18px rgba(77, 166, 255, 0.28); }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }
.btn-sm { padding: .45rem .85rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }

.hero {
  padding: 3.5rem 0 2.5rem;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05; margin: 0 0 1rem;
}
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
}
.hero-stat { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.hero-stat:last-child { border-bottom: 0; }

.section { padding: 2rem 0 3rem; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem; margin: 0 0 1.25rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s, border-color .15s;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.product-img {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0f1522, #0a0e18);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative; overflow: hidden;
}
.product-img > .product-img-open { min-height: 100%; }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-img-kit {
  display: grid; width: 100%; height: 100%; gap: 2px; padding: 2px;
  background: #0a0e18;
}
.product-img-kit-1 { grid-template-columns: 1fr; }
.product-img-kit-2 { grid-template-columns: 1fr 1fr; }
.product-img-kit-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.product-img-kit-3 img:first-child { grid-row: span 2; }
.product-img-kit-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.product-img-kit img {
  width: 100%; height: 100%; object-fit: contain;
  background: rgba(255,255,255,.04); border-radius: 2px;
}
.product-img-open {
  all: unset; cursor: pointer; display: block; width: 100%; height: 100%;
  position: relative; box-sizing: border-box;
}
.product-img-open:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.product-img-open:hover .product-img-more { background: rgba(0,0,0,.82); }
.product-img-more {
  position: absolute; right: .45rem; bottom: .45rem;
  background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .2rem .45rem; border-radius: 999px; letter-spacing: .02em;
  pointer-events: none;
}
.product-img-more-hint { font-size: .65rem; text-transform: uppercase; }
.product-img-kit-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; background: #0a0e18;
}
.product-gallery-modal[hidden] { display: none !important; }
body.product-gallery-open { overflow: hidden; }
.product-gallery-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.product-gallery-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.72);
}
.product-gallery-panel {
  position: relative; z-index: 1; width: min(920px, 100%); max-height: min(88vh, 900px);
  background: var(--card, #121a2a); border: 1px solid var(--border, #243047);
  border-radius: 12px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
}
.product-gallery-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--border, #243047);
}
.product-gallery-header h2 { margin: 0; font-size: 1.1rem; }
.product-gallery-close {
  all: unset; cursor: pointer; font-size: 1.6rem; line-height: 1; padding: .15rem .45rem;
  color: var(--muted); border-radius: 6px;
}
.product-gallery-close:hover { color: #fff; background: rgba(255,255,255,.06); }
.product-gallery-grid {
  padding: 1rem; overflow: auto; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .75rem;
}
.product-gallery-item {
  margin: 0; text-align: center; background: rgba(255,255,255,.03);
  border: 1px solid var(--border, #243047); border-radius: 8px; padding: .5rem;
}
.product-gallery-item img {
  width: 100%; height: 72px; object-fit: contain; display: block; margin: 0 auto .35rem;
}
.product-gallery-item figcaption {
  font-size: .72rem; color: var(--muted); line-height: 1.25; word-break: break-word;
}
.product-gallery-item-missing {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 72px; font-size: 1.5rem; color: var(--muted); margin-bottom: .35rem;
}
.product-admin-gallery {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem;
}
.product-admin-gallery-item {
  width: 72px; text-align: center; font-size: .65rem; color: var(--muted);
}
.product-admin-gallery-item img,
.product-admin-gallery-missing {
  width: 72px; height: 48px; object-fit: contain; display: block; margin: 0 auto .2rem;
  background: rgba(255,255,255,.04); border-radius: 4px; border: 1px solid var(--border);
}
.product-admin-gallery-missing {
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.product-img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; width: 100%; height: 100%; color: var(--muted); user-select: none;
}
.product-img-placeholder-icon { font-size: 2.75rem; line-height: 1; opacity: .85; }
.product-img-placeholder-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; opacity: .65;
}
.admin-product-preview.product-img { aspect-ratio: 16/10; border: 1px solid var(--border); }
.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.product-body h3 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.product-desc { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--accent2); }
.product-price .old { color: var(--muted); text-decoration: line-through; font-size: .95rem; margin-right: .4rem; }
.product-tag {
  display: inline-block; font-size: .7rem; text-transform: uppercase;
  background: rgba(77, 166, 255,.15); color: var(--accent2);
  padding: .15rem .45rem; border-radius: 4px; font-weight: 700;
}

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.chip {
  padding: .4rem .75rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  text-decoration: none; font-size: .9rem;
}
.chip.active, .chip:hover { border-color: var(--accent); color: var(--accent2); text-decoration: none; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.auth-wrap { max-width: 420px; margin: 2rem auto; }
.auth-label { display: block; margin: .75rem 0 .35rem; font-weight: 600; font-size: .9rem; }
.auth-input, .auth-select, textarea.auth-input {
  width: 100%; padding: .7rem .85rem;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text);
}
.auth-error { color: var(--danger); margin-bottom: .75rem; }
.auth-success { color: var(--accent2); margin-bottom: .75rem; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .75rem; border-bottom: 1px solid var(--border); text-align: left; }
.cart-qty { width: 70px; }

.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .nav-main { gap: .65rem; }
}

.payment-options { display: grid; gap: .65rem; margin: 1rem 0; }
.payment-option {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .85rem; border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}
.payment-option:has(input:checked) { border-color: var(--accent); background: rgba(77, 166, 255,.08); }

.site-footer {
  margin-top: 3rem; border-top: 1px solid var(--border);
  background: rgba(0,0,0,.25); padding: 2rem 0 1rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-copy { text-align: center; color: var(--muted); font-size: .85rem; padding: 1rem 0 0; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-success { background: rgba(77, 166, 255,.15); border: 1px solid var(--accent); color: var(--accent2); }
.alert-error { background: rgba(239,83,80,.12); border: 1px solid var(--danger); color: #ffcdd2; }
.alert-warning { background: rgba(255,183,77,.12); border: 1px solid var(--warning); color: #ffe0b2; }
.alert-info { background: rgba(255,183,77,.12); border: 1px solid var(--warning); color: #ffe0b2; }

.painel-orders { display: grid; gap: .75rem; }
.order-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: .75rem; align-items: center;
  padding: .85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
.status { font-size: .8rem; font-weight: 700; text-transform: uppercase; padding: .2rem .5rem; border-radius: 4px; }
.status-pending { background: rgba(255,183,77,.15); color: var(--warning); }
.status-delivered { background: rgba(77, 166, 255,.15); color: var(--accent2); }

.pix-box { text-align: center; }
.pix-box img { border-radius: 8px; background: #fff; padding: .5rem; }

.search-bar { display: flex; gap: .5rem; margin-bottom: 1rem; }
.search-bar input { flex: 1; }

/* Mapas */
.maps-hero {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem;
}
.maps-subtitle { color: var(--muted); max-width: 58ch; margin: -.5rem 0 0; }
.maps-live-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .75rem; border-radius: 999px;
  background: rgba(77, 166, 255,.12); border: 1px solid var(--border);
  color: var(--accent2); font-size: .85rem; font-weight: 600;
}
.live-dot {
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: livePulse 1.8s ease-in-out infinite;
}
.live-dot.offline { background: var(--muted); box-shadow: none; animation: none; }
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
.map-card { cursor: pointer; }
.map-card:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.map-card-img { position: relative; }
.map-icon { font-size: 3.5rem; line-height: 1; }
.map-status-pill {
  position: absolute; top: .65rem; right: .65rem;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 999px;
}
.map-status-pill.online { background: rgba(77, 166, 255,.2); color: var(--accent2); border: 1px solid rgba(77, 166, 255,.35); }
.map-status-pill.offline { background: rgba(143,168,143,.15); color: var(--muted); border: 1px solid var(--border); }
.map-players {
  display: flex; align-items: center; gap: .4rem;
  font-size: .95rem; color: var(--accent2);
}
.map-players-icon { font-size: 1rem; }
.map-rates-preview {
  font-size: .82rem; color: var(--muted);
  line-height: 1.35;
}
.map-card--offline { opacity: .88; }

.map-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 1rem;
}
.map-modal-overlay[hidden] { display: none !important; }
body.map-modal-open { overflow: hidden; }
.map-modal {
  width: min(560px, 96vw); max-height: 90vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); padding: 1.35rem;
  box-shadow: var(--shadow); position: relative;
}
.map-modal-close {
  position: absolute; top: .65rem; right: .75rem;
  border: 0; background: transparent; color: var(--muted);
  font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.map-modal-close:hover { color: var(--text); }
.map-modal-head {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1rem; padding-right: 1.5rem;
}
.map-modal-icon { font-size: 2.75rem; line-height: 1; }
.map-modal-desc { color: var(--muted); margin: .35rem 0 0; font-size: .95rem; }
.map-modal-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem;
}
.map-stat-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: .75rem;
}
.map-stat-box span { display: block; color: var(--muted); font-size: .8rem; margin-bottom: .15rem; }
.map-stat-box strong { font-family: var(--font-display); font-size: 1.15rem; }
.map-modal-section { margin-bottom: 1rem; }
.map-modal-section h3 {
  margin: 0 0 .55rem; font-family: var(--font-display);
  font-size: 1rem; color: var(--accent2);
}
.map-rates-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem;
}
.map-rate-item {
  background: rgba(77, 166, 255,.08); border: 1px solid rgba(77, 166, 255,.18);
  border-radius: 8px; padding: .55rem .7rem;
}
.map-rate-item span { display: block; color: var(--muted); font-size: .75rem; }
.map-rate-item strong { color: var(--accent2); font-size: 1rem; }
.map-feature-list { margin: 0; padding-left: 1.1rem; color: var(--text); }
.map-feature-list li { margin: .25rem 0; }
.map-mod-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.map-mod-chips .chip { font-size: .8rem; }
.map-modal-actions { display: grid; gap: .55rem; margin-top: .25rem; }

@media (max-width: 800px) {
  .map-rates-grid, .map-modal-stats { grid-template-columns: 1fr; }
}
