/* subscription.css — Subscription */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  min-height: 100vh;
}

header {
  background: #1a1a2e;
  color: white;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

header h1 { font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em; }

main { max-width: 900px; margin: 4rem auto; padding: 0 1.5rem; }

/* ── Status Card (for subscribed users) ── */
.card {
  background: white;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.card-icon { font-size: 3rem; margin-bottom: 1.25rem; opacity: 0.45; }
.card h2 { font-size: 1.5rem; font-weight: 600; color: #1a1a2e; margin-bottom: 0.75rem; }
.card p { color: #666; font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.5rem; }

#subArea {
  margin-top: 2rem;
  min-height: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

#subStatus { font-size: 0.88rem; color: #888; }

/* ── Pricing Section ── */
.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}
.pricing-header h2 { font-size: 1.6rem; font-weight: 700; color: #1a1a2e; margin-bottom: 0.5rem; }
.pricing-header p  { color: #666; font-size: 0.95rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.pricing-card {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 2px solid transparent;
  position: relative;
}

.pricing-card--featured {
  border-color: #e49836;
  transform: translateY(-6px);
  box-shadow: 0 6px 24px rgba(228,152,54,0.18);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #e49836;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.9rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.plan-period {
  font-size: 0.9rem;
  font-weight: 400;
  color: #888;
}

.plan-savings {
  font-size: 0.78rem;
  color: #2e7d50;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.plan-features {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  text-align: left;
}
.plan-features li {
  font-size: 0.88rem;
  color: #555;
  padding: 0.3rem 0;
  padding-left: 1.4rem;
  position: relative;
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4caf7d;
  font-weight: 700;
}

/* ── Buttons ── */
.btn-sub {
  background: #e49836;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}
.btn-sub:hover    { background: #c8821e; }
.btn-sub:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-unsub {
  background: none;
  color: #999;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem 1.5rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-unsub:hover { background: #f5f5f5; color: #555; }

/* ── Badges ── */
.badge-active {
  display: inline-block;
  background: #edfaf1;
  border: 1px solid #4caf7d;
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.78rem;
  color: #2e7d50;
  font-weight: 600;
}

.badge-lifetime {
  display: inline-block;
  background: #fff8e6;
  border: 1px solid #e49836;
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.78rem;
  color: #b36e00;
  font-weight: 600;
}

.badge-free {
  display: inline-block;
  background: #f0f2f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.78rem;
  color: #888;
}

/* ── Message ── */
#message { font-size: 0.85rem; margin-top: 1.25rem; display: none; padding: 0.6rem 1rem; border-radius: 6px; }
#message.error   { color: #c0392b; background: #fef2f2; border: 1px solid #e57373; display:block; }
#message.success { color: #2e7d50; background: #edfaf1; border: 1px solid #4caf7d; display:block; }
#message.info    { color: #555;    background: #f5f5f5; border: 1px solid #ddd;    display:block; }

/* ── Responsive ── */
@media (max-width: 820px) {
  header { padding: 0.9rem 1.25rem; }
  main { margin: 2.5rem auto; }
  .pricing-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pricing-card--featured { transform: none; }
}

@media (max-width: 480px) {
  header { padding: 0.7rem 1rem; }
  main { margin: 1.5rem auto; padding: 0 1rem; }
  .card { padding: 2rem 1.25rem; }
}
