/* ==========================================================================
   EXCELALGO TRADER — PRO UPGRADE PAYWALL MODAL STYLESHEET
   High-converting, temptation-driven dark glassmorphic styling
   ========================================================================== */

.pro-paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
}

.pro-paywall-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.pro-paywall-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.96));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pro-paywall-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  background: #0b1120;
  background: linear-gradient(180deg, #0d1527 0%, #080d19 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85),
              0 0 35px -5px rgba(56, 189, 248, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #f1f5f9;
  font-family: inherit;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-paywall-overlay.is-active .pro-paywall-container {
  transform: scale(1) translateY(0);
}

.pro-paywall-scroll {
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Close Button */
.pro-paywall-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.pro-paywall-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.5);
  transform: rotate(90deg);
}

/* Header Section */
.pro-paywall-header {
  text-align: center;
  padding: 4px 12px 0;
}

.pro-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pro-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 179, 8, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.pro-guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
}

.pro-sparkle {
  animation: proPulse 1.8s infinite;
}

@keyframes proPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.25); filter: brightness(1.4); }
}

.pro-paywall-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
}

.pro-paywall-subtitle {
  margin: 0 auto;
  max-width: 540px;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Urgency Banner */
.pro-urgency-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.16), rgba(239, 68, 68, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.8rem;
  color: #fde68a;
  text-align: center;
}

.pro-fire-icon {
  font-size: 14px;
}

/* Temptation Grid */
.pro-temptation-section {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px;
}

.pro-temptation-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 10px;
}

.pro-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pro-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 10px;
  transition: all 0.15s ease;
}

.pro-feature-card:hover {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(56, 189, 248, 0.3);
}

.pro-feature-icon {
  font-size: 16px;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 1px;
}

.pro-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pro-feature-text strong {
  font-size: 0.78rem;
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.2;
}

.pro-feature-text span {
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.3;
}

/* Pricing Tiers Section */
.pro-tiers-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pro-tiers-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.pro-tiers-label {
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #cbd5e1;
}

.pro-tiers-sublabel {
  color: #4ade80;
  font-weight: 600;
}

.pro-tier-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pro-tier-card {
  position: relative;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 14px 12px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.pro-tier-card:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.pro-tier-card.selected {
  background: linear-gradient(180deg, rgba(30, 58, 95, 0.5) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 20px -3px rgba(56, 189, 248, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pro-tier-card.pro-tier-featured.selected {
  border-color: #fbbf24;
  box-shadow: 0 0 24px -3px rgba(245, 158, 11, 0.38),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pro-ribbon {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pro-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.pro-tier-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
}

.pro-tier-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.pro-tag-discount {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.pro-tag-gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.pro-tier-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.pro-old-price {
  font-size: 0.72rem;
  color: #64748b;
  text-decoration: line-through;
}

.pro-price-current {
  display: flex;
  align-items: baseline;
  color: #ffffff;
  font-weight: 800;
}

.pro-currency {
  font-size: 0.9rem;
  color: #38bdf8;
  margin-right: 1px;
}

.pro-tier-card.pro-tier-featured .pro-currency {
  color: #fbbf24;
}

.pro-amount {
  font-size: 1.35rem;
  line-height: 1;
}

.pro-duration {
  font-size: 0.7rem;
  color: #94a3b8;
}

.pro-tier-note {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.25;
  margin-top: 2px;
}

/* Coupon Row */
.pro-coupon-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pro-coupon-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 4px 6px 4px 10px;
  gap: 6px;
}

.pro-coupon-icon {
  font-size: 13px;
  opacity: 0.7;
}

.pro-coupon-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.82rem;
  outline: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pro-coupon-input-wrap input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.pro-coupon-btn {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pro-coupon-btn:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: #38bdf8;
}

.pro-coupon-msg {
  font-size: 0.72rem;
  padding-left: 4px;
}

/* Checkout Section */
.pro-checkout-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pro-btn-pay-online {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-btn-pay-online:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 50%, #4338ca 100%);
  box-shadow: 0 12px 30px -5px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

.pro-btn-pay-online:active {
  transform: translateY(1px);
}

.pro-btn-icon {
  font-size: 20px;
}

.pro-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.pro-btn-main {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pro-btn-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

.pro-arrow {
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.pro-btn-pay-online:hover .pro-arrow {
  transform: translateX(4px);
}

/* UPI Toggle & Panel */
.pro-upi-toggle-wrap {
  text-align: center;
}

.pro-btn-upi-toggle {
  background: transparent;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.pro-btn-upi-toggle:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: #38bdf8;
  color: #ffffff;
}

.pro-upi-panel {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 14px;
  animation: proFadeIn 0.2s ease;
}

@keyframes proFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pro-upi-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.pro-upi-qr-box {
  background: #ffffff;
  padding: 8px;
  border-radius: 10px;
  text-align: center;
  width: 130px;
  flex-shrink: 0;
  margin: 0 auto;
}

.pro-upi-qr-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  display: block;
}

.pro-upi-qr-label {
  font-size: 9px;
  font-weight: 700;
  color: #0f172a;
  display: block;
  margin-top: 4px;
}

.pro-upi-details {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pro-upi-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.7);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
}

.pro-upi-id-label {
  color: #94a3b8;
  font-size: 0.75rem;
}

.pro-upi-id-text {
  color: #38bdf8;
  font-weight: 700;
  flex: 1;
  word-break: break-all;
}

.pro-btn-copy-upi {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.pro-btn-copy-upi:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}

.pro-upi-instruction {
  margin: 0;
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.pro-upi-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pro-utr-input,
.pro-vpa-input {
  width: 100%;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  padding: 7px 10px;
  color: #ffffff;
  font-size: 0.82rem;
  outline: none;
}

.pro-utr-input:focus,
.pro-vpa-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.pro-btn-submit-upi {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pro-btn-submit-upi:hover {
  background: #059669;
}

.pro-btn-submit-upi:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pro-upi-status {
  font-size: 0.75rem;
  min-height: 16px;
}

/* Trial Quick-Start Row */
.pro-trial-alt-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  flex-wrap: wrap;
}

.pro-trial-lead {
  font-size: 0.78rem;
  color: #a7f3d0;
}

.pro-btn-trial {
  background: #10b981;
  border: none;
  color: #064e3b;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pro-btn-trial:hover {
  background: #34d399;
  color: #022c22;
}

/* Guest Row */
.pro-guest-alt-row {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
}

.pro-link-signup {
  color: #38bdf8;
  font-weight: 700;
  margin-left: 4px;
  text-decoration: underline;
}

/* Footer Section */
.pro-paywall-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.pro-trust-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 0.72rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.pro-footer-note {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.4;
}

.pro-footer-note a {
  color: #38bdf8;
  text-decoration: none;
}

.pro-footer-note a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 640px) {
  .pro-paywall-scroll {
    padding: 18px 16px;
    gap: 14px;
  }
  .pro-paywall-title {
    font-size: 1.3rem;
  }
  .pro-features-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pro-tier-cards-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pro-tier-card {
    padding: 12px;
  }
  .pro-btn-main {
    font-size: 0.95rem;
  }
  .pro-upi-inner {
    flex-direction: column;
  }
  .pro-upi-qr-box {
    width: 140px;
  }
  .pro-trust-badges {
    gap: 8px;
    font-size: 0.68rem;
  }
}
