/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0a;
  --surface:   #111111;
  --surface2:  #1a1a1a;
  --border:    #2a2a2a;
  --gold:      #e02020;
  --gold2:     #ff4040;
  --text:      #f0f0f0;
  --muted:     #888;
  --red:       #e03030;
  --green:     #27ae60;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: 90px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: #fff;
}
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.cart-btn {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.cart-btn:hover { background: var(--gold2); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1008 50%, #0a0a0a 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(201,168,76,0.12) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; padding: 40px 24px; }
.hero-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 10vw, 120px);
  letter-spacing: 6px;
  color: #fff;
  line-height: 1;
}
.hero-content h1 span { color: var(--gold); }
.tagline { font-size: 16px; color: var(--muted); margin: 16px 0 32px; letter-spacing: 1px; }
.hero-btn {
  display: inline-block;
  background: var(--gold);
  color: #000;
  padding: 14px 40px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.hero-btn:hover { background: var(--gold2); color: #000; transform: translateY(-2px); }

/* ── Sections ─────────────────────────────────────────────── */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 4px;
  color: #fff;
}
.section-header p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.price-highlight { color: var(--gold); font-weight: 700; font-size: 18px; }

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; justify-content: center; }
.filter-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* ── Beats Grid ───────────────────────────────────────────── */
.beats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.beat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.beat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.beat-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.beat-card:hover::before { opacity: 1; }

.beat-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.beat-artwork {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.beat-info { flex: 1; min-width: 0; }
.beat-title {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.beat-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.beat-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  background: var(--surface2);
  color: var(--muted);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.beat-actions { display: flex; gap: 10px; align-items: center; }
.play-btn {
  width: 40px; height: 40px;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.play-btn:hover { background: var(--gold2); transform: scale(1.1); }
.play-btn.playing { background: #fff; }
.add-cart-btn {
  flex: 1;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 9px 0;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}
.add-cart-btn:hover { background: var(--gold); color: #000; }
.add-cart-btn.in-cart { background: var(--green); border-color: var(--green); color: #fff; }
.beat-price { font-weight: 700; color: var(--gold); font-size: 16px; margin-left: auto; }

/* Collab badge */
.collab-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── Credits ──────────────────────────────────────────────── */
#credits { background: var(--surface); border-radius: 16px; }
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.credit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
  text-decoration: none;
  display: block;
  cursor: pointer;
}
.credit-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  background: #110000;
}
.credit-play {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity .2s;
}
.credit-card:hover .credit-play { opacity: 1; }
.credit-artist { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; color: var(--gold); }
.credit-song { color: var(--muted); font-size: 13px; margin-top: 4px; font-style: italic; }

/* ── License ──────────────────────────────────────────────── */
.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  max-width: 800px;
  margin: 0 auto;
}
.license-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-box { text-align: center; }
.contact-email {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 14px 40px;
  border-radius: 8px;
  transition: all .2s;
}
.contact-email:hover { background: var(--gold); color: #000; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 40px 24px;
}
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 3px; margin-bottom: 8px; }
.footer-logo span { color: var(--gold); }
footer p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.footer-note { font-size: 11px; max-width: 500px; margin: 10px auto 0; }

/* ── Cart Drawer ──────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: none;
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  max-width: 95vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right .3s ease;
}
.cart-drawer.open { right: 0; }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 2px; }
.cart-header button { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  gap: 12px;
}
.cart-item-name { font-weight: 700; font-size: 14px; }
.cart-item-price { color: var(--gold); font-weight: 700; white-space: nowrap; }
.cart-item-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px; transition: color .2s; }
.cart-item-remove:hover { color: var(--red); }
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.cart-total span { color: var(--gold); }
.checkout-btn {
  width: 100%;
  background: var(--gold);
  color: #000;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.checkout-btn:hover { background: var(--gold2); }
.empty-cart { text-align: center; color: var(--muted); padding: 40px 0; }

/* ── Player Bar ───────────────────────────────────────────── */
.player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  z-index: 99;
}
.player-info { min-width: 160px; }
.player-info span { display: block; }
#player-title { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
#player-producer { color: var(--muted); font-size: 11px; }
.player-controls { display: flex; gap: 12px; align-items: center; }
.player-controls button {
  background: none; border: none; color: var(--text);
  font-size: 18px; cursor: pointer; transition: color .2s;
  padding: 4px;
}
.player-controls button:hover { color: var(--gold); }
#play-pause-btn {
  width: 38px; height: 38px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
#play-pause-btn:hover { background: var(--gold2); color: #000; }
.player-progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.player-progress-wrap input[type=range] { flex: 1; }
.player-volume { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.player-volume input[type=range] { width: 80px; }

/* Range inputs */
input[type=range] {
  -webkit-appearance: none;
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .player-volume { display: none; }
  .player-info { min-width: 100px; }
  #player-title { max-width: 100px; }
  .beats-grid { grid-template-columns: 1fr; }
}

/* ── PayPal + Subscription Styles ─────────────────────────── */
.stripe-btn { width: 100%; margin-bottom: 0; }

.paypal-divider {
  display: flex; align-items: center;
  gap: 10px; margin: 10px 0; color: #555; font-size: 12px;
}
.paypal-divider::before, .paypal-divider::after {
  content: ''; flex: 1; height: 1px; background: #333;
}

#paypal-button-container { min-height: 44px; }

/* Plans modal */
.plans-modal {
  position: fixed; right: -520px; top: 0; width: 520px; max-width: 100vw;
  height: 100vh; background: #111; z-index: 1001;
  transition: right 0.3s ease; padding: 24px;
  overflow-y: auto; box-sizing: border-box;
}
.plans-modal.open { right: 0; }

.plans-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.plans-header h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px; color: #c9a84c; font-size: 22px; margin: 0;
}
.plans-header button {
  background: none; border: none; color: #888;
  font-size: 20px; cursor: pointer;
}
.plans-sub { color: #555; font-size: 12px; margin: 0 0 20px; }

.plans-grid { display: flex; flex-direction: column; gap: 16px; }

.plan-card {
  background: #1a1a1a; border: 1px solid #2a2a2a;
  border-radius: 10px; padding: 20px; position: relative;
}
.plan-card.featured { border-color: #c9a84c; }

.plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #c9a84c; color: #000; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 10px; letter-spacing: 1px;
}
.plan-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 2px; color: #fff; margin-bottom: 6px;
}
.plan-price {
  font-size: 36px; font-weight: 700; color: #c9a84c; margin-bottom: 14px;
}
.plan-price span { font-size: 14px; color: #666; }

.plan-features {
  list-style: none; padding: 0; margin: 0 0 16px;
}
.plan-features li {
  font-size: 13px; color: #aaa; padding: 4px 0;
}
.plan-features li::before { content: '✓  '; color: #c9a84c; }

.subscribe-nav-btn {
  background: #c9a84c; color: #000; border: none;
  padding: 8px 18px; border-radius: 4px; font-weight: 700;
  font-size: 13px; cursor: pointer; margin-left: 12px;
}
.subscribe-nav-btn:hover { background: #ddb95c; }
