/* ==============================================================================
   KROMA DESIGN SYSTEM V2.0 - UNIFIED STYLES
   Minimalist Esports Aesthetic (Strict Monochromatic Black & Kroma Red #FF3344)
   ============================================================================== */

:root {
  --bg-dark: #000000;
  --bg-surface: #090B10;
  --bg-card: #0D1017;
  --bg-card-hover: #121620;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 51, 68, 0.50);
  --primary: #FF3344;
  --primary-hover: #E62233;
  --primary-glow: rgba(255, 51, 68, 0.35);
  --text-main: #FFFFFF;
  --text-muted: #8B9BB4;
  --text-sub: #526077;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #181D26;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Layout */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: all 0.25s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #FFF;
}

.brand-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.brand-text h1 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.1;
  color: #FFF;
}

.brand-text span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #FFF;
}

.nav-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  padding: 9px 18px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 0 20px -5px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 25px 0px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: #FFF;
}

/* Hero Section */
.hero {
  padding: 90px 0 60px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(255, 51, 68, 0.08);
  border: 1px solid rgba(255, 51, 68, 0.28);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: #FFFFFF;
  max-width: 820px;
  margin: 0 auto 18px;
}

.hero h1 span.highlight {
  color: var(--primary);
}

.hero p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-telemetry {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.8px;
}

.hero-telemetry span.active {
  color: var(--text-muted);
}

.hero-telemetry span.active b {
  color: #FFF;
}

/* Secciones Generales */
.section-wrap {
  padding: 70px 0;
  position: relative;
}

.section-hdr {
  text-align: center;
  margin-bottom: 42px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  text-transform: uppercase;
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 6px auto 0;
}

/* Tarjetas Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 28px 24px;
  transition: all 0.25s ease;
  position: relative;
}

.feature-card:hover {
  border-color: rgba(255, 51, 68, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 51, 68, 0.1);
  border: 1px solid rgba(255, 51, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.feature-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Coming Soon Hype UI Box */
.hype-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.hype-bg-signal {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.12;
  filter: blur(1px);
  pointer-events: none;
}

.hype-glass {
  position: relative;
  z-index: 10;
  background: rgba(9, 11, 16, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 48px 28px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hype-lock {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #0A0D13;
  border: 1px solid rgba(255, 51, 68, 0.5);
  box-shadow: 0 0 25px -4px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
  align-items: stretch;
}

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.price-card.pro {
  background: linear-gradient(180deg, rgba(255, 51, 68, 0.05) 0%, var(--bg-surface) 100%);
  border-color: rgba(255, 51, 68, 0.35);
  box-shadow: 0 0 25px -8px rgba(255, 51, 68, 0.2);
}

.price-card.lifetime {
  background: linear-gradient(180deg, rgba(255, 51, 68, 0.09) 0%, var(--bg-surface) 100%);
  border-color: rgba(255, 51, 68, 0.7);
  box-shadow: 0 0 35px -5px var(--primary-glow);
  transform: translateY(-4px);
}

.price-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.price-card .price-amount {
  font-size: 34px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 14px 0 4px;
}

.price-card .price-cycle {
  font-size: 12px;
  color: var(--text-sub);
}

.price-features {
  list-style: none;
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
  color: #CBD5E1;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li.disabled {
  color: var(--text-sub);
  text-decoration: line-through;
}

/* Split Slider Comparador Interactivo */
.compare-container {
  max-width: 980px;
  margin: 0 auto;
}

.split-slider-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  user-select: none;
  cursor: ew-resize;
  --divider-pos: 50%;
}

.compare-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-img-filtered {
  clip-path: polygon(0 0, var(--divider-pos) 0, var(--divider-pos) 100%, 0 100%);
}

.split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--divider-pos);
  width: 2px;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateX(-50%);
  pointer-events: none;
}

.split-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.compare-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.compare-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.compare-tab-btn:hover {
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.compare-tab-btn.active {
  background: rgba(255, 51, 68, 0.12);
  border-color: var(--primary);
  color: #FFF;
}

.compare-controls-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px 24px;
  align-items: center;
}

.deck-slider {
  width: 100%;
  height: 4px;
  background: #181D26;
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.deck-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
}

.compare-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 38px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #CBD5E1;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.compare-reset-btn svg {
  color: #94A3B8;
  transition: transform 0.45s ease, color 0.2s ease;
  flex-shrink: 0;
}

.compare-reset-btn:hover {
  background: rgba(255, 51, 68, 0.08);
  border-color: rgba(255, 51, 68, 0.5);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(255, 51, 68, 0.25);
}

.compare-reset-btn:hover svg {
  color: var(--primary);
  transform: rotate(-180deg);
}

.compare-reset-btn:active {
  transform: scale(0.98);
}

/* Payment Badges Deck */
.payment-badges-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pay-method-pill {
  font-size: 11px;
  font-weight: 700;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  transition: all 0.2s;
}

.pay-method-pill:hover {
  background: rgba(255, 51, 68, 0.1);
  border-color: rgba(255, 51, 68, 0.4);
  color: #FFFFFF;
}

/* ==============================================================================
   MODAL DIALOGS & FORM CONTROLS (KROMA DESIGN SYSTEM)
   ============================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #0B0E14;
  border: 1px solid rgba(255, 51, 68, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 51, 68, 0.15);
  border-radius: 12px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 42px;
  background: #06080C;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0 14px;
  color: #FFF;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 51, 68, 0.25);
}

/* ==============================================================================
   ADMIN DASHBOARD COMPONENTS
   ============================================================================== */
.admin-card {
  background: #0B0E14;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}

.data-table-container {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.data-table th {
  background: #07090D;
  padding: 12px 16px;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #E2E8F0;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-plan {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-plan.lifetime {
  background: rgba(255, 51, 68, 0.15);
  color: #FF3344;
  border: 1px solid rgba(255, 51, 68, 0.4);
}

.badge-plan.pro {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-plan.free {
  background: rgba(148, 163, 184, 0.1);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
}

.badge-status.active { color: #4ADE80; }
.badge-status.revoked { color: #F87171; }

.badge-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ==============================================================================
   VAULT GATEWAY (2-BARRIER SECURITY SCREEN)
   ============================================================================== */
.vault-gate-screen {
  position: fixed;
  inset: 0;
  background: #040507;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.vault-gate-box {
  width: 100%;
  max-width: 440px;
  background: #0B0E14;
  border: 1px solid rgba(255, 51, 68, 0.35);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(255, 51, 68, 0.15);
  border-radius: 12px;
  padding: 36px 32px;
  text-align: center;
  position: relative;
}

.vault-icon-shield {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 51, 68, 0.1);
  border: 1px solid rgba(255, 51, 68, 0.4);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(255, 51, 68, 0.25);
}

.vault-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255, 51, 68, 0.15);
  color: var(--primary);
  border: 1px solid rgba(255, 51, 68, 0.3);
  margin-bottom: 12px;
}

.vault-title {
  font-size: 20px;
  font-weight: 900;
  color: #FFF;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.vault-desc {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 24px;
}

.vault-form {
  text-align: left;
}

.vault-barrier-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.vault-error-msg {
  display: none;
  background: rgba(255, 51, 68, 0.15);
  border: 1px solid rgba(255, 51, 68, 0.4);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: #FFA3A3;
  margin-bottom: 16px;
  text-align: left;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-sub);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .nav-links { display: none; }
  .price-card.lifetime { transform: none; }
}
