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

:root {
  --bg-dark: #05010a;
  --neon-mint: #00ffcc;
  --neon-fuchsia: #ff007a;
  --neon-purple: #d230ff;
  --text-main: #ffffff;
  --text-sub: #b2a4cd;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Rajdhani', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 30%, #320754 0%, #110228 60%, #040008 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  width: 100%;
}

/* CLASES DE UTILIDAD */
.fuchsia-txt { color: var(--neon-fuchsia); }
.mint-txt { color: var(--neon-mint); }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ========================================================= */
/* 1. SPLASH SCREEN (HUD LÍQUIDO FUTURISTA)                  */
/* ========================================================= */

.full-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 9999;
  background: radial-gradient(circle at 50% 35%, #38075c 0%, #0f0221 65%, #030007 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.full-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  width: 100%;
  max-width: 360px;
  height: 100%;
  max-height: 680px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

/* LOGO SODIE (ORBITRON) */
.logo-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -5px;
}

.logo-title {
  font-family: 'Orbitron', sans-serif !important;
  font-size: 3.8rem !important;
  font-weight: 900;
  background: linear-gradient(180deg, #FFFFFF 20%, #A5B8EC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex; 
  align-items: center; 
  justify-content: center;
  filter: drop-shadow(0 4px 25px rgba(255, 255, 255, 0.4));
  letter-spacing: 4px;
}

.logo-title .serif-s {
  font-family: 'Orbitron', sans-serif !important;
  font-size: 4.5rem !important;
  color: var(--neon-fuchsia) !important;
  -webkit-text-fill-color: var(--neon-fuchsia) !important;
  filter: drop-shadow(0 0 30px rgba(255, 0, 122, 1));
  margin-right: 2px;
}

.hud-percentage-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-pct-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--neon-mint);
  text-shadow: 0 0 14px var(--neon-mint);
  font-family: 'Orbitron', sans-serif;
}

.hud-pointer-line {
  width: 2px;
  height: 12px;
  background: var(--neon-mint);
  box-shadow: 0 0 8px var(--neon-mint);
}

/* BARRA DE CÁPSULAS GRUESA */
.cpu-liquid-box {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-top: 2.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 2px 5px rgba(255,255,255,0.2);
}

.capsules-track {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  width: 100%;
}

.capsule {
  height: 60px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cap-glint {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.capsule.cap-mint {
  background: linear-gradient(180deg, #62fce0 0%, #00bf8f 60%, #004d3a 100%);
  border: 1px solid #a8ffee;
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.9);
}

.capsule.cap-fuchsia {
  background: linear-gradient(180deg, #ff7bc3 0%, #e60073 60%, #59002c 100%);
  border: 1px solid #ffc2e0;
  box-shadow: 0 0 12px rgba(255, 0, 122, 0.9);
}

.capsule.cap-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* GAUGES HUD (CÍRCULOS PERFECTOS) */
.splash-gauges {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 300px;
}

.hud-center-node {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--neon-fuchsia);
  box-shadow: 0 0 16px var(--neon-fuchsia), 0 0 6px #fff;
  animation: pulse-node 1.5s infinite alternate;
}

@keyframes pulse-node {
  0% { transform: scale(1); box-shadow: 0 0 16px var(--neon-fuchsia); }
  100% { transform: scale(1.3); box-shadow: 0 0 25px var(--neon-fuchsia), 0 0 10px #fff; }
}

.gauge-card {
  position: relative;
  width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 30%, #2b1a3d 0%, #0a0412 80%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.15), 0 8px 16px rgba(0, 0, 0, 0.6);
}

.gauge-ring { width: 90px; height: 90px; transform: rotate(-90deg); position: absolute; }
.ring-thin-bg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 2.5; }
.ring-thin-fill { fill: none; stroke-width: 3.5; stroke-linecap: round; transition: stroke-dasharray 0.05s linear; }

.mint-stroke { stroke: var(--neon-mint); filter: drop-shadow(0 0 6px var(--neon-mint)); }
.fuchsia-stroke { stroke: var(--neon-fuchsia); filter: drop-shadow(0 0 6px var(--neon-fuchsia)); }

.gauge-content {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}

.gauge-label { font-size: 0.38rem; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.5px; }
.gauge-val { font-size: 0.85rem; font-weight: 800; margin-top: 1px; font-family: 'Orbitron', sans-serif; }

/* CARTEL BIENVENIDO */
.welcome-sign-glass {
  position: relative;
  width: 100%;
  padding: 18px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.welcome-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(0deg, rgba(255, 0, 122, 0.4) 0%, rgba(0, 255, 204, 0.5) 100%);
  border-top: 2.5px solid var(--neon-mint);
  box-shadow: 0 -2px 12px var(--neon-mint);
  transition: height 0.05s linear;
  z-index: 1;
}

.welcome-text {
  position: relative;
  z-index: 2;
  font-family: 'Orbitron', sans-serif !important;
  font-size: 1.7rem; 
  font-weight: 900; 
  letter-spacing: 8px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 255, 255, 0.6);
}

/* ========================================================= */
/* 2. DASHBOARD MAIN                                         */
/* ========================================================= */

.dashboard-container {
  width: 100%; max-width: 412px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 16px;
}

.dash-header { display: flex; justify-content: space-between; align-items: center; }
.dash-header-right { display: flex; align-items: center; gap: 8px; }
.brand-text { font-family: 'Cinzel', serif; font-size: 1.4rem; font-weight: 800; }
.badge-client {
  font-size: 0.75rem;
  background: rgba(0, 255, 204, 0.15);
  border: 1px solid var(--neon-mint);
  padding: 3px 8px;
  border-radius: 8px;
  color: var(--neon-mint);
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
  font-weight: 700;
}
.btn-icon { background: transparent; border: none; font-size: 1.1rem; cursor: pointer; color: #fff; }

.glass-card-dash {
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.07) 0%, rgba(10, 3, 22, 0.45) 100%);
  border: 1.5px solid rgba(0, 255, 204, 0.45);
  border-top: 2px solid rgba(0, 255, 204, 0.85);
  border-bottom: 1.5px solid rgba(0, 255, 204, 0.25);
  border-radius: 20px;
  padding: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    inset 0 1px 2px rgba(0, 255, 204, 0.5),
    inset 0 -2px 8px rgba(0, 0, 0, 0.5),
    0 10px 28px rgba(0, 0, 0, 0.7),
    0 0 15px rgba(0, 255, 204, 0.12);
}

.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }

/* PANEL ADMIN */
.admin-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.admin-group label { font-size: 0.8rem; color: var(--text-sub); display: block; margin-bottom: 4px; }

.admin-btns {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn-select-amount {
  flex: 1;
  min-width: 65px;
  padding: 8px;
  background: rgba(255, 0, 122, 0.1);
  border: 1px solid var(--neon-fuchsia);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.btn-select-amount:hover,
.btn-select-amount:active {
  background: var(--neon-fuchsia);
  box-shadow: 0 0 12px rgba(255, 0, 122, 0.6);
  transform: translateY(-1px);
}

.link-input-wrapper {
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MODAL DE AUTENTICACIÓN ADMIN */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(5, 1, 10, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-auth-box {
  width: 100%;
  max-width: 340px;
}

/* MÉTRICAS & CARRUSEL (CON SNAP SCROLL CORREGIDO) */
.metrics-slider { 
  display: flex; 
  gap: 14px; 
  overflow-x: auto; 
  scrollbar-width: none; 
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 0px; 
}
.metrics-slider::-webkit-scrollbar { display: none; }

.metrics-slider .metric-square { 
  flex: 0 0 148px; 
  height: 158px; 
  padding: 12px; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  border-radius: 18px; 
  scroll-snap-align: start;
}

/* PUNTOS INDICADORES DEL CARRUSEL */
.slider-dots-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.slider-dots-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-dots-indicator .dot.active {
  width: 18px;
  border-radius: 10px;
  background: var(--neon-mint);
  box-shadow: 0 0 8px var(--neon-mint);
}

/* PASOS Y FLUJOS DE ENTRADA */
.step-desc { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 12px; }
.input-group-flow { display: flex; flex-direction: column; gap: 8px; }
.input-group-flow input { background: rgba(10, 4, 20, 0.6); border: 1px solid var(--neon-mint); border-radius: 10px; padding: 10px; color: #fff; outline: none; }
.file-input-custom { margin-bottom: 12px; color: var(--text-sub); width: 100%; }
.style-wait-msg { font-size: 0.85rem; margin-top: 8px; text-align: center; }

.btn-fb { 
  background: rgba(24, 119, 242, 0.15) !important; 
  border-color: #1877f2 !important; 
  color: #ffffff !important; 
}

.btn-fb:hover {
  background: #1877f2 !important;
  box-shadow: 0 0 12px rgba(24, 119, 242, 0.6) !important;
}

.row-btns-renew { display: flex; gap: 10px; margin-top: 10px; }

/* CHAT WEB HEADER & CUPOS BADGE */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cupos-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(180, 0, 255, 0.12);
  border: 1px solid rgba(210, 80, 255, 0.4);
  padding: 4px 10px;
  border-radius: 12px;
}

.purple-neon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-purple);
  box-shadow: 0 0 10px var(--neon-purple), 0 0 18px var(--neon-purple);
}

.cupos-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: #e588ff;
  letter-spacing: 0.5px;
}

.chat-body { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.incoming-simple p { background: rgba(0, 255, 204, 0.12); border: 1px solid rgba(0, 255, 204, 0.4); border-radius: 12px 12px 12px 2px; padding: 10px 14px; font-size: 0.85rem; color: #fff; max-width: 85%; }
.outgoing-simple p { background: rgba(255, 0, 122, 0.15); border: 1px solid rgba(255, 0, 122, 0.4); border-radius: 12px 12px 2px 12px; padding: 10px 14px; font-size: 0.85rem; color: #fff; max-width: 85%; margin-left: auto; }

.chat-quick-options { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.chat-quick-options::-webkit-scrollbar { display: none; }
.opt-btn { flex: 0 0 auto; background: rgba(0, 255, 204, 0.08); border: 1px solid rgba(0, 255, 204, 0.5); border-radius: 20px; padding: 6px 12px; color: var(--neon-mint); font-size: 0.75rem; font-weight: 600; cursor: pointer; white-space: nowrap; }

.chat-input-bar { display: flex; gap: 8px; }
.chat-input-bar input { flex: 1; background: rgba(10, 4, 20, 0.5); border: 1px solid rgba(0, 255, 204, 0.35); border-radius: 10px; padding: 8px 12px; color: #fff; font-size: 0.8rem; outline: none; }
.chat-send-btn { background: var(--neon-mint); border: none; border-radius: 10px; width: 36px; color: #05010a; font-weight: 800; cursor: pointer; }

/* ACCIONES DE PAGO Y BOTONES */
.pf-summary-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; font-size: 0.9rem; }
.pf-row { display: flex; justify-content: space-between; color: var(--text-sub); }
.pf-row.pf-total { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 8px; font-size: 1.1rem; color: #fff; }

.btn-pf-action { width: 100%; padding: 12px 0; background: linear-gradient(180deg, rgba(0, 255, 204, 0.25) 0%, rgba(0, 180, 140, 0.08) 100%); border: 1.5px solid var(--neon-mint); border-radius: 12px; color: var(--neon-mint); font-weight: 700; font-size: 0.95rem; cursor: pointer; box-shadow: 0 0 12px rgba(0, 255, 204, 0.2); }
.btn-danger { border-color: var(--neon-fuchsia); color: var(--neon-fuchsia); background: rgba(255, 0, 122, 0.1); }

.timer-section { text-align: center; }
.timer-label { font-size: 0.8rem; font-weight: 700; color: var(--text-sub); }
.timer-digits { font-size: 3rem; font-weight: 800; color: var(--neon-mint); text-shadow: 0 0 16px var(--neon-mint); margin: 4px 0; }
.timer-sub { font-size: 0.65rem; color: var(--text-sub); letter-spacing: 1px; }

/* ========================================================= */
/* 3. BANNER DE COOKIES & FLOTANTES                          */
/* ========================================================= */
.cookie-banner-box {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 380px;
  z-index: 9999;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 255, 204, 0.2);
  border: 1px solid rgba(0, 255, 204, 0.4);
  backdrop-filter: blur(16px);
  background: rgba(10, 3, 22, 0.9);
  border-radius: 16px;
  animation: slideUpCookie 0.4s ease-out;
}

@keyframes slideUpCookie {
  from {
    transform: translate(-50%, 100px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
