/* ==========================================================================
   RL Points | Reboot — Estilos del Portal de Recompensas y Ruletas
   Continuidad 1:1 con _ref_ui/global.css y _ref_ui/rl-points.css
   ========================================================================== */

:root {
  --super-gold: #FFB703;
  --super-gold-soft: rgba(255, 183, 3, 0.16);
  --danger-neon: #FF4D6D;
  --danger-soft: rgba(255, 77, 109, 0.14);
  --warn-amber: #FFAA00;
  --warn-soft: rgba(255, 170, 0, 0.14);
}

/* Atmósfera Premium cuando la Super Ruleta está seleccionada */
body.theme-super .rl-bg-layer {
  background:
    radial-gradient(ellipse 64% 48% at 50% 6%, rgba(181, 23, 158, 0.24) 0%, transparent 66%),
    radial-gradient(ellipse 48% 40% at 84% 32%, rgba(255, 183, 3, 0.11) 0%, transparent 66%),
    radial-gradient(ellipse 52% 45% at 14% 72%, rgba(157, 78, 221, 0.2) 0%, transparent 68%),
    radial-gradient(ellipse 60% 35% at 50% 96%, rgba(0, 245, 212, 0.08) 0%, transparent 70%),
    var(--bg-deep);
}

/* Utilidad de ocultamiento limpio */
.is-hidden {
  display: none !important;
}

/* ==========================================================================
   Corrección de Espaciado Tipográfico y Kerning (Botones, Badges y Modales)
   ========================================================================== */
.rl-btn-primary,
.rl-nav-cta,
.rlp-btn-secondary,
.rlp-icon-btn,
.rlp-history-wa-btn,
.rlp-convert-p-btn,
.rlp-badge,
.rlp-sp-p-tag,
.rlp-super-ready-pill,
.rlp-super-p-lock-tag,
.rlp-mode-tab__status,
.rlp-modal__eyebrow,
.rlp-modal__title,
.rlp-modal__desc,
.rlp-display-title {
  font-kerning: normal;
  font-variant-ligatures: none;
  word-spacing: 0.1em;
}

.rlp-modal__title,
.rlp-modal__eyebrow,
.rlp-mode-tab__title,
.rlp-accordion__title,
.rlp-control-title,
.rlp-access-title {
  word-spacing: 0.16em;
  letter-spacing: 0.04em;
}

.rlp-btn-secondary,
.rlp-history-wa-btn,
.rlp-badge,
.rlp-sp-p-tag {
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Navbar Adaptada al Portal RL Points
   ========================================================================== */
.rl-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.rl-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  background: rgba(19, 19, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.24s var(--ease-out);
  white-space: nowrap;
}

.rl-nav-back:hover {
  color: var(--text-primary);
  border-color: var(--border-cyan);
  background: rgba(0, 245, 212, 0.08);
  transform: translateY(-1px);
}

.rl-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(157, 78, 221, 0.16);
  border: 1px solid rgba(157, 78, 221, 0.42);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #E9D5FF;
  white-space: nowrap;
}

.rl-nav-badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ==========================================================================
   Sección Principal & Transición de Vistas
   ========================================================================== */
.rlp-portal-section {
  padding: clamp(26px, 4vh, 48px) 0 clamp(60px, 8vh, 96px);
}

.rlp-view {
  animation: rlpViewEnter 0.45s var(--ease-out) both;
}

@keyframes rlpViewEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ==========================================================================
   Vista 1: Pantalla de Acceso por ID Único
   ========================================================================== */
.rlp-access-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(28px, 4.5vw, 60px);
  min-height: calc(100vh - var(--nav-height) - 210px);
}

/* Escenario Token 3D (heredado de _ref_ui/rl-points.css) */
.rlp-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(300px, 36vw, 420px);
}

.rlp-stage__aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(230px, 27vw, 350px);
  height: clamp(230px, 27vw, 350px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.24) 0%, rgba(157, 78, 221, 0.26) 45%, transparent 72%);
  filter: blur(24px);
  pointer-events: none;
}

.rlp-stage__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(230px, 26vw, 330px);
  height: clamp(230px, 26vw, 330px);
  margin-left: calc(clamp(230px, 26vw, 330px) / -2);
  margin-top: calc(clamp(230px, 26vw, 330px) / -2);
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 245, 212, 0.35);
  box-shadow: 0 0 28px rgba(157, 78, 221, 0.22), inset 0 0 24px rgba(0, 245, 212, 0.12);
  animation: rlpOrbitSpin 28s linear infinite;
  pointer-events: none;
}

.rlp-stage__ring--inner {
  width: clamp(180px, 20vw, 255px);
  height: clamp(180px, 20vw, 255px);
  margin-left: calc(clamp(180px, 20vw, 255px) / -2);
  margin-top: calc(clamp(180px, 20vw, 255px) / -2);
  border-style: solid;
  border-color: rgba(181, 23, 158, 0.36) transparent rgba(0, 245, 212, 0.44) transparent;
  animation-direction: reverse;
  animation-duration: 18s;
}

@keyframes rlpOrbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.rlp-stage__tag {
  position: absolute;
  top: 10%;
  right: 6%;
  z-index: 4;
  padding: 6px 14px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  background: rgba(15, 11, 30, 0.88);
  border: 1.5px solid rgba(0, 245, 212, 0.55);
  box-shadow: 0 0 22px rgba(0, 245, 212, 0.35), 0 0 20px rgba(157, 78, 221, 0.35);
  transform: rotate(5deg);
}

.rlp-stage__token {
  position: relative;
  z-index: 3;
  width: clamp(160px, 18vw, 228px);
  height: clamp(160px, 18vw, 228px);
  object-fit: contain;
  display: block;
  margin: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 245, 212, 0.3)) drop-shadow(0 0 26px rgba(157, 78, 221, 0.45));
}

.rlp-stage__pedestal {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: clamp(185px, 21vw, 265px);
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 245, 212, 0.3) 0%, rgba(157, 78, 221, 0.24) 55%, transparent 80%);
  border: 1.5px solid rgba(0, 245, 212, 0.5);
  box-shadow: 0 0 24px rgba(0, 245, 212, 0.36), 0 0 34px rgba(157, 78, 221, 0.32);
  pointer-events: none;
}

/* Tarjeta de Acceso */
.rlp-access-card {
  position: relative;
  padding: clamp(24px, 3.2vw, 38px);
  border-radius: var(--radius-lg);
  background: rgba(19, 19, 29, 0.86);
  border: 1px solid rgba(157, 78, 221, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 32px rgba(157, 78, 221, 0.14);
  overflow: hidden;
}

.rlp-access-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
}

.rlp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(157, 78, 221, 0.16);
  border: 1px solid rgba(157, 78, 221, 0.48);
  color: #E9D5FF;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.rlp-access-title {
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  margin-bottom: 10px;
}

.rlp-access-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.55;
}

.rlp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rlp-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.rlp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rlp-input-icon {
  position: absolute;
  left: 16px;
  color: var(--neon-cyan);
  pointer-events: none;
  display: inline-flex;
}

.rlp-id-input {
  width: 100%;
  padding: 15px 18px 15px 46px;
  border-radius: 14px;
  background: rgba(8, 4, 16, 0.78);
  border: 1.5px solid rgba(157, 78, 221, 0.36);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.rlp-id-input::placeholder {
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  color: var(--text-muted);
}

.rlp-id-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(8, 4, 16, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.15), 0 0 22px rgba(0, 245, 212, 0.2);
}

.rlp-submit-btn {
  width: 100%;
  padding: 15px 28px;
}

/* Alerta de estado (Suspendido / Expirado / Error) */
.rlp-alert {
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: rlpViewEnter 0.28s var(--ease-out);
}

.rlp-alert--danger {
  background: var(--danger-soft);
  border: 1px solid rgba(255, 77, 109, 0.48);
  color: #FFD6DF;
}

.rlp-alert--warn {
  background: var(--warn-soft);
  border: 1px solid rgba(255, 170, 0, 0.48);
  color: #FFE7B3;
}

.rlp-alert__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.92rem;
}

.rlp-alert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.rlp-alert__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.rlp-alert__link:hover {
  background: rgba(0, 245, 212, 0.16);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* Selector rápido de IDs Demo (Fase 1) */
.rlp-demo-strip {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rlp-demo-strip__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rlp-demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rlp-demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(14, 8, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.22s var(--ease-out);
}

.rlp-demo-chip code {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  letter-spacing: 0.06em;
}

.rlp-demo-chip--primary {
  border-color: rgba(0, 245, 212, 0.42);
  background: rgba(0, 245, 212, 0.08);
  color: #FFFFFF;
}

.rlp-demo-chip:hover {
  border-color: var(--neon-cyan);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 245, 212, 0.18);
}

.rlp-access-trust {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.rlp-aiad-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rlp-aiad-division {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.rlp-aiad-division strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Vista 2: Dashboard del Usuario
   ========================================================================== */
.rlp-dashboard {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vh, 32px);
}

/* Tarjeta Superior de Perfil + Saldo + Fichas A/B/C/P */
.rlp-profile-card {
  position: relative;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius-lg);
  background: rgba(19, 19, 29, 0.86);
  border: 1px solid rgba(157, 78, 221, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.rlp-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
}

.rlp-profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.rlp-user-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.rlp-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.32), rgba(0, 245, 212, 0.22));
  border: 1.5px solid rgba(0, 245, 212, 0.45);
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}

.rlp-user-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.rlp-user-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.rlp-user-name {
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.rlp-user-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(8, 4, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--neon-cyan);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rlp-user-id-pill:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-1px);
}

.rlp-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rlp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rlp-badge--rank-comun {
  background: rgba(184, 181, 204, 0.14);
  border: 1px solid rgba(184, 181, 204, 0.32);
  color: #E2E0F0;
}

.rlp-badge--rank-cualificado {
  background: rgba(0, 245, 212, 0.15);
  border: 1px solid rgba(0, 245, 212, 0.48);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.18);
}

.rlp-badge--rank-platinum {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.26), rgba(0, 245, 212, 0.2));
  border: 1px solid rgba(0, 245, 212, 0.52);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(157, 78, 221, 0.3);
}

.rlp-badge--rank-exento {
  background: rgba(255, 183, 3, 0.16);
  border: 1px solid rgba(255, 183, 3, 0.48);
  color: #FFD166;
}

.rlp-badge--immunity-active {
  background: rgba(68, 214, 44, 0.16);
  border: 1px solid rgba(68, 214, 44, 0.5);
  color: #9BFF8A;
  box-shadow: 0 0 14px rgba(68, 214, 44, 0.2);
}

.rlp-badge--immunity-none {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.rlp-profile-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rlp-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(8, 4, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.22s var(--ease-out);
}

.rlp-icon-btn:hover {
  color: #FFFFFF;
  border-color: rgba(0, 245, 212, 0.5);
  background: rgba(0, 245, 212, 0.08);
  transform: translateY(-1px);
}

.rlp-icon-btn--danger:hover {
  border-color: rgba(255, 77, 109, 0.55);
  background: rgba(255, 77, 109, 0.1);
  color: #FFD6DF;
}

/* Fila de Billetera: Saldo RL Points + 4 Fichas Super Puntos (A, B, C, P) */
.rlp-wallet-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) 1.55fr;
  gap: 16px;
  align-items: stretch;
}

.rlp-balance-box {
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.18), rgba(8, 4, 16, 0.88) 58%, rgba(0, 245, 212, 0.12));
  border: 1px solid rgba(0, 245, 212, 0.34);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: inset 0 0 24px rgba(157, 78, 221, 0.12);
}

.rlp-balance-box__icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(0, 245, 212, 0.38));
}

.rlp-balance-box__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rlp-balance-box__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.rlp-balance-box__value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: #FFFFFF;
  text-shadow: 0 0 20px rgba(0, 245, 212, 0.42);
}

.rlp-balance-box__sub {
  font-size: 0.78rem;
  color: var(--neon-cyan);
  font-weight: 600;
}

/* Panel de 4 Fichas A, B, C, P */
.rlp-super-box {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(8, 4, 16, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.rlp-super-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.rlp-super-box__title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.rlp-super-ready-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.rlp-super-ready-pill--yes {
  background: rgba(0, 245, 212, 0.14);
  border: 1px solid rgba(0, 245, 212, 0.45);
  color: var(--neon-cyan);
}

.rlp-super-ready-pill--no {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
}

.rlp-chips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 0.85fr)) minmax(260px, 2.15fr);
  gap: 10px;
}

.rlp-sp-chip {
  position: relative;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(19, 19, 29, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.22s var(--ease-out), border-color 0.22s ease, box-shadow 0.22s ease;
}

.rlp-sp-chip--a.is-available {
  border-color: rgba(0, 245, 212, 0.5);
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.14);
}

.rlp-sp-chip--b.is-available {
  border-color: rgba(157, 78, 221, 0.56);
  box-shadow: 0 0 18px rgba(157, 78, 221, 0.18);
}

.rlp-sp-chip--c.is-available {
  border-color: rgba(181, 23, 158, 0.58);
  box-shadow: 0 0 18px rgba(181, 23, 158, 0.18);
}

.rlp-sp-chip.is-empty {
  opacity: 0.56;
  border-style: dashed;
}

.rlp-sp-medal {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  flex-shrink: 0;
  position: relative;
}

.rlp-sp-chip--a .rlp-sp-medal {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.26), rgba(0, 245, 212, 0.08));
  border: 1px solid rgba(0, 245, 212, 0.65);
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 245, 212, 0.6);
}

.rlp-sp-chip--b .rlp-sp-medal {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.3), rgba(157, 78, 221, 0.1));
  border: 1px solid rgba(157, 78, 221, 0.72);
  color: #D8A4FF;
  text-shadow: 0 0 12px rgba(157, 78, 221, 0.7);
}

.rlp-sp-chip--c .rlp-sp-medal {
  background: linear-gradient(135deg, rgba(181, 23, 158, 0.32), rgba(181, 23, 158, 0.1));
  border: 1px solid rgba(226, 70, 204, 0.72);
  color: #FF8CEB;
  text-shadow: 0 0 12px rgba(181, 23, 158, 0.7);
}

.rlp-sp-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.rlp-sp-count {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: #FFFFFF;
}

.rlp-sp-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Ficha Especial Super Punto P (Bloqueado / Comodín) */
.rlp-sp-chip--p {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 183, 3, 0.06) 0px,
      rgba(255, 183, 3, 0.06) 8px,
      rgba(19, 19, 29, 0.92) 8px,
      rgba(19, 19, 29, 0.92) 16px
    );
  border: 1.5px dashed rgba(255, 183, 3, 0.62);
  box-shadow: inset 0 0 18px rgba(255, 183, 3, 0.08);
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.rlp-sp-chip--p-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rlp-sp-chip--p .rlp-sp-medal {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.26), rgba(181, 23, 158, 0.16));
  border: 1px solid rgba(255, 183, 3, 0.75);
  color: var(--super-gold);
  text-shadow: 0 0 12px rgba(255, 183, 3, 0.6);
}

.rlp-sp-lock-pin {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1B1329;
  border: 1px solid rgba(255, 183, 3, 0.8);
  color: var(--super-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rlp-sp-p-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFD166;
  line-height: 1.3;
}

/* Selector directo de autoconversión 1 P -> +1 Super A / B / C */
.rlp-convert-p-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.rlp-convert-p-grid--panel,
.rlp-convert-p-grid--modal {
  grid-template-columns: 1fr;
  gap: 7px;
}

.rlp-convert-p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  background: rgba(19, 19, 29, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-align: center;
}

.rlp-convert-p-grid--panel .rlp-convert-p-btn,
.rlp-convert-p-grid--modal .rlp-convert-p-btn {
  padding: 10px 14px;
  font-size: 0.8rem;
}

.rlp-convert-p-btn--a {
  border-color: rgba(0, 245, 212, 0.48);
  background: rgba(0, 245, 212, 0.12);
  color: #D8FFFA;
}

.rlp-convert-p-btn--a:hover:not(:disabled) {
  background: rgba(0, 245, 212, 0.24);
  border-color: var(--neon-cyan);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.28);
}

.rlp-convert-p-btn--b {
  border-color: rgba(157, 78, 221, 0.56);
  background: rgba(157, 78, 221, 0.16);
  color: #EFE0FF;
}

.rlp-convert-p-btn--b:hover:not(:disabled) {
  background: rgba(157, 78, 221, 0.3);
  border-color: #C77DFF;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(157, 78, 221, 0.32);
}

.rlp-convert-p-btn--c {
  border-color: rgba(181, 23, 158, 0.56);
  background: rgba(181, 23, 158, 0.16);
  color: #FFE0FA;
}

.rlp-convert-p-btn--c:hover:not(:disabled) {
  background: rgba(181, 23, 158, 0.3);
  border-color: #FF6BE6;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(181, 23, 158, 0.34);
}

.rlp-convert-p-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.rlp-convert-p-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  filter: grayscale(0.4);
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   Selector de Ruletas (Regular vs Super Ruleta Premium)
   ========================================================================== */
.rlp-mode-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rlp-mode-tab {
  position: relative;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(19, 19, 29, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  transition: all 0.28s var(--ease-out);
  overflow: hidden;
}

.rlp-mode-tab:hover {
  border-color: rgba(157, 78, 221, 0.5);
  background: rgba(26, 26, 41, 0.9);
  transform: translateY(-2px);
}

.rlp-mode-tab--regular.is-active {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.22), rgba(19, 19, 29, 0.94) 55%, rgba(0, 245, 212, 0.14));
  border-color: var(--neon-cyan);
  box-shadow: 0 0 28px rgba(0, 245, 212, 0.2), inset 0 0 20px rgba(157, 78, 221, 0.16);
}

.rlp-mode-tab--super.is-active {
  background: linear-gradient(135deg, rgba(181, 23, 158, 0.28), rgba(19, 19, 29, 0.94) 55%, rgba(255, 183, 3, 0.16));
  border-color: var(--super-gold);
  box-shadow: 0 0 30px rgba(181, 23, 158, 0.28), 0 0 24px rgba(255, 183, 3, 0.16);
}

.rlp-mode-tab__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rlp-mode-tab__eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.rlp-mode-tab--super .rlp-mode-tab__eyebrow {
  color: var(--super-gold);
}

.rlp-mode-tab__title {
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  font-weight: 800;
  color: #FFFFFF;
}

.rlp-mode-tab__cost {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.rlp-mode-tab__status {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.rlp-mode-tab__status--ready {
  background: rgba(0, 245, 212, 0.16);
  border: 1px solid rgba(0, 245, 212, 0.5);
  color: var(--neon-cyan);
}

.rlp-mode-tab__status--locked {
  background: rgba(255, 77, 109, 0.14);
  border: 1px solid rgba(255, 77, 109, 0.4);
  color: #FF8FA3;
}

/* ==========================================================================
   Arena de Ruleta (Canvas + Panel de Control Lateral)
   ========================================================================== */
.rlp-arena {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.82fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 24px;
  background: rgba(19, 19, 29, 0.84);
  border: 1px solid rgba(157, 78, 221, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

body.theme-super .rlp-arena {
  border-color: rgba(255, 183, 3, 0.36);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52), 0 0 42px rgba(181, 23, 158, 0.18);
}

/* Contenedor Canvas */
.rlp-wheel-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.rlp-wheel-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.22) 0%, rgba(157, 78, 221, 0.24) 46%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  transition: background 0.4s ease;
}

body.theme-super .rlp-wheel-aura {
  background: radial-gradient(circle, rgba(255, 183, 3, 0.22) 0%, rgba(181, 23, 158, 0.28) 46%, transparent 72%);
}

.rlp-canvas-shell {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

#particleCanvas {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  z-index: 5;
  pointer-events: none;
}

/* Panel Lateral de Control de Ruleta */
.rlp-control-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rlp-control-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rlp-control-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

body.theme-super .rlp-control-kicker {
  color: var(--super-gold);
}

.rlp-control-title {
  font-size: clamp(1.32rem, 2vw, 1.75rem);
}

.rlp-control-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Caja de Costo y Requisitos */
.rlp-cost-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(8, 4, 16, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rlp-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rlp-cost-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.rlp-cost-val {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  color: #FFFFFF;
}

.rlp-cost-val img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Requisitos Super Ruleta: A, B, C + P bloqueado visible juntos */
.rlp-super-req-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rlp-req-pill {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(19, 19, 29, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.rlp-req-pill.is-met {
  border-color: rgba(0, 245, 212, 0.55);
  background: rgba(0, 245, 212, 0.08);
}

.rlp-req-pill.is-missing {
  border-color: rgba(255, 77, 109, 0.45);
  background: rgba(255, 77, 109, 0.08);
}

.rlp-req-pill__letter {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: #FFFFFF;
}

.rlp-req-pill__ratio {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.rlp-req-pill.is-missing .rlp-req-pill__ratio {
  color: #FF8FA3;
}

/* Bloque P dentro del Panel de la Super Ruleta */
.rlp-super-p-panel {
  padding: 13px 14px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 183, 3, 0.07) 0px,
      rgba(255, 183, 3, 0.07) 8px,
      rgba(15, 11, 28, 0.92) 8px,
      rgba(15, 11, 28, 0.92) 16px
    );
  border: 1.5px dashed rgba(255, 183, 3, 0.65);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rlp-super-p-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rlp-super-p-panel__id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rlp-super-p-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 183, 3, 0.2);
  border: 1px solid rgba(255, 183, 3, 0.75);
  color: var(--super-gold);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.rlp-super-p-lock-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 183, 3, 0.16);
  border: 1px solid rgba(255, 183, 3, 0.52);
  color: #FFD166;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rlp-super-p-desc {
  font-size: 0.78rem;
  color: #E7DEC8;
  line-height: 1.45;
}

/* Botón Principal GIRAR */
.rlp-spin-btn {
  width: 100%;
  padding: 17px 28px;
  font-size: 1rem;
  letter-spacing: 0.07em;
}

body.theme-super .rlp-spin-btn:not(:disabled) {
  background: linear-gradient(90deg, #B5179E 0%, #FFB703 52%, #00F5D4 100%);
  color: #080410;
  box-shadow: 0 0 28px rgba(255, 183, 3, 0.36), 0 0 38px rgba(181, 23, 158, 0.42);
}

.rlp-spin-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  animation: none !important;
  box-shadow: none !important;
  transform: none !important;
  filter: grayscale(0.35);
}

.rlp-spin-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.45;
}

.rlp-spin-hint--warn {
  color: #FFB4C2;
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.32);
  padding: 10px 12px;
  border-radius: 12px;
}

/* Destacados de Premios */
.rlp-jackpots-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(8, 4, 16, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rlp-jackpots-box__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rlp-jackpots-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rlp-jackpot-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(157, 78, 221, 0.16);
  border: 1px solid rgba(157, 78, 221, 0.35);
  color: #EFE5FF;
}

body.theme-super .rlp-jackpot-tag {
  background: rgba(255, 183, 3, 0.13);
  border-color: rgba(255, 183, 3, 0.38);
  color: #FFE7A8;
}

/* ==========================================================================
   Sección Colapsable: Transparencia y Probabilidades (Cláusula #24)
   ========================================================================== */
.rlp-accordion {
  border-radius: 20px;
  background: rgba(19, 19, 29, 0.84);
  border: 1px solid rgba(0, 245, 212, 0.22);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.rlp-accordion__summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background-color 0.2s ease;
}

.rlp-accordion__summary::-webkit-details-marker {
  display: none;
}

.rlp-accordion__summary:hover {
  background: rgba(0, 245, 212, 0.05);
}

.rlp-accordion__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rlp-accordion__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.25), rgba(0, 245, 212, 0.2));
  border: 1px solid rgba(0, 245, 212, 0.38);
  color: var(--neon-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rlp-accordion__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.04em;
}

.rlp-accordion__sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.rlp-accordion__chevron {
  color: var(--neon-cyan);
  transition: transform 0.28s var(--ease-out);
  flex-shrink: 0;
}

.rlp-accordion[open] .rlp-accordion__chevron {
  transform: rotate(180deg);
}

.rlp-accordion__body {
  padding: 0 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rlp-odds-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rlp-odds-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(8, 4, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rlp-odds-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rlp-odds-card__head h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
}

.rlp-odds-card__cost {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.rlp-odds-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rlp-odds-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  font-size: 0.84rem;
}

.rlp-odds-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #EAE7F6;
  font-weight: 600;
}

.rlp-odds-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rlp-odds-tag {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

.rlp-odds-tag--manual {
  background: rgba(0, 245, 212, 0.12);
  color: var(--neon-cyan);
}

.rlp-odds-pct {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
}

.rlp-odds-bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.rlp-odds-bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
}

.rlp-aiad-audit-box {
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.12), rgba(0, 245, 212, 0.08));
  border: 1px solid rgba(0, 245, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Historial Reciente del Usuario
   ========================================================================== */
.rlp-history-card {
  padding: clamp(20px, 2.5vw, 28px);
  border-radius: 20px;
  background: rgba(19, 19, 29, 0.84);
  border: 1px solid rgba(157, 78, 221, 0.24);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rlp-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.rlp-history-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.rlp-history-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.rlp-history-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.rlp-history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.rlp-history-table th {
  text-align: left;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.rlp-history-table td {
  padding: 12px;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  vertical-align: middle;
}

.rlp-history-table tr:last-child td {
  border-bottom: none;
}

.rlp-history-prize {
  font-weight: 800;
  color: #FFFFFF;
}

.rlp-history-ruleta {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rlp-history-ruleta--regular {
  background: rgba(157, 78, 221, 0.18);
  border: 1px solid rgba(157, 78, 221, 0.42);
  color: #E5C2FF;
}

.rlp-history-ruleta--super {
  background: rgba(255, 183, 3, 0.16);
  border: 1px solid rgba(255, 183, 3, 0.45);
  color: #FFD166;
}

.rlp-history-ruleta--conversion {
  background: rgba(0, 245, 212, 0.14);
  border: 1px solid rgba(0, 245, 212, 0.42);
  color: var(--neon-cyan);
}

.rlp-history-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.45);
  color: var(--neon-cyan);
  font-size: 0.74rem;
  font-weight: 800;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rlp-history-wa-btn:hover {
  background: rgba(0, 245, 212, 0.24);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.rlp-history-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  word-spacing: 0.08em;
}

.rlp-history-status--done {
  color: #8CF5A2;
}

.rlp-history-status--delivered {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(68, 214, 44, 0.12);
  border: 1px solid rgba(68, 214, 44, 0.36);
  color: #9BFF8A;
  opacity: 0.78;
  cursor: not-allowed;
  user-select: none;
  white-space: nowrap;
}

.rlp-empty-history {
  padding: 26px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Modal de Resultado del Giro
   ========================================================================== */
.rlp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 2, 12, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.rlp-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rlp-modal {
  position: relative;
  width: 100%;
  max-width: 470px;
  padding: 30px 26px 26px;
  border-radius: 24px;
  background: var(--surface-modal);
  border: 1.5px solid rgba(0, 245, 212, 0.45);
  box-shadow:
    0 24px 68px rgba(0, 0, 0, 0.7),
    0 0 42px rgba(157, 78, 221, 0.32),
    0 0 28px rgba(0, 245, 212, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translateY(18px) scale(0.94);
  transition: transform 0.34s var(--ease-out);
  overflow: hidden;
}

.rlp-modal-backdrop.is-open .rlp-modal {
  transform: translateY(0) scale(1);
}

.rlp-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-brand);
}

.rlp-modal--major {
  border-color: rgba(255, 183, 3, 0.65);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.75),
    0 0 48px rgba(255, 183, 3, 0.28),
    0 0 44px rgba(181, 23, 158, 0.35);
}

.rlp-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.rlp-modal__close:hover {
  color: #FFFFFF;
  border-color: var(--neon-cyan);
  background: rgba(0, 245, 212, 0.14);
}

.rlp-modal__icon {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.32), rgba(0, 245, 212, 0.24));
  border: 1.5px solid rgba(0, 245, 212, 0.55);
  box-shadow: 0 0 32px rgba(0, 245, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
}

.rlp-modal__eyebrow {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.rlp-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2.2vw, 1.7rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.18;
}

.rlp-modal__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 380px;
}

.rlp-modal__meta {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(8, 4, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rlp-modal__meta strong {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.74rem;
}

.rlp-modal__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.rlp-modal__wa {
  width: 100%;
  padding: 14px 20px;
}

.rlp-btn-secondary {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.rlp-btn-secondary:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 245, 212, 0.1);
  color: var(--neon-cyan);
}

/* Toast de confirmación sutil */
.rlp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(15, 13, 28, 0.95);
  border: 1px solid rgba(0, 245, 212, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 245, 212, 0.25);
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s var(--ease-out);
}

.rlp-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Tablet & Móvil
   ========================================================================== */
@media (max-width: 1024px) {
  .rlp-wallet-grid {
    grid-template-columns: 1fr;
  }

  .rlp-arena {
    grid-template-columns: 1fr;
  }

  .rlp-canvas-shell {
    max-width: 440px;
  }

  .rlp-odds-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .rlp-access-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rlp-stage {
    min-height: 250px;
  }

  .rlp-mode-switcher {
    grid-template-columns: 1fr;
  }

  .rlp-chips-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rlp-sp-chip--p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .rlp-profile-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .rlp-profile-controls {
    width: 100%;
  }

  .rlp-icon-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .rlp-accordion__summary {
    padding: 15px 16px;
  }

  .rlp-accordion__body {
    padding: 0 16px 18px;
  }

  .rlp-canvas-shell {
    max-width: 340px;
  }

  .rlp-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}
