* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --panel: #0d0d0d; --muted: #a1a1a1; --accent: #f5c451; }
body { background: #000; color: #fff; font: 16px/1.3 Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 0 8px 8px; height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; border: 0; cursor: pointer; }

/* Top navigation */
.topnav { display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px 0; text-align: center; font-size: 12px; }
.topnav small { display: block; color: var(--muted); font-size: 11px; }

/* Three-panel layout */
.layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 260px 1fr 1fr; gap: 8px; }
.panel { background: var(--panel); border-radius: 16px; overflow: hidden; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; padding: 16px 8px 8px; font-size: 14px; }
.logo { text-align: center; font-weight: 600; letter-spacing: .3em; margin-bottom: 18px; }
.section-label { text-align: center; font-size: 13px; font-weight: 500; margin-bottom: 40px; }
#pack-list a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--muted); }
#pack-list a:hover, #pack-list a.active { background: #222; color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.links { margin-top: auto; padding: 12px; color: var(--muted); }
.links li { padding: 4px 0; }
.links a:hover { color: #fff; }
.profile { display: flex; align-items: center; gap: 10px; background: #222; border-radius: 6px 6px 16px 16px; padding: 10px 12px; }
.profile img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #444; }
.profile b { display: block; font-size: 14px; font-weight: 500; }
.profile span { color: var(--muted); font-size: 14px; }

/* Pack (middle) */
#pack { overflow-y: auto; }
.pack-head { display: flex; gap: 24px; align-items: flex-end; padding: 64px 24px 24px; }
.cover { width: 170px; height: 170px; border-radius: 6px; object-fit: cover; flex: none; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.kicker { font-size: 13px; }
.pack-head h1 { font-size: 48px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 10px; }
.meta { font-size: 14px; color: rgba(255,255,255,.7); }
.actions { display: flex; align-items: center; gap: 16px; padding: 8px 24px 24px; }
.play { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.play::before { content: ""; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #000; margin-left: 4px; }
.play.playing::before { width: 14px; height: 16px; border: 0; margin: 0; background: linear-gradient(90deg, #000 0 35%, transparent 35% 65%, #000 65%); }
.buy { display: inline-block; background: #fff; color: #000; border-radius: 999px; padding: 10px 22px; font-size: 15px; font-weight: 500; }
.buy:hover { background: #e6e6e6; }
.buy.small { padding: 6px 14px; font-size: 12px; }

table { width: 100%; border-collapse: separate; border-spacing: 0; padding: 0 12px 24px; }
th { text-align: left; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.4); padding: 8px 12px; }
td { padding: 10px 12px; font-size: 13px; color: var(--muted); }
tbody tr { cursor: pointer; }
tbody tr:hover td, tbody tr.playing td { background: rgba(255,255,255,.06); }
tbody td:first-child { border-radius: 10px 0 0 10px; }
tbody td:last-child { border-radius: 0 10px 10px 0; text-align: right; }
.name { display: flex; align-items: center; gap: 14px; }
.name .dot { background: var(--accent); }
.name b { display: block; color: #fff; font-size: 16px; font-weight: 500; }
tr.playing .name b { color: var(--accent); }

/* Feature (right) */
.feature { position: relative; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.85)); }
.feature > * { position: relative; }
.feature-row { display: flex; justify-content: space-between; align-items: center; }
.feature h2 { font-size: 40px; font-weight: 600; letter-spacing: -.02em; }
.feature p { font-size: 14px; color: rgba(255,255,255,.7); margin: 6px 0 20px; }
.feature .buy { text-align: center; padding: 14px; }

/* Below the samples: steps, submit, FAQ, more packs */
.extras { padding: 40px 24px 32px; }
.extras h2 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 20px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.step { background: #1c1c1c; border-radius: 16px; padding: 22px; }
.step h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; margin-bottom: 14px; }
.step h3 span { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 16px; flex: none; }
.step p { color: var(--muted); font-size: 16px; line-height: 1.45; }
.buy.submit { display: block; text-align: center; padding: 18px; font-size: 17px; }
.extras h4 { color: #777; font-size: 14px; font-weight: 600; margin: 56px 0 8px; }
.extras details { border-bottom: 1px solid #222; }
.extras details:last-of-type { border-bottom: 0; }
.extras summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 18px; }
.extras summary::-webkit-details-marker { display: none; }
.extras summary::after { content: "+"; color: var(--muted); font-size: 24px; line-height: 1; }
.extras details[open] summary::after { content: "−"; }
.extras details p { color: var(--muted); font-size: 15px; line-height: 1.5; padding-bottom: 22px; max-width: 640px; }
.extras details a { color: #fff; text-decoration: underline; }
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.more img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.more b { display: block; font-weight: 500; }
.more span { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Price buttons and cart */
.prices { white-space: nowrap; }
.prices .buy + .buy { margin-left: 6px; }
.buy.in-cart { background: var(--accent); }
.buy.dark { background: #000; color: #fff; width: 100%; padding: 14px; }
#cart-button { position: fixed; right: 24px; top: 64px; z-index: 5; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
#cart-button[hidden] { display: none; }
.cart-title { color: #000; font-size: 20px; margin-bottom: 12px; }
.cart { color: #000; font-size: 14px; margin-bottom: 16px; }
.cart li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.cart li span:first-child { flex: 1; }
.remove { background: none; font-size: 18px; color: #999; }

/* Checkout popup */
#checkout { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 16px; z-index: 10; }
#checkout[hidden] { display: none; }
.checkout-box { position: relative; width: min(560px, 100%); max-height: 100%; overflow-y: auto; background: #fff; border-radius: 16px; padding: 44px 24px 24px; }
.close { position: absolute; top: 8px; right: 12px; background: none; font-size: 24px; color: #000; }

/* Thank-you page (scrolls normally instead of the shop's fixed height) */
body.page { height: auto; min-height: 100vh; }
.thanks a.buy.all { background: var(--accent); margin-bottom: 20px; }
.thanks { max-width: 520px; margin: 10vh auto; padding: 32px; }
.thanks h1 { font-size: 32px; font-weight: 600; margin-bottom: 8px; }
.thanks p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.thanks a.buy { display: block; margin-bottom: 8px; }

/* Small screens: stack the panels */
@media (max-width: 900px) {
  body { height: auto; }
  .layout { grid-template-columns: 1fr; }
  .sidebar .links, .sidebar .profile { display: none; }
  .section-label { margin-bottom: 12px; }
  .feature { min-height: 420px; }
  .pack-head { flex-direction: column; align-items: flex-start; padding-top: 24px; }
}
