/* ============================================================================
   CRIPTOBID — Estilos completos (basados en tu index.html)
   Identidad: crypto/neon · negro absoluto · azul sintético digital
   ============================================================================ */

:root {
  --bg:        #000000;
  --bg2:       #070a10;
  --panel:     rgba(8,12,18,.72);
  --line:      rgba(0,200,255,.22);
  --line-soft: rgba(0,200,255,.10);
  --blue:      #00c8ff;
  --blue2:     #0084e6;
  --pale:      #c9ecff;
  --cyan:      #35e7ff;
  --text:      #ffffff;
  --muted:     #8899aa;
  --danger:    #ff5c6c;
  --disp:      'Orbitron', monospace;
  --body:      'Inter', system-ui, sans-serif;
  --num:       'Space Grotesk', monospace;
  --glow-text: 0 0 10px #00c8ff, 0 0 20px rgba(0,200,255,.55), 0 0 40px rgba(0,200,255,.25);
  --glow-box:  0 0 30px rgba(0,200,255,.16), inset 0 0 30px rgba(0,200,255,.05);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
}

/* ========== RESET ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: var(--blue); color: #000; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #04060a; }
::-webkit-scrollbar-thumb {
  background: #10283b;
  border-radius: 6px;
  border: 2px solid #04060a;
}
::-webkit-scrollbar-thumb:hover { background: var(--blue2); }

/* ========== UTILITARIOS ========== */
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
section { scroll-margin-top: 96px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hidden { display: none !important; }

/* ========== FONDOS DECORATIVOS ========== */
.cyber-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,200,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
}
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 80% -5%, rgba(53,231,255,.06), transparent 60%),
    radial-gradient(800px 460px at 10% 25%, rgba(0,200,255,.05), transparent 60%);
}
header, main, footer, #toasts, #fab {
  position: relative;
  z-index: 2;
}

/* ========== GLOW CARD ========== */
.glow-card {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--glow-box);
}
.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(0,200,255,.65), rgba(53,231,255,.25) 38%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ========== HEADER ========== */
#header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
#header.scrolled {
  background: rgba(0,0,0,.88);
  box-shadow: 0 10px 34px rgba(0,0,0,.7), 0 0 22px rgba(0,200,255,.08);
  border-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}
.logo {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: .08em;
  color: #fff;
  display: flex;
  align-items: center;
}
.logo .bid {
  color: var(--blue);
  text-shadow: var(--glow-text);
}
.logo .cursor {
  width: 9px;
  height: 1.1em;
  background: var(--blue);
  margin-left: 6px;
  box-shadow: var(--glow-text);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Selector de idioma */
.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 4px;
  background: rgba(0,0,0,.4);
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--disp);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 6px 14px;
  border-radius: 50px;
  transition: all .25s;
}
.lang-btn.active {
  background: var(--blue);
  color: #000;
  box-shadow: 0 0 14px rgba(0,200,255,.5);
}
.lang-btn:not(.active):hover {
  color: var(--pale);
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a,
.nav-links button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .05em;
  transition: color .2s, text-shadow .2s;
  padding: 6px 2px;
}
.nav-links a:hover,
.nav-links button:hover {
  color: var(--blue);
  text-shadow: 0 0 12px rgba(0,200,255,.6);
}
#burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--blue);
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  font-size: 1.1rem;
  margin-left: 14px;
}

/* ========== BOTONES ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: #000;
  font-family: var(--disp);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  border: none;
  border-radius: 50px;
  padding: 16px 40px;
  box-shadow: 0 0 30px rgba(0,200,255,.4);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: btnPulse 2.8s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 22px rgba(0,200,255,.4); }
  50% { box-shadow: 0 0 46px rgba(0,200,255,.7); }
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 55px rgba(0,200,255,.65);
}
.btn-primary:active { transform: scale(.97); }
.btn-primary.sm {
  padding: 10px 22px;
  font-size: .74rem;
  animation: none;
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  animation: none !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 15px 32px;
  font-weight: 600;
  font-size: .92rem;
  transition: border-color .25s, box-shadow .25s, background .25s, transform .25s;
}
.btn-secondary:hover {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(0,200,255,.3);
  background: rgba(0,200,255,.06);
  transform: translateY(-2px);
}

/* ========== HERO ========== */
#hero {
  padding: 88px 0 64px;
  text-align: center;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--disp);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .34em;
  color: var(--cyan);
  border: 1px solid rgba(53,231,255,.3);
  border-radius: 50px;
  padding: 8px 20px;
  background: rgba(53,231,255,.05);
  box-shadow: 0 0 18px rgba(53,231,255,.12);
}
.hero-title {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.8vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: .03em;
  margin: 26px 0 18px;
  color: var(--blue);
  text-shadow: var(--glow-text);
  min-height: 2.3em;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  animation: neonFlicker 4.5s infinite;
}
@keyframes neonFlicker {
  0%, 100% {
    text-shadow: 0 0 10px #00c8ff, 0 0 22px rgba(0,200,255,.6), 0 0 44px rgba(0,200,255,.28);
  }
  48% {
    text-shadow: 0 0 6px #00c8ff, 0 0 14px rgba(0,200,255,.4), 0 0 30px rgba(0,200,255,.16);
  }
  50% {
    text-shadow: 0 0 14px #00c8ff, 0 0 34px rgba(0,200,255,.8), 0 0 70px rgba(0,200,255,.4);
  }
  52% {
    text-shadow: 0 0 6px #00c8ff, 0 0 14px rgba(0,200,255,.4), 0 0 30px rgba(0,200,255,.16);
  }
}
.caret {
  display: inline-block;
  width: .55em;
  height: 1em;
  background: var(--blue);
  margin-left: 6px;
  box-shadow: var(--glow-text);
  animation: blink .9s steps(1) infinite;
  transform: translateY(.1em);
}
.hero-sub {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.08rem;
  max-width: 58ch;
  margin: 0 auto;
}
.hero-sub b {
  color: var(--pale);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 38px 0;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0,200,255,.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 22px;
  text-align: left;
  transition: transform .25s, box-shadow .25s;
}
.stat-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px rgba(0,200,255,.18);
}
.stat-pill .s-ico { font-size: 1.4rem; }
.stat-pill .s-val {
  font-family: var(--num);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--blue);
  text-shadow: 0 0 14px rgba(0,200,255,.45);
  line-height: 1.15;
}
.stat-pill .s-lab {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-ctas {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== SECCIONES ========== */
.sec-head { margin-bottom: 34px; }
.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--disp);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--blue);
  text-transform: uppercase;
}
.sec-eyebrow::after {
  content: '';
  flex: 0 0 70px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.sec-head h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  margin-top: 10px;
  color: #fff;
}
.sec-head h2 em {
  font-style: normal;
  color: var(--blue);
  text-shadow: 0 0 18px rgba(0,200,255,.5);
}
.sec-head p {
  color: var(--muted);
  font-weight: 300;
  margin-top: 8px;
  max-width: 62ch;
}

/* ========== ARENA ========== */
#arena { padding: 64px 0 80px; }
.arena-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 420px);
  gap: 26px;
  align-items: start;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.panel-head h3 {
  font-family: var(--disp);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--disp);
  font-size: .6rem;
  letter-spacing: .22em;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 6px 13px;
  text-transform: uppercase;
}
.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  background: rgba(0,0,0,.5);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 5px;
  margin-left: auto;
}
.tab-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--disp);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .06em;
  padding: 9px 20px;
  border-radius: 50px;
  transition: all .3s ease;
}
.tab-btn.active {
  background: var(--blue);
  color: #000;
  box-shadow: 0 0 18px rgba(0,200,255,.5);
}
.tab-btn:not(.active):hover { color: var(--pale); }

.rank-note {
  padding: 12px 22px 0;
  font-size: .74rem;
  color: var(--muted);
  font-weight: 300;
}
.rank-note b {
  color: var(--pale);
  font-weight: 600;
}

/* Ranking list */
#rank-list {
  list-style: none;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 640px;
  overflow-y: auto;
}
.rk-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.015);
  transition: transform .2s, border-color .2s, background .2s;
  animation: rowIn .45s ease both;
  position: relative;
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.rk-row:hover {
  transform: translateX(6px);
  border-color: var(--line);
  background: rgba(0,200,255,.05);
}
.rk-row.flash {
  animation: rowFlash 1.1s ease both;
}
@keyframes rowFlash {
  0% { background: rgba(0,200,255,.3); border-color: var(--blue); box-shadow: 0 0 24px rgba(0,200,255,.4); }
  100% { background: rgba(255,255,255,.015); }
}
.rk-row.is-user {
  border-color: var(--blue2);
  background: rgba(0,200,255,.09);
  box-shadow: inset 0 0 24px rgba(0,200,255,.07);
}
.rk-row.mv-up::after,
.rk-row.mv-down::after {
  position: absolute;
  right: -4px;
  top: -10px;
  font-family: var(--disp);
  font-size: .7rem;
  animation: mvFade 2.4s ease forwards;
  pointer-events: none;
}
.rk-row.mv-up::after { content: '▲'; color: var(--blue); text-shadow: 0 0 8px var(--blue); }
.rk-row.mv-down::after { content: '▼'; color: #ff7a7a; text-shadow: 0 0 8px #ff7a7a; }
@keyframes mvFade {
  0% { opacity: 0; transform: translateY(6px); }
  15% { opacity: 1; transform: none; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

.rk-pos {
  font-family: var(--num);
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
  color: var(--muted);
}
.rk-pos .medal { font-size: 1.5rem; }
.rk-pos .pos-num { color: #5f7285; font-size: 1rem; }

.rk-info { min-width: 0; }
.rk-top {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.rk-url {
  font-family: var(--num);
  font-weight: 700;
  font-size: .98rem;
  color: #fff;
  transition: color .2s, text-shadow .2s;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 30ch;
  white-space: nowrap;
}
.rk-url:hover {
  color: var(--blue);
  text-shadow: 0 0 12px rgba(0,200,255,.6);
}
.rk-wallet {
  display: block;
  margin-top: 2px;
  font-family: var(--num);
  font-weight: 400;
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.you-tag {
  background: var(--blue);
  color: #000;
  font-family: var(--disp);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .16em;
  padding: 2px 8px;
  border-radius: 4px;
}
.chip {
  font-size: .62rem;
  padding: 3px 9px;
  border-radius: 50px;
  border: 1px solid var(--line);
  color: var(--pale);
  background: rgba(0,200,255,.07);
  white-space: nowrap;
  font-weight: 600;
}
.rk-amt { text-align: right; }
.rk-amt .amt {
  display: block;
  font-family: var(--num);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue);
  text-shadow: 0 0 12px rgba(0,200,255,.5);
  white-space: nowrap;
}
.rk-amt .usdt {
  font-family: var(--disp);
  font-size: .55rem;
  letter-spacing: .28em;
  color: #4e6a85;
}

.loading-row {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}
.empty-row {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  font-weight: 300;
}

.more-wrap {
  padding: 10px 18px 20px;
  text-align: center;
}
#btn-more {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  padding: 12px;
  border-radius: var(--r-sm);
  font-family: var(--disp);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  transition: all .25s;
}
#btn-more:hover:not(:disabled) {
  color: var(--blue);
  border-color: var(--blue2);
  box-shadow: 0 0 16px rgba(0,200,255,.2);
}
#btn-more:disabled {
  opacity: .45;
  cursor: default;
}

/* ========== PANEL DE PUJA ========== */
#panel-puja { position: sticky; top: 92px; }
.bid-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.field label {
  display: block;
  font-family: var(--disp);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.input-wrap { position: relative; }
.input-wrap .ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue2);
  font-size: .9rem;
  pointer-events: none;
}
.field input {
  width: 100%;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: #fff;
  padding: 13px 14px 13px 42px;
  font-family: var(--body);
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #3d5162; }
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 0 18px rgba(0,200,255,.25);
}
.field input.shake {
  animation: shake .45s ease;
  border-color: var(--danger) !important;
  box-shadow: 0 0 14px rgba(255,92,108,.35) !important;
}
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.amt-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--disp);
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--muted);
  pointer-events: none;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.quick {
  background: rgba(0,0,0,.5);
  border: 1px solid var(--line);
  color: var(--pale);
  border-radius: var(--r-sm);
  padding: 10px 4px;
  font-family: var(--num);
  font-weight: 700;
  font-size: .82rem;
  transition: all .18s;
}
.quick:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 14px rgba(0,200,255,.3);
  transform: translateY(-2px);
}
.quick:active { transform: scale(.93); }

.info-box {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(0,200,255,.03);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .8rem;
}
.info-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 300;
}
.info-line b {
  color: var(--pale);
  font-family: var(--num);
  font-weight: 700;
}
.info-line.hot b {
  color: var(--blue);
  text-shadow: 0 0 10px rgba(0,200,255,.45);
}
#pos-preview {
  border-top: 1px dashed var(--line-soft);
  padding-top: 9px;
  font-size: .79rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}
#pos-preview b {
  color: var(--blue);
  font-family: var(--num);
}
#pos-preview .pv-w {
  color: #5f7285;
  font-family: var(--num);
  font-size: .72rem;
}

.chain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.chain-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(0,0,0,.5);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  transition: all .2s;
}
.chain-btn .sym {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--num);
  font-weight: 700;
  font-size: .82rem;
  color: #fff;
  flex: none;
}
.chain-btn[data-chain="TRC-20"] .sym { background: #eb0029; }
.chain-btn[data-chain="BEP-20"] .sym { background: #f3ba2f; color: #000; }
.chain-btn[data-chain="POLYGON"] .sym { background: #8247e5; }
.chain-btn[data-chain="SOLANA"] .sym { background: linear-gradient(135deg, #9945ff, #14f195); color: #000; }
.chain-btn.sel {
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 0 14px rgba(0,200,255,.25);
  background: rgba(0,200,255,.07);
}
.chain-btn.sel::after {
  content: '✓';
  margin-left: auto;
  color: var(--blue);
  font-weight: 800;
}

#btn-bid {
  width: 100%;
  padding: 18px;
  font-size: .98rem;
}
.bid-fine {
  font-size: .68rem;
  color: #41586a;
  text-align: center;
  font-weight: 300;
  letter-spacing: .03em;
}

/* ========== LOGROS ========== */
#logros { padding: 70px 0; }
#logros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.logro-card {
  border-radius: var(--r-md);
  padding: 24px 16px 20px;
  text-align: center;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.logro-card .lg-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(0,200,255,.45));
}
.logro-card h3 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .04em;
  color: #fff;
  margin-bottom: 6px;
}
.logro-card .lg-desc {
  font-size: .73rem;
  color: var(--muted);
  font-weight: 300;
  min-height: 2.7em;
}
.lg-status {
  margin-top: 12px;
  font-family: var(--disp);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.logro-card.on {
  border-color: rgba(0,200,255,.45);
  box-shadow: 0 0 24px rgba(0,200,255,.14), inset 0 0 28px rgba(0,200,255,.05);
}
.logro-card.on .lg-status { color: var(--blue); }
.logro-card.on:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 36px rgba(0,200,255,.25);
}
.logro-card.off {
  border-style: dashed;
  border-color: #1c2a33;
  background: rgba(8,10,14,.5);
}
.logro-card.off .lg-icon { filter: grayscale(1); opacity: .4; }
.logro-card.off h3 { color: #6d7f8e; }
.logro-card.off .lg-status { color: #3d5162; }
.logro-card.just { animation: unlockFlash 1.5s ease; }
@keyframes unlockFlash {
  0% { box-shadow: 0 0 0 0 rgba(0,200,255,.9); }
  55% { box-shadow: 0 0 64px 20px rgba(0,200,255,.35); }
  100% { box-shadow: 0 0 24px rgba(0,200,255,.14); }
}
.tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 220px;
  background: #04101c;
  border: 1px solid var(--blue2);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: .72rem;
  color: var(--pale);
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 30;
  box-shadow: 0 10px 30px rgba(0,0,0,.7), 0 0 18px rgba(0,200,255,.2);
}
.tip b { color: var(--blue); }
.tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--blue2);
}
.logro-card:hover .tip,
.logro-card:focus .tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== REGLAS ========== */
#reglas { padding: 70px 0; }
.rules-wrap {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rule {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(8,12,18,.6);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .25s, box-shadow .25s;
}
.rule.open {
  border-color: var(--blue2);
  box-shadow: 0 0 24px rgba(0,200,255,.12);
}
.rule-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  background: none;
  border: none;
  color: #fff;
  padding: 19px 22px;
  text-align: left;
  font-family: var(--disp);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .03em;
}
.rule-head .r-ico {
  font-size: 1.35rem;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: rgba(0,200,255,.05);
  flex: none;
}
.rule-head .r-arrow {
  margin-left: auto;
  color: var(--blue);
  transition: transform .35s ease;
  font-size: .85rem;
}
.rule.open .r-arrow { transform: rotate(180deg); }
.rule-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
}
.rule.open .rule-body { grid-template-rows: 1fr; }
.rule-body-inner { overflow: hidden; }
.rule-body p {
  padding: 0 22px 20px 83px;
  color: var(--muted);
  font-size: .87rem;
  font-weight: 300;
}
.rule-body p b {
  color: var(--blue);
  font-weight: 600;
}

/* ========== CTA FINAL ========== */
#cta-final { padding: 80px 0; }
.cta-box {
  border: 1px solid var(--blue2);
  border-radius: 24px;
  text-align: center;
  padding: 70px 30px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 320px at 50% -18%, rgba(0,200,255,.2), transparent 70%),
    linear-gradient(180deg, rgba(0,132,230,.12), rgba(0,0,0,.6) 55%, #000);
}
.cta-box::before,
.cta-box::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(0,200,255,.22);
  border-radius: 50%;
}
.cta-box::before { top: -90px; left: -90px; }
.cta-box::after { bottom: -90px; right: -90px; }
.cta-box h2 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  color: var(--blue);
  text-shadow: var(--glow-text);
  letter-spacing: .03em;
  animation: neonFlicker 5s infinite;
}
.cta-box p {
  color: var(--muted);
  font-weight: 300;
  margin: 16px auto 32px;
  max-width: 46ch;
}
.cta-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.cta-total {
  margin-top: 34px;
  font-family: var(--disp);
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta-total b { color: var(--pale); }

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid var(--line);
  background: #020406;
  padding: 56px 0 26px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.foot-brand p {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 300;
  margin-top: 14px;
  max-width: 36ch;
}
.foot-col h4 {
  font-family: var(--disp);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--pale);
  margin-bottom: 16px;
}
.foot-col a {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 300;
  padding: 5px 0;
  transition: color .2s, transform .2s;
}
.foot-col a:hover {
  color: var(--blue);
  transform: translateX(5px);
}
.socials {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.socials a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 1.1rem;
  transition: all .25s;
}
.socials a:hover {
  color: #000;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 22px rgba(0,200,255,.5);
  transform: translateY(-4px);
}
.foot-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: #3d5162;
  font-size: .76rem;
  font-weight: 300;
}
.foot-bottom b { color: var(--blue2); font-weight: 600; }
.foot-bottom a { color: #3d5162; }
.foot-bottom a:hover { color: var(--blue); }

/* ========== TOASTS / FAB / CONFETI ========== */
#toasts {
  position: fixed;
  top: 88px;
  right: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(370px, calc(100vw - 36px));
}
.toast {
  border: 1px solid var(--blue2);
  background: rgba(4,12,20,.96);
  color: #fff;
  font-size: .84rem;
  font-weight: 300;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,.7), 0 0 20px rgba(0,200,255,.2);
  animation: toastIn .4s ease both;
  backdrop-filter: blur(8px);
}
.toast b { color: var(--blue); font-weight: 600; }
.toast.error {
  border-color: var(--danger);
  box-shadow: 0 8px 32px rgba(0,0,0,.7), 0 0 20px rgba(255,92,108,.25);
}
.toast.out { animation: toastOut .45s ease both; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(34px); }
}
.confetti {
  position: fixed;
  z-index: 300;
  pointer-events: none;
  border-radius: 2px;
  animation: confettiFly ease-out forwards;
}
@keyframes confettiFly {
  to {
    transform: translate(var(--dx), var(--dy)) rotate(var(--r));
    opacity: 0;
  }
}
#fab {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 80;
  border: none;
  border-radius: 50px;
  background: var(--blue);
  color: #000;
  font-family: var(--disp);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .05em;
  padding: 15px 26px;
  box-shadow: 0 0 30px rgba(0,200,255,.55);
  animation: btnPulse 2.4s infinite;
}

/* ========== REVEAL ON SCROLL ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .arena-grid {
    grid-template-columns: 1.05fr .95fr;
    gap: 16px;
  }
  #panel-puja { position: static; }
  #logros-grid { grid-template-columns: repeat(2, 1fr); }
  .bid-body { padding: 16px; }
  #rank-list { max-height: 560px; }
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(0,0,0,.97);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a,
  .nav-links button {
    padding: 14px 24px;
    width: 100%;
    text-align: left;
  }
  #burger { display: block; }
}
@media (max-width: 760px) {
  .arena-grid { grid-template-columns: 1fr; }
  #panel-puja { order: -1; }
  #fab { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  #particles { display: none; }
  #hero { padding: 56px 0 44px; }
  .hero-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    min-height: 3em;
  }
  .hero-stats { flex-direction: column; align-items: stretch; }
  .stat-pill { justify-content: flex-start; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { width: 100%; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .chain-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  #logros-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .logro-card { padding: 16px 10px; }
  .rk-row {
    grid-template-columns: 44px 1fr auto;
    gap: 9px;
    padding: 11px 11px;
  }
  .rk-url { max-width: 16ch; }
  .rule-body p { padding-left: 22px; }
  #rank-list { max-height: none; }
  #toasts {
    top: auto;
    bottom: 84px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
  .tip { width: 180px; }
  .logo { font-size: 1.02rem; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  #particles { display: none; }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========== CONTADOR ONLINE ========== */
.online-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 10px #2ecc71, 0 0 20px rgba(46, 204, 113, 0.5);
    animation: onlinePulse 2s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes onlinePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px #2ecc71, 0 0 20px rgba(46, 204, 113, 0.5);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.15);
        box-shadow: 0 0 15px #2ecc71, 0 0 30px rgba(46, 204, 113, 0.8);
    }
}

/* Estado "pocos usuarios" */
.online-dot.low {
    background: #f39c12;
    box-shadow: 0 0 10px #f39c12, 0 0 20px rgba(243, 156, 18, 0.5);
}

/* Estado "muchos usuarios" */
.online-dot.high {
    background: #2ecc71;
    box-shadow: 0 0 15px #2ecc71, 0 0 30px rgba(46, 204, 113, 0.7);
}

/* El número online tiene un brillo sutil */
#st-online {
    color: #2ecc71;
    text-shadow: 0 0 12px rgba(46, 204, 113, 0.6);
    transition: color 0.3s;
}

#st-online.updating {
    animation: numberFlash 0.6s ease;
}

@keyframes numberFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); color: #fff; }
    100% { transform: scale(1); }
}

/* Variante compacta para el header (opcional) */
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    padding: 4px 10px;
    border-radius: 50px;
    font-family: var(--num);
    font-size: 0.8rem;
    color: #2ecc71;
    font-weight: 700;
}

.online-badge .online-dot {
    width: 7px;
    height: 7px;
}