/* ==========================================================================
   PAYWALL & VIP UPGRADE MONETIZATION STYLES (WEDDING PLANNER)
   ========================================================================== */

/* 1. Header VIP Button & Status Pill */
.btn-vip-upgrade {
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 50%, #B38728 100%);
  color: #2A1800 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem !important;
  border-radius: 9999px !important;
}

.btn-vip-upgrade::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(30deg);
  animation: vipShimmer 3.5s infinite;
}

@keyframes vipShimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  30%, 100% { transform: translateX(100%) rotate(30deg); }
}

.btn-vip-upgrade:hover {
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.vip-active-pill {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #FFFFFF !important;
  border: 1px solid rgba(191, 219, 254, 0.5);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3);
}

/* 2. Locked Badge & Feature Gate Indicator */
.locked-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.btn-locked {
  position: relative;
}

.btn-locked::after {
  content: '👑 VIP';
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #D4AF37, #B38728);
  color: #FFF;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* 3. Quota Progress Bar for Free Plan */
.quota-banner-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quota-info-text {
  font-size: 0.82rem;
  color: #92400E;
}

.quota-info-text strong {
  color: #78350F;
}

.quota-progress-track {
  width: 130px;
  height: 6px;
  background: #FEE2E2;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 4px;
}

.quota-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #EF4444);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* ==========================================================================
   4. PAYWALL MODAL CONTAINER & BACKDROP
   ========================================================================== */
.paywall-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 12, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.paywall-dialog {
  background: #FCF8F5;
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.3);
  overflow-y: auto;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem 1.75rem 2.25rem;
}

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

.paywall-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #4B5563;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  touch-action: manipulation;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

/* Extended touch hit area for mobile devices (minimum 60px x 60px touch target) */
.paywall-close-btn::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: transparent;
}

.paywall-close-btn:hover {
  background: #F3F4F6;
  color: #111827;
  transform: scale(1.06);
}

.paywall-close-btn:active {
  transform: scale(0.95);
  background: #E5E7EB;
}

/* Paywall Header with 3D Crown */
.paywall-header-section {
  text-align: center;
  margin-bottom: 1.75rem;
  position: relative;
}

.paywall-crown-badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  background: radial-gradient(circle at 35% 35%, #FFF8E7 0%, #FEE8C8 70%, #FBD4A3 100%);
  border-radius: 22px;
  border: 2px solid #F5C27A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.35);
  transform: rotate(-6deg);
  animation: crownHover 3s ease-in-out infinite alternate;
}

@keyframes crownHover {
  0% { transform: rotate(-6deg) translateY(0); }
  100% { transform: rotate(-3deg) translateY(-5px); }
}

.paywall-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.4rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.paywall-subtitle {
  font-size: 0.88rem;
  color: #6B7280;
  line-height: 1.45;
  max-width: 440px;
  margin: 0 auto;
}

.paywall-feature-alert {
  background: #FFF3E0;
  border: 1px dashed #FFB74D;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: #E65100;
  margin-top: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

/* ==========================================================================
   5. THREE PLAN CARDS (MONTHLY, SEASON, COUPLE)
   ========================================================================== */
.paywall-plans-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.plan-card {
  background: #FFFFFF;
  border: 1.5px solid #EAE5DF;
  border-radius: 18px;
  padding: 1.25rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.plan-card:hover {
  border-color: #D4AF37;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18);
}

.plan-card.selected {
  border: 2px solid #D69542 !important;
  background: #FFFCF9 !important;
  box-shadow: 0 10px 30px rgba(214, 149, 66, 0.22) !important;
}

.plan-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.plan-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.plan-icon-monthly { background: #FEF3C7; color: #D97706; }
.plan-icon-season { background: linear-gradient(135deg, #FDE68A, #F59E0B); color: #78350F; }
.plan-icon-couple { background: #FCE7F3; color: #DB2777; }

.plan-details-col {
  flex: 1;
}

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

.plan-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #1E293B;
  letter-spacing: -0.01em;
}

.badge-best-seller {
  background: linear-gradient(135deg, #EAA43A, #D68826);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-two-users {
  background: #FFE7EE;
  color: #D3376E;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.plan-desc {
  font-size: 0.8rem;
  color: #6B7280;
  margin: 0.25rem 0 0.45rem;
  line-height: 1.35;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.plan-price-amount {
  font-size: 1.35rem;
  font-weight: 900;
  color: #111827;
}

.plan-price-unit {
  font-size: 0.8rem;
  color: #6B7280;
}

.plan-price-one-time {
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-top: 1px;
}

.plan-radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.plan-card.selected .plan-radio-circle {
  border-color: #8E572B;
  background: #8E572B;
}

.plan-radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFF;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.plan-card.selected .plan-radio-inner {
  opacity: 1;
}

/* Feature Checkmarks List */
.plan-features-list {
  border-top: 1px dashed #E5E7EB;
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #4B5563;
  line-height: 1.35;
}

.plan-feature-item strong {
  color: #1F2937;
}

.plan-check-icon {
  color: #A87750;
  font-size: 0.95rem;
  font-weight: 900;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}

/* ==========================================================================
   6. CHECKOUT ACTIONS & VIETQR PAYMENT SECTION
   ========================================================================== */
.paywall-checkout-box {
  background: #FFFFFF;
  border: 1px solid #EAE5DF;
  border-radius: 18px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.checkout-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 0.5rem;
}

.checkout-tab-btn {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #6B7280;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-tab-btn.active {
  background: #FDF2E9;
  color: #B45309;
}

.qr-payment-layout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.qr-code-img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  border: 1.5px solid #E5E7EB;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.qr-instruction-info {
  flex: 1;
  min-width: 220px;
  font-size: 0.8rem;
  color: #4B5563;
  line-height: 1.45;
}

.qr-info-row {
  margin-bottom: 0.35rem;
}

.qr-info-row strong {
  color: #111827;
}

.qr-copy-tag {
  background: #F3F4F6;
  border: 1px solid #D1D5DB;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.82rem;
  color: #1E3A8A;
  cursor: pointer;
}

/* One-Click Demo Activation Button */
.btn-paywall-unlock-now {
  width: 100%;
  background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
  color: #FFFFFF;
  border: none;
  padding: 0.95rem 1.5rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.btn-paywall-unlock-now:hover {
  background: linear-gradient(135deg, #FB7185 0%, #F43F5E 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.5);
}

.btn-quick-activate-demo {
  width: 100%;
  background: #F9FAFB;
  border: 1px dashed #D1D5DB;
  color: #4B5563;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.65rem;
  transition: all 0.2s ease;
}

.btn-quick-activate-demo:hover {
  background: #F3F4F6;
  color: #111827;
  border-color: #9CA3AF;
}

/* Security Footer */
.paywall-security-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-top: 1rem;
}
