/**
 * Shared premium theme: layered backgrounds, glass panels, reveals, CTAs.
 * Use body.site-premium (and body.home-page inherits same background).
 */
body.site-premium {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #e2e8f0;
  min-height: 100vh;
}

body.site-premium,
body.home-page {
  background-color: #0a0f1a;
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(109, 40, 217, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 20%, rgba(16, 185, 129, 0.08), transparent 50%),
    radial-gradient(ellipse 45% 50% at 0% 60%, rgba(139, 92, 246, 0.1), transparent 45%);
  background-attachment: fixed;
}

article.premium-card.reveal:nth-of-type(1) {
  transition-delay: 0.04s;
}
article.premium-card.reveal:nth-of-type(2) {
  transition-delay: 0.1s;
}
article.premium-card.reveal:nth-of-type(3) {
  transition-delay: 0.16s;
}
article.premium-card.reveal:nth-of-type(4) {
  transition-delay: 0.22s;
}
article.premium-card.reveal:nth-of-type(5) {
  transition-delay: 0.28s;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Top link row (blogs, simple pages) */
.premium-topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.premium-topnav a {
  color: #34d399;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.25s ease;
}
.premium-topnav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.premium-topnav a:hover::after,
.premium-topnav a:focus-visible::after {
  width: 100%;
}

.premium-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 44px 22px 72px;
  box-sizing: border-box;
}
.premium-wrap--narrow {
  max-width: 820px;
}

.premium-page-title {
  color: #c4b5fd;
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}
.premium-lead {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 28px 0;
}

/* Blog index cards */
.premium-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 16px;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}
.premium-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(139, 92, 246, 0.22),
    0 0 48px rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.35);
}
.premium-card h2 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}
.premium-card h2 a {
  color: #ddd6fe;
  text-decoration: none;
}
.premium-card h2 a:hover {
  color: #fff;
}
.premium-card .meta {
  color: #94a3b8;
  font-size: 0.88rem;
  margin: 0 0 10px 0;
}
.premium-card .read {
  font-weight: 700;
  color: #34d399;
}
.premium-card .read:hover {
  color: #6ee7b7;
}
.premium-card p {
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0 0 10px 0;
}

/* Article / panels */
.premium-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 28px 26px 32px;
  line-height: 1.75;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.premium-panel h1 {
  color: #c4b5fd;
  font-size: 1.75rem;
  margin: 0 0 8px 0;
}
.premium-panel h2 {
  color: #e9d5ff;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.55rem;
}
.premium-panel p {
  color: #cbd5e1;
  margin: 0 0 0.9rem 0;
}
.premium-panel a {
  color: #34d399;
  text-decoration: none;
  font-weight: 600;
}
.premium-panel a:hover {
  text-decoration: underline;
}

.premium-crumb {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 18px;
}
.premium-crumb a {
  color: #34d399;
  text-decoration: none;
}
.premium-crumb a:hover {
  text-decoration: underline;
}

.premium-back {
  margin-bottom: 18px;
}
.premium-back a {
  color: #34d399;
  text-decoration: none;
  font-weight: 600;
}
.premium-back a:hover {
  text-decoration: underline;
}

.premium-meta {
  color: #94a3b8;
  font-size: 0.92rem;
  margin-bottom: 22px;
}

/* FAQ inside articles */
.premium-faq {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.premium-faq > h2 {
  margin-top: 0;
}
.premium-faq .faq-q {
  font-size: 1rem;
  margin: 16px 0 6px 0;
  color: #c4b5fd;
}
.premium-faq .faq-a {
  margin: 0 0 12px 0;
  color: #cbd5e1;
}

.premium-related ul {
  margin: 8px 0 0 1.1rem;
  padding: 0;
}
.premium-related li {
  margin-bottom: 8px;
}
.premium-related a {
  color: #34d399;
}

.premium-prev-next {
  margin-top: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}
.premium-prev-next a {
  color: #34d399;
}
.pn-sep {
  color: #64748b;
  margin: 0 8px;
}

/* Blog pagination */
.premium-pagination {
  margin: 18px 0 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
}
.premium-pagination-status {
  color: #94a3b8;
  font-size: 0.92rem;
}
.premium-pagination-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.premium-page-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.08);
  color: #ddd6fe;
  font-weight: 600;
  text-decoration: none;
}
.premium-page-link:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.14);
}
.premium-page-link.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* CTA block */
.premium-cta {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.premium-cta-title {
  margin: 0 0 8px 0;
  font-weight: 700;
  color: #6ee7b7;
  font-size: 1.05rem;
}
.premium-cta-copy {
  margin: 0 0 14px 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}
a.premium-cta-btn,
.premium-cta-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
a.premium-cta-btn:hover,
.premium-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.45);
}

/* Manage / forms */
.premium-form-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 44px 22px 56px;
}
.premium-form-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 28px 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}
.premium-form-panel h1 {
  color: #c4b5fd;
  font-size: 1.65rem;
  margin: 0 0 8px 0;
}
.premium-form-panel .sub {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}
.premium-form-panel label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #e2e8f0;
}
.premium-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.premium-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.premium-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.premium-btn-verify {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}
.premium-btn-verify:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.45);
}
.premium-btn-upgrade {
  background: #3f3f46;
  color: #a1a1aa;
  cursor: not-allowed;
  opacity: 0.75;
  margin-top: 8px;
  width: 100%;
}
.premium-btn-cancel {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  margin-top: 16px;
  width: 100%;
}
.premium-btn-cancel:hover {
  transform: translateY(-1px);
}
.premium-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
}
.premium-actions.visible {
  display: block;
}
.premium-error {
  color: #f87171;
  font-size: 0.9rem;
  margin-top: 8px;
}
.premium-back-link {
  margin-top: 28px;
  text-align: center;
}
.premium-back-link a {
  color: #34d399;
  text-decoration: none;
  font-weight: 600;
}
.premium-back-link a:hover {
  text-decoration: underline;
}

/* Simple centered pages (404, cancel) */
.premium-simple {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  box-sizing: border-box;
}
.premium-simple-inner {
  max-width: 440px;
  text-align: center;
  padding: 40px 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.premium-simple-inner h1 {
  color: #c4b5fd;
  margin: 0 0 12px 0;
  font-size: 1.75rem;
}
.premium-simple-inner p {
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 20px 0;
}
.premium-simple-links a {
  color: #34d399;
  font-weight: 600;
  text-decoration: none;
  margin: 0 8px;
}
.premium-simple-links a:hover {
  text-decoration: underline;
}

.premium-simple--cancel .premium-simple-inner h1 {
  color: #f87171;
}

/* Checkout success (/success) */
.premium-success-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 22px 64px;
  box-sizing: border-box;
}
.premium-success-card {
  text-align: center;
  border-radius: 20px;
  padding: 40px 28px 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}
.premium-success-card > h1:first-child {
  color: #34d399;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  margin: 0 0 10px 0;
}
.premium-success-sub {
  font-size: 1.12rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 22px 0;
  opacity: 0.95;
}
.premium-license-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(16, 185, 129, 0.12);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0;
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #34d399;
}
.premium-copy-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: auto;
  flex-shrink: 0;
}
.premium-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.premium-success-info {
  color: #94a3b8;
  line-height: 1.65;
  margin: 16px 0;
  font-size: 0.95rem;
  text-align: left;
}
.premium-success-info a {
  color: #34d399;
  font-weight: 600;
}
.premium-keep-touch {
  margin: 28px 0;
  padding: 22px 20px;
  text-align: left;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 14px;
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.premium-keep-touch h3 {
  color: #34d399;
  margin: 0 0 10px 0;
  font-size: 1.12rem;
}
.premium-keep-touch p {
  margin: 0 0 14px 0;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
}
.premium-keep-touch form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.premium-keep-touch input[type='email'] {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 1rem;
  min-width: 200px;
  box-sizing: border-box;
}
.premium-keep-touch .premium-keep-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.premium-keep-touch .premium-keep-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.premium-keep-success {
  color: #34d399;
  margin-top: 12px;
  font-weight: 600;
  text-align: center;
}
.premium-back-megamix {
  margin-top: 32px;
  padding: 28px 24px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 16px;
  border: 2px solid rgba(139, 92, 246, 0.32);
  text-align: center;
}
.premium-back-megamix h3 {
  color: #c4b5fd;
  margin: 0 0 14px 0;
  font-size: 1.4rem;
}
.premium-back-megamix p {
  margin: 0 0 18px 0;
  color: #94a3b8;
  font-size: 0.98rem;
}
.premium-redirect-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.35);
}
.premium-redirect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.42);
}
.hidden {
  display: none !important;
}

/* Home page navbar (index uses .home-nav without .site-premium on body) */
.home-nav.navbar {
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(0, 0, 0, 0.55) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.home-nav.navbar:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.home-nav .navbar-links a {
  position: relative;
  transition: color 0.25s ease;
}
.home-nav .navbar-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-nav .navbar-links a:hover::after,
.home-nav .navbar-links a:focus-visible::after {
  width: 100%;
}

/* App / plugin: frosted navbar when paired with .app-nav or .navbar */
.site-premium .navbar.app-nav,
.site-premium nav.navbar:not(.home-nav) {
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(0, 0, 0, 0.55) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s ease;
}
.site-premium .navbar:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.site-premium .navbar-links a {
  position: relative;
}
.site-premium .navbar-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-premium .navbar-links a:hover::after,
.site-premium .navbar-links a:focus-visible::after {
  width: 100%;
}

@media (max-width: 700px) {
  body.site-premium,
  body.home-page {
    background-attachment: scroll;
  }
  .premium-wrap,
  .premium-wrap--narrow {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-premium,
  body.home-page {
    background-attachment: scroll;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .premium-card:hover {
    transform: none;
  }
  a.premium-cta-btn:hover,
  .premium-cta-btn:hover,
  .premium-btn-verify:hover,
  .premium-btn-cancel:hover,
  .premium-redirect-btn:hover,
  .premium-copy-btn:hover {
    transform: none;
  }
  .site-premium .navbar-links a::after,
  .home-nav .navbar-links a::after,
  .premium-topnav a::after {
    transition: none;
  }
}
