:root{
  --blue-header:#28abe6;
  --yellow:#edeb14;
  --bar-empty:#54575b;
  --bar-fill:#4ade80;
  --gray-available:#93a2b6;
  --bg:#1c2847;
  --bg-deep:#0f172a;
  --blue-selected:#38bdf8;
  --red-occupied:#fa002b;
  --green:#4ade80;
  --white:#ffffff;
  --panel-border:#324467;
  --radius-s:8px;
  --radius-m:14px;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
html{zoom:0.9;}
body{
  background:var(--bg);
  color:var(--white);
  font-family:'Poppins', sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* ===== HEADER (mismos estilos que el sitio principal) ===== */
.topbar{
  background:var(--blue-header);
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:24px;
  padding:18px 28px;
  justify-content:space-between;
}
.brand{
  font-size:34px;
  font-weight:800;
  color:var(--white);
  text-decoration:none;
}

/* tooltip genérico (fondo blanco, texto negro) al pasar el cursor sobre
   "EA10K" en el header — mismo componente y misma animación de entrada
   ("pop", estilo burbuja) que en la página principal. */
.generic-tooltip{
  position:fixed;
  z-index:50;
  background:#ffffff;
  color:#111111;
  font-size:12px;
  font-weight:600;
  padding:6px 10px;
  border-radius:6px;
  box-shadow:0 10px 24px rgba(0,0,0,.4);
  pointer-events:none;
  max-width:220px;
  overflow:hidden;
}
.generic-tooltip-track{
  display:inline-block;
  white-space:nowrap;
}

@keyframes cardPopIn{
  0%{   opacity:0; transform:translateY(10px) scale(.82); }
  55%{  opacity:1; transform:translateY(-2px) scale(1.04); }
  80%{  transform:translateY(0) scale(.99); }
  100%{ opacity:1; transform:translateY(0) scale(1); }
}
.generic-tooltip.pop-in{
  animation:cardPopIn .28s cubic-bezier(.34,1.56,.64,1) both;
}
@media (prefers-reduced-motion: reduce){
  .generic-tooltip.pop-in{ animation:none; }
}
.topbar-stats{
  display:flex;
  align-items:center;
  gap:40px;
  flex-wrap:wrap;
}
.stat-static, .stat-price{
  font-size:19px;
  font-weight:600;
  color:var(--white);
}
.currency-box{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:18px;
  font-weight:600;
  color:var(--white);
}
.currency-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--bg-deep);
  border-radius:8px;
  padding:6px 12px;
}
.currency-sep{color:var(--gray-available);}
.curr-btn{color:var(--gray-available); font-weight:700; font-size:16px;}
.curr-btn.active{color:var(--white);}

.ticker-band{
  background:var(--yellow);
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px 16px;
}
.ticker-text{color:var(--bg-deep); font-weight:700; font-size:15px; text-align:center;}

.progress-section{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 28px;
}
.progress-track{
  flex:1;
  height:10px;
  background:var(--bar-empty);
  border-radius:6px;
  overflow:hidden;
}
.progress-fill{
  height:100%;
  width:0%;
  background:var(--bar-fill);
  border-radius:6px;
}
.progress-pct{font-weight:700; font-size:16px; min-width:48px; text-align:right;}

.counts-section{
  display:flex;
  gap:60px;
  padding:0 28px 18px;
  border-bottom:1px solid var(--panel-border);
  flex-wrap:wrap;
}
.count-item{font-size:20px; font-weight:700;}
.count-val{font-weight:800; margin-left:6px;}
.count-val.occupied{color:var(--red-occupied);}
.count-val.available{color:var(--gray-available);}

/* ===== TERMS CONTENT ===== */
.terms-main{
  max-width:900px;
  margin:0 auto;
  padding:32px 28px 80px;
}
.back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--blue-selected);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  margin-bottom:22px;
}
.back-link:hover{text-decoration:underline;}

.terms-main h1{
  font-size:28px;
  font-weight:700;
  margin:0 0 20px;
}

.terms-box{
  border:2px solid var(--panel-border);
  border-radius:var(--radius-m);
  background:var(--bg-deep);
  padding:30px;
  max-height:520px;
  overflow-y:auto;
  scrollbar-width:thin;                          /* Firefox */
  scrollbar-color:var(--panel-border) transparent; /* Firefox */
}
.terms-box::-webkit-scrollbar{ width:10px; }
.terms-box::-webkit-scrollbar-track{ background:transparent; }
.terms-box::-webkit-scrollbar-thumb{
  background:var(--panel-border);
  border-radius:8px;
}
.terms-box::-webkit-scrollbar-thumb:hover{ background:var(--blue-selected); }

.clause{margin-bottom:26px;}
.clause:last-child{margin-bottom:0;}
.clause h2{
  font-size:17px;
  font-weight:700;
  color:var(--blue-selected);
  margin:0 0 8px;
}
.clause p{
  font-size:15px;
  line-height:1.7;
  color:var(--white);
  margin:0;
}
.clause p + p{
  margin-top:14px;
}

.back-btn{
  display:inline-block;
  margin-top:28px;
  background:var(--green);
  color:var(--bg-deep);
  font-weight:800;
  font-size:14px;
  text-decoration:none;
  padding:13px 26px;
  border-radius:var(--radius-s);
}

@media (max-width:640px){
  .topbar{padding:16px 18px;}
  .brand{font-size:26px;}
  .terms-main{padding:24px 18px 60px;}
  .terms-box{padding:20px; max-height:60vh;}
}
