:root {
  --bg: #08070a;
  --bg-elevated: #121016;
  --bg-card: #16141b;
  --bg-card-hover: #1b1821;
  --border: rgba(255,255,255,0.07);
  --border-soft: rgba(255,255,255,0.045);
  --text: #f5f3ee;
  --text-muted: #a3a0ab;
  --text-dim: #6f6c78;

  /* Premium warm-gold accent, two-tone for gradients & sheen */
  --accent: #d9ab5c;
  --accent-2: #f0cd8e;
  --accent-deep: #b3833a;
  --accent-gradient: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  --accent-soft: rgba(217,171,92,0.10);
  --accent-line: rgba(217,171,92,0.28);

  --danger: #e5484d;
  --success: #3ecf8e;

  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1200px;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 30px -18px rgba(0,0,0,0.6);
  --shadow-card-hover: 0 1px 0 rgba(255,255,255,0.04) inset, 0 22px 48px -20px rgba(0,0,0,0.65), 0 0 0 1px rgba(217,171,92,0.12);
  --shadow-gold: 0 10px 30px -8px rgba(217,171,92,0.35);

  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Subtle premium grain — pure CSS, no markup change */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; color: var(--text); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,7,10,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; max-width: var(--max-width); margin: 0 auto; }
.logo {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: 0.06em; font-size: 1.25rem;
}
.logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { position: relative; font-size: 0.88rem; letter-spacing: 0.02em; color: var(--text-muted); transition: color .18s; padding: 4px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--accent-gradient); transition: right .22s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }
.nav-cta { display:flex; align-items:center; gap:18px; }
.icon-btn { position: relative; color: var(--text); transition: opacity .15s; }
.icon-btn:hover { opacity: 0.75; }
.cart-badge {
  position:absolute; top:-8px; right:-10px; background: var(--accent-gradient); color:#1a1206;
  font-size: 0.64rem; font-weight:800; border-radius:999px; padding: 1px 6px;
  box-shadow: 0 2px 6px rgba(217,171,92,0.4);
}
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: border-color .15s;
}
.mobile-toggle:hover { border-color: var(--accent-line); }
.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-elevated);
}
.mobile-menu a {
  padding: 15px 20px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.mobile-menu a:active { background: var(--accent-soft); }
.mobile-menu-divider { border-top: 1px solid var(--border); margin: 4px 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.03em; cursor:pointer; border: 1px solid transparent; transition: all .2s ease;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--accent-gradient);
  color: #1a1206;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(217,171,92,0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.16); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative; padding: 130px 20px 100px; text-align: center; overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(217,171,92,0.16), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(217,171,92,0.06), transparent 40%);
}
.hero::before {
  content: '';
  position: absolute; left: 50%; top: 0; width: 1px; height: 70px;
  background: linear-gradient(180deg, transparent, var(--accent-line));
  transform: translateX(-50%);
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 20px; line-height: 1.08; }
.hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto 38px; font-size: 1.08rem; line-height: 1.65; }
.hero-actions { display:flex; gap:14px; justify-content:center; flex-wrap: wrap; }
.waveform { display:flex; align-items:flex-end; gap:3px; height:48px; justify-content:center; margin: 46px auto 0; opacity: .5; }
.waveform span { width:3px; background: var(--accent-gradient); border-radius:2px; animation: wave 1.4s ease-in-out infinite; }

@keyframes wave { 0%,100% { height: 20%; } 50% { height: 100%; } }

/* ---------- SECTIONS ---------- */
.section { padding: 72px 0; }
.section-head { display:flex; align-items:baseline; justify-content:space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 10px;}
.section-head h2 { font-size: 1.75rem; margin: 0; }
.section-head a { color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.section-head a.btn-primary { color: #1a1206; }
.section-head a:hover { color: var(--accent-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--accent-gradient); }

/* ---------- BEAT GRID / CARD ---------- */
.beat-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.beat-card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: var(--shadow-card);
}
.beat-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card-hover);
}
.beat-art { position: relative; aspect-ratio: 1/1; background: linear-gradient(160deg, #1c1a1f, #100e12); overflow: hidden; }
.beat-art img {
  width:100%; height:100%; object-fit: cover; display: block;
  transition: transform .5s ease;
  color: transparent;
  font-size: 0;
}
.beat-card:hover .beat-art img { transform: scale(1.05); }
.beat-art::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 62%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.beat-badge {
  position:absolute; top:12px; left:12px; background: var(--accent-gradient); color:#1a1206;
  font-size: 0.63rem; font-weight:800; letter-spacing:0.07em; padding:4px 9px; border-radius:6px;
  z-index: 2; box-shadow: 0 4px 12px rgba(217,171,92,0.35);
}
.play-btn {
  position:absolute; bottom:12px; right:12px; width:44px; height:44px; border-radius:50%;
  background: rgba(8,7,10,0.7); border:1px solid rgba(255,255,255,0.18);
  display:flex; align-items:center; justify-content:center; color:#fff; backdrop-filter: blur(6px);
  z-index: 2; transition: background .18s, border-color .18s, transform .18s;
}
.play-btn:hover { background: var(--accent-gradient); color: #1a1206; border-color: transparent; transform: scale(1.06); }
.fav-form { position:absolute; top:12px; right:12px; margin:0; z-index:2; }
.fav-btn {
  width:34px; height:34px; border-radius:50%; border:1px solid rgba(255,255,255,0.18);
  background: rgba(8,7,10,0.6); color:#fff; font-size:1rem; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center; backdrop-filter: blur(6px);
  transition: transform .15s ease, color .15s ease, border-color .15s ease;
}
.fav-btn:hover { transform: scale(1.1); border-color: var(--accent); }
.fav-btn.is-favorited { color: var(--accent-2); border-color: var(--accent-line); }
.beat-info { padding: 16px 18px 18px; }
.beat-info h3 {
  margin: 0 0 5px; font-size: 1.02rem; font-weight: 600; font-family: var(--font-body);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.beat-info a { color: var(--text); text-decoration: none; }
.beat-meta { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 12px; }
.beat-formats { display:flex; gap:6px; margin-bottom: 12px; flex-wrap: wrap; }
.format-pill {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px;
}
.beat-footer { display:flex; align-items:center; justify-content:space-between; }

.empty-cart {
  text-align: center; padding: 64px 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); max-width: 460px; margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.empty-cart-icon { font-size: 2.4rem; margin-bottom: 16px; }
.empty-cart h3 { margin: 0 0 8px; font-size: 1.3rem; }
.empty-cart p { color: var(--text-muted); margin: 0 0 24px; font-size: 0.92rem; }

.trust-badges { display:flex; flex-direction:column; gap:9px; margin-top:18px; font-size:0.82rem; color: var(--text-muted); }
.trust-badges span { display:flex; align-items:center; gap:8px; }
.price { color: var(--accent-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.price-tba { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.03em; }
.add-btn { background: var(--bg-elevated); border:1px solid var(--border); color: var(--text); border-radius: 999px; padding: 7px 15px; font-size: 0.77rem; font-weight: 600; cursor:pointer; text-decoration: none; transition: border-color .18s, color .18s, background .18s; }
.add-btn:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }

/* ---------- GENRE CARDS ---------- */
.genre-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 16px; }
.genre-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px;
  font-weight: 700; font-family: var(--font-display); font-size: 1.02rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.genre-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }

/* ---------- WHY GRID ---------- */
.why-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 22px; }
.why-item { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); box-shadow: var(--shadow-card); transition: border-color .2s, transform .2s; }
.why-item:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.why-item h3 { margin: 0 0 10px; font-size: 1.08rem; font-family: var(--font-body); font-weight: 700; }
.why-item p { color: var(--text-muted); font-size: 0.9rem; margin:0; line-height: 1.6; }

/* ---------- CTA BAND ---------- */
.cta-band {
  text-align:center; padding: 90px 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
  position: relative;
}
.cta-band h2 { font-size: 2.2rem; margin: 0 0 30px; }

/* ---------- FORMS ---------- */
.form-card { background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding: 36px; max-width: 460px; margin: 0 auto; box-shadow: var(--shadow-card); }
.field { margin-bottom: 18px; }
.field label { display:block; font-size: 0.83rem; color: var(--text-muted); margin-bottom: 7px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.95rem; font-family: var(--font-body);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.error-box { background: rgba(229,72,77,0.1); border: 1px solid rgba(229,72,77,0.4); color: #ff8a8d; padding: 13px 15px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.88rem; }
.success-box { background: rgba(62,207,142,0.1); border: 1px solid rgba(62,207,142,0.4); color: var(--success); padding: 13px 15px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.88rem; }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 20px 32px; color: var(--text-muted); font-size: 0.88rem; background: var(--bg-elevated); }
.footer-grid { display:grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; max-width: var(--max-width); margin: 0 auto 34px; }
.footer-grid h4 { color: var(--text); font-size: 0.82rem; margin: 0 0 14px; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.footer-grid a { display:block; margin-bottom: 9px; transition: color .15s; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-brand h4 { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.06em; margin-bottom: 12px; text-transform: none; font-weight: 600; }
.footer-brand h4 span { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-blurb { color: var(--text-muted); font-size: 0.86rem; line-height: 1.7; max-width: 280px; margin: 0; }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; border-top: 1px solid var(--border); padding-top: 22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); }
  .footer-blurb { max-width: none; }
}

/* ---------- AUDIO PLAYER ---------- */
.player { background: var(--bg-card); border:1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-card); }
.player-top { display:flex; align-items:center; gap:16px; }
.player-play { width:56px; height:56px; border-radius:50%; background: var(--accent-gradient); color:#1a1206; border:none; font-size:1.2rem; cursor:pointer; flex-shrink:0; box-shadow: var(--shadow-gold); transition: transform .15s; }
.player-play:hover { transform: scale(1.05); }
.player-track { flex:1; }
.seek { width:100%; -webkit-appearance:none; height:5px; border-radius:3px; background: var(--border); cursor:pointer; }
.seek::-webkit-slider-thumb { -webkit-appearance:none; width:14px; height:14px; border-radius:50%; background: var(--accent-2); box-shadow: 0 2px 6px rgba(217,171,92,0.5); }
.player-time { display:flex; justify-content:space-between; font-size:0.75rem; color:var(--text-muted); margin-top:5px; font-variant-numeric: tabular-nums; }
.volume { width: 90px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .nav-links { display:none; }
  .mobile-toggle { display:flex; }
  .mobile-menu { display: none; overflow: hidden; border-top: 1px solid var(--border); }
  .mobile-menu.is-open { display:flex; }
  .beat-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 14px; }
  .section { padding: 44px 0; }
  .hero { padding: 76px 16px 64px; }
  .player { padding: 14px 16px; }
  .player-top { gap: 10px; }
  .player-play { width: 46px; height: 46px; font-size: 1rem; }
  .volume { width: 56px; }

  table.table thead { display: none; }
  table.table, table.table tbody, table.table tr, table.table td {
    display: block;
    width: 100%;
  }
  table.table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    margin-bottom: 14px;
    padding: 4px 14px;
  }
  table.table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-align: right;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  table.table td:last-child { border-bottom: none; }
  table.table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
    flex-shrink: 0;
  }
  table.table td[data-label=""],
  table.table td:not([data-label]) {
    justify-content: flex-start;
  }
  table.table td[data-label=""]::before,
  table.table td:not([data-label])::before {
    content: none;
  }
}

.table { width:100%; border-collapse: collapse; }
.table th, .table td { text-align:left; padding: 13px 14px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.table th { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.badge { display:inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; }
.badge-paid { background: rgba(62,207,142,0.15); color: var(--success); }
.badge-pending { background: rgba(217,171,92,0.15); color: var(--accent-2); }
.badge-failed { background: rgba(229,72,77,0.15); color: var(--danger); }

/* ===== Beat detail: header row + share ===== */
.beat-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
  margin-top: 6px;
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  background: var(--accent-soft);
}
.share-btn svg { width: 15px; height: 15px; stroke: currentColor; }
.share-btn .share-label { position: relative; }

.share-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
  box-shadow: var(--shadow-gold);
}
.share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== License selector ===== */
.license-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 16px; }
.license-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 11px;
  padding: 20px 18px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.license-option:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.license-option.is-sold-out { cursor: not-allowed; opacity: 0.5; }
.license-option.is-popular { border-color: var(--accent-line); }
.license-option.is-popular::before {
  content: 'MOST POPULAR';
  position: absolute; top: -11px; left: 16px;
  background: var(--accent-gradient); color: #1a1206;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.07em;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(217,171,92,0.35);
}
.license-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.license-option:has(input:checked),
.license-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.license-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.license-radio-visual {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: inline-block;
  position: relative;
  transition: border-color .15s;
}
.license-option:has(input:checked) .license-radio-visual,
.license-option.is-selected .license-radio-visual {
  border-color: var(--accent);
}
.license-option:has(input:checked) .license-radio-visual::after,
.license-option.is-selected .license-radio-visual::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent-gradient);
}
.license-option-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.license-name { font-weight: 700; font-size: 0.98rem; font-family: var(--font-body); }
.license-usage { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }
.license-price { color: var(--accent-2); font-weight: 700; font-size: 1.35rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.license-price.is-sold-out { color: var(--text-muted); font-weight: 700; letter-spacing: 0.04em; font-size: 0.78rem; }
.license-features { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.license-features li { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 7px; }
.license-features li.is-included { color: var(--text); }
.license-features li.is-included::before { content: '✓'; color: var(--accent-2); font-weight: 700; }
.license-features li.is-excluded::before { content: '–'; color: var(--text-dim); }
.beat-buy-actions { display: flex; gap: 12px; margin-top: 24px; }
.beat-buy-actions .btn { flex: 1; }
@media (max-width: 480px) { .beat-buy-actions { flex-direction: column; } }

.license-empty {
  margin-top: 16px;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

/* ===== Guest checkout reassurance note ===== */
.guest-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 11px 15px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.83rem;
}
.guest-note svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-2);
  flex-shrink: 0;
}

/* ===== Beats toolbar (search/filter/sort) ===== */
.beats-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.toolbar-input,
.toolbar-select {
  padding: 12px 15px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color .15s;
}
.toolbar-input { flex: 1; min-width: 180px; }
.toolbar-input-narrow { flex: 0 1 100px; min-width: 90px; }
.toolbar-input:focus,
.toolbar-select:focus { outline: none; border-color: var(--accent); }

.beats-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

/* ===== Licensing Terms page ===== */
.license-terms-list { display: grid; gap: 20px; margin-top: 30px; }
.license-terms-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}
.license-terms-card.is-exclusive { border-color: var(--accent-line); background: linear-gradient(160deg, var(--bg-card), var(--accent-soft)); }
.license-terms-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.license-terms-head h3 { margin: 0; font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; }
.license-terms-price { color: var(--accent-2); font-weight: 700; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.license-terms-desc { color: var(--text-muted); margin: 9px 0 16px; font-size: 0.92rem; }
.license-terms-specs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.license-terms-specs li { font-size: 0.82rem; padding-left: 20px; position: relative; color: var(--text); }
.license-terms-specs li.is-included::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.license-terms-specs li.is-excluded { color: var(--text-muted); }
.license-terms-specs li.is-excluded::before { content: '–'; position: absolute; left: 0; color: var(--text-muted); }
.license-terms-legal { font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 13px; margin: 0; }

.license-terms-notes { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--border); }
.license-terms-notes h3 { margin: 0 0 16px; }
.license-terms-notes ul { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 0.9rem; display: grid; gap: 11px; }
.license-terms-notes a { color: var(--accent-2); }
