:root {
  --bg: #050814;
  --surface: rgba(13, 20, 42, 0.78);
  --surface-strong: #0c1328;
  --border: rgba(0, 240, 255, 0.22);
  --cyan: #00f0ff;
  --purple: #8b5cf6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --danger: #ef4444;
  --text: #e2e8f0;
  --muted: #94a3b8;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
h1, h2, h3, .brand-title, .orbitron { font-family: 'Orbitron', sans-serif; letter-spacing: 0.03em; }
a { color: var(--cyan); text-decoration: none; }
a:hover { opacity: 0.9; }

.cyber-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.12), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.14), transparent 45%),
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
}

.container { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 18px; }
.main-wrap { flex: 1; padding: 26px 18px 60px; }

.glass {
  background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

/* Topbar y Logo limpio sin círculo */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 8, 20, 0.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; color: #fff; }
.brand-logo {
  height: 44px; width: auto; max-width: 240px; object-fit: contain; display: block;
  border-radius: 0 !important; border: none !important; box-shadow: none !important;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.4));
}
.brand-title { font-size: 1.25rem; font-weight: 900; display: block; line-height: 1.1; }
.brand-sub { font-size: 0.64rem; letter-spacing: 0.25em; color: var(--cyan); display: block; opacity: 0.85; }
.neon-cyan { color: var(--cyan); text-shadow: 0 0 12px rgba(0, 240, 255, 0.6); }

.nav-links { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 0.9rem; transition: all .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(0, 240, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.35); }
.nav-links a.admin-pill { color: #fcd34d; background: rgba(245, 158, 11, 0.12); }

.user-hud { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.credit-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.15), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(0, 240, 255, 0.5); color: #fff; font-size: 0.9rem;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: .6; } }
.user-chip { color: var(--text); font-weight: 600; font-size: 0.9rem; }

/* Botones */
.btn-neon, .btn-neon-sm {
  background: linear-gradient(90deg, var(--cyan), #3b82f6, var(--purple));
  color: #050814; border: none; font-weight: 700; cursor: pointer; border-radius: 10px;
  transition: transform .15s, box-shadow .2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-neon { padding: 11px 20px; font-size: 0.95rem; }
.btn-neon-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-neon:hover:not(:disabled), .btn-neon-sm:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(0, 240, 255, 0.45); }
.btn-neon:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost-sm {
  background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 13px; border-radius: 10px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.btn-ghost-sm:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-danger-outline {
  background: transparent; border: 1px solid rgba(239, 68, 68, 0.5); color: #fca5a5;
  padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 0.82rem;
}
.btn-danger-outline:hover { background: rgba(239, 68, 68, 0.15); }
.btn-emerald {
  background: linear-gradient(90deg, #10b981, #059669); color: #fff; border: none;
  padding: 11px 18px; border-radius: 10px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}

/* Hero & Secciones */
.hero-banner {
  padding: 28px; margin-bottom: 28px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: center;
}
@media (max-width: 860px) { .hero-banner { grid-template-columns: 1fr; } }
.hero-banner h1 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-mini { background: rgba(5, 8, 20, 0.65); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px; text-align: center; }
.stat-mini strong { display: block; font-size: 1.35rem; color: var(--cyan); font-family: 'Orbitron', sans-serif; }
.stat-mini span { font-size: 0.78rem; color: var(--muted); }

.section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 34px 0 16px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.25rem; }
.pill-tag {
  font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; font-family: 'Space Grotesk', sans-serif;
  background: rgba(0, 240, 255, 0.14); color: var(--cyan); border: 1px solid rgba(0, 240, 255, 0.35);
}

/* Grids & Tarjetas */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }

.camp-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s, border-color .2s; position: relative; }
.camp-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.camp-card.featured { border-color: rgba(245, 158, 11, 0.55); box-shadow: 0 0 25px rgba(245, 158, 11, 0.12); }

.video-thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: #020617; border: 1px solid rgba(255,255,255,.1); cursor: pointer; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.88; transition: opacity .2s; }
.video-thumb:hover img { opacity: 1; }
.play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(to top, rgba(5,8,20,.8), transparent 60%); }
.play-circle { width: 58px; height: 58px; border-radius: 50%; background: rgba(0, 240, 255, 0.9); color: #050814; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; box-shadow: 0 0 24px rgba(0, 240, 255, 0.7); }
.reward-chip { position: absolute; top: 10px; right: 10px; background: rgba(5, 8, 20, 0.88); border: 1px solid var(--emerald); color: #6ee7b7; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 0.82rem; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; }
.camp-title { font-weight: 700; font-size: 1rem; line-height: 1.35; margin: 0; color: #fff; }
.camp-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--muted); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn { padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: var(--muted); cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.tab-btn.active, .tab-btn:hover { background: rgba(0, 240, 255, 0.14); color: var(--cyan); border-color: var(--cyan); }

/* Formularios y Tablas */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.input, select.input, textarea.input { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(5, 8, 20, 0.85); color: #fff; font-family: inherit; font-size: 0.95rem; }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15); }
.table-wrap { overflow-x: auto; }
table.cyber-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.cyber-table th { text-align: left; padding: 11px 12px; color: var(--cyan); border-bottom: 1px solid var(--border); font-weight: 700; }
.cyber-table td { padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }

/* Alertas & Toasts */
.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--emerald); color: #a7f3d0; }
.alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid var(--danger); color: #fecaca; }
.alert-info { background: rgba(0, 240, 255, 0.12); border: 1px solid var(--cyan); color: #cffafe; }
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 13px 18px; border-radius: 12px; background: #0c1328; border: 1px solid var(--cyan); color: #fff; box-shadow: 0 8px 25px rgba(0,0,0,.6); font-weight: 600; animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(2, 5, 15, 0.86); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { width: 100%; max-width: 740px; padding: 22px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.btn-close { background: rgba(255,255,255,.08); border: none; color: #fff; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.player-frame { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.popup-wait-box { padding: 36px 20px; text-align: center; background: rgba(5, 8, 20, 0.7); border: 1px dashed var(--cyan); border-radius: 12px; margin-bottom: 14px; }
.radar-spinner { width: 48px; height: 48px; border: 3px solid rgba(0,240,255,.2); border-top-color: var(--cyan); border-radius: 50%; margin: 0 auto 14px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-progress-wrap { margin: 12px 0 18px; }
.progress-info { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 6px; }
.progress-track { height: 10px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--emerald)); transition: width .35s linear; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Selector de Packs Cyber 2030 (Bonito, en rejilla y con aire) */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.pack-card {
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
}
.pack-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 240, 255, 0.22);
}
.pack-card.selected {
  border: 2px solid var(--cyan);
  background: linear-gradient(160deg, rgba(0, 240, 255, 0.14), rgba(139, 92, 246, 0.14));
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.28);
}
.pack-card.selected::after {
  content: "✓ SELECCIONADO";
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--cyan);
  color: #050814;
  letter-spacing: 0.05em;
}
.pack-card:not(.selected)::after {
  content: "Elegir Pack";
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--muted);
}
.pack-price { font-size: 1.75rem; font-weight: 900; font-family: 'Orbitron', sans-serif; color: #fff; margin: 10px 0 6px; }
.pack-credits { color: var(--amber); font-weight: 700; font-size: 1.1rem; }

/* Bizum / Transferencia Bancaria 2030 */
.bizum-panel {
  background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.45); border-radius: 16px; padding: 24px; color: var(--text);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.12); position: relative; overflow: hidden;
}
.bizum-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--amber), var(--cyan), var(--emerald)); }
.bizum-header { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.28); margin-bottom: 14px; flex-wrap: wrap; }
.bizum-header-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #d97706, #f59e0b); color: #050814; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; }
.bizum-badge { display: inline-block; background: linear-gradient(90deg, #f59e0b, #d97706); color: #050814; font-weight: 900; padding: 4px 14px; border-radius: 999px; font-size: 0.88rem; margin: 5px 0 3px; font-family: 'Orbitron', sans-serif; }
.bizum-warn { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); color: #fde68a; padding: 12px 16px; border-radius: 10px; font-size: 0.88rem; margin-bottom: 14px; line-height: 1.45; }
.bizum-box-green { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.35); border-radius: 12px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.bizum-phone { font-size: 1.55rem; font-weight: 900; color: var(--cyan); font-family: 'Orbitron', monospace; letter-spacing: .05em; text-shadow: 0 0 14px rgba(0, 240, 255, 0.55); }
.bizum-box-white { background: rgba(12, 19, 40, 0.75); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.bizum-iban { font-family: 'Space Grotesk', monospace; font-weight: 800; font-size: 1.05rem; color: #ffffff; letter-spacing: 0.06em; }
.bizum-concept { background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.45); border-radius: 10px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; margin-top: 10px; flex-wrap: wrap; gap: 8px; }
.bizum-concept strong { font-size: 1.1rem; color: #fcd34d; font-family: 'Orbitron', monospace; }
.bizum-step-box { background: rgba(5, 8, 20, 0.85); border: 1px dashed var(--cyan); border-radius: 14px; padding: 18px; margin-top: 16px; }
.bizum-step-warn { background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.4); color: #fde68a; font-weight: 800; font-size: 0.84rem; padding: 8px 14px; border-radius: 8px; text-align: center; margin-bottom: 12px; }
.bizum-step-instructions { background: rgba(12, 19, 40, 0.65); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 14px; font-size: 0.88rem; color: var(--text); line-height: 1.5; margin-bottom: 14px; }
.copy-btn { background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.4); color: var(--cyan); padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 0.82rem; }
.copy-btn:hover { background: var(--cyan); color: #050814; }
.copy-btn-green { background: rgba(16, 185, 129, 0.2); border: 1px solid var(--emerald); color: #6ee7b7; }
.wa-btn { background: linear-gradient(90deg, #10b981, #059669); color: #fff; padding: 13px 18px; border-radius: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1; min-width: 200px; }
.mail-btn { background: rgba(2, 132, 199, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.5); padding: 13px 18px; border-radius: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1; min-width: 200px; }

.footer { border-top: 1px solid var(--border); background: rgba(5, 8, 20, 0.9); padding: 18px 0; font-size: 0.85rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-links { display: flex; gap: 14px; }