* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main, 'Plus Jakarta Sans', system-ui, sans-serif);
  background:
    radial-gradient(950px 520px at 85% -10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 65%),
    radial-gradient(750px 460px at -5% 22%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 60%),
    var(--bg, #061024);
  background-attachment: fixed;
  color: var(--ink, #f1f7ff);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ─── Modo Galaxia: Estrellas y Asteroides ─── */
html[data-style="galaxia"] body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(2px 2px at 40px 60px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 140px 150px, #bae6fd, transparent),
    radial-gradient(2.5px 2.5px at 280px 90px, #e9d5ff, transparent),
    radial-gradient(1.5px 1.5px at 360px 230px, #fff, transparent),
    radial-gradient(3px 3px at 520px 120px, #38bdf8, transparent),
    radial-gradient(2px 2px at 690px 280px, #c084fc, transparent);
  background-size: 760px 360px;
  animation: galaxyDrift 60s linear infinite;
  opacity: 0.75;
}
@keyframes galaxyDrift { from { transform: translateY(0); } to { transform: translateY(-360px); } }

.container { position: relative; z-index: 1; width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 18px; }

/* ─── Topbar ─── */
.announcement {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff; text-align: center; padding: 7px 14px; font-size: 0.84rem; font-weight: 700;
}
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; min-height: 66px; flex-wrap: wrap; padding: 8px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.08rem; letter-spacing: -0.02em; }
.brand-logo-sm { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; border: 1.5px solid var(--accent-2); }
.top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: 11px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink); font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent-2); }
.country-select {
  padding: 8px 10px; border-radius: 11px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  font-weight: 700; font-size: 0.84rem; cursor: pointer;
}

/* ─── Drawer Menú Lateral (Estilo Captura 7 Mejorado) ─── */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(3, 7, 18, 0.72); backdrop-filter: blur(6px);
  z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.22s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(350px, 90vw);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 97%, #0a1938), var(--bg));
  border-right: 1px solid var(--border); z-index: 100;
  transform: translateX(-102%); transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column; padding: 18px; overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-nav { display: flex; flex-direction: column; gap: 5px; margin: 14px 0; }
.drawer-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 12px;
  font-weight: 700; font-size: 0.9rem; color: var(--ink); cursor: pointer;
  background: transparent; border: 1px solid transparent; text-align: left;
}
.drawer-link:hover, .drawer-link.active {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
}
.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.style-pill {
  display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 65%, transparent);
  font-size: 0.78rem; font-weight: 700; cursor: pointer; text-align: left;
}
.style-pill.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-color: transparent;
}

/* ─── HERO NUBESITA + DRAGON BALL GT + SHENLONG ─── */
.hero-nubes {
  position: relative; margin: 16px 0 22px; border-radius: 28px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
  background:
    linear-gradient(180deg, rgba(6, 16, 36, 0.32) 0%, rgba(6, 16, 36, 0.78) 72%, var(--surface) 100%),
    url('/img/brand/dbgt-sky-banner.jpg') center/cover no-repeat;
  min-height: 410px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 18px 24px; text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

/* Shenlong + Goku en nube voladora cruzando suavemente */
.shenlong-flyer {
  position: absolute; top: 18px; left: -260px; z-index: 2; pointer-events: none;
  display: flex; align-items: center; gap: 8px; opacity: 0.92;
  filter: drop-shadow(0 0 14px rgba(34, 197, 94, 0.65));
  animation: shenlongAcross 26s linear infinite;
}
@keyframes shenlongAcross {
  0% { transform: translateX(0) translateY(6px) scale(0.92); opacity: 0; }
  8% { opacity: 0.92; }
  50% { transform: translateX(75vw) translateY(-10px) scale(1); }
  92% { opacity: 0.92; }
  100% { transform: translateX(155vw) translateY(8px) scale(0.94); opacity: 0; }
}

.hero-logo-float {
  position: relative; z-index: 4;
  width: min(390px, 84vw); max-height: 255px; object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 212, 255, 0.38));
  animation: heroBob 4.2s ease-in-out infinite;
}
@keyframes heroBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

/* Nubes suaves estilo Dragon Ball / Nubesita */
.clouds-layer {
  position: absolute; left: 0; right: 0; bottom: 72px; height: 86px; z-index: 3; pointer-events: none;
  background:
    radial-gradient(65px 42px at 10% 75%, rgba(255, 255, 255, 0.22), transparent 72%),
    radial-gradient(95px 52px at 28% 82%, rgba(250, 204, 21, 0.22), transparent 72%),
    radial-gradient(110px 58px at 50% 80%, rgba(56, 189, 248, 0.25), transparent 74%),
    radial-gradient(90px 50px at 74% 82%, rgba(250, 204, 21, 0.22), transparent 72%),
    radial-gradient(70px 44px at 92% 76%, rgba(255, 255, 255, 0.22), transparent 72%);
}

.hero-pill-cta {
  position: relative; z-index: 5; margin-top: 8px;
  padding: 10px 26px; border-radius: 999px; font-weight: 800; font-size: 0.95rem;
  background: linear-gradient(90deg, rgba(13, 29, 58, 0.92), rgba(29, 99, 255, 0.85));
  border: 1px solid color-mix(in srgb, var(--accent-2) 60%, transparent);
  box-shadow: 0 8px 26px rgba(0, 212, 255, 0.28);
}

.hero-trust-bar {
  position: relative; z-index: 5; margin-top: 14px;
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.03em;
}

.pwa-install-banner {
  position: relative; z-index: 5; margin-top: 14px; width: min(500px, 96%);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(8, 15, 32, 0.88); border: 1px solid var(--border);
}
.pwa-install-banner img { width: 38px; height: 38px; border-radius: 10px; }

/* ─── Tira de Juegos Estilo NovaMejorado ─── */
.games-strip {
  display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px;
  scrollbar-width: thin;
}
.game-pill {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; white-space: nowrap; font-weight: 800; font-size: 0.9rem;
  transition: all 0.16s ease; flex-shrink: 0;
}
.game-pill img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.game-pill:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.game-pill.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 42%, transparent);
}

/* ─── Layout Catálogo + Carrito ─── */
.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
  gap: 18px; align-items: start;
}
.checkout-sticky { position: sticky; top: 82px; }

.card {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 20px; padding: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}
.section { padding: 22px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.02em; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--muted); cursor: pointer; font-weight: 700; font-size: 0.85rem;
}
.tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-color: transparent;
}

/* ─── Tarjetas de Productos con Imagen Real (Estilo Captura 5 Mejorado) ─── */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.product-card {
  position: relative;
  background: linear-gradient(170deg, color-mix(in srgb, var(--surface-2) 85%, transparent), color-mix(in srgb, var(--bg) 90%, transparent));
  border: 1px solid var(--border); border-radius: 18px; padding: 15px;
  display: flex; flex-direction: column; gap: 8px; transition: all 0.16s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-2) 65%, transparent);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}
.product-card.selected {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-2) 45%, transparent);
}
.prod-art-wrap {
  height: 92px; display: flex; align-items: center; justify-content: center;
  margin: 4px 0; position: relative;
}
.prod-art { max-height: 86px; max-width: 96px; object-fit: contain; border-radius: 14px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35)); }
.bonus-ribbon {
  position: absolute; top: 0; right: 0;
  padding: 3px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.price { font-size: 1.22rem; font-weight: 900; letter-spacing: -0.02em; }
.price-sub { font-size: 0.78rem; color: var(--accent-2); font-weight: 700; }
.compare { font-size: 0.82rem; color: var(--muted); text-decoration: line-through; }

/* ─── Calculadora Robux Estilo Capturas 8 y 9 ─── */
.robux-calc {
  background: linear-gradient(160deg, #042f1e, #061814);
  border: 1.5px solid rgba(16, 185, 129, 0.55); border-radius: 20px;
  padding: 20px; margin-bottom: 18px; color: #ecfdf5;
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.16);
}
.robux-stepper {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0;
}
.robux-stepper button {
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.18); color: #fff; font-size: 1.5rem; font-weight: 900; cursor: pointer;
}
.robux-display {
  min-width: 170px; text-align: center; padding: 8px 18px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(52, 211, 153, 0.4);
  font-size: 1.85rem; font-weight: 900; color: #34d399;
}

/* ─── Badges, Inputs, Buttons ─── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 0.73rem; font-weight: 800;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.badge.ok { background: rgba(16, 185, 129, 0.16); color: #34d399; border-color: rgba(16, 185, 129, 0.4); }
.badge.warn { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border-color: rgba(245, 158, 11, 0.4); }
.badge.err { background: rgba(239, 68, 68, 0.16); color: #f87171; border-color: rgba(239, 68, 68, 0.4); }

.verify-bar { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: 10px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.field label { font-size: 0.81rem; color: var(--muted); font-weight: 700; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 13px; border-radius: 11px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border: 1px solid var(--border); color: var(--ink); outline: none;
}
.input:focus { border-color: var(--accent-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--ink); font-weight: 800; cursor: pointer; transition: all 0.15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 32%, transparent);
}
.btn.success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: none; }
.btn.danger { background: rgba(239, 68, 68, 0.16); color: #fca5a5; border-color: rgba(239, 68, 68, 0.38); }
.btn.sm { padding: 7px 11px; font-size: 0.8rem; border-radius: 9px; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 0.86rem; }

.player-pill {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 14px;
  background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.4);
}
.player-avatar { width: 50px; height: 50px; border-radius: 13px; object-fit: cover; border: 2px solid var(--accent-2); }
.player-avatar-fallback {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}

.alert {
  padding: 12px 15px; border-radius: 13px; font-size: 0.88rem; margin-bottom: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
}
.alert.err { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.4); color: #fecaca; }
.alert.ok { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.4); color: #a7f3d0; }

/* ─── Modales (Cuenta, Tutorial Robux, Canal WhatsApp) ─── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(3, 7, 18, 0.78); backdrop-filter: blur(8px);
  z-index: 110; display: grid; place-items: center; padding: 16px; overflow-y: auto;
}
.modal-box {
  width: min(500px, 100%); max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border: 1.5px solid color-mix(in srgb, var(--accent-2) 40%, transparent);
  border-radius: 24px; padding: 24px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* ─── Pedidos en Vivo, Podio, Tablas y Comunidad ─── */
.live-feed-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.live-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); min-width: 240px; flex-shrink: 0;
}
.live-item img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: color-mix(in srgb, var(--bg) 75%, transparent); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.kpi small { color: var(--muted); display: block; font-size: 0.78rem; }
.kpi strong { font-size: 1.32rem; display: block; margin-top: 4px; }

.podium-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 70%, transparent);
  border: 1px solid var(--border); margin-bottom: 8px;
}
.rank-num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: 0.85rem; background: var(--surface); }
.rank-1 { background: linear-gradient(135deg, #fbbf24, #d97706); color: #111; }
.rank-2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #111; }
.rank-3 { background: linear-gradient(135deg, #d97706, #92400e); color: #fff; }

.social-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 24px 18px; border-radius: 20px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 68%, var(--surface));
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; }

.hidden { display: none !important; }
footer { border-top: 1px solid var(--border); padding: 30px 0; margin-top: 38px; color: var(--muted); font-size: 0.84rem; }

@media (max-width: 920px) {
  .store-layout { grid-template-columns: 1fr; }
  .checkout-sticky { position: static; }
}
@media (max-width: 640px) {
  .verify-bar { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { padding: 12px; }
  .prod-art-wrap { height: 74px; }
  .prod-art { max-height: 70px; }
  .price { font-size: 1.05rem; }
  .hero-nubes { min-height: 350px; padding: 20px 12px; }
}
