/* =============================================
   XCOBAER BEATS • style.css
   Dark & Gold | Bebas Neue + Space Mono + DM Sans
   ============================================= */

:root {
    --bg:        #080808;
    --bg-2:      #0f0f0f;
    --bg-3:      #141414;
    --bg-card:   #111111;
    --border:    rgba(255,255,255,0.07);
    --border-md: rgba(255,255,255,0.12);

    --gold:      #D4A93A;
    --gold-dim:  #b88c28;
    --gold-soft: rgba(212,169,58,0.12);
    --gold-glow: rgba(212,169,58,0.4);

    --white:     #FFFFFF;
    --off-white: #E8E8E8;
    --gray:      #8a8a8a;
    --gray-dim:  #555;

    --green:     #1DB954;
    --red:       #E53E3E;

    --font-display: 'Bebas Neue', Impact, sans-serif;
    --font-mono:    'Space Mono', monospace;
    --font-body:    'DM Sans', system-ui, sans-serif;

    --nav-h:    72px;
    --max-w:    1200px;

    --r-sm:  6px;
    --r-md:  12px;
    --r-lg:  20px;

    --sh-gold: 0 0 40px rgba(212,169,58,0.05);
    --sh-card: 0 8px 40px rgba(0,0,0,0.5);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: auto;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button {  border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }


body:hover .cursor { opacity: 1; }

/* ── Typography ── */
h1, h2 { font-family: var(--font-display); letter-spacing: 0.02em; line-height: 0.95; }
h3, h4, h5 { font-family: var(--font-mono); font-weight: 700; }
em { font-style: normal; color: var(--gold); }
p { color: var(--gray); line-height: 1.7; }

/* ── Section base ── */
.section { padding: 100px 24px; }
.section-container { max-width: var(--max-w); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 72px; }

.eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: var(--white);
    margin-bottom: 16px;
}
.section-sub {
    font-size: 1rem;
    color: var(--gray);
    max-width: 460px;
    margin: 0 auto;
}

/* ── Animations ── */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
@keyframes eqAnim { 0%,100% { height: 8px; } 50% { height: 40px; } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes glowPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 0.8; } }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
    padding: 13px 28px;
    transition: all 0.22s ease;
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-transform: uppercase;

}
.btn-gold {
    background: var(--gold);
    color: var(--bg);
    border: 2px solid var(--gold);
}
.btn-gold:hover {
    background: #e6bc45;
    transform: translateY(-2px);
    box-shadow: var(--sh-gold);
}
.btn-gold-glow {
    background: var(--gold);
    color: var(--bg);
    border: 2px solid var(--gold);
    box-shadow: var(--sh-gold);
}
.btn-gold-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(212,169,58,0.6);
}
.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--border-md);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-outline-license {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--border-md);
    width: 100%;
    justify-content: center;
    margin-top: auto;
}
.btn-outline-license:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 16px 36px; font-size: 0.9rem; }
.w-full { width: 100%; justify-content: center; }

/* ── HEADER ── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(8,8,8,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.header.scrolled { border-bottom-color: var(--border); }

.nav {
    max-width: var(--max-w); margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-h);
    display: flex; align-items: center; gap: 32px;
}

.logo {
    display: flex; align-items: baseline; gap: 4px;
    flex-shrink: 0; margin-right: auto;
}
.logo-x {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold);
    line-height: 1;
}
.logo-rest {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--white);
    line-height: 1;
}
.logo-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    margin-left: 6px;
    align-self: center;
    border: 1px solid var(--gold);
    padding: 2px 6px;
}

.nav-links {
    display: flex; align-items: center; gap: 4px;
}
.nav-link {
    font-family: var(--font-mono); font-size: 0.78rem;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gray);
    padding: 8px 14px;
    border-radius: var(--r-sm);
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.05); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px;
}
.nav-toggle span {
    display: block; height: 2px; background: var(--white);
    border-radius: 2px; transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none; max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}

.btn-cart{

}

.btn-cart i {
  margin-right: 8px;
}


.mobile-nav.open { max-height: 400px; }
.mobile-nav-inner {
    display: flex; flex-direction: column; padding: 16px 24px 24px; gap: 4px;
}
.mobile-nav-link {
    font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700;
    color: var(--gray); padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s; letter-spacing: 0.06em; text-transform: uppercase;
}
.mobile-nav-link:hover { color: var(--white); }
.mobile-cta { margin-top: 12px; text-align: center; }

/* ── TICKER ── */
.ticker-wrap {
    margin-top: var(--nav-h);
    overflow: hidden;
    background: var(--gold);
    padding: 10px 0;
}
.ticker-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bg);
    white-space: nowrap;
}

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: flex-start;     /* ← was missing, was being overridden */
    justify-content: flex-start;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(212,169,58,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,169,58,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-glow {
    position: absolute; border-radius: 50%;
    filter: blur(120px); pointer-events: none;
}
.glow-1 {
    width: 500px; height: 500px;
    background: rgba(212,169,58,0.12);
    top: -100px; left: -100px;
    animation: glowPulse 6s ease-in-out infinite;
}
.glow-2 {
    width: 400px; height: 400px;
    background: rgba(212,169,58,0.08);
    bottom: -80px; right: -80px;
    animation: glowPulse 8s ease-in-out infinite reverse;
}
.hero-noise {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-container {
    position: relative; z-index: 2;
    max-width: var(--max-w); margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 80px;
    flex: 1;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 0.7rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(212,169,58,0.3);
    background: rgba(212,169,58,0.08);
    padding: 8px 16px; border-radius: 100px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease both;
}
.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%; background: var(--gold);
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(4rem, 9vw, 8rem);
    line-height: 0.92;
    margin-bottom: 28px;
}
.title-line { display: block; }
.title-line.line-1 { animation: fadeInUp 0.7s ease 0.1s both; }
.title-line.line-2 { animation: fadeInUp 0.7s ease 0.2s both; }
.title-line.line-3 { animation: fadeInUp 0.7s ease 0.3s both; color: var(--gold); }

.hero-sub {
    font-size: 1.05rem; color: var(--gray);
    line-height: 1.8; margin-bottom: 40px;
    animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-actions {
    display: flex; gap: 14px; flex-wrap: wrap;
    margin-bottom: 56px;
    animation: fadeInUp 0.7s ease 0.5s both;
}

.hero-stats {
    display: flex; align-items: center; gap: 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.7s ease 0.6s both;
}
.hstat { flex: 1; text-align: center; }
.hstat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem; color: var(--gold); line-height: 1;
    margin-bottom: 4px;
}
.hstat span { font-size: 0.75rem; color: var(--gray); letter-spacing: 0.05em; }
.hstat-div { width: 1px; height: 40px; background: var(--border); }

/* ── HERO SEARCH (replaces vinyl layout) ── */


.hero-search-container {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center;
    width: 100%; max-width: 720px;
    margin: 0 auto 16px;  /* centers it and adds space before the grid */
    text-align: center;
    gap: 32px;
}

.hero-search-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 0.92;
    color: var(--white);
    animation: fadeInUp 0.6s ease both;
}

.hero-search-bar {
    position: relative;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-md);
    border-radius: var(--r-lg);
    padding: 20px 24px 16px;
    display: flex; flex-direction: column; gap: 14px;
    animation: fadeInUp 0.7s ease 0.15s both;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.hero-search-bar:focus-within {
    border-color: var(--gold);
    box-shadow: var(--sh-gold);
}

.search-icon {
    position: absolute; top: 22px; left: 24px;
    font-size: 1.2rem; color: var(--gold);
    pointer-events: none;
}

.hero-search-input {
    width: 100%;
    background: transparent;
    border: none; outline: none;
    font-family: var(--font-mono);
    font-size: 1.05rem; font-weight: 700;
    color: var(--white);
    padding-left: 36px;
    letter-spacing: 0.02em;
}
.hero-search-input::placeholder { color: var(--gray-dim); font-weight: 400; }

.hero-search-tags {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom:16px;
    padding-top:16px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.hero-search-tags > * {
    flex-shrink: 0;
}
.hero-search-tags::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}


@media (min-width: 768px) {
    .hero-search-tags {
        justify-content: center;
    }
}


.search-tag {
    font-family: var(--font-mono); font-size: 0.68rem;
    font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gray);
    border: 1px solid var(--border-md);
    padding: 6px 14px; border-radius: 100px;
    transition: all 0.2s;
    background: transparent;
}
.search-tag:hover, .search-tag.active {
    color: var(--gold); border-color: var(--gold);
    background: var(--gold-soft);
}

.hero-search-stats {
    display: flex; align-items: center; gap: 20px;
    font-family: var(--font-mono); font-size: 0.78rem; color: var(--gray);
    animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-search-stats strong { color: var(--gold); }
.stat-div { width: 1px; height: 16px; background: var(--border); }

@media (max-width: 480px) {
    .hero-search-stats { flex-direction: column; gap: 8px; }
    .stat-div { width: 40px; height: 1px; }
    .search-tag {  }
}
.hero-scroll {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.65rem;
    letter-spacing: 0.2em; color: var(--gray);
    z-index: 2;
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: pulse 2s ease-in-out infinite;
}

/* Allow the beats grid to stretch full width inside the hero */
.hero.beats-section {
    align-items: stretch; /* was center, which squashed the grid */
}

/* Give the beats container proper full-width layout */
.hero.beats-section .section-container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* Restore the grid columns */
.beats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
    width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
    .beats-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    .beats-grid {
        grid-template-columns: 1fr;
    }

    .hero.beats-section .section-container {
        padding: 0 16px;
    }
}


/* ── PLAYER BAR ── */

body.player-open {
    padding-bottom: 88px;
}
.player-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--gold);
    border-bottom: none;
    padding: 0 24px;
    transform: translateY(100%);   /* slides up from bottom when active */
    opacity: 0;
    transition: all 0.4s ease;
}
.player-bar.active {
    transform: translateY(0);
    opacity: 1;
}
.player-bar.active { transform: translateY(0); opacity: 1; }

.player-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; align-items: center; gap: 24px;
    height: 68px;
}

.player-info { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.player-thumb {
    width: 42px; height: 42px;
    border-radius: 6px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--gold); flex-shrink: 0;
    overflow: hidden;
}
.player-title {
    font-family: var(--font-mono); font-size: 0.78rem;
    font-weight: 700; color: var(--white);
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-artist { font-size: 0.7rem; color: var(--gold); display: block; }

.player-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ctrl-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray);
    font-size: 1rem;
    transition: all 0.2s;

}
.ctrl-btn:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.ctrl-play {
    width: 44px; height: 44px;
    background: var(--gold) !important;
    color: var(--bg) !important;
    font-size: 1.1rem;
}
.ctrl-play:hover { background: #e6bc45 !important; box-shadow: var(--sh-gold); }
.ctrl-buy {
    background: var(--gold-soft) !important;
    color: var(--gold) !important;
    border: 1px solid rgba(212,169,58,0.3) !important;
    border-radius: var(--r-sm) !important;
    width: auto !important; height: auto !important;
    padding: 0 14px !important;
    font-family: var(--font-mono) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    gap: 6px !important;
}
.ctrl-buy:hover { background: var(--gold) !important; color: var(--bg) !important; }

.player-progress-wrap {
    flex: 1; display: flex; align-items: center; gap: 10px;
}
.player-time { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gray); flex-shrink: 0; }
.player-progress {
    flex: 1; height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;  position: relative;
}
.player-progress-fill {
    height: 100%; background: var(--gold);
    border-radius: 2px; width: 0%;
    transition: width 0.3s linear;
}
.player-bpm {
    font-family: var(--font-mono); font-size: 0.7rem;
    color: var(--gray); white-space: nowrap; flex-shrink: 0;
}
.player-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ── BEATS SECTION ── */
.beats-section { background: var(--bg-2); }

.beat-filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 48px; justify-content: center;
}
.filter-btn {
    font-family: var(--font-mono); font-size: 0.72rem;
    font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gray);
    border: 1px solid var(--border-md);
    padding: 8px 18px;
    border-radius: 100px;
    transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
    color: var(--gold); border-color: var(--gold);
    background: var(--gold-soft);
}

.beats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

/* Beat Card */
.beat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.beat-card:hover {
    border-color: rgba(212,169,58,0.3);
    transform: translateY(-4px);
    box-shadow: var(--sh-card), 0 0 30px rgba(212,169,58,0.08);
}
.beat-card.playing { border-color: var(--gold); }
.beat-card.playing .beat-play-btn { background: var(--gold); color: var(--bg); }

.beat-thumb {
    position: relative;
    height: 140px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.beat-thumb-bg {
    position: absolute; inset: 0;
    background: var(--bg-3);
}
.beat-thumb-pattern {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding: 20px;
    overflow: hidden;
}
.wave-bar {
    width: 4px;
    background: rgba(212,169,58,0.25);
    border-radius: 2px;
    transition: height 0.1s;
}
.beat-card.playing .wave-bar { background: rgba(212,169,58,0.6); }

.beat-play-btn {
    position: relative; z-index: 2;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--white);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}
.beat-play-btn:hover { transform: scale(1.1); background: var(--gold); color: var(--bg); border-color: var(--gold); }

.beat-exclusive-tag {
    position: absolute; top: 10px; right: 10px;
    font-family: var(--font-mono); font-size: 0.6rem;
    font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--bg);
    background: var(--gold);
    padding: 4px 8px; border-radius: 4px;
}

.beat-body { padding: 18px; }
.beat-name {
    font-family: var(--font-mono); font-size: 0.92rem;
    font-weight: 700; color: var(--white);
    margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.beat-meta {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}
.beat-bpm, .beat-genre, .beat-key {
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--gray); letter-spacing: 0.06em;
}
.beat-dot { color: var(--border-md); }

.beat-pricing {
    display: flex; align-items: center; justify-content: space-between;
}
.beat-price {
    font-family: var(--font-display);
    font-size: 1.6rem; color: var(--gold);
}
.beat-price-label { font-size: 0.68rem; color: var(--gray); display: block; }
.beat-buy-btn {
    font-family: var(--font-mono); font-size: 0.7rem;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(212,169,58,0.4);
    padding: 9px 16px;
    background: var(--gold-soft);
    transition: all 0.2s;
}
.beat-buy-btn:hover { background: var(--gold); color: var(--bg); }

.beats-load-more { text-align: center; }

/* ── LICENSING ── */
.licensing-section { background: var(--bg); }

.license-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.license-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 24px;
    display: flex; flex-direction: column;
    gap: 16px;
    transition: border-color 0.3s, transform 0.3s;
}
.license-card:hover { border-color: rgba(212,169,58,0.3); transform: translateY(-6px); }

.license-card--featured {
    border-color: var(--gold);
    background: linear-gradient(145deg, #0f0f0f, #141410);
    box-shadow: var(--sh-gold);
}
.license-card--exclusive {
    border-color: rgba(212,169,58,0.5);
    background: linear-gradient(145deg, #0d0c09, #111108);
}

.license-popular {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    background: var(--gold); color: var(--bg);
    padding: 5px 12px; border-radius: 100px;
    white-space: nowrap;
}

.license-top { display: flex; align-items: center; justify-content: space-between; }
.license-icon {
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    background: var(--gold-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--gold);
}

.license-badge {
    font-family: var(--font-mono); font-size: 0.6rem;
    font-weight: 700; letter-spacing: 0.1em;
    padding: 4px 8px; border-radius: 4px;
}
.basic-badge { background: rgba(138,138,138,0.15); color: var(--gray); }
.premium-badge { background: rgba(212,169,58,0.15); color: var(--gold); border: 1px solid rgba(212,169,58,0.3); }
.trackout-badge { background: rgba(29,185,84,0.12); color: var(--green); }
.exclusive-badge { background: var(--gold); color: var(--bg); }

.license-price {
    display: flex; align-items: baseline; gap: 4px;
}
.price-from { font-size: 0.75rem; color: var(--gray); }
.price-val { font-family: var(--font-display); font-size: 3rem; color: var(--white); line-height: 1; }
.license-card--featured .price-val,
.license-card--exclusive .price-val { color: var(--gold); }

.license-name { font-size: 1rem; color: var(--white); }
.license-desc { font-size: 0.82rem; color: var(--gray); line-height: 1.6; }

.license-features {
    display: flex; flex-direction: column; gap: 10px;
    flex: 1;
}
.license-features li {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; color: var(--off-white);
}
.license-features li i { font-size: 0.9rem; color: var(--green); flex-shrink: 0; }
.license-features li.no { color: var(--gray-dim); }
.license-features li.no i { color: var(--gray-dim); }

.license-card .btn { margin-top: auto; }
.license-card--featured .btn-gold,
.license-card--exclusive .btn-gold-glow { width: 100%; justify-content: center; }

.license-note {
    margin-top: 40px; text-align: center;
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--gray); letter-spacing: 0.04em;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.license-note i { color: var(--gold); }

/* ── ABOUT ── */
.about-section { background: var(--bg-2); }

.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}

.about-img-wrap { position: relative; }
.about-img-placeholder {
    width: 100%; aspect-ratio: 4/5;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 24px; overflow: hidden;
    position: relative;
}
.about-img-placeholder::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(212,169,58,0.05), transparent 60%);
}

.about-eq {
    display: flex; align-items: flex-end; gap: 4px; height: 50px;
}
.eq-bar {
    width: 6px; height: 8px;
    background: var(--gold); border-radius: 3px;
    animation: eqAnim 0.8s ease-in-out infinite;
}
.eq-bar:nth-child(2) { animation-delay: 0.1s; }
.eq-bar:nth-child(3) { animation-delay: 0.2s; }
.eq-bar:nth-child(4) { animation-delay: 0.05s; }
.eq-bar:nth-child(5) { animation-delay: 0.15s; }
.eq-bar:nth-child(6) { animation-delay: 0.25s; }
.eq-bar:nth-child(7) { animation-delay: 0.08s; }
.eq-bar:nth-child(8) { animation-delay: 0.18s; }

.about-img-label {
    font-family: var(--font-display);
    font-size: 1.8rem; text-align: center;
    color: rgba(255,255,255,0.2); line-height: 1.2;
    letter-spacing: 0.05em;
}

.about-accent-box {
    position: absolute; bottom: -20px; right: -20px;
    width: 120px; height: 120px;
    border: 2px solid var(--gold);
    border-radius: var(--r-md);
    z-index: -1; opacity: 0.3;
}

.about-content .eyebrow { text-align: left; }
.about-content .section-title { text-align: left; font-size: clamp(2.5rem, 4vw, 4.5rem); margin-bottom: 24px; }
.about-body { font-size: 0.95rem; margin-bottom: 16px; line-height: 1.8; }

.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.atag {
    font-family: var(--font-mono); font-size: 0.68rem;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(212,169,58,0.3);
    padding: 6px 12px; border-radius: 100px;
    background: var(--gold-soft);
}

.about-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── HOW IT WORKS ── */
.how-section { background: var(--bg); }

.how-steps {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 16px; flex-wrap: wrap;
}
.how-step {
    flex: 1; min-width: 180px; max-width: 220px;
    text-align: center; padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color 0.3s, transform 0.3s;
}
.how-step:hover { border-color: rgba(212,169,58,0.3); transform: translateY(-4px); }

.step-num {
    font-family: var(--font-display);
    font-size: 3rem; color: rgba(212,169,58,0.15);
    line-height: 1; margin-bottom: 8px;
}
.step-icon {
    width: 52px; height: 52px;
    background: var(--gold-soft);
    border: 1px solid rgba(212,169,58,0.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--gold);
    margin: 0 auto 16px;
}
.how-step h4 { font-size: 0.88rem; color: var(--white); margin-bottom: 10px; }
.how-step p { font-size: 0.8rem; color: var(--gray); line-height: 1.7; }

.how-arrow {
    font-size: 1.4rem; color: var(--border-md);
    margin-top: 60px; flex-shrink: 0;
}

/* ── TESTIMONIALS ── */
.testi-section { background: var(--bg-2); }

.testi-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 26px;
    transition: border-color 0.3s, transform 0.3s;
}
.testi-card:hover { border-color: rgba(212,169,58,0.25); transform: translateY(-4px); }

.testi-stars { font-size: 0.9rem; color: var(--gold); margin-bottom: 16px; letter-spacing: 3px; }
.testi-quote {
    font-family: 'Space Mono', monospace; font-style: italic;
    font-size: 0.9rem; color: var(--off-white);
    line-height: 1.75; margin-bottom: 24px;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-av {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gold-soft); border: 1px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--gold);
    flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 0.85rem; color: var(--white); margin-bottom: 2px; }
.testi-author span { font-size: 0.75rem; color: var(--gray); }

/* ── CONTACT ── */
.contact-section { background: var(--bg); }

.contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 80px; align-items: start;
}
.contact-left .eyebrow { text-align: left; }
.contact-left .section-title { text-align: left; font-size: clamp(2.5rem, 4vw, 4.5rem); margin-bottom: 20px; }
.contact-body { font-size: 0.95rem; margin-bottom: 36px; }

.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color 0.2s, transform 0.2s;
}
.contact-item:hover { border-color: rgba(212,169,58,0.3); transform: translateX(4px); }
.ci-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gold-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--gold); flex-shrink: 0;
}
.ci-label { font-size: 0.68rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; display: block; }
.ci-val { font-family: var(--font-mono); font-size: 0.88rem; color: var(--white); display: block; margin-top: 2px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-family: var(--font-mono); font-size: 0.7rem;
    font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gray);
}
.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body); font-size: 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border-md);
    border-radius: var(--r-sm);
    color: var(--white);
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-dim); }
.form-group select option { background: var(--bg-3); }

/* ── MODAL ── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
    background: var(--bg-2);
    border: 1px solid var(--border-md);
    border-radius: var(--r-lg);
    padding: 36px;
    max-width: 540px; width: 100%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--gray);
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.modal-beat-info {
    display: flex; align-items: center; gap: 14px;
    padding-bottom: 20px; margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.modal-beat-thumb {
    width: 52px; height: 52px; border-radius: var(--r-sm);
    background: var(--bg-3); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--gold); flex-shrink: 0;
}
.modal-beat-name { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--white); }
.modal-beat-meta { font-size: 0.78rem; color: var(--gray); margin-top: 4px; }

.modal-title {
    font-family: var(--font-mono); font-size: 0.72rem;
    font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 16px;
}

.modal-licenses { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.modal-license-opt {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
     transition: all 0.2s;
}
.modal-license-opt:hover { border-color: rgba(212,169,58,0.4); }
.modal-license-opt.selected {
    border-color: var(--gold);
    background: var(--gold-soft);
}
.ml-left { display: flex; align-items: center; gap: 12px; }
.ml-icon { font-size: 1.1rem; color: var(--gold); }
.ml-name { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; color: var(--white); display: block; }
.ml-desc { font-size: 0.72rem; color: var(--gray); display: block; margin-top: 2px; }
.ml-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); }

.paypal-label {
    font-family: var(--font-mono); font-size: 0.7rem;
    color: var(--gray); text-align: center;
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}
.paypal-note {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 0.75rem; color: var(--gray); margin-top: 12px;
}
.paypal-note i { color: var(--green); }

/* ── FOOTER ── */
.footer { background: var(--bg); border-top: 1px solid var(--border); }
.footer-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, #b88c28 50%, var(--gold) 100%);
}
.footer-container { max-width: var(--max-w); margin: 0 auto; padding: 64px 24px 32px; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo .logo-x { font-size: 2rem; }
.footer-logo .logo-rest { font-size: 2rem; }
.footer-tagline { font-size: 0.85rem; color: var(--gray); line-height: 1.7; }

.footer-socials { display: flex; gap: 8px; }
.fsoc {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--gray);
    transition: all 0.2s;
}
.fsoc:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); transform: translateY(-2px); }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 {
    font-family: var(--font-mono); font-size: 0.68rem;
    font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    padding-bottom: 12px; margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.footer-col a {
    font-size: 0.85rem; color: var(--gray-dim);
    transition: color 0.2s, padding-left 0.2s;
}
.footer-col a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.2); }
.footer-legal { font-size: 0.72rem; color: rgba(255,255,255,0.15); text-align: right; max-width: 400px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .license-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; gap: 48px; }
    .vinyl { width: 240px; height: 240px; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .testi-grid { grid-template-columns: 1fr; }
    .how-steps { flex-direction: column; align-items: center; }
    .how-arrow { transform: rotate(90deg); margin: 0; }
    .float-tag { display: none; }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .mobile-nav { display: block; }
    .btn-cart { display: block; }

    .section { padding: 72px 20px; }
    .hero { padding: 60px 20px 80px; }
    .hero-title { font-size: clamp(3.5rem, 13vw, 5.5rem); }
    .hero-stats { flex-direction: column; gap: 16px; }
    .hstat-div { width: 60px; height: 1px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }
    .license-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .player-progress-wrap { display: none; }
    .player-bpm { display: none; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { text-align: center; }
    .beats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    body { cursor: auto; }
    .cursor, .cursor-follower { display: none; }
    button {  }
    .btn {  }
    .filter-btn {  }
    .testi-grid { grid-template-columns: 1fr; }
    .testi-grid .testi-card:last-child { display: flex; }
}

/* =============================================
   XCOBAER BEATS • mobile-overflow-fix.css
   Paste this at the very bottom of style.css
   ============================================= */

/* ── 1. Lock html + body to viewport width ── */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ── 2. Ticker: contain the marquee track ── */
.ticker-wrap {
    max-width: 100vw;
    overflow: hidden;
}

/* ── 3. Hero section: prevent bleed ── */
.hero {
    max-width: 100vw;
    overflow: hidden;
}

/* ── 4. Float tags: hide on all mobile sizes (they use negative offsets) ── */
@media (max-width: 1024px) {
    .float-tag {
        display: none;
    }
}

/* ── 5. Hero container: single column earlier + no bleed ── */
@media (max-width: 960px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
    }
}

/* ── 6. Hero visual: constrain vinyl size on small screens ── */
@media (max-width: 480px) {
    .vinyl {
        width: 200px;
        height: 200px;
    }
    .vinyl-ring.r3 {
        width: 190px;
        height: 190px;
    }
    .vinyl-ring.r2 {
        width: 160px;
        height: 160px;
    }
    .vinyl-ring.r1 {
        width: 110px;
        height: 110px;
    }
}

/* ── 7. About accent box: clip it inside its parent ── */
.about-img-wrap {
    overflow: hidden;
    padding-bottom: 24px;
    padding-right: 24px;
}
.about-accent-box {
    right: 0;
    bottom: 0;
}

/* ── 8. Player bar: wrap on tiny screens ── */
@media (max-width: 480px) {
    .player-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
        gap: 12px;
    }
    .player-info {
        min-width: unset;
        flex: 1;
    }
    .player-right {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ── 9. Beats grid: single col with no overflow ── */
@media (max-width: 480px) {
    .beats-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    .beat-card {
        width: 100%;
        max-width: 100%;
    }
}

/* ── 10. License grid: full-width cards with safe padding ── */
@media (max-width: 480px) {
    .license-card {
        padding: 24px 16px;
    }
}

/* ── 11. Section containers: safe horizontal padding ── */
@media (max-width: 480px) {
    .section {
        padding: 60px 16px;
    }
    .section-container {
        width: 100%;
        padding: 0;
    }
}

/* ── 12. Contact form: full-width inputs ── */
@media (max-width: 480px) {
    .contact-form,
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ── 13. Footer: prevent any col overflow ── */
@media (max-width: 480px) {
    .footer-container {
        padding: 40px 16px 24px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ── 14. Global safety net: no element exceeds viewport ── */
* {
    max-width: 100%;
}
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

.nav-cta {
  font-family: 'Inter', sans-serif;
}

.add-cart-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 16px;
  border: 1px solid rgba(212,169,58,0.4);

  color: #fff;

  cursor: pointer;
  transition: all 0.25s ease;
}



.acb-left {
  display: flex;
  align-items: center;
  gap: 10px;

  font-weight: 600;
  font-size: 0.9rem;
}

.acb-left i {
  font-size: 0.9rem;
}

.acb-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.acb-license {
  font-size: 0.65rem;
  color: #aaa;
}

.acb-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #D4A93A;
}

.cart-overlay {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

/* ── Drawer panel ── */
.cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 160;
    width: 420px; max-width: 100vw;
    background: #0c0c0c;
    border-left: 1px solid var(--border-md);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.32,0.72,0,1);
    overflow: hidden;
}
.cart-drawer.open { transform: translateX(0); }

/* ── Cart Header ── */
.cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-header-left { display: flex; flex-direction: column; gap: 4px; }
.cart-eyebrow {
    font-family: var(--font-display);
    font-size: 1.5rem; color: var(--white);
    letter-spacing: 0.04em; line-height: 1;
}
.cart-count-label {
    font-family: var(--font-mono);
    font-size: 0.68rem; color: var(--gold);
    letter-spacing: 0.1em; text-transform: uppercase;
}
.cart-close {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--gray); font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; cursor: pointer;
}
.cart-close:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--border-md); }

/* ── Empty state ── */
.cart-empty {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 32px; text-align: center; gap: 12px;
}
.cart-empty-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--gold-soft);
    border: 1px solid rgba(212,169,58,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--gold);
    margin-bottom: 8px;
}
.cart-empty-title {
    font-family: var(--font-mono); font-size: 1rem;
    font-weight: 700; color: var(--white);
}
.cart-empty-sub {
    font-size: 0.82rem; color: var(--gray);
    line-height: 1.6; max-width: 240px;
    margin-bottom: 8px;
}

/* ── Item list ── */
.cart-items-wrap {
    flex: 1; overflow-y: auto;
    padding: 16px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.cart-items-wrap::-webkit-scrollbar { width: 4px; }
.cart-items-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.cart-items-list { display: flex; flex-direction: column; gap: 0; }

.cart-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    animation: fadeInUp 0.3s ease both;
}
.cart-item:hover { background: rgba(255,255,255,0.02); }

.cart-item-icon {
    width: 44px; height: 44px; border-radius: 8px;
    background: var(--gold-soft);
    border: 1px solid rgba(212,169,58,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--gold);
    flex-shrink: 0;
}

.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name {
    font-family: var(--font-mono); font-size: 0.82rem;
    font-weight: 700; color: var(--white);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: block; margin-bottom: 6px;
}

/* License selector inside cart item */
.cart-item-license-select {
    font-family: var(--font-mono); font-size: 0.68rem;
    font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    background: var(--bg-3);
    color: var(--gold);
    border: 1px solid rgba(212,169,58,0.25);
    border-radius: 6px;
    padding: 5px 10px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23D4A93A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}
.cart-item-license-select:focus { border-color: var(--gold); }
.cart-item-license-select option { background: #111; color: var(--white); }

.cart-item-right {
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 10px;
    flex-shrink: 0;
}
.cart-item-price {
    font-family: var(--font-display);
    font-size: 1.4rem; color: var(--gold); line-height: 1;
}
.cart-item-remove {
    width: 28px; height: 28px;
    background: rgba(229,62,62,0.08);
    border: 1px solid rgba(229,62,62,0.2);
    color: #E53E3E; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; cursor: pointer;
}
.cart-item-remove:hover { background: rgba(229,62,62,0.2); border-color: #E53E3E; }

/* ── Cart footer ── */
.cart-footer {
    flex-shrink: 0;
    padding: 20px 24px 28px;
    border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 16px;
    background: #0c0c0c;
}

.cart-summary { display: flex; flex-direction: column; gap: 8px; }
.cart-summary-row {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-mono); font-size: 0.78rem; color: var(--gray);
}
.cart-summary-total {
    font-size: 1rem; color: var(--white);
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.cart-summary-total span:last-child {
    font-family: var(--font-display); font-size: 1.6rem; color: var(--gold);
}

.cart-checkout-label {
    font-family: var(--font-mono); font-size: 0.68rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gray); text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.cart-checkout-label i { color: var(--green); }

#cartPaypalContainer { min-height: 48px; }

/* Fallback checkout button (when PayPal SDK not loaded) */
.cart-checkout-fallback {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--gold);
    color: var(--bg);
    font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 14px 24px; border-radius: var(--r-sm);
    width: 100%; cursor: pointer;
    transition: all 0.22s;
    border: none;
}
.cart-checkout-fallback:hover {
    background: #e6bc45;
    box-shadow: 0 0 40px rgba(212,169,58,0.4);
    transform: translateY(-1px);
}

.cart-clear-btn {
    font-family: var(--font-mono); font-size: 0.68rem;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gray-dim); background: none; border: none;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 4px;
    transition: color 0.2s; cursor: pointer;
}
.cart-clear-btn:hover { color: #E53E3E; }

/* ── Beat card action buttons ── */
.beat-card-actions {
    display: flex; align-items: center; gap: 8px;
}
.beat-add-btn {
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    background: var(--gold-soft);
    border: 1px solid rgba(212,169,58,0.3);
    color: var(--gold); font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; cursor: pointer; flex-shrink: 0;
}
.beat-add-btn:hover { background: var(--gold); color: var(--bg); }
.beat-add-btn.added {
    background: var(--gold); color: var(--bg);
    animation: bump 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes bump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* ── Modal: Add to Cart button ── */
.modal-add-cart-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-mono); font-size: 0.8rem;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 13px 24px;
    border-radius: var(--r-sm);
    transition: all 0.22s; cursor: pointer;
    margin-bottom: 12px;
}
.modal-add-cart-btn:hover { background: var(--gold-soft); }

/* ── Responsive ── */
@media (max-width: 480px) {
    .cart-drawer { width: 100vw; border-left: none; }
    .cart-item   { padding: 14px 16px; }
    .cart-footer { padding: 16px 16px 24px; }
    .cart-header { padding: 20px 16px 16px; }
}