/* ==========================================================================
   SwapnoFlix Super VIP & SwapnoPay Checkout Experience (Web Parity v3.0)
   Matches Android SuperVipSubscriberScreen & SwapnoPay Hosted Gateway
   ========================================================================== */

/* Pricing Modal Backdrop */
.swapnoflix-vip-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  overflow-y: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

.swapnoflix-vip-modal.open {
  display: flex !important;
}

/* Modal Box Container */
.swapnoflix-vip-box {
  width: 100%;
  max-width: 940px;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #221208 0%, #150B05 45%, #0B0502 100%);
  border: 1px solid rgba(255, 213, 79, 0.45);
  border-radius: 22px;
  padding: 26px 24px 22px 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 179, 0, 0.16);
  position: relative;
  color: #ffffff;
  box-sizing: border-box;
  animation: vipModalScale 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin: auto;
}

/* Custom Scrollbar */
.swapnoflix-vip-box::-webkit-scrollbar {
  width: 6px;
}
.swapnoflix-vip-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}
.swapnoflix-vip-box::-webkit-scrollbar-thumb {
  background: rgba(255, 213, 79, 0.3);
  border-radius: 10px;
}
.swapnoflix-vip-box::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 213, 79, 0.6);
}

@keyframes vipModalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Close Button */
.vip-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
.vip-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.06);
}

/* Header Section */
.vip-modal-header {
  text-align: center;
  margin-bottom: 18px;
}
.vip-crown-badge-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.35) 0%, rgba(255, 179, 0, 0.1) 70%, transparent 100%);
  border: 1.5px solid rgba(255, 213, 79, 0.6);
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.35);
  margin-bottom: 8px;
  font-size: 26px;
  animation: vipPulseGlow 3s infinite alternate;
}

@keyframes vipPulseGlow {
  0% { box-shadow: 0 0 15px rgba(255, 193, 7, 0.25); transform: scale(1); }
  100% { box-shadow: 0 0 35px rgba(255, 193, 7, 0.6); transform: scale(1.04); }
}

.vip-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffd54f;
  margin-bottom: 3px;
}
.vip-title {
  font-size: 25px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.4px;
}
.vip-subtitle {
  font-size: 13px;
  color: #cfd8dc;
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.45;
}

/* Live Countdown Offer Banner */
.vip-countdown-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 143, 0, 0.16);
  border: 1px solid rgba(255, 179, 0, 0.45);
  border-radius: 30px;
  padding: 5px 16px;
  font-size: 12px;
  color: #ffe082;
  font-weight: 600;
  margin-top: 10px;
}
.vip-timer-digits {
  font-family: monospace;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 213, 79, 0.4);
  letter-spacing: 1px;
}

/* Active VIP Member Card */
.vip-active-banner {
  background: linear-gradient(90deg, rgba(62, 39, 35, 0.9) 0%, rgba(38, 20, 10, 0.95) 100%);
  border: 1.5px solid #ffd54f;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.vip-active-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vip-active-crown {
  font-size: 22px;
}
.vip-active-text h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffd54f;
}
.vip-active-text p {
  margin: 2px 0 0 0;
  font-size: 11.5px;
  color: #d7ccc8;
}

/* Plan Selection Cards Grid (3 Columns) */
.vip-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.vip-plan-card {
  background: rgba(35, 18, 9, 0.85);
  border: 1.5px solid rgba(255, 213, 79, 0.25);
  border-radius: 16px;
  padding: 18px 16px 14px 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.vip-plan-card:hover {
  border-color: rgba(255, 213, 79, 0.65);
  transform: translateY(-2px);
  background: rgba(45, 24, 12, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.vip-plan-card.selected {
  border-color: #ffd54f;
  background: linear-gradient(180deg, rgba(62, 34, 17, 0.95) 0%, rgba(35, 18, 9, 0.95) 100%);
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.3), inset 0 0 15px rgba(255, 213, 79, 0.08);
}

.vip-badge-pill {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #ff8f00, #ffb300);
  color: #211103;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2.5px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
.vip-plan-card.best-value .vip-badge-pill {
  background: linear-gradient(90deg, #ff6d00, #ffd54f);
  color: #000;
}

.vip-plan-header {
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.vip-plan-name {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 2px 0;
}
.vip-plan-period {
  font-size: 10.5px;
  color: #bcaaa4;
}

.vip-price-wrap {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.vip-original-price {
  font-size: 12.5px;
  color: #8d6e63;
  text-decoration: line-through;
}
.vip-sale-price {
  font-size: 24px;
  font-weight: 900;
  color: #ffd54f;
}
.vip-cur {
  font-size: 18px;
  font-weight: 700;
  margin-right: 1px;
}
.vip-billing-sub {
  font-size: 10px;
  color: #a1887f;
  margin-top: 2px;
}

.vip-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  flex: 1;
}
.vip-feature-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #d7ccc8;
  margin-bottom: 6px;
}
.vip-feature-row svg {
  color: #4caf50;
  flex-shrink: 0;
}

.vip-select-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  font-weight: 700;
  color: #d7ccc8;
  transition: all 0.2s ease;
}
.vip-plan-card.selected .vip-select-indicator {
  background: #ffd54f;
  color: #211103;
  font-weight: 800;
}

/* Lifetime Pass Strip */
.vip-lifetime-strip {
  background: rgba(255, 179, 0, 0.08);
  border: 1px dashed rgba(255, 213, 79, 0.35);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.vip-lifetime-strip:hover {
  background: rgba(255, 179, 0, 0.15);
  border-color: #ffd54f;
}
.vip-lifetime-strip.selected {
  background: rgba(255, 213, 79, 0.2);
  border-style: solid;
  border-color: #ffd54f;
}
.vip-lifetime-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vip-lifetime-badge {
  background: linear-gradient(90deg, #ff8f00, #ffd54f);
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
}
.vip-lifetime-info h5 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
}
.vip-lifetime-info p {
  margin: 1px 0 0 0;
  font-size: 10.5px;
  color: #bcaaa4;
}
.vip-lifetime-price {
  font-size: 15px;
  font-weight: 900;
  color: #ffd54f;
}

/* Proceed to Checkout CTA */
.vip-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.btn-vip-checkout-main {
  width: 100%;
  max-width: 440px;
  height: 48px;
  background: linear-gradient(90deg, #ffb300 0%, #ffd54f 50%, #ffb300 100%);
  background-size: 200% auto;
  color: #211103;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
  transition: all 0.22s ease;
}
.btn-vip-checkout-main:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 179, 0, 0.55);
}
.btn-vip-checkout-main:active {
  transform: translateY(0);
}

.vip-security-guarantee {
  font-size: 11.5px;
  color: #8d6e63;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   CHECKOUT STEP (SwapnoPay Gateway Parity)
   ========================================================================== */
.vip-checkout-step {
  display: none;
}
.vip-checkout-step.active {
  display: block;
}
.vip-plans-step.hidden {
  display: none;
}

.vip-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.vip-back-to-plans {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #ffd54f;
  background: rgba(255, 213, 79, 0.1);
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 213, 79, 0.3);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.vip-back-to-plans:hover {
  background: rgba(255, 213, 79, 0.2);
  color: #ffffff;
}

.vip-swapnopay-branding {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vip-swapnopay-badge {
  background: #ffb300;
  color: #1a0e05;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 5px;
}

/* Order Summary Box */
.vip-summary-card {
  background: #2a160b;
  border: 1px solid rgba(255, 213, 79, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.vip-summary-title {
  font-size: 10px;
  text-transform: uppercase;
  color: #bcaaa4;
  font-weight: 700;
  margin-bottom: 2px;
}
.vip-summary-plan {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}
.vip-summary-sub {
  font-size: 11px;
  color: #a1887f;
}
.vip-summary-price-side {
  text-align: right;
}
.vip-summary-label {
  font-size: 9.5px;
  color: #bcaaa4;
  text-transform: uppercase;
}
.vip-summary-total {
  font-size: 24px;
  font-weight: 900;
  color: #ffd54f;
  margin-top: 1px;
}

/* Dynamic Promo Code Card */
.vip-promo-card {
  background: #211208;
  border: 1px solid rgba(255, 213, 79, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
.vip-promo-card.valid {
  border-color: #4caf50;
  background: rgba(46, 125, 50, 0.12);
}
.vip-promo-card.invalid {
  border-color: #ef5350;
  background: rgba(239, 83, 80, 0.1);
}

.vip-promo-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffe082;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vip-promo-input-row {
  display: flex;
  gap: 8px;
}
.vip-promo-input {
  flex: 1;
  background: #140a04;
  border: 1px solid rgba(255, 213, 79, 0.3);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s;
}
.vip-promo-input:focus {
  border-color: #ffd54f;
}
.btn-vip-apply-promo {
  background: #ffb300;
  color: #211103;
  border: none;
  border-radius: 9px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-vip-apply-promo:hover {
  background: #ffd54f;
}
.btn-vip-apply-promo.applied {
  background: #2e7d32;
  color: #ffffff;
}

.vip-promo-feedback {
  font-size: 11.5px;
  margin-top: 6px;
  display: none;
  font-weight: 600;
}
.vip-promo-feedback.show {
  display: block;
}
.vip-promo-feedback.success {
  color: #81c784;
}
.vip-promo-feedback.error {
  color: #e57373;
}

/* Gateway Selector Grid */
.vip-gateways-title {
  font-size: 12px;
  font-weight: 700;
  color: #d7ccc8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vip-gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.vip-gateway-item {
  background: #201209;
  border: 1.5px solid rgba(255, 213, 79, 0.2);
  border-radius: 11px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
}
.vip-gateway-item:hover {
  border-color: rgba(255, 213, 79, 0.5);
  background: #2b180d;
}
.vip-gateway-item.selected {
  border-color: #ffd54f;
  background: rgba(255, 213, 79, 0.12);
  box-shadow: 0 0 12px rgba(255, 179, 0, 0.25);
}
.vip-gateway-item.bkash.selected { border-color: #E2136E; background: rgba(226, 19, 110, 0.14); }
.vip-gateway-item.nagad.selected { border-color: #F7941D; background: rgba(247, 148, 29, 0.14); }
.vip-gateway-item.rocket.selected { border-color: #8C3494; background: rgba(140, 52, 148, 0.14); }
.vip-gateway-item.crypto.selected { border-color: #10B981; background: rgba(16, 185, 129, 0.14); }

.vip-gateway-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
}
.vip-gateway-name {
  font-size: 11px;
  font-weight: 700;
  color: #e0e0e0;
}

/* Gateway Details Form Area */
.vip-payment-details-box {
  background: #1e1007;
  border: 1px solid rgba(255, 213, 79, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.vip-payment-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}
.vip-mode-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #bcaaa4;
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.vip-mode-tab.active {
  background: #ffb300;
  color: #211103;
  border-color: #ffd54f;
}

.vip-input-group {
  margin-bottom: 10px;
}
.vip-input-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #d7ccc8;
  margin-bottom: 4px;
}
.vip-text-input {
  width: 100%;
  box-sizing: border-box;
  background: #110904;
  border: 1px solid rgba(255, 213, 79, 0.3);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}
.vip-text-input:focus {
  border-color: #ffd54f;
}

/* Merchant Info Box */
.vip-merchant-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 213, 79, 0.4);
  border-radius: 9px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 10px 0;
}
.vip-merchant-number {
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  color: #ffd54f;
}
.btn-vip-copy {
  background: rgba(255, 213, 79, 0.15);
  border: 1px solid rgba(255, 213, 79, 0.3);
  color: #ffd54f;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-vip-copy:hover {
  background: #ffd54f;
  color: #000;
}

/* Crypto View */
.vip-crypto-details {
  display: none;
}
.vip-crypto-details.active {
  display: block;
}
.vip-crypto-networks {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}
.vip-crypto-net-pill {
  background: #16261f;
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}
.vip-crypto-net-pill.selected {
  background: #10b981;
  color: #064e3b;
  border-color: #34d399;
}
.vip-crypto-address-row {
  background: #091510;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.vip-crypto-address-val {
  font-family: monospace;
  font-size: 11px;
  color: #6ee7b7;
  word-break: break-all;
}

/* Final Submit Button */
.btn-vip-final-pay {
  width: 100%;
  height: 48px;
  background: linear-gradient(90deg, #ffb300, #ffd54f);
  color: #211103;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
  transition: all 0.2s;
}
.btn-vip-final-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 179, 0, 0.55);
}
.btn-vip-final-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-vip-final-pay.crypto-mode {
  background: linear-gradient(90deg, #10b981, #34d399);
  color: #064e3b;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.vip-loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: vipSpin 0.7s linear infinite;
}
@keyframes vipSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   CELEBRATION SUCCESS STATE
   ========================================================================== */
.vip-celebration-step {
  display: none;
  text-align: center;
  padding: 24px 16px;
}
.vip-celebration-step.active {
  display: block;
}
.vip-celebration-icon {
  font-size: 56px;
  margin-bottom: 12px;
  animation: vipBounce 1s infinite alternate;
}
@keyframes vipBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}
.vip-celebration-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffd54f;
  margin: 0 0 6px 0;
}
.vip-celebration-desc {
  font-size: 13.5px;
  color: #cfd8dc;
  max-width: 500px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}
.btn-vip-stream-now {
  background: linear-gradient(90deg, #ffb300, #ffd54f);
  color: #211103;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
  transition: all 0.2s;
}
.btn-vip-stream-now:hover {
  transform: scale(1.04);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .swapnoflix-vip-box {
    padding: 20px 14px;
    border-radius: 16px;
  }
  .vip-plans-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .vip-title {
    font-size: 21px;
  }
  .vip-gateway-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
