/* vocal-cosmic.css — overlays the Mazmazika cosmic shell onto the Vocal Remover:
   shared background + vertical rail + glassy panels. Loaded after vocal-styles.css. */
@import url("cosmic-rail.css?v=r2"); /* canonical vertical rail (single source — do NOT redeclare .rail*) */

/* ── App wrapper / layering ─────────────────────────────────── */
.app { position: relative; min-height: 100dvh; }
.app .shell { position: relative; z-index: 1; padding-left: 92px; }
body { background-attachment: fixed; transition: background-color .5s ease, color .3s ease; }

/* ── Background (shared with landing) ───────────────────────── */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 95% at 50% 12%, var(--bg3), transparent 56%),
    radial-gradient(110% 80% at 50% 118%, var(--bg2), transparent 62%),
    var(--bg);
  transition: background .5s ease;
}
.bg-nebula {
  position: absolute; inset: -22%;
  background:
    radial-gradient(52% 58% at 24% 26%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 76%),
    radial-gradient(56% 60% at 80% 80%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 78%),
    radial-gradient(48% 52% at 84% 20%, color-mix(in srgb, var(--accent2) 20%, transparent), transparent 78%);
  filter: blur(54px); opacity: .5; transition: opacity .5s ease;
}
.app[data-motion="1"] .bg-nebula { animation: nebula-drift 38s ease-in-out infinite alternate; }
@keyframes nebula-drift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(2.5%, -2%, 0) scale(1.08); } }
.is-light .bg-nebula { opacity: .4; }

.bg-stars { position: absolute; inset: 0; color: #fff; }
.bg-stars span { position: absolute; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 6px color-mix(in srgb, currentColor 70%, transparent); }
.app[data-motion="1"] .bg-stars.twinkle span { animation: twinkle linear infinite; }
@keyframes twinkle { 0%,100% { opacity: .2; } 50% { opacity: 1; } }
.is-light .bg-stars { color: var(--accent); opacity: .3; }

.bg-grain { position: absolute; inset: 0; mix-blend-mode: overlay; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); }
.bg-vignette { position: absolute; inset: 0;
  background: radial-gradient(115% 100% at 50% 42%, transparent 52%, color-mix(in srgb, var(--bg) 92%, black) 100%);
  transition: background .5s ease; }

/* Vertical rail → css/cosmic-rail.css (single source, imported at top). */

/* ── Glassy panels over the cosmic background ───────────────── */
.tool, .feature, .fmt, .theme-toggle, .btn-ghost, .btn-solid, .stem-card, .mode-card,
.dropzone, .input, .foot .socials a, .chip-mini, .segment, .icon-btn {
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.tool { box-shadow: var(--shadow-card), inset 0 1px 0 color-mix(in srgb, #fff 14%, transparent); }
.eyebrow { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* hero headline serif accent uses display font */
.hero h1 em, .proc h3 em, .brand-name em { font-family: var(--font-serif); }

/* ── Segmented tabs: unmistakable active vs hover across all 8 themes ──────
   Previously the active tab (--surface) sat on the track (--surface-3) — two
   near-identical neutrals — with no real hover state. Now ACTIVE is accent-
   tinted with an accent ring + glow (matching the stem-card / mode-card
   selected language), while HOVER is a plain neutral grey lift. Colored vs grey
   reads instantly in every theme. Tokens (--accent, --ink, --line, --surface)
   are set per-theme by the cosmic shell, so this holds for all 8. */
.segment { background: color-mix(in srgb, var(--ink) 6%, transparent); border-color: var(--line); }
.segment button { color: var(--sub); transition: background .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease); }
.segment button svg { transition: color .16s var(--ease); }
/* hover (only when NOT active): neutral lift */
.segment button:not([aria-selected="true"]):hover {
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  color: var(--ink);
}
/* active: accent-tinted chip with ring + glow, high-contrast ink label */
.segment button[aria-selected="true"] {
  background: color-mix(in srgb, var(--accent) 24%, var(--surface));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent),
              0 4px 14px -5px color-mix(in srgb, var(--accent) 65%, transparent);
}
.segment button[aria-selected="true"] svg { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  /* rail mobile behaviour lives in cosmic-rail.css */
  .app .shell { padding-left: 72px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-nebula, .bg-stars span { animation: none !important; }
}

/* ── Vocal Remover: real-flow additions (access bar, tabs, upgrade modal) ── */
.vr-access {
  display: flex; align-items: center; gap: 10px; max-width: 760px;
  margin: 0 auto 16px; padding: 11px 16px; border-radius: 12px;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  background: var(--surface-2, color-mix(in srgb, var(--bg2) 70%, transparent));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.vr-access.ok { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.vr-access svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.vr-access a { color: var(--accent); font-weight: 600; }

.vr-tabs {
  display: flex; gap: 4px; max-width: 760px; margin: 0 auto 16px; padding: 4px;
  border-radius: 13px; background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.vr-tabs button {
  flex: 1; appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--sub); padding: 10px 14px; border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}
.vr-tabs button.on { background: color-mix(in srgb, var(--bg) 60%, transparent); color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.18); }

.vr-queue { max-width: 760px; margin: 10px auto 0; text-align: center; color: var(--accent);
  font-family: var(--font-body); font-size: 14px; }

.vr-modal-backdrop {
  position: fixed; inset: 0; z-index: 7000; display: grid; place-items: center;
  background: color-mix(in srgb, #000 55%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 20px;
}
.vr-modal {
  width: min(440px, 94vw); padding: 26px 24px; border-radius: 18px; color: var(--ink);
  background: color-mix(in srgb, var(--bg2) 92%, transparent); border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.85); font-family: var(--font-body);
}
.vr-modal h3 { margin: 0 0 10px; font-family: var(--font-display); font-style: var(--display-style);
  font-size: 22px; font-weight: 600; }
.vr-modal p { margin: 0 0 20px; color: var(--sub); line-height: 1.55; }
.vr-modal-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.vr-modal .btn-solid { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }
.vr-modal .btn-solid svg { width: 16px; height: 16px; }
.vr-modal .btn-ghost { padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-weight: 600; }
