:root {
  --bg-1: #16130F;
  --bg-2: #1C1712;
  --bg-glow: #2E2216;
  --card: #201A14;
  --border: #3A3226;
  --purple: #A855F7;
  --purple-hover: #C084FC;
  --magenta: #D946EF;
  --violet: #7C3AED;
  --deep-violet: #6D28D9;
  --white: #FFFFFF;
  --text-muted: #A8A29E;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Space Grotesk', system_ui, sans-serif;
  color: var(--white);
  background: radial-gradient(ellipse 90% 60% at 50% -10%, var(--bg-glow) 0%, var(--bg-1) 55%),
              linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-1) 100%);
  min-height: 100vh;
  line-height: 1.6;
}

.display { font-family: 'Unbounded', sans-serif; font-weight: 900; }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon.small { width: 15px; height: 15px; }

.hidden { display: none !important; }

/* NAV */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(22,19,15,0.96);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { cursor: pointer; display: flex; flex-direction: column; line-height: 1; }
.logo-text { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 900; letter-spacing: -1px; }
.logo-sub { font-size: 10px; opacity: 0.6; letter-spacing: 1.5px; }
.nav-links { display: flex; gap: 4px; }
.nav-btn {
  background: transparent; border: none; color: var(--white);
  font-family: inherit; font-size: 14px; font-weight: 500; padding: 10px 18px;
  border-radius: 999px; cursor: pointer; transition: all .2s ease;
}
.nav-btn.active { background: var(--purple); color: var(--bg-1); font-weight: 600; }
.nav-btn:not(.active):hover { background: rgba(168,85,247,0.1); }
.ghost-btn {
  background: transparent; border: 1px solid var(--border); color: var(--white);
  font-size: 13px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
}
.ghost-btn:hover { border-color: var(--purple); color: var(--purple); }

/* TOAST */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 200; background: var(--violet); color: white;
  padding: 14px 28px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 10px;
}

/* PAGE */
.page { padding: 48px 24px; max-width: 1100px; margin: 0 auto; }

/* HERO */
.hero {
  text-align: center; padding: 40px 0 60px;
  display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero-content { text-align: left; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 11px; opacity: 0.7; margin-bottom: 12px; }
.eyebrow.small { letter-spacing: 2px; font-size: 10px; }
.hero-title { font-size: clamp(3.8rem, 9vw, 7.5rem); line-height: .9; margin: 0 0 20px; font-weight: 900; }
.hero-copy { font-size: 17px; max-width: 520px; margin-bottom: 32px; color: #E5E0D8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--purple); color: var(--bg-1); border: none;
  font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 14px 32px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: all .2s;
}
.btn-primary:hover { background: var(--purple-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-primary.full { width: 100%; justify-content: center; padding: 15px; }
.btn-secondary {
  background: transparent; color: var(--purple); border: 1.5px solid var(--purple);
  font-weight: 600; font-size: 14px; padding: 13px 26px; border-radius: 999px; cursor: pointer;
}
.btn-secondary:hover { background: rgba(168,85,247,0.08); }

.hero-trust { display: flex; gap: 20px; margin-top: 32px; flex-wrap: wrap; font-size: 13px; opacity: .85; }

/* VINYL */
.vinyl-wrap { display: flex; justify-content: center; }
.vinyl-disc {
  width: 260px; height: 260px; border-radius: 50%;
  background: #0C0A08; border: 12px solid #2A2118;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  position: relative; flex-shrink: 0;
}
.vinyl-disc.spinning { animation: spin-slow 7s linear infinite; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.vinyl-groove {
  position: absolute; inset: 12px; border-radius: 50%;
  background: repeating-radial-gradient(circle, #241C14 0px, #241C14 1.5px, transparent 2.5px, transparent 8px);
}
.vinyl-label {
  position: absolute; inset: 0; margin: auto; width: 92px; height: 92px;
  border-radius: 50%; background: var(--magenta); border: 6px solid var(--bg-1);
  display: flex; align-items: center; justify-content: center;
}
.vinyl-text { font-family: 'Unbounded', sans-serif; font-size: 28px; font-weight: 900; color: var(--bg-1); }

/* CONTACT BAR */
.contact-bar { background: rgba(32,26,20,0.6); border: 1px solid var(--border); border-radius: 16px; padding: 16px 24px; margin-bottom: 60px; }
.contact-bar-inner { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.contact-quick { color: var(--white); text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.contact-quick:hover { color: var(--purple); }

/* ABOUT */
.about-section { margin-bottom: 70px; }
.section-header { margin-bottom: 24px; }
.section-header.center { text-align: center; }
.section-title { font-size: 32px; font-weight: 700; margin: 4px 0 8px; }
.section-sub { font-size: 15px; color: var(--text-muted); max-width: 620px; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { font-size: 15.5px; color: #E5E0D8; margin-bottom: 18px; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; text-align: center; }
.stat-number { font-size: 28px; font-weight: 700; color: var(--purple); }
.stat-label { font-size: 13px; opacity: .8; margin-top: 4px; }

/* TESTIMONIALS */
.testimonials { margin-bottom: 60px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
.quote { font-size: 15px; font-style: italic; margin-bottom: 16px; line-height: 1.5; }
.quote-author { font-size: 13px; opacity: .75; font-weight: 500; }

/* CATALOG CONTROLS */
.catalog-controls { margin-bottom: 24px; }
.search-wrap { margin-bottom: 16px; }
.input-field {
  width: 100%; background: var(--bg-1); border: 1px solid var(--border); color: var(--white);
  font-family: inherit; font-size: 15px; padding: 12px 16px; border-radius: 12px;
  outline: none; transition: border-color .2s;
}
.input-field:focus { border-color: var(--purple); }
.textarea { resize: vertical; min-height: 80px; }
.sort-select { max-width: 220px; }

.filter-row { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.filter-group { flex: 1; min-width: 220px; }
.filter-label { display: block; font-size: 12px; margin-bottom: 6px; opacity: .7; font-weight: 500; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--card); border: 1px solid var(--border); color: var(--white);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  transition: all .15s;
}
.chip.active { background: var(--purple); color: var(--bg-1); border-color: var(--purple); }
.chip:hover:not(.active) { border-color: #5A5246; }

/* CATALOG GRID */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
@media (max-width: 640px) { .catalog-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }

.track-card { display: flex; gap: 18px; align-items: flex-start; }
.track-cover {
  width: 78px; height: 78px; border-radius: 12px; flex-shrink: 0;
  background-size: cover; background-position: center; border: 1px solid var(--border);
}
.track-info { flex: 1; min-width: 0; }
.track-title { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.track-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.track-desc { font-size: 13px; opacity: .75; margin-bottom: 10px; line-height: 1.4; }

.track-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.icon-btn {
  background: var(--border); border: none; color: var(--white); width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.icon-btn:hover { background: #52493E; }
.download-btn { background: var(--violet); }
.download-btn:hover { background: #9061E0; }
.buy-btn {
  background: var(--purple); color: var(--bg-1); border: none; font-weight: 700;
  height: 36px; padding: 0 18px; border-radius: 999px; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.buy-btn:hover { background: var(--purple-hover); }
.remove-btn { background: rgba(217,70,239,0.25); margin-left: auto; }
.remove-btn:hover { background: rgba(217,70,239,0.45); }

.owned-tag { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 5px; color: #4ADE80; }
.badge { font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-bottom: 6px; display: inline-block; }
.badge-featured { background: var(--purple); color: var(--bg-1); }
.badge-soldout { background: #3F362B; color: #C9B8A3; }

.admin-toggle-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.toggle-btn {
  background: transparent; border: 1px solid var(--border); color: var(--white);
  font-size: 11px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.toggle-btn.active { background: var(--purple); border-color: var(--purple); color: var(--bg-1); }

/* MERCH */
.merch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.merch-thumb {
  width: 100%; height: 180px; background: var(--border); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  background-size: cover; background-position: center; color: #6B6257;
}
.merch-name { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.merch-price { font-size: 14px; color: var(--purple); font-weight: 600; margin-bottom: 12px; }
.merch-actions { display: flex; gap: 8px; margin-top: 8px; }

/* ADMIN */
.admin-panel { max-width: 1100px; margin: 30px auto; padding: 0 24px 60px; border-top: 1px solid var(--border); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-title { font-size: 26px; font-weight: 700; margin: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.admin-card.full-width { grid-column: 1 / -1; }
.admin-card-title { font-size: 17px; font-weight: 700; margin: 0 0 18px; }
.admin-form .input-field { margin-bottom: 14px; }
.form-row { display: flex; gap: 14px; }
.bulk-row { display: flex; gap: 10px; align-items: center; }
.bulk-select { flex: 2; }
.bulk-value { flex: 1; }
.admin-note { font-size: 12px; opacity: .7; margin-top: 10px; }
.settings-form .form-row { margin-bottom: 4px; }

/* MODALS */
.modal-overlay {
  position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; width: 100%; max-width: 420px; }
.modal-card.narrow { max-width: 340px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-size: 19px; font-weight: 700; margin: 0; }
.modal-price { font-size: 15px; font-weight: 600; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.pm-badge {
  background: #2A241E; border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.modal-note { font-size: 12px; opacity: .7; margin-bottom: 16px; }
.pin-error { color: var(--magenta); font-size: 13px; margin: 8px 0; }

/* LIBRARY */
.library-controls { max-width: 520px; margin-bottom: 30px; }
.library-input-group { display: flex; gap: 10px; }
.library-input-group .input-field { flex: 1; }
.library-hint { font-size: 13px; opacity: .7; margin-top: 8px; }
.library-subtitle { font-size: 18px; margin: 30px 0 14px; font-weight: 600; }
.library-empty { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; text-align: center; opacity: .85; }
.library-results { margin-top: 10px; }

/* FOOTER */
.site-footer { padding: 32px 24px; text-align: center; font-size: 13px; border-top: 1px solid var(--border); margin-top: 60px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-dot { background: transparent; border: none; color: var(--white); opacity: .35; font-size: 22px; cursor: pointer; padding: 0 8px; }
.footer-dot:hover { opacity: 1; }

/* RESPONSIVE TWEAKS */
@media (max-width: 640px) {
  .nav-links { display: none; } /* simple mobile — can enhance with hamburger later */
  .hero { padding-top: 20px; }
  .vinyl-disc { width: 200px; height: 200px; }
}
