/* ==========================================================================
   VIBE.FLOW – Full Visual Overhaul
   ─ Neon glow · Animated gradients · Glassmorphism 2.0 · 3D cards · WOW
   ========================================================================== */

/* ── Google Font import (if not already loaded by theme) ─────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Custom properties ───────────────────────────────────────────────────── */
#vibeflow-app {
  --p: #a855f7;
  --p2: #7c3aed;
  --pk: #ec4899;
  --pk2: #be185d;
  --bg: #030712;
  --bg1: #0c0a1e;
  --bg2: #111827;
  --glass: rgba(13, 8, 30, 0.72);
  --border: rgba(168, 85, 247, 0.18);
  --border2: rgba(255, 255, 255, 0.06);
  --text: #f9fafb;
  --muted: #9ca3af;
  --muted2: #6b7280;
  --gold: #fbbf24;
  --green: #34d399;
  --red: #f87171;
  --r: 1rem;
  --r2: 1.5rem;
  --blur: 24px;
  --glow-p: 0 0 40px rgba(168, 85, 247, 0.35);
  --glow-pk: 0 0 40px rgba(236, 72, 153, 0.35);
  --glow-sm: 0 0 20px rgba(168, 85, 247, 0.25);

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

#vibeflow-app *,
#vibeflow-app *::before,
#vibeflow-app *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
#vibeflow-app ::-webkit-scrollbar {
  width: 6px;
}

#vibeflow-app ::-webkit-scrollbar-track {
  background: var(--bg);
}

#vibeflow-app ::-webkit-scrollbar-thumb {
  background: var(--p);
  border-radius: 3px;
}

/* ── Utility gradients ───────────────────────────────────────────────────── */
.vf-gradient-text {
  background: linear-gradient(135deg, var(--p), var(--pk));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vf-gradient-bg {
  background: linear-gradient(135deg, var(--p), var(--pk));
}

/* Animated gradient bg for special elements */
.vf-anim-grad {
  background: linear-gradient(270deg, #a855f7, #ec4899, #7c3aed, #ec4899);
  background-size: 400% 400%;
  animation: vfGrad 6s ease infinite;
}

@keyframes vfGrad {

  0%,
  100% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }
}

/* ── Glass card ──────────────────────────────────────────────────────────── */
.vf-glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--r2);
}

/* Glowing glass (featured sections) */
.vf-glass-glow {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  border-radius: var(--r2);
  position: relative;
}

.vf-glass-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r2) + 1px);
  background: linear-gradient(135deg, rgba(168, 85, 247, .6), rgba(236, 72, 153, .6));
  z-index: -1;
  filter: blur(0);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.vf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border: none;
  border-radius: 9999px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  text-decoration: none;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  color: #ffffff !important;
  /* ← always white text on all buttons */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vf-btn:hover {
  transform: translateY(-2px);
}

.vf-btn:active {
  transform: scale(.96);
}

.vf-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none !important;
  pointer-events: none;
}

/* Primary – purple→pink gradient with glow */
.vf-btn-primary {
  background: linear-gradient(135deg, var(--p), var(--pk));
  color: #ffffff !important;
  box-shadow: 0 4px 24px rgba(168, 85, 247, .4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.vf-btn-primary:hover {
  box-shadow: 0 8px 32px rgba(168, 85, 247, .55);
  filter: brightness(1.1);
}

/* Ghost – translucent with border */
.vf-btn-ghost {
  background: rgba(255, 255, 255, .07);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .15);
}

.vf-btn-ghost:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(168, 85, 247, .5);
  box-shadow: var(--glow-sm);
}

/* Outline purple */
.vf-btn-outline {
  background: transparent;
  color: var(--p) !important;
  border: 1.5px solid var(--p);
  font-weight: 700;
}

.vf-btn-outline:hover {
  background: rgba(168, 85, 247, .12);
  box-shadow: var(--glow-sm);
  color: #fff !important;
}

/* Large generate button */
.vf-btn-generate {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--p), var(--pk));
  color: #fff !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(168, 85, 247, .4);
  font-weight: 800;
  letter-spacing: .03em;
}

.vf-btn-generate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .5s;
}

.vf-btn-generate:not(:disabled):hover::after {
  transform: translateX(100%);
}

.vf-btn-generate:not(:disabled):hover {
  box-shadow: 0 10px 48px rgba(168, 85, 247, .6);
}

/* Icon-only round button */
.vf-btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
#vibeflow-app .vf-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(168, 85, 247, .15);
  padding: .875rem 1.5rem;
}

.vf-nav-inner {
  max-width: 82rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vf-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.vf-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  background: linear-gradient(135deg, var(--p), var(--pk));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 18px rgba(168, 85, 247, .5);
  flex-shrink: 0;
}

.vf-logo-text {
  font-size: 1.45rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 20%, var(--p) 60%, var(--pk));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}

.vf-nav-links {
  display: none;
  gap: 1.75rem;
  list-style: none;
}

@media(min-width:768px) {
  .vf-nav-links {
    display: flex;
  }
}

.vf-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  transition: color .2s;
  position: relative;
}

.vf-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--p), var(--pk));
  transform: scaleX(0);
  transition: transform .25s;
  border-radius: 1px;
}

.vf-nav-links a:hover {
  color: #fff;
}

.vf-nav-links a:hover::after {
  transform: scaleX(1);
}

.vf-credits-badge {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: rgba(168, 85, 247, .12);
  border: 1px solid rgba(168, 85, 247, .3);
  padding: .4rem 1rem;
  border-radius: 9999px;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
}

.vf-credits-badge .coin {
  font-size: 1rem;
}

.vf-plan-badge {
  font-size: .7rem;
  font-weight: 800;
  padding: .15rem .6rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--p), var(--pk));
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Hero section ────────────────────────────────────────────────────────── */
.vf-hero {
  position: relative;
  padding: 5.5rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}

/* Animated mesh background */
.vf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(124, 58, 237, .22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(236, 72, 153, .18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 10%, rgba(168, 85, 247, .12) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated orbs */
.vf-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: vfOrb 8s ease-in-out infinite alternate;
}

.vf-hero-orb-1 {
  width: 28rem;
  height: 28rem;
  background: var(--p);
  opacity: .15;
  top: -6rem;
  left: -6rem;
}

.vf-hero-orb-2 {
  width: 36rem;
  height: 36rem;
  background: var(--pk);
  opacity: .12;
  bottom: -8rem;
  right: -8rem;
  animation-delay: 2s;
}

.vf-hero-orb-3 {
  width: 20rem;
  height: 20rem;
  background: #818cf8;
  opacity: .1;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes vfOrb {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(2rem, 1rem) scale(1.08);
  }
}

.vf-hero-orb-1 {
  animation-name: vfOrb1;
}

@keyframes vfOrb1 {
  from {
    transform: translate(0, 0) scale(1)
  }

  to {
    transform: translate(1.5rem, 2rem) scale(1.06)
  }
}

.vf-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  margin: 0 auto;
}

/* Badge above title */
.vf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(168, 85, 247, .12);
  border: 1px solid rgba(168, 85, 247, .35);
  border-radius: 9999px;
  padding: .4rem 1.1rem;
  font-size: .8rem;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: 1.5rem;
  letter-spacing: .04em;
  animation: vfFadeUp .8s ease both;
}

.vf-hero h2 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  animation: vfFadeUp .8s ease .1s both;
  letter-spacing: -.03em;
}

.vf-hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: vfFadeUp .8s ease .2s both;
}

.vf-hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: vfFadeUp .8s ease .3s both;
}

@keyframes vfFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero waveform ───────────────────────────────────────────────────────── */
.vf-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 64px;
  margin: 2.5rem auto 0;
  animation: vfFadeUp .8s ease .4s both;
}

.vf-wave-bar {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--p), var(--pk));
  animation: vfWave var(--dur, .8s) ease-in-out infinite;
  box-shadow: 0 0 8px rgba(168, 85, 247, .4);
}

@keyframes vfWave {

  0%,
  100% {
    height: 6px;
    opacity: .5;
  }

  50% {
    height: 48px;
    opacity: 1;
  }
}

/* Hero stats row */
.vf-hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  animation: vfFadeUp .8s ease .5s both;
}

.vf-hero-stat {
  text-align: center;
}

.vf-hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--p), var(--pk));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vf-hero-stat span {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Section utilities ───────────────────────────────────────────────────── */
.vf-section {
  padding: 5rem 1.5rem;
}

.vf-container {
  max-width: 82rem;
  margin: 0 auto;
}

.vf-section-heading {
  text-align: center;
  margin-bottom: 3.5rem;
}

.vf-section-heading h3 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  margin-bottom: .65rem;
  letter-spacing: -.02em;
}

.vf-section-heading p {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1rem;
}

/* ── Studio card ─────────────────────────────────────────────────────────── */
.vf-studio-wrap {
  background: linear-gradient(160deg, rgba(124, 58, 237, .06) 0%, rgba(13, 8, 30, .85) 40%);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(168, 85, 247, .22);
  border-radius: 1.75rem;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Animated corner glow */
.vf-studio-wrap::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(168, 85, 247, .18) 0%, transparent 70%);
  pointer-events: none;
}

.vf-studio-wrap::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(236, 72, 153, .15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Studio Grid (two-column desktop layout) ─────────────────────────────── */
.vf-studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .vf-studio-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.vf-studio-left {
  min-width: 0;
}

.vf-studio-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .vf-studio-right {
    position: sticky;
    top: 5rem;
  }
}

/* Options stack (vertical list of options in right column) */
.vf-options-stack {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* Lyrics hint box */
.vf-lyrics-hint {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: .75rem;
  padding: .65rem .9rem;
  background: rgba(168, 85, 247, .08);
  border: 1px solid rgba(168, 85, 247, .2);
  border-radius: .75rem;
  font-size: .78rem;
  color: #c4b5fd;
  line-height: 1.5;
}

/* Studio header */
.vf-studio-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.vf-studio-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--p), var(--pk));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(168, 85, 247, .4);
}

.vf-studio-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
}

.vf-studio-header p {
  color: var(--muted);
  font-size: .88rem;
  margin-top: .25rem;
}

/* ── Mode Tabs (Simple / Paroles / Instrumental) ─────────────────────────── */
.vf-mode-tabs {
  display: flex;
  gap: .4rem;
  margin-bottom: 2rem;
  padding: .3rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border2);
  border-radius: 1rem;
  width: fit-content;
}

.vf-mode-tab {
  padding: .6rem 1.4rem;
  border-radius: .75rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.vf-mode-tab.active {
  background: linear-gradient(135deg, var(--p), var(--pk));
  color: #fff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, .35);
}

.vf-mode-tab:hover:not(.active) {
  background: rgba(168, 85, 247, .12);
  color: #fff;
}

/* ── Mood sliders ─────────────────────────────────────────────────────────── */
.vf-sliders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.vf-slider-row {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.vf-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}

.vf-slider-labels .current {
  color: var(--p);
  font-weight: 700;
  background: rgba(168, 85, 247, .12);
  padding: .1rem .5rem;
  border-radius: 6px;
}

input[type="range"].vf-range {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, .08);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: height .2s;
}

input[type="range"].vf-range:hover {
  height: 7px;
}

input[type="range"].vf-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--pk));
  cursor: pointer;
  box-shadow: 0 0 10px rgba(168, 85, 247, .6), 0 2px 8px rgba(0, 0, 0, .4);
  transition: transform .2s, box-shadow .2s;
}

input[type="range"].vf-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 18px rgba(168, 85, 247, .8);
}

/* ── Prompt / Lyrics panels ──────────────────────────────────────────────── */
.vf-mode-panel {
  display: none;
}

.vf-mode-panel.active {
  display: block;
}

.vf-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  margin-bottom: .65rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .85);
}

.vf-textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  background: rgba(10, 6, 28, 0.7);
  border: 1.5px solid rgba(168, 85, 247, .2);
  border-radius: 1rem;
  color: #fff;
  font-size: .95rem;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
  line-height: 1.65;
}

.vf-textarea:focus {
  outline: none;
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .15), 0 0 20px rgba(168, 85, 247, .1);
}

.vf-textarea::placeholder {
  color: rgba(156, 163, 175, .5);
}

/* Lyrics textarea – bigger */
#vf-lyrics-textarea {
  height: 14rem;
  font-family: 'Inter', monospace;
  font-size: .9rem;
  line-height: 1.8;
  letter-spacing: .01em;
}

/* ── Lyrics Section Tags ─────────────────────────────────────────────────── */
.vf-lyrics-tags-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .75rem;
}

.vf-lyrics-tag-btn {
  padding: .3rem .75rem;
  border-radius: 9999px;
  background: rgba(168, 85, 247, .1);
  border: 1px solid rgba(168, 85, 247, .3);
  color: #c4b5fd;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  letter-spacing: .03em;
}

.vf-lyrics-tag-btn:hover {
  background: rgba(168, 85, 247, .25);
  border-color: var(--p);
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, .3);
  transform: translateY(-1px);
}

/* Char counter */
.vf-char-counter {
  text-align: right;
  font-size: .75rem;
  color: var(--muted);
  margin-top: .3rem;
}

.vf-char-counter.warn {
  color: var(--gold);
}

.vf-char-counter.over {
  color: var(--red);
}

/* ── Smart prompt btn ────────────────────────────────────────────────────── */
.vf-enhance-btn {
  background: none;
  border: none;
  color: var(--p);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .5rem;
  padding: .3rem 0;
  transition: color .2s, text-shadow .2s;
  font-family: inherit;
}

.vf-enhance-btn:hover {
  color: var(--pk);
  text-shadow: 0 0 12px rgba(236, 72, 153, .5);
}

/* ── Style tags ──────────────────────────────────────────────────────────── */
.vf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem;
}

.vf-tag {
  padding: .4rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  color: var(--muted);
  user-select: none;
}

.vf-tag:hover {
  background: rgba(168, 85, 247, .15);
  border-color: rgba(168, 85, 247, .5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, .2);
}

.vf-tag.active {
  background: linear-gradient(135deg, var(--p), var(--pk));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, .35);
}

/* ── Options checkboxes ──────────────────────────────────────────────────── */
.vf-options-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .75rem;
  margin-bottom: 1.75rem;
}

.vf-option-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: rgba(10, 6, 28, .7);
  border: 1.5px solid rgba(255, 255, 255, .07);
  border-radius: .875rem;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
  transition: all .2s;
}

.vf-option-label:hover {
  background: rgba(168, 85, 247, .1);
  border-color: rgba(168, 85, 247, .35);
  color: #fff;
}

input[type="checkbox"].vf-check {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--p);
  flex-shrink: 0;
}

/* Select */
.vf-select {
  padding: .65rem 1rem;
  background: rgba(10, 6, 28, .8);
  border: 1.5px solid rgba(255, 255, 255, .1);
  border-radius: .875rem;
  color: #fff;
  font-size: .875rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s;
}

.vf-select:focus {
  outline: none;
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .15);
}

.vf-select option {
  background: #1a1030;
  color: #fff;
}

/* Text input */
.vf-input {
  width: 100%;
  padding: .65rem 1rem;
  background: rgba(10, 6, 28, .7);
  border: 1.5px solid rgba(168, 85, 247, .2);
  border-radius: .875rem;
  color: #fff;
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.vf-input:focus {
  outline: none;
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .15);
}

.vf-input::placeholder {
  color: rgba(156, 163, 175, .4);
}

/* ── Generate row ────────────────────────────────────────────────────────── */
.vf-generate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: .25rem;
}

.vf-credit-info {
  font-size: .85rem;
  color: var(--muted);
}

.vf-credit-info strong {
  color: #e9d5ff;
  font-weight: 700;
}

/* ── Loading / Progress ──────────────────────────────────────────────────── */
.vf-loading {
  display: none;
  margin-top: 1.75rem;
  padding: 1.75rem;
  background: rgba(10, 6, 28, .7);
  border: 1px solid rgba(168, 85, 247, .2);
  border-radius: 1.25rem;
  text-align: center;
}

.vf-loading.active {
  display: block;
}

.vf-dots {
  display: inline-flex;
  gap: 6px;
  margin-bottom: .85rem;
}

.vf-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--p);
  animation: vfDot 1.3s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(168, 85, 247, .6);
}

.vf-dot:nth-child(2) {
  animation-delay: .2s;
  background: #818cf8;
}

.vf-dot:nth-child(3) {
  animation-delay: .4s;
  background: var(--pk);
}

@keyframes vfDot {

  0%,
  100% {
    transform: scale(.5) translateY(0);
    opacity: .4;
  }

  50% {
    transform: scale(1.1) translateY(-4px);
    opacity: 1;
  }
}

.vf-loading-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.vf-loading-sub {
  color: var(--muted);
  font-size: .85rem;
  margin-top: .35rem;
}

.vf-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, .07);
  border-radius: 3px;
  margin-top: 1.25rem;
  overflow: hidden;
}

.vf-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--p), #818cf8, var(--pk));
  background-size: 200% 100%;
  animation: vfProgress 1.5s linear infinite;
  transition: width .4s ease;
  width: 0%;
}

@keyframes vfProgress {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 200% 0%;
  }
}

/* ── Result tracks ───────────────────────────────────────────────────────── */
.vf-result {
  display: none;
  margin-top: 1.75rem;
  border: 1px solid rgba(52, 211, 153, .3);
  border-radius: 1.25rem;
  overflow: hidden;
  animation: vfSlideIn .4s ease;
}

.vf-result.active {
  display: block;
}

@keyframes vfSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vf-result-header {
  background: rgba(52, 211, 153, .1);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--green);
}

.vf-result-tracks {
  padding: .875rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.vf-track-row {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1rem;
  background: rgba(10, 6, 28, .7);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: .875rem;
  cursor: pointer;
  transition: all .25s;
}

.vf-track-row:hover {
  background: rgba(168, 85, 247, .1);
  border-color: rgba(168, 85, 247, .4);
  transform: translateX(4px);
}

.vf-track-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: .625rem;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2d1b4e, var(--pk));
}

.vf-track-info {
  flex: 1;
  min-width: 0;
}

.vf-track-name {
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
}

.vf-track-dur {
  color: var(--muted);
  font-size: .78rem;
  margin-top: .15rem;
}

.vf-track-play {
  font-size: 1.3rem;
  color: var(--p);
  flex-shrink: 0;
}

/* ── Gallery ─────────────────────────────────────────────────────────────── */
.vf-gallery-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, .01) 0%, rgba(124, 58, 237, .03) 50%, rgba(255, 255, 255, .01) 100%);
}

.vf-gallery-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.vf-gallery-header h3 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.vf-gallery-header p {
  color: var(--muted);
  margin-top: .25rem;
}

.vf-sort-tabs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.vf-sort-tab {
  padding: .45rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.vf-sort-tab.active {
  background: linear-gradient(135deg, var(--p), var(--pk));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, .3);
}

.vf-sort-tab:hover:not(.active) {
  background: rgba(168, 85, 247, .1);
  border-color: rgba(168, 85, 247, .3);
  color: #fff;
}

/* Search row */
.vf-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}

.vf-search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.vf-search-wrap input {
  width: 100%;
  padding: .75rem 1rem .75rem 2.75rem;
  background: rgba(10, 6, 28, .85);
  border: 1.5px solid rgba(255, 255, 255, .08);
  border-radius: 1rem;
  color: #fff;
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.vf-search-wrap input:focus {
  outline: none;
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .12);
}

.vf-search-wrap input::placeholder {
  color: rgba(156, 163, 175, .4);
}

.vf-search-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* ── Song cards ──────────────────────────────────────────────────────────── */
.vf-songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1.25rem;
}

.vf-card {
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(13, 8, 30, .8);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s;
  cursor: pointer;
  position: relative;
}

.vf-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 50px rgba(168, 85, 247, .22), 0 0 0 1px rgba(168, 85, 247, .25);
}

/* Card glow on hover */
.vf-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, .07), rgba(236, 72, 153, .05));
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 1;
}

.vf-card:hover::before {
  opacity: 1;
}

.vf-card-cover {
  position: relative;
  height: 11.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1040, #2d1b4e);
}

.vf-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.vf-card:hover .vf-card-cover img {
  transform: scale(1.1);
}

.vf-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}

.vf-card:hover .vf-card-overlay {
  opacity: 1;
}

.vf-card-play-btn {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--pk));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 28px rgba(168, 85, 247, .5);
}

.vf-card-play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 40px rgba(168, 85, 247, .7);
}

.vf-card-duration {
  position: absolute;
  top: .65rem;
  right: .65rem;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: .18rem .65rem;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
}

/* Card genre pill */
.vf-card-genre {
  position: absolute;
  top: .65rem;
  left: .65rem;
  background: rgba(168, 85, 247, .6);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: .18rem .65rem;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.vf-card-body {
  padding: .875rem 1rem .8rem;
  position: relative;
  z-index: 2;
}

.vf-card-title {
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vf-card-meta {
  color: var(--muted);
  font-size: .77rem;
  margin: .25rem 0 .7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vf-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vf-card-likes {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: .2rem .4rem;
  border-radius: .4rem;
  transition: all .2s;
}

.vf-card-likes:hover {
  color: var(--pk);
  background: rgba(236, 72, 153, .1);
}

.vf-card-likes.liked {
  color: var(--pk);
}

.vf-card-actions {
  display: flex;
  gap: .35rem;
}

.vf-mini-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  cursor: pointer;
  transition: all .2s;
  color: var(--muted);
}

.vf-mini-btn:hover {
  background: rgba(168, 85, 247, .2);
  border-color: rgba(168, 85, 247, .4);
  color: #fff;
  transform: scale(1.1);
}

/* Skeleton loader */
.vf-skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .07) 50%, rgba(255, 255, 255, .04) 75%);
  background-size: 400% 100%;
  animation: vfSkeleton 1.8s ease-in-out infinite;
  border-radius: 1.1rem;
}

@keyframes vfSkeleton {
  0% {
    background-position: 100% 0%;
  }

  100% {
    background-position: -100% 0%;
  }
}

/* Load more */
.vf-load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── Features grid ───────────────────────────────────────────────────────── */
.vf-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.vf-feature-card {
  padding: 1.6rem;
  border-radius: 1.1rem;
  background: rgba(13, 8, 30, .7);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.vf-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, .06), rgba(236, 72, 153, .04));
  opacity: 0;
  transition: opacity .3s;
}

.vf-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, .3);
  box-shadow: 0 12px 40px rgba(168, 85, 247, .15);
}

.vf-feature-card:hover::before {
  opacity: 1;
}

.vf-feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .875rem;
  background: linear-gradient(135deg, var(--p), var(--pk));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(168, 85, 247, .3);
  position: relative;
  z-index: 1;
}

.vf-feature-card h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .4rem;
  position: relative;
  z-index: 1;
}

.vf-feature-card p {
  color: var(--muted);
  font-size: .855rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.vf-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

.vf-plan-card {
  padding: 2.25rem;
  border-radius: 1.5rem;
  background: rgba(13, 8, 30, .75);
  border: 1px solid rgba(255, 255, 255, .07);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}

.vf-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.vf-plan-card.featured {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.vf-plan-card.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(1.5rem + 2px);
  background: linear-gradient(135deg, var(--p), var(--pk), #818cf8);
  z-index: -1;
}

.vf-plan-card.featured {
  background: rgba(13, 8, 30, .9);
  box-shadow: 0 0 60px rgba(168, 85, 247, .2);
}

.vf-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  font-size: .72rem;
  font-weight: 900;
  padding: .28rem 1rem;
  border-radius: 9999px;
  letter-spacing: .07em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(251, 191, 36, .4);
}

.vf-plan-name {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: .3rem;
}

.vf-plan-desc {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 1.35rem;
}

.vf-plan-price {
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 1.75rem;
  letter-spacing: -.03em;
}

.vf-plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.vf-plan-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.vf-plan-feature {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .85);
}

.vf-plan-feature .icon-ok {
  color: var(--green);
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.vf-plan-feature .icon-no {
  color: rgba(255, 255, 255, .18);
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.vf-plan-feature .icon-no~* {
  color: var(--muted2);
}

.vf-plan-cta {
  width: 100%;
  padding: .9rem;
  font-size: .9rem;
  border-radius: 1rem;
}

/* ── Monetization ────────────────────────────────────────────────────────── */
.vf-mono-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media(max-width:768px) {
  .vf-mono-grid {
    grid-template-columns: 1fr;
  }
}

.vf-mono-grid h3 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}

.vf-mono-grid>div>p {
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.vf-mono-steps {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.vf-mono-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.vf-step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--pk));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(168, 85, 247, .35);
}

.vf-mono-step h4 {
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: .25rem;
  color: #fff;
}

.vf-mono-step p {
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.6;
}

.vf-stats-card {
  background: rgba(13, 8, 30, .8);
  border: 1px solid rgba(168, 85, 247, .2);
  border-radius: 1.5rem;
  padding: 2.25rem;
  text-align: center;
  box-shadow: 0 0 60px rgba(168, 85, 247, .08);
}

.vf-stats-big {
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: .5rem;
  letter-spacing: -.04em;
}

.vf-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 1.75rem 0;
}

.vf-mini-stat {
  background: rgba(10, 6, 28, .7);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: .875rem;
  padding: .875rem .5rem;
}

.vf-mini-stat strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
}

.vf-mini-stat span {
  font-size: .7rem;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════════════════════
   AUDIO PLAYER – Complete redesign
   Always centered, never hidden by mobile chrome / WooCommerce bars.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Overlay (always centered on ALL screen sizes) ──────────────────────── */
.vf-player-overlay {
  display: none;
  position: fixed;
  inset: 0;
  /* extra bottom padding covers iOS home bar + WooCommerce sticky bar */
  padding: 1rem 1rem max(env(safe-area-inset-bottom, 0px) + 5rem, 5.5rem);
  background: rgba(3, 2, 12, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9900;        /* higher than WooCommerce cart bar (usually ~9000) */
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.vf-player-overlay.open {
  display: flex;
}

/* ── Player card ─────────────────────────────────────────────────────────── */
.vf-player {
  width: 100%;
  max-width: 24rem;
  border-radius: 2rem;
  padding: 2.25rem 1.75rem 1.75rem;
  background:
    linear-gradient(160deg, rgba(28, 10, 60, .98) 0%, rgba(10, 6, 26, .99) 100%);
  border: 1px solid rgba(168, 85, 247, .28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .04),
    0 30px 80px rgba(0, 0, 0, .7),
    0 0 60px rgba(168, 85, 247, .18),
    0 0 120px rgba(236, 72, 153, .08);
  position: relative;
  text-align: center;
  animation: vfPopIn .38s cubic-bezier(.34, 1.56, .64, 1) both;
  /* scrollable if content is taller than viewport */
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  scrollbar-width: none;
}
.vf-player::-webkit-scrollbar { display: none; }

@keyframes vfPopIn {
  from { transform: scale(.88) translateY(16px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

/* ── Close button ────────────────────────────────────────────────────────── */
.vf-player-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--muted);
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .2s;
  font-family: inherit;
  z-index: 2;
}
.vf-player-close:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  transform: scale(1.1) rotate(90deg);
}

/* ── Album art wrapper ───────────────────────────────────────────────────── */
.vf-player-art-wrap {
  position: relative;
  width: 10rem;
  height: 10rem;
  margin: 0 auto 1.5rem;
  /* overflow visible so glow can bleed outside */
  overflow: visible;
}

/* Spinning neon glow ring — lives BEHIND the art image */
.vf-player-art-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(
    #a855f7 0%,
    #ec4899 30%,
    #818cf8 55%,
    #34d399 75%,
    #a855f7 100%
  );
  z-index: 0;
  opacity: 0;
  filter: blur(10px);
  transition: opacity .5s ease;
  animation: vfGlowSpin 4s linear infinite;
  animation-play-state: paused;
}

.vf-player-art-glow.playing {
  opacity: .75;
  animation-play-state: running;
}

@keyframes vfGlowSpin {
  to { transform: rotate(360deg); }
}

/* Thin crisp border ring on top of the glow (always visible) */
.vf-player-art-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1.3rem;
  background: linear-gradient(135deg, rgba(168,85,247,.5), rgba(236,72,153,.4));
  z-index: 0;
  transition: border-radius .4s, opacity .4s;
  opacity: .6;
}
.vf-player-art-wrap.playing::before {
  border-radius: 50%;
  opacity: 0; /* glow takes over */
}

/* The actual cover image */
.vf-player-art {
  width: 100%;
  height: 100%;
  border-radius: 1.25rem;
  object-fit: cover;
  /* fallback gradient when no image */
  background: linear-gradient(135deg, #2d1b4e 0%, #7c3aed 50%, var(--pk) 100%);
  box-shadow: 0 8px 32px rgba(168, 85, 247, .35);
  transition: border-radius .45s ease, box-shadow .4s ease;
  position: relative;
  z-index: 1;       /* above the glow ring */
  display: block;
}

.vf-player-art.playing {
  border-radius: 50%;
  animation: vfSpin 12s linear infinite;
  box-shadow:
    0 0 40px rgba(168, 85, 247, .55),
    0 0 80px rgba(236, 72, 153, .25);
}

@keyframes vfSpin {
  to { transform: rotate(360deg); }
}

/* ── Song info ───────────────────────────────────────────────────────────── */
.vf-player-info {
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.vf-player-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.01em;
}

.vf-player-artist {
  color: var(--muted);
  font-size: .82rem;
  margin-top: .3rem;
  font-weight: 500;
}

/* ── CSS Bars Visualizer (CORS-safe, no Web Audio API) ───────────────────── */
.vf-viz-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  height: 44px;
  margin-bottom: 1rem;
  padding: 0 4px;
}

@keyframes vf-bar-bounce {
  0%, 100% { height: var(--minh, 15%); opacity: .5; }
  50%       { height: var(--maxh, 80%); opacity: 1;  }
}

.vf-viz-bar {
  flex: 1;
  max-width: 6px;
  min-height: 3px;
  height: var(--minh, 15%);
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(to top, #a855f7, #ec4899);
  opacity: .25;
  animation: vf-bar-bounce var(--dur, .5s) ease-in-out var(--delay, 0s) infinite;
  animation-play-state: paused;
  transition: opacity .3s;
}

.vf-viz-bars.playing .vf-viz-bar {
  animation-play-state: running;
  opacity: 1;
}

/* Progress bar */
/* ── Progress bar ────────────────────────────────────────────────────────── */
.vf-player-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .45rem;
  padding: 0 2px;
}

.vf-player-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 1.4rem;
  position: relative;
  transition: height .15s;
  /* larger tap target on mobile */
  padding: 6px 0;
  box-sizing: content-box;
  margin-top: -6px;
}

.vf-player-progress-track:hover  { height: 8px; }
.vf-player-progress-track:active { height: 10px; }

.vf-player-progress-fill {
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, #a855f7, #818cf8 50%, #ec4899);
  pointer-events: none;
  transition: width .1s linear;
  position: relative;
  box-shadow: 0 0 10px rgba(168, 85, 247, .5);
}

/* Thumb dot – always visible on mobile, hover on desktop */
.vf-player-progress-fill::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, .9);
  opacity: 0;
  transition: opacity .15s;
}

.vf-player-progress-track:hover .vf-player-progress-fill::after,
.vf-player-progress-track:active .vf-player-progress-fill::after {
  opacity: 1;
}

/* ── Transport controls ───────────────────────────────────────────────────── */
.vf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.vf-ctrl-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s, box-shadow .2s;
  font-family: inherit;
  flex-shrink: 0;
}

.vf-ctrl-btn:hover  { background: rgba(255,255,255,.13); transform: scale(1.1); }
.vf-ctrl-btn:active { transform: scale(.95); }

/* Big play/pause button */
.vf-ctrl-play {
  width: 4.25rem;
  height: 4.25rem;
  background: linear-gradient(135deg, #a855f7, #7c3aed 40%, #ec4899);
  border: none;
  box-shadow: 0 0 30px rgba(168, 85, 247, .55), 0 0 60px rgba(236,72,153,.2);
}

.vf-ctrl-play:hover {
  box-shadow: 0 0 45px rgba(168, 85, 247, .75), 0 0 80px rgba(236,72,153,.3);
  transform: scale(1.08);
}

/* ── Volume row ──────────────────────────────────────────────────────────── */
.vf-volume-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding: 0 .1rem;
}

.vf-volume-row span,
.vf-volume-row .vf-vol-icon-btn {
  font-size: .85rem;
  flex-shrink: 0;
  width: 1.6rem;
  text-align: center;
}
.vf-volume-row .vf-vol-icon-btn {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: .2rem;
  border-radius: .3rem;
  transition: background .15s ease;
}
.vf-volume-row .vf-vol-icon-btn:hover {
  background: rgba(168, 85, 247, 0.15);
}

input[type="range"].vf-volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: rgba(255, 255, 255, .1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type="range"].vf-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--pk));
  cursor: pointer;
  box-shadow: 0 0 6px rgba(168,85,247,.6);
}

input[type="range"].vf-volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--pk));
  cursor: pointer;
}

/* ── Action buttons ──────────────────────────────────────────────────────── */
.vf-player-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  padding-top: .25rem;
}

.vf-player-action {
  padding: .65rem .4rem;
  border-radius: .875rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #ddd;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  transition: all .2s;
  font-family: inherit;
  line-height: 1.2;
}

.vf-player-action svg { opacity: .8; }

.vf-player-action:hover {
  background: rgba(168, 85, 247, .18);
  border-color: rgba(168, 85, 247, .45);
  color: #fff;
  box-shadow: 0 0 14px rgba(168, 85, 247, .25);
  transform: translateY(-1px);
}

/* ── Mini player bar ─────────────────────────────────────────────────────── */
.vf-mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* sit above WooCommerce bar but below our modal */
  z-index: 8500;
  background: rgba(6, 3, 16, .97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(168, 85, 247, .22);
  padding: .6rem 1rem;
  padding-bottom: max(.6rem, env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  gap: .75rem;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, .7), 0 -1px 0 rgba(168,85,247,.15);
}

.vf-mini-player.visible { display: flex; }

.vf-mini-cover {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .625rem;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2d1b4e, var(--pk));
  box-shadow: 0 0 14px rgba(168, 85, 247, .4);
}

.vf-mini-info {
  flex: 1;
  min-width: 0;
}

.vf-mini-title {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vf-mini-artist {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .1rem;
}

.vf-mini-progress {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, .08);
  border-radius: 3px;
  overflow: hidden;
  display: none;
}

@media(min-width: 600px) {
  .vf-mini-progress { display: block; }
}

.vf-mini-ctrl {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: .2rem .5rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .15s, color .15s;
}

.vf-mini-ctrl:hover {
  transform: scale(1.2);
  color: var(--p);
}

.vf-mini-close {
  font-size: 1.1rem;
  color: var(--muted);
}

.vf-mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--p), var(--pk));
  transition: width .2s;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.vf-toast {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  z-index: 9999;
  background: rgba(13, 8, 30, .95);
  border: 1px solid rgba(168, 85, 247, .3);
  border-radius: 1rem;
  padding: .9rem 1.35rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  transform: translateY(1.5rem);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .3s;
  max-width: 24rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
}

.vf-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.vf-toast.error {
  border-color: rgba(248, 113, 113, .4);
}

.vf-toast.success .vf-toast-icon {
  color: var(--green);
}

.vf-toast.error .vf-toast-icon {
  color: var(--red);
}

.vf-toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Upgrade modal ───────────────────────────────────────────────────────── */
.vf-upgrade-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vf-upgrade-modal.open {
  display: flex;
}

.vf-upgrade-box {
  background: linear-gradient(160deg, rgba(124, 58, 237, .2) 0%, rgba(10, 6, 28, .98) 50%);
  border: 1px solid rgba(168, 85, 247, .35);
  border-radius: 1.75rem;
  padding: 2.75rem 2.25rem;
  max-width: 28rem;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 80px rgba(168, 85, 247, .2);
  animation: vfPopIn .3s cubic-bezier(.34, 1.56, .64, 1);
}

.vf-upgrade-box h3 {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: .6rem;
}

.vf-upgrade-box p {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ── Confetti container ──────────────────────────────────────────────────── */
#vf-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.vf-confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: vfConfettiFall linear forwards;
}

@keyframes vfConfettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* ── Lyrics mode panel ───────────────────────────────────────────────────── */
.vf-lyrics-editor {
  position: relative;
}

.vf-lyrics-hint {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.6;
  background: rgba(168, 85, 247, .07);
  border: 1px solid rgba(168, 85, 247, .15);
  border-radius: .75rem;
  padding: .75rem 1rem;
  margin-top: .75rem;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}

/* ── Advanced options toggle ─────────────────────────────────────────────── */
.vf-adv-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  margin-bottom: 1rem;
  transition: color .2s;
}

.vf-adv-toggle:hover {
  color: var(--p);
}

.vf-adv-toggle::before {
  content: '▶';
  font-size: .65rem;
  transition: transform .25s;
  display: inline-block;
}

details[open] .vf-adv-toggle::before {
  transform: rotate(90deg);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.vf-footer {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 3.5rem 1.5rem 2rem;
}

.vf-footer-grid {
  max-width: 82rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.vf-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: .75rem;
}

.vf-footer-links h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: .75rem;
  font-size: .9rem;
}

.vf-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}

.vf-footer-links a:hover {
  color: var(--p);
}

.vf-footer-bottom {
  max-width: 82rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .05);
  padding-top: 1.75rem;
  color: var(--muted);
  font-size: .82rem;
}

.vf-social-links {
  display: flex;
  gap: .6rem;
}

.vf-social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: .85rem;
  transition: all .2s;
}

.vf-social-btn:hover {
  background: var(--p);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(168, 85, 247, .4);
}

/* ── Helpers ─────────────────────────────────────────────────────────────── */
.vf-hidden {
  display: none !important;
}

.vf-flex {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.vf-spacer {
  flex: 1;
}

.vf-mt-1 {
  margin-top: .5rem;
}

.vf-mt-2 {
  margin-top: 1rem;
}

.vf-mt-3 {
  margin-top: 1.75rem;
}

.vf-mb-1 {
  margin-bottom: .5rem;
}

.vf-mb-2 {
  margin-bottom: 1rem;
}

.vf-text-sm {
  font-size: .82rem;
}

.vf-muted {
  color: var(--muted);
}

.vf-center {
  text-align: center;
}

.vf-w100 {
  width: 100%;
}

.vf-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .06);
  margin: 1.5rem 0;
}

/* Lyrics display panel (in studio) */
.vf-lyrics-display {
  background: rgba(10, 6, 28, .7);
  border: 1.5px solid rgba(168, 85, 247, .2);
  border-radius: 1rem;
  padding: 1.25rem;
  font-size: .875rem;
  line-height: 2;
  white-space: pre-wrap;
  color: var(--muted);
  max-height: 15rem;
  overflow-y: auto;
  display: none;
  font-family: inherit;
}

.vf-lyrics-display.active {
  display: block;
  animation: vfFadeUp .3s ease;
}

.vf-lyrics-display .vf-section-tag {
  color: var(--p);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .06em;
}

/* ── Sparkle animation ───────────────────────────────────────────────────── */
.vf-sparkles {
  display: inline-block;
  animation: vfSparkle 1.5s ease infinite;
}

@keyframes vfSparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* ── Footer h5 (outside links) ─────────────────────────────────────────── */
.vf-footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: .6rem;
  font-size: .9rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE – Mobile First Overhaul
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Tablet & Small Desktop (max 1024px) ─────────────────────────────── */
@media (max-width: 1024px) {
  .vf-mono-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vf-pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .vf-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ── Mobile landscape / tablets (max 768px) ──────────────────────────── */
@media (max-width: 768px) {
  #vibeflow-app {
    font-size: 15px;
  }

  /* Nav: stack logo + user actions */
  .vf-nav {
    padding: .65rem 1rem;
  }

  .vf-nav-inner {
    flex-wrap: wrap;
    gap: .5rem;
  }

  .vf-nav-links {
    display: none !important;
  }

  .vf-credits-badge {
    font-size: .75rem;
    padding: .3rem .7rem;
  }

  /* Hero */
  .vf-hero {
    padding: 3rem 1rem 2.5rem;
  }

  .vf-hero h2 {
    font-size: 2.2rem;
  }

  .vf-hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .vf-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .vf-hero-actions .vf-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .vf-hero-orb { display: none; }

  /* Sections: reduce padding */
  .vf-section {
    padding: 3rem 1rem;
  }

  .vf-section-heading {
    margin-bottom: 2rem;
  }

  .vf-section-heading h3 {
    font-size: 1.5rem;
  }

  /* Studio */
  .vf-glass {
    border-radius: 1.25rem;
  }

  #vf-studio .vf-glass {
    padding: 1.5rem 1rem !important;
  }

  .vf-studio-header {
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.5rem;
  }

  .vf-studio-header > div:last-child {
    margin-left: 0;
    text-align: left;
  }

  /* Mode tabs: scroll horizontally */
  .vf-mode-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    padding-bottom: .2rem;
  }

  .vf-mode-tabs::-webkit-scrollbar { display: none; }

  .vf-mode-tab {
    padding: .5rem 1rem;
    font-size: .8rem;
    flex-shrink: 0;
  }

  .vf-mode-tab .vf-badge { display: none; }

  /* Sliders: stack to 1 column */
  .vf-sliders-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  /* Lyrics tags: scroll */
  .vf-lyrics-tags-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .3rem;
    scrollbar-width: none;
  }

  .vf-lyrics-tags-bar::-webkit-scrollbar { display: none; }

  .vf-lyrics-tag-btn {
    flex-shrink: 0;
  }

  /* Style tags: wrap better */
  .vf-tags {
    gap: .35rem;
  }

  .vf-tag {
    padding: .3rem .7rem;
    font-size: .72rem;
  }

  /* Advanced options: single column */
  details > div {
    grid-template-columns: 1fr !important;
  }

  details > div > div[style*="grid-column"] {
    grid-column: span 1 !important;
  }

  /* Options row: stack */
  .vf-options-row {
    grid-template-columns: 1fr;
    gap: .5rem;
    margin-bottom: 1.25rem;
  }

  .vf-option-label {
    padding: .65rem .85rem;
    font-size: .82rem;
  }

  /* Generate row: stack vertically */
  .vf-generate-row {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }

  .vf-generate-row .vf-credit-info {
    text-align: center;
    font-size: .8rem;
  }

  .vf-btn-generate {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: .95rem;
  }

  /* Result actions */
  .vf-result-actions {
    flex-direction: column !important;
  }

  .vf-result-actions .vf-btn { flex: none !important; }

  /* Gallery */
  .vf-gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }

  .vf-sort-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .3rem;
    scrollbar-width: none;
  }

  .vf-sort-tabs::-webkit-scrollbar { display: none; }

  .vf-sort-tab {
    flex-shrink: 0;
    padding: .4rem .8rem;
    font-size: .78rem;
  }

  .vf-search-row {
    flex-direction: column;
    gap: .5rem;
  }

  .vf-search-wrap {
    min-width: 100%;
  }

  .vf-songs-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
  }

  .vf-card-cover { height: 9rem; }

  .vf-card-body {
    padding: .65rem .75rem .6rem;
  }

  .vf-card-title { font-size: .85rem; }
  .vf-card-meta { font-size: .72rem; }

  /* Features: stack */
  .vf-features-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .vf-feature-card {
    padding: 1.25rem;
  }

  /* Pricing: stack */
  .vf-pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 28rem;
    margin: 0 auto;
  }

  .vf-plan-card { padding: 1.75rem 1.25rem; }
  .vf-plan-price { font-size: 2.2rem; }

  /* Footer */
  .vf-footer {
    padding: 2.5rem 1rem 1.5rem;
  }

  .vf-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .vf-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: .75rem;
  }

  /* Mono section */
  .vf-mono-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .vf-mono-grid h3 { font-size: 1.4rem; }

  .vf-stats-big { font-size: 2.5rem; }

  .vf-mini-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
  }

  .vf-mini-stat {
    padding: .65rem .3rem;
  }

  .vf-mini-stat strong { font-size: 1.05rem; }
  .vf-mini-stat span { font-size: .62rem; }

  /* Player */
  .vf-player {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
  }

  .vf-player-art {
    width: 8rem;
    height: 8rem;
  }

  .vf-player-title { font-size: 1.1rem; }

  .vf-player-actions {
    grid-template-columns: 1fr 1fr 1fr;
    gap: .3rem;
  }

  .vf-player-action {
    padding: .55rem .3rem;
    font-size: .7rem;
  }

  /* Toast: full width on mobile */
  .vf-toast {
    right: .75rem;
    left: .75rem;
    bottom: 4.5rem;
    max-width: none;
    font-size: .82rem;
    padding: .75rem 1rem;
  }

  /* Upgrade modal */
  .vf-upgrade-box {
    padding: 2rem 1.25rem;
  }

  .vf-upgrade-box h3 { font-size: 1.4rem; }

  .vf-upgrade-box > div:last-child {
    flex-direction: column;
  }

  .vf-upgrade-box .vf-btn {
    width: 100%;
    justify-content: center;
  }

  /* Mini player */
  .vf-mini-player {
    padding: .5rem .75rem;
    gap: .5rem;
  }

  .vf-mini-cover {
    width: 2.25rem;
    height: 2.25rem;
  }

  .vf-mini-title { font-size: .78rem; }
  .vf-mini-artist { font-size: .65rem; }
}

/* ── Very small phones (max 380px) ───────────────────────────────────── */
@media (max-width: 380px) {
  #vibeflow-app {
    font-size: 14px;
  }

  .vf-hero {
    padding: 2rem .75rem 2rem;
  }

  .vf-hero h2 {
    font-size: 1.7rem;
  }

  .vf-hero p {
    font-size: .9rem;
  }

  .vf-section {
    padding: 2rem .75rem;
  }

  #vf-studio .vf-glass {
    padding: 1.25rem .75rem !important;
  }

  .vf-mode-tab {
    padding: .45rem .75rem;
    font-size: .75rem;
  }

  .vf-textarea {
    font-size: .85rem;
    padding: .75rem;
  }

  .vf-songs-grid {
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }

  .vf-card-cover { height: 7.5rem; }

  .vf-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .vf-pricing-grid {
    max-width: 100%;
  }

  .vf-plan-price { font-size: 1.8rem; }
  .vf-plan-features { gap: .5rem; }
  .vf-plan-feature { font-size: .78rem; }
}

/* ── Better button spacing across all sizes ──────────────────────────── */
#vibeflow-app .vf-tags-wrap {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

#vibeflow-app .vf-prompt-wrap {
  margin-bottom: 1.5rem;
}

#vibeflow-app .vf-lyrics-editor {
  margin-bottom: 1rem;
}

/* Ensure all buttons in the app show text */
#vibeflow-app button,
#vibeflow-app .vf-btn,
#vibeflow-app a.vf-btn {
  color: #fff;
}

#vibeflow-app .vf-btn-outline {
  color: var(--p);
}

#vibeflow-app .vf-btn-outline:hover {
  color: #fff;
}

/* Fix inline style var references that use --vf- prefix */
#vibeflow-app {
  --vf-muted: var(--muted);
  --vf-text: var(--text);
  --vf-green: var(--green);
  --vf-purple: var(--p);
  --vf-pink: var(--pk);
}

/* ── Loading overlay background pulse ────────────────────────────────── */
.vf-loading.active {
  animation: vfLoadPulse 2s ease-in-out infinite;
}

@keyframes vfLoadPulse {
  0%, 100% { background: rgba(10, 6, 28, .7); }
  50% { background: rgba(168, 85, 247, .08); }
}

/* ── Neon hover glow for interactive elements ────────────────────────── */
#vibeflow-app .vf-glass:hover {
  box-shadow: 0 0 40px rgba(168, 85, 247, .08);
}

/* ── Print / reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #vibeflow-app *,
  #vibeflow-app *::before,
  #vibeflow-app *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Safe area for phones with notch ─────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .vf-mini-player {
    padding-bottom: calc(.65rem + env(safe-area-inset-bottom));
  }
  .vf-toast {
    bottom: calc(5rem + env(safe-area-inset-bottom));
  }
}

/* ── Clean (Copyright) button ─────────────────────────────────────────── */
.vf-enhance-btn.vf-clean-btn {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}
.vf-enhance-btn.vf-clean-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(236, 72, 153, 0.25));
  border-color: rgba(251, 191, 36, 0.7);
  color: #fff;
}
.vf-enhance-btn.vf-clean-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Style Categories (Trending / Afro / Urban / etc.) ───────────────── */
.vf-style-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .6rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.vf-style-cat {
  background: rgba(255, 255, 255, 0.04);
  color: var(--vf-muted, #9ca3af);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.vf-style-cat:hover {
  color: #fff;
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.08);
}
.vf-style-cat.active {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}
.vf-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
#vf-selected-styles-preview {
  color: var(--vf-muted, #9ca3af);
  font-size: .72rem;
  margin-top: .4rem;
  min-height: 1em;
  font-style: italic;
}

/* ── Pro-only mini action buttons (Cover / Clone) ────────────────────── */
.vf-mini-btn.vf-pro-btn {
  position: relative;
}
.vf-mini-btn.vf-pro-btn::after {
  content: "PRO";
  position: absolute;
  top: -4px;
  right: -6px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #111;
  font-size: 7px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 3px;
  letter-spacing: .5px;
  pointer-events: none;
}

/* ── Advanced Modal (Cover / Clone) ──────────────────────────────────── */
.vf-adv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.vf-adv-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.vf-adv-inner {
  background: linear-gradient(180deg, #1a1428 0%, #0f0820 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 1.2rem;
  padding: 2rem 1.75rem 1.5rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(168, 85, 247, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: scale(.96);
  transition: transform .25s ease;
}
.vf-adv-modal.open .vf-adv-inner {
  transform: scale(1);
}
.vf-adv-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vf-adv-intro {
  color: var(--vf-muted, #9ca3af);
  font-size: .85rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}
.vf-adv-label {
  display: block;
  color: #e5e7eb;
  font-size: .78rem;
  font-weight: 600;
  margin: .9rem 0 .35rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.vf-adv-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: .6rem;
  padding: .7rem .85rem;
  color: #fff;
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s ease, background .2s ease;
  box-sizing: border-box;
}
.vf-adv-input:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.06);
}
.vf-adv-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: .82rem;
}
.vf-adv-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.vf-adv-actions .vf-btn-ghost,
.vf-adv-actions .vf-btn-primary {
  padding: .6rem 1.2rem;
  border-radius: .6rem;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .2s ease;
}
.vf-adv-actions .vf-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}
.vf-adv-actions .vf-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.vf-adv-actions .vf-btn-primary {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}
.vf-adv-actions .vf-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.45);
}
.vf-adv-actions .vf-btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.vf-modal-close {
  position: absolute;
  top: .75rem;
  right: .85rem;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.vf-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 560px) {
  .vf-adv-inner {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 1rem;
  }
  .vf-adv-title { font-size: 1.15rem; }
  .vf-style-cat { font-size: .72rem; padding: .3rem .7rem; }
}
