/* ======================================================
   TamilAI Plus Subscription
   SSL Technology
====================================================== */

.subscription-overlay {
  position: fixed;
  inset: 0;

  display: none;
  justify-content: center;
  align-items: center;

  padding: 24px;

  background: rgba(0, 0, 0, 0.72);

  backdrop-filter: blur(14px);

  z-index: 999999;
}

/* ==========================================
   Popup
========================================== */

.subscription-popup {
  width: min(760px, 100%);
  max-height: 92vh;

  overflow-y: auto;

  background: #0f1b27;

  border: 1px solid rgba(0, 216, 255, 0.15);

  border-radius: 24px;

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(0, 216, 255, 0.08);

  animation: popupOpen 0.28s ease;
}

@keyframes popupOpen {
  from {
    opacity: 0;

    transform: translateY(25px) scale(0.96);
  }

  to {
    opacity: 1;

    transform: none;
  }
}

/* ==========================================
   Header
========================================== */

.subscription-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 24px 30px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.subscription-logo {
  width: 62px;
  height: 62px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 30px;

  border-radius: 18px;

  background: linear-gradient(135deg, #f59e0b, #facc15);

  box-shadow: 0 0 25px rgba(250, 204, 21, 0.25);

  flex-shrink: 0;
}

.subscription-title {
  flex: 1;

  margin-left: 18px;
}

.subscription-title h2 {
  margin: 0;

  font-size: 30px;

  font-weight: 700;

  color: var(--text-primary);
}

.subscription-title span {
  display: block;

  margin-top: 6px;

  font-size: 14px;

  color: #8eb6cf;
}

.subscription-header button {
  width: 42px;
  height: 42px;

  border: none;

  border-radius: 12px;

  cursor: pointer;

  background: #21384f;

  color: var(--text-primary);

  font-size: 20px;

  transition: 0.25s;
}

.subscription-header button:hover {
  background: #ff4d4d;
}

/* ==========================================
   Hero
========================================== */

.subscription-hero {
  padding: 35px;

  text-align: center;
}

.premium-badge {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 8px 18px;

  border-radius: 50px;

  background: linear-gradient(135deg, #ffb300, #ffd54f);

  color: #000;

  font-weight: 700;

  font-size: 14px;

  margin-bottom: 22px;
}

.subscription-hero h3 {
  margin: 0;

  font-size: 34px;

  font-weight: 700;

  color: var(--text-primary);

  line-height: 1.3;
}

.subscription-hero p {
  margin-top: 18px;

  font-size: 17px;

  color: #9db8ca;

  line-height: 1.7;
}

/* ==========================================
   Features
========================================== */

.subscription-features {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 16px;

  padding: 0 30px 35px;
}

.feature-item {
  padding: 18px;

  border-radius: 16px;

  background: #16293b;

  border: 1px solid rgba(255, 255, 255, 0.05);

  font-size: 15px;

  color: var(--text-primary);

  transition: 0.25s;
}

.feature-item:hover {
  transform: translateY(-3px);

  border-color: #00d8ff;

  box-shadow: 0 0 18px rgba(0, 216, 255, 0.15);
}

/* ==========================================
   Pricing
========================================== */

.subscription-pricing {
  padding: 0 30px 30px;
}

.subscription-pricing h3 {
  margin-bottom: 18px;

  color: var(--text-primary);

  font-size: 22px;
}

.pricing-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.plan-card {
  padding: 24px;

  border: none;

  cursor: pointer;

  border-radius: 18px;

  background: #172a3c;

  color: var(--text-primary);

  transition: 0.3s;
}

.plan-card:hover {
  transform: translateY(-4px);

  border: 1px solid #00d8ff;
}

.plan-card.active {
  background: linear-gradient(135deg, #00d8ff, #1976ff);
}

.currency {
  font-size: 30px;

  display: block;

  margin-bottom: 10px;
}

.plan-card h4 {
  margin: 0;

  font-size: 30px;
}

.plan-card small {
  display: block;

  margin-top: 8px;

  color: #d7ecff;
}

/* ==========================================
   Payment
========================================== */

.subscription-payments {
  display: flex;

  flex-direction: column;

  gap: 14px;

  padding: 0 30px 35px;
}

.subscription-payments button {
  height: 58px;

  border: none;

  cursor: pointer;

  border-radius: 16px;

  font-size: 16px;

  font-weight: 600;

  transition: 0.25s;
}

#upiPaymentBtn {
  background: linear-gradient(135deg, #14c871, #0aa44d);

  color: var(--text-primary);
}

#cardPaymentBtn {
  background: #1d3247;

  color: var(--text-primary);
}

#internationalPaymentBtn {
  background: #26384d;

  color: var(--text-primary);
}

.subscription-payments button:hover {
  transform: translateY(-2px);
}

/* ==========================================
   Footer
========================================== */

.subscription-footer {
  padding: 24px 30px;

  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.subscription-footer button {
  width: 100%;

  height: 52px;

  border: none;

  cursor: pointer;

  border-radius: 14px;

  background: #22384c;

  color: #d9e8f5;

  font-size: 15px;

  transition: 0.25s;
}

.subscription-footer button:hover {
  background: #30485d;
}

/* ==========================================
   Scrollbar
========================================== */

.subscription-popup::-webkit-scrollbar {
  width: 7px;
}

.subscription-popup::-webkit-scrollbar-thumb {
  background: #365a76;

  border-radius: 20px;
}
