* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100vh; width: 100%; }
body {
  background: radial-gradient(ellipse at top right, rgba(236, 0, 140, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, #1a0a2e 0%, #0d0d2b 100%);
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  text-align: center;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { align-items: center; } }

.wrap {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(210deg, #86208f 2%, #231663 30%, #2d1282 100%, #0e0a15 100%, #1a0d26 100%);
}

@media (min-width: 768px) {
  .wrap { min-height: auto; margin: 2rem 0; border-radius: 2rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
}
.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: rgba(255,255,255,0.35);
    pointer-events: none;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.5rem;
  margin-top: 1rem;
}

.top-nav-left { display: flex; align-items: center; gap: 0.5rem; }
.back-arrow { font-size: 1.25rem; cursor: pointer; color: #fff; background: none; border: none; }
.top-nav-title { font-size: 0.95rem; font-weight: 600; }
.secure-badge { font-size: 0.8rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 0.25rem; }
.secure-badge span { color: #f5c542; }

.step-indicator {
  display: flex; align-items: center; padding: 1rem 1.25rem 0.5rem; gap: 0;
}

.step-dot {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0; z-index: 1;
}

.step-dot.completed { background: #22c55e; color: #fff; }
.step-dot.active { background: #22c55e; color: #fff; }
.step-dot.inactive { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); }
.step-line { flex: 1; height: 3px; }
.step-line.completed { background: #22c55e; }
.step-line.inactive { background: rgba(255,255,255,0.15); }

.content { padding: 0.75rem 1.25rem 1.5rem; }

.main-heading {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}
.sub-heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: #c5c2c2;
  text-align: left;
  margin-bottom: 1rem;
}

.field-label {
  font-size: 0.85rem;
  color: white;
  margin-bottom: 0.75rem;
  position: relative;
  text-align: center;
  font-weight: 600;
}
.field-label::before, .field-label::after {
  content: ''; position: absolute; top: 50%; height: 1px; width: 27%; background: rgba(255,255,255,0.15);
}

.field-label::before { left: 0%; }
.field-label::after { right: 0%; }

.phone-input-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

.country-code {
  display: flex;
  align-items:
  center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0.85rem 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
  color: #fff;
}

.country-code img { width: 24px; height: 16px; border-radius: 2px; }

.phone-number-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.15em;
  outline: none;
  border: 1px solid rgba(255,255,255,0.2);
}
.phone-number-input::placeholder { color: rgba(255,255,255,0.3); letter-spacing: 0.1em; }

.change-payment-btn {
  width: 100%;
  background: transparent;
  border: 1px solid white;
  border-radius: 12px;
  padding: 0.75rem;
  color: #d9d6d6;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.benefits-list {
text-align: left;
 display: flex;
 flex-direction: column;
 gap: 0.4rem;
 }

.benefit-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 400; }
.benefit-check {
  width: 16px;
  height: 16px;
  background: #22c55e;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.prizes-section {
margin: 1rem 0;
}
.prizes-section img {
width: 100%;
max-height: 180px;
object-fit: contain;
}

.pricing-text { margin-bottom: 1rem; }
.pricing-text .highlight {
  color: #4ade80; font-size: 0.95rem; font-weight: 700;
}

.btn {
  width: 100%; background: linear-gradient(91.04deg, #2C31E9 0%, #EC008C 100%);
  color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 0.75rem;
  border-radius: 9999px; border: none; cursor: pointer; transition: all 0.3s ease;
  animation: pulseGlow 3s ease-in-out infinite; margin-bottom: 0.75rem;
}
.start-btn {
  width: 100%; background: linear-gradient(91.04deg, #2C31E9 0%, #EC008C 100%);
  color: #fff; font-weight: 700; font-size: 1.05rem; padding: 1rem;
  border-radius: 9999px; border: none; cursor: pointer; transition: all 0.3s ease;
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(236, 0, 140, 0.3); }
  50% { box-shadow: 0 0 40px rgba(44, 49, 233, 0.5); }
}
.btn:hover { opacity: 0.9; transform: scale(1.02); }
.btn:active { transform: scale(0.98); }

.footer-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.footer-text a { color: rgb(11 178 255 / 70%);text-decoration: none; }

.links {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.links a { color: rgba(255,255,255,0.6); text-decoration: underline; }

.otp-sent-banner {
  background: rgb(255 212 10 / 8%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 2rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.otp-sent-banner .sms-icon { font-size: 1rem; }

.otp-boxes {
  display: flex; gap: 0.6rem; justify-content: center; margin-bottom: 1rem;
}
.otp-single-box {
  width: 75px;
  height: 75px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex; align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.otp-single-box.filled { border-color: rgba(255,255,255,0.4); }
.otp-single-box.empty { color: rgba(255,255,255,0.3); }

.otp-hidden-input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}

.resend-row {
  display: flex; align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.resend-btn {
  background: none;
  border: none;
  color: #b58a40;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.resend-timer {
  background: rgba(255,255,255,0.1);
  border-radius: 6px; padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  color: #FFD54F;
  font-weight: 600;
}

.privacy-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  margin-top: 5rem;
}

.wrong-number {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
}
.wrong-number a { color: #4ade80; font-weight: 600; text-decoration: none; border: 1px solid rgba(245,197,66,0.3); border-radius: 4px; padding: 0.15rem 0.4rem; }

.number-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0 0.5rem;
  margin-bottom: 1rem;
}
.num-key {
  background: rgba(255,255,255,0.08); border: none; border-radius: 12px;
  padding: 0.9rem; color: #fff; font-size: 1.3rem; font-weight: 600;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.num-key:active { background: rgba(255,255,255,0.15); }
.num-key .sub-text { font-size: 0.55rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.5); margin-top: 0.1rem; }
.num-key.zero-key { grid-column: 2; }


.form-error {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #ffb3b3;
  text-align: center;
  display: none;
  margin-bottom: 0.5rem;
}
.input-box.error { border-color: #ff6b6b; }

.success-check { font-size: 4rem; color: #00ff85; margin-bottom: 0.5rem; }
.success-message { font-size: 1rem; line-height: 1.5; margin-bottom: 0.9rem; font-weight: 600; margin-top: 0.9rem; }
.success-image { height: 65px; width: 65px; }

.hidden { display: none !important; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex;
  align-items: flex-end; justify-content: center; z-index: 50;
}
.modal-content {
  background: #1a1040; border-radius: 1.5rem 1.5rem 0 0; width: 100%; max-width: 430px;
  padding: 1.5rem; max-height: 85vh; overflow-y: auto;
}
#otpLabel {
 color: #FFD54F; /* gold */
 font-weight: 600;
}
.modal-close { float: right; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.plan-type-label { text-align: left; font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; font-weight: 600; }

.sub-plan {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 0.9rem 1rem; margin-bottom: 0.5rem; cursor: pointer;
}
.sub-plan.selected { border-color: #EC008C; background: rgba(236,0,140,0.08); }
.sub-plan .plan-left { display: flex; align-items: center; gap: 0.5rem; }
.plan-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); }
.sub-plan.selected .plan-radio { border-color: #EC008C; background: #EC008C; }
.plan-name { font-size: 0.9rem; font-weight: 600; }
.plan-price { text-align: right; }
.plan-price .amount { font-size: 1rem; font-weight: 700; }
.plan-price .period { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

.confirm-subscribe-btn {
  width: 100%; background: linear-gradient(91.04deg, #2C31E9 0%, #EC008C 100%);
  color: #fff; font-weight: 700; font-size: 1.05rem; padding: 1rem;
  border-radius: 9999px; border: none; cursor: pointer; margin-top: 1rem;
  animation: pulseGlow 3s ease-in-out infinite;
}

.freemium-link { background: none; border: none; color: rgba(255,255,255,0.6);
 font-size: 0.85rem; cursor: pointer;
 margin-top: 0.75rem; display: block; width: 100%; text-align: center; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.resend-image { height: 15px; width: 15px; }
.delete-key {
    background: rgba(255, 80, 80, 0.15);
    color: #ff6b6b;
    font-size: 1.4rem;
}
       .delete-key:active {
    background: rgba(255, 80, 80, 0.3);
}
.otp-single-box.error {
  border-color: #ff4d4d;
  background: rgba(255, 77, 77, 0.1);
}
.phone-number-input.error {
  border-color: #ff4d4d;
  background: rgba(255, 77, 77, 0.1);
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.popup-overlay.show {
    display: flex;
}

.popup-card {
    width: 100%;
    max-width: 420px;
    border-radius: 32px;
    padding: 32px 24px 24px;
    position: relative;
    background: linear-gradient(180deg, #3d3953 0%, #24223a 100%);
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
    text-align: center;
}

.popup-close {
    position: absolute;
    right: 18px;
    top: -18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.02) 45%,
            rgba(255,255,255,0.00) 70%
        ),
        linear-gradient(
            180deg,
            rgba(90, 85, 115, 0.92) 0%,
            rgba(72, 67, 95, 0.88) 100%
        );
    backdrop-filter: blur(12px);
    box-shadow:
        0 8px 20px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.popup-title {
    color: #FFC400;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
}

.popup-message {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 34px;
}

.popup-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 14px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #3f39ff 0%, #ff008c 100%);
}

