/* =====================================================
   Mazmazika — Subscribe / Pricing Page
   ===================================================== */

/* Access bar on VR / tool pages */
.limit-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 152, 0, 0.4);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  color: #ffb74d;
  font-size: 0.95rem;
  flex-wrap: wrap;
}
.limit-banner i { font-size: 1.1rem; }
.limit-upgrade-btn {
  margin-left: auto;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.limit-upgrade-btn:hover { opacity: 0.88; }

/* Access bar on VR page (JS-rendered) */
.access-bar {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.access-bar a { color: inherit; font-weight: 600; }
.access-bar--pro {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.35);
  color: #81c784;
}
.access-bar--free {
  background: rgba(79, 195, 247, 0.1);
  border: 1px solid rgba(79, 195, 247, 0.3);
  color: #4fc3f7;
}
.access-bar--empty {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.35);
  color: #ffb74d;
}

/* Upgrade modal */
.upgrade-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
}
.upgrade-modal-box {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  background: var(--card-bg, #1e1e2e);
  border: 1px solid var(--border-color, #333);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
}
.upgrade-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--text-secondary, #aaa);
  font-size: 1.2rem; cursor: pointer;
}
.upgrade-modal-icon { font-size: 2.5rem; color: #ffb74d; margin-bottom: 0.75rem; }
.upgrade-modal-box h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.upgrade-modal-box p { color: var(--text-secondary, #aaa); margin-bottom: 1.5rem; line-height: 1.6; }
.upgrade-modal-plans { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.upgrade-plan-btn {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color, #444);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, transform 0.15s;
  min-width: 130px;
}
.upgrade-plan-btn:hover { border-color: #4fc3f7; transform: translateY(-2px); }
.upgrade-plan-btn--primary { border-color: #4fc3f7; background: rgba(79,195,247,0.08); }
.uplan-name { font-weight: 700; font-size: 0.95rem; }
.uplan-price { font-size: 1.3rem; font-weight: 800; color: #4fc3f7; margin: 0.25rem 0; }
.uplan-desc { font-size: 0.8rem; color: var(--text-secondary, #aaa); }

/* ===================================================
   Subscribe / Pricing page
   =================================================== */
.subscribe-content { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.subscribe-status-bar {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  color: #81c784;
  font-size: 0.95rem;
}
.subscribe-status-bar i { font-size: 1.2rem; }
.subscribe-status-bar strong { color: #a5d6a7; }

.payment-notice {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary, #888);
  margin-bottom: 2rem;
}
.payment-notice .badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,152,0,0.12);
  border: 1px solid rgba(255,152,0,0.3);
  color: #ffb74d;
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem; font-weight: 600;
}

/* Plan cards */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.plan-card {
  background: var(--card-bg, #1a1a2e);
  border: 1px solid var(--border-color, #333);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card--popular {
  border-color: #4fc3f7;
  box-shadow: 0 0 0 1px #4fc3f7;
}
.plan-card--current {
  border-color: #81c784;
  box-shadow: 0 0 0 1px #81c784;
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #4fc3f7, #9c27b0);
  color: #fff; border-radius: 20px;
  padding: 0.2rem 0.9rem; font-size: 0.78rem; font-weight: 700;
  white-space: nowrap;
}
.plan-badge--current { background: linear-gradient(135deg, #4caf50, #2196f3); }
.plan-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.plan-desc { color: var(--text-secondary, #888); font-size: 0.88rem; margin-bottom: 1.25rem; line-height: 1.5; }
.plan-price { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.1rem; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--text-secondary, #888); }
.plan-period { color: var(--text-secondary, #888); font-size: 0.85rem; margin-bottom: 1.5rem; }
.plan-features { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.4rem 0; font-size: 0.9rem; color: var(--text-secondary, #bbb);
}
.plan-features li i { color: #4fc3f7; margin-top: 2px; flex-shrink: 0; }
.plan-features li i.fa-times { color: #ef5350; }

/* Payment buttons */
.plan-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.pay-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border: none; border-radius: 10px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}
.pay-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.pay-btn--paypal { background: #ffc439; color: #003087; }
.pay-btn--stripe  { background: linear-gradient(135deg, #635bff, #9c27b0); color: #fff; }
.pay-btn--current { background: rgba(76,175,80,0.15); color: #81c784; border: 1px solid rgba(76,175,80,0.4); cursor: default; }
.pay-btn--current:hover { transform: none; opacity: 1; }
.pay-btn i { font-size: 1rem; }
.pay-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* FAQ */
.subscribe-faq { max-width: 640px; margin: 0 auto; }
.subscribe-faq h3 { font-size: 1.3rem; margin-bottom: 1.25rem; text-align: center; }
.faq-item { border-bottom: 1px solid var(--border-color, #333); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0.75rem 0 0; color: var(--text-secondary, #aaa); font-size: 0.9rem; line-height: 1.6; }

/* Spinner for payment buttons */
.pay-spinner { display: none; }
.pay-btn.loading .pay-spinner { display: inline-block; }
.pay-btn.loading .pay-label  { display: none; }

@media (max-width: 640px) {
  .plans-grid { grid-template-columns: 1fr; }
  .upgrade-modal-plans { flex-direction: column; }
}
