/* ============================================================================
   Zeraf MC — 1:1 port of the Next.js landing design.
   Pure black background, purple accents, glassmorphism, grid overlay.
   No Bootstrap dependence for visuals (Bootstrap is loaded only for grid utils).
============================================================================ */

:root {
  /* Background scale */
  --bg:           #0a0a0f;
  --bg-2:         #0f0f15;

  /* Purple ramp (Tailwind-equivalent) */
  --p-300:        #c4a3ff;
  --p-400:        #a874ff;
  --p-500:        #8b5cf6;
  --p-600:        #7c3aed;
  --p-700:        #6d28d9;
  --p-900:        #4c1d95;

  /* Surfaces (translucent, used over the dark bg) */
  --s-card-from:  rgba(168, 116, 255, 0.10);   /* purple-900/20 */
  --s-card-to:    rgba(91, 33, 182, 0.12);     /* purple-950/30 */
  --s-card-strong-from: rgba(168, 116, 255, 0.16);
  --s-card-strong-to:   rgba(91, 33, 182, 0.20);

  /* Borders */
  --b-soft:       rgba(168, 116, 255, 0.20);
  --b-mid:        rgba(168, 116, 255, 0.30);
  --b-hot:        rgba(168, 116, 255, 0.50);
  --b-line:       rgba(168, 116, 255, 0.12);

  /* Text */
  --t:            #ffffff;
  --t-dim:        #d1d5db;       /* gray-300 */
  --t-faint:      #9ca3af;       /* gray-400 */
  --t-mute:       #6b7280;       /* gray-500 */

  /* Shadow / glow */
  --sh-card:      0 16px 48px rgba(0, 0, 0, 0.55);
  --sh-glow:      0 0 40px rgba(168, 116, 255, 0.18);
  --sh-glow-mid:  0 12px 40px rgba(139, 92, 246, 0.30);
  --sh-glow-hot:  0 20px 60px rgba(139, 92, 246, 0.45);
  --sh-btn:       0 8px 24px rgba(139, 92, 246, 0.35);
  --sh-btn-hover: 0 12px 32px rgba(139, 92, 246, 0.50);

  /* Bootstrap overrides (only what we still use) */
  --bs-body-color: var(--t);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--b-soft);
  --bs-primary: var(--p-500);
  --bs-primary-rgb: 139, 92, 246;
  --bs-link-color: var(--p-300);
  --bs-link-hover-color: var(--p-400);
}

/* ──────────────────────────── Base ──────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body { background: var(--bg); }

body {
  font-family: var(--bs-font-sans-serif), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--t);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

::selection { background: rgba(168, 116, 255, 0.45); color: #fff; }

a { color: var(--p-300); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--p-400); }

img, svg { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  color: var(--t);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}

p { color: var(--t-dim); line-height: 1.6; margin: 0; }

.flex-wrapper { display: flex; flex-direction: column; min-height: 100vh; position: relative; z-index: 1; }
.flex-wrapper > div:first-child { flex: 1; }

main { background: var(--bg); }

/* ──────────────────────────── Layout primitives ──────────────────────────── */

.zf-section {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}
.zf-section.zf-section-sm { padding: 6rem 0; }

.zf-container {
  max-width: 80rem;        /* matches Tailwind max-w-7xl */
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .zf-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .zf-container { padding: 0 2rem; } }

.zf-section-head { text-align: center; margin-bottom: 4rem; }
.zf-section-head h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--t);
}
.zf-section-head p {
  font-size: 1.125rem;
  color: var(--t-faint);
  max-width: 42rem;
  margin: 0 auto;
}

/* ──────────────────────────── Buttons ──────────────────────────── */

.zf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
}
.zf-btn:hover { transform: translateY(-1px); }
.zf-btn:active { transform: translateY(0); }

.zf-btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 12px; }

.zf-btn-primary {
  background: linear-gradient(135deg, var(--p-600), var(--p-500));
  color: #fff !important;
  box-shadow: var(--sh-btn);
}
.zf-btn-primary:hover {
  background: linear-gradient(135deg, var(--p-500), var(--p-400));
  box-shadow: var(--sh-btn-hover);
  color: #fff !important;
}

.zf-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--t) !important;
  border: 1px solid var(--b-mid);
  backdrop-filter: blur(10px);
}
.zf-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--b-hot);
  color: #fff !important;
}

.zf-btn-discord {
  background: linear-gradient(135deg, #5865F2, #7289DA);
  color: #fff !important;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.40);
}
.zf-btn-discord:hover {
  background: linear-gradient(135deg, #4752c4, #677bc4);
  box-shadow: 0 12px 32px rgba(88, 101, 242, 0.55);
  color: #fff !important;
}

/* ──────────────────────────── Header / Navbar ──────────────────────────── */

.zf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.35s ease,
              backdrop-filter 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.zf-header.is-scrolled {
  /* Heavier glass: deeper tint + stronger blur + shadow lip for
     definition against the content scrolling under it. */
  background: rgba(8, 6, 18, 0.72);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--b-mid);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.40),
    0 1px 0 rgba(168, 116, 255, 0.10) inset;
}
/* Subtle top purple glint on the scrolled header — catches the eye
   without competing with content. */
.zf-header.is-scrolled::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 116, 255, 0.45), transparent);
  pointer-events: none;
}
.zf-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.3s ease;
}
/* Slightly shorter header on scroll so it feels like it's "settling" */
.zf-header.is-scrolled .zf-header-inner { height: 3.5rem; }
@media (min-width: 640px)  { .zf-header-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .zf-header-inner { padding: 0 2rem; } }

.zf-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(90deg, var(--p-400), var(--p-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}
.zf-brand:hover { color: transparent; }

.zf-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .zf-nav { display: flex; } }

.zf-nav a {
  color: var(--t-dim);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.zf-nav a:hover { color: var(--t); }
.zf-nav .zf-btn-primary { color: #fff !important; }
.zf-nav .zf-btn-primary:hover { color: #fff !important; }

.zf-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  color: var(--t-dim);
  cursor: pointer;
  padding: 0;
}
@media (min-width: 768px) { .zf-mobile-toggle { display: none; } }
.zf-mobile-toggle:hover { color: var(--t); }

.zf-mobile-menu {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--b-soft);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.zf-mobile-menu a {
  display: block;
  padding: 0.625rem 0.75rem;
  color: var(--t-dim);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
}
.zf-mobile-menu a:hover { color: var(--t); background: rgba(255,255,255,0.04); }
.zf-mobile-menu .zf-btn-primary { margin-top: 0.5rem; color: #fff !important; }

/* ──────────────────────────── Hero ──────────────────────────── */

.zf-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 0 0;
}

.zf-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.zf-hero-bg::before {
  /* gradient overlay */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(76, 29, 149, 0.20), transparent 50%, var(--bg) 100%);
}
.zf-hero-bg::after {
  /* subtle grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 116, 255, 0.30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 116, 255, 0.30) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.03;
}
.zf-hero-blob {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  filter: blur(128px);
  pointer-events: none;
  animation: zfPulse 4s ease-in-out infinite;
}
.zf-hero-blob.b1 { top: 25%; left: 25%; background: rgba(124, 58, 237, 0.20); }
.zf-hero-blob.b2 { bottom: 25%; right: 25%; background: rgba(139, 92, 246, 0.10); animation-delay: 1s; }
@keyframes zfPulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

.zf-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1rem 0;
  width: 100%;
}
@media (min-width: 640px)  { .zf-hero-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .zf-hero-inner { padding-left: 2rem; padding-right: 2rem; } }

.zf-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .zf-hero-grid { grid-template-columns: 1fr 1fr; } }

.zf-hero-copy { text-align: center; }
@media (min-width: 1024px) { .zf-hero-copy { text-align: left; } }

.zf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid var(--b-mid);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--p-300);
}
.zf-hero-badge svg { color: var(--p-400); flex-shrink: 0; }

.zf-hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: #fff;
}

.zf-hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--p-300);
  margin-bottom: 1rem;
  font-weight: 400;
}

.zf-hero-support {
  font-size: 1.125rem;
  color: var(--t-faint);
  margin-bottom: 2rem;
  max-width: 36rem;
}
@media (max-width: 1023px) { .zf-hero-support { margin-left: auto; margin-right: auto; } }

.zf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 1024px) { .zf-hero-actions { justify-content: flex-start; } }

/* Hero mockup --------------------------------------------------------- */
.zf-hero-mockup {
  position: relative;
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to));
  border: 1px solid var(--b-mid);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), var(--sh-glow);
}
.zf-hero-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.10), transparent);
  border-radius: 1rem;
  pointer-events: none;
}

.zf-mockup-window {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--b-soft);
  border-radius: 0.75rem;
  overflow: hidden;
}
.zf-mockup-bar {
  background: linear-gradient(90deg, rgba(76, 29, 149, 0.30), rgba(91, 33, 182, 0.20));
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--b-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.zf-mockup-bar i {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
}
.zf-mockup-bar i:nth-child(1) { background: rgba(239, 68, 68, 0.80); }
.zf-mockup-bar i:nth-child(2) { background: rgba(234, 179, 8, 0.80); }
.zf-mockup-bar i:nth-child(3) { background: rgba(34, 197, 94, 0.80); }
.zf-mockup-bar span {
  margin-left: 1rem;
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--p-300);
}

.zf-mockup-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.zf-mockup-row {
  display: grid;
  gap: 0.75rem;
}
.zf-mockup-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.zf-mockup-row.cols-2 { grid-template-columns: 1fr 1fr; }
.zf-mockup-cell {
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid var(--b-soft);
  border-radius: 0.5rem;
  height: 5rem;
}
.zf-mockup-cell.h-tall { height: 8rem; }
.zf-mockup-cell.h-short { height: 4rem; }

.zf-mockup-float {
  position: absolute;
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, var(--p-600), var(--p-500));
  border: 1px solid var(--b-mid);
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.40);
  animation: zfFloat 4s ease-in-out infinite;
}
.zf-mockup-float.f1 { top: -1rem; right: -1rem; }
.zf-mockup-float.f2 { bottom: -1rem; left: -1rem; width: 4rem; height: 4rem; animation-delay: 1s; }
@keyframes zfFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Scroll indicator */
.zf-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.zf-hero-scroll-track {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(139, 92, 246, 0.50);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}
.zf-hero-scroll-dot {
  width: 0.375rem;
  height: 0.75rem;
  background: var(--p-400);
  border-radius: 9999px;
  animation: zfScrollDot 2s ease-in-out infinite;
}
@keyframes zfScrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(8px); opacity: 0.4; }
}

/* ──────────────────────────── Generic glass card ──────────────────────────── */

.zf-card {
  position: relative;
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to));
  border: 1px solid var(--b-soft);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.zf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), transparent);
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.zf-card:hover {
  transform: translateY(-4px);
  border-color: var(--b-mid);
}
.zf-card:hover::before { opacity: 1; }

.zf-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--p-600), var(--p-500));
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.20);
  transition: box-shadow 0.3s ease;
  flex-shrink: 0;
}
.zf-card:hover .zf-icon-box { box-shadow: 0 12px 40px rgba(139, 92, 246, 0.40); }

.zf-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--t);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.zf-card p {
  color: var(--t-faint);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ──────────────────────────── Features (6 cards) ──────────────────────────── */

.zf-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px)  { .zf-features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .zf-features-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ──────────────────────────── Product Preview (4 cards) ──────────────────────────── */

.zf-preview-section { position: relative; }
.zf-preview-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50rem;
  height: 50rem;
  transform: translate(-50%, -50%);
  background: rgba(124, 58, 237, 0.10);
  border-radius: 9999px;
  filter: blur(200px);
  pointer-events: none;
}

.zf-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .zf-preview-grid { grid-template-columns: 1fr 1fr; } }

.zf-preview-card {
  position: relative;
  background: linear-gradient(135deg, var(--s-card-strong-from), var(--s-card-strong-to));
  border: 1px solid var(--b-mid);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.30);
  transition: all 0.3s ease;
  overflow: hidden;
}
.zf-preview-card:hover {
  transform: scale(1.02);
  border-color: var(--b-hot);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.25);
}

.zf-preview-mockup {
  background: var(--bg-2);
  border: 1px solid var(--b-soft);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.zf-preview-mockup-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.30), rgba(91, 33, 182, 0.20));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p-400);
  overflow: hidden;
}
.zf-preview-mockup.has-image { padding: 0.5rem; }
.zf-preview-mockup.has-image .zf-preview-mockup-inner {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.18), rgba(91, 33, 182, 0.10));
}
.zf-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.45rem;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.zf-preview-card:hover .zf-preview-img { transform: scale(1.04); }

/* ── Changelog Preview Mockup (code-editor style) ── */
.zf-changelog-mock {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(15, 11, 30, 0.85);
  border: 1px solid var(--b-soft);
  border-radius: 0.45rem;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  line-height: 1.3;
}
.zf-changelog-mock-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--b-soft);
}
.zf-changelog-mock-head .dots {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}
.zf-changelog-mock-head .dots i {
  display: block;
  width: 0.42rem; height: 0.42rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.zf-changelog-mock-head .dots i:nth-child(1) { background: #ff6259; }
.zf-changelog-mock-head .dots i:nth-child(2) { background: #ffbd2e; }
.zf-changelog-mock-head .dots i:nth-child(3) { background: #28c941; }
.zf-changelog-mock-head .title {
  color: var(--t-faint);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  margin: 0 auto;
  padding-right: 1.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zf-changelog-mock-head .title [data-zf-cl-version] {
  color: var(--p-400);
  font-weight: 600;
  margin-left: 0.2rem;
}
.zf-changelog-mock-empty { opacity: 0.55; font-style: italic; }

.zf-changelog-mock-body {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.7rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}
.zf-changelog-mock-body li {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zf-changelog-mock-body .prefix {
  display: inline-block;
  width: 0.7rem;
  flex-shrink: 0;
  font-weight: 700;
  text-align: center;
}
.zf-changelog-mock-body .prefix.new { color: #4ade80; }
.zf-changelog-mock-body .prefix.fix { color: #fbbf24; }
.zf-changelog-mock-body .prefix.imp { color: #a78bfa; }
.zf-preview-foot {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.zf-preview-foot .zf-icon-box {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0;
}
.zf-preview-foot h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.zf-preview-foot p {
  color: var(--t-faint);
  line-height: 1.55;
  font-size: 0.95rem;
  margin: 0;
}

/* ──────────────────────────── Changelog ──────────────────────────── */

.zf-changelog-card {
  max-width: 56rem;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to));
  border: 1px solid var(--b-mid);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.30);
}

.zf-changelog-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--b-soft);
  margin-bottom: 2rem;
}
.zf-changelog-head .zf-icon-box {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0;
  flex-shrink: 0;
}
.zf-changelog-head h3 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.zf-changelog-head small {
  display: block;
  color: var(--p-400);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.125rem;
}

.zf-changelog-block { margin-bottom: 1.5rem; }
.zf-changelog-block:last-child { margin-bottom: 0; }
.zf-changelog-block h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.zf-changelog-block h4 svg { color: var(--p-400); flex-shrink: 0; }
.zf-changelog-block-title { flex: 1; min-width: 0; }
.zf-changelog-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.22rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--t-faint);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--b-soft);
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
}
.zf-changelog-date svg { color: var(--p-400); flex-shrink: 0; opacity: 0.85; }
@media (max-width: 575px) {
  .zf-changelog-block h4 { flex-wrap: wrap; }
  .zf-changelog-date { font-size: 0.68rem; padding: 0.18rem 0.5rem; }
}
.zf-changelog-feature {
  margin-left: 1.75rem;
  color: var(--p-300);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.zf-changelog-block p {
  margin-left: 1.75rem;
  color: var(--t-faint);
  line-height: 1.6;
}
.zf-changelog-callout {
  margin-left: 1.75rem;
  margin-top: 0.75rem;
  padding: 1rem;
  background: rgba(76, 29, 149, 0.20);
  border: 1px solid var(--b-soft);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: var(--t-dim);
  line-height: 1.55;
}
.zf-changelog-callout b { color: var(--p-400); font-weight: 600; }

.zf-changelog-notice {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--b-soft);
}
.zf-changelog-notice-inner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(76, 29, 149, 0.20);
  border: 1px solid var(--b-soft);
  border-radius: 0.5rem;
}
.zf-changelog-notice-inner svg { color: var(--p-400); flex-shrink: 0; margin-top: 0.125rem; }
.zf-changelog-notice-inner strong { display: block; color: #fff; font-weight: 600; margin-bottom: 0.25rem; }
.zf-changelog-notice-inner span { color: var(--t-faint); font-size: 0.875rem; line-height: 1.55; }

/* ── Changelog: "Show older patches" overflow toggle (inside card) ── */
.zf-changelog-more {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--b-soft);
}
.zf-changelog-more[open] { border-top-style: solid; }

.zf-changelog-more-toggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.7rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--b-soft);
  border-radius: 999px;
  color: var(--t-soft);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  user-select: none;
  max-width: 22rem;
  margin: 0 auto;
}
.zf-changelog-more-toggle::-webkit-details-marker { display: none; }
.zf-changelog-more-toggle::marker { display: none; content: ""; }
.zf-changelog-more-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--p-400);
  color: #fff;
  transform: translateY(-1px);
}
.zf-changelog-more[open] > .zf-changelog-more-toggle {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--p-400);
  color: #fff;
}

.zf-changelog-more-toggle-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.zf-changelog-more-toggle-inner > svg {
  color: var(--p-400);
  flex-shrink: 0;
}
.zf-changelog-more-toggle-label::before { content: attr(data-show); }
.zf-changelog-more[open] .zf-changelog-more-toggle-label::before { content: attr(data-hide); }

.zf-changelog-more-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.25rem;
  padding: 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--p-400);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--b-soft);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.zf-changelog-more[open] .zf-changelog-more-count { display: none; }

.zf-changelog-more-chevron {
  color: var(--t-faint);
  flex-shrink: 0;
  transition: transform 260ms ease, color 180ms ease;
}
.zf-changelog-more[open] .zf-changelog-more-chevron {
  transform: rotate(180deg);
  color: var(--p-400);
}

.zf-changelog-more-content {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: zfChangelogMoreReveal 320ms ease;
}
.zf-changelog-more-content > .zf-changelog-block { margin-bottom: 0; }

@keyframes zfChangelogMoreReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575px) {
  .zf-changelog-more-toggle { padding: 0.65rem 0.95rem; font-size: 0.825rem; gap: 0.55rem; }
}

/* ──────────────────────────── Pricing (3 cards) ──────────────────────────── */

.zf-pricing-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38rem;
  height: 38rem;
  transform: translate(-50%, -50%);
  background: rgba(124, 58, 237, 0.10);
  border-radius: 9999px;
  filter: blur(150px);
  pointer-events: none;
}

.zf-pricing-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 768px) { .zf-pricing-grid { grid-template-columns: 1fr 1fr 1fr; } }

.zf-plan {
  position: relative;
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to));
  border: 1px solid var(--b-soft);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.30);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.zf-plan:hover { transform: translateY(-8px); border-color: var(--b-mid); }

.zf-plan.is-popular {
  background: linear-gradient(135deg, var(--s-card-strong-from), var(--s-card-strong-to));
  border: 2px solid rgba(139, 92, 246, 0.50);
  box-shadow: 0 25px 60px rgba(139, 92, 246, 0.25);
}
.zf-plan-popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  background: linear-gradient(135deg, var(--p-600), var(--p-500));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.30);
}

.zf-plan .zf-icon-box { margin-bottom: 1.5rem; }
.zf-plan-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.zf-plan-desc  { color: var(--t-faint); margin-bottom: 1.5rem; }
.zf-plan-price {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--t);
}
.zf-plan-price small {
  display: block;
  font-size: 0.85rem;
  color: var(--t-mute);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

.zf-plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.zf-plan-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--t-dim);
  font-size: 0.95rem;
}
.zf-plan-list li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--p-400);
  flex-shrink: 0;
}

.zf-plan-cta {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: inherit;
}
/* All plan CTAs: solid purple gradient (so no plan looks disabled) */
.zf-plan-cta {
  background: linear-gradient(135deg, var(--p-600), var(--p-500));
  color: #fff !important;
  border: 1px solid transparent;
  box-shadow: var(--sh-btn);
}
.zf-plan-cta:hover {
  background: linear-gradient(135deg, var(--p-500), var(--p-400));
  box-shadow: var(--sh-btn-hover);
}

/* Most Popular CTA: brighter gradient + animated shine sweep + stronger glow */
.zf-plan.is-popular .zf-plan-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--p-400), var(--p-500) 45%, var(--p-400));
  background-size: 200% 100%;
  box-shadow:
    0 12px 32px rgba(139, 92, 246, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 0 24px rgba(139, 92, 246, 0.35);
  font-weight: 700;
  letter-spacing: 0.01em;
  animation: zfPopularPulse 3.2s ease-in-out infinite;
}
.zf-plan.is-popular .zf-plan-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: skewX(-22deg);
  animation: zfPopularSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}
.zf-plan.is-popular .zf-plan-cta:hover {
  background: linear-gradient(135deg, var(--p-400), var(--p-600) 45%, var(--p-400));
  background-size: 200% 100%;
  box-shadow:
    0 18px 44px rgba(139, 92, 246, 0.70),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 0 36px rgba(139, 92, 246, 0.50);
}

@keyframes zfPopularPulse {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes zfPopularSweep {
  0%   { left: -80%; }
  55%  { left: 140%; }
  100% { left: 140%; }
}
@media (prefers-reduced-motion: reduce) {
  .zf-plan.is-popular .zf-plan-cta { animation: none; }
  .zf-plan.is-popular .zf-plan-cta::before { animation: none; display: none; }
}

/* ──────────────────────────── FAQ ──────────────────────────── */

.zf-faq-list {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.zf-faq-item {
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to));
  border: 1px solid var(--b-soft);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.zf-faq-item:hover { border-color: var(--b-mid); }

.zf-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.2s ease;
}
.zf-faq-q:hover { background: rgba(139, 92, 246, 0.05); }
.zf-faq-q svg {
  color: var(--p-400);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.zf-faq-item[data-open="true"] .zf-faq-q svg { transform: rotate(180deg); }

.zf-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.zf-faq-item[data-open="true"] .zf-faq-a { max-height: 24rem; }
.zf-faq-a-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--t-faint);
  line-height: 1.65;
}

/* ──────────────────────────── Final CTA ──────────────────────────── */

.zf-finalcta {
  position: relative;
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(76, 29, 149, 0.20) 100%);
  text-align: center;
  overflow: hidden;
}
.zf-finalcta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50rem;
  height: 50rem;
  transform: translate(-50%, -50%);
  background: rgba(124, 58, 237, 0.15);
  border-radius: 9999px;
  filter: blur(200px);
  pointer-events: none;
}
.zf-finalcta-inner {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.zf-finalcta h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}
.zf-finalcta p {
  font-size: 1.25rem;
  color: var(--t-dim);
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.zf-finalcta-foot {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--b-soft);
}
.zf-finalcta-foot p {
  font-size: 0.875rem;
  color: var(--t-mute);
  margin: 0;
}

/* ──────────────────────────── Footer ──────────────────────────── */

.zf-footer {
  position: relative;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--b-soft);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(124, 58, 237, 0.08), transparent 70%),
    rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(10px);
}

.zf-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px)  { .zf-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .zf-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; } }

.zf-footer-col { display: flex; flex-direction: column; gap: 0.85rem; }

/* Brand column */
.zf-footer-brand p {
  color: var(--t-faint);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 22rem;
  margin: 0;
}
.zf-footer-logo {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #c4a3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
  margin-bottom: 0.25rem;
}
.zf-footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, #5865F2, #7289DA);
  border-radius: 0.6rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.zf-footer-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(88, 101, 242, 0.55);
  color: #fff !important;
}

/* Heading */
.zf-footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p-300);
  margin: 0 0 0.25rem;
}

/* Link list */
.zf-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.zf-footer-links a {
  position: relative;
  color: var(--t-faint);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.zf-footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

/* Bottom strip */
.zf-footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--b-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.zf-footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--t-mute);
}
.zf-footer-disclaimer { font-size: 0.78rem; color: rgba(255, 255, 255, 0.35); }
@media (max-width: 640px) {
  .zf-footer-bottom { justify-content: center; text-align: center; }
}

/* ──────────────────────────── Announcement ──────────────────────────── */

.zf-announcement {
  background: linear-gradient(90deg, rgba(76, 29, 149, 0.15), rgba(139, 92, 246, 0.15), rgba(76, 29, 149, 0.15));
  border-bottom: 1px solid var(--b-soft);
  text-align: center;
  font-size: 0.85rem;
  color: var(--t-dim);
  padding: 0.55rem 1rem;
}
.zf-announcement a { color: var(--p-300); font-weight: 600; }

/* ──────────────────────────── SellAuth-required overrides ──────────────────────────── */
/* Bootstrap-styled SellAuth functional pages (cart, customer dashboard, etc.) */

.btn { transition: all 0.2s ease; }
.btn-primary {
  background: linear-gradient(135deg, var(--p-600), var(--p-500)) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: var(--sh-btn);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--p-500), var(--p-400)) !important;
  box-shadow: var(--sh-btn-hover);
}
.btn-outline-primary {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--b-mid) !important;
  color: var(--t) !important;
}
.btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--b-hot) !important;
  color: #fff !important;
}

.card {
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to)) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: 14px !important;
  color: var(--t);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.card:hover { border-color: var(--b-mid) !important; transform: translateY(-2px); }
.card-title { color: var(--t); }

.form-control, .form-select {
  background: var(--bg-2) !important;
  border: 1px solid var(--b-soft) !important;
  color: var(--t) !important;
  border-radius: 10px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--p-500) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18) !important;
}
.form-control::placeholder { color: var(--t-mute); }

.modal-content {
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to)) !important;
  border: 1px solid var(--b-mid) !important;
  border-radius: 16px !important;
  color: var(--t) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.50);
}
.modal-header, .modal-footer { border-color: var(--b-soft) !important; }
.btn-close { filter: invert(1) opacity(0.7); }

hr { border-color: var(--b-soft); opacity: 1; }

.bg-image {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  z-index: -1;
}

/* Choices.js / dropdowns */
.choices__inner {
  background: var(--bg-2) !important;
  border: 1px solid var(--b-soft) !important;
  color: var(--t) !important;
  border-radius: 10px !important;
}
.choices__list--dropdown, .choices__list[aria-expanded] {
  background: rgba(15, 15, 21, 0.98) !important;
  border: 1px solid var(--b-mid) !important;
  color: var(--t) !important;
}
.choices__item--selectable.is-highlighted {
  background: rgba(139, 92, 246, 0.18) !important;
  color: #fff !important;
}

/* ──────────────────────────── Scroll-triggered animations ──────────────────────────── */

@keyframes zfFadeUp {
  from { opacity: 0; transform: translate3d(0, 80px, 0); filter: blur(8px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0);    filter: blur(0); }
}
@keyframes zfFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes zfScaleIn {
  from { opacity: 0; transform: scale(0.85) translateY(24px); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0);       filter: blur(0); }
}
@keyframes zfFadeRight {
  from { opacity: 0; transform: translate3d(-80px, 0, 0); filter: blur(6px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0);     filter: blur(0); }
}
@keyframes zfFadeLeft {
  from { opacity: 0; transform: translate3d(80px, 0, 0); filter: blur(6px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0);    filter: blur(0); }
}
/* Dramatic "rise" — used on cards. Bigger drop + heavier blur than
   Hero so cards don't feel weaker than the hero title. */
@keyframes zfRise {
  from { opacity: 0; transform: translate3d(0, 120px, 0) rotate(-2deg) scale(0.94); filter: blur(10px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0)     rotate(0)     scale(1);    filter: blur(0); }
}
/* Slow zoom for sections — gives bg a "settling in" feel */
@keyframes zfSectionIn {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

/* Hide animation targets ONLY when JS has confirmed it's alive (added
   `.zf-anim-ready` to <html>). If JS fails for any reason, the cards
   stay visible at opacity:1 — graceful degradation, never a permanent
   blank section. */
.zf-anim-ready [data-zf-animate] { opacity: 0; will-change: opacity, transform, filter; }

/* Lazy-loaded images softly fade in once the browser finishes decoding
   them. Same graceful-degradation pattern — only gated when JS is alive,
   so if the script fails the images simply stay visible. */
.zf-anim-ready img[loading="lazy"]:not(.is-loaded) {
  opacity: 0;
}
img[loading="lazy"] {
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
img[loading="lazy"].is-loaded { opacity: 1; }

/* !important is required here to override Bootstrap 5's reduced-motion
   reset which clamps `animation-duration: 0.01ms !important` on the `*`
   selector — without overriding it, all our entrance keyframes finish
   instantly and the user just sees a snap with no animation, which
   looks like "appearing from transparent" (opacity-only). The forced
   duration is what was making the cards look static. */
[data-zf-animate].is-visible               { animation: zfFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) both !important; }
[data-zf-animate="fade-in"].is-visible     { animation: zfFadeIn 1s ease both !important; }
[data-zf-animate="scale-in"].is-visible    { animation: zfScaleIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) both !important; }
[data-zf-animate="fade-right"].is-visible  { animation: zfFadeRight 1s cubic-bezier(0.22, 1, 0.36, 1) both !important; }
[data-zf-animate="fade-left"].is-visible   { animation: zfFadeLeft 1s cubic-bezier(0.22, 1, 0.36, 1) both !important; }
[data-zf-animate="rise"].is-visible        { animation: zfRise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both !important; }
[data-zf-animate="section"].is-visible,
.zf-section[data-zf-animate].is-visible    { animation: zfSectionIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) both !important; }

/* On-load hero choreography (no observer needed for above-the-fold).
   !important here too so Bootstrap's reduced-motion `*` reset can't
   clamp the durations to 0.01ms. */
.zf-hero .zf-hero-badge    { animation: zfFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both !important; }
.zf-hero .zf-hero-title    { animation: zfFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both !important; }
.zf-hero .zf-hero-subtitle { animation: zfFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both !important; }
.zf-hero .zf-hero-support  { animation: zfFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.46s both !important; }
.zf-hero .zf-hero-actions  { animation: zfFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.60s both !important; }
.zf-hero .zf-hero-mockup   { animation: zfScaleIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both !important; }
.zf-hero .zf-hero-scroll   { animation: zfFadeIn 0.8s ease 1.4s both !important; }

/* Gradient section headings (white → purple-300) */
.zf-section-head h2,
.zf-finalcta h2 {
  background: linear-gradient(180deg, #ffffff 0%, #c4a3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ──────────────────────────── Cart page · glass theming ──────────────────────────── */

/* The cart page uses SellAuth's default Bootstrap markup. These rules
   pull it into the Zeraf MC glass aesthetic without touching the
   underlying template logic. */

.cart .section-title h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #c4a3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 2rem;
}

/* Individual cart item row */
.cart .cart-item-bg {
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to)) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: 1rem !important;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.cart .cart-item-bg:hover {
  transform: translateY(-2px);
  border-color: var(--b-mid) !important;
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.16);
}

/* Product image frame inside cart row */
.cart .aspect-product-card-image img {
  border-radius: 0.75rem !important;
}

/* Product name link */
.cart .cart-product-link {
  font-size: 1.05rem;
  transition: color 0.2s ease;
}
.cart .cart-product-link:hover { color: var(--p-300) !important; }

/* Variant / discount / addon meta text */
.cart .cart-variant-text    { color: var(--t-faint) !important; }
.cart .cart-discount-text   { color: var(--p-300); }
.cart .cart-addon-badge {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(168, 116, 255, 0.30);
  color: var(--t);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Quantity controls */
.cart .cart-quantity-controls {
  background: rgba(10, 10, 20, 0.50);
  border: 1px solid var(--b-soft);
  border-radius: 0.6rem;
  overflow: hidden;
}
.cart .cart-qty-btn {
  width: 2rem;
  height: 2rem;
  color: var(--t-dim);
  background: transparent !important;
  border: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}
.cart .cart-qty-btn:hover:not(:disabled) { background: rgba(139, 92, 246, 0.18) !important; color: #fff; }
.cart .cart-qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cart .cart-qty-icon { width: 16px; height: 16px; }
.cart .cart-qty-input {
  width: 2.75rem;
  height: 2rem;
  background: transparent !important;
  color: var(--t) !important;
  font-weight: 600;
  padding: 0;
  border: none !important;
  box-shadow: none !important;
}

/* Price */
.cart .cart-price-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--t);
  letter-spacing: -0.01em;
}

/* Remove buttons */
.cart .cart-remove-desktop,
.cart .cart-remove-mobile {
  color: var(--t-mute) !important;
  transition: color 0.2s ease, transform 0.2s ease;
}
.cart .cart-remove-desktop:hover,
.cart .cart-remove-mobile:hover {
  color: #ff6b6b !important;
  transform: scale(1.1);
}
.cart .cart-remove-icon    { width: 20px; height: 20px; }
.cart .cart-remove-icon-sm { width: 18px; height: 18px; }
.cart .cart-placeholder-svg { width: 40%; max-width: 56px; opacity: 0.35; }

/* Empty / loading state card */
.cart [x-show="fullCartLoading"],
.cart .text-center.p-4.border.rounded {
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to)) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: 1rem !important;
  padding: 3rem 1.5rem !important;
  backdrop-filter: blur(10px);
}
.cart .text-muted { color: var(--t-faint) !important; }
.cart .spinner-border.text-primary { color: var(--p-300) !important; }

/* Empty state card */
.cart .cart-empty-state {
  padding: 3.5rem 1.5rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.cart .cart-empty-icon {
  color: var(--p-400);
  filter: drop-shadow(0 0 24px rgba(168, 116, 255, 0.40));
  margin-bottom: 0.5rem;
}
.cart .cart-empty-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--t);
  margin: 0;
}
.cart .cart-empty-sub {
  font-size: 0.92rem;
  color: var(--t-faint) !important;
  margin: 0 0 0.75rem;
  max-width: 24rem;
}
.cart .cart-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  background: linear-gradient(135deg, var(--p-700), var(--p-500));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cart .cart-empty-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.55);
  color: #fff !important;
}

/* Alerts */
.cart .alert-warning {
  background: rgba(245, 158, 11, 0.08) !important;
  border: 1px solid rgba(245, 158, 11, 0.30) !important;
  color: #fcd34d !important;
  border-radius: 0.75rem !important;
}
.cart .alert-danger {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.30) !important;
  color: #fca5a5 !important;
  border-radius: 0.75rem !important;
}

/* Order summary sidebar (right column .form card) */
.cart .col-lg-4 > .form {
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to)) !important;
  border: 1px solid var(--b-mid) !important;
  border-radius: 1rem !important;
  backdrop-filter: blur(10px);
  padding: 1.75rem !important;
  gap: 1rem !important;
  position: sticky;
  top: 6rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.30);
}
.cart .col-lg-4 .form-label {
  color: var(--t);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}
.cart .col-lg-4 .text-muted { color: var(--t-faint) !important; }
.cart .col-lg-4 .fw-bold    { color: var(--t); font-weight: 700; }
.cart .col-lg-4 .border-bottom {
  border-bottom: 1px solid var(--b-soft) !important;
  padding-bottom: 1rem !important;
  margin-bottom: 0.5rem;
}

/* Checkout button — premium gradient */
.cart .btn-outline-primary {
  width: 100%;
  padding: 0.85rem 1.25rem !important;
  background: linear-gradient(135deg, var(--p-700), var(--p-500)) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.35);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease !important;
}
.cart .btn-outline-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(139, 92, 246, 0.55);
}
.cart .btn-outline-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.cart .btn-outline-primary svg { flex-shrink: 0; }

/* ──────────────────────────── Boosted hover effects ──────────────────────────── */

/* !important on the transition so Bootstrap's reduced-motion `*`
   reset (which clamps `transition-duration: 0.01ms !important`) can't
   make hover effects feel instant / unresponsive. */
.zf-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease !important;
}
.zf-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--b-hot);
  box-shadow:
    0 30px 70px rgba(139, 92, 246, 0.30),
    0 0 0 1px rgba(168, 116, 255, 0.20),
    0 0 80px rgba(139, 92, 246, 0.15);
}
.zf-card:hover h3 { color: #fff; }
.zf-icon-box {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, background 0.3s ease;
}
.zf-card:hover .zf-icon-box {
  transform: translateY(-3px) scale(1.10) rotate(-3deg);
  box-shadow: 0 22px 60px rgba(139, 92, 246, 0.65);
  background: linear-gradient(135deg, var(--p-500), var(--p-400));
}
/* Sweeping shine on card hover. Stays BEHIND text/icons (z-index: 0)
   so it lights up the card surface without obscuring content. */
.zf-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 35%, rgba(168, 116, 255, 0.12) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}
.zf-card:hover::after { transform: translateX(100%); }
/* Card content sits above shine + ::before glow */
.zf-card > * { position: relative; z-index: 1; }

/* Tilt cards: JS sets transform inline; smooth it out */
[data-zf-tilt] {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
}

/* Accent card variant — used to spotlight a hero feature (Stream-Proof) */
.zf-card-accent {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(168, 116, 255, 0.18), transparent 55%),
    linear-gradient(135deg, var(--s-card-strong-from), var(--s-card-strong-to));
  border-color: var(--b-mid);
  box-shadow: 0 16px 50px rgba(139, 92, 246, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.zf-card-accent::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.20), rgba(168, 116, 255, 0.10));
  opacity: 1;
}
.zf-card-accent .zf-icon-box {
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.55);
}
.zf-card-accent:hover {
  border-color: var(--b-hot);
  box-shadow: 0 28px 70px rgba(139, 92, 246, 0.32), 0 0 0 1px rgba(168, 116, 255, 0.25);
}

.zf-preview-card { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease; }
.zf-preview-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 28px 70px rgba(139, 92, 246, 0.28);
  border-color: var(--b-hot);
}

.zf-plan { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease; }
.zf-plan:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(139, 92, 246, 0.20);
}
.zf-plan.is-popular { transform: translateY(-4px); }
.zf-plan.is-popular:hover {
  transform: translateY(-12px);
  box-shadow: 0 35px 80px rgba(139, 92, 246, 0.40);
}

/* Button shimmer + lift */
.zf-btn { position: relative; overflow: hidden; }
.zf-btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.20), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.zf-btn-primary:hover::after { left: 150%; }
.zf-btn-primary, .zf-btn-discord, .zf-plan-cta { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.25s ease; }
.zf-btn-primary:hover, .zf-btn-discord:hover { transform: translateY(-3px); }
.zf-plan-cta:hover { transform: translateY(-3px); }

/* FAQ open animation polish */
.zf-faq-q { transition: background 0.3s ease, color 0.3s ease; }
.zf-faq-item { transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.zf-faq-item:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.30); }
.zf-faq-a { transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

/* Mockup floating cubes — softer breathing */
.zf-mockup-float { transition: transform 0.4s ease; }

/* Hero blob — punchier */
.zf-hero-blob.b1 { background: rgba(124, 58, 237, 0.28); }
.zf-hero-blob.b2 { background: rgba(139, 92, 246, 0.18); }

/* ──────────────────────────── Product page (premium layout) ──────────────────────────── */

.zf-product-page {
  position: relative;
  min-height: 100vh;
  padding: 8rem 0 6rem;
  overflow: hidden;
}
.zf-product-page::before,
.zf-product-page::after {
  content: "";
  position: absolute;
  width: 32rem;
  height: 32rem;
  border-radius: 9999px;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.zf-product-page::before { top: -8rem;  left: -8rem;  background: rgba(124, 58, 237, 0.20); }
.zf-product-page::after  { bottom: -10rem; right: -8rem; background: rgba(139, 92, 246, 0.15); }

.zf-product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: stretch;
}
@media (min-width: 992px) { .zf-product-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }

/* Image / media frame */
.zf-product-media {
  position: relative;
  max-width: 1024px;
  background: linear-gradient(135deg, var(--s-card-strong-from), var(--s-card-strong-to));
  border: 1px solid var(--b-mid);
  border-radius: 1.25rem;
  padding: 1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45), var(--sh-glow);
}
.zf-product-media .carousel,
.zf-product-media img,
.zf-product-media .product-img-placeholder {
  border-radius: 0.875rem !important;
  overflow: hidden;
  margin: 0;
}
/* Cap product page hero image to 1024×1024 square */
.zf-product-media .carousel-item .aspect-product-page-image,
.zf-product-media > .aspect-product-page-image,
.zf-product-media .product-img-placeholder.aspect-product-page-image {
  aspect-ratio: 1 / 1 !important;
  max-width: 1024px;
  max-height: 1024px;
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}
.zf-product-media .product-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  color: var(--p-400) !important;
  min-height: 22rem;
}

.zf-product-media .thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.875rem;
  flex-wrap: wrap;
}
.zf-product-media .thumbnails button {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  border-radius: 0.625rem;
  border: 1px solid var(--b-soft);
  background: var(--bg-2);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}
.zf-product-media .thumbnails button:hover { border-color: var(--b-hot); transform: translateY(-2px); }
.zf-product-media .thumbnails button.active {
  border-color: var(--p-400);
  box-shadow: 0 0 0 2px rgba(168, 116, 255, 0.30);
}
.zf-product-media .thumbnails img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.5rem !important; }

/* Tabs (description/etc.) */
.zf-product-tabs { margin-top: 1.5rem; }
.zf-product-tabs .product-tabs > .mb-4 { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem !important; }
.zf-product-tabs .btn {
  border-radius: 9999px !important;
  padding: 0.5rem 1.1rem !important;
  font-size: 0.85rem !important;
  font-weight: 500;
}
.zf-product-tabs .content {
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to));
  border: 1px solid var(--b-soft);
  border-radius: 1rem;
  padding: 1.5rem;
  color: var(--t-dim);
  line-height: 1.7;
  backdrop-filter: blur(10px);
}
.zf-product-tabs .content :is(h1,h2,h3,h4) { color: var(--t); margin: 1.25rem 0 0.5rem; }
.zf-product-tabs .content a { color: var(--p-300); }
.zf-product-tabs .content code { background: rgba(168,116,255,0.10); color: var(--p-300); padding: 0.15rem 0.35rem; border-radius: 4px; }

/* Right column / form panel */
.zf-product-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(135deg, var(--s-card-strong-from), var(--s-card-strong-to));
  border: 1px solid var(--b-mid);
  border-radius: 1.25rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}

.zf-product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid var(--b-mid);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--p-300);
  margin-bottom: 1rem;
}
.zf-product-kicker svg { color: var(--p-400); }

.zf-product-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #c4a3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.zf-product-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.30);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.zf-product-status .indicator {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
}
.zf-product-status .pulsating {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  animation: zfPulseRing 2s ease-out infinite;
  opacity: 0.7;
}
@keyframes zfPulseRing {
  0%   { transform: scale(1);   opacity: 0.6; }
  80%  { transform: scale(2.4); opacity: 0;   }
  100% { transform: scale(2.4); opacity: 0;   }
}

.zf-product-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: rgba(76, 29, 149, 0.18);
  border: 1px solid var(--b-soft);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--t-faint);
}
.zf-product-stats svg { color: var(--p-400); flex-shrink: 0; }
.zf-product-stats strong { color: var(--t); font-weight: 600; }
.zf-product-stats > div { display: flex; align-items: center; gap: 0.6rem; }

.zf-product-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.zf-product-badges a, .zf-product-badges > div {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--b-soft);
  border-radius: 9999px;
  font-size: 0.78rem;
  color: var(--t-dim) !important;
  text-decoration: none;
}
.zf-product-badges a:hover { border-color: var(--b-mid); color: #fff !important; }

.zf-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--b-soft);
}
.zf-product-price-row .zf-product-price {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, var(--p-300));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.zf-product-price-row .stock-indicator {
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem !important;
  border-radius: 9999px !important;
}

/* Highlights list under price */
.zf-product-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
}
.zf-product-highlights li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--t-dim);
}
.zf-product-highlights svg { color: var(--p-400); flex-shrink: 0; }
@media (max-width: 480px) { .zf-product-highlights { grid-template-columns: 1fr; } }

/* Variant pills (bigger, premium feel) */
.zf-product-panel .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t-faint);
  margin-bottom: 0.65rem;
}
.zf-product-panel .variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.zf-product-panel .variant {
  position: relative;
  flex: 1 1 calc(50% - 0.6rem);
  min-width: 12rem;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: 0.85rem !important;
  padding: 1rem 1.1rem !important;
  text-align: left;
  color: var(--t) !important;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.zf-product-panel .variant:hover { border-color: var(--b-mid) !important; background: rgba(255,255,255,0.06) !important; }
.zf-product-panel .variant.active {
  background: linear-gradient(135deg, var(--s-card-strong-from), var(--s-card-strong-to)) !important;
  border-color: var(--b-hot) !important;
  box-shadow: 0 0 0 2px rgba(168, 116, 255, 0.25);
}
.zf-product-panel .variant .name { font-weight: 600; color: var(--t); margin: 0; }
.zf-product-panel .variant .description, .zf-product-panel .variant .stock { font-size: 0.78rem; color: var(--t-faint); margin: 0; }
.zf-product-panel .variant .price { font-weight: 600; color: var(--p-300); }
.zf-product-panel .variant .active-indicator {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 1.25rem; height: 1.25rem;
  color: var(--p-400);
}

/* Quantity stepper */
.zf-product-panel .input-group {
  background: var(--bg-2);
  border: 1px solid var(--b-soft);
  border-radius: 0.85rem;
  padding: 0.25rem;
  width: fit-content;
  display: inline-flex;
  align-items: center;
}
.zf-product-panel .input-group .input-group-btn {
  width: 2.4rem; height: 2.4rem;
  background: transparent !important;
  border: none !important;
  color: var(--t-dim) !important;
  border-radius: 0.6rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}
.zf-product-panel .input-group .input-group-btn:hover:not(:disabled) {
  background: rgba(168, 116, 255, 0.15) !important;
  color: #fff !important;
}
.zf-product-panel .input-group input {
  background: transparent !important;
  border: none !important;
  color: var(--t) !important;
  text-align: center;
  width: 4rem;
  font-weight: 600;
  font-size: 1rem;
}
.zf-product-panel .input-group input:focus { box-shadow: none !important; }

/* Buy buttons row — premium gradient + outlined ghost */
.zf-product-panel .buy-buttons { gap: 0.75rem; margin-top: 1.5rem; }
.zf-product-panel .buy-buttons .btn {
  border-radius: 0.85rem !important;
  padding: 1rem 1.5rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  font-size: 0.95rem !important;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.zf-product-panel .buy-buttons .btn-primary {
  background: linear-gradient(135deg, var(--p-600), var(--p-500)) !important;
  border: none !important;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.40);
  color: #fff !important;
}
.zf-product-panel .buy-buttons .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--p-500), var(--p-400)) !important;
  box-shadow: 0 16px 42px rgba(139, 92, 246, 0.55);
  transform: translateY(-2px);
}
.zf-product-panel .buy-buttons .btn-outline-primary {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--b-mid) !important;
  color: #fff !important;
}
.zf-product-panel .buy-buttons .btn-outline-primary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--b-hot) !important;
  transform: translateY(-2px);
}

/* Addons */
.zf-product-panel .addon-item {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: 0.75rem !important;
}
.zf-product-panel .addon-image { width: 2.5rem; height: 2.5rem; object-fit: cover; }
.zf-product-panel .btn-addon-add, .zf-product-panel .btn-addon-remove {
  border-radius: 9999px !important;
  padding: 0.4rem 0.9rem !important;
  font-size: 0.8rem !important;
  font-weight: 600;
}
.zf-product-panel .btn-addon-add {
  background: linear-gradient(135deg, var(--p-600), var(--p-500)) !important;
  border: none !important;
  color: #fff !important;
}
.zf-product-panel .btn-addon-remove {
  background: rgba(239, 68, 68, 0.10) !important;
  border: 1px solid rgba(239, 68, 68, 0.30) !important;
  color: rgba(252, 165, 165, 1) !important;
}

/* "Commonly Bought Together" lower-section spacing */
.zf-product-page .section-title h2 {
  font-size: 1.75rem;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* ─── Product page · What's Included module grid ─── */
.zf-product-modules {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
}
.zf-section-head-left { text-align: left; max-width: none; margin-bottom: 2rem; }
.zf-section-head-left h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.zf-section-head-left p { margin: 0.5rem 0 0; }

.zf-product-modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .zf-product-modules-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .zf-product-modules-grid { grid-template-columns: repeat(3, 1fr); } }

.zf-product-module {
  position: relative;
  padding: 1.5rem 1.5rem 1.6rem;
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to));
  border: 1px solid var(--b-soft);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease !important;
  overflow: hidden;
}
.zf-product-module::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.zf-product-module:hover { border-color: var(--b-mid); box-shadow: 0 22px 55px rgba(139, 92, 246, 0.20); }
.zf-product-module:hover::before { opacity: 1; }
.zf-product-module > * { position: relative; z-index: 1; }

.zf-product-module-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--b-soft);
}
.zf-product-module-head .zf-icon-box {
  width: 2.6rem;
  height: 2.6rem;
  margin: 0;
  flex-shrink: 0;
}
.zf-product-module-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--t);
  margin: 0;
  letter-spacing: -0.01em;
}

.zf-product-module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.zf-product-module-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.88rem;
  color: var(--t-faint);
  line-height: 1.45;
}
.zf-product-module-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--p-400);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(168, 116, 255, 0.55);
}

/* ─── Product page · Trust strip ─── */
.zf-product-trust {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .zf-product-trust { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.zf-product-trust-card {
  position: relative;
  padding: 1.75rem;
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to));
  border: 1px solid var(--b-soft);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
}
.zf-product-trust-card:hover {
  border-color: var(--b-mid);
  box-shadow: 0 22px 55px rgba(139, 92, 246, 0.18);
}
.zf-product-trust-card .zf-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
}
.zf-product-trust-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--t);
  margin: 0 0 0.4rem;
}
.zf-product-trust-card p {
  font-size: 0.9rem;
  color: var(--t-faint);
  line-height: 1.55;
  margin: 0;
}

/* ─── Product page · in-line FAQ ─── */
.zf-product-faq {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
}
.zf-product-faq .zf-section-head { text-align: left; margin-bottom: 1.75rem; }
.zf-product-faq .zf-section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.zf-product-faq .zf-section-head p  { margin: 0; }

/* ─── Product page · Discord CTA ─── */
.zf-product-discord {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
  padding: 3rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.18), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(168, 116, 255, 0.25);
  overflow: hidden;
  text-align: center;
}
.zf-product-discord-glow {
  position: absolute;
  inset: -40% -10%;
  background:
    radial-gradient(40% 60% at 30% 50%, rgba(88, 101, 242, 0.45), transparent 70%),
    radial-gradient(40% 60% at 70% 50%, rgba(139, 92, 246, 0.40), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.7;
  animation: zfPulse 5s ease-in-out infinite;
}
.zf-product-discord-inner { position: relative; z-index: 1; }
.zf-product-discord h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.6rem;
  background: linear-gradient(180deg, #ffffff 0%, #c4a3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.zf-product-discord p {
  color: var(--t-dim);
  margin: 0 auto 1.75rem;
  max-width: 36rem;
}

/* ──────────────────────────── Products listing page (/products) ──────────────────────────── */

.zf-products-listing {
  position: relative;
  min-height: 100vh;
  padding: 7rem 0 6rem;
  overflow: hidden;
}

/* Background blobs (parallax) */
.zf-products-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.zf-products-blob {
  position: absolute;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}
.zf-products-blob.b1 { top: -8rem;   left: -10rem;  background: rgba(124, 58, 237, 0.35); }
.zf-products-blob.b2 { bottom: -12rem; right: -10rem; background: rgba(139, 92, 246, 0.30); }

.zf-products-listing > .zf-container { position: relative; z-index: 1; }

/* Hero header */
.zf-products-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3.5rem;
}
.zf-products-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--p-300);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(10px);
}
.zf-products-kicker svg { color: var(--p-400); }

.zf-products-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #c4a3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.zf-products-sub {
  font-size: 1.05rem;
  color: var(--t-dim);
  line-height: 1.6;
  margin: 0 auto 1.75rem;
  max-width: 36rem;
}
.zf-products-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.zf-products-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--t-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--b-soft);
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}
.zf-products-pill svg { color: var(--p-400); }

/* Products grid */
.zf-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.5rem;
}
.zf-products-cell {
  transform-style: preserve-3d;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The product card itself (rendered by product-card.njk snippet) */
.zf-products-cell > .card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--s-card-from), var(--s-card-to)) !important;
  border: 1px solid var(--b-soft) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.zf-products-cell > .card:hover {
  transform: translateY(-4px);
  border-color: var(--b-hot) !important;
  box-shadow: 0 28px 70px rgba(139, 92, 246, 0.28);
}

/* Image header */
.zf-products-cell > .card .card-img-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.zf-products-cell > .card .card-img-top img,
.zf-products-cell > .card .card-img-top svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zf-products-cell > .card .product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p-400);
  background: rgba(255, 255, 255, 0.02);
}

/* Hover "Buy" overlay slides up over the image */
.zf-products-cell > .card .card-img-top .overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  padding: 0.75rem;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  transition: opacity 0.3s ease, bottom 0.3s ease;
  pointer-events: none;
}
.zf-products-cell > .card .card-img-top .overlay .btn {
  width: 100%;
  background: linear-gradient(135deg, var(--p-600), var(--p-500)) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 0.6rem !important;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.45);
}
.zf-products-cell > .card:hover .card-img-top .overlay {
  opacity: 1;
  bottom: 0;
  pointer-events: auto;
}

/* Badges in top-right corner of image */
.zf-products-cell > .card .card-img-top .badges {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 2;
}
.zf-products-cell > .card .card-img-top .badges div {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  border-radius: 0.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Body: price + stock on one line, title below */
.zf-products-cell > .card .card-body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.zf-products-cell > .card .info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--t-faint);
}
.zf-products-cell > .card .info p { margin: 0; }
.zf-products-cell > .card .info .price {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--p-300);
  font-weight: 600;
  font-size: 1rem;
}
.zf-products-cell > .card .info .text-primary { color: var(--p-300) !important; }
.zf-products-cell > .card .info .stock-unlimited {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.zf-products-cell > .card .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--t);
  margin: 0;
}

/* Empty state */
.zf-products-empty {
  max-width: 32rem;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--s-card-strong-from), var(--s-card-strong-to));
  border: 1px solid var(--b-mid);
  border-radius: 1.25rem;
  backdrop-filter: blur(10px);
}
.zf-products-empty .zf-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
}
.zf-products-empty h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--t);
  margin: 0 0 0.5rem;
}
.zf-products-empty p {
  color: var(--t-dim);
  margin: 0 0 1.75rem;
}

/* Bottom Discord CTA */
.zf-products-cta {
  position: relative;
  margin-top: 5rem;
  padding: 3rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.18), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(168, 116, 255, 0.25);
  overflow: hidden;
  text-align: center;
}
.zf-products-cta-glow {
  position: absolute;
  inset: -40% -10%;
  background:
    radial-gradient(40% 60% at 30% 50%, rgba(88, 101, 242, 0.40), transparent 70%),
    radial-gradient(40% 60% at 70% 50%, rgba(139, 92, 246, 0.40), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.7;
  animation: zfPulse 5s ease-in-out infinite;
}
.zf-products-cta-inner { position: relative; z-index: 1; }
.zf-products-cta h3 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #c4a3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.zf-products-cta p {
  color: var(--t-dim);
  margin: 0 auto 1.5rem;
  max-width: 32rem;
}
.zf-products-cta .zf-btn-discord {
  animation: zfCtaPulse 2.6s ease-in-out infinite;
}
.zf-products-cta .zf-btn-discord:hover { animation-play-state: paused; }

/* Mobile tweaks */
@media (max-width: 640px) {
  .zf-products-listing { padding: 5rem 0 4rem; }
  .zf-products-head { margin-bottom: 2.5rem; }
  .zf-products-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .zf-products-cta { padding: 2.5rem 1.25rem; margin-top: 3.5rem; }
}

/* ──────────────────────────── Custom scrollbar (purple) ──────────────────────────── */

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 116, 255, 0.45) transparent;
}
*::-webkit-scrollbar         { width: 10px; height: 10px; }
*::-webkit-scrollbar-track   { background: var(--bg); }
*::-webkit-scrollbar-thumb   {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.55), rgba(139, 92, 246, 0.55));
  border-radius: 9999px;
  border: 2px solid var(--bg);
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.85), rgba(139, 92, 246, 0.85));
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner  { background: var(--bg); }

/* ──────────────────────────── Scroll progress bar ──────────────────────────── */

.zf-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--p-700), var(--p-500) 50%, var(--p-300));
  box-shadow: 0 0 12px rgba(168, 116, 255, 0.65);
  z-index: 60;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ──────────────────────────── Scroll-to-top button ──────────────────────────── */

.zf-scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 116, 255, 0.30);
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(139, 92, 246, 0.85));
  color: #fff;
  cursor: pointer;
  z-index: 55;
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.45), 0 0 0 0 rgba(139, 92, 246, 0.40);
  backdrop-filter: blur(12px);
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease;
}
.zf-scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: zfCtaPulse 2.6s ease-in-out infinite;
}
.zf-scroll-top:hover {
  transform: translateY(-3px) scale(1.06);
  border-color: rgba(168, 116, 255, 0.60);
  box-shadow: 0 18px 44px rgba(139, 92, 246, 0.65);
  animation-play-state: paused;
}
.zf-scroll-top:active { transform: translateY(-1px) scale(1.02); }
.zf-scroll-top svg { display: block; }
@media (max-width: 640px) {
  .zf-scroll-top { bottom: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; }
}

/* ──────────────────────────── CTA pulse glow ──────────────────────────── */

@keyframes zfCtaPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35), 0 0 0 0 rgba(139, 92, 246, 0.40); }
  50%      { box-shadow: 0 12px 32px rgba(139, 92, 246, 0.55), 0 0 0 12px rgba(139, 92, 246, 0); }
}
.zf-hero-actions .zf-btn-primary,
.zf-finalcta .zf-btn-discord,
.zf-product-discord .zf-btn-discord {
  animation: zfCtaPulse 2.6s ease-in-out infinite;
}
.zf-hero-actions .zf-btn-primary:hover,
.zf-finalcta .zf-btn-discord:hover,
.zf-product-discord .zf-btn-discord:hover {
  animation-play-state: paused;
}

/* ──────────────────────────── Animated nav link underline ──────────────────────────── */

.zf-nav a:not(.zf-btn) {
  position: relative;
  padding: 0.25rem 0;
}
.zf-nav a:not(.zf-btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--p-400), var(--p-300));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 2px;
}
.zf-nav a:not(.zf-btn):hover::after,
.zf-nav a:not(.zf-btn).is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}
/* Active (scrollspy) state — brighter text so it stands out from idle links */
.zf-nav a:not(.zf-btn).is-active { color: var(--t); }

/* Mobile menu active indicator — coloured left accent bar since the
   underline isn't ideal for stacked links. */
.zf-mobile-menu a.is-active {
  color: var(--t);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.18), transparent 60%);
  border-left: 2px solid var(--p-400);
  padding-left: calc(0.75rem - 2px);
}

/* Brand subtle hover scale */
.zf-brand { transition: transform 0.25s ease, filter 0.25s ease; display: inline-block; }
.zf-brand:hover { transform: scale(1.04); filter: drop-shadow(0 4px 16px rgba(168, 116, 255, 0.45)); }

/* ──────────────────────────── Stats bar ──────────────────────────── */

.zf-stats {
  position: relative;
  padding: 4rem 0;
  border-top: 1px solid var(--b-line);
  border-bottom: 1px solid var(--b-line);
  background: linear-gradient(180deg, rgba(10,10,15,0) 0%, rgba(76, 29, 149, 0.06) 50%, rgba(10,10,15,0) 100%);
  overflow: hidden;
}
.zf-stats::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50rem;
  height: 12rem;
  transform: translate(-50%, -50%);
  background: rgba(124, 58, 237, 0.10);
  filter: blur(120px);
  pointer-events: none;
}
.zf-stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 640px) { .zf-stats-grid { grid-template-columns: repeat(3, 1fr); } }

.zf-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
@media (min-width: 640px) {
  .zf-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15%;
    bottom: 15%;
    right: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--b-mid), transparent);
  }
}
.zf-stat-value {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 0%, #c4a3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.025em;
}
.zf-stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--t-faint);
  letter-spacing: 0.01em;
  line-height: 1.5;
  max-width: 22rem;
}
.zf-stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid var(--b-soft);
  color: var(--p-400);
}

/* ──────────────────────────── Enhanced hero mockup detail ──────────────────────────── */

.zf-mockup-cell {
  position: relative;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid var(--b-soft);
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 0.625rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}
.zf-mockup-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 116, 255, 0.15), transparent 60%);
  pointer-events: none;
}
.zf-mockup-cell .zf-mc-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: var(--p-400);
  box-shadow: 0 0 8px rgba(168, 116, 255, 0.65);
  flex-shrink: 0;
}
.zf-mockup-cell .zf-mc-line {
  height: 0.35rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(168, 116, 255, 0.55), rgba(168, 116, 255, 0.18));
}
.zf-mockup-cell .zf-mc-line.short { width: 50%; }
.zf-mockup-cell .zf-mc-line.mid   { width: 75%; }
.zf-mockup-cell .zf-mc-line.long  { width: 95%; }
.zf-mockup-cell .zf-mc-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  height: 60%;
  margin-top: auto;
}
.zf-mockup-cell .zf-mc-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--p-400), var(--p-600));
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
  animation: zfBarBreathe 3s ease-in-out infinite;
}
.zf-mockup-cell .zf-mc-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.zf-mockup-cell .zf-mc-bars span:nth-child(2) { height: 70%; animation-delay: 0.4s; }
.zf-mockup-cell .zf-mc-bars span:nth-child(3) { height: 55%; animation-delay: 0.8s; }
.zf-mockup-cell .zf-mc-bars span:nth-child(4) { height: 85%; animation-delay: 1.2s; }
.zf-mockup-cell .zf-mc-bars span:nth-child(5) { height: 65%; animation-delay: 1.6s; }
@keyframes zfBarBreathe {
  0%, 100% { transform: scaleY(1);   opacity: 0.85; }
  50%      { transform: scaleY(1.15); opacity: 1; }
}
.zf-mockup-cell .zf-mc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  height: 100%;
  align-items: stretch;
}
.zf-mockup-cell .zf-mc-grid i {
  background: rgba(168, 116, 255, 0.20);
  border-radius: 3px;
  display: block;
}
.zf-mockup-cell .zf-mc-grid i:nth-child(odd)  { background: rgba(168, 116, 255, 0.35); }
.zf-mockup-cell .zf-mc-grid i:nth-child(3n)   { background: rgba(168, 116, 255, 0.55); }

.zf-mockup-cell.h-tall  { height: 9rem; }
.zf-mockup-cell.h-short { height: 4rem; padding: 0.45rem 0.6rem; }

/* ──────────────────────────── Hero CTA - secondary ghost border glow ──────────────────────────── */

.zf-btn-ghost {
  position: relative;
  background-image: linear-gradient(rgba(255,255,255,0.04), rgba(255,255,255,0.04)),
                    linear-gradient(135deg, rgba(168, 116, 255, 0.35), rgba(168, 116, 255, 0));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;
}

/* ──────────────────────────── Maintenance / 404 polish ──────────────────────────── */

.zf-maintenance {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem;
  text-align: center;
  overflow: hidden;
}
.zf-maintenance::before, .zf-maintenance::after {
  content: "";
  position: absolute;
  width: 32rem;
  height: 32rem;
  border-radius: 9999px;
  filter: blur(160px);
  pointer-events: none;
  z-index: 0;
}
.zf-maintenance::before { top: -8rem; left: -8rem;  background: rgba(124, 58, 237, 0.20); }
.zf-maintenance::after  { bottom: -8rem; right: -8rem; background: rgba(139, 92, 246, 0.15); }
.zf-maintenance-inner {
  position: relative;
  z-index: 1;
  max-width: 32rem;
}
.zf-maintenance .icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--p-600), var(--p-500));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.45);
  animation: zfFloat 4s ease-in-out infinite;
}
.zf-maintenance h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #ffffff 0%, #c4a3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.zf-maintenance p { color: var(--t-faint); font-size: 1.125rem; line-height: 1.6; }

/* ──────────────────────────── Selection / focus polish ──────────────────────────── */

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--p-400);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ──────────────────────────── Responsive ──────────────────────────── */

@media (max-width: 1023px) {
  .zf-hero-mockup { max-width: 32rem; margin: 0 auto; }
}
@media (max-width: 767px) {
  .zf-section { padding: 5rem 0; }
  .zf-section.zf-section-sm { padding: 4rem 0; }
  .zf-hero { padding-top: 6rem; }
  .zf-hero-grid { gap: 2.5rem; }
  .zf-finalcta { padding: 5rem 0; }
}
@media (max-width: 575px) {
  .zf-card, .zf-plan, .zf-changelog-card { padding: 1.5rem; }
  .zf-mockup-row.cols-3 { grid-template-columns: 1fr 1fr; }
}