/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8125rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--gradient-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* ── Cards ── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: inherit;
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

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

.card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.06);
}

.card-body {
  padding: var(--space-lg);
  position: relative;
  z-index: 1;
}

/* ── Beat card (shop grid) — square layout with preview + actions ── */

.beat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.beat-card .beat-card-art {
  display: block;
  width: 100%;
  position: relative;
  text-decoration: none;
}

.beat-card .beat-card-title a {
  color: inherit;
  text-decoration: none;
}

.beat-card .beat-card-title a:hover {
  color: var(--accent-light);
}

.beat-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.beat-card.is-previewing {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-lg);
}

.beat-card-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.beat-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-base);
}

.beat-card:hover .beat-card-art img {
  transform: scale(1.06);
}

.beat-card.is-previewing .beat-card-art img {
  filter: brightness(0.75);
}

.beat-card-art-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.beat-card-hover {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(8, 8, 15, 0);
  transition: background var(--transition-fast);
  pointer-events: none;
}

.beat-card:hover .beat-card-hover {
  background: rgba(8, 8, 15, 0.35);
}

.beat-card-play-indicator {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-lg);
}

.beat-card-play-indicator svg {
  margin-left: 3px; /* optical centering for play triangle */
}

.beat-card.is-previewing .beat-card-play-indicator {
  animation: bbm-previewing-pulse 1.2s ease-in-out infinite;
}

@keyframes bbm-previewing-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(124, 92, 252, 0.6); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(124, 92, 252, 0); }
}

.beat-card-bpm {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: 0.25rem 0.55rem;
  background: rgba(8, 8, 15, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  z-index: 2;
}

.beat-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.beat-card-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.beat-card-meta .bc-mood {
  color: var(--accent-light);
}

.beat-card-meta .bc-key {
  color: var(--text-secondary);
}

.beat-card-meta .bc-key::before {
  content: '·';
  margin-right: var(--space-sm);
  opacity: 0.5;
}

.beat-card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.beat-card-genre {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.beat-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-sm);
}

.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex: 1 1 auto;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hover);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.bc-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.bc-btn-primary {
  background: var(--accent-subtle);
  color: var(--accent-light);
  border-color: transparent;
}

.bc-btn-primary:hover {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.bc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.bc-icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ── Tags / Badges ── */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent-light);
}

.tag-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
}

.tag-link {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag-link:hover {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* ── Play overlay ── */

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 15, 0.5);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.play-overlay svg {
  width: 52px;
  height: 52px;
  fill: #fff;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-spring);
}

.card:hover .play-overlay svg {
  transform: scale(1.1);
}

/* ── Forms ── */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.8125rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
  outline: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ── Section headings ── */

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: 1.0625rem;
  max-width: 560px;
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin-inline: auto;
}

/* Taxonomy archives (product_cat, type_beat) with a term thumbnail render
   the description on the left and the image on the right. Text column is
   capped at 560px so the paragraph width matches the no-image header; the
   image column flexes to fill the remaining container width. Falls back to
   stacked, text-first on narrow viewports. */
.section-header--has-image {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}

.section-header-image {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.section-header-image-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .section-header--has-image {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .section-header-image {
    max-width: 360px;
  }
}

/* ── Eyebrow label ── */

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: var(--space-md);
}

/* ── Divider ── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-3xl) 0;
}

/* ── Glass panel ── */

.glass {
  background: rgba(18, 18, 31, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

/* ── Value props grid (homepage) ── */

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

/* 4 cards in this section. On tablet, four in a row gets cramped (~170px
   per card), so step through 2x2 first and only go single-row at ≥1024px
   where each card has ~250px+ to breathe. */
@media (min-width: 768px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.value-card:hover {
  background: rgba(124, 92, 252, 0.04);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-lg);
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  color: var(--accent-light);
}

.value-card h3 {
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 0.9375rem;
}

/* ── How It Works — 3-step funnel strip (homepage) ── */

.how-it-works .hiw-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  counter-reset: hiw;
  position: relative;
}

@media (min-width: 768px) {
  .how-it-works .hiw-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.hiw-step {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-card);
  background-image: var(--gradient-card, none);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.hiw-step:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.25));
}

.hiw-step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-family: var(--font-display, inherit);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(124, 92, 252, 0.35);
}

.hiw-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: var(--space-sm) auto var(--space-md);
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  color: var(--accent-light);
}

.hiw-step h3 {
  margin: 0 0 var(--space-xs);
  font-size: 1.25rem;
}

.hiw-step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hiw-step p strong {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold, 600);
}

/* Connector line between steps on desktop — subtle visual flow */
@media (min-width: 768px) {
  .how-it-works .hiw-steps::before {
    content: "";
    position: absolute;
    top: calc(var(--space-xl) + 28px); /* center on the step number */
    left: 16.66%;
    right: 16.66%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
    z-index: 0;
    pointer-events: none;
  }
}

.hiw-cta {
  margin-top: var(--space-2xl);
  text-align: center;
}

/* ── License grid ── */

.license-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 480px) {
  .license-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .license-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.license-card .card-body {
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl) var(--space-lg);
}

.license-card h3 {
  margin-bottom: var(--space-sm);
}

.license-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-lg);
}

.license-price--sm {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.license-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.license-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.license-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

/* Licensing comparison page */

.compare-matrix {
  max-width: var(--container-narrow);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.compare-matrix-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.compare-matrix-row:last-child {
  border-bottom: 0;
}

.compare-matrix-row--head {
  background: var(--bg-tertiary);
}

.compare-matrix-feature {
  padding: var(--space-md) var(--space-lg);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
}

.compare-matrix-cell {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border-left: 1px solid var(--border);
}

.compare-matrix-cell--lease {
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.15);
}

.compare-matrix-cell--exclusive {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.compare-matrix-col-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: var(--font-weight-semibold);
}

.compare-matrix-cell--lease .compare-matrix-col-label {
  color: var(--text-secondary);
}

.compare-matrix-cell--exclusive .compare-matrix-col-label {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.compare-matrix-check,
.compare-matrix-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.compare-matrix-check {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-glow);
}

.compare-matrix-x {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1;
}

/* Slim variant — neutral columns for side-by-side choices (no winner) */
.compare-matrix--slim .compare-matrix-cell--lease,
.compare-matrix--slim .compare-matrix-cell--exclusive {
  background: transparent;
  color: var(--text-primary);
}

.compare-matrix--slim .compare-matrix-cell--lease .compare-matrix-col-label,
.compare-matrix--slim .compare-matrix-cell--exclusive .compare-matrix-col-label {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: var(--text-primary);
  background-clip: initial;
  color: var(--text-primary);
}

@media (max-width: 700px) {
  .compare-matrix-row {
    grid-template-columns: 1fr;
  }

  .compare-matrix-feature {
    background: var(--bg-tertiary);
    font-weight: var(--font-weight-semibold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-sm) var(--space-md);
  }

  .compare-matrix-cell {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .compare-matrix-row--head .compare-matrix-feature {
    display: none;
  }

  .compare-matrix-row--head .compare-matrix-cell {
    border-top: 0;
    justify-content: center;
    padding: var(--space-md);
  }
}

.licensing-prose {
  max-width: var(--container-narrow);
  margin: var(--space-3xl) auto 0;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.licensing-prose h3 {
  font-size: 1.5rem;
  margin: var(--space-2xl) 0 var(--space-md);
  color: var(--text-primary);
}

.licensing-prose h3:first-child {
  margin-top: 0;
}

.licensing-prose p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.licensing-prose ul {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.licensing-prose ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.licensing-prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-glow);
}

.license-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.license-card.featured::before {
  content: 'Most Flexible';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  opacity: 1;
  background: var(--gradient-accent);
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4375rem;
  z-index: 2;
}

/* ── CTA block ── */

.cta-block {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-subtle) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block h2 {
  position: relative;
  margin-bottom: var(--space-sm);
}

.cta-block p {
  position: relative;
  font-size: 1.0625rem;
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-inline: auto;
}

.cta-block .btn {
  position: relative;
}

/* ── Beat attributes (single product) ── */

.beat-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.beat-attr {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.beat-attr-icon {
  color: var(--accent-light);
  font-size: 1rem;
}

.beat-attr-label {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.beat-attr-value {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

/* ── Beat tags (single product) ── */

.beat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

/* ── About page ── */

.about-stat-grid {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 700px) {
  .about-stat-grid {
    grid-template-columns: 1fr;
  }
}

.about-socials-row {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
}

.about-stat-card .card-body {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1;
  min-height: 0;
}

.about-stat-split {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: auto;
  margin-bottom: auto;
}

.about-stat-sublabel {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: var(--space-xs);
}

.about-stat-list--sm li {
  font-size: 1.125rem;
  padding-left: 1rem;
}

.about-stat-list--sm li::before {
  top: 0.55em;
  width: 5px;
  height: 5px;
}

.about-stat-card h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-lg);
}

.about-stat-card > .card-body > :last-child {
  margin-top: auto;
  margin-bottom: auto;
}

.about-stat-number {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.about-stat-big {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat-label {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.about-stat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.about-stat-list li {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  line-height: 1.2;
  padding-left: 1.125rem;
  position: relative;
}

.about-stat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-glow);
}

.about-stat-lede {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.about-stat-xl {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat-xl--sm {
  font-size: 1.75rem;
  line-height: 1.1;
  display: inline-block;
}

.about-stat-xl--xs {
  font-size: 1.125rem;
  line-height: 1.25;
  display: inline-block;
  letter-spacing: 0.5px;
}

.about-stat-sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-stat-sub-lede {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.5px;
  color: var(--text-primary);
  display: inline-block;
}

.about-stat-sub--inline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.about-stat-sub--inline a {
  color: var(--accent-light);
  font-weight: var(--font-weight-medium);
}
.about-stat-sub--inline a:hover {
  color: var(--accent-2);
}

.about-stat-credits {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: var(--space-md) 0 0;
}

.about-stat-link {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: color var(--transition-fast);
}

.about-stat-link:hover {
  color: var(--accent-2);
}

.about-socials-row {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.about-socials-row a {
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
}

.about-socials-row a:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
}

.about-content {
  max-width: var(--container-narrow);
  margin: var(--space-4xl) auto 0;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.about-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  float: left;
  line-height: 1;
  margin: 0.25rem 0.75rem 0 0;
  color: var(--accent-light);
}

.about-content p {
  margin-bottom: var(--space-lg);
}

/* ── Search form ── */

.search-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
}

.search-form .form-input {
  flex: 1;
}

/* ── Gradient text utility ── */

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Trust badges (single product) ── */

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  padding: 0;
  list-style: none;
}

.trust-badges li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.trust-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #22c55e;
}

/* ── Track Sheet (single product) ── */

.track-sheet {
  /* Force full-width row even if parent is flex/grid */
  flex: 0 0 100%;
  width: 100%;
  grid-column: 1 / -1;
  clear: both;

  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .track-sheet {
    padding: var(--space-3xl);
  }
}

.track-sheet-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.track-sheet-header h2 {
  margin: 0;
  font-size: 1.75rem;
}

.track-sheet-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .track-sheet-top {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Left column of the Track Sheet — stacks the "This Beat Feels Like"
   liner-notes block above the producer's note. Single grid item on
   desktop (1fr of the 2-col grid), single block on mobile. */
.track-sheet-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.track-sheet-desc {
  margin: 0;
}

/* Eyebrow above the producer's note paragraph. Tighter bottom margin
   than the global .eyebrow because we want it visually attached to the
   paragraph below, not floating in space. */
.ts-desc-eyebrow {
  display: block;
  margin-bottom: var(--space-sm);
}

/* ── "This Beat Feels Like" — liner-notes block inside the Track Sheet ──
   Sits in the same column as the producer's note, above it. The producer's
   distilled emotional thesis is rendered as a self-contained module: a
   rounded, accent-tinted panel with a leading sparkles icon. Upright
   display type (no italic, no quote marks) reads as a deliberate callout
   rather than a pulled quote. */
.ts-feels-like {
  margin: 0;
}

.ts-feels-like-eyebrow {
  display: block;
  margin-bottom: var(--space-sm);
}

.ts-feels-like-quote {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--accent-subtle, rgba(124, 92, 252, 0.12));
  border-left: 3px solid var(--accent, #7c5cfc);
  border-radius: var(--radius-lg, 16px);
  background:
    linear-gradient(135deg,
      var(--accent-subtle, rgba(124, 92, 252, 0.12)) 0%,
      rgba(34, 211, 238, 0.05) 100%);
  font-family: var(--font-display, 'Oswald', 'Inter', sans-serif);
  font-style: normal;
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: var(--text-primary, #f1f3f8);
}

/* Etched-line effect: a single bright segment slowly traces the rounded
   perimeter, like the panel is being inscribed in a loop.
   How it works — a conic-gradient with one short bright arc is painted
   over the card, then masked down to just the 1px border ring (the
   border-box-minus-padding-box mask trick). Rotating the gradient's
   start angle walks the bright arc around the edge; border-radius:inherit
   makes it hug the rounded corners. Registered with @property so the
   angle is animatable (browsers without @property show a static arc). */
@property --ts-trace-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.ts-feels-like-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1px; /* ring thickness */
  background: conic-gradient(
    from var(--ts-trace-angle),
    transparent 0deg,
    transparent 250deg,
    var(--accent-light, #9b82ff) 312deg,
    #ffffff 332deg,
    var(--accent-light, #9b82ff) 352deg,
    transparent 360deg);
  /* Show only the ring: fill the box, punch out the padding-box interior. */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
          mask-composite: exclude;
  pointer-events: none;
  animation: ts-feels-trace 7s linear infinite;
}

@keyframes ts-feels-trace {
  to { --ts-trace-angle: 360deg; }
}

/* Respect reduced-motion: keep the etched arc, stop it moving. */
@media (prefers-reduced-motion: reduce) {
  .ts-feels-like-quote::before {
    animation: none;
  }
}

/* Sparkles glyph — accent-colored, never shrinks below its drawn size.
   Chosen over a waveform because the line is a suggestion of mood, not
   playable audio; a sound icon falsely implied a clip was attached. */
.ts-feels-like-icon {
  flex-shrink: 0;
  color: var(--accent-light, #9b82ff);
}

@media (max-width: 600px) {
  .ts-feels-like-quote {
    font-size: 1.1875rem;
    gap: var(--space-sm);
    padding: var(--space-md);
  }
}

.track-sheet-desc p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Stack multiple producer-note paragraphs with breathing room between
   THE WHY and THE TEXTURE/FOR (the new prompt outputs two paragraphs). */
.track-sheet-desc p + p {
  margin-top: var(--space-md);
}

.track-sheet-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.track-sheet-right .ts-section {
  margin-bottom: 0;
}

.track-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.ts-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.ts-stat .ts-label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.ts-stat .ts-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.ts-section {
  margin-bottom: var(--space-lg);
}

.ts-section:last-child {
  margin-bottom: 0;
}

.ts-section > .ts-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.ts-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.ts-arrangement {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* ── Archive player (taxonomy archives) ── */

.archive-player {
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Grid layout variant (main shop) — no container padding/bg, let cards breathe */
.archive-player.is-grid {
  background: transparent;
  border: none;
  padding: 0;
}

/* ── Sonaar grid card styling ── */

.archive-player .iron-audioplayer.srp_tracklist_grid .sr-playlist-item {
  border-radius: 10px;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.archive-player .iron-audioplayer.srp_tracklist_grid .sr-playlist-item .sr_track_cover,
.archive-player .iron-audioplayer.srp_tracklist_grid .sr-playlist-item .sr_track_cover img {
  border-radius: 10px 10px 0 0;
}

.archive-player .iron-audioplayer.srp_tracklist_grid .sr-playlist-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
              0 0 24px rgba(124, 92, 252, 0.25);
}

.archive-player .iron-audioplayer.srp_tracklist_grid .sr-playlist-item .sr_track_cover img {
  transition: transform var(--transition-slow), filter var(--transition-base);
}

.archive-player .iron-audioplayer.srp_tracklist_grid .sr-playlist-item:hover .sr_track_cover img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

.archive-player .iron-audioplayer.srp_tracklist_grid .sr-playlist-item.current {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-subtle),
              0 0 32px rgba(124, 92, 252, 0.35);
}

/* Cover image becomes the bass-reactive element when playing */
.archive-player .iron-audioplayer.srp_tracklist_grid .sr-playlist-item.current .sr_track_cover img,
.archive-player .iron-audioplayer.srp_tracklist_grid .sr-playlist-item.current .sr_track_cover {
  transform-origin: center;
  will-change: transform, box-shadow, filter;
}

/* ── Catalog: collection tiles (shop main page) ──
   Four discovery shortcuts above the smart search. Two fixed product
   categories + two random type_beat terms. Pure CSS gradient cards;
   no images required. Hover lifts + intensifies the gradient; :active
   gives a subtle press flash so taps feel responsive before navigation.
   ────────────────────────────────────────────────────────────────── */

.catalog-collections-eyebrow {
  display: block;
  margin-bottom: var(--space-sm);
}

.catalog-collections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .catalog-collections {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }
}

.collection-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 110px;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(124, 92, 252, 0.18), rgba(34, 211, 238, 0.10)) ,
    var(--bg-card, #0c0e14);
  border: 1px solid var(--border, rgba(255,255,255,.08));
  color: var(--text-primary);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
}

/* Subtle accent glow blooming from the bottom-right */
.collection-tile::before {
  content: '';
  position: absolute;
  inset: auto -40% -40% auto;
  width: 80%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(124, 92, 252, 0.22), transparent 70%);
  z-index: -1;
  transition: opacity var(--transition-base), transform var(--transition-base);
  opacity: 0.7;
}

.collection-tile:hover,
.collection-tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-accent, rgba(124,92,252,.5));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(124,92,252,.25) inset;
  background:
    linear-gradient(135deg, rgba(124, 92, 252, 0.32), rgba(34, 211, 238, 0.18)) ,
    var(--bg-card, #0c0e14);
}

.collection-tile:hover::before,
.collection-tile:focus-visible::before {
  opacity: 1;
  transform: translate(8%, 8%);
}

/* Press feedback — momentary flash so the tap registers visually
   even on the brief beat before navigation kicks in. */
.collection-tile:active {
  transform: translateY(0);
  background:
    linear-gradient(135deg, rgba(124, 92, 252, 0.45), rgba(34, 211, 238, 0.28)) ,
    var(--bg-card, #0c0e14);
  box-shadow: 0 0 0 2px rgba(124,92,252,.45) inset;
  transition-duration: 80ms;
}

.collection-tile-eyebrow {
  font-family: var(--font-display, inherit);
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold, 600);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.collection-tile-label {
  font-family: var(--font-display, inherit);
  font-size: 1.0625rem;
  font-weight: var(--font-weight-semibold, 600);
  line-height: 1.2;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .collection-tile-label {
    font-size: 1.1875rem;
  }
}

.collection-tile-arrow {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  color: var(--text-secondary);
  opacity: 0.6;
  transition: transform var(--transition-base), opacity var(--transition-base), color var(--transition-base);
}

.collection-tile:hover .collection-tile-arrow,
.collection-tile:focus-visible .collection-tile-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
  color: var(--accent-light, currentColor);
}

/* ── Catalog search + filter layout (shop page) ── */

.catalog-search {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.catalog-chips {
  margin-bottom: var(--space-lg);
  min-height: 1px; /* avoid layout shift when empty */
}

.catalog-chips .sonaar_chips,
.catalog-chips .srp-chip,
.catalog-chips .sonaar-chip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.catalog-chips .srp-chip,
.catalog-chips .sonaar-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.3rem 0.625rem;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.catalog-search input[type="text"],
.catalog-search input[type="search"] {
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  font-size: 1rem;
  width: 100%;
  padding: 0.5rem 1rem !important;
}

.catalog-search input:focus {
  outline: none;
  box-shadow: none !important;
}

/* "Smart Search" label above the search box (sits outside the box). */
.catalog-search-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-purple, #7c5cfc);
}

/* Smart search — replaces Sonaar's search widget. */
.bbm-smart-search {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
}
.bbm-smart-search-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  font-size: 1rem;
  padding: 0.5rem 0.75rem !important;
  outline: none !important;
  box-shadow: none !important;
}
.bbm-smart-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
.bbm-smart-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bbm-smart-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--accent-purple, #7c5cfc);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.bbm-smart-search-submit:hover,
.bbm-smart-search-submit:focus {
  background: var(--accent-cyan, #22d3ee);
  color: #0c0c14;
  outline: none;
}
.bbm-smart-search-status {
  margin: 6px 4px 0;
  min-height: 1.1em;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.bbm-smart-search-status.is-info {
  color: var(--accent-light, #c4b5fd);
}
.bbm-smart-search-status.is-empty {
  color: #ffb86b;
  font-weight: 500;
}
.bbm-smart-search-status.is-error {
  color: #ff6b6b;
}

/* "You haven't liked any tracks yet." — Sonaar's empty-state for the
   favorites player. Default is dark-on-dark; force readable on our theme.
   Applied globally so any placement (homepage, My Account, etc.) is OK. */
.srp-fav-notfound,
.srp-fav-notfound i {
  color: var(--text-secondary, #c4b5fd) !important;
}
.srp-fav-notfound {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--space-md) 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.srp-fav-notfound i {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Single-product "Add to Favorites" — prominent button below the title.
   Wired to Sonaar's IRON.favorites.addRemoveFavorite() in single-product-favorite.php.
   Sits beside a smaller share-icon button via .bbm-fav-actions flex row. */
.bbm-fav-block {
  margin: var(--space-md) 0;
}

/* Row that holds the favorite button + share icon button */
.bbm-fav-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.bbm-fav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.bbm-fav-toggle .bbm-fav-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.15s, transform 0.15s;
}
.bbm-fav-toggle:hover {
  border-color: var(--accent-purple, #7c5cfc);
}
.bbm-fav-toggle:hover .bbm-fav-icon {
  color: var(--accent-purple, #7c5cfc);
}
.bbm-fav-toggle:active {
  transform: translateY(1px);
}
/* Saved state — filled heart, accent border, accent text */
.bbm-fav-toggle.is-on {
  background: rgba(124, 92, 252, 0.12);
  border-color: var(--accent-purple, #7c5cfc);
  color: var(--accent-light, #c4b5fd);
}
.bbm-fav-toggle.is-on .bbm-fav-icon {
  color: var(--accent-purple, #7c5cfc);
  transform: scale(1.05);
}
/* Toggle the two label spans based on state */
.bbm-fav-toggle .bbm-fav-label-remove { display: none; }
.bbm-fav-toggle.is-on .bbm-fav-label-add { display: none; }
.bbm-fav-toggle.is-on .bbm-fav-label-remove { display: inline; }

/* Share button — square icon button next to the favorite toggle.
   Same height + matching border so the row reads as a paired control set.
   Compact (just an icon) so the favorite remains the primary action. */
.bbm-share-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 46px;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.bbm-share-toggle .bbm-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, transform 0.15s;
}

.bbm-share-toggle:hover {
  border-color: var(--accent-purple, #7c5cfc);
  color: var(--accent-purple, #7c5cfc);
}

.bbm-share-toggle:active {
  transform: translateY(1px);
}

.bbm-share-toggle:focus-visible {
  outline: 2px solid var(--accent-light, #c4b5fd);
  outline-offset: 3px;
}

.bbm-fav-hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Homepage featured carousel — Sonaar swiper-coverflow.
   Show ONLY the swiper. The skin_floated player chrome (album cover,
   "AVAILABLE NOW ON", cart button, audio controls) all live in
   sibling containers below the swiper — hide them all so the carousel
   stands alone. The track plays through the sticky bottom player instead. */
.featured-carousel .iron-audioplayer > *:not(.srp_swiper-wrap):not(.audio-track):not([class*="hidden"]) {
  display: none !important;
}
.featured-carousel .iron-audioplayer .album-player,
.featured-carousel .iron-audioplayer .srp_main_control,
.featured-carousel .iron-audioplayer .player,
.featured-carousel .iron-audioplayer .srp-artworkbg,
.featured-carousel .iron-audioplayer .srp_player_grid,
.featured-carousel .iron-audioplayer .srp_player_boxed,
.featured-carousel .iron-audioplayer .album-store,
.featured-carousel .iron-audioplayer .srp_album_market,
.featured-carousel .iron-audioplayer > .audio-track {
  display: none !important;
}
.featured-carousel .srp_swiper {
  padding: var(--space-md) 0;
}
.featured-carousel .srp_swiper-album-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}
.featured-carousel .srp_swiper-title,
.featured-carousel .srp_swiper-track-title {
  color: var(--text-primary);
}
.featured-carousel .srp_swiper-button-prev,
.featured-carousel .srp_swiper-button-next {
  color: var(--accent-purple, #7c5cfc);
}

/* Slide CTA icons (cart, share, download, favorite) — make them white
   and slightly bolder so they read clearly against the artwork. */
.featured-carousel .srp_swiper-titles .sr_track_inline_cta_bt,
.featured-carousel .srp_swiper-titles .srp_cta_track,
.featured-carousel .srp_swiper-titles .srp_cta_track i,
.featured-carousel .srp_swiper-titles .srp_track_cta i,
.featured-carousel .srp_swiper-titles a,
.featured-carousel .srp_swiper-titles button,
.featured-carousel .srp_swiper-titles i {
  color: #ffffff !important;
  fill: #ffffff !important;
}
.featured-carousel .srp_swiper-titles .srp_cta_track:hover i,
.featured-carousel .srp_swiper-titles a:hover,
.featured-carousel .srp_swiper-titles button:hover {
  opacity: 0.85;
}

/* Homepage smart-search container — wider, centered, with a soft chrome */
.home-smart-search {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.home-smart-search .bbm-smart-search-status {
  text-align: center;
}

/* AI results header — "Search Again" CTA under the query echo */
.ai-result-cta {
  margin-top: var(--space-md);
}
.ai-result-cta .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.1rem;
  background: var(--accent-purple, #7c5cfc);
  color: #fff;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.15s, transform 0.1s;
}
.ai-result-cta .button:hover,
.ai-result-cta .button:focus {
  background: var(--accent-cyan, #22d3ee);
  color: #0c0c14;
  outline: none;
}
.ai-result-cta .button:active {
  transform: translateY(1px);
}

.catalog-layout {
  display: block;
}

.catalog-layout.has-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .catalog-layout.has-sidebar {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
}

.catalog-sidebar {
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-md));
}

/* Mobile-only filter toggle button. Hidden on desktop. */
.catalog-sidebar-toggle {
  display: none;
}

@media (max-width: 768px) {
  .catalog-sidebar {
    position: static;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  .catalog-sidebar-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
  }
  .catalog-sidebar-toggle:hover,
  .catalog-sidebar-toggle:focus {
    background: var(--bg-tertiary, #1a1a26);
    border-color: var(--accent-purple, #7c5cfc);
    outline: none;
  }
  .catalog-sidebar-toggle-label {
    flex: 1;
    text-align: left;
  }
  .catalog-sidebar-toggle-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--accent-purple, #7c5cfc);
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
  }
  .catalog-sidebar-toggle-chevron {
    transition: transform 0.2s ease;
    color: var(--text-muted);
  }
  .catalog-sidebar.is-open .catalog-sidebar-toggle-chevron {
    transform: rotate(180deg);
  }

  .catalog-sidebar-body {
    display: none;
    margin-top: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  .catalog-sidebar.is-open .catalog-sidebar-body {
    display: block;
  }

  /* Each filter widget = full-width row with a comfortable tap target.
     Override Sonaar's default flex/inline layout so dropdowns stack
     cleanly and the BPM range slider gets equal real estate. */
  .catalog-sidebar .srp-filters-container,
  .catalog-sidebar .srp_filter_container,
  .catalog-sidebar .srp_filter_container_raw {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }
  .catalog-sidebar .srp-filters-widget,
  .catalog-sidebar .srp_range_wrapper,
  .catalog-sidebar .srp_range_container,
  .catalog-sidebar .srp_range_container_raw {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .catalog-sidebar .multiselect,
  .catalog-sidebar .multiselect__tags {
    min-height: 48px;
    width: 100%;
  }
  .catalog-sidebar .multiselect__tags {
    padding: 12px 36px 12px 14px;
    display: flex;
    align-items: center;
  }

  /* Tooltip bubble: keep it from overflowing on narrow screens. */
  .bbm-filter-tooltip {
    font-size: 13px;
    padding: 10px 12px;
  }
}

.catalog-sidebar .sidebar-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 var(--space-md) 0;
}

/* Filter tooltip — bubble appears when hovering the whole filter widget. */
.catalog-sidebar .srp-filters-widget,
.catalog-sidebar .srp_range_wrapper {
  position: relative;
}
.bbm-filter-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: auto;
  max-width: 100%;
  padding: 8px 10px;
  background: #0c0c14;
  color: #f5f5f7;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid rgba(124, 92, 252, 0.4);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 10;
  white-space: normal;
}
.catalog-sidebar .bbm-has-tooltip:hover > .bbm-filter-tooltip {
  opacity: 1;
  transform: translateY(0);
}
/* Hide tooltip when the dropdown is open so it doesn't overlap options. */
.catalog-sidebar .bbm-has-tooltip:has(.multiselect--active) > .bbm-filter-tooltip {
  opacity: 0 !important;
}

/* Ensure the range slider widget sits below the dropdowns with proper spacing */
.catalog-sidebar .srp_range_container_raw,
.catalog-sidebar .srp_range_container {
  display: block;
  position: static !important;
  clear: both;
  margin-top: var(--space-md);
  width: 100%;
}

.catalog-sidebar .srp_filter_container_raw,
.catalog-sidebar .srp_filter_container {
  display: block;
  width: 100%;
}

/* BPM range slider — force dark theme (Sonaar ships white card + grey text) */
.catalog-sidebar .srp_range_container_raw,
.catalog-sidebar .srp_range_container,
.catalog-sidebar .srp_range_wrapper,
.catalog-sidebar .srp_range_inner {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text-primary) !important;
  padding: var(--space-md) !important;
  box-shadow: none !important;
}

.catalog-sidebar .srp_range_container *,
.catalog-sidebar .srp_range_container_raw * {
  color: var(--text-primary) !important;
}

.catalog-sidebar .srp_range_container label,
.catalog-sidebar .srp_range_container .srp_range_label,
.catalog-sidebar .srp_range_container .srp_range_value,
.catalog-sidebar .srp_range_container_raw label {
  color: var(--text-secondary) !important;
  font-size: 0.8125rem !important;
  font-weight: var(--font-weight-medium) !important;
}

.catalog-sidebar .srp_range_container button,
.catalog-sidebar .srp_range_container .srp_range_preset,
.catalog-sidebar .srp_range_container_raw button {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.3rem 0.6rem !important;
  font-size: 0.75rem !important;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.catalog-sidebar .srp_range_container button:hover,
.catalog-sidebar .srp_range_container button.active,
.catalog-sidebar .srp_range_container .srp_range_preset.active {
  background: var(--accent-subtle) !important;
  border-color: var(--accent) !important;
  color: var(--accent-light) !important;
}

/* noUiSlider track/handle theming */
.catalog-sidebar .noUi-target,
.catalog-sidebar .noUi-base {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}
.catalog-sidebar .noUi-connect {
  background: var(--accent) !important;
}
.catalog-sidebar .noUi-handle {
  background: var(--accent) !important;
  border: 2px solid var(--accent-light) !important;
  box-shadow: 0 0 0 2px rgba(124, 92, 252, 0.25) !important;
}
.catalog-sidebar .noUi-handle::before,
.catalog-sidebar .noUi-handle::after {
  display: none !important;
}
.catalog-sidebar .noUi-pips,
.catalog-sidebar .noUi-value,
.catalog-sidebar .noUi-marker {
  color: var(--text-muted) !important;
}

.catalog-main {
  min-width: 0; /* allow content to shrink inside grid cell */
}

/* Sonaar filter widget styling — inherits dark theme */
.sonaar_filters {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sonaar_filters .srp-filter-group,
.sonaar_filters fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.sonaar_filters label,
.sonaar_filters legend {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
}

.sonaar_filters select,
.sonaar_filters input[type="text"] {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem;
  width: 100%;
}

.sonaar_filters .srp-filter-tag,
.sonaar_filters .srp_filter_tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sonaar_filters .srp-filter-tag.active,
.sonaar_filters .srp_filter_tag.active,
.sonaar_filters .srp-filter-tag:hover,
.sonaar_filters .srp_filter_tag:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ── Sonaar player text color overrides ──
   Applied to every themed Sonaar wrapper so any new player (archive,
   favorites, etc.) inherits the same dark-mode color treatment. */

.archive-player .iron-audioplayer .audio-track,
.archive-player .iron-audioplayer .track-title,
.archive-player .iron-audioplayer .sr-playlist-cf-container,
.archive-player .iron-audioplayer .srp_cf_data,
.archive-player .iron-audioplayer .track-number,
.archive-player .iron-audioplayer .sr_it-playlist-title,
.favorites-player .iron-audioplayer .audio-track,
.favorites-player .iron-audioplayer .track-title,
.favorites-player .iron-audioplayer .sr-playlist-cf-container,
.favorites-player .iron-audioplayer .srp_cf_data,
.favorites-player .iron-audioplayer .track-number,
.favorites-player .iron-audioplayer .sr_it-playlist-title {
  color: var(--text-primary) !important;
}

.archive-player .iron-audioplayer .track-length,
.archive-player .iron-audioplayer .srp_cf_heading,
.archive-player .iron-audioplayer .sr-cf-heading,
.favorites-player .iron-audioplayer .track-length,
.favorites-player .iron-audioplayer .srp_cf_heading,
.favorites-player .iron-audioplayer .sr-cf-heading {
  color: var(--text-secondary) !important;
}

.archive-player .iron-audioplayer .sr-playlist-item .track-number,
.favorites-player .iron-audioplayer .sr-playlist-item .track-number {
  color: var(--text-muted) !important;
}

.archive-player .iron-audioplayer .sr-playlist-item:hover .track-title,
.archive-player .iron-audioplayer .sr-playlist-item.is-playing .track-title,
.archive-player .iron-audioplayer .sr-playlist-item.current .track-title,
.favorites-player .iron-audioplayer .sr-playlist-item:hover .track-title,
.favorites-player .iron-audioplayer .sr-playlist-item.is-playing .track-title,
.favorites-player .iron-audioplayer .sr-playlist-item.current .track-title {
  color: var(--accent-light) !important;
}

/* Ensure action buttons (cart, share, fav, menu) stay visible */
.archive-player .iron-audioplayer .playlist .song-store,
.archive-player .iron-audioplayer .playlist .sr_store_wc_round_bt,
.archive-player .iron-audioplayer .playlist .sr-cf-container,
.archive-player .iron-audioplayer .playlist .sr-playlist-cf-container,
.favorites-player .iron-audioplayer .playlist .song-store,
.favorites-player .iron-audioplayer .playlist .sr_store_wc_round_bt,
.favorites-player .iron-audioplayer .playlist .sr-cf-container,
.favorites-player .iron-audioplayer .playlist .sr-playlist-cf-container {
  flex-shrink: 0;
}


/* ==========================================================================
   FAQ Page — accordion items grouped by category
   ========================================================================== */

.faq-group {
  max-width: 820px;
  margin: 0 auto var(--space-3xl);
}

.faq-group-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 var(--space-md);
}

.faq-group-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 var(--space-lg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--bg-card);
  background-image: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item[open] {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--accent-light);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform var(--transition-base), color var(--transition-base);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-light);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}

.faq-answer p {
  margin: 0 0 var(--space-md);
}
.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  margin: var(--space-sm) 0 var(--space-md);
  padding-left: var(--space-lg);
}

.faq-answer li {
  margin-bottom: var(--space-xs);
}

.faq-answer a {
  color: var(--accent-light);
}
.faq-answer a:hover {
  color: var(--accent-2);
}

.faq-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: var(--space-2xl) 0;
}

.faq-page-content {
  max-width: 820px;
  margin: var(--space-2xl) auto 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-cta-row {
  text-align: center;
  margin: var(--space-3xl) auto 0;
  max-width: 820px;
}

.faq-cta-row p {
  color: var(--text-secondary);
  margin: 0 0 var(--space-md);
}

@media (max-width: 640px) {
  .faq-question {
    padding: var(--space-md);
    font-size: 1rem;
  }
  .faq-answer {
    padding: var(--space-md) var(--space-md) var(--space-lg);
  }
}

/* ── Header account icon ──
   Sits next to the cart icon in .header-actions. Same visual weight as
   .cart-link so the two icons read as a pair. Logged-in state gets a
   tiny accent dot in the bottom-right of the icon as a non-disruptive
   indicator that you're signed in (mirrors the cart-count placement). */
.account-link {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.account-link:hover {
  color: var(--text-primary);
}

.account-link svg {
  width: 22px;
  height: 22px;
}

.account-link.is-logged-in::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  border: 2px solid var(--bg-primary);
}

/* ── Studio invite — homepage section ──
   "An invitation to the studio." Sits between the producer-about block
   and the final CTA. Hidden for logged-in users via PHP. The two-button
   row stacks register (primary) + sign-in (secondary) so returning users
   have a visible path that isn't "create another account." */
.bbm-studio-invite {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* The hero "Invitation ↓" button anchors here. The site has a fixed
   header (.site-header), so a plain anchor scroll lands the section
   title behind the nav. scroll-margin-top offsets the scroll target by
   the nav's height + a touch of breathing room so the heading lands
   below the nav cleanly. */
#studio-invite {
  scroll-margin-top: calc(var(--nav-height) + var(--space-md));
}

.bbm-studio-invite-actions {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Account invite bar ──
   Slim, fixed-bottom dismissible bar for logged-out visitors. Translucent
   dark background w/ blur to match the site header treatment. JS toggles
   .has-bbm-invite-bar on <html> when the bar is visible — that class adds
   bottom padding to body so the bar doesn't cover footer content. */
.bbm-invite-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(8, 8, 15, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}

.bbm-invite-bar[hidden] {
  display: none;
}

.bbm-invite-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 12px var(--space-lg);
}

.bbm-invite-bar-text {
  flex: 1;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bbm-invite-bar-text strong {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  margin-right: 6px;
}

.bbm-invite-bar-sub {
  color: var(--text-secondary);
}

.bbm-invite-bar-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: #fff;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.bbm-invite-bar-cta:hover,
.bbm-invite-bar-cta:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 92, 252, 0.35);
}

.bbm-invite-bar-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.bbm-invite-bar-close:hover,
.bbm-invite-bar-close:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

/* Push the page up by the bar height so the footer doesn't end up under
   the bar. Approximate height: ~56px desktop, ~88px mobile (text wraps). */
html.has-bbm-invite-bar body {
  padding-bottom: 64px;
}

@media (max-width: 720px) {
  /* On small screens, stack text + CTA so the bar reads vertically rather
     than truncating. The close button stays top-right via order/grid. */
  .bbm-invite-bar-inner {
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: 10px var(--space-md);
    position: relative;
  }
  .bbm-invite-bar-text {
    flex: 1 1 100%;
    padding-right: 32px; /* leave room for close button */
    font-size: 0.875rem;
  }
  .bbm-invite-bar-text strong {
    display: block;
    margin-bottom: 2px;
  }
  .bbm-invite-bar-sub {
    font-size: 0.8125rem;
  }
  .bbm-invite-bar-cta {
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 16px;
  }
  .bbm-invite-bar-close {
    position: absolute;
    top: 6px;
    right: 6px;
  }
  html.has-bbm-invite-bar body {
    padding-bottom: 120px;
  }
}

/* ── Welcome Page ──────────────────────────────────────────────────────
   Two states served by page-welcome.php:
   1. Onboarding form (3 questions, all optional) for new members
   2. "Welcome Back" 3-card hub for returning members
   See inc/welcome.php for routing + AJAX submit handling. */

.bbm-welcome-page .section-header h1 {
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

/* ── Onboarding form ── */

.bbm-welcome-form {
  margin-top: var(--space-2xl);
}

.bbm-welcome-q {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-2xl);
}

.bbm-welcome-q legend {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  padding: 0;
}

.bbm-welcome-chips,
.bbm-welcome-radios {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Each chip is a label wrapping a hidden input + visible span. The
   hidden input stays accessible (focusable, keyboard-toggleable); the
   span carries the visual styling and reacts to :checked via :has(). */
.bbm-welcome-chip {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.bbm-welcome-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.bbm-welcome-chip span {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
}

.bbm-welcome-chip:hover span {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.bbm-welcome-chip:has(input:checked) span {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
  font-weight: var(--font-weight-semibold);
}

.bbm-welcome-chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.bbm-welcome-text {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  font-family: var(--font-body);
}

.bbm-welcome-text:focus {
  outline: none;
  border-color: var(--accent);
}

.bbm-welcome-text::placeholder {
  color: var(--text-muted);
}

/* Textarea variant of .bbm-welcome-text — inherits all visuals from
   .bbm-welcome-text (background, border, padding) and just adds the
   bits a textarea needs: vertical-only resize handle and line-height
   so multi-line entry reads cleanly. */
.bbm-welcome-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}

.bbm-welcome-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}

.bbm-welcome-skip {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.bbm-welcome-skip:hover {
  color: var(--text-secondary);
}

.bbm-welcome-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Welcome Back — 3 card hub for returning members ── */

.bbm-welcome-back {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

@media (min-width: 720px) {
  .bbm-welcome-back {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bbm-welcome-back-card {
  display: block;
  padding: var(--space-xl);
  background: var(--bg-card);
  background-image: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-base);
}

.bbm-welcome-back-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: var(--text-primary);
}

.bbm-welcome-back-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin: 0 0 var(--space-sm);
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.bbm-welcome-back-card:hover h3 {
  color: var(--accent-light);
}

.bbm-welcome-back-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}
