/* ==========================================================================
   NIUBIZ OFFICIAL WEB CHECKOUT - HAUTE LUXURY FINTECH EDITION
   Pristine White Porcelain, Obsidian Ruby Card & Fine Gold Titanium Accents
   ========================================================================== */

:root {
  --c-pay-crimson: #D90429;
  --c-pay-crimson-dark: #A0001E;
  --c-pay-gold: #D4AF37;
  --c-pay-gold-light: #F3E5AB;
  --c-pay-dark: #0F172A;
  --c-pay-slate: #334155;
  --c-pay-muted: #64748B;
  --c-pay-border: #E2E8F0;
  --c-pay-bg-subtle: #F8FAFC;
}

/* Main Modal Frame — Clean Modern Floating Card */
.niubiz-official-frame {
  background: #FFFFFF;
  color: var(--c-pay-dark);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  border: 1px solid #E2E8F0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Header Bar ─────────────────────────────────────────────────────────── */
.niubiz-official-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.6rem;
  border-bottom: 1px solid #F1F5F9;
  background: #FFFFFF;
}

.niubiz-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: #94A3B8;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.niubiz-lang-switch span.active {
  color: #0F172A;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.niubiz-merchant-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.niubiz-merchant-brand h4 {
  font-family: var(--font-serif, "Cinzel", Georgia, serif);
  font-size: 1rem;
  font-weight: 900;
  color: #722F37;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.2;
}

.niubiz-merchant-brand small {
  font-size: 0.7rem;
  color: #64748B;
  font-weight: 600;
  display: block;
}

.niubiz-security-stamp {
  background: #F0FDF4 !important;
  color: #166534 !important;
  border: 1px solid #BBF7D0 !important;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ─── Stage Body ─────────────────────────────────────────────────────────── */
.niubiz-stage-body {
  padding: 1.6rem;
  background: #FFFFFF;
}

.niubiz-choose-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.niubiz-choose-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #D90429 0%, #D4AF37 100%);
  border-radius: 4px;
}

/* ─── Method Choice Cards (Apple & Stripe inspired) ───────────────────────── */
.niubiz-methods-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.niubiz-method-card {
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  cursor: pointer;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.niubiz-method-card:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.niubiz-method-card.active {
  border-color: var(--c-pay-crimson);
  background: #FFF5F6;
  box-shadow: 0 8px 25px rgba(217, 4, 41, 0.08), 0 0 0 1px var(--c-pay-crimson);
}

.niubiz-radio-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.niubiz-method-card.active .niubiz-radio-dot {
  border-color: var(--c-pay-crimson);
  background: #FFF;
}

.niubiz-method-card.active .niubiz-radio-dot::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-pay-crimson);
}

.niubiz-method-info {
  flex-grow: 1;
}

.niubiz-method-name {
  font-size: 1rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.niubiz-method-sub {
  font-size: 0.8rem;
  color: #64748B;
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.niubiz-logos-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.niubiz-pill-logo {
  height: 24px;
  padding: 2px 9px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #334155;
}

/* ─── Pay CTA Button (High-Converting Vibrant Crimson) ────────────────────── */
.niubiz-btn-red {
  background: linear-gradient(135deg, #E60028 0%, #BA001F 100%);
  color: #FFFFFF;
  width: 100%;
  padding: 1.05rem 1.75rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 25px rgba(230, 0, 40, 0.35);
  letter-spacing: 0.01em;
}

.niubiz-btn-red:hover {
  background: linear-gradient(135deg, #FF1744 0%, #D50000 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(230, 0, 40, 0.45);
}

.niubiz-btn-red:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(230, 0, 40, 0.3);
}

/* ─── Back Link ──────────────────────────────────────────────────────────── */
.niubiz-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #64748B;
  cursor: pointer;
  margin-bottom: 1.35rem;
  transition: all 0.2s ease;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.niubiz-back-link:hover {
  color: #0F172A;
  border-color: #CBD5E1;
  background: #F1F5F9;
}

/* ─── Quick Test Cards Bar ───────────────────────────────────────────────── */
.niubiz-test-cards-bar {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 1.1rem 0;
  width: 100%;
  box-sizing: border-box;
}

.niubiz-test-cards-bar .test-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.niubiz-test-cards-bar .test-btns {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.niubiz-test-btn {
  font-size: 0.72rem;
  padding: 0.32rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  border: 1px solid;
  transition: all 0.18s ease;
}

.niubiz-test-btn.visa {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #047857;
}
.niubiz-test-btn.visa:hover { background: #D1FAE5; }

.niubiz-test-btn.mc {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #B45309;
}
.niubiz-test-btn.mc:hover { background: #FEF3C7; }

.niubiz-test-btn.denied {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}
.niubiz-test-btn.denied:hover { background: #FEE2E2; }

/* ─── 2-Column Card Grid Layout ─────────────────────────────────────────── */
.niubiz-card-grid-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.85rem;
  align-items: start;
}

.niubiz-card-visual-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.niubiz-card-form-col {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Tauromaquia Certification Badge */
.niubiz-tauro-cert-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #FFFDF7;
  border: 1.5px solid #F3E5AB;
  border-left: 4px solid #722F37;
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.08);
}

.tauro-cert-emblem {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(114, 47, 55, 0.08);
  border: 1px solid rgba(114, 47, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tauro-cert-text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #722F37;
  letter-spacing: -0.01em;
}

.tauro-cert-text small {
  display: block;
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 500;
}

.niubiz-input-wrap {
  margin-bottom: 1rem;
}

.niubiz-input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.niubiz-input-field {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #0F172A;
  background: #FFFFFF;
  outline: none;
  transition: all 0.22s ease;
  box-sizing: border-box;
  font-family: inherit;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.niubiz-input-field::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.niubiz-input-field:focus {
  border-color: var(--c-pay-crimson);
  background: #FFFFFF;
  box-shadow: 0 0 0 3.5px rgba(217, 4, 41, 0.12);
}

.niubiz-input-field.card-valid {
  border-color: #10B981 !important;
  background: #F0FDF4 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14) !important;
}

.niubiz-input-field.card-invalid {
  border-color: #EF4444 !important;
  background: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14) !important;
}

.niubiz-field-error {
  font-size: 0.74rem;
  color: #DC2626;
  font-weight: 700;
  margin-top: 0.3rem;
  padding-left: 0.2rem;
  min-height: 1rem;
  opacity: 0;
  transform: translateY(-3px);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.niubiz-field-error.visible {
  opacity: 1;
  transform: translateY(0);
}

.niubiz-field-error::before {
  content: '✕';
  font-size: 0.65rem;
  font-weight: 900;
}

.niubiz-input-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.niubiz-input-field.niubiz-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

.niubiz-input-field.niubiz-select option {
  background: #FFFFFF;
  color: #0F172A;
}

.niubiz-notice-text {
  font-size: 0.74rem;
  color: #64748B;
  text-align: center;
  margin-bottom: 1.15rem;
  line-height: 1.5;
  font-weight: 500;
}

.niubiz-card-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: #166534;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  width: 100%;
  box-sizing: border-box;
}

/* ─── 3D Interactive Card (Haute Obsidian & Velvet Ruby) ──────────────────── */
.rb-card-scene {
   perspective: 1200px;
   width: 100%;
   max-width: 320px;
   height: 202px;
   margin: 0.25rem auto 1.15rem auto;
   cursor: pointer;
}

.rb-card-inner {
   position: relative;
   width: 100%;
   height: 100%;
   border-radius: 16px;
   transform-style: preserve-3d;
   transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
   box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12);
   will-change: transform;
}

.rb-card-inner.flipped {
   transform: rotateY(180deg) !important;
}

.rb-card-face {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   border-radius: 16px;
   backface-visibility: hidden;
   -webkit-backface-visibility: hidden;
   overflow: hidden;
   box-sizing: border-box;
}

/* Front Face: Haute Luxury 3D Card Base */
.rb-card-front {
   position: relative;
   color: #FFF;
   padding: 1.1rem 1.25rem 1.15rem 1.25rem;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   background: linear-gradient(135deg, #1C1917 0%, #292524 45%, #44403C 85%, #1C1917 100%);
   border: 1.5px solid #D4AF37;
   box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 15px 35px rgba(0, 0, 0, 0.35);
   border-radius: 16px;
   transition: transform 0.4s ease, border-color 0.4s ease;
   box-sizing: border-box;
}

.rb-card-glare {
   position: absolute;
   inset: 0;
   background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.3s ease;
   mix-blend-mode: overlay;
   z-index: 10;
}

.rb-card-top {
   display: flex;
   align-items: center;
   justify-content: space-between;
   position: relative;
   z-index: 2;
}

.rb-chip-wrap {
   width: 40px;
   height: 29px;
   border-radius: 6px;
   background: linear-gradient(135deg, #FFE896 0%, #D4AF37 50%, #9B7811 100%);
   position: relative;
   border: 1px solid #B89125;
   box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
   flex-shrink: 0;
}

.rb-chip-lines {
   position: absolute;
   inset: 3px 5px;
   border: 1px solid rgba(0, 0, 0, 0.3);
   border-radius: 3px;
}

.rb-chip-core {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 14px;
   height: 9px;
   border: 1px solid rgba(0, 0, 0, 0.25);
   border-radius: 2px;
}

.rb-nfc-icon {
   color: rgba(255, 255, 255, 0.9);
   margin-left: 0.65rem;
   margin-right: auto;
   display: flex;
   align-items: center;
}

.rb-brand-logo-wrap {
   text-align: right;
   flex-shrink: 0;
}

.rb-brand-text {
   font-family: var(--font-serif, "Cinzel", Georgia, serif);
   font-weight: 900;
   font-size: 0.88rem;
   letter-spacing: 0.12em;
   color: #F3E5AB;
   text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
   text-transform: uppercase;
   line-height: 1.1;
}

.rb-card-middle {
   margin: 0.15rem 0;
   position: relative;
   z-index: 2;
}

/* Embossed 3D Metallic Foil Typography */
.rb-number-display {
   font-family: 'Consolas', 'Courier New', monospace;
   font-size: 1.12rem;
   letter-spacing: 0.14em;
   font-weight: 800;
   color: #FFFDF0;
   text-shadow: 
     0 1px 0 rgba(255, 255, 255, 0.45),
     0 -1px 0 rgba(0, 0, 0, 0.9),
     1px 2px 6px rgba(0, 0, 0, 0.95);
   display: block;
   white-space: nowrap;
}

.rb-card-bottom {
   display: flex;
   justify-content: space-between;
   align-items: flex-end;
   position: relative;
   z-index: 2;
   gap: 0.65rem;
}

.rb-holder-group {
   flex: 1;
   min-width: 0;
   overflow: hidden;
}

.rb-exp-group {
   flex-shrink: 0;
   text-align: right;
}

.rb-label {
   font-size: 0.55rem;
   font-weight: 700;
   letter-spacing: 0.1em;
   color: rgba(255, 255, 255, 0.7);
   display: block;
   margin-bottom: 2px;
   text-transform: uppercase;
}

.rb-val {
   font-family: 'Consolas', 'Courier New', monospace;
   font-size: 0.76rem;
   font-weight: 800;
   color: #F3E5AB;
   text-shadow: 
     0 1px 0 rgba(255, 255, 255, 0.3),
     0 -1px 0 rgba(0, 0, 0, 0.8),
     1px 2px 4px rgba(0, 0, 0, 0.8);
   letter-spacing: 0.05em;
   display: block;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   text-transform: uppercase;
   line-height: 1.2;
}


.rb-card-back {
   background: linear-gradient(135deg, #1A0005 0%, #0B0B0E 60%, #000000 100%);
   transform: rotateY(180deg);
   border: 1.5px solid rgba(212, 175, 55, 0.6);
   padding-top: 1.25rem;
   display: flex;
   flex-direction: column;
}

.rb-mag-stripe {
   width: 100%;
   height: 34px;
   background: #000;
   box-shadow: inset 0 2px 4px rgba(0,0,0,0.9);
   margin-bottom: 0.75rem;
}

.rb-back-cvv-row {
   padding: 0 1.25rem;
}

.rb-cvv-stripe {
   background: #FFF;
   height: 30px;
   border-radius: 4px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0 0.8rem;
}

.rb-cvv-watermark {
   font-size: 0.62rem;
   font-weight: 700;
   color: #94A3B8;
   letter-spacing: 0.05em;
   user-select: none;
}

.rb-cvv-number {
   font-family: var(--font-mono, monospace);
   font-weight: 900;
   font-size: 0.95rem;
   color: #0F172A;
   letter-spacing: 0.15em;
}

.rb-back-disclaimer {
   padding: 0.5rem 1.25rem 0 1.25rem;
   font-size: 0.62rem;
   color: rgba(255, 255, 255, 0.65);
   line-height: 1.3;
}

.rb-hologram-seal {
   width: 38px;
   height: 26px;
   border-radius: 5px;
   background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 25%, #45B7D1 50%, #FFA07A 75%, #98D8C8 100%);
   margin: auto 1.25rem 0.85rem auto;
   opacity: 0.85;
   border: 1px solid rgba(255, 255, 255, 0.4);
   box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* ─── QR Code Method (Haute Fintech 2-Column) ────────────────────────────── */
.niubiz-qr-grid-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.85rem;
  align-items: start;
}

.niubiz-qr-card-visual {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1.5px solid #D4AF37;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.niubiz-qr-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.niubiz-qr-header-kicker {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #D4AF37;
  text-transform: uppercase;
}

.niubiz-qr-header-brand {
  font-family: var(--font-serif, "Cinzel", Georgia, serif);
  font-size: 0.98rem;
  font-weight: 900;
  color: #F3E5AB;
  letter-spacing: 0.08em;
}

.niubiz-qr-frame-glow {
  background: #FFFFFF;
  padding: 10px;
  border-radius: 14px;
  margin: 0.85rem 0;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.niubiz-qr-canvas-box canvas {
  width: 175px !important;
  height: 175px !important;
  display: block;
}

.niubiz-qr-timer-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.76rem;
  color: #F3E5AB;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.niubiz-qr-timer-badge .timer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  display: inline-block;
}

.niubiz-qr-crypto-seal {
  font-size: 0.68rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.niubiz-qr-action-col {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.niubiz-qr-col-header h4 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0F172A;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.niubiz-qr-col-header p {
  font-size: 0.82rem;
  color: #64748B;
  margin: 0 0 1rem 0;
}

.niubiz-wallets-supported-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.wallet-pill {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
}

.wallet-pill.yape { background: #742284; color: #FFF; }
.wallet-pill.plin { background: #00D1D2; color: #072146; }
.wallet-pill.agora { background: #00A650; color: #FFF; }
.wallet-pill.bim { background: #E30613; color: #FFF; }
.wallet-pill.ligo { background: #00529B; color: #FFF; }
.wallet-pill.banks { background: #FFFFFF; border-color: #CBD5E1; color: #334155; }

.niubiz-qr-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.qr-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.4;
}

.qr-step-item .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #722F37;
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.niubiz-qr-total-box {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1.5px solid #F59E0B;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}

.niubiz-qr-total-box .total-lbl {
  font-size: 0.76rem;
  font-weight: 900;
  color: #92400E;
  display: block;
  letter-spacing: 0.05em;
}

.niubiz-qr-total-box .total-sub {
  font-size: 0.66rem;
  color: #B45309;
  display: block;
}

.niubiz-qr-total-box .total-amount-display {
  font-size: 1.55rem;
  font-weight: 900;
  color: #722F37;
  white-space: nowrap;
}

/* ─── Yape Direct Method (Haute Fintech 2-Column) ────────────────────────── */
.niubiz-yape-grid-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.85rem;
  align-items: start;
}

.niubiz-yape-visual-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.niubiz-yape-card-badge {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #742284 0%, #4D125A 100%);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFF;
  margin-bottom: 1rem;
  box-shadow: 0 8px 25px rgba(116, 34, 132, 0.25);
  border: 1.5px solid #A855F7;
}

.yape-big-logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.yape-tag-gold {
  background: #FFD700;
  color: #000000;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.yape-instruction-box {
  width: 100%;
  box-sizing: border-box;
  background: #FAF5FF;
  border: 1.5px solid #E9D5FF;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  color: #581C87;
}

.yape-instruction-box h5 {
  font-size: 0.85rem;
  font-weight: 900;
  margin: 0 0 0.65rem 0;
  color: #6B21A8;
  letter-spacing: -0.01em;
}

.yape-instruction-box ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #3B0764;
}

.yape-instruction-box li {
  margin-bottom: 0.4rem;
}

.yape-instruction-box li:last-child {
  margin-bottom: 0;
}

.niubiz-yape-form-col {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.niubiz-yape-form-header h4 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0F172A;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.niubiz-yape-form-header p {
  font-size: 0.82rem;
  color: #64748B;
  margin: 0 0 1.15rem 0;
}

.yape-otp-input {
  letter-spacing: 0.4em !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  font-family: 'Consolas', monospace !important;
  text-align: center;
}

.niubiz-btn-yape {
  background: linear-gradient(135deg, #742284 0%, #52175E 100%) !important;
  box-shadow: 0 8px 25px rgba(116, 34, 132, 0.35) !important;
}

.niubiz-btn-yape:hover {
  background: linear-gradient(135deg, #8B2BA0 0%, #681C77 100%) !important;
  box-shadow: 0 12px 30px rgba(116, 34, 132, 0.45) !important;
}

/* ─── Footer Legal ───────────────────────────────────────────────────────── */
.niubiz-footer-legal {
  margin-top: 1.5rem;
  text-align: center;
  border-top: 1px solid #E2E8F0;
  padding-top: 1.25rem;
}

.niubiz-footer-legal p {
  font-size: 0.72rem;
  color: #64748B;
  margin-bottom: 0.75rem;
}

.niubiz-footer-legal a {
  color: #722F37;
  font-weight: 800;
  text-decoration: underline;
}

.niubiz-trust-seals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.niubiz-trust-seals .niubiz-pill-logo {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #64748B;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .niubiz-card-grid-layout,
  .niubiz-qr-grid-layout,
  .niubiz-yape-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .niubiz-stage-body {
    padding: 1.15rem 1rem;
  }
  .niubiz-input-row-2col {
    grid-template-columns: 1fr;
  }
}
