.sub-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2.5rem 1rem 1rem;
}

.sub-modal.hidden {
  display: none;
}

.sub-modal-content {
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 360px;
  max-height: 80vh;
  border-radius: 20px;
  padding: 1.5rem;
  color: #fff;
  text-align: center;
  position: relative;
  backdrop-filter: blur(54.91828155517578px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

.sub-modal-close {
  position: absolute;
  top: -20px;
  right: 15px;
  background: rgba(60, 60, 80, 0.9);
  border: none;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
}

.sub-modal-close:hover {
  background: rgba(80, 80, 100, 0.9);
}

.sub-modal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sub-plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sub-plan:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sub-plan.selected {
  border: 2px solid #EC008C;
  background: rgba(236, 0, 140, 0.1);
}

.sub-plan .plan-info {
  text-align: left;
}

.sub-plan .plan-name {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.15rem;
}

.sub-plan .plan-billing {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.sub-plan .plan-price {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.sub-plan .price-amount {
  font-size: 1rem;
  font-weight: 700;
  color: #f5c542;
}

.sub-plan .price-period {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 2px;
}

.sub-provider {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.sub-provider .provider-box {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(236, 0, 140, 0.5);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.sub-provider .provider-box img {
  width: 70px;
  margin-bottom: 0.35rem;
}

.sub-provider .provider-box span {
  font-size: 0.95rem;
  color: #fff;
}

.sub-freemium {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.sub-freemium:hover {
  opacity: 0.8;
}

.sub-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.sub-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
}

.confirm-subscribe-btn {
  width: 100%;
  background: linear-gradient(91.04deg, #2C31E9 0%, #EC008C 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 1rem;
  width: 50%;
}

.resend-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dot-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.dot.active {
  background: #fff;
}
.input-box.error {
  border: 2px solid #ff4d4f;
}

.input-box.error input {
  color: #fff;
}

@media (max-height: 600px) {
  .sub-modal-content {
    max-height: 90vh;
    padding: 1rem;
  }

  .sub-provider .provider-box {
    width: 100px;
    height: 100px;
  }

  .sub-provider .provider-box img {
    width: 55px;
  }
}
