.contact-wrapper {
  padding: 24px 40px;
  background: #1a1a1a;
  border-bottom: 0.5px solid var(--border-dark);
  display: flex;
  flex-direction: row; /* Aligns items in a horizontal bar */
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.contact-title {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--yellow);
  margin: 0;
}

.contact-email {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--mid-gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-email a {
  color: var(--off-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.contact-email a:hover {
  color: var(--yellow);
}

.producer-contacts {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: var(--off-white);
  padding: 10px 16px;
  border: 1px solid var(--dark-gray);
  font-size: 10px;
  transition: all 0.15s ease;
  background: transparent;
}

/* SVG Icon Styling */
.social-link svg {
  width: 14px;
  height: 14px;
}

.email-link svg, .yt-link svg, .ig-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tiktok-icon {
  fill: currentColor;
  stroke: none;
}

.social-link:hover {
  background: var(--near-black);
  color: var(--yellow);
  border-color: var(--near-black);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .contact-wrapper {
    padding: 24px 24px; /* Reduced for mobile */
  }
  .producer-contacts {
    gap: 10px;
  }
  .social-link {
    flex: 1 1 40%; 
    padding: 10px 5px;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --warm-gray: #f5f4f0;
  --near-black: #111111;
  --off-white: #f7f7f5;
  --yellow: #e8c832;
  --purple: #8b7ec8;
  --deep-purple: #3a3060;
  --purple-bright: #b8acea;
  --purple-tint: rgba(139, 126, 200, 0.12);
  --purple-line: rgba(139, 126, 200, 0.34);
  --mid-gray: #7a7670;
  --dark-gray: #444444;
  --gray: #888888;
  --light-gray: #aaaaaa;
  --border-light: #e4e2db;
  --border-dark: #2a2a2a;
  --surface: #1c1c1c;
  --surface-2: #242424;
}

body {
  background: var(--near-black);
  font-family: 'DM Mono', monospace;
  color: var(--off-white);
  min-height: 100vh;
}

/* PROMO BAR */
.promo-bar {
  background: linear-gradient(90deg, #1a1226 0%, #2d1f4a 50%, #1a1226 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 56px 14px 16px;
  position: relative;
  border-bottom: 1px solid var(--yellow);
  box-shadow: 0 4px 12px rgba(232, 200, 50, 0.05);
  cursor: pointer; /* Let users know they can click it */
  transition: filter 0.2s ease; /* Smooth hover transition */
}

.promo-bar:hover {
  filter: brightness(1.15); /* Slight brightness bump to indicate interactability */
}

.promo-bar-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-style: normal; 
  letter-spacing: 0.15em;
  color: var(--off-white);
  line-height: 1.4;
  text-align: center;
}

.promo-highlight {
  color: var(--yellow);
  font-weight: 500;
}

.promo-bar-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--off-white);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.promo-bar-close:hover { opacity: 1; }

.promo-bar-close svg {
  width: 11px;
  height: 11px;
}

@media (max-width: 768px) {
  .promo-bar {
    padding: 12px 44px 12px 16px;
  }
  .promo-bar-text {
    font-size: 9px;
  }
}

/* HEADER */
header {
  background: var(--near-black);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--off-white);
  letter-spacing: -0.01em;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.15s ease;
}

nav a:hover { color: var(--yellow); }

.nav-cta {
  background: var(--yellow);
  color: var(--near-black) !important;
  padding: 8px 16px;
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
}

.nav-cart {
  background: transparent;
  border: 1px solid var(--off-white);
  color: var(--off-white);
  cursor: pointer;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.nav-cart:hover {
  background: var(--off-white);
  color: var(--near-black);
}

.nav-cart svg {
  width: 16px;
  height: 16px;
}

.kit-controls-row {
  margin-bottom: 16px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 0.5px solid var(--border-dark);
}

.hero-left {
  padding: 60px 60px 40px 40px; /* Reduced bottom padding to 40px */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 0.5px solid var(--border-dark);
}

.hero-kicker {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 52px;
  line-height: 1.05;
  color: var(--off-white);
  margin-bottom: 24px;
}

.hero-headline em { font-style: italic; }

.hero-desc {
  font-size: 12px;
  line-height: 1.8;
  color: var(--gray);
  max-width: 320px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  background: var(--yellow);
  color: var(--near-black);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid var(--yellow);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--off-white);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid var(--off-white);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}

.btn-ghost:hover { background: var(--off-white); color: var(--near-black); }

/* HERO RIGHT — featured beats */
.hero-right {
  padding: 60px 40px 40px 60px; /* Reduced bottom padding to 40px */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

#heroFeatured {
  display: flex;
  flex-direction: column;
  max-height: 184px;        /* ~2 cards tall; scroll to reveal the rest */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-dark) transparent;
}

#heroFeatured::-webkit-scrollbar { width: 6px; }
#heroFeatured::-webkit-scrollbar-track { background: transparent; }
#heroFeatured::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 3px;
}

.hero-right-label {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--off-white);
  margin-bottom: 8px;
}

/* BEAT CARD */
.beat-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: pointer;
  transition: background 0.15s;
}

.beat-card:hover { background: var(--surface-2); }

.beat-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.beat-cover {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: #1e1e1e;
  position: relative;
  overflow: hidden;
}

.beat-cover.no-img {
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
}

.beat-cover .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.15s;
}

.beat-card:hover .play-overlay { opacity: 1; }

.play-triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent var(--off-white);
  margin-left: 2px;
}

.beat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.beat-title {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  color: var(--off-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.beat-bpm-key {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.beat-key {
  text-transform: none;
}

.beat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 1px;
}

.beat-tag {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-bright);
  background: var(--purple-tint);
  border: 0.5px solid var(--purple-line);
  border-radius: 2px;
  padding: 2.5px 7px;
  line-height: 1.35;
}

.beat-price-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: center;
}

.beat-featured-badge {
  width: 22px;
  height: 22px;
  background: #e8c832;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beat-new-badge {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(232, 200, 50, 0.1);
  border: 0.5px solid rgba(232, 200, 50, 0.42);
  padding: 3px 7px;
  border-radius: 2px;
  line-height: 1;
}

/* KIT CARD — larger variant */
.kit-card {
  position: relative;
}

.kit-card .beat-card-main {
  padding: 12px 16px 12px 12px;
  gap: 14px;
  min-height: 100px;
  align-items: center;
}

.kit-card .beat-cover {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.kit-card .beat-info {
  justify-content: center;
  gap: 6px;
}

.kit-card .beat-title {
  font-size: 14px;
  white-space: normal;
  line-height: 1.3;
}

.kit-card .beat-price-wrap {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.kit-coming-soon-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light-gray);
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  padding: 3px 8px 3px 7px;
  border-radius: 2px;
  line-height: 1;
  margin-top: 1px;
}
.kit-coming-soon-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--yellow);
}

.beat-price {
  font-size: 12px;
  color: var(--yellow);
  letter-spacing: 0.05em;
}

/* Anchor scroll offset — clears the 60px sticky header plus breathing room */
#beats,
#kits,
#contact,
#licensing,
#newsletter {
  scroll-margin-top: 76px;
}

/* LOWER GRID */
.lower-grid {
  display: flex;
  width: 100%;
  border-bottom: none;
}

.grid-column {
  flex: 1;
  padding: 48px 40px 40px;
}

.left-col {
  border-right: 0.5px solid var(--border-dark);
}

.section-header {
  margin-bottom: 20px;
}

.section-label {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-label span {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
}

.section-label hr { flex: 1; border: none; border-top: 0.5px solid var(--border-dark); }

/* TAG FILTER BAR */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.search-icon {
  position: absolute;
  left: 13px;
  width: 13px;
  height: 13px;
  color: var(--mid-gray);
  pointer-events: none;
}

.search-input {
  width: 100%;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--off-white);
  background: var(--surface);
  border: 1px solid #333;
  padding: 9px 34px 9px 35px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search-input::placeholder {
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
}

.search-input:hover { border-color: #444; }

.search-input:focus {
  border-color: var(--off-white);
  background: var(--surface-2);
}

.search-clear {
  position: absolute;
  right: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  background: none;
  border: none;
  color: var(--mid-gray);
  cursor: pointer;
  transition: color 0.15s ease;
}

.search-clear svg { width: 9px; height: 9px; }
.search-clear:hover { color: var(--off-white); }

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-filter-btn {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
  background: var(--surface);
  border: 1px solid #333;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.12s ease;
  line-height: 1;
}

.tag-filter-btn:hover {
  border-color: var(--off-white);
  color: var(--off-white);
  background: var(--surface-2);
}

.tag-filter-btn.active {
  background: var(--yellow);
  color: var(--near-black);
  border-color: var(--yellow);
}

/* MODE TOGGLE */
.filter-controls-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
  margin-bottom: 16px;
}

.filter-mode-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-label {
  font-size: 10px; 
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray); 
  font-weight: 500;
}

.mode-toggle-btn {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid #555;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: var(--mid-gray);
  transition: all 0.2s;
  white-space: nowrap;
}

.mode-toggle-btn:hover {
  border-color: var(--off-white);
  color: var(--off-white);
}

.mode-toggle-btn.active {
  border-color: var(--purple);
  color: var(--off-white);
  background: #2d1f4a;
}

/* CUSTOM SORT DROPDOWN */
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-select {
  position: relative;
  user-select: none;
}

.custom-select-btn {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  background: var(--surface);
  border: 1px solid #333;
  padding: 6px 10px 6px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.12s ease;
  line-height: 1;
  white-space: nowrap;
}

.custom-select-btn:hover,
.custom-select.open .custom-select-btn {
  border-color: var(--off-white);
  background: var(--surface-2);
}

.select-arrow {
  width: 8px;
  height: 8px;
  color: var(--mid-gray);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.custom-select.open .select-arrow {
  transform: rotate(180deg);
}

.custom-select-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 100%;
  background: var(--surface);
  border: 1px solid #444;
  list-style: none;
  z-index: 50;
  display: none;
  box-shadow: 4px 4px 0px #000;
}

.custom-select.open .custom-select-list {
  display: block;
}

.custom-select-item {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off-white);
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.1s;
  white-space: nowrap;
}

.custom-select-item:hover {
  background: var(--surface-2);
}

.custom-select-item.active {
  color: var(--near-black);
  background: var(--yellow);
}

/* SCROLLABLE LIST */
.scroll-list {
  height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.scroll-list::-webkit-scrollbar { width: 3px; }
.scroll-list::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.no-results {
  padding: 40px 20px;
  text-align: center;
  color: var(--light-gray);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.item-count {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--mid-gray);
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* NEWSLETTER SECTION */
.newsletter {
  background: #1a1a1a;
  color: var(--off-white);
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: padding 0.4s ease;
  position: relative;
}

.newsletter-toggle {
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0 0;
  cursor: pointer;
  position: relative;
}

.newsletter-toggle-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.newsletter-close {
  position: absolute;
  right: 40px;
  top: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mid-gray);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, opacity 0.3s ease;
  opacity: 1;
  z-index: 2;
}

.newsletter-close svg {
  width: 12px;
  height: 12px;
}

.newsletter-close:hover {
  color: var(--off-white);
}

.newsletter-content {
  max-width: 500px;
  width: 100%;
  text-align: center;
  padding: 56px 0 80px;
  transition: opacity 0.3s ease;
}

/* Collapsed state */
.newsletter--collapsed {
  padding: 0 40px;
}

.newsletter--collapsed .newsletter-content {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  padding: 0;
  overflow: hidden;
}

.newsletter--collapsed .newsletter-toggle {
  padding: 10px 0;
}

.newsletter-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--yellow);
}

.newsletter-desc {
  font-size: 12px;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-input {
  flex: 1;
  background: #2a2a2a;
  border: 1px solid #555;
  color: var(--off-white);
  padding: 12px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  outline: none;
  transition: box-shadow 0.2s;
}

.newsletter-input::placeholder {
  color: var(--mid-gray);
}

.newsletter-input:focus {
  box-shadow: 0 0 0 2px var(--yellow);
  border-color: var(--yellow);
}

/* MOBILE */
@media (max-width: 768px) {
  header { padding: 0 20px; }
  nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 56px 24px 40px; border-right: none; border-bottom: 0.5px solid var(--border-dark); }
  .hero-headline { font-size: 38px; }
  .hero-right { padding: 40px 24px 56px; }
  .lower-grid { flex-direction: column; }
  .left-col { border-right: none; border-bottom: 0.5px solid var(--border-dark); }
  .grid-column { padding: 40px 24px 48px; }
  .newsletter { padding: 0 24px; }
  .newsletter-content { padding: 40px 0 60px; }
  .newsletter-form { flex-direction: column; }
}
/* LICENSING SECTION */
.licensing {
  background: #0d0d0d;
  padding: 56px 40px 72px;
  border-top: 0.5px solid var(--border-dark);
  border-bottom: 0.5px solid var(--border-dark);
}

.licensing-header {
  text-align: center;
  margin-bottom: 40px;
}

.licensing-title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 12px;
  text-align: center;
}

.licensing-header .section-label {
  justify-content: center;
  max-width: 960px;
  margin: 0 auto 12px;
}

.licensing-header .section-label span {
  color: var(--off-white);
}

.licensing-header .section-label hr {
  border-top-color: var(--border-dark);
}

.licensing-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.license-card {
  background: var(--near-black);
  border: 1px solid #2a2a2a;
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: default;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.license-card:hover {
  border-color: #555;
  background: #1f1f1f;
  transform: translateY(-3px);
}

.license-card--featured {
  background: #161410;
  border-color: var(--yellow);
  z-index: 1;
}

.license-card--featured:hover {
  background: #1c1a10;
  border-color: var(--yellow);
  transform: translateY(-3px);
}

.license-card--exclusive {
  background: #141414;
  border-color: #333;
}

.license-card--exclusive:hover {
  border-color: var(--yellow);
  background: #1a1a14;
}

.license-badge {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--near-black);
  background: var(--yellow);
  padding: 4px 10px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 20px;
}

.license-top {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid #2a2a2a;
}

.license-name {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--off-white);
  margin-bottom: 10px;
  line-height: 1.1;
}

.license-price {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 10px;
}

.license-card--exclusive .license-price {
  font-size: 24px;
  color: var(--off-white);
}

.license-format {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  line-height: 1.5;
}

.license-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}

.license-features li {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #aaa;
  padding: 9px 0;
  border-bottom: 0.5px solid #222;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.license-features li:last-child {
  border-bottom: none;
}

.license-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: #444;
  flex-shrink: 0;
  border-radius: 50%;
}

.license-card--featured .license-features li {
  color: #ccc;
}

.license-card--featured .license-features li::before {
  background: var(--yellow);
}

.license-card--exclusive .license-features li::before {
  background: var(--yellow);
}

.license-btn {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--off-white);
  border: 1px solid #444;
  padding: 12px 0;
  text-align: center;
  display: block;
  transition: all 0.15s ease;
  margin-top: auto;
}

.license-btn:hover {
  border-color: var(--off-white);
  background: var(--off-white);
  color: var(--near-black);
}

.license-btn--featured {
  border-color: var(--yellow);
  color: var(--yellow);
}

.license-btn--featured:hover {
  background: var(--yellow);
  color: var(--near-black);
  border-color: var(--yellow);
}

.license-card--exclusive .license-btn {
  border-color: var(--yellow);
  color: var(--yellow);
}

.license-card--exclusive .license-btn:hover {
  background: var(--yellow);
  color: var(--near-black);
}

/* LICENSING MOBILE */
@media (max-width: 1000px) {
  .license-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .license-card--featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .licensing {
    padding: 40px 24px 56px;
  }
  .license-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .license-card--featured {
    grid-column: auto;
  }
  .license-card:hover {
    transform: none;
  }
}

/* ─── MODAL OVERLAY ──────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

/* ─── MODAL PANEL ─────────────────────────────────────────────────────────── */
.modal {
  background: var(--surface);
  border: 0.5px solid #333;
  width: 100%;
  max-width: 680px;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  transform: translateY(12px);
  transition: transform 0.22s ease;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal::-webkit-scrollbar { width: 3px; }
.modal::-webkit-scrollbar-thumb { background: #333; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--mid-gray);
  cursor: pointer;
  padding: 4px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--off-white); }
.modal-close svg { width: 14px; height: 14px; }

/* ─── TOP ROW: art left, info right ──────────────────────────────────────── */
.modal-top-row {
  display: flex;
  align-items: stretch;
  border-bottom: 0.5px solid #2a2a2a;
  padding-top: 28px;
}

.modal-art-col {
  flex-shrink: 0;
  width: auto; 
  display: flex;
  flex-direction: column;
  padding-left: 32px; 
}

.modal-cover-art {
  width: 220px;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  flex-shrink: 0;
}
.modal-cover-art--kit { width: 300px; height: 300px; }

/* ─── PLAY BUTTON ─────────────────────────────────────────────────────────── */
.modal-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,0,0,0.28);
  border: 1.5px solid rgba(255,255,255,0.65);
  color: var(--off-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.12s;
}
.modal-play-btn:hover { background: rgba(0,0,0,0.48); transform: scale(1.06); }
.modal-play-btn svg { width: 20px; height: 20px; }
.play-icon { margin-left: 3px; }

/* ─── PROGRESS BAR ────────────────────────────────────────────────────────── */
.modal-progress-wrap {
  padding: 12px 0 14px;
  background: transparent;
  border-top: 0.5px solid #2a2a2a;
  width: 220px;
}

.modal-progress-bar {
  width: 100%;
  height: 18px; /* expanded hit area */
  background: transparent;
  position: relative;
  cursor: pointer;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

/* The visible track line */
.modal-progress-bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #333;
  transform: translateY(-50%);
  pointer-events: none;
}

.modal-progress-fill {
  height: 2px;
  background: var(--yellow);
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
  align-self: center;
}

.modal-progress-thumb {
  width: 12px;
  height: 12px;
  background: var(--off-white);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 0.1s linear;
  cursor: grab;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.modal-progress-thumb:active { cursor: grabbing; }

.modal-time-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.modal-time {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--mid-gray);
  font-family: 'DM Mono', monospace;
}

/* ─── CARD PLAY BUTTON (on thumbnail) ───────────────────────────────────── */
.card-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  border: none;
  cursor: pointer;
  color: var(--off-white);
  opacity: 0;
  transition: opacity 0.15s;
  padding: 0;
}

.beat-card:hover .card-play-btn { opacity: 1; }

/* Keep visible when inline player is showing */
.beat-card:has(.card-inline-player.visible) .card-play-btn { opacity: 1; }

/* ─── CARD INLINE PLAYER ─────────────────────────────────────────────────── */
.card-inline-player {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 10px;
  border-top: 0.5px solid rgba(255,255,255,0.08);
}

.card-inline-player.visible {
  display: flex;
}

.card-prog-bar {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* The track line */
.card-prog-bar::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: rgba(255,255,255,0.18);
  border-radius: 1px;
}

.card-prog-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: var(--yellow);
  width: 0%;
  pointer-events: none;
  border-radius: 1px;
}

.card-prog-thumb {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--off-white);
  border-radius: 50%;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.card-time-row {
  display: flex;
  justify-content: space-between;
}

.card-time {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--mid-gray);
}


/* ─── HEADER COL (right of art) ───────────────────────────────────────────── */
.modal-header-col {
  flex: 1;
  padding: 0 52px 28px 28px; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}

.modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-style: italic;
  color: var(--off-white);
  line-height: 1.15;
  margin: 0;
}

.modal-bpm-key {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
  font-family: 'DM Mono', monospace;
}

.modal-kit-type {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  font-family: 'DM Mono', monospace;
  border: 0.5px solid var(--purple);
  padding: 4px 10px;
  display: inline-block;
  align-self: flex-start;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 22px;
}

.modal-tag {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-bright);
  background: var(--purple-tint);
  border: 0.5px solid var(--purple-line);
  border-radius: 2px;
  padding: 4px 9px;
  line-height: 1.4;
  font-family: 'DM Mono', monospace;
}

.modal-kit-desc {
  font-size: 12px;
  line-height: 1.7;
  color: var(--mid-gray);
  letter-spacing: 0.03em;
  font-family: 'DM Mono', monospace;
}

.kit-desc-hero {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
}

.kit-desc-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  background: #161616;
  border: 0.5px solid #2a2a2a;
  border-right: none;
  gap: 5px;
}

.kit-desc-stat:last-child {
  border-right: 0.5px solid #2a2a2a;
}

.kit-stat-num {
  font-size: 28px;
  font-family: 'DM Mono', monospace;
  color: var(--yellow);
  letter-spacing: -0.03em;
  line-height: 1;
}

.kit-stat-label {
  font-size: 7.5px;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mid-gray);
}

.kit-desc-total {
  font-size: 8px;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mid-gray);
  text-align: right;
  padding: 5px 2px 16px;
  border-bottom: 0.5px solid #2a2a2a;
  margin-bottom: 16px;
}

.kit-desc-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.kit-desc-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--light-gray);
  letter-spacing: 0.03em;
  line-height: 1.55;
}

.kit-feat-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  margin-top: 5px;
}

.kit-desc-compat {
  font-size: 8.5px;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--purple);
  padding: 8px 12px;
  border: 0.5px solid #2a2a2a;
  display: inline-block;
}

/* ─── MODAL INFO (licenses + buy) ─────────────────────────────────────────── */
.modal-info {
  padding: 28px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ─── LICENSE SELECTOR ────────────────────────────────────────────────────── */
.modal-license-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-license-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
  font-family: 'DM Mono', monospace;
}

.modal-license-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.modal-license-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 18px;
  border: 1px solid #333;
  background: var(--surface-2);
  color: var(--mid-gray);
  cursor: pointer;
  transition: all 0.12s;
  line-height: 1;
}
.modal-license-btn:hover {
  border-color: #555;
  color: var(--off-white);
  background: #2e2e2e;
}
.modal-license-btn.active {
  border-color: var(--yellow);
  color: var(--near-black);
  background: var(--yellow);
}

/* ─── LICENSE DETAILS PANEL ───────────────────────────────────────────────── */
.modal-license-details {
  background: #1a1a1a;
  border: 0.5px solid #333;
  padding: 14px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-license-format {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off-white);
  font-weight: 500;
}

.modal-license-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.modal-license-bullets li {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--mid-gray);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.modal-license-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  background: var(--mid-gray);
  border-radius: 50%;
}

.modal-read-license {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  display: inline-block;
  border-bottom: 0.5px solid #444;
  padding-bottom: 1px;
  align-self: flex-start;
  margin-top: 2px;
}
.modal-read-license:hover {
  color: var(--off-white);
  border-bottom-color: var(--off-white);
}

/* ─── BUY ROW: price left, button right ───────────────────────────────────── */
.modal-buy-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: #1a1a1a;
  border: 1px solid #333;
  gap: 0;
  margin-top: 10px;
}

.modal-price-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
}

.modal-price-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid-gray);
  font-family: 'DM Mono', monospace;
}

.modal-price-value {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--off-white);
  line-height: 1;
}

.modal-buy-btn {
  background: var(--yellow);
  color: var(--near-black);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 60px;
  height: 80px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.modal-buy-btn:hover {
  background: #f0d040;
  color: var(--near-black);
}

/* ─── SHARE BUTTON ────────────────────────────────────────────────────────── */
.modal-share-btn {
  background: none;
  border: 1px solid #333;
  color: var(--off-white);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
  align-self: flex-start;
}
.modal-share-btn:hover { background: var(--surface-2); border-color: #555; }

/* ─── MODAL NAV ARROWS ────────────────────────────────────────────────────── */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 80px;
  background: transparent;
  border: none;
  color: var(--mid-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  z-index: 20;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.modal-overlay.active .modal-nav-btn {
  opacity: 1;
  pointer-events: auto;
}
.modal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--off-white);
}
.modal-nav-prev { left: 0; }
.modal-nav-next { right: 0; }

/* ─── LICENSE MODAL ───────────────────────────────────────────────────────── */
.license-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.license-modal-overlay.active { opacity: 1; pointer-events: all; }

.license-modal {
  background: var(--surface);
  border: 0.5px solid #333;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  padding: 44px 48px 52px;
  transform: translateY(12px);
  transition: transform 0.22s ease;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.license-modal-overlay.active .license-modal { transform: translateY(0); }
.license-modal::-webkit-scrollbar { width: 3px; }
.license-modal::-webkit-scrollbar-thumb { background: #333; }

.license-modal-title {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--off-white);
  margin: 0 0 32px;
  padding-right: 36px;
  line-height: 1.5;
}

.lic-meta-block {
  background: rgba(255,255,255,0.05);
  border-left: 2px solid #333;
  padding: 12px 16px;
  margin-bottom: 28px;
}
.lic-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--mid-gray);
  margin: 0 0 3px;
  line-height: 1.6;
}
.lic-meta:last-child { margin-bottom: 0; }

.lic-section {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 0.5px solid #2a2a2a;
}
.lic-section:first-of-type { margin-top: 0; }

.lic-para {
  font-size: 13px;
  line-height: 1.75;
  color: var(--light-gray);
  margin: 0 0 12px;
}

.lic-item {
  font-size: 13px;
  line-height: 1.75;
  color: var(--light-gray);
  margin: 0 0 6px;
  padding-left: 18px;
  text-indent: -4px;
}

.lic-spacer { height: 4px; }

@media (max-width: 600px) {
  .license-modal-overlay { padding: 0; align-items: flex-end; }
  .license-modal { max-width: 100%; max-height: 88vh; padding: 32px 20px 40px; border-left: none; border-right: none; border-bottom: none; }
  .license-modal-title { font-size: 11px; margin-bottom: 24px; }
}

/* ─── MODAL MOBILE ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .modal { max-width: 100%; border-left: none; border-right: none; border-bottom: none; }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-height: 88vh; }

  /* Sticky close button — stays visible as the user scrolls the modal */
  .modal-close {
    position: sticky;
    top: 0;
    align-self: flex-end;
    margin: 10px 12px 0 auto;
    background: var(--surface);
    padding: 10px;
    min-width: 40px;
    min-height: 40px;
    z-index: 20;
  }

  /* Nav arrows are unusable in a bottom-sheet on mobile */
  .modal-nav-btn { display: none; }

  /* Beat modal mobile — art + progress side by side */
  .modal-top-row { flex-direction: column; }
  .modal-art-col { width: 100%; flex-direction: row; align-items: stretch; border-bottom: 0.5px solid #2a2a2a; }
  .modal-cover-art { width: 130px; height: 130px; flex-shrink: 0; }
  .modal-cover-art--kit { width: 130px; height: 130px; }
  .modal-progress-wrap { flex: 1; border-top: none; border-left: 0.5px solid #2a2a2a; display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; width: auto; }
  .modal-header-col { padding: 14px 16px; justify-content: flex-start; }
  .modal-title { font-size: 20px; }
  .modal-info { padding: 16px 16px 20px; }
  .modal-price-value { font-size: 26px; }
  .modal-buy-btn { padding: 0 28px; height: 56px; font-size: 11px; }
  .modal-license-btn { padding: 6px 0; font-size: 10px; }

  .modal-cover-art--kit { width: 160px; height: 160px; }
}

/* ─── CART BADGE ──────────────────────────────────────────────────────────── */
.nav-cart { position: relative; }
.nav-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--near-black);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}

/* ─── CART DRAWER ─────────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 200;
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 380px;
  max-width: 88vw;
  background: var(--near-black);
  border-left: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.cart-overlay.active .cart-drawer { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 0.5px solid var(--border-dark);
  flex-shrink: 0;
}
.cart-header-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--off-white);
}
.cart-close {
  background: none;
  border: none;
  color: var(--mid-gray);
  cursor: pointer;
  padding: 4px;
  display: flex;
}
.cart-close:hover { color: var(--off-white); }
.cart-close svg { width: 14px; height: 14px; }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.cart-body::-webkit-scrollbar { width: 3px; }
.cart-body::-webkit-scrollbar-thumb { background: #333; }

.cart-empty { padding: 56px 24px; text-align: center; }
.cart-empty-title {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--off-white);
  margin-bottom: 6px;
}
.cart-empty-sub {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--mid-gray);
}

.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 0.5px solid var(--border-dark);
}
.cart-item-info { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.cart-item-title {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--off-white);
  line-height: 1.1;
}
.cart-item-tier {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--off-white);
  background: var(--surface);
  border: 0.5px solid var(--dark-gray);
  padding: 5px 8px;
  cursor: pointer;
  max-width: 100%;
}
.cart-item-tier:hover { border-color: var(--mid-gray); }
.cart-item-tier-static {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
}
.cart-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.cart-item-price {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: var(--yellow);
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--mid-gray);
  cursor: pointer;
  padding: 4px;
  display: flex;
}
.cart-item-remove:hover { color: #c5a0a0; }
.cart-item-remove svg { width: 11px; height: 11px; }

.cart-footer {
  flex-shrink: 0;
  padding: 18px 22px 22px;
  border-top: 0.5px solid var(--border-dark);
}
.cart-footer--hidden { display: none; }
.cart-subtotal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cart-subtotal-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.cart-subtotal-value {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--off-white);
}
.cart-checkout-btn {
  width: 100%;
  background: var(--yellow);
  color: var(--near-black);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  padding: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.cart-checkout-btn:hover { background: #f0d040; }
.cart-clear-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--mid-gray);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 0 0;
  cursor: pointer;
}
.cart-clear-btn:hover { color: var(--off-white); }

/* ─── MODAL TWO-BUTTON BUY ACTIONS ────────────────────────────────────────── */
.modal-buy-actions {
  display: flex;
  flex: 1;
  min-width: 0;
}
.modal-add-btn,
.modal-buy-btn--secondary {
  flex: 1;
  min-width: 0;
  height: 80px;
  padding: 0 14px;
  border: none;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.modal-add-btn { background: var(--yellow); color: var(--near-black); }
.modal-add-btn:hover:not(:disabled) { background: #f0d040; }
.modal-buy-btn--secondary {
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--off-white);
}
.modal-buy-btn--secondary:hover:not(:disabled) {
  background: var(--off-white);
  color: var(--near-black);
}
.modal-add-btn:disabled,
.modal-buy-btn--secondary:disabled,
.modal-btn--disabled {
  background: var(--surface);
  color: var(--mid-gray);
  border: 1px solid var(--border-dark);
  cursor: not-allowed;
}
.modal-add-confirm {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #a8c5a0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.2s ease, margin 0.2s ease;
}
.modal-add-confirm.visible {
  max-height: 30px;
  opacity: 1;
  margin-top: 10px;
}

/* ─── CART + BUY ACTIONS MOBILE ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .cart-drawer { width: 100%; max-width: 100%; border-left: none; }
  .modal-buy-row { flex-direction: column; align-items: stretch; }
  .modal-price-wrap { align-items: flex-start; padding: 14px 18px; }
  .modal-buy-actions { width: 100%; border-top: 0.5px solid #333; }
  .modal-add-btn,
  .modal-buy-btn--secondary { height: 56px; font-size: 11px; letter-spacing: 0.1em; padding: 0 8px; }
}

/* ─── FREE DOWNLOAD: tags, filter, license tab, panel ─────────────────────── */

/* Hidden-attribute overrides (these elements set an explicit display) */
.modal-buy-row[hidden],
.modal-license-details[hidden],
.modal-free-panel[hidden],
.modal-free-form[hidden],
.modal-free-success[hidden],
.modal-kit-author[hidden] { display: none !important; }

/* FREE DOWNLOAD tag — solid lavender + download glyph: reads as an action,
   clearly set apart from the tinted genre tags without shouting like yellow. */
.beat-tag--free,
.modal-tag--free {
  color: #1b1726;
  background: var(--purple);
  border-color: var(--purple);
  font-weight: 500;
  letter-spacing: 0.12em;
}
.beat-tag--free::before,
.modal-tag--free::before {
  content: "\2193";
  margin-right: 4px;
  font-weight: 700;
}

/* FREE filter chip — lavender, distinct from the gray→yellow filter buttons */
.tag-filter-btn--free {
  color: var(--purple);
  border-color: var(--purple);
}
.tag-filter-btn--free:hover {
  color: var(--near-black);
  background: var(--purple);
  border-color: var(--purple);
}
.tag-filter-btn--free.active {
  background: var(--purple);
  color: var(--near-black);
  border-color: var(--purple);
}

/* FREE license tab — lavender, reads as a different ACTION, not the cheap tier */
.modal-license-btn--free {
  color: var(--purple);
  border-color: var(--purple);
}
.modal-license-btn--free:hover {
  color: var(--near-black);
  background: var(--purple);
  border-color: var(--purple);
}
.modal-license-btn--free.active {
  background: var(--purple);
  color: var(--near-black);
  border-color: var(--purple);
}

/* FREE download panel (swaps in for the price/cart footer) */
.modal-free-panel {
  background: #1a1a1a;
  border: 0.5px solid #333;
  padding: 16px 18px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-free-summary {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--off-white);
}
.modal-free-bullets { margin: 0; }
.modal-free-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-free-input {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  width: 100%;
  background: #111;
  border: 1px solid #333;
  color: var(--off-white);
}
.modal-free-input::placeholder { color: var(--mid-gray); }
.modal-free-input:focus { outline: none; border-color: var(--purple); }
.modal-free-agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--mid-gray);
  cursor: pointer;
}
.modal-free-agree input {
  margin-top: 1px;
  accent-color: var(--purple);
  flex-shrink: 0;
}
.modal-free-agree a { color: var(--purple-bright); text-decoration: underline; }
.modal-free-btn {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  height: 54px;
  border: none;
  background: var(--purple);
  color: #1b1726;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.18s ease, transform 0.06s ease;
}
.modal-free-btn::before {
  content: "\2193";
  font-size: 15px;
  font-weight: 700;
  line-height: 0;
}
.modal-free-btn:hover:not(:disabled) { background: #9c8fd6; }
.modal-free-btn:active:not(:disabled) { transform: translateY(1px); }
.modal-free-btn:disabled {
  background: var(--surface);
  color: var(--mid-gray);
  border: 1px solid var(--border-dark);
  cursor: not-allowed;
}
.modal-free-status {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  min-height: 1em;
  color: var(--mid-gray);
}
.modal-free-status--error { color: #c5a0a0; }
.modal-free-success {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-free-success-msg {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--purple-bright);
}
.modal-free-upsell {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--purple-bright);
  text-decoration: none;
  border-bottom: 0.5px solid var(--purple-line);
  padding-bottom: 1px;
  align-self: flex-start;
}
.modal-free-upsell:hover { color: #cfc6f0; border-bottom-color: var(--purple-bright); }

/* Slim note under the license grid */
.license-free-note {
  max-width: 1200px;
  margin: 16px auto 0;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--mid-gray);
  text-align: center;
}

/* Author / creator line in the kit modal */
.modal-kit-author {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mid-gray);
}

/* Free tab adds a 6th license button — let the row wrap on narrow screens */
@media (max-width: 600px) {
  .modal-license-grid { flex-wrap: wrap; gap: 5px; justify-content: flex-start; }
  .modal-license-btn { padding: 6px 10px; font-size: 10px; letter-spacing: 0.06em; }
}
