
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  img { max-width: 100%; height: auto; }
  html { overflow-x: hidden; }

  :root {
    --deep: #050A1A;
    --void: #020408;
    --gold: #C8A84B;
    --gold-light: #E8C96A;
    --gold-dim: #8A6E2A;
    --cyan: #00C8F0;
    --cyan-dim: #007A95;
    --purple: #7B3FD4;
    --purple-dim: #3A1A70;
    --panel: rgba(10, 18, 40, 0.85);
    --panel-border: rgba(200, 168, 75, 0.25);
    --text: #E8EDF5;
    --text-dim: #8A9BB5;
    --red: #E03050;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--void);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ───── BACKGROUND STARS ───── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 50% at 50% -10%, rgba(123,63,212,0.18) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,200,240,0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
  }

  /* ───── NAV ───── */
  #site-nav.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(2, 4, 8, 0.92);
    border-bottom: 1px solid var(--panel-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 2rem;
    min-height: 4.25rem;
  }

  .nav-left {
    display: none;
  }

  .nav-user-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nav-right {
    position: absolute;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  /* Menu hamburguesa: oculto en desktop, se muestra por media query en mobile */
  .nav-hamburger {
    display: none;
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
  }

  .nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }

  #site-nav.mobile-nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #site-nav.mobile-nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
  #site-nav.mobile-nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .logo-wing {
    width: 36px;
    height: 36px;
  }

  .nav-logo-text {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nav-logo-text span {
    color: var(--cyan);
    font-size: 0.75rem;
    display: block;
    letter-spacing: 0.2em;
    font-weight: 400;
    font-family: 'Rajdhani', sans-serif;
    margin-top: -4px;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
  }

  .nav-links a {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
  }

  .nav-links a:hover {
    color: var(--gold);
    background: rgba(200,168,75,0.07);
  }

  .nav-links a.active {
    color: var(--gold);
  }

  .nav-links .nav-special {
    color: var(--cyan);
    border: 1px solid rgba(0,200,240,0.3);
    border-radius: 4px;
  }

  .nav-links .nav-special:hover {
    background: rgba(0,200,240,0.08);
    color: var(--cyan);
  }

  .nav-links .nav-special-gold {
    color: var(--gold-light);
    border: 1px solid rgba(240, 212, 0, 0.999);
    border-radius: 4px;
  }

  .nav-links .nav-special-gold:hover {
    border: 1px solid rgba(240, 212, 0, 0.999);
    color: var(--gold-light);
  }

  /* ───── LC BADGE ───── */
  .lc-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(200,168,75,0.08);
    border: 1px solid rgba(200,168,75,0.3);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    color: inherit;
  }

  .lc-badge:hover { background: rgba(200,168,75,0.14); }

  .lc-coin {
    width: 20px; height: 20px;
    background: radial-gradient(circle at 35% 35%, #F5D877, #C8A84B 60%, #7A5C1A);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px;
    font-weight: 900;
    color: #4A2E08;
    font-family: 'Cinzel', serif;
    flex-shrink: 0;
  }

  .lc-amount {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 700;
  }

  .btn-login {
    background: transparent;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-login:hover {
    background: rgba(200,168,75,0.1);
    border-color: var(--gold);
    color: var(--gold-light);
  }

  .btn-register {
    background: linear-gradient(135deg, #C8A84B, #8A6E2A);
    border: none;
    color: #0A0600;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
  }

  .btn-register:hover { opacity: 0.85; }

  /* ───── HERO ───── */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 64px;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 70% 60% at 50% 40%, rgba(123,63,212,0.22) 0%, transparent 65%),
      radial-gradient(ellipse 50% 40% at 20% 70%, rgba(0,200,240,0.1) 0%, transparent 50%),
      linear-gradient(180deg, #020408 0%, #050A1A 40%, #030710 100%);
    z-index: 0;
  }

  /* Animated wings particles */
  .hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
  }

  .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle var(--dur) linear infinite;
    animation-delay: var(--delay);
  }

  .particle.blue { background: var(--cyan); }
  .particle.purple { background: #A070FF; }

  @keyframes float-particle {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-10vh) translateX(var(--drift)); opacity: 0; }
  }

  /* Wing SVG glow */
  .hero-wings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    z-index: 2;
    opacity: 0.07;
    width: 700px;
    animation: wing-pulse 4s ease-in-out infinite;
  }

  @keyframes wing-pulse {
    0%, 100% { opacity: 0.07; transform: translate(-50%, -55%) scale(1); }
    50% { opacity: 0.12; transform: translate(-50%, -55%) scale(1.03); }
  }

  .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 100%;
    padding: 2rem 5rem;
  }

  .hero-content-flex {
    display: flex;
    align-items: stretch;
    gap: 40px;
  }

  /* El logo escala junto al alto real del bloque de la derecha (título +
     subtítulo + stats + panel + botones) en vez de quedar chico y
     centrado en el medio de todo ese espacio vertical. */
  .hero-logo-container {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-logo-container img {
    flex: 1 1 auto;
    min-height: 0;
    width: auto;
    max-width: 380px;
    object-fit: contain;
  }

  .hero-version-block {
    margin-top: 0.75rem;
    text-align: center;
  }

  .hero-version-text {
    display: block;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    color: var(--gold);
    text-shadow: 0 0 30px rgba(200,168,75,0.3);
    letter-spacing: 0.03em;
  }

  .hero-info-wrapper {
    min-width: 0;
  }

  .hero-eyebrow {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  .hero-eyebrow::before,
  .hero-eyebrow::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan));
  }

  .hero-eyebrow::after {
    background: linear-gradient(90deg, var(--cyan), transparent);
  }

  .hero-title {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.05;
    color: var(--gold);
    text-shadow: 0 0 60px rgba(200,168,75,0.3);
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
  }

  .hero-title .version {
    color: var(--text);
    font-size: 0.45em;
    display: block;
    letter-spacing: 0.2em;
    font-weight: 400;
    margin-top: 0.4rem;
    color: var(--text-dim);
  }

  .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin: 1.5rem auto;
    max-width: 560px;
    line-height: 1.7;
    font-weight: 400;
  }

  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
  }

  .hero-stat {
    text-align: center;
  }

  .hero-stat-num {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
  }

  .hero-stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 2px;
  }

  .hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
  }

  .btn-primary {
    background: linear-gradient(135deg, #C8A84B 0%, #9A7530 100%);
    color: #08050A;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.85rem 2.2rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
  }

  .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F5D877, #C8A84B);
    opacity: 0;
    transition: opacity 0.2s;
  }

  .btn-primary:hover::before { opacity: 1; }
  .btn-primary:hover { transform: translateY(-1px); }
  .btn-primary span { position: relative; z-index: 1; }

  .btn-secondary {
    background: transparent;
    color: var(--cyan);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.85rem 2.2rem;
    border: 1px solid rgba(0,200,240,0.4);
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
  }

  .btn-secondary:hover {
    background: rgba(0,200,240,0.07);
    border-color: var(--cyan);
    transform: translateY(-1px);
  }

  /* ───── SECTIONS ───── */
  section {
    position: relative;
    z-index: 2;
    padding: 1rem 1rem;
    /* Altura real y fija del header (#site-nav), no una aproximación en vh:
       con vh, en pantallas más altas el offset queda mayor a los 68px reales
       del header y se ve colar un resto del fondo de la sección anterior
       antes de que arranque el título de la sección actual. */
    scroll-margin-top: 68px;
  }

  .section-inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Cada sección a la que se llega desde el header (o desde un botón interno
     como "Info Custom"/"Cómo Empezar") ocupa como mínimo toda la pantalla
     visible debajo del header fijo -- así nunca se ve "cortada" asomando el
     principio de la siguiente en el mismo scroll. Si el contenido real es
     más alto que una pantalla (como Eventos), esto no lo achica, solo pone
     un piso mínimo a las secciones más cortas. */
  #info-server,
  #ranking,
  #eventos,
  #custom,
  #guias,
  #vips,
  #descargas,
  #shop {
    min-height: calc(100vh - 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Sin esto, .section-inner se achica a su ancho mínimo de contenido en
     vez de ocupar el espacio disponible -- un bug clásico de flexbox con
     hijos que tienen grids/flex adentro (acá el .shop-grid). */
  #info-server > .section-inner,
  #ranking > .section-inner,
  #eventos > .section-inner,
  #custom > .section-inner,
  #guias > .section-inner,
  #vips > .section-inner,
  #descargas > .section-inner,
  #shop > .section-inner {
    width: 100%;
  }

  .section-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .section-tag {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--cyan);
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
  }

  .section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.06em;
  }

  .section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1rem auto 0;
  }

  /* ───── PANEL CARD ───── */
  .panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    overflow: hidden;
  }

  .panel-header {
    background: rgba(200,168,75,0.06);
    border-bottom: 1px solid var(--panel-border);
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .panel-header-title {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .panel-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
  }

  .panel-body {
    padding: 1.5rem;
  }

  /* ───── LOGIN PANEL ───── */
  #login {
    background: rgba(5,10,26,0.5);
    border-top: 1px solid rgba(200,168,75,0.1);
    border-bottom: 1px solid rgba(200,168,75,0.1);
  }

  .login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .form-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(200,168,75,0.2);
    border-radius: 4px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    padding: 0.6rem 0.9rem;
    outline: none;
    transition: border-color 0.2s;
  }

  .form-input:focus {
    border-color: var(--gold-dim);
    background: rgba(200,168,75,0.04);
  }

  .form-input::placeholder { color: rgba(138,155,181,0.5); }

  .btn-full {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
  }

  /* User panel (logged in) */
  .user-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--panel-border);
  }

  .user-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-dim));
    border: 2px solid var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold);
    flex-shrink: 0;
  }

  .user-info-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: var(--gold);
    font-size: 1rem;
  }

  .user-info-class {
    font-size: 0.8rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
    margin-top: 2px;
  }

  .user-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .user-stat-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(200,168,75,0.12);
    border-radius: 4px;
    padding: 0.6rem 0.8rem;
  }

  .user-stat-box-label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
  }

  .user-stat-box-val {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: 3px;
  }

  /* LC Panel */
  .lc-panel-balance {
    text-align: center;
    padding: 1.5rem 0;
  }

  .lc-big-coin {
    width: 72px; height: 72px;
    background: radial-gradient(circle at 35% 30%, #FDE879, #C8A84B 55%, #6A440E);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: #3A1E00;
    border: 2px solid rgba(200,168,75,0.5);
    box-shadow: 0 0 24px rgba(200,168,75,0.2);
  }

  .lc-balance-num {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
  }

  .lc-balance-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 4px;
  }

  .lc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 1.25rem;
  }

  .btn-lc {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.55rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--gold-dim);
    background: transparent;
    color: var(--gold);
    transition: all 0.2s;
  }

  .btn-lc:hover { background: rgba(200,168,75,0.1); }

  .btn-lc.buy {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #080400;
    border-color: transparent;
  }

  .btn-lc.buy:hover { opacity: 0.85; }

  /* ───── EVENTOS ───── */
  #eventos {
    background: linear-gradient(180deg, transparent 0%, rgba(123,63,212,0.05) 50%, transparent 100%);
  }

  .eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
  }

  .evento-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
  }

  .evento-card:hover {
    border-color: rgba(200,168,75,0.5);
    transform: translateY(-3px);
  }

  .evento-banner {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .evento-banner-bg {
    position: absolute; inset: 0;
  }

  .evento-banner-text {
    position: relative;
    z-index: 1;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(200,168,75,0.5);
    letter-spacing: 0.08em;
  }

  .evento-info {
    padding: 1rem 1.25rem;
  }

  .evento-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 0.4rem;
  }

  .evento-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 0.75rem;
  }

  .evento-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .evento-badge {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-weight: 700;
  }

  .badge-active {
    background: rgba(0,200,240,0.12);
    color: var(--cyan);
    border: 1px solid rgba(0,200,240,0.25);
  }

  .badge-upcoming {
    background: rgba(200,168,75,0.1);
    color: var(--gold);
    border: 1px solid rgba(200,168,75,0.25);
  }

  .badge-ended {
    background: rgba(138,155,181,0.1);
    color: var(--text-dim);
    border: 1px solid rgba(138,155,181,0.2);
  }

  .evento-time {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
  }

  /* ───── CALENDARIO DE EVENTOS AUTOMÁTICOS ───── */
  .calendario-eventos {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .calendario-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .calendario-header-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--gold);
  }

  /* Los 3 estados (Anterior/En Curso/Próximo) se muestran siempre juntos,
     cada uno en su propia caja -- no rotan ni se reemplazan entre sí. */
  .estado-eventos {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    width: 100%;
  }

  .estado-evento-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.55rem;
    border-radius: 14px;
    padding: 0.5rem 1.1rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.92rem;
    flex: 1 1 0;
    min-width: 0;
  }

  .estado-evento-box .evento-badge {
    font-size: 0.72rem;
    vertical-align: middle;
    flex-shrink: 0;
  }

  .estado-anterior {
    background: rgba(138,155,181,0.06);
    border: 1px solid rgba(138,155,181,0.25);
    color: var(--text-dim);
  }

  .estado-curso {
    background: rgba(0,200,240,0.06);
    border: 1px solid rgba(0,200,240,0.25);
    color: var(--cyan);
  }

  .estado-proximo {
    background: rgba(200,168,75,0.06);
    border: 1px solid rgba(200,168,75,0.25);
    color: var(--gold);
  }

  .proximo-evento-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--cyan);
    animation: casino-spin 2s ease-in-out infinite alternate;
  }

  .proximo-evento-dot.en-curso {
    background: #E03050;
    box-shadow: 0 0 8px #E03050;
  }

  @media (max-width: 700px) {
    .estado-eventos { flex-wrap: wrap; }
    .estado-evento-box { font-size: 0.85rem; white-space: normal; flex: 1 1 100%; }
  }

  .calendario-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
  }

  .calendario-dia {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 0.75rem 0.6rem;
    text-align: center;
  }

  .calendario-dia.hoy {
    border-color: var(--gold);
    background: rgba(200,168,75,0.06);
  }

  /* Mismo tratamiento que .calendario-dia.hoy, pero sobre el renglón del
     evento puntual que está EN CURSO ahora mismo -- se recuadra tanto en la
     grilla semanal como en "Todos los días", donde sea que aparezca. */
  .calendario-evento-caja {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    margin-top: 0.2rem;
    transition: all 0.2s;
  }

  .calendario-evento-caja.activo {
    border-color: var(--gold);
    background: rgba(200,168,75,0.06);
  }

  .calendario-dia-nombre {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
  }

  .calendario-dia.hoy .calendario-dia-nombre {
    color: var(--gold);
  }

  .calendario-evento-nombre {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cyan);
    cursor: help;
    border-bottom: 1px dotted rgba(0,200,240,0.4);
    display: inline-block;
  }

  .calendario-evento-zona {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold-dim);
  }

  .calendario-evento-hora {
    display: block;
    margin-top: 0.35rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.88rem;
    color: var(--text-dim);
  }

  .calendario-diarios {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--panel-border);
  }

  .calendario-diarios-title {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
  }

  .calendario-diarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
  }

  .calendario-diarios-grid + .calendario-categoria-title {
    margin-top: 1.25rem;
  }

  .calendario-categoria-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
  }

  .calendario-nota {
    margin-top: 1.25rem;
    font-size: 0.92rem;
    color: var(--text-dim);
    font-style: italic;
  }

  @media (max-width: 900px) {
    .calendario-semana { grid-template-columns: repeat(4, 1fr); }
  }

  @media (max-width: 600px) {
    .calendario-semana { grid-template-columns: repeat(2, 1fr); }
  }

  .evento-tooltip {
    position: fixed;
    z-index: 2000;
    max-width: 320px;
    background: rgba(6,10,22,0.98);
    border: 1px solid var(--gold);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    pointer-events: none;
    transition: opacity 0.12s;
  }

  .evento-tooltip-titulo {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 0.35rem;
  }

  .evento-tooltip-zona {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.55rem;
  }

  .evento-tooltip-desc {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.5;
  }

  .evento-tooltip-reward {
    font-size: 0.92rem;
    color: var(--gold-light);
    line-height: 1.5;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(200,168,75,0.2);
  }

  /* Tabla de stats + sockets dentro del tooltip -- compartido por Wiki
     Item (wikitem.html) y el panel de equipo del perfil (js.js), mismo
     criterio visual que aiondatabase.info: filas angostas, label a la
     izquierda, valor a la derecha. */
  .wiki-stats-header {
    color: var(--gold-light);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(200,168,75,0.2);
  }
  .wiki-stats-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin-top: 0.2rem; }
  .wiki-stats-table td { padding: 0.1rem 0.3rem 0.1rem 0; color: var(--text-dim); }
  .wiki-stats-table td.wiki-stats-value { text-align: right; color: var(--text); font-weight: 600; }
  .wiki-sockets-row { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.5rem; flex-wrap: wrap; }
  .wiki-socket-icon {
    width: 16px; height: 16px; border-radius: 3px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(200,168,75,0.35);
  }
  .wiki-godstone-line { color: var(--gold-light); font-size: 0.75rem; margin-top: 0.4rem; }

  /* ───── RANKING ───── */
  #ranking {
    background: rgba(5,10,26,0.5);
    border-top: 1px solid rgba(200,168,75,0.08);
    border-bottom: 1px solid rgba(200,168,75,0.08);
  }

  .ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
  }

  /* Botonera tipo pestañas arriba de la tabla de rankings -- una sola tabla
     ancha por vez (Top PvP / Top PvE / Top Legiones / Top por Clase) en vez
     de 3-4 tablas angostas compitiendo por espacio en una grilla. */
  .ranking-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }

  .ranking-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    color: var(--text-dim);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .ranking-tab-btn:hover {
    border-color: rgba(200,168,75,0.4);
    color: var(--text);
  }

  .ranking-tab-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #050608;
  }

  .ranking-panel-wide {
    width: 100%;
  }

  .titulos-servidor {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 14px 0 0 0;
  }

  @media (max-width: 700px) {
    .titulos-servidor { grid-template-columns: repeat(2, 1fr); }
  }

  .titulo-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 66px;
    padding: 0.6rem 0.5rem;
    background: linear-gradient(160deg, rgba(200,168,75,0.22), rgba(200,168,75,0.06));
    border: 1px solid var(--gold);
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(200,168,75,0.25), inset 0 0 16px rgba(200,168,75,0.06);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
  }

  .titulo-badge:hover {
    background: linear-gradient(160deg, rgba(200,168,75,0.34), rgba(200,168,75,0.1));
    border-color: var(--gold-light);
    box-shadow: 0 0 26px rgba(200,168,75,0.45), inset 0 0 20px rgba(200,168,75,0.1);
    transform: translateY(-2px);
  }

  .titulo-badge-label {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(232,201,106,0.6);
    white-space: nowrap;
  }

  .titulo-badge-nick {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gold-light);
    text-shadow: 0 0 8px rgba(232,201,106,0.5);
  }

  /* Botonera de clases -- solo visible en la pestaña "Top por Clase", uno
     por clase, para elegir cuál listar (no un resumen de 1 sola fila). */
  .ranking-class-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--panel-border);
    border-bottom: 1px solid var(--panel-border);
    background: rgba(255,255,255,0.015);
  }

  .ranking-class-btn {
    padding: 0.4rem 0.85rem;
    background: transparent;
    border: 1px solid rgba(155,89,182,0.3);
    border-radius: 4px;
    color: var(--text-dim);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.15s;
  }

  .ranking-class-btn:hover {
    color: var(--text);
    border-color: rgba(155,89,182,0.6);
  }

  .ranking-class-btn.active {
    background: rgba(155,89,182,0.15);
    border-color: #9b59b6;
    color: #c896e8;
  }

  .ranking-table {
    width: 100%;
    border-collapse: collapse;
  }

  .ranking-table thead th {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--panel-border);
    font-weight: 600;
  }

  .ranking-table tbody tr {
    border-bottom: 1px solid rgba(200,168,75,0.06);
    transition: background 0.15s;
    cursor: pointer;
  }

  .ranking-table tbody tr:hover {
    background: rgba(200,168,75,0.04);
  }

  .ranking-table tbody td {
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
    color: var(--text);
  }

  .rank-pos {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    width: 32px;
    text-align: center;
  }

  .rank-1 { color: #FFD700; }
  .rank-2 { color: #C0C0C0; }
  .rank-3 { color: #CD7F32; }
  .rank-other { color: var(--text-dim); }

  .rank-name {
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
  }

  .rank-class {
    font-size: 0.75rem;
    color: var(--text-dim);
  }

  .rank-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.78rem;
    color: var(--cyan);
    text-align: right;
  }

  /* ───── SHOP ───── */
  #shop {
    background: linear-gradient(180deg, transparent 0%, rgba(0,200,240,0.03) 50%, transparent 100%);
  }

  .shop-filters {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }

  .filter-btn {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    border-radius: 3px;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(200,168,75,0.2);
    color: var(--text-dim);
    transition: all 0.2s;
  }

  .filter-btn:hover, .filter-btn.active {
    background: rgba(200,168,75,0.08);
    border-color: var(--gold-dim);
    color: var(--gold);
  }

  .shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .shop-item {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
  }

  .shop-item:hover {
    border-color: rgba(200,168,75,0.5);
    transform: translateY(-2px);
  }

  .shop-item-img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--panel-border);
    overflow: hidden;
  }

  .item-icon {
    width: 72px; height: 72px;
    position: relative;
    z-index: 1;
  }

  .item-rarity-glow {
    position: absolute;
    width: 80px; height: 80px;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.5;
  }

  .rarity-epic { background: var(--purple); }
  .rarity-legendary { background: #FF8C00; }
  .rarity-rare { background: var(--cyan); }
  .rarity-common { background: var(--text-dim); }

  .item-rarity-badge {
    position: absolute;
    top: 8px; right: 8px;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-weight: 700;
  }

  .rarity-badge-legendary {
    background: rgba(255,140,0,0.15);
    color: #FFA040;
    border: 1px solid rgba(255,140,0,0.3);
  }

  .rarity-badge-epic {
    background: rgba(123,63,212,0.15);
    color: #B080FF;
    border: 1px solid rgba(123,63,212,0.35);
  }

  .rarity-badge-rare {
    background: rgba(0,200,240,0.1);
    color: var(--cyan);
    border: 1px solid rgba(0,200,240,0.25);
  }

  .shop-item-info {
    padding: 0.9rem 1rem;
  }

  .shop-item-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1.3;
  }

  .shop-item-type {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
  }

  .shop-item-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .price-lc {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
  }

  .price-coin-mini {
    width: 16px; height: 16px;
    background: radial-gradient(circle at 35% 35%, #F5D877, #C8A84B 60%, #7A5C1A);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 7px;
    font-weight: 900;
    color: #4A2E08;
    font-family: 'Cinzel', serif;
  }

  .btn-buy-item {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border-radius: 3px;
    border: 1px solid var(--gold-dim);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-buy-item:hover {
    background: rgba(200,168,75,0.1);
  }

  .btn-buy-item.owned,
  .btn-buy-item:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: rgba(138,155,181,0.25);
    color: var(--text-dim);
  }

  .btn-buy-item.owned:hover,
  .btn-buy-item:disabled:hover {
    background: transparent;
  }

  .shop-item-owned-tag {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2ECC71;
    margin-top: 0.35rem;
  }

  /* ───── DESCARGAS ───── */
  #descargas {
    background: rgba(5,10,26,0.5);
    border-top: 1px solid rgba(200,168,75,0.08);
    border-bottom: 1px solid rgba(200,168,75,0.08);
  }

  .download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .download-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .download-icon-wrap {
    width: 56px; height: 56px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
  }

  .dl-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
  }

  .dl-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.55;
  }

  .dl-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .dl-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .dl-meta .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    flex-shrink: 0;
  }

  .btn-download {
    background: linear-gradient(135deg, rgba(0,200,240,0.12), rgba(0,200,240,0.06));
    border: 1px solid rgba(0,200,240,0.3);
    color: var(--cyan);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.65rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
  }

  .btn-download:hover {
    background: rgba(0,200,240,0.15);
    border-color: var(--cyan);
  }

  /* Con una sola tarjeta de descarga, el grid de 3 columnas ya la estira a
     todo el ancho -- pero el layout vertical (pensado para una tarjeta
     angosta) queda con mucho aire de sobra. Se pasa a fila para que se
     sienta como un banner ancho, no una tarjeta perdida. */
  .download-cards-single .download-card {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .download-cards-single .download-card > div:nth-child(2) {
    flex: 1;
    min-width: 220px;
  }

  @media (max-width: 700px) {
    .download-cards-single .download-card {
      flex-direction: column;
      align-items: stretch;
    }
  }

  /* ───── FARM/ALQUIMIA ───── */
  #farm {
    background: linear-gradient(180deg, transparent 0%, rgba(58,26,112,0.08) 50%, transparent 100%);
  }

  .farm-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .farm-tab {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.55rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-dim);
    transition: all 0.2s;
  }

  .farm-tab.active {
    background: rgba(200,168,75,0.1);
    color: var(--gold);
  }

  .farm-table-wrap {
    overflow-x: auto;
  }

  .farm-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
  }

  .farm-table thead th {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--panel-border);
    background: rgba(200,168,75,0.04);
    font-weight: 600;
  }

  .farm-table tbody tr {
    border-bottom: 1px solid rgba(200,168,75,0.06);
    transition: background 0.15s;
  }

  .farm-table tbody tr:hover {
    background: rgba(200,168,75,0.03);
  }

  .farm-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  .farm-item-name {
    font-weight: 600;
    color: var(--text);
  }

  .farm-item-location {
    color: var(--cyan);
    font-size: 0.83rem;
  }

  .farm-item-drop {
    font-family: 'Orbitron', monospace;
    font-size: 0.78rem;
    color: var(--gold);
  }

  .farm-item-tip {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
  }

  /* Contenedor del icono con posición relativa para el cálculo del tooltip */
.info-wrapper {
  position: relative;
  display: inline-block;
  cursor: help;
  border: 1px solid var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--gold);
  font-weight: bold;
}

/* El tooltip ahora no depende de la tabla */
.info-tooltip {
  visibility: hidden;
  position: fixed; /* Esto es clave: se posiciona respecto a la ventana, no a la tabla */
  background: #000;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  width: 250px;
  z-index: 9999;
  font-size: 0.8rem;
  pointer-events: none; /* Para que no parpadee al pasar el mouse */
  box-shadow: 0 0 15px rgba(200, 168, 75, 0.2);
}

.info-wrapper:hover .info-tooltip {
  visibility: visible;
}

  /* ───── FOOTER ───── */
  footer {
    position: relative;
    z-index: 2;
    background: var(--void);
    border-top: 1px solid var(--panel-border);
    padding: 3rem 2rem 2rem;
  }

  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }

  .footer-brand p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-top: 0.75rem;
  }

  .footer-col-title {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
  }

  .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links a {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s;
  }

  .footer-links a:hover { color: var(--gold); }

  .footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(200,168,75,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-dim);
  }

  .online-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .online-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #2ECC71;
    animation: pulse-dot 2s ease-in-out infinite;
  }

  @keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  /* ───── MODAL ───── */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2,4,8,0.85);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .modal-overlay.open {
    display: flex;
  }

  .modal {
    background: #080E20;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: modal-in 0.2s ease-out;
  }

  @keyframes modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }

  .confirm-modal-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border: 3px solid rgba(200,168,75,0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: confirm-modal-spin 0.8s linear infinite;
  }

  @keyframes confirm-modal-spin {
    to { transform: rotate(360deg); }
  }

  .modal-header {
    background: rgba(200,168,75,0.06);
    border-bottom: 1px solid var(--panel-border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .modal-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: uppercase;
  }

  .modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
  }

  .modal-close:hover { color: var(--text); }

  .modal-body {
    padding: 1.75rem 1.5rem;
  }

  .modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--panel-border);
  }

  .modal-tab {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.6rem 1.25rem;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
  }

  .modal-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
  }

  .modal-tab-pane { display: none; }
  .modal-tab-pane.active { display: block; }

  .forgot-link {
    font-size: 0.78rem;
    color: var(--cyan);
    text-decoration: none;
    display: block;
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    transition: opacity 0.15s;
  }

  .forgot-link:hover { opacity: 0.7; }

  .form-error {
    background: rgba(224, 48, 80, 0.1);
    border: 1px solid rgba(224, 48, 80, 0.35);
    color: var(--red);
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
  }

  .form-success {
    background: rgba(111, 220, 122, 0.1);
    border: 1px solid rgba(111, 220, 122, 0.35);
    color: #6fdc7a;
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
  }

  /* ───── BURBUJA FLOTANTE DE DISCORD ───── */
  .discord-bubble {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 500;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 18px rgba(88,101,242,0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: discord-pulse 2.5s ease-in-out infinite;
  }

  .discord-bubble svg {
    width: 28px;
    height: 28px;
  }

  .discord-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(88,101,242,0.7);
    animation-play-state: paused;
  }

  @keyframes discord-pulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(88,101,242,0.5), 0 0 0 0 rgba(88,101,242,0.4); }
    50% { box-shadow: 0 4px 18px rgba(88,101,242,0.5), 0 0 0 10px rgba(88,101,242,0); }
  }

  @media (max-width: 600px) {
    .discord-bubble { width: 48px; height: 48px; right: 16px; bottom: 16px; }
    .discord-bubble svg { width: 24px; height: 24px; }
  }

  /* ───── TOAST ───── */
  .toast-container {
    position: fixed;
    top: 5.5rem;
    right: 1.5rem;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
  }

  .toast {
    background: #0A1428;
    border: 1px solid var(--panel-border);
    border-left: 3px solid var(--gold);
    color: var(--text);
    padding: 0.85rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 340px;
  }

  .toast.show {
    opacity: 1;
    transform: translateX(0);
  }

  .toast-error {
    border-left-color: var(--red);
  }

  /* ───── USER PANEL ───── */
  .user-panel-view {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding-top: 4.25rem;
    background: var(--void);
  }

  .panel-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--panel-border);
  }

  .panel-sidebar-user .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .panel-nav {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }

  .panel-nav-btn {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
  }

  .panel-nav-btn.nav-special,
  .panel-nav-btn.nav-special-gold {
    background: transparent;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
  }

  .panel-nav-btn.nav-special {
    color: var(--cyan);
    border: 1px solid rgba(0,200,240,0.3);
  }

  .panel-nav-btn.nav-special:hover,
  .panel-nav-btn.nav-special.active {
    background: rgba(0,200,240,0.08);
    color: var(--cyan);
    border-color: rgba(0,200,240,0.5);
  }

  .panel-nav-btn.nav-special-gold {
    color: var(--gold-light);
    border: 1px solid rgba(240, 212, 0, 0.999);
  }

  .panel-nav-btn.nav-special-gold:hover,
  .panel-nav-btn.nav-special-gold.active {
    background: rgba(200,168,75,0.1);
    color: var(--gold-light);
  }

  .panel-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    max-width: 1280px;
    margin: 0 auto;
    gap: 0;
    min-height: calc(100vh - 4.5rem);
  }

  .panel-sidebar {
    border-right: 1px solid var(--panel-border);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .panel-sidebar-title {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0.5rem 0.75rem 0.25rem;
    font-weight: 600;
  }

  .panel-sidebar-divider {
    height: 1px;
    background: var(--panel-border);
    margin: 0.75rem 0;
  }

  .panel-sidebar-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
  }

  .panel-sidebar-btn:hover {
    color: var(--text);
    background: rgba(200,168,75,0.06);
  }

  .panel-sidebar-btn.active {
    color: var(--gold);
    background: rgba(200,168,75,0.1);
    border-left: 2px solid var(--gold);
  }

  .panel-main {
    padding: 2rem;
    overflow-y: auto;
  }

  .panel-section {
    display: none;
  }

  .panel-section.active {
    display: block;
    animation: panel-fade 0.2s ease-out;
  }

  @keyframes panel-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .panel-section-header {
    margin-bottom: 1.75rem;
  }

  .panel-section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
  }

  .panel-section-desc {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin-top: 0.35rem;
  }

  .panel-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .panel-stat-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 1.1rem 1.25rem;
  }

  .panel-stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
  }

  .panel-stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
  }

  .panel-stat-value.gold { color: var(--gold); }
  .panel-stat-value.cyan { color: var(--cyan); }
  .panel-stat-value.small { font-size: 0.95rem; font-family: 'Rajdhani', sans-serif; font-weight: 600; }

  .characters-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .character-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.25rem;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
  }

  .character-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-dim));
    border: 2px solid var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--gold);
  }

  .character-card-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: var(--gold);
    font-size: 1rem;
  }

  .character-card-class {
    font-size: 0.8rem;
    color: var(--cyan);
    margin-top: 2px;
  }

  .character-card-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-dim);
  }

  .character-card-stats strong {
    display: block;
    color: var(--text);
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
  }

  .character-status {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(138,155,181,0.2);
    border-radius: 20px;
  }

  .character-status.online {
    color: #2ECC71;
    border-color: rgba(46,204,113,0.35);
  }

  .character-status-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
  }

  .btn-unstuck {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: #e74c3c;
    background: rgba(231,76,60,0.08);
    border: 1px solid rgba(231,76,60,0.35);
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  .btn-unstuck:hover {
    background: rgba(231,76,60,0.2);
  }

  .btn-unstuck:disabled {
    opacity: 0.5;
    cursor: default;
  }

  .activity-list {
    padding: 0.5rem 0;
  }

  .activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(200,168,75,0.08);
  }

  .activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: 6px;
    flex-shrink: 0;
  }

  .activity-action {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
  }

  .activity-date {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 2px;
  }

  .panel-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .recipe-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .recipe-materials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .recipe-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: rgba(0,200,240,0.08);
    border: 1px solid rgba(0,200,240,0.2);
    border-radius: 4px;
    color: var(--cyan);
  }

  .shop-balance-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 280px;
  }

  .shop-grid-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .shop-item-mini {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .shop-item-mini-name {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--gold);
    font-size: 0.95rem;
  }

  .shop-item-mini-price {
    font-family: 'Orbitron', monospace;
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 700;
  }

  /* ───── RESPONSIVE ───── */
  @media (max-width: 900px) {
    .login-grid { grid-template-columns: 1fr; }
    .ranking-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .panel-layout { grid-template-columns: 1fr; }
    .panel-sidebar {
      flex-direction: row;
      flex-wrap: wrap;
      border-right: none;
      border-bottom: 1px solid var(--panel-border);
      padding: 0.75rem;
    }
    .panel-sidebar-title, .panel-sidebar-divider { display: none; }
    .panel-stats-grid { grid-template-columns: 1fr 1fr; }
    .panel-grid-2, .shop-grid-mini { grid-template-columns: 1fr; }
    #panel-shop-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .character-card { grid-template-columns: auto 1fr; }
    .character-card-stats, .character-status-wrap { display: none; }
    .hero-stats { gap: 1.5rem; }

    .panel-main { padding: 1.25rem; }
    .panel-nav-scroll { justify-content: flex-start; }
  }

  @media (max-width: 768px) {
    /* --- Nav principal: hamburguesa en vez de todos los links sueltos --- */
    #site-nav.site-nav { justify-content: space-between; padding: 0.6rem 1rem 0.6rem 3.25rem; }
    .nav-hamburger { display: flex; }

    .nav-links {
      position: fixed;
      top: 4.25rem;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      background: rgba(2, 4, 8, 0.97);
      border-bottom: 1px solid var(--panel-border);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.25s ease;
    }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 0.9rem 1.5rem; text-align: center; }

    #site-nav.mobile-nav-open .nav-links { max-height: 70vh; overflow-y: auto; }

    .nav-right { position: static; right: auto; gap: 0.5rem; margin-left: auto; }
    .nav-right .btn-login, .nav-right .btn-register { padding: 0.4rem 0.7rem; font-size: 0.72rem; }

    /* --- Hero: apilado en vez de lado a lado --- */
    .hero-content { padding: 1.5rem 1.25rem; }
    .hero-content-flex { flex-direction: column; gap: 1.25rem; }
    .hero-logo-container { width: min(200px, 60vw); }
    .hero-logo-container img { width: 100%; max-width: 100%; height: auto; flex: none; }

    /* --- Tabs del panel: scroll horizontal --- */
    .panel-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
    .panel-nav .panel-section-fp { margin-left: 1rem; white-space: nowrap; }

    .alchemy-grid { grid-template-columns: 1fr; }

    /* --- Inventario: menos columnas, slots más grandes y tocables --- */
    .inv-grid { grid-template-columns: repeat(5, 1fr) !important; }

    /* --- Casino / Shop / Goblin: una columna cómoda en mobile --- */
    .casino-grid { grid-template-columns: 1fr; }

    /* --- Botones de ícono del admin: un poco más grandes para el dedo --- */
    .admin-icon-btn { width: 38px; height: 38px; font-size: 1.1rem; }
    .admin-table { font-size: 0.75rem; }
  }

  @media (max-width: 600px) {
    .footer-inner { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .casino-card { padding: 14px; }
    .admin-search-row { flex-direction: column; align-items: stretch; }
    .admin-search-row .admin-input { min-width: 0; }
  }


  .inv-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr); /* 10 columnas */
    gap: 3px;
    background: #111;
    padding: 5px;
    border: 1px solid #333;
}
.slot {
    aspect-ratio: 1/1;
    background: #222;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

/* Distintivo de origen del ítem dentro del inventario web: "WEB" para lo que
   hoy es puramente cosmético (todo lo que sale de alquimia), "JUEGO" para
   cuando se agreguen ítems que sí se puedan usar dentro del juego. */
.item-badge {
    position: absolute;
    top: 1px;
    left: 1px;
    font-size: 7px;
    font-weight: bold;
    line-height: 1;
    padding: 2px 3px;
    border-radius: 3px;
    z-index: 2;
    letter-spacing: 0.3px;
}
.item-badge-web {
    background: rgba(212, 175, 55, 0.9);
    color: #000;
}
.item-badge-game {
    background: rgba(46, 204, 113, 0.9);
    color: #000;
}

#panel-goblin .shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  padding: 20px;
}

#panel-goblin .shop-item {
  background: #1a1520; /* Color oscuro con tono violeta */
  border: 1px solid #7d3c98; /* Borde estilo "Goblin/Clandestino" */
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.shop-item-price-goblin {
  color: #ffd700;
  font-weight: bold;
  margin-top: 10px;
}

#goblin-tooltip {
  position: fixed;
  background: rgba(20, 20, 25, 0.95);
  border: 1px solid #d4af37;
  color: white;
  padding: 15px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 1000;
  text-align: center;
  width: 200px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  display: none;
}

#grid-juego {
  display: grid;
  grid-template-columns: repeat(8, 1fr); /* Esto fuerza las 8 columnas */
  gap: 5px; /* Ajusta a tu gusto */
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr); /* 8 columnas fijas */
  gap: 5px;
  background: rgba(0,0,0,0.3);
  padding: 10px;
  border: 1px solid #444;
}

/* Fila de Kinah debajo de cada grilla -- igual que en el cliente del juego,
   nunca como un slot más de la grilla. */
.inv-kinah-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid #444;
  border-top: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e8d27a;
}

.inv-kinah-row img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.alchemy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Tabs superiores del panel (Farm/Alquimia/Goblin/...) como carrusel
   horizontal en mobile en vez de amontonarse en varias líneas. */
.panel-nav-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}

/* Contenedores de tablas que se generan por JS (admin.js) -- si la tabla es
   más ancha que la pantalla, que se banque solo ese bloque, no toda la
   página. */
#admin-accounts-results,
#admin-alchemy-table,
#admin-goblin-table,
#admin-shop-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ───── ADMINISTRACIÓN ───── */
.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.admin-subtab-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.admin-subtab-btn.active {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(200,168,75,0.12);
}

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-search-row .admin-input {
  flex: 1;
  min-width: 200px;
}

.admin-input {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--gold-dim);
  background: rgba(0,0,0,0.3);
  color: var(--text);
  outline: none;
}

.admin-input:focus {
  border-color: var(--gold);
}

.admin-input-symbol {
  width: 50px;
  text-align: center;
  font-size: 1.2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table th {
  text-align: center;
  color: var(--gold-light);
  font-weight: 700;
  padding: 8px;
  border-bottom: 1px solid var(--panel-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(200,168,75,0.1);
  vertical-align: middle;
  text-align: center;
}

.admin-table input.admin-input,
.admin-table select.admin-input {
  width: 100%;
  min-width: 70px;
  text-align: center;
}

.admin-table input.admin-input-narrow {
  width: 65px;
  min-width: 65px;
}

.admin-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
}

.admin-remove-btn {
  background: rgba(224,48,80,0.12);
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: 4px;
}

.admin-hint {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 10px 0;
}

.admin-error {
  color: var(--red);
  font-size: 0.85rem;
  margin: 10px 0;
}

.admin-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--gold-dim);
  background: rgba(200,168,75,0.08);
  color: var(--gold-light);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  margin: 2px;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.admin-icon-btn:hover {
  border-color: var(--gold);
  background: rgba(200,168,75,0.18);
  transform: translateY(-1px);
}

.admin-icon-btn-danger {
  border-color: rgba(224,48,80,0.5);
  background: rgba(224,48,80,0.1);
}

.admin-icon-btn-danger:hover {
  border-color: var(--red);
  background: rgba(224,48,80,0.2);
}

.admin-icon-btn-lg {
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
}

.admin-casino-payouts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.admin-casino-payouts label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.admin-add-form {
  background: rgba(20,20,25,0.9);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.admin-file-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.admin-launcher-carousel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.admin-launcher-slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(20,20,25,0.9);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: 12px;
}

.admin-launcher-slot-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.admin-launcher-slot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 720px) {
  .admin-launcher-carousel-grid { grid-template-columns: 1fr; }
}

.admin-chars-box {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px;
  margin: 4px 0 12px;
}

/* ───── GOBLIN CASINO ───── */
.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.casino-card {
  background: rgba(20, 20, 25, 0.9);
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.casino-card-title {
  color: var(--gold-light);
  font-size: 1.05rem;
  margin: 0;
}

.casino-card-desc {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin: 0 0 4px;
  line-height: 1.4;
}

.casino-visual {
  font-size: 2.6rem;
  line-height: 1;
  margin: 6px 0;
}

.casino-slots-visual {
  display: flex;
  gap: 10px;
  font-size: 2rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  padding: 10px 16px;
}

@keyframes casino-spin {
  to { transform: rotate(360deg); }
}
.casino-spin {
  display: inline-block;
  animation: casino-spin 0.5s linear infinite;
}

/* Spinner genérico para estados de carga en modales (ver mostrarLoadingTraslado en bodega.js) */
.spinner-ring {
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(200,168,75,0.25);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: casino-spin 0.8s linear infinite;
}

.casino-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.casino-choice-btn,
.casino-currency-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.casino-choice-btn.active,
.casino-currency-btn.active {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(200,168,75,0.12);
}

.casino-currency-btn[data-currency="lc"].active {
  color: var(--cyan);
  border-color: var(--cyan-dim);
  background: rgba(0,200,240,0.1);
}

.casino-bet-input {
  width: 110px;
  height: 38px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: rgba(0,0,0,0.35);
  color: var(--gold-light);
  outline: none;
}

.casino-play-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
}

.casino-result {
  min-height: 1.2em;
  font-size: 0.85rem;
  font-weight: 700;
}

.slot {
  width: 40px; /* Ajusta según el tamaño de tu interfaz */
  height: 40px;
  background: #1a1a1a;
  border: 1px solid #333;
  position: relative; /* Para que el contador se posicione bien */
}

/* ═══════ MARKET — estética calcada del Broker real del juego ═══════
   Ventana azul-marino compacta, pestañas pegadas arriba del panel,
   filas alternadas, ícono con marco de color según rareza y una
   "moneda" antes del precio. Ver market.js para RARITY_COLORS. */

.broker-tabs {
  display: flex;
  gap: 2px;
}

.broker-tab-btn {
  padding: 9px 24px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(5,10,20,0.6);
  color: var(--text-dim);
  border: 1px solid rgba(200,168,75,0.2);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  top: 1px;
}

.broker-tab-btn.active {
  background: var(--panel);
  color: var(--gold-light);
  border-color: rgba(200,168,75,0.5);
  box-shadow: inset 0 2px 0 var(--gold);
}

.broker-tab-btn:not(.active):hover {
  color: var(--text);
  background: rgba(200,168,75,0.08);
}

.broker-window {
  background: linear-gradient(180deg, rgba(8,13,26,0.97), rgba(4,7,15,0.98));
  border: 1px solid rgba(200,168,75,0.35);
  border-radius: 0 6px 6px 6px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4) inset, 0 10px 28px rgba(0,0,0,0.5);
  overflow: hidden;
}

.broker-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(200,168,75,0.18);
  background: rgba(200,168,75,0.03);
}

.broker-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Rajdhani', sans-serif;
}

.broker-table thead th {
  background: rgba(200,168,75,0.07);
  color: var(--gold-dim);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(200,168,75,0.25);
  font-weight: 700;
}

.broker-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.12s;
}

.broker-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.015);
}

.broker-table tbody tr:hover {
  background: rgba(200,168,75,0.07);
}

.broker-table td {
  padding: 9px 16px;
  font-size: 0.9rem;
  color: var(--text);
  vertical-align: middle;
}

.broker-item-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.broker-icon-frame {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 6px 0 rgba(0,0,0,0);
  flex-shrink: 0;
  overflow: hidden;
}

.broker-icon-frame img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.broker-coin {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
  box-shadow: inset -1px -1px 2px rgba(0,0,0,0.5), 0 0 3px rgba(0,0,0,0.4);
}

.broker-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  border-top: 1px solid rgba(200,168,75,0.18);
  background: rgba(0,0,0,0.2);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.broker-refresh-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  border: 1px solid rgba(200,168,75,0.35);
  background: transparent;
  color: var(--gold-dim);
  cursor: pointer;
  transition: all 0.15s;
}

.broker-refresh-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(200,168,75,0.08);
}

/* Mismo molde que broker-refresh-btn (forma, tipografía, padding) pero en
   rojo -- para que "Cancelar" se sienta parte de la misma familia visual
   en vez de un botón suelto con otro estilo. */
.broker-cancel-btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  border: 1px solid rgba(224,48,80,0.4);
  background: transparent;
  color: var(--red);
  cursor: pointer;
  transition: all 0.15s;
}

.broker-cancel-btn:hover {
  border-color: var(--red);
  color: #fff;
  background: rgba(224,48,80,0.15);
}

/* El <select> nativo del navegador ignora el tema oscuro del sitio y
   dibuja su propio menú desplegable con fondo claro -- si no se fuerza el
   color de las <option>, quedan en texto claro sobre fondo claro
   (invisibles hasta seleccionarlas). */
select option {
  color: #111;
  background: #fff;
}

/* Árbol de categorías del sidebar -- calca el panel "Category" del broker
   real (Weapon > Sword/Polearm/..., Armor > Cloth > Jacket/..., etc). */
.broker-sidebar {
  width: 190px;
  flex-shrink: 0;
  border-right: 1px solid rgba(200,168,75,0.18);
  padding: 8px 0;
  max-height: 460px;
  overflow-y: auto;
}

.broker-main {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

/* Scroll dorado a tono con el resto del panel, en vez de la barra gris del
   sistema -- Firefox vía scrollbar-color, Chrome/Edge/Safari vía
   ::-webkit-scrollbar. */
.broker-sidebar,
.broker-main {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) rgba(0,0,0,0.3);
}

.broker-sidebar::-webkit-scrollbar,
.broker-main::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.broker-sidebar::-webkit-scrollbar-track,
.broker-main::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.3);
}

.broker-sidebar::-webkit-scrollbar-thumb,
.broker-main::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 4px;
}

.broker-sidebar::-webkit-scrollbar-thumb:hover,
.broker-main::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.broker-cat-all {
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(200,168,75,0.12);
  margin-bottom: 4px;
  transition: color 0.15s;
}

.broker-cat-all:hover { color: var(--text); }
.broker-cat-all.active { color: var(--gold-light); }

.broker-cat-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.broker-cat-group-header:hover { color: var(--text); }
.broker-cat-group-header.active-group { color: var(--gold-light); }

.broker-cat-toggle {
  font-size: 0.6rem;
  width: 10px;
  display: inline-block;
  transition: transform 0.15s;
  color: var(--gold-dim);
}

.broker-cat-toggle.collapsed { transform: rotate(-90deg); }

.broker-cat-leaf {
  padding: 6px 16px 6px 32px;
  font-size: 0.76rem;
  color: var(--text-dim);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.12s;
}

.broker-cat-leaf:hover { color: var(--text); background: rgba(200,168,75,0.05); }
.broker-cat-leaf.active {
  color: var(--gold-light);
  background: rgba(200,168,75,0.1);
  border-left-color: var(--gold);
}

/* Rama del árbol sin nada publicado ahora mismo -- se mantiene visible
   (la jerarquía siempre aparece entera) pero atenuada, como en el broker
   real cuando filtrás una categoría vacía. */
.broker-cat-leaf.empty { opacity: 0.45; }
.broker-cat-leaf.empty.active { opacity: 0.75; }

@media (max-width: 640px) {
  .broker-body { flex-direction: column; }
  .broker-sidebar {
    width: 100%;
    max-height: 150px;
    border-right: none;
    border-bottom: 1px solid rgba(200,168,75,0.18);
  }
}

/* ───── PANEL DE EQUIPO DEL PERFIL (imagen real del panel de Aion) ───── */
/* La imagen (img/gear-panel.png) es el panel de equipo real del juego, con
   el personaje del medio borrado. Los íconos de cada ítem se posicionan
   encima por porcentaje (medidos a mano contra la imagen, ver
   GEAR_PANEL_SLOTS en js.js). El resumen de stats va AL LADO de la
   imagen (no adentro), en su propia columna. */
.perfil-gear-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: center;
}

.perfil-gear-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.perfil-gear-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 253 / 369;
}

.perfil-gear-panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.perfil-gear-slot {
  position: absolute;
  width: 12%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 4px;
}

.perfil-gear-slot-filled {
  cursor: help;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(200,168,75,0.6);
  box-shadow: 0 0 6px 0 rgba(200,168,75,0.35);
}

.perfil-gear-slot-filled img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.perfil-gear-enchant {
  position: absolute;
  right: -4px;
  bottom: -4px;
  background: var(--gold);
  color: #050608;
  font-family: 'Orbitron', monospace;
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1;
  padding: 1px 3px;
  border-radius: 3px;
}

.perfil-gear-stats-col {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 0.85rem;
}

.perfil-gear-stats-nota {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(200,168,75,0.25);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.4;
}

.perfil-gear-titulo {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 0.85rem;
}

/* ───── ENCABEZADO DEL PERFIL (clase/raza/nivel + chips) ───── */
.perfil-header-band {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-top: 0.85rem;
}

.perfil-header-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.perfil-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* Título del modal de perfil (nombre del personaje) -- más grande que el
   resto de los modales del sitio, y con lugar para el puntito online/
   offline al lado sin que se desalinee. */
#perfil-modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  /* .modal-title (heredado) usa Cinzel + uppercase -- bien para titulos
     genericos ("Confirmar", "Acceso de Cuenta"), pero este titulo muestra el
     nombre REAL del personaje y tiene que respetar mayus/minus tal cual. */
  font-family: 'Rajdhani', sans-serif;
  text-transform: none;
}

.perfil-header-class {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-light);
}

.perfil-header-race {
  font-weight: 600;
  font-size: 0.85rem;
}

.perfil-header-level {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.perfil-header-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.perfil-chip {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
}

/* ───── VIPs: tabla comparativa + tarjetas de precio ───── */
.vips-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--panel);
}

.vips-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.vips-table thead th {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255,255,255,0.03);
}

.vips-th-icon {
  font-size: 1rem;
  margin-right: 0.35rem;
}

.vips-th-benefit {
  text-align: left !important;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.vips-th-regular { color: var(--cyan); border-bottom: 2px solid var(--cyan); }
.vips-th-premium { color: var(--gold-light); border-bottom: 2px solid var(--gold-light); }
.vips-th-vip { color: #c896e8; border-bottom: 2px solid #c896e8; }
.vips-th-benefit { border-bottom: 2px solid var(--panel-border); }

.vips-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.015);
}

.vips-table tbody tr:hover {
  background: rgba(200,168,75,0.06);
}

.vips-table tbody td {
  padding: 0.55rem 1rem;
  font-size: 0.98rem;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.vips-table tbody td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
  white-space: normal;
}

.vips-chip {
  display: inline-block;
  min-width: 2.4em;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0,200,240,0.1);
}

.vips-chip-premium {
  color: var(--gold-light);
  background: rgba(232,201,106,0.12);
}

.vips-chip-vip {
  color: #c896e8;
  background: rgba(155,89,182,0.14);
}

.vips-chip-off {
  color: var(--text-dim);
  background: transparent;
  font-weight: 500;
}

.vips-table-footnote {
  text-align: center;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

.vips-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.vips-price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, border-color 0.2s;
}

.vips-price-card:hover {
  transform: translateY(-3px);
}

.vips-price-card-premium {
  border-color: rgba(232, 201, 106, 0.45);
}

.vips-price-card-vip {
  border-color: rgba(155, 89, 182, 0.55);
  background: linear-gradient(180deg, rgba(123,63,212,0.08), var(--panel) 60%);
}

.vips-price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-light);
  color: #1a1406;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
}

.vips-price-badge-vip {
  background: #9b59b6;
  color: #fff;
}

.vips-price-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.vips-price-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.vips-price-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.vips-price-tag span {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

.vips-price-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  min-height: 3.4em;
}

.vips-price-cta {
  display: inline-block;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  color: #04202a;
  transition: filter 0.15s;
}

.vips-price-cta:hover {
  filter: brightness(1.15);
}

.vips-price-card-vip .vips-price-cta {
  background: linear-gradient(90deg, #6b3aa0, #9b59b6);
  color: #fff;
}

.vips-price-cta-static {
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  cursor: default;
}

.vips-price-cta-static:hover {
  filter: none;
}

@media (max-width: 700px) {
  .vips-pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ───── Contenido Progresivo: roadmap PvE + PvP ───── */
.progressive-timeline-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

.progressive-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 0.85rem;
  min-width: 950px;
}

.progressive-step {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 1rem;
}

.progressive-month {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #04202a;
  background: var(--cyan);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.55rem;
}

.progressive-level {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
}

.progressive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.progressive-list li {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.45;
  padding-left: 0.95rem;
  position: relative;
}

.progressive-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.progressive-divider {
  height: 1px;
  background: var(--panel-border);
  margin: 1.5rem 0 1.15rem;
}
/* ─── FARMING KING (pestaña del ranking) ─── */
.ranking-tab-fking { border-color: rgba(200,168,75,0.45); color: var(--gold-light); }
.fk-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1rem; align-items: start; }
.fk-layout[hidden] { display: none; }
@media (max-width: 980px) { .fk-layout { grid-template-columns: 1fr; } }
.fk-box, .fk-main { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 8px; }
.fk-box { padding: 1rem; }
.fk-box-title, .fk-main-title { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text); }
.fk-label { margin: 1rem 0 0.6rem; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.fk-step { display: flex; gap: 0.6rem; margin-bottom: 0.7rem; }
.fk-step strong { display: block; font-size: 0.82rem; color: var(--text); }
.fk-step small { display: block; font-size: 0.72rem; color: var(--text-dim); line-height: 1.35; }
.fk-step-n { flex: 0 0 auto; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold-dim); border-radius: 4px; background: rgba(200,168,75,0.12); color: var(--gold-light); font-size: 0.65rem; font-weight: 700; }
.fk-objs { margin: 0 0 0.8rem 2rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; background: rgba(0,0,0,0.25); }
.fk-obj { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.45rem 0.7rem; font-size: 0.76rem; color: var(--text); border-bottom: 1px solid rgba(255,255,255,0.05); }
.fk-obj:last-child { border-bottom: 0; }
.fk-obj b { color: var(--gold-light); white-space: nowrap; }
.fk-reward { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem; border: 1px solid var(--gold-dim); border-radius: 6px; background: rgba(200,168,75,0.07); }
.fk-reward img { width: 40px; height: 40px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.4); }
.fk-reward strong { display: block; font-size: 0.85rem; color: var(--gold-light); }
.fk-reward small { display: block; font-size: 0.7rem; color: var(--text-dim); }
.fk-note { margin-top: 0.6rem; font-size: 0.72rem; color: var(--text-dim); line-height: 1.4; }
.fk-note code { color: var(--gold-light); background: rgba(0,0,0,0.35); padding: 0 4px; border-radius: 3px; }
.fk-score div { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.76rem; color: var(--text-dim); margin-bottom: 0.3rem; }
.fk-score b { min-width: 44px; font-family: 'Orbitron', sans-serif; font-size: 0.85rem; }
.fk-weekly { margin-top: 1rem; padding: 0.8rem; border: 1px solid rgba(200,168,75,0.45); border-radius: 6px; background: linear-gradient(180deg, rgba(200,168,75,0.10), rgba(0,0,0,0.2)); }
.fk-weekly-title { margin-bottom: 0.6rem; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); }
.fk-choices { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0.6rem; }
.fk-choices img { width: 30px; height: 30px; border-radius: 4px; border: 1px solid rgba(240,183,28,0.6); background: rgba(0,0,0,0.4); }
.fk-lastking { margin-top: 0.8rem; font-size: 0.75rem; color: var(--text-dim); text-align: center; }
.fk-lastking strong { color: var(--gold-light); }
.fk-main-head { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.fk-count { font-size: 0.72rem; color: var(--text-dim); }
.fk-toolbar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 0.6rem; padding: 0.8rem 1rem; }
.fk-search { flex: 0 1 360px; }
.fk-search label { display: block; margin-bottom: 0.35rem; font-size: 0.72rem; color: var(--text-dim); }
.fk-search input { width: 100%; padding: 0.55rem 0.75rem; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; color: var(--text); font-size: 0.8rem; box-sizing: border-box; }
.fk-search input:focus { outline: none; border-color: var(--gold-dim); }
.fk-hint { font-size: 0.68rem; color: var(--text-dim); }
.fk-table-wrap { overflow-x: auto; }
.fk-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.fk-table thead th { padding: 0.6rem 0.7rem; text-align: left; font-family: 'Rajdhani', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.fk-table tbody td { padding: 0.55rem 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
.fk-table tbody tr { cursor: pointer; transition: background 0.15s; }
.fk-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.fk-table tbody tr.fk-first { background: linear-gradient(90deg, rgba(200,168,75,0.14), transparent 70%); }
.fk-pos { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.15); border-radius: 5px; font-size: 0.7rem; font-weight: 700; color: var(--text-dim); }
.fk-pos.fk-pos-1 { background: var(--gold); border-color: var(--gold-light); color: #050608; font-size: 0.9rem; }
.fk-pos.fk-pos-2 { border-color: #c0c0c0; color: #e0e0e0; }
.fk-pos.fk-pos-3 { border-color: #cd7f32; color: #e3a36b; }
.fk-char { display: flex; align-items: center; gap: 0.6rem; }
.fk-avatar { width: 32px; height: 32px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 0.7rem; font-weight: 700; }
.fk-avatar.elyos { background: rgba(74,144,226,0.18); border: 1px solid rgba(74,144,226,0.6); color: #8cbcf0; }
.fk-avatar.asmodians { background: rgba(155,89,182,0.18); border: 1px solid rgba(155,89,182,0.6); color: #c99be0; }
.fk-name { font-weight: 700; font-size: 0.85rem; color: var(--text); }
.fk-sub { font-size: 0.68rem; color: var(--text-dim); }
.fk-sub .fk-online { color: #2ecc71; }
.fk-missions { color: var(--cyan); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.fk-deaths { color: var(--red); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.fk-progress { display: grid; grid-template-columns: repeat(var(--fk-n, 4), minmax(110px, 1fr)); gap: 6px; }
.fk-bar { padding: 0.35rem 0.5rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 5px; background: rgba(0,0,0,0.25); }
.fk-bar-top { display: flex; justify-content: space-between; gap: 0.4rem; font-size: 0.64rem; color: var(--text); margin-bottom: 0.3rem; white-space: nowrap; }
.fk-bar-top span:first-child { overflow: hidden; text-overflow: ellipsis; }
.fk-bar-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.fk-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold-light)); }
.fk-bar.done .fk-bar-fill { background: #2ecc71; }
.fk-points { text-align: right; }
.fk-points b { display: block; font-family: 'Orbitron', sans-serif; font-size: 1rem; color: var(--gold-light); }
.fk-points small { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--text-dim); }
.fk-empty { text-align: center; padding: 1.5rem !important; color: var(--text-dim); }
.fk-avatar img { width: 28px; height: 28px; display: block; filter: drop-shadow(0 0 2px rgba(0,0,0,0.6)); }


/* ─── BUY LC ─── */
.panel-nav-btn.nav-buy-lc { background: linear-gradient(135deg, rgba(200,168,75,0.25), rgba(232,201,106,0.08)); }
.buylc-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.buylc-step { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-dim); }
.buylc-step-n { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold-dim); border-radius: 50%; color: var(--gold-light); font-weight: 700; font-size: 0.75rem; }
.buylc-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.buylc-plan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 12px 14px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; color: var(--text); cursor: pointer; font: inherit; transition: border-color 0.15s, transform 0.15s; }
.buylc-plan:hover { border-color: var(--gold); transform: translateY(-2px); }
.buylc-plan.selected { border-color: var(--gold-light); box-shadow: 0 0 0 1px var(--gold-light), 0 0 18px rgba(232,201,106,0.25); }
.buylc-plan:focus-visible, .buylc-method:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.buylc-bonus { position: absolute; top: -10px; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: #050608; font-size: 0.7rem; font-weight: 700; }
.buylc-plan-name { font-family: 'Cinzel', serif; color: var(--gold-light); font-size: 0.95rem; }
.buylc-plan-lc { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.buylc-plan-lc small { font-size: 0.8rem; color: var(--text-dim); }
.buylc-plan-usd { font-size: 1rem; color: var(--cyan); font-weight: 700; }
.buylc-plan-ars { font-size: 0.75rem; color: var(--text-dim); }
.buylc-checkout { display: grid; gap: 14px; padding: 18px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; margin-bottom: 22px; }
.buylc-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.buylc-method { padding: 8px 16px; border-radius: 6px; border: 1px solid var(--panel-border); background: rgba(255,255,255,0.03); color: var(--text-dim); font: inherit; font-weight: 700; cursor: pointer; }
.buylc-method.selected { border-color: var(--cyan); color: var(--cyan); background: rgba(0,200,240,0.08); }
.buylc-pay { display: grid; gap: 8px; }
.buylc-pay-amount { color: var(--text); }
.buylc-pay-amount strong { color: var(--gold-light); }
.buylc-pay-details { margin: 0; padding: 12px; background: rgba(0,0,0,0.35); border: 1px dashed var(--panel-border); border-radius: 6px; color: var(--text); font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.85rem; white-space: pre-wrap; word-break: break-word; }
.buylc-copy { justify-self: start; padding: 4px 12px; border-radius: 4px; border: 1px solid var(--panel-border); background: transparent; color: var(--text-dim); cursor: pointer; font: inherit; font-size: 0.8rem; }
.buylc-form { display: grid; gap: 8px; max-width: 560px; }
.buylc-form label { font-size: 0.8rem; color: var(--text-dim); }
.buylc-form .btn-download { justify-self: start; margin-top: 6px; }
.buylc-msg { min-height: 1.2em; font-size: 0.85rem; }
.buylc-msg.ok { color: #2ecc71; }
.buylc-msg.error { color: var(--red); }
.buylc-subtitle { font-family: 'Cinzel', serif; color: var(--gold-light); font-size: 1rem; margin: 6px 0 10px; }
.buylc-table-wrap { overflow-x: auto; }
.buylc-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 620px; }
.buylc-table th, .buylc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); vertical-align: top; }
.buylc-table th { color: var(--text-dim); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.buylc-table small { color: var(--text-dim); }
.buylc-status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.buylc-status.pending { background: rgba(240,196,25,0.15); color: #f0c419; }
.buylc-status.approved { background: rgba(46,204,113,0.15); color: #2ecc71; }
.buylc-status.rejected { background: rgba(224,48,80,0.15); color: var(--red); }
