/**
 * Hello Plataforma · Wallet Styles
 *
 * Estilos para wallet del fan, recarga y modales (tip, PPV).
 * Card oscura premium para el balance principal.
 */


/* ============================================================
   WRAPPER GENERAL
   ============================================================ */

.hp-wallet-wrapper,
.hp-topup-wrapper {
  background: var(--hp-bg-secondary);
}

.hp-wallet,
.hp-topup {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 100px;
}


/* ============================================================
   BALANCE CARD (oscura premium · solo para wallet)
   ============================================================ */

.hp-wallet-balance-card {
  background: var(--hp-gradient-dark-card);
  color: #FFFFFF;
  border-radius: 22px;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 40px -8px rgba(15, 14, 22, 0.30);
}

.hp-wallet-balance-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 135, 208, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hp-wallet-balance-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149, 117, 205, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hp-wallet-balance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

.hp-wallet-balance-label {
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: rgba(212, 191, 232, 0.70);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.hp-wallet-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(168, 135, 208, 0.20);
  border: 0.5px solid rgba(212, 191, 232, 0.30);
  color: #D4BFE8;
  padding: 4px 10px;
  border-radius: 99px;
  font-family: var(--hp-font-base);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.hp-wallet-balance-pill i {
  font-size: 12px;
}

.hp-wallet-balance-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
  position: relative;
}

.hp-wallet-balance-currency {
  font-family: var(--hp-font-base);
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.hp-wallet-balance-value {
  font-family: var(--hp-font-base);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  color: #FFFFFF;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.hp-wallet-balance-mxn {
  font-family: var(--hp-font-base);
  font-size: 12px;
  font-weight: 600;
  color: rgba(212, 191, 232, 0.70);
  margin-left: 4px;
  letter-spacing: 0.5px;
}

.hp-wallet-balance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
}

.hp-wallet-action-primary {
  background: #FFFFFF;
  color: var(--hp-purple-anchor);
  font-weight: 700;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--hp-font-base);
  font-size: 14px;
  text-decoration: none;
  transition: transform var(--hp-duration-fast) var(--hp-ease);
}

.hp-wallet-action-primary:hover {
  transform: translateY(-1px);
}

.hp-wallet-action-secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  font-weight: 600;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--hp-font-base);
  font-size: 14px;
  text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hp-wallet-balance-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: rgba(212, 191, 232, 0.65);
  margin: 0;
  position: relative;
}

.hp-wallet-balance-note i {
  font-size: 13px;
  color: #4ADE80;
}


/* ============================================================
   BONUS BANNER (claro · CTA secundaria)
   ============================================================ */

.hp-wallet-bonus-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.10) 0%, rgba(201, 169, 97, 0.04) 100%);
  border: 0.5px solid rgba(201, 169, 97, 0.30);
  border-radius: 14px;
  margin-bottom: 24px;
  text-decoration: none;
}

.hp-wallet-bonus-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #C9A961 0%, #B59544 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.hp-wallet-bonus-banner-icon i {
  font-size: 18px;
  color: #FFFFFF;
}

.hp-wallet-bonus-banner-content {
  flex: 1;
  min-width: 0;
}

.hp-wallet-bonus-banner-title {
  font-family: var(--hp-font-base);
  font-size: 13px;
  font-weight: 700;
  color: #7C5F1E;
  margin: 0;
  line-height: 1.3;
}

.hp-wallet-bonus-banner-sub {
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: #8E7438;
  margin: 2px 0 0;
  line-height: 1.3;
}

.hp-wallet-bonus-banner-cta {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(201, 169, 97, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7C5F1E;
  text-decoration: none;
  flex-shrink: 0;
}

.hp-wallet-bonus-banner-cta i {
  font-size: 18px;
}


/* ============================================================
   HISTORY
   ============================================================ */

.hp-wallet-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.hp-wallet-tx {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--hp-bg-primary);
  border: 0.5px solid var(--hp-border-subtle);
  border-radius: 14px;
}

.hp-wallet-tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-wallet-tx--in .hp-wallet-tx-icon {
  background: rgba(29, 158, 117, 0.10);
  color: var(--hp-green-success);
  border: 0.5px solid rgba(29, 158, 117, 0.20);
}

.hp-wallet-tx--out .hp-wallet-tx-icon {
  background: rgba(149, 117, 205, 0.10);
  color: var(--hp-purple-deep);
  border: 0.5px solid rgba(149, 117, 205, 0.20);
}

.hp-wallet-tx-icon i {
  font-size: 20px;
}

.hp-wallet-tx-content {
  flex: 1;
  min-width: 0;
}

.hp-wallet-tx-title {
  font-family: var(--hp-font-base);
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-text-primary);
  margin: 0;
  line-height: 1.3;
}

.hp-wallet-tx-meta {
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: var(--hp-text-tertiary);
  margin: 2px 0 0;
  line-height: 1.3;
}

.hp-wallet-tx-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.hp-wallet-tx-amount-value {
  font-family: var(--hp-font-base);
  font-size: 14px;
  font-weight: 700;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.hp-wallet-tx--in .hp-wallet-tx-amount-value {
  color: var(--hp-green-success);
}

.hp-wallet-tx--out .hp-wallet-tx-amount-value {
  color: var(--hp-text-primary);
}

.hp-wallet-tx-amount-balance {
  font-family: var(--hp-font-base);
  font-size: 10px;
  color: var(--hp-text-tertiary);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}


/* ============================================================
   HISTORY EMPTY
   ============================================================ */

.hp-wallet-history-empty {
  text-align: center;
  padding: 48px 16px;
}

.hp-wallet-history-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--hp-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.hp-wallet-history-empty-icon i {
  font-size: 28px;
  color: var(--hp-text-tertiary);
}

.hp-wallet-history-empty-title {
  font-family: var(--hp-font-base);
  font-size: 14px;
  font-weight: 600;
  color: var(--hp-text-primary);
  margin: 0;
}

.hp-wallet-history-empty-sub {
  font-family: var(--hp-font-base);
  font-size: 12px;
  color: var(--hp-text-tertiary);
  margin: 4px 0 0;
}


/* ============================================================
   TOPUP SCREEN
   ============================================================ */

.hp-topup-current-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--hp-bg-primary);
  border: 0.5px solid var(--hp-border-purple);
  border-radius: 14px;
  margin-bottom: 24px;
}

.hp-topup-current-label {
  font-family: var(--hp-font-base);
  font-size: 12px;
  color: var(--hp-text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.hp-topup-current-value {
  font-family: var(--hp-font-base);
  font-size: 18px;
  font-weight: 700;
  color: var(--hp-text-primary);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.hp-topup-title {
  font-family: var(--hp-font-base);
  font-size: 24px;
  font-weight: 700;
  color: var(--hp-text-primary);
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hp-topup-sub {
  font-family: var(--hp-font-base);
  font-size: 13px;
  color: var(--hp-text-secondary);
  margin: 6px 0 20px;
}


/* ============================================================
   BONUS TIERS BAR
   ============================================================ */

.hp-topup-bonus-tiers {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, rgba(201, 169, 97, 0.02) 100%);
  border: 0.5px solid rgba(201, 169, 97, 0.20);
  border-radius: 12px;
}

.hp-topup-bonus-tier {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  background: transparent;
  transition: all var(--hp-duration-normal) var(--hp-ease);
}

.hp-topup-bonus-tier.is-active {
  background: linear-gradient(135deg, #C9A961 0%, #B59544 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.hp-topup-bonus-tier-min {
  display: block;
  font-family: var(--hp-font-base);
  font-size: 11px;
  font-weight: 600;
  color: #8E7438;
  margin-bottom: 2px;
}

.hp-topup-bonus-tier.is-active .hp-topup-bonus-tier-min {
  color: rgba(255, 255, 255, 0.85);
}

.hp-topup-bonus-tier-pct {
  display: block;
  font-family: var(--hp-font-base);
  font-size: 12px;
  font-weight: 800;
  color: #7C5F1E;
}

.hp-topup-bonus-tier.is-active .hp-topup-bonus-tier-pct {
  color: #FFFFFF;
}


/* ============================================================
   CHIPS DE MONTOS
   ============================================================ */

.hp-topup-suggested {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

/* ============================================================
   CHIP DE MONTO · diseño premium con defensa contra Elementor
   ============================================================ */

.hp-topup-chip,
.hp-topup-chip:link,
.hp-topup-chip:visited,
.hp-topup-chip:hover,
.hp-topup-chip:focus,
.hp-topup-chip:active {
  text-decoration: none !important;
  outline: none !important;
}

.hp-topup-chip {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 100px;
  padding: 18px 12px 14px;
  background: var(--hp-bg-primary, #FFFFFF) !important;
  border: 1.5px solid var(--hp-border-subtle, rgba(0,0,0,0.08)) !important;
  border-radius: 16px;
  cursor: pointer;
  color: var(--hp-text-primary, #1A1726) !important;
  overflow: hidden;
  transition: transform 200ms ease-out,
              border-color 200ms ease-out,
              box-shadow 200ms ease-out,
              background 200ms ease-out !important;
}

/* Defensa nuclear · hover NO rosa/rojo · siempre morado */
.hp-topup-chip:hover {
  transform: translateY(-2px) !important;
  border-color: var(--hp-purple-deep, #69499E) !important;
  background: linear-gradient(135deg, rgba(212, 191, 232, 0.10) 0%, rgba(168, 135, 208, 0.04) 100%) !important;
  box-shadow: 0 8px 20px -6px rgba(105, 73, 158, 0.18) !important;
  color: var(--hp-text-primary, #1A1726) !important;
}

.hp-topup-chip:active {
  transform: translateY(0) !important;
}

/* Estado seleccionado · más intenso que hover */
.hp-topup-chip.is-selected {
  border-color: var(--hp-purple-deep, #69499E) !important;
  background: linear-gradient(135deg, rgba(212, 191, 232, 0.22) 0%, rgba(168, 135, 208, 0.08) 100%) !important;
  box-shadow: 0 0 0 3px rgba(149, 117, 205, 0.18),
              0 6px 16px -4px rgba(105, 73, 158, 0.20) !important;
}

.hp-topup-chip.is-selected .hp-topup-chip-amount {
  color: var(--hp-purple-deep, #69499E) !important;
}

/* ============================================================
   BADGE DE BONUS · top-right corner · bronce
   ============================================================ */

.hp-topup-chip-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  font-family: var(--hp-font-base, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #8A6F2C;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.28) 0%, rgba(201, 169, 97, 0.14) 100%);
  border: 0.5px solid rgba(201, 169, 97, 0.45);
  border-radius: 99px;
}

.hp-topup-chip-badge i {
  font-size: 11px;
}

/* En cards CON bonus, el monto se baja un poco para dejar aire al badge */
.hp-topup-chip--has-bonus {
  padding-top: 28px;
}

/* ============================================================
   MONTO PRINCIPAL · grande y limpio
   ============================================================ */

.hp-topup-chip-amount {
  font-family: var(--hp-font-base, 'Inter', sans-serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--hp-text-primary, #1A1726);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  letter-spacing: -0.6px;
  line-height: 1;
  margin: 0;
}

/* ============================================================
   LÍNEA "RECIBES $X" · más chica · debajo
   ============================================================ */

.hp-topup-chip-receives {
  font-family: var(--hp-font-base, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 500;
  color: var(--hp-text-secondary, #5B5566);
  letter-spacing: 0.1px;
  margin-top: 2px;
}

.hp-topup-chip-receives strong {
  font-weight: 700;
  color: var(--hp-purple-deep, #69499E);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.hp-topup-chip-receives--muted {
  font-size: 10px;
  font-weight: 600;
  color: var(--hp-text-tertiary, #8B8499);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* ============================================================
   LEGACY · ya no se usa pero lo dejo por si algo viejo lo referencia
   ============================================================ */

.hp-topup-chip-bonus {
  display: none;
}


/* ============================================================
   INPUT CUSTOM DE MONTO
   ============================================================ */

.hp-topup-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--hp-bg-primary);
  border: 1px solid var(--hp-border-subtle);
  border-radius: 12px;
  padding: 0 14px;
  margin-top: 6px;
  transition: border-color var(--hp-duration-normal) var(--hp-ease);
}

.hp-topup-input-wrap:focus-within {
  border-color: var(--hp-purple);
  box-shadow: 0 0 0 3px rgba(149, 117, 205, 0.15);
}

.hp-topup-input-currency {
  font-family: var(--hp-font-base);
  font-size: 18px;
  font-weight: 600;
  color: var(--hp-text-primary);
}

.hp-topup-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 14px 0;
  font-family: var(--hp-font-base);
  font-size: 18px;
  font-weight: 700;
  color: var(--hp-text-primary);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}

.hp-topup-input::-webkit-inner-spin-button,
.hp-topup-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hp-topup-input-suffix {
  font-family: var(--hp-font-base);
  font-size: 11px;
  color: var(--hp-text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
}


/* ============================================================
   PREVIEW DEL CRÉDITO
   ============================================================ */

.hp-topup-preview {
  background: var(--hp-bg-primary);
  border: 0.5px solid var(--hp-border-purple);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 16px 0 20px;
  animation: hpFadeInUp 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hp-topup-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-family: var(--hp-font-base);
  font-size: 13px;
  color: var(--hp-text-secondary);
}

.hp-topup-preview-row--bonus {
  color: #B59544;
  font-weight: 600;
}

.hp-topup-preview-row--bonus i {
  font-size: 14px;
  margin-right: 2px;
}

.hp-topup-preview-row--total {
  border-top: 0.5px solid var(--hp-border-subtle);
  padding-top: 12px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-text-primary);
}

.hp-topup-preview-row--total .hp-num {
  font-size: 18px;
  font-weight: 800;
}


/* ============================================================
   STEP 2 SUMMARY
   ============================================================ */

.hp-topup-summary-card {
  background: var(--hp-bg-primary);
  border: 0.5px solid var(--hp-border-purple);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.hp-topup-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-family: var(--hp-font-base);
  font-size: 13px;
  color: var(--hp-text-secondary);
}

.hp-topup-summary-row--bonus {
  color: #B59544;
  font-weight: 600;
}

.hp-topup-summary-row--total {
  border-top: 0.5px solid var(--hp-border-subtle);
  padding-top: 10px;
  margin-top: 4px;
  font-weight: 700;
  color: var(--hp-text-primary);
  font-size: 15px;
}