:root {
  --bg: #070b12;
  --bg-2: #0b1220;
  --bg-3: #10182a;
  --card: #121a2c;
  --line: rgba(47, 123, 255, 0.22);
  --text: #d5e2f2;
  --muted: #8ea0bb;
  --white: #f5f8fc;
  --blue: #2f7bff;
  --blue-2: #1a5cff;
  --green: #25d366;
  --green-2: #1fb855;
  --orange: #d58a3b;
  --red: #e24b4b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --header: 64px;
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: radial-gradient(1200px 500px at 10% -10%, #12305a 0%, transparent 50%),
              radial-gradient(900px 400px at 100% 0%, #0a1a40 0%, transparent 42%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { color: var(--white); letter-spacing: 0.01em; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-main { min-height: 60vh; padding: 28px 0 64px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 20, 27, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  background: #0a1016;
  font-size: 12px;
  color: var(--muted);
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.header-top a { color: var(--muted); }
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-logo {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 12px rgba(47, 123, 255, 0.45));
}
.brand-logo-sm { height: 48px; }
.brand-logo-about { height: 140px; margin: 0 auto 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 18px; letter-spacing: 0.12em; }
.brand-text small { color: var(--blue); letter-spacing: 0.28em; font-size: 10px; }
.brand-lg { margin-bottom: 18px; }

.search-form {
  display: flex;
  background: #0c1219;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.search-form input {
  flex: 1; border: 0; background: transparent; color: #fff;
  padding: 12px 18px; outline: none; font-size: 14px;
}
.search-form button {
  border: 0; background: transparent; color: var(--blue); padding: 0 16px; cursor: pointer;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link {
  display: flex; align-items: center; gap: 8px;
  background: #1b2838; color: #fff; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line);
}
.cart-link em {
  min-width: 20px; height: 20px; border-radius: 999px;
  background: var(--green); color: #111; font-style: normal;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.nav-toggle {
  display: none; background: #1b2838; color: #fff; border: 1px solid var(--line);
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer; font-size: 18px;
}
.site-nav { border-top: 1px solid var(--line); }
.nav-inner { display: flex; gap: 8px; align-items: center; padding: 8px 0 12px; }
.nav-inner > a, .nav-drop > button {
  color: var(--text); background: transparent; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 8px; font-size: 14px; font-family: inherit;
}
.nav-inner > a.active, .nav-inner > a:hover, .nav-drop > button:hover {
  background: #1b2838; color: #fff;
}
.nav-drop { position: relative; }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #171e2b; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; box-shadow: var(--shadow); z-index: 20;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: grid; }
.nav-drop-menu a, .nav-drop-menu span { padding: 8px 10px; border-radius: 8px; color: var(--text); }
.nav-drop-menu a:hover { background: #1b2838; color: #fff; }

.hero-banner {
  position: relative;
  overflow: hidden; border-radius: 18px; margin-bottom: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #05080f;
}
.hero-slides { position: relative; }
.hero-slide {
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.hero-slide:not(.is-active) {
  position: absolute;
  inset: 0;
}
.hero-banner img,
.hero-slide img { width: 100%; height: auto; display: block; aspect-ratio: 1024 / 426; object-fit: cover; }
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
}
.hero-dots button.is-active { background: #2f7bff; box-shadow: 0 0 10px rgba(47,123,255,.8); }
.hero {
  position: relative; overflow: hidden; border-radius: 24px;
  background: linear-gradient(120deg, #071018 0%, #0d1c38 50%, #123060 100%);
  min-height: 360px; padding: 56px 48px; margin-bottom: 36px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; inset: auto -40px -80px auto; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(102,192,244,.35), transparent 70%);
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 10px; max-width: 640px; }
.hero p { max-width: 560px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-chip {
  display: inline-block; background: rgba(47, 123, 255, 0.15); color: #6eb6ff;
  border: 1px solid rgba(47, 123, 255, 0.4); padding: 4px 10px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}

.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
  margin: 8px 0 18px;
}
.section-head h2 { margin: 0; font-size: 26px; }
.section-head p, .muted { color: var(--muted); }

.grid-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.game-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s;
}
.game-card:hover { transform: translateY(-6px); border-color: rgba(102,192,244,.4); }
.game-cover { position: relative; aspect-ratio: 3/4; background: #0c1219; overflow: hidden; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.badge-sale, .badge-out {
  position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700;
}
.badge-sale { background: var(--green); color: #111; }
.badge-out { left: auto; right: 10px; background: #6b1d1d; color: #fff; }
.game-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.game-body h3 { margin: 0; font-size: 16px; }
.game-body h3 a { color: #fff; }
.game-price { display: flex; gap: 8px; align-items: baseline; margin-top: auto; }
.game-price s { color: var(--muted); font-size: 13px; }
.game-price strong { color: #6eb6ff; font-size: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer;
  font-weight: 700; font-family: inherit; text-decoration: none;
}
.btn-primary { background: linear-gradient(#3b8aff, #1a5cff); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: #1b2838; color: #fff; border: 1px solid var(--line); }
.btn-ghost:hover { color: #fff; border-color: var(--blue); }
.btn-danger { background: #7a1f1f; color: #fff; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.game-body .btn-sm { width: 100%; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.alert { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; }
.alert-success { background: rgba(164,208,7,.12); border: 1px solid rgba(164,208,7,.35); color: #d5f07a; }
.alert-error { background: rgba(226,75,75,.12); border: 1px solid rgba(226,75,75,.35); color: #ffb4b4; }

.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; }
.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; height: fit-content; position: sticky; top: 110px;
}
.filters h2 { margin: 0 0 12px; font-size: 16px; }
.filters label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.filters select, .filters input, .form input, .form textarea, .form select {
  width: 100%; background: #0c1219; border: 1px solid var(--line); color: #fff;
  padding: 10px 12px; border-radius: 10px; font: inherit;
}
.form textarea { min-height: 140px; resize: vertical; }
.form { display: grid; gap: 12px; }
.form h2 { margin: 10px 0 0; font-size: 15px; color: var(--blue); }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.check { display: flex !important; align-items: center; gap: 8px; color: var(--text) !important; }
.check input { width: auto; }

.product-page {
  display: grid; grid-template-columns: 420px 1fr; gap: 32px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px;
}
.product-cover { border-radius: 16px; overflow: hidden; background: #0c1219; }
.product-cover img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.product-info h1 { margin: 0 0 8px; font-size: 36px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 16px 0 24px; color: var(--muted); }
.specs strong { color: #fff; display: block; }
.qty-row { display: flex; gap: 10px; align-items: center; margin: 16px 0; }
.qty-row input { width: 80px; background: #0c1219; border: 1px solid var(--line); color: #fff; padding: 10px; border-radius: 10px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 64px; height: 86px; object-fit: cover; border-radius: 8px; }
.summary {
  margin-top: 20px; display: flex; justify-content: flex-end;
}
.summary-box {
  width: min(360px, 100%); background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px;
}
.summary-box p { display: flex; justify-content: space-between; }
.summary-box .total { font-size: 22px; color: var(--green); }

.checkout-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.pay-options { display: grid; gap: 8px; }
.pay-options label {
  display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
}
.pay-options input { width: auto; }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.about { max-width: 820px; }
.about .brand-logo-about { display: block; }
.about p { font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 32px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.stat strong { display: block; font-size: 28px; color: var(--blue); }
.stat span { color: var(--muted); font-size: 13px; }

.site-footer {
  background: #0a1016; border-top: 1px solid var(--line); padding: 40px 0 20px; margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 24px; }
.footer-grid h3 { font-size: 14px; margin: 0 0 10px; color: var(--blue); }
.footer-grid a, .footer-grid p { display: block; color: var(--muted); margin: 6px 0; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}

.auth-body {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.auth-card {
  width: min(460px, 100%); background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px; box-shadow: var(--shadow);
}
.install-card { width: min(560px, 100%); }
.auth-card h1 { margin: 0 0 8px; font-size: 28px; }

.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
  background: #0a1016; border-right: 1px solid var(--line); padding: 20px 14px;
}
.admin-side nav { display: grid; gap: 6px; margin-top: 24px; }
.admin-side a {
  color: var(--text); padding: 10px 12px; border-radius: 10px;
}
.admin-side a.active, .admin-side a:hover { background: #1b2838; color: #fff; }
.admin-main { padding: 24px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.thumb { width: 48px; height: 64px; object-fit: cover; border-radius: 6px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager span {
  padding: 8px 12px; border-radius: 8px; background: #1b2838; color: #fff; border: 1px solid var(--line);
}
.pager .current { background: var(--blue); color: #081018; }
.empty {
  text-align: center; padding: 48px 16px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 16px;
}

.nav-open .site-nav { display: block; }

.tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.tabs a {
  padding: 10px 16px; border-radius: 10px 10px 0 0; color: var(--text);
  background: transparent; border: 1px solid transparent;
}
.tabs a.active, .tabs a:hover {
  background: var(--card); color: #fff; border-color: var(--line);
}
.badge-tipo {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 6px;
}
.badge-key { background: #1b2838; color: var(--blue); }
.badge-conta { background: rgba(213, 138, 59, 0.2); color: #f0c27a; }
.badge-cover { position: absolute; top: auto; bottom: 10px; left: 10px; z-index: 1; }
.cred-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; margin: 0 0 14px;
}
.cred-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.cred-grid { display: grid; gap: 10px; margin-top: 14px; }
.cred-row {
  display: grid; grid-template-columns: 160px 1fr auto auto; gap: 8px; align-items: center;
  background: #0c1219; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.cred-row span { color: var(--muted); font-size: 12px; }
.cred-row code { color: #fff; font-size: 14px; word-break: break-all; }
.cred-row code[data-secret][data-hidden] { filter: blur(5px); user-select: none; }
.cred-obs {
  margin: 12px 0 0; color: var(--text); background: #0c1219;
  border-radius: 10px; padding: 12px;
}
.entrega-form .pay-options { margin: 8px 0 4px; }
.pay-box { margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #0c1219; }
.pix-qr { width: min(240px, 100%); height: auto; background: #fff; padding: 10px; border-radius: 10px; margin: 10px 0; }

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
.wa-float svg { width: 34px; height: 34px; display: block; }
.wa-float:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
  color: #fff;
  background: #25D366;
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  margin-top: 8px;
}
.btn-whatsapp:hover { color: #fff; filter: brightness(1.05); }

@media (max-width: 1024px) {
  .grid-games { grid-template-columns: repeat(3, 1fr); }
  .catalog-layout, .product-page, .checkout-grid, .contact-grid, .admin-shell, .footer-grid, .stats {
    grid-template-columns: 1fr;
  }
  .filters { position: static; }
  .admin-side nav { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: 12px; }
}
@media (max-width: 760px) {
  .header-main { grid-template-columns: 1fr auto; }
  .search-form { grid-column: 1 / -1; order: 3; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; }
  body.nav-open .site-nav { display: block; }
  .nav-inner { flex-direction: column; align-items: stretch; }
  .grid-games { grid-template-columns: 1fr 1fr; }
  .hero { padding: 32px 20px; }
  .header-top-inner { flex-direction: column; }
  .product-info h1 { font-size: 26px; }
  .cred-row { grid-template-columns: 1fr 1fr; }
  .cred-row span { grid-column: 1 / -1; }
  .brand-logo { height: 46px; }
}
@media (max-width: 480px) {
  .grid-games { grid-template-columns: 1fr; }
}
