@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #050505;
  --bg-card: rgba(24, 24, 27, 0.4);
  --line: rgba(255, 255, 255, 0.05);
  --text: #f8fafc;
  --muted: #a1a1aa;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.5);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #38bdf8;
  --font-main: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font-main); }

body {
  background-color: var(--bg);
  color: var(--text);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: 0.2s; }
a:hover { text-shadow: 0 0 8px var(--primary-glow); }
button, input, select { font: inherit; outline: none; }

.container { width: min(1200px, 100% - 40px); margin: 0 auto; padding: 20px 0; }
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.card:hover { border-color: rgba(255,255,255,0.15); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 15px; }

h1, h2, h3 { color: white; margin-bottom: 5px; font-weight: 700; letter-spacing: -0.5px; }
h3 { font-size: 1.15rem; }
.kpi-value { font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, #fff, #a5b4fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.muted { color: var(--muted); font-size: 0.85rem; line-height: 1.4; }
.mono { font-family: var(--font-mono); font-size: 0.80rem; color: #a5b4fc; }

.btn, .btn-ghost, .btn-danger, .btn-pricing, .btn-success, .btn-info, .btn-warning {
  cursor: pointer; padding: 6px 10px; border-radius: 6px; font-weight: 600;
  transition: all 0.2s ease; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.80rem;
}
.btn, .btn-pricing {
  background: linear-gradient(135deg, #4f46e5, #6366f1); color: white;
  box-shadow: 0 4px 15px var(--primary-glow); border: 1px solid rgba(255,255,255,0.1);
}
.btn:hover, .btn-pricing:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-glow); filter: brightness(1.1); }

.btn-success { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.btn-success:hover { background: var(--success); color: white; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); }

.btn-ghost { background: rgba(255,255,255,0.03); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }

.btn-danger { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.btn-danger:hover { background: var(--danger); color: white; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); }

.btn-warning { background: rgba(245, 158, 11, 0.1); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.btn-warning:hover { background: var(--warning); color: #0f172a; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }

.btn-info { background: rgba(56, 189, 248, 0.1); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.3); }
.btn-info:hover { background: #38bdf8; color: #0f172a; box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4); }

.input, .select {
  width: 100%; padding: 8px 12px; background: rgba(0,0,0,0.3);
  border: 1px solid var(--line); border-radius: 6px; color: white; margin-bottom: 12px;
  transition: 0.2s; font-size: 0.85rem;
}
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.2); }

.table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table th { text-align: left; padding: 10px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 0.85rem;}
.table tr:hover td { background: rgba(255,255,255,0.02); }

.badge { padding: 3px 8px; border-radius: 4px; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }
.badge.running { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.badge.stopped { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.badge.admin { background: rgba(139, 92, 246, 0.15); color: #c084fc; border: 1px solid rgba(139,92,246,0.3); }
.badge.missing { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

.dashboard { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  border-right: 1px solid var(--line); padding: 24px 20px;
  background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(10px);
  display:flex; flex-direction:column; gap:6px; z-index: 10;
}
.sidebar .logo { font-size: 1.2rem; font-weight: 800; display:flex; align-items:center; gap:8px; margin-bottom: 25px; letter-spacing: -0.5px; }
.sidebar .logo i { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }
.nav-item { padding: 8px 12px; border-radius: 6px; cursor: pointer; color: var(--muted); font-weight: 500; transition: 0.2s; display:flex; align-items:center; gap: 8px; font-size: 0.90rem; }
.nav-item:hover, .nav-item.active { background: rgba(99, 102, 241, 0.15); color: white; border: 1px solid rgba(99,102,241,0.3); }
.main { padding: 30px; overflow-y: auto; height: 100vh; position: relative; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }

.view-fullscreen { height: calc(100vh - 120px); display: flex; flex-direction: column; width: 100%; }
.stable-container { margin: 0 auto; width: 100%; height: 100%; display: flex; flex-direction: column;}
.terminal-wrapper { background: #0c0c0c; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); flex-grow: 1; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.terminal-header { background: #1f1f1f; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }
.terminal-title { color: #a1a1aa; font-size: 0.80rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.5px; display: flex; align-items: center; }
.terminal { padding: 16px; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; font-size: 0.80rem; overflow-y: auto; color: #10b981; white-space: pre-wrap; line-height: 1.6; flex-grow: 1; }

.file-manager { display: grid; grid-template-columns: 250px 1fr; gap: 20px; flex-grow: 1; height: 100%; }
.file-sidebar { background: rgba(0,0,0,0.3); border: 1px solid var(--line); border-radius: 8px; overflow-y: auto; padding: 10px; display:flex; flex-direction:column; gap:4px; }
.file-item { padding: 6px 10px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.80rem; color: var(--muted); transition: 0.2s; word-break: break-all; }
.file-item:hover, .file-item.active { background: rgba(255,255,255,0.05); color: white; }
.file-item i { font-size: 0.90rem; width: 14px; text-align: center; }
.file-item.dir i { color: #eab308; }
.file-item.file i { color: #61afef; }

.hidden { display: none !important; }

.landing-body { background-image: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%), radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 40%); }
.navbar { display:flex; justify-content: space-between; align-items: center; padding: 25px 0; margin-bottom: 50px; }
.navbar .logo { font-size: 1.6rem; font-weight: 900; display:flex; align-items:center; gap: 10px; letter-spacing: -0.5px;}

.hero-pro { text-align: center; padding: 60px 20px; max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-pro h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; background: linear-gradient(to bottom right, #ffffff, #a5b4fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; letter-spacing: -1.5px; }
.hero-pro p { font-size: 1.15rem; color: var(--muted); margin-bottom: 40px; line-height: 1.6; }

.features-glass { background: rgba(20, 20, 24, 0.4); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 40px; margin-top: 20px; width: 100%; }

.pricing-features { list-style: none; padding: 0; margin: 15px 0; flex-grow: 1; text-align: left; }
.pricing-features li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: #d1d5db; display:flex; align-items:center; gap:10px; font-size: 0.80rem; }
.pricing-features li i { color: var(--success); font-size: 0.9rem; }

/* FIX UI: Animacion Osciloscopio y Server Icon */
.wave-container { display: flex; align-items: flex-end; gap: 3px; height: 18px; margin-right: 10px; }
.wave-bar { display: block; width: 4px; background-color: var(--success); border-radius: 2px; animation: wave 1s ease-in-out infinite; }
.wave-bar:nth-child(1) { animation-delay: 0s; height: 10px; }
.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 18px; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 12px; }
.wave-bar:nth-child(4) { animation-delay: 0.6s; height: 16px; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 18px; } }

/* Glassmorphism & Animations */
.glass-panel {
  background: rgba(20, 20, 30, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.3);
  border-radius: 16px;
}

.hover-lift {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}
.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.1);
}

.orb-container {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  overflow: hidden; z-index: -2;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: floatOrb 20s infinite ease-in-out alternate;
}
.orb-1 { width: 50vw; height: 50vw; background: rgba(99,102,241,0.15); top: -10%; left: -10%; }
.orb-2 { width: 40vw; height: 40vw; background: rgba(16,185,129,0.1); bottom: -10%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 30vw; height: 30vw; background: rgba(139,92,246,0.1); top: 40%; left: 60%; animation-delay: -10s; }

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Section Glows */
.features-bg-glow { 
    position: absolute; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    width: 70vw; height: 70vw; 
    background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, rgba(9,9,11,0) 60%); 
    z-index: 0; pointer-events: none; 
}

.pricing-bg-glow { 
    position: absolute; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    width: 80vw; height: 80vw; 
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, rgba(9,9,11,0) 65%); 
    z-index: 0; pointer-events: none; 
}

/* Modern Text Effects */
.text-glow {
  background: linear-gradient(to right, #fff, #a5b4fc, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.stats-band {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================
   NUEVOS COMPONENTES PREMIUM (ESTILO 4NETPLAYERS)
   ========================================== */

/* --- 1. Hero Game Search Bar --- */
.hero-search-box {
  background: rgba(20, 20, 30, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 30px;
  margin: 35px auto 10px auto;
  width: 100%;
  max-width: 950px;
  text-align: left;
  position: relative;
  z-index: 15;
}

.hero-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 22px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.hero-search-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), inset 0 2px 4px rgba(0,0,0,0.4);
}

.hero-search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  outline: none;
}

.hero-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.hero-quick-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items: center;
}

.hero-quick-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-quick-tag:hover, .hero-quick-tag.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(79, 70, 229, 0.4));
  border-color: var(--primary);
  color: white;
  box-shadow: 0 8px 20px var(--primary-glow);
  transform: translateY(-2px);
}

.hero-preview-card {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 14px;
  padding: 20px;
}

/* --- 2. Catalog Category Tabs & Live Filter --- */
.catalog-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 35px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 25px;
  border-radius: 18px;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.category-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 10px 22px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-tab:hover, .category-tab.active {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px var(--primary-glow);
  transform: translateY(-2px);
}

.catalog-search {
  min-width: 300px;
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.catalog-search input {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 20px 12px 45px;
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.catalog-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.catalog-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.1rem;
}

/* --- Catalog Grid 5 Columns & Compact Cards --- */
.catalog-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 1400px) {
  .catalog-grid-5 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1100px) {
  .catalog-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  .catalog-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 550px) {
  .catalog-grid-5 {
    grid-template-columns: 1fr;
  }
}

.catalog-card {
  padding: 20px 18px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(20, 20, 30, 0.4) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s ease !important;
}
.catalog-card:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 20px rgba(99, 102, 241, 0.2) !important;
  transform: translateY(-6px) !important;
}
.catalog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.catalog-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.catalog-card-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.catalog-card h3 {
  font-size: 1.15rem !important;
  margin-bottom: 8px !important;
  color: white;
  font-weight: 800;
}
.catalog-card p {
  font-size: 0.8rem !important;
  margin-bottom: 20px !important;
  line-height: 1.5 !important;
  color: var(--muted);
  flex-grow: 1;
}
.catalog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.catalog-card-price-label {
  font-size: 0.65rem;
  color: var(--muted);
  display: block;
}
.catalog-card-price-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: white;
}
.catalog-card-btn {
  padding: 8px 16px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
}

/* --- 3. Global Infrastructure Map & Ping Tester --- */
.infra-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  width: 100%;
}

.region-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.region-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 28px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(16px);
}

.region-card:hover, .region-card.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(255,255,255,0.03));
  border-color: var(--primary);
  box-shadow: 0 10px 30px var(--primary-glow);
  transform: translateX(10px);
}

.ping-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.map-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, rgba(5,5,7,0.8) 80%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 20px 40px rgba(0,0,0,0.5);
}

.map-visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
  background-image: url('/assets/world-map.svg?v=20260518_hud');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.map-node {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
  transition: all 0.5s ease;
  cursor: pointer;
  z-index: 5;
}

.map-node::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: ping-wave 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes ping-wave {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.8); opacity: 0; }
}

.map-node-label {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* --- 4. 3-Step How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 50px;
  position: relative;
  width: 100%;
}

.step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 50px 35px 40px 35px;
  border-radius: 22px;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.step-card:hover {
  transform: translateY(-12px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 30px rgba(99, 102, 241, 0.15);
}

.step-number {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 25px var(--primary-glow);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* --- 5. Community Reviews (Trustpilot style) --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
  width: 100%;
}

.review-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 35px;
  border-radius: 22px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.review-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 45px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.02);
  transform: translateY(-8px);
}

.stars {
  color: #f59e0b;
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: flex;
  gap: 5px;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.4));
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reviewer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 1.3rem;
  box-shadow: 0 0 15px var(--primary-glow);
}

/* --- 6. Marketplace & Librería de Mods Premium --- */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 16px !important;
  margin-top: 25px !important;
  width: 100%;
  align-items: stretch;
}

@media (max-width: 1400px) {
  .marketplace-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (max-width: 1100px) {
  .marketplace-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 800px) {
  .marketplace-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 550px) {
  .marketplace-grid {
    grid-template-columns: 1fr !important;
  }
}

.marketplace-card {
  background: rgba(20, 20, 30, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 20px 18px !important;
  border-radius: 16px !important;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

.marketplace-card:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 20px rgba(99, 102, 241, 0.2) !important;
  transform: translateY(-6px) !important;
}

/* Overriding inline styles inside marketplace-card to match catalog-card perfectly */
.marketplace-card > div > div:first-child {
  margin-bottom: 15px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.marketplace-card h3 {
  font-size: 1.15rem !important;
  margin-bottom: 8px !important;
  color: white !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.marketplace-card p {
  font-size: 0.8rem !important;
  line-height: 1.5 !important;
  margin-bottom: 20px !important;
  color: var(--muted) !important;
  flex-grow: 1 !important;
}

.marketplace-icon-box {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: var(--icon-bg, rgba(99, 102, 241, 0.1));
  border: 1px solid var(--icon-border, rgba(99, 102, 241, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem !important;
  color: var(--icon-color, #6366f1);
  filter: drop-shadow(0 0 8px var(--icon-shadow, rgba(99, 102, 241, 0.3)));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.marketplace-card:hover .marketplace-icon-box {
  transform: scale(1.1) rotate(5deg);
}

.vault-badge {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 0.65rem !important;
  font-weight: 800;
  border: 1px solid rgba(139, 92, 246, 0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px !important;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.vault-badge-dot {
  width: 5px;
  height: 5px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.marketplace-price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  margin-top: auto !important;
}

.marketplace-price {
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  color: white !important;
  letter-spacing: 0px !important;
}

.btn-marketplace {
  padding: 8px 16px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-marketplace:hover {
  background: var(--btn-hover-bg, rgba(99, 102, 241, 0.2)) !important;
  border-color: var(--btn-hover-border, #6366f1) !important;
  color: white !important;
  box-shadow: 0 0 15px var(--btn-hover-shadow, rgba(99, 102, 241, 0.4)) !important;
  transform: translateX(3px);
}

.btn-marketplace i {
  transition: transform 0.3s ease;
}

.btn-marketplace:hover i {
  transform: translateX(4px);
}

.developer-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.04));
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 40px 50px;
  border-radius: 26px;
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(25px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.developer-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.developer-banner-content {
  display: flex;
  align-items: center;
  gap: 25px;
  z-index: 1;
}

.developer-banner-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #c084fc;
  filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
}

.developer-banner-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}

.developer-banner-text p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .snap-container {
    scroll-snap-type: none; /* Disable strict snap on mobile */
  }
  .snap-section {
    min-height: auto;
    padding: 100px 15px 40px 15px; /* Adjust padding */
  }
  .hero-pro h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  .hero-pro p {
    font-size: 1rem;
  }
  .glass-panel, .hero-search-box {
    padding: 20px !important;
  }
  .navbar {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background: rgba(5, 5, 5, 0.95) !important;
  }
  .navbar > div:nth-child(2) {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
    justify-content: center;
  }
  .navbar > div:nth-child(2) button {
    margin-left: 0 !important;
    flex: 1;
    font-size: 0.85rem;
    padding: 10px;
  }
  .grid-3, .grid-2, .infra-box, .steps-grid {
    grid-template-columns: 1fr;
  }
  .catalog-search {
    width: 100%;
    max-width: 100%;
  }
  .stats-band {
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 0 10px;
  }
  .stat-item {
    flex: 1;
  }
  .stat-value {
    font-size: 1.2rem;
  }
  .stat-value i {
    font-size: 1rem !important;
  }
  .stat-value span {
    font-size: 1.2rem !important;
  }
  .stat-label {
    font-size: 0.6rem;
  }
  .developer-banner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 25px;
  }
  .developer-banner-content {
    flex-direction: column;
    gap: 15px;
  }
}

/* Efecto de corte de diamante y brillo para el plan Platinum */
.badge-platinum {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(56, 189, 248, 0.2) 40%, rgba(14, 165, 233, 0.3) 70%, rgba(255, 255, 255, 0.2) 100%) !important;
  color: #e0f2fe !important;
  border: 1px solid rgba(224, 242, 254, 0.8) !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.8), 0 0 2px #fff !important;
  font-weight: 900 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5), inset 0 0 6px rgba(255, 255, 255, 0.6) !important;
  padding: 4px 14px !important;
  letter-spacing: 1px !important;
  /* Corte de diamante (Hexágono biselado) */
  clip-path: polygon(6px 0%, calc(100% - 6px) 0%, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0% 50%) !important;
  display: inline-block !important;
}

.badge-platinum::after {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -150% !important;
  width: 50% !important;
  height: 200% !important;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  ) !important;
  transform: rotate(30deg) !important;
  animation: platinum-shine 4s infinite linear !important;
  pointer-events: none !important;
}

@keyframes platinum-shine {
  0% {
    left: -150%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}


