/* Premium gate for the preview dashboard.
   The real tracker content renders fully and normally, exactly like a paid
   student would see it (full Overview, working nav, real-looking data).
   This block sits in normal page flow right after that content, pulled up
   to overlap its last stretch with a fade, so a visitor scrolls through
   genuine content first and only meets the paywall once they reach the end
   of what's shown - never on load, never before they've scrolled. */

.premium-overlay {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 56vh;
  margin-top: -220px;
  padding: 0 20px 48px;
  background: linear-gradient(
    to bottom,
    rgba(246, 245, 241, 0) 0%,
    rgba(246, 245, 241, 0.75) 28%,
    rgba(246, 245, 241, 0.97) 52%,
    var(--paper) 68%
  );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

@media (min-width: 900px) {
  .premium-overlay {
    margin-top: -260px;
    min-height: 60vh;
  }
}

@media (max-width: 480px) {
  .premium-overlay {
    margin-top: -160px;
    min-height: 50vh;
  }
}

.premium-card {
  position: sticky;
  bottom: 28px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--teal);
  box-shadow: 0 15px 40px rgba(0, 128, 128, 0.15);
  border-radius: var(--r-lg);
  padding: 35px 30px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-overlay.is-visible .premium-card {
  opacity: 1;
  transform: translateY(0);
}

.premium-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  line-height: 1;
}

.premium-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.3;
}

.premium-card p {
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.premium-card .btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 14px;
  justify-content: center;
}
