html {
    height: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid rgba(108, 17, 255, 0.8);
    outline-offset: 2px;
}
/* Fixed bottom glow to guarantee zero gap on all environments */
#footer-edge-glow {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: transparent; /* hide the actual line, keep only glow */
    box-shadow: 0 0 20px var(--shadow-heavy),
                0 -2px 30px var(--shadow-heavy),
                0 -4px 50px rgba(108, 17, 255, 0.3),
                0 -8px 80px rgba(108, 17, 255, 0.2);
    z-index: 9999;
    pointer-events: none;
}
/* ============== RESET AND VARIABLES ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6c11ff;
    --secondary-color: #00e9a7;
    --accent-color: #ff3e90;
    --bg-dark: #0a0b0f;
    --bg-darker: #070810;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b8b9c1;
    --text-muted: #6b7280;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-light: rgba(108, 17, 255, 0.1);
    --shadow-medium: rgba(108, 17, 255, 0.2);
    --shadow-heavy: rgba(108, 17, 255, 0.3);
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Oxanium', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0; /* remove default bottom gap around the page */
    min-height: 100vh; /* enable sticky footer */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============== HEADER & NAVIGATION ============== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(10, 11, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 20px var(--shadow-medium);
    /* Keep consistent header height */
    height: 88px;
    max-height: 88px;
    overflow: hidden;
}

/* ensure header title doesn't get clipped by container */
header .logo { overflow: visible; }

/* Make header logo link clickable without underline and with inherited color */
.logo a { text-decoration: none; color: inherit; }
.logo a:hover, .logo a:focus { text-decoration: none; color: inherit; }

/* Keep logo pinned left and prevent flex resizing */
.logo { flex: 0 0 auto; }

/* Ensure header content renders above the particles canvas */
.logo, nav, .cart-icon, .mobile-nav-toggle { position: relative; z-index: 2; }

.mobile-nav-toggle {
    position: relative;
    z-index: 10;
}

/* Enhanced logo with matrix glow effect */
.logo h1 {
    font-size: 3rem;
    font-family: 'Yellowtail', 'Oxanium', sans-serif;
    padding-right: 4px; /* avoid right-edge glyph clipping (e.g., end of 'k') */
    background: linear-gradient(90deg, 
        var(--primary-color), 
        #b723ff, 
        var(--secondary-color), 
        #ff3e90, 
        var(--primary-color)
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0;
    font-weight: 700;
    position: relative;
    animation: gradientFlow 8s ease infinite;
    filter: drop-shadow(0 0 10px rgba(108, 17, 255, 0.5));
    line-height: 1;
    top: -2px;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Canvas performance optimizations */
.header-particles-canvas {
    will-change: opacity, transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.45; /* slightly more transparent */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-particles-canvas {
        opacity: 0.6; /* Reduce particle intensity on mobile but keep visible */
    }
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    /* Ensure links don't wrap and increase header height on initial render */
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Center nav in header regardless of left/right content widths (desktop) */
nav {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: center;
}

.cart-icon a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    text-decoration: none;
    border: none;
    outline: none;
    box-shadow: none;
}

/* Default state (empty cart) */
.cart-icon a:hover {
    color: #ff3e90;
    transform: scale(1.1);
}

/* Cart has items */
.cart-icon.has-items a {
    animation: none;
}

.cart-icon.has-items a:hover {
    color: #ff3e90;
    transform: scale(1.1);
}

.cart-icon.has-items a::after { content: none; }

@keyframes cartPulse {}

/* Cart Counter */
.cart-counter {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #ff3e90; /* solid */
    color: transparent; /* no text inside */
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: block;
    border: 2px solid #0a0b0f; /* avoids white seam */
    animation: none;
}

@keyframes counterPulse {}

.cart-icon {
    position: relative;
    margin-left: 2rem;
    z-index: 10;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1.15rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 25px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

nav a:hover::before,
nav a.active::before {
    opacity: 1;
}

nav a:hover,
nav a.active {
    color: white;
    transform: translateY(-2px);
}

header.scrolled {
    background: rgba(10, 11, 15, 0.98);
    box-shadow: 0 2px 20px var(--shadow-medium);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav-toggle:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* ============== HERO SECTION ============== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-darker);
    /* Override section constraints for full-width hero */
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100vw;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 11, 15, 0.6) 0%, 
        rgba(108, 17, 255, 0.1) 50%, 
        rgba(10, 11, 15, 0.6) 100%
    );
    z-index: 2;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    padding: 6rem 2rem; /* Restore padding for content since hero has padding: 0 */
}

/* Nudge hero content up on home to move logo higher without changing logo/tagline spacing */
#home .hero-content {
    padding-top: 0rem !important; /* lock placement */
}

/* Hero logo — rendered as background-image so it cannot be dragged */
.hero-logo {
    display: block;
    max-width: 820px;
    width: 90%;
    aspect-ratio: 1 / 1;
    margin: 0 auto 0.6rem;
    margin-top: -7rem !important; /* lock placement */
    margin-bottom: -10px;
    background: url('/images/placeholder/dmack-logo.png') center / contain no-repeat;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimizeQuality;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Position tagline below the logo on the hero */
#home .hero-content p {
    margin-top: -20px !important; /* lock placement */
    margin-bottom: 3.5rem;
}



.hero-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
}

/* ============== BUTTONS ============== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Oxanium', sans-serif;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(108, 17, 255, 0.3);
}

/* Slightly larger hero CTA text and icon */
/* Slightly larger hero CTA text and icon without changing height */
#home .cta-button {
    padding-top: 1.05rem;
    padding-bottom: 1.05rem;
    margin-top: 9px !important; /* lock placement */
}
#home .cta-button span { font-size: 1.3rem; position: relative; top: 2px; }
#home .cta-button i { font-size: 1.35rem; }

/* Slightly larger About section CTA */
.about-section .cta-button {
    padding-top: calc(1.2rem + 1px);
    padding-left: calc(3.5rem + 1px);
}
.about-section .cta-button span { font-size: 1.2rem; }
.about-section .cta-button i { font-size: 1.25rem; }

/* Slightly larger Send Message CTA in contact section */
.get-in-touch-section .contact-form .cta-button span { font-size: 1.2rem; }
.get-in-touch-section .contact-form .cta-button i { font-size: 1.25rem; }

/* Slightly larger footer Subscribe button text */
#newsletter-form button { font-size: 1.05rem; }

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(108, 17, 255, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ============== SECTIONS ============== */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subheading {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ============== ABOUT SECTION ============== */
.about-section {
    background: radial-gradient(ellipse at center, 
        rgba(176, 66, 255, 0.15) 0%, 
        rgba(65, 105, 255, 0.10) 35%, 
        rgba(100, 200, 255, 0.08) 65%,
        transparent 70%
    );
    /* Override section constraints for full-width */
    max-width: none;
    margin: 0;
    padding: 6rem 2rem;
    width: 100vw;
    text-align: center;
}

.about-section .section-heading {
    margin-bottom: 3rem;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 5px;
    margin: 0 auto;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 10s linear infinite;
    z-index: -1;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:first-child {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 600;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============== BEATS SECTIONS ============== */
.beats-section {
    position: relative;
    overflow: hidden;
    /* Override section constraints for full-width beats sections */
    max-width: none;
    margin: 0;
    padding: 6rem 2rem;
    width: 100vw;
}

.free-beats-section {
    background: radial-gradient(ellipse at center, rgba(0, 233, 167, 0.15) 0%, transparent 70%);
}

.premium-beats-section {
    background: radial-gradient(ellipse at center, rgba(255, 62, 144, 0.15) 0%, transparent 70%);
}

/* Sound Kits and Plugins sections with cyan oval backgrounds */
#sound-kits.section {
    background: radial-gradient(ellipse at center, rgba(0, 120, 180, 0.15) 0%, transparent 70%);
    /* Override section constraints for full-width */
    max-width: none;
    margin: 0;
    padding: 6rem 2rem;
    width: 100vw;
}

/* Specific gradient colors for Free Beats and Premium Beats section headers */
.free-beats-section .section-heading h2 {
    font-family: 'League Script', cursive;
    font-size: 6.5rem;
    font-weight: 600;
    color: #00ff9a;
    --neon-color: #00ff9a;
    text-align: center;
    text-shadow:
        0 0 2px #00ff9a,
        0 0 5px #00ff9a,
        0 0 10px #00ff9a,
        0 0 15px #00ff9a;
    animation: flickerGlow 3s infinite;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

/* Keep the underline steady - no flicker */
.free-beats-section .section-heading h2::after {
    animation: flickerBoxShadow 3s infinite !important;
    opacity: 1 !important;
    bottom: 12px !important; /* Move underline up just a tiny bit more */
    background: #00ff9a !important;
}

@keyframes flickerBoxShadow {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        box-shadow:
            0 0 2px #00ff9a,
            0 0 5px #00ff9a,
            0 0 10px #00ff9a,
            0 0 15px #00ff9a;
    }
    20%, 24%, 55% {
        box-shadow:
            0 0 1px #00ff9a,
            0 0 2px #00ff9a,
            0 0 3px #00ff9a,
            0 0 5px #00ff9a;
    }
}

@keyframes flickerGlow {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 2px #00ff9a,
            0 0 5px #00ff9a,
            0 0 10px #00ff9a,
            0 0 15px #00ff9a;
    }
    20%, 24%, 55% {
        text-shadow:
            0 0 1px #00ff9a,
            0 0 2px #00ff9a,
            0 0 3px #00ff9a,
            0 0 5px #00ff9a;
    }
}

.premium-beats-section .section-heading h2 {
    font-family: 'League Script', cursive;
    font-size: 6.5rem;
    font-weight: 600;
    color: #ff2ebf;
    --neon-color: #ff2ebf;
    text-align: center;
    text-shadow:
        0 0 2px #ff2ebf,
        0 0 5px #ff2ebf,
        0 0 10px #ff2ebf,
        0 0 15px #ff2ebf;
    animation: flickerGlowPink 3s infinite;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

/* Premium Beats underline with same positioning and flicker */
.premium-beats-section .section-heading h2::after {
    animation: flickerBoxShadowPink 3s infinite !important;
    opacity: 1 !important;
    bottom: 12px !important; /* Same positioning as Free Beats */
    background: #ff2ebf !important;
}

@keyframes flickerBoxShadowPink {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        box-shadow:
            0 0 2px #ff2ebf,
            0 0 5px #ff2ebf,
            0 0 10px #ff2ebf,
            0 0 15px #ff2ebf;
    }
    20%, 24%, 55% {
        box-shadow:
            0 0 1px #ff2ebf,
            0 0 2px #ff2ebf,
            0 0 3px #ff2ebf,
            0 0 5px #ff2ebf;
    }
}

@keyframes flickerGlowPink {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 2px #ff2ebf,
            0 0 5px #ff2ebf,
            0 0 10px #ff2ebf,
            0 0 15px #ff2ebf;
    }
    20%, 24%, 55% {
        text-shadow:
            0 0 1px #ff2ebf,
            0 0 2px #ff2ebf,
            0 0 3px #ff2ebf,
            0 0 5px #ff2ebf;
    }
}

/* Container for content within beats sections to maintain max-width */
.beats-section .section-heading,
.beats-section .beats-filter-and-search,
.beats-section .beats-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Container for content within Sound Kits section */
#sound-kits .section-heading,
#sound-kits .sound-kits-placeholder {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Container for content within About and Get in Touch sections */
.about-section .section-heading,
.about-section .about-image,
.about-section .about-content,
.get-in-touch-section .section-heading,
.get-in-touch-section .get-in-touch-content,
.get-in-touch-section .social-section-part {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.free-beats-canvas-bg,
.premium-beats-canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.beats-filter-and-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.beat-waveform {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0 1rem;
    margin-left: calc(var(--beat-card-horizontal-pad, 1rem) * -1);
    margin-right: calc(var(--beat-card-horizontal-pad, 1rem) * -1);
    width: calc(100% + (var(--beat-card-horizontal-pad, 1rem) * 2));
}

/* Collapsed beat card (compact horizontal view) */
.beat-card.collapsed .beat-waveform { display: none; }
.beat-card.collapsed .beat-actions { display: none; }
.beat-card .beat-expand-row { display: none; }
.beat-card .card-vol-wrap { display: none; }
.beat-card.collapsed .card-vol-wrap { display: flex; }
.beat-card.collapsed .beat-expand-row {
    display: flex;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
}
.beat-card.collapsed .beat-expand-row .license-btn {
    padding: 0.45rem 1rem;
    padding-top: calc(0.45rem + 1px);
    padding-left: calc(1rem + 1px);
    font-size: 0.82rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.beat-waveform .waveform { overflow: hidden; scrollbar-width: none; }
.beat-waveform .waveform::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
/* Hide WaveSurfer internal scrollbar if present */
.beat-waveform .waveform .wavesurfer-container,
.beat-waveform .waveform .wavesurfer-wrapper,
.beat-waveform .waveform .wavesurfer,
.beat-waveform .waveform > div {
    scrollbar-width: none !important;
}
.beat-waveform .waveform .wavesurfer-container::-webkit-scrollbar,
.beat-waveform .waveform .wavesurfer-wrapper::-webkit-scrollbar,
.beat-waveform .waveform .wavesurfer::-webkit-scrollbar,
.beat-waveform .waveform > div::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

.beat-waveform .waveform {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.beat-waveform .wave-visual { display: none; }

.tags-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tags-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.tags-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.tags-buttons .tags-dynamic { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; }
.tags-buttons .extra-tag { display: none; }
.tags-buttons.expanded .extra-tag { display: inline-block; }

.tag-label {
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.beats-filter {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1 1 auto;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    font-family: 'Oxanium', sans-serif;
}

.filter-btn:hover:not(.active) {
    background: linear-gradient(135deg, rgba(108, 17, 255, 0.25), rgba(255, 62, 144, 0.25));
    border-color: rgba(108, 17, 255, 0.4);
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 17, 255, 0.15);
}
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 17, 255, 0.3);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    z-index: 2;
}

.search-input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Oxanium', sans-serif;
    width: 300px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 17, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.beats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.beat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    min-height: 1175px;
    display: flex;
    flex-direction: column;
}
.beat-card.collapsed {
    min-height: 0;
    padding: 0.65rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}
.premium-beats-section .beat-card.collapsed,
.free-beats-section .beat-card.collapsed {
    margin: 0;
    justify-self: stretch;
}

.beats-section .beats-container > .beat-card.collapsed {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
}

.beats-container:has(> .beat-card.collapsed) {
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)) !important;
    gap: 0.75rem;
}
@media screen and (max-width: 480px) {
    .beats-container:has(> .beat-card.collapsed) {
        grid-template-columns: 1fr !important;
    }
    .beat-card.collapsed .beat-image { width: 70px; height: 70px; }
    .beat-card.collapsed .beat-genres { display: none; }
    .beat-card.collapsed .card-vol-wrap { display: none; }
}

.beat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 17, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.beat-card:hover::before {
    left: 100%;
}

.beat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(108, 17, 255, 0.2);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}
.beat-card.collapsed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(108, 17, 255, 0.15);
}

.beat-image {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}
.beat-card.collapsed .beat-image {
    width: 85px;
    height: 85px;
    flex-shrink: 0;
    margin: 0;
    border-radius: 8px;
}

.beat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.beat-card:hover .beat-image img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
}

.play-button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 20px rgba(108, 17, 255, 0.5));
}

.play-button:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 28px rgba(108, 17, 255, 0.7));
}

.play-button:focus-visible {
    outline: none;
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 28px rgba(108, 17, 255, 0.7));
}

.play-button i {
    position: relative;
    left: 1px;
}

.audio-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.audio-progress.active {
    opacity: 1;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(108, 17, 255, 0.6), 0 0 12px rgba(255, 62, 144, 0.4);
}

.beat-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Push the info and license sections down to create space between image and text */
.beat-info { margin-top: auto; }
.beat-card.collapsed .beat-info {
    margin-top: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.beat-card.collapsed .beat-genres { display: flex; margin-bottom: 0; gap: 0.35rem; }
.beat-card.collapsed .beat-meta { margin-bottom: 0; }
.beat-card.collapsed .beat-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.beat-card.collapsed .genre-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.55rem;
}
.beat-card.collapsed .beat-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.beat-card .beat-price, .beat-card .beat-expand-row, .beat-card .beat-expand-row span, .beat-card .beat-expand-row i { font-family: 'Oxanium', sans-serif; }

.beat-genres {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.genre-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(108, 17, 255, 0.2);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Expand more tags button */
.expand-tags-btn {
    padding: 0.75rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.expand-tags-btn::before,
.expand-tags-btn::after {
    content: '';
    position: absolute;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}
/* Horizontal bar */
.expand-tags-btn::before {
    width: 12px;
    height: 2px;
}
/* Vertical bar */
.expand-tags-btn::after {
    width: 2px;
    height: 12px;
}
.expand-tags-btn[aria-expanded="true"]::after {
    height: 0;
}
.expand-tags-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 17, 255, 0.3);
}
.expand-tags-btn:hover::before,
.expand-tags-btn:hover::after {
    background: #fff;
}

.beat-meta {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.beat-bpm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.license-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.license-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.license-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
}

.license-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    flex-wrap: nowrap;
}
.license-desc-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.license-desc-row.inline-desc {
    margin-top: 0;
    gap: 0.4rem;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
.license-name { display: inline-flex; align-items: center; margin-right: 0.5rem; line-height: 1; white-space: nowrap; }
.license-desc { line-height: 1; }
.license-desc-row .license-desc { flex: 1; }
.license-desc-row .license-toggle { margin-top: 0; align-self: auto; }

/* Bring toggle closer to text for Unlimited Pro and Exclusive rows */
.unlimited-deal-license .license-desc-row .license-desc,
.exclusive-license .license-desc-row .license-desc { flex: 0 0 auto; }
.unlimited-deal-license .license-desc-row,
.exclusive-license .license-desc-row { gap: 0.4rem; }

/* Position arrow immediately to the right of "Included in License" for MP3/WAV/Unlimited */
.mp3-license .license-desc-row.inline-desc .license-toggle,
.wav-license .license-desc-row.inline-desc .license-toggle,
.unlimited-license .license-desc-row.inline-desc .license-toggle {
    margin-left: 0.25rem;
}

/* Align Unlimited Pro and Exclusive like others (arrow next to text) */
.unlimited-deal-license .license-desc-row.inline-desc,
.exclusive-license .license-desc-row.inline-desc {
    justify-content: flex-start;
    width: auto;
}
.unlimited-deal-license .license-desc-row.inline-desc .license-toggle,
.exclusive-license .license-desc-row.inline-desc .license-toggle {
    margin-left: 0.25rem;
}

/* Make premium beat cards wider on desktop */
@media screen and (min-width: 992px) {
  .premium-beats-section .beats-container {
    max-width: 1800px !important;
    grid-template-columns: repeat(auto-fit, minmax(560px, 1fr)) !important;
  }
}

/* Center beat info under image */
.beat-info {
    text-align: center;
}
.beat-genres { justify-content: center; }
.beat-meta { justify-content: center; }

/* Toggle button inside license info */
.license-toggle {
    margin-top: 0.25rem;
    align-self: flex-start;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: 0;
    padding: 0;
    cursor: pointer;
}
.license-toggle i { position: relative; top: 2px; }
.license-toggle:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.license-details {
    grid-column: 1 / -1;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0.75rem 0;
    margin-top: 0.25rem;
    transition: opacity 0.2s ease;
}
.license-details.collapsed { opacity: 0; pointer-events: none; }
.license-details ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 1rem;
}

/* Keep license option boxes at a consistent height even when details are toggled */
.premium-beats-section .license-option {
    display: grid;
    grid-template-columns: 1fr auto; /* info + (toggle sits in info, button at bottom) */
    grid-template-rows: auto 120px auto; /* reserve space for details */
    align-items: start;
}
.premium-beats-section .license-option .license-info { grid-column: 1 / -1; grid-row: 1; }
.premium-beats-section .license-option .license-details { grid-column: 1 / -1; grid-row: 2; height: 120px; overflow: auto; }
.premium-beats-section .license-option .license-btn { grid-column: 1 / -1; grid-row: 3; justify-self: center; }

/* Full-width rows reserve a bit more detail space */
.premium-beats-section .license-option.unlimited-license,
.premium-beats-section .license-option.unlimited-deal-license,
.premium-beats-section .license-option.exclusive-license {
    grid-template-rows: auto 150px auto;
}

/* Ensure hidden details still take up reserved space; only fade content */
.premium-beats-section .license-option .license-details[hidden] {
    display: block !important;
    visibility: hidden;
    opacity: 0;
}
.premium-beats-section .license-option .license-details:not([hidden]) {
    visibility: visible;
    opacity: 1;
}

/* Iconified license items */
.license-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.license-details li .license-icon {
    width: 18px;
    min-width: 18px;
    text-align: center;
    color: var(--text-primary);
}
.license-details li span {
    display: inline-block;
    color: var(--text-secondary);
}

.license-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: 'Oxanium', sans-serif;
}

.license-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-family: 'Oxanium', sans-serif;
}

.license-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    font-family: 'Oxanium', sans-serif;
}

.license-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(108, 17, 255, 0.4);
}

.license-btn.success {
    background: linear-gradient(135deg, #00C851, #007E33);
}

.license-btn.warning {
    background: linear-gradient(135deg, #FF6B6B, #EE5A24);
}

.exclusive-license {
    grid-column: 1 / -1;
}

.exclusive-btn {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #fff;
    font-weight: 700;
}

.exclusive-btn:hover {
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* ============== PLACEHOLDER SECTIONS ============== */
.sound-kits-placeholder,
.plugins-placeholder {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.placeholder-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.8;
}

.placeholder-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.placeholder-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.notify-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-family: 'Oxanium', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 233, 167, 0.3);
}

/* ============== GET IN TOUCH SECTION ============== */
.get-in-touch-section {
    background: linear-gradient(135deg, 
        rgba(176, 66, 255, 0.15) 0%, 
        rgba(176, 66, 255, 0.10) 35%, 
        rgba(176, 66, 255, 0.08) 65%,
        transparent 70%
    );
    /* Override section constraints for full-width */
    max-width: none;
    margin: 0;
    padding: 4rem 0; /* reduce top spacing, keep edge-to-edge */
    width: 100vw;
    position: relative;
    left: calc(50% - 50vw); /* hard-align background to viewport edges */
    box-sizing: border-box;
}

.get-in-touch-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108, 17, 255, 0.1);
    border-color: var(--primary-color);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 30px;
    text-align: center;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 17, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

/* Social Section Part */
.social-section-part {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.social-heading h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.social-heading p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
}

.social-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: var(--transition);
    transform-origin: center center;
}

.social-link:hover {
    color: var(--text-primary);
    transform: translateY(-5px);
}

.social-link:hover .social-icon {
    border-color: var(--primary-color);
    background: rgba(108, 17, 255, 0.1);
    box-shadow: 0 15px 35px rgba(108, 17, 255, 0.2);
}

.social-link:hover .social-icon img {
    transform: scale(1.1);
}

.social-link span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* TikTok specific styling */
.social-link.tiktok .social-icon {
    background: #000000;
}

.social-link.tiktok .social-icon img {
    width: 65px;
    height: 65px;
    transform-origin: center center;
}

/* Instagram specific styling */
.social-link.instagram .social-icon img {
    width: 90px;
    height: 90px;
    transform-origin: center center;
}

/* Spotify specific styling */
.social-link.spotify .social-icon {
    background: #000000;
}

.social-link.spotify .social-icon img {
    width: 95px;
    height: 95px;
    transform-origin: center center;
}

/* X (Twitter) specific styling */
.social-link.twitter .social-icon {
    background: #000000;
}

.social-link.twitter .social-icon img {
    width: 60px;
    height: 60px;
    transform-origin: center center;
}

/* YouTube specific styling */
.social-link.youtube .social-icon {
    background: #ffffff;
}

.social-link.youtube .social-icon img {
    width: 125px;
    height: 125px;
    transform-origin: center center;
}

/* ============== CART STYLES ============== */
.cart-section {
    min-height: 80vh;
    padding: 6rem 2rem 2rem;
}

.cart-container {
    max-width: 900px;
    margin: 0 auto;
}

.cart-container h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cart-items {
    margin-bottom: 3rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.empty-cart p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.cart-item-license {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-type {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-type.premium-type {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 62, 144, 0.45), 0 0 12px rgba(108, 17, 255, 0.3);
    font-weight: 700;
    position: relative;
}

/* Remove global pseudo-element sparkles; use inline spans inside label for accurate anchoring */

/* Extra sparkle element for bottom-center drift */
.premium-sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 60%, rgba(255,255,255,0) 70%);
    box-shadow: 0 0 6px rgba(255,255,255,0.8), 0 0 10px rgba(108, 17, 255, 0.35);
    pointer-events: none;
}

.premium-type .premium-label {
    position: relative;
    display: inline-block;
}

.premium-type .premium-sparkle.s1 {
    left: 35%;
    top: 0.0em;
    animation: premiumSparkle1 3s ease-in-out infinite;
}

.premium-type .premium-sparkle.s2 {
    left: 65%;
    top: 0.3em;
    width: 2px;
    height: 2px;
    animation: premiumSparkle2 3.6s ease-in-out infinite;
}

.premium-type .premium-sparkle.s3 {
    left: 50%;
    bottom: -0.15em;
    animation: premiumSparkle3 3.2s ease-in-out infinite;
}

.premium-type .premium-sparkle.s4 {
    left: 85%; /* near the end of "Premium" under the 'm' */
    bottom: -0.12em;
    animation: premiumSparkle4 3.1s ease-in-out infinite;
}

.premium-type .premium-sparkle.s5 {
    left: 30%; /* under the 'e' in "Premium" */
    bottom: -0.12em;
    animation: premiumSparkle5 2.9s ease-in-out infinite;
}

@keyframes premiumSparkle1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    60% { opacity: 1; }
    100% { transform: translate(14px, -10px) scale(0.6); opacity: 0; }
}

@keyframes premiumSparkle2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    60% { opacity: 1; }
    100% { transform: translate(-16px, -12px) scale(0.6); opacity: 0; }
}

@keyframes premiumSparkle3 {
    0% { transform: translate(-2px, 0) scale(1); opacity: 0; }
    15% { opacity: 1; }
    60% { opacity: 1; }
    100% { transform: translate(0, 10px) scale(0.6); opacity: 0; }
}

/* New sparkles: s4 goes down-right; s5 goes down-left */
@keyframes premiumSparkle4 {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    15% { opacity: 1; }
    60% { opacity: 1; }
    100% { transform: translate(10px, 9px) scale(0.6); opacity: 0; }
}

@keyframes premiumSparkle5 {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    15% { opacity: 1; }
    60% { opacity: 1; }
    100% { transform: translate(-10px, 9px) scale(0.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cart-item-type.premium-type::before,
    .cart-item-type.premium-type::after {
        animation: none;
        display: none;
    }
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.cart-item-bpm,
.cart-item-added {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

/* Inline BPM next to title */
.cart-item-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cart-item-name .cart-item-bpm-inline {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-item-remove {
    background: rgba(255, 107, 107, 0.2);
    border: none;
    color: #ff6b6b;
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.cart-item-remove:hover {
    background: rgba(255, 107, 107, 0.4);
    transform: scale(1.05);
}

/* Ensure checkout section and Stripe Payment Element can use full width */
#checkout-section { width: 100%; }
#payment-form { width: 100%; }
#payment-element { width: 100%; min-width: 320px; }
/* Hide BNPL methods defensively if Stripe still renders them */
.PaymentElement .Tab[data-tab="affirm"],
.PaymentElement .Tab[data-tab="klarna"] {
    display: none !important;
}
/* Ensure white background around inputs for contrast */
#payment-element { background: #ffffff0d; border-radius: 12px; padding: 6px; }

/* Smaller PayPal button alongside tabs */
.paypal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, #00457c, #0070ba);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.wallet-row .paypal-btn { justify-self: end; }

.small-separator {
    height: 10px;
}

.wallet-row {
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 8px;
    align-items: center;
}

.cart-summary {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-top: 0.75rem; /* add a bit more space below the underline */
}

/* Align left column top with subtotal window top */
.cart-items {
    margin-top: 0.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.summary-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent-color);
}

.continue-shopping-btn,
.proceed-checkout-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.continue-shopping-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.continue-shopping-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.proceed-checkout-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.proceed-checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(108, 17, 255, 0.4);
}

.proceed-checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Match Complete Purchase button to Proceed button styling */
.complete-purchase-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-family: 'Oxanium', sans-serif;
}

.complete-purchase-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(108, 17, 255, 0.4);
}

.complete-purchase-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============== CART PAGE STYLING ============== */
.cart-section {
    padding: 6rem 2rem 4rem;
    background: radial-gradient(ellipse at center, rgba(215, 26, 208, 0.15) 0%, transparent 70%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Override section constraints for full-width */
    max-width: none;
    margin: 0;
    width: 100vw;
    box-sizing: border-box;
}

.cart-container {
    max-width: 1500px;
    width: 96%;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.cart-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.cart-heading h2 {
    font-family: 'League Script', cursive;
    font-size: 6.5rem;
    font-weight: 600;
    color: #d71ad0;
    --neon-color: #d71ad0;
    text-align: center;
    text-shadow:
        0 0 2px #d71ad0,
        0 0 5px #d71ad0,
        0 0 10px #d71ad0,
        0 0 15px #d71ad0;
    animation: flickerGlowCart 3s infinite;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    position: relative;
    margin-bottom: 1rem;
}

.cart-heading h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    animation: flickerBoxShadowCart 3s infinite !important;
    opacity: 1 !important;
    background: #d71ad0 !important;
    border-radius: 2px;
}

@keyframes flickerBoxShadowCart {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        box-shadow:
            0 0 2px #d71ad0,
            0 0 5px #d71ad0,
            0 0 10px #d71ad0,
            0 0 15px #d71ad0;
    }
    20%, 24%, 55% {
        box-shadow:
            0 0 1px #d71ad0,
            0 0 2px #d71ad0,
            0 0 3px #d71ad0,
            0 0 5px #d71ad0;
    }
}

@keyframes flickerGlowCart {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 2px #d71ad0,
            0 0 5px #d71ad0,
            0 0 10px #d71ad0,
            0 0 15px #d71ad0;
    }
    20%, 24%, 55% {
        text-shadow:
            0 0 1px #d71ad0,
            0 0 2px #d71ad0,
            0 0 3px #d71ad0,
            0 0 5px #d71ad0;
    }
}

.continue-shopping-btn,
.proceed-checkout-btn {
    font-family: 'Oxanium', sans-serif;
}

.cart-footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    text-align: center;
}

.cart-footer-content .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* equal columns so widths match */
    gap: 2rem;
    align-items: start;
}

@media screen and (max-width: 992px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

/* Cart page specific footer with reduced padding */
.cart-section + footer {
    padding: 2.5rem 2rem 1.5rem;
}

.cart-section + footer .cart-footer-content {
    padding: 0 0 2.5rem 0;
}

.cart-section + footer .footer-bottom {
    margin-top: 0;
    padding-top: 1.5rem;
    padding-bottom: 0;
}

/* ============== FOOTER ============== */
footer {
    background: rgba(10, 11, 15, 0.95);
    padding: 2.5rem 0 0;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 20px var(--shadow-medium);
    width: 100vw;
    position: relative;
    left: calc(50% - 50vw);
    margin: 0; /* ensure no extra gap below */
    margin-top: auto; /* stick footer to bottom when content is short */
    min-height: 0; /* prevent reserved extra space */
    border-bottom: 0; /* ensure no bottom border */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding: 0 2rem 2.5rem; /* add more space above the glow line */
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible; /* prevent glyph clipping on right edge */
}

.footer-logo h2 {
    font-family: 'Yellowtail', 'Oxanium', sans-serif;
    background: linear-gradient(90deg, 
        var(--primary-color), 
        #b723ff, 
        var(--secondary-color), 
        #ff3e90, 
        var(--primary-color)
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    font-size: 2.2rem; /* tiny bit bigger */
    animation: gradientFlow 8s ease infinite;
    filter: drop-shadow(0 0 10px rgba(108, 17, 255, 0.5));
    line-height: 1.2;
    padding-right: 4px; /* avoid right-edge glyph clipping (e.g., end of 'k') */
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0;
}

.footer-links h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-newsletter h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
}

.footer-newsletter p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

#newsletter-form {
    display: grid;
    grid-template-columns: 1.25fr auto; /* slightly wider input */
    gap: 0.5rem;
}

#newsletter-form input {
    width: 100%; /* fill grid column */
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Oxanium', sans-serif;
}

#newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-family: 'Oxanium', sans-serif;
}

#newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 17, 255, 0.3);
}

/* Subscribe icon-only button styling */
#newsletter-form .subscribe-icon-btn {
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#newsletter-form .subscribe-icon-btn i {
    font-size: 1.1rem;
}

/* Desktop tweaks: footer alignment and newsletter sizing */
@media screen and (min-width: 992px) {
    /* Left column: move left and align left */
    .footer-content .footer-logo {
        justify-self: start;
        position: relative;
        left: -24px;
        align-items: flex-start;
    }
    .footer-content .footer-logo h2,
    .footer-content .footer-logo p { text-align: left; }

    /* Right column: move right and align right */
    .footer-content .footer-newsletter {
        justify-self: end;
        position: relative;
        left: 24px;
    }
    .footer-content .footer-newsletter h3,
    .footer-content .footer-newsletter p { text-align: right; }

    /* Make email input a bit longer and align form to the right */
    #newsletter-form { grid-template-columns: 1.6fr auto; max-width: none; width: 100%; margin-left: auto; }

    /* Cart page footer: center-align logo/title and tagline */
    .cart-section + footer .cart-footer-content .footer-logo {
        position: static;
        left: 0;
        align-items: center;
        text-align: center;
    }
    .cart-section + footer .cart-footer-content .footer-logo h2,
    .cart-section + footer .cart-footer-content .footer-logo p { text-align: center; }
}

.footer-bottom {
    margin-top: 0;
    padding-top: 1.25rem; /* space between top glow and text */
    padding-bottom: 1.25rem; /* match spacing below © to top spacing */
    text-align: center;
    color: var(--text-muted);
    position: relative;
    min-height: 0;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0; /* glow above the copyright text */
    left: 50%;
    width: 65%;
    transform: translateX(-50%);
    height: 1px;
    background: var(--border-color);
    box-shadow: 
        0 0 20px var(--shadow-heavy),
        0 -2px 30px var(--shadow-heavy),
        0 -4px 50px rgba(108, 17, 255, 0.3),
        0 -8px 80px rgba(108, 17, 255, 0.2);
    pointer-events: none;
}

/* ============== ANIMATIONS ============== */
.pulse {
    animation: pulse 0.8s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .beat-card,
    .contact-item,
    .social-link {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }
    
    .beat-card:nth-child(2) { animation-delay: 0.1s; }
    .beat-card:nth-child(3) { animation-delay: 0.2s; }
    .beat-card:nth-child(4) { animation-delay: 0.3s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============== RESPONSIVE DESIGN ============== */
@media screen and (max-width: 1200px) {
    .get-in-touch-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text {
        max-width: 900px;
    }
    
    .sound-kits-placeholder,
    .plugins-placeholder {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-darker);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 999;
        transform: none;
        justify-self: auto;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    nav a {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    section {
        padding: 4rem 1rem;
    }
    
    .section-heading h2 {
        font-size: 2.5rem;
    }
    
    /* Responsive styling for Free Beats LED sign */
    .free-beats-section .section-heading h2 {
        font-size: 4rem;
    }
    
    /* Responsive styling for Premium Beats LED sign */
    .premium-beats-section .section-heading h2 {
        font-size: 4rem;
    }
    
    /* Responsive styling for Sound Kits and Plugins LED signs */
    #sound-kits .section-heading h2 {
        font-size: 4rem;
    }
    
    /* Responsive styling for Get in Touch LED sign */
    .get-in-touch-section .section-heading h2 {
        font-size: 4rem;
    }
    
    /* Responsive styling for Follow the Journey LED sign */
    .social-heading h3 {
        font-size: 2.5rem;
    }
    
    /* Responsive styling for About Me LED sign */
    .about-section .section-heading h2 {
        font-size: 4rem;
    }
    
    .about-section {
        padding: 3rem 2rem;
        margin: 2rem auto;
    }
    
    .about-text {
        max-width: 100%;
        font-size: 1rem;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .get-in-touch-section {
        padding: 3rem 2rem;
        margin: 2rem auto;
    }
    
    .get-in-touch-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    .social-icon {
        width: 70px;
        height: 70px;
    }
    
    .social-icon img {
        width: 40px;
        height: 40px;
    }
    
    .beats-container {
        grid-template-columns: 1fr;
    }
    
    .beats-filter-and-search {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
    }
    
    .license-options {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .cart-icon {
        margin-left: 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .about-section {
        padding: 2rem 1rem;
        margin: 1rem auto;
    }
    
    .image-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .about-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .get-in-touch-section {
        padding: 2rem 1rem;
        margin: 1rem auto;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-icon {
        width: 60px;
        height: 60px;
    }
    
    .social-icon img {
        width: 35px;
        height: 35px;
    }
    
    .social-heading h3 {
        font-size: 1.5rem;
    }
    
    .social-heading p {
        font-size: 1rem;
    }
    
    .cart-container h2 {
        font-size: 2rem;
    }
    
    .cart-summary {
        padding: 1.5rem;
    }
    
    /* Extra small mobile styling for Free Beats LED sign */
    .free-beats-section .section-heading h2 {
        font-size: 3rem;
    }
    
    /* Extra small mobile styling for Premium Beats LED sign */
    .premium-beats-section .section-heading h2 {
        font-size: 3rem;
    }
    
        /* Extra small mobile styling for Sound Kits and Plugins LED signs */
    #sound-kits .section-heading h2 {
        font-size: 3rem;
    }
    
    /* Extra small mobile styling for Get in Touch LED sign */
    .get-in-touch-section .section-heading h2 {
        font-size: 3rem;
    }
    
    /* Extra small mobile styling for Follow the Journey LED sign */
    .social-heading h3 {
        font-size: 1.8rem;
    }
    
    /* Extra small mobile styling for About Me LED sign */
    .about-section .section-heading h2 {
        font-size: 3rem;
    }
}

/* Print styles */
@media print {
    .header-particles-canvas,
    .floating-shapes,
    .free-beats-canvas-bg {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-bg::after {
        display: none;
    }
} 

/* Sound Kits and Plugins LED sign styling */
#sound-kits .section-heading h2 {
    font-family: 'League Script', cursive;
    font-size: 6.5rem;
    font-weight: 600;
    color: #00d2ff;
    --neon-color: #00d2ff;
    text-align: center;
    text-shadow:
        0 0 2px #00d2ff,
        0 0 5px #00d2ff,
        0 0 10px #00d2ff,
        0 0 15px #00d2ff;
    animation: flickerGlowCyan 3s infinite;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

/* Sound Kits and Plugins underlines with same positioning and flicker */
#sound-kits .section-heading h2::after {
    animation: flickerBoxShadowCyan 3s infinite !important;
    opacity: 1 !important;
    bottom: 12px !important; /* Same positioning as other sections */
    background: #00d2ff !important;
}

@keyframes flickerBoxShadowCyan {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        box-shadow:
            0 0 2px #00d2ff,
            0 0 5px #00d2ff,
            0 0 10px #00d2ff,
            0 0 15px #00d2ff;
    }
    20%, 24%, 55% {
        box-shadow:
            0 0 1px #00d2ff,
            0 0 2px #00d2ff,
            0 0 3px #00d2ff,
            0 0 5px #00d2ff;
    }
}

@keyframes flickerGlowCyan {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 2px #00d2ff,
            0 0 5px #00d2ff,
            0 0 10px #00d2ff,
            0 0 15px #00d2ff;
    }
    20%, 24%, 55% {
        text-shadow:
            0 0 1px #00d2ff,
            0 0 2px #00d2ff,
            0 0 3px #00d2ff,
            0 0 5px #00d2ff;
    }
}

/* Get in Touch LED sign styling */
.get-in-touch-section .section-heading h2 {
    font-family: 'League Script', cursive;
    font-size: 6.5rem;
    font-weight: 600;
    color: #b042ff;
    --neon-color: #b042ff;
    text-align: center;
    text-shadow:
        0 0 2px #b042ff,
        0 0 5px #b042ff,
        0 0 10px #b042ff,
        0 0 15px #b042ff;
    animation: flickerGlowPurple 3s infinite;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

/* Get in Touch underline with same positioning and flicker */
.get-in-touch-section .section-heading h2::after {
    animation: flickerBoxShadowPurple 3s infinite !important;
    opacity: 1 !important;
    bottom: 12px !important; /* Same positioning as other sections */
    background: #b042ff !important;
}

/* Follow the Journey LED sign styling - smaller font */
.social-heading h3 {
    font-family: 'League Script', cursive;
    font-size: 3.8rem;
    font-weight: 700;
    color: #b042ff;
    --neon-color: #b042ff;
    text-align: center;
    text-shadow:
        0 0 2px #b042ff,
        0 0 5px #b042ff,
        0 0 10px #b042ff,
        0 0 15px #b042ff;
    animation: flickerGlowPurple 3s infinite;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    position: relative;
    margin-bottom: 2rem;
}

/* Follow the Journey underline */
.social-heading h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    animation: flickerBoxShadowPurple 3s infinite !important;
    opacity: 1 !important;
    background: #b042ff !important;
    border-radius: 2px;
}

@keyframes flickerBoxShadowPurple {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        box-shadow:
            0 0 2px #b042ff,
            0 0 5px #b042ff,
            0 0 10px #b042ff,
            0 0 15px #b042ff;
    }
    20%, 24%, 55% {
        box-shadow:
            0 0 1px #b042ff,
            0 0 2px #b042ff,
            0 0 3px #b042ff,
            0 0 5px #b042ff;
    }
}

@keyframes flickerGlowPurple {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 2px #b042ff,
            0 0 5px #b042ff,
            0 0 10px #b042ff,
            0 0 15px #b042ff;
    }
    20%, 24%, 55% {
        text-shadow:
            0 0 1px #b042ff,
            0 0 2px #b042ff,
            0 0 3px #b042ff,
            0 0 5px #b042ff;
    }
}

/* About Me LED sign styling */
.about-section .section-heading h2 {
    font-family: 'League Script', cursive;
    font-size: 6.5rem;
    font-weight: 600;
    color: #4169ff;
    --neon-color: #4169ff;
    text-align: center;
    text-shadow:
        0 0 2px #4169ff,
        0 0 5px #4169ff,
        0 0 10px #4169ff,
        0 0 15px #4169ff;
    animation: flickerGlowBlue 3s infinite;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

/* About Me underline with same positioning and flicker */
.about-section .section-heading h2::after {
    animation: flickerBoxShadowBlue 3s infinite !important;
    opacity: 1 !important;
    bottom: 12px !important; /* Same positioning as other sections */
    background: #4169ff !important;
}

@keyframes flickerBoxShadowBlue {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        box-shadow:
            0 0 2px #4169ff,
            0 0 5px #4169ff,
            0 0 10px #4169ff,
            0 0 15px #4169ff;
    }
    20%, 24%, 55% {
        box-shadow:
            0 0 1px #4169ff,
            0 0 2px #4169ff,
            0 0 3px #4169ff,
            0 0 5px #4169ff;
    }
}

@keyframes flickerGlowBlue {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 2px #4169ff,
            0 0 5px #4169ff,
            0 0 10px #4169ff,
            0 0 15px #4169ff;
    }
    20%, 24%, 55% {
        text-shadow:
            0 0 1px #4169ff,
            0 0 2px #4169ff,
            0 0 3px #4169ff,
            0 0 5px #4169ff;
    }
} /* Cache buster comment 08/02/2025 21:40:06 */

@media screen and (min-width: 992px) {
  footer .footer-content > .footer-logo {
    transform: translateX(-32px) !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  footer .footer-content > .footer-logo h2,
  footer .footer-content > .footer-logo p {
    text-align: left !important;
  }

  footer .footer-content > .footer-newsletter {
    transform: translateX(32px) !important;
    text-align: right !important;
  }
  footer .footer-content > .footer-newsletter h3,
  footer .footer-content > .footer-newsletter p {
    text-align: right !important;
  }

  footer .footer-content > .footer-newsletter #newsletter-form {
    grid-template-columns: 2fr auto !important; /* make input longer */
    justify-self: end !important;
    width: 100% !important;
  }
  footer .footer-content > .footer-newsletter #newsletter-form input {
    width: 100% !important;
  }
}

/* === Performance-improved neon flicker (GPU-friendly) ===
   Replace heavy per-frame text-shadow/box-shadow animations with layered overlays that only animate opacity.
   Applies to Free, Premium, Sound Kits, Plugins, Get in Touch, Social heading, About, Cart.
*/
.section-heading h2,
.social-heading h3,
.cart-heading h2 {
    position: relative;
    /* let the overlay control all glow intensity for a clearer flicker */
    text-shadow: none;
    /* ensure dips go fully black by hiding base glyph fill */
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* improve crispness on large neon script */
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

/* Ensure no residual base glow on section h2 (match My Socials behavior) */
.free-beats-section .section-heading h2,
.premium-beats-section .section-heading h2,
#sound-kits .section-heading h2,
.get-in-touch-section .section-heading h2,
.about-section .section-heading h2,
.cart-heading h2 { text-shadow: none !important; }

/* Overlay layer that carries the strong glow; content via data-text for perfect glyph match */
.section-heading h2::before,
.social-heading h3::before,
.cart-heading h2::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* keep h3 slightly brighter than h2 for smaller size legibility */
    text-shadow:
        0 0 1px var(--neon-color, currentColor),
        0 0 3px var(--neon-color, currentColor),
        0 0 6px var(--neon-color, currentColor),
        0 0 9px var(--neon-color, currentColor);
    pointer-events: none;
    opacity: 1;
    will-change: opacity;
}

/* Slightly reduced glow on h2 overlays vs h3 to cut outline (further reduced for sharpness) */
.section-heading h2::before {
    text-shadow:
        0 0 1px var(--neon-color, currentColor),
        0 0 3px var(--neon-color, currentColor),
        0 0 6px var(--neon-color, currentColor),
        0 0 9px var(--neon-color, currentColor);
}

/* Make cart heading text thickness match its underline */
.cart-heading h2::before {
    /* give the overlay a solid neon fill so text appears thicker */
    color: var(--neon-color, currentColor);
    -webkit-text-fill-color: var(--neon-color, currentColor);
    text-shadow:
        0 0 0.4px var(--neon-color, currentColor),
        0 0 0.8px var(--neon-color, currentColor),
        0 0 1.6px var(--neon-color, currentColor),
        0 0 3px var(--neon-color, currentColor),
        0 0 6px var(--neon-color, currentColor),
        0 0 12px var(--neon-color, currentColor);
}

/* Underline element is already ::after; we animate its opacity instead of box-shadow intensity */

/* Map existing flicker timing to opacity-only to reduce paints; preserve rhythm (0,18,22,25,53,57,100 on; 20,24,55 dim) */
@keyframes neonFlickerOpacity {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    /* hard off moments */
    20%, 24%, 55% { opacity: 0; }
    /* brief near-on rebounds */
    21%, 56% { opacity: 0.12; }
}

/* Dim, not off (to emulate real sign behavior). Three quick flickers in first ~10% of cycle, then idle.
   Slightly longer dip holds for better underline visibility. */
@keyframes neonFlickerDimOpacity {
    0% { opacity: 1; }
    /* first quick flicker */
    2% { opacity: 0.22; }
    3.1% { opacity: 0.4; }
    /* second quick flicker */
    4% { opacity: 0.22; }
    5.1% { opacity: 0.4; }
    /* third flicker: snappier and slightly deeper */
    7% { opacity: 0.18; }
    8.1% { opacity: 0.42; }
    /* finish cluster and stay on until next cycle */
    10%, 100% { opacity: 1; }
}

/* Subtle base text blink to sell the neon power dip (GPU-friendly opacity only) */
@keyframes neonTextOpacity {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.82; }
    21%, 56% { opacity: 0.9; }
}

/* Apply color-specific context via currentColor set by section-specific rules below */
/* ensure overlay uses same text for content via data-text set in JS */

/* Assign colors (already set earlier); attach the opacity animation to overlays and underlines */

.free-beats-section .section-heading h2::before { animation: neonFlickerDimOpacity 5.6s infinite; }
.free-beats-section .section-heading h2::after { animation: neonFlickerDimOpacity 5.6s infinite !important; }

.premium-beats-section .section-heading h2::before { animation: neonFlickerDimOpacity 5.6s infinite; }
.premium-beats-section .section-heading h2::after { animation: neonFlickerDimOpacity 5.6s infinite !important; }

#sound-kits .section-heading h2::before { animation: neonFlickerDimOpacity 5.6s infinite; }
#sound-kits .section-heading h2::after { animation: neonFlickerDimOpacity 5.6s infinite !important; }

.get-in-touch-section .section-heading h2::before { animation: neonFlickerDimOpacity 5.6s infinite; }
.get-in-touch-section .section-heading h2::after { animation: neonFlickerDimOpacity 5.6s infinite !important; }

.about-section .section-heading h2::before { animation: neonFlickerDimOpacity 5.6s infinite; }
.about-section .section-heading h2::after { animation: neonFlickerDimOpacity 5.6s infinite !important; }

.cart-heading h2::before { animation: neonFlickerDimOpacity 5.6s infinite; }
.cart-heading h2::after { animation: neonFlickerDimOpacity 5.6s infinite !important; }

/* My Socials: use dimming variant to match other headers (not fully off) */
.social-heading h3::before { animation: neonFlickerDimOpacity 5.6s infinite; }
.social-heading h3::after { animation: neonFlickerDimOpacity 5.6s infinite !important; }

/* Apply subtle base blink to headings themselves (override any disabled animations) */
.free-beats-section .section-heading h2,
.premium-beats-section .section-heading h2,
#sound-kits .section-heading h2,
.get-in-touch-section .section-heading h2,
.about-section .section-heading h2,
.cart-heading h2,
.social-heading h3 { animation: neonTextOpacity 5.6s infinite !important; }

@supports (-webkit-text-stroke: 1px) {
  .free-beats-section .section-heading h2,
  .premium-beats-section .section-heading h2,
  #sound-kits .section-heading h2,
  .get-in-touch-section .section-heading h2,
  .about-section .section-heading h2 {
    -webkit-text-stroke: 0.2px currentColor;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .cart-heading h2 {
    -webkit-text-stroke: 0;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .social-heading h3 {
    -webkit-text-stroke: 0;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* Disable heavy text-shadow and box-shadow animations previously defined to avoid double work.
   Keep original colors/underline sizes via existing rules; only neutralize the animated keyframes. */
.free-beats-section .section-heading h2 { animation: none; }
.premium-beats-section .section-heading h2 { animation: none; }
#sound-kits .section-heading h2 { animation: none; }
.get-in-touch-section .section-heading h2 { animation: none; }
.about-section .section-heading h2 { animation: none; }
.cart-heading h2 { animation: none; }
.social-heading h3 { animation: none; }

/* Underlines: keep size/position but no box-shadow animation */
.free-beats-section .section-heading h2::after,
.premium-beats-section .section-heading h2::after,
#sound-kits .section-heading h2::after,
.get-in-touch-section .section-heading h2::after,
.about-section .section-heading h2::after,
.cart-heading h2::after,
.social-heading h3::after {
    box-shadow:
        0 0 2px var(--neon-color, currentColor),
        0 0 5px var(--neon-color, currentColor),
        0 0 10px var(--neon-color, currentColor),
        0 0 15px var(--neon-color, currentColor) !important;
    opacity: 1;
    will-change: opacity;
}

/* Make underline flickers snap to keyframe steps so dips are clearly visible */
.free-beats-section .section-heading h2::after,
.premium-beats-section .section-heading h2::after,
#sound-kits .section-heading h2::after,
.get-in-touch-section .section-heading h2::after,
.about-section .section-heading h2::after,
.cart-heading h2::after,
.social-heading h3::after {
    animation-timing-function: steps(1, end) !important;
}

.free-beats-section .section-heading h2::after,
.premium-beats-section .section-heading h2::after,
#sound-kits .section-heading h2::after,
.get-in-touch-section .section-heading h2::after,
.about-section .section-heading h2::after,
.cart-heading h2::after {
    box-shadow:
        0 0 1.2px var(--neon-color, currentColor),
        0 0 3px var(--neon-color, currentColor),
        0 0 6px var(--neon-color, currentColor),
        0 0 10px var(--neon-color, currentColor) !important;
}

/* === Cart heading: use overlay like other headers to match flicker exactly === */
.cart-heading h2 {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 0 !important;
}
.cart-heading h2::before {
    content: attr(data-text) !important;
    color: var(--neon-color, currentColor) !important;
    -webkit-text-fill-color: var(--neon-color, currentColor) !important;
    -webkit-text-stroke: 0.25px var(--neon-color, currentColor) !important;
    text-shadow:
        0 0 0.4px var(--neon-color, currentColor),
        0 0 0.8px var(--neon-color, currentColor),
        0 0 1.6px var(--neon-color, currentColor),
        0 0 3px var(--neon-color, currentColor),
        0 0 6px var(--neon-color, currentColor),
        0 0 12px var(--neon-color, currentColor) !important;
    animation: neonFlickerDimOpacity 5.6s infinite !important;
}

@media screen and (min-width: 992px) {
  /* Center-align logo text while keeping left shift */
  footer .footer-content > .footer-logo {
    align-items: center !important;
    text-align: center !important;
  }
  footer .footer-content > .footer-logo h2,
  footer .footer-content > .footer-logo p {
    text-align: center !important;
  }

  /* Center-align newsletter headings/paragraphs while keeping right shift */
  footer .footer-content > .footer-newsletter,
  footer .footer-content > .footer-newsletter h3,
  footer .footer-content > .footer-newsletter p {
    text-align: center !important;
  }

  /* Make the email input longer relative to the button */
  footer .footer-content > .footer-newsletter #newsletter-form {
    grid-template-columns: 2.5fr auto !important;
    width: 100% !important;
  }

  /* Cart page footer: center-align logo/title and tagline */
  .cart-section + footer .cart-footer-content .footer-logo {
    position: static;
    left: 0;
    align-items: center;
    text-align: center;
  }
  .cart-section + footer .cart-footer-content .footer-logo h2,
  .cart-section + footer .cart-footer-content .footer-logo p { text-align: center; }
}

@media screen and (min-width: 992px) {
  /* Widen newsletter column and reduce gap so input can be longer */
  footer .footer-content {
    grid-template-columns: 1.15fr 0.9fr 1.6fr !important;
    gap: 2rem !important;
  }
  /* Make the input take more of the row relative to the button */
  footer .footer-content > .footer-newsletter #newsletter-form {
    grid-template-columns: 3fr auto !important;
    width: 100% !important;
  }
}

@media screen and (min-width: 992px) {
  /* Re-center Quick Links by restoring equal column widths */
  footer .footer-content {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
  /* Ensure the Quick Links column itself is centered */
  footer .footer-content > .footer-links {
    justify-self: center !important;
  }
}

@media screen and (min-width: 992px) {
  /* Preserve wider newsletter column while centering Quick Links */
  footer .footer-content { grid-template-columns: 1.15fr 0.9fr 1.6fr !important; }
  footer .footer-content > .footer-links { justify-self: center !important; }
}

@media screen and (min-width: 992px) {
  /* Nudge Quick Links to the right to visually re-center */
  footer .footer-content > .footer-links {
    justify-self: center !important;
    transform: translateX(24px) !important;
  }
}

/* Responsive overrides to keep hero positions tidy on smaller screens */
@media screen and (max-width: 768px) {
  #home .hero-content { padding-top: 0.5rem !important; }
  .hero-logo { margin-top: -6rem !important; max-width: 640px; width: 92%; }
  #home .hero-content p { margin-top: -20px !important; }
  #home .cta-button { margin-top: 10px !important; }
}

@media screen and (max-width: 480px) {
  #home .hero-content { padding-top: 0.75rem !important; }
  .hero-logo { margin-top: -3.5rem !important; max-width: 420px; width: 95%; }
  #home .hero-content p { margin-top: -10px !important; }
  #home .cta-button { margin-top: 12px !important; }
}

@media screen and (min-width: 992px) {
  /* Force Quick Links to shift right (visual re-centering) */
  footer .footer-content > .footer-links {
    justify-self: center !important;
    position: relative !important;
    left: 32px !important;
    transform: translateX(32px) !important;
    text-align: center !important;
  }
}

@media screen and (min-width: 992px) {
  /* Make newsletter email input visibly longer without shifting columns */
  footer .footer-content > .footer-newsletter { width: 100% !important; }
  footer .footer-content > .footer-newsletter #newsletter-form {
    grid-template-columns: 4fr auto !important; /* larger input share */
    max-width: 780px !important; /* allow wider form */
    width: 100% !important;
    margin: 0 auto !important;
  }
  footer .footer-content > .footer-newsletter #newsletter-form input {
    min-width: 520px !important; /* ensure visibly longer field */
  }
}

@media screen and (min-width: 992px) {
  /* Slightly shorter than previous, just a tad longer than original */
  footer .footer-content > .footer-newsletter #newsletter-form {
    grid-template-columns: 1.2fr auto !important; /* modest ratio */
    max-width: 600px !important;
    width: 100% !important;
    margin: 0 !important;
  }
  footer .footer-content > .footer-newsletter #newsletter-form input {
    min-width: 380px !important; /* slight bump */
  }
}

@media screen and (min-width: 992px) {
  /* Precisely center Quick Links with a slightly larger right nudge */
  footer .footer-content > .footer-links {
    justify-self: center !important;
    position: relative !important;
    left: 40px !important;
    transform: translateX(40px) !important;
    text-align: center !important;
  }
}

@media screen and (min-width: 992px) {
  /* Fine-tune: slightly shorter email input to match description width */
  footer .footer-content > .footer-newsletter #newsletter-form {
    grid-template-columns: 1.1fr auto !important;
    max-width: 560px !important;
    width: 100% !important;
    margin: 0 !important;
  }
  footer .footer-content > .footer-newsletter #newsletter-form input {
    min-width: 360px !important;
  }

  /* Fine-tune: Quick Links a touch left to perfectly center */
  footer .footer-content > .footer-links {
    left: 34px !important;
    transform: translateX(34px) !important;
  }
}

@media screen and (min-width: 992px) {
  /* Slightly shorter and perfectly centered newsletter form under description */
  footer .footer-content > .footer-newsletter #newsletter-form {
    grid-template-columns: 1.05fr auto !important; /* tiny width reduction */
    max-width: 540px !important; /* modest cap */
    width: 100% !important;
    margin: 0 auto !important; /* center within column */
    justify-self: center !important; /* ensure centering in grid */
  }
  footer .footer-content > .footer-newsletter #newsletter-form input {
    min-width: 340px !important; /* a bit shorter than before */
  }
}

@media screen and (min-width: 992px) {
  /* Shorten newsletter input a bit more and keep centered */
  footer .footer-content > .footer-newsletter #newsletter-form {
    grid-template-columns: 0.95fr auto !important;
    max-width: 500px !important;
    width: 100% !important;
    margin: 0 auto !important;
    justify-self: center !important;
  }
  footer .footer-content > .footer-newsletter #newsletter-form input {
    min-width: 300px !important;
  }
}

@media screen and (min-width: 992px) {
  /* Nudge Stay Updated/newsletter section slightly right */
  footer .footer-content > .footer-newsletter {
    transform: translateX(38px) !important;
  }
}

@media screen and (min-width: 992px) {
  /* Stronger nudge: move Stay Updated/newsletter section further right */
  footer .footer-content > .footer-newsletter {
    position: relative !important;
    left: 46px !important;
    transform: translateX(46px) !important;
  }
}

/* Widen beats container further on large desktops */
@media screen and (min-width: 1280px) {
  .beats-section .beats-container {
    max-width: 1800px !important;
    grid-template-columns: repeat(auto-fit, minmax(760px, 1fr)) !important;
  }
}

@media screen and (min-width: 992px) {
  /* Final tweak: move Quick Links left by 1px */
  footer .footer-content > .footer-links {
    left: 33px !important;
    transform: translateX(33px) !important;
  }
}

/* === Premium license layout overrides === */
.premium-beats-section .license-name {
    color: #ff2ebf !important; /* match Premium Beats heading */
    white-space: nowrap !important; /* keep on one line */
    display: inline-flex;
    align-items: center;
}
.premium-beats-section .license-desc-row.inline-desc .license-desc {
    position: relative;
    top: -2px; /* nudge up to align with title baseline */
    line-height: 1;
}
/* Place arrow right after text for all sections */
.premium-beats-section .license-desc-row.inline-desc .license-toggle {
    margin-left: 0.25rem;
}
/* Ensure mp3/wav list text aligns tightly with icons */
.premium-beats-section .mp3-license .license-details li span,
.premium-beats-section .wav-license .license-details li span {
    margin-left: 0 !important;
}
/* Tighten taller boxes (Unlimited, Unlimited Pro, Exclusive) to reduce empty space */
.premium-beats-section .license-option.unlimited-license,
.premium-beats-section .license-option.unlimited-deal-license,
.premium-beats-section .license-option.exclusive-license {
    grid-template-rows: auto 110px auto !important; /* was larger; tighten details area */
    padding-bottom: 0.5rem !important; /* reduce bottom padding */
}

/*
 * === Beat modal overlay ===
 * Presents the enlarged beat card as a modal that sits above the grid
 */
.beat-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.beat-modal-overlay.open { display: flex; }

.beat-modal {
    width: 100%;
    max-width: 1620px;
    height: 94vh;
    overflow: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    border: 1px solid rgba(108, 17, 255, 0.25);
    background: #0a0b0f;
    position: relative;
}

.beat-modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(108, 17, 255, 0.12) 0%,
        rgba(255, 62, 144, 0.08) 25%,
        transparent 45%,
        rgba(0, 233, 167, 0.06) 65%,
        rgba(108, 17, 255, 0.10) 85%,
        rgba(255, 62, 144, 0.08) 100%
    );
    background-size: 250% 250%;
    animation: modalGradientShift 12s ease infinite;
    pointer-events: none;
    z-index: 0;
}

.beat-modal > * {
    position: relative;
    z-index: 1;
}

@keyframes modalGradientShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Use existing beat-card visuals but relax height inside modal */
.beat-modal .beat-card {
    min-height: 0;
    padding: 1.25rem;
    margin: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-auto-rows: min-content;
    gap: 1.25rem 2rem;
}
.beat-modal .beat-card:hover { transform: none; box-shadow: none; border-color: transparent; }
.beat-modal .beat-expand-row { display: none !important; }
.beat-modal .card-vol-wrap { display: none !important; }

/* Back arrow button */
/* back arrow removed */

/* Make modal contents breathe a bit more on small screens */
@media screen and (max-width: 768px) {
    .beat-modal { max-height: 92vh; }
    .beat-modal .beat-card { padding: 1rem; }
}

/* Place elements into left/right columns via wrapper */
.beat-modal .beat-left { grid-column: 1; display: flex; flex-direction: column; align-items: center; }
.beat-modal .beat-left .beat-image { margin: 0 0 0.5rem 0; align-self: center; }
.beat-modal .beat-left .beat-info { text-align: center; margin: 0.75rem 0 0.5rem 0; }
.beat-modal .beat-left .beat-waveform { width: 100%; }
.beat-modal .beat-actions { grid-column: 2; grid-row: 1 / span 3; padding: 0 1.25rem; }

/* Keep original image dimensions inside modal (slightly larger) */
.beat-modal .beat-card .beat-image { width: 255px; height: 255px; }

/* Image + volume slider row */
.beat-image-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}
.volume-slider-wrap {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 170px;
}
.volume-icon {
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 1.1em;
    text-align: center;
}
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 8px;
    height: 130px;
    background: transparent;
    cursor: pointer;
}
.volume-slider::-webkit-slider-runnable-track {
    width: 8px;
    background: #0a0b0f;
    border-radius: 4px;
    border: 1px solid rgba(108, 17, 255, 0.35);
    box-shadow: 0 0 6px rgba(108, 17, 255, 0.25), 0 0 2px rgba(255, 62, 144, 0.15);
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff3e90;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.4);
    margin-left: -3px;
}
.volume-slider::-moz-range-track {
    width: 8px;
    background: #0a0b0f;
    border-radius: 4px;
    border: 1px solid rgba(108, 17, 255, 0.35);
    box-shadow: 0 0 6px rgba(108, 17, 255, 0.25), 0 0 2px rgba(255, 62, 144, 0.15);
}
.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff3e90;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.4);
}

/* Collapsed card volume slider */
.card-vol-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.card-vol-wrap .volume-icon {
    font-size: 0.65rem;
    color: var(--text-muted);
    width: 1em;
    text-align: center;
}
.card-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;
    width: 6px;
    height: 50px;
    background: transparent;
    cursor: pointer;
}
.card-vol-slider::-webkit-slider-runnable-track {
    width: 6px;
    background: #0a0b0f;
    border-radius: 3px;
    border: 1px solid rgba(108, 17, 255, 0.3);
    box-shadow: 0 0 5px rgba(108, 17, 255, 0.2), 0 0 2px rgba(255, 62, 144, 0.12);
}
.card-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3e90;
    cursor: pointer;
    border: 1.5px solid rgba(255,255,255,0.4);
    margin-left: -2px;
}
.card-vol-slider::-moz-range-track {
    width: 6px;
    background: #0a0b0f;
    border-radius: 3px;
    border: 1px solid rgba(108, 17, 255, 0.3);
    box-shadow: 0 0 5px rgba(108, 17, 255, 0.2), 0 0 2px rgba(255, 62, 144, 0.12);
}
.card-vol-slider::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3e90;
    cursor: pointer;
    border: 1.5px solid rgba(255,255,255,0.4);
}

/* Single-column fallback on small screens */
@media screen and (max-width: 900px) {
    .beat-modal .beat-card {
        display: block;
    }
    .beat-modal .beat-image { margin: 0 auto 0.75rem auto; }
    .beat-modal .beat-info { text-align: center; }
}

/* Slightly elevate progress bar in modal for visibility */
.beat-modal .audio-progress {
    background: rgba(255,255,255,0.15);
}

/* Optional enter animation */
.beat-modal-overlay.open .beat-modal {
    animation: modalIn 0.18s ease-out;
}
@keyframes modalIn {
    from { transform: translateY(8px); opacity: 0.96; }
    to { transform: translateY(0); opacity: 1; }
}

/* Keep premium beats look inside modal */
.beat-modal .license-name { color: #ff2ebf !important; }

/* Center license titles + descriptions on one line, and center detail lists */
.beat-modal .license-info {
    justify-content: center;
    text-align: center;
}
.beat-modal .license-details ul {
    justify-items: center;
    text-align: center;
    height: 100%;
    align-content: space-evenly;
}
.beat-modal .license-details li {
    justify-content: center;
}

/* === Modal-specific license layout === */
.beat-modal .license-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}
.beat-modal .license-option {
    padding: 0.75rem 0.85rem;
}

.beat-modal .license-option {
    display: grid;
    grid-template-columns: 1fr; /* stack within each box */
    grid-template-rows: auto 140px auto; /* default reserved height for most */
    align-items: start;
}
.beat-modal .license-option .license-info { grid-column: 1; grid-row: 1; }
.beat-modal .license-option .license-details { grid-column: 1; grid-row: 2; height: 140px; overflow: auto; }
.beat-modal .license-option .license-btn { grid-column: 1; grid-row: 3; justify-self: center; }

/* Smaller reserved height for MP3 and WAV */
.beat-modal .license-option.mp3-license,
.beat-modal .license-option.wav-license { grid-template-rows: auto 120px auto; }
.beat-modal .license-option.mp3-license .license-details,
.beat-modal .license-option.wav-license .license-details { height: 120px; }

/* Larger reserved height for Exclusive Rights */
.beat-modal .license-option.exclusive-license { grid-template-rows: auto 150px auto; }
.beat-modal .license-option.exclusive-license .license-details { height: 150px; }

/* Details always visible in modal */
.beat-modal .license-option .license-details {
    visibility: visible;
    opacity: 1;
}

/* Free-download license styling in modal */
.beat-modal .license-option.free-download .license-name {
    color: #00e9a7 !important;
}
.beat-modal .license-option.free-download .license-btn.free-btn {
    background: linear-gradient(135deg, #00c97b, #00a86b);
}
.beat-modal .license-option.free-download .license-btn.free-btn:hover {
    box-shadow: 0 5px 15px rgba(0, 233, 167, 0.4);
}

/* Free beat collapsed expand button uses green accent */
.free-beat .expand-card-btn.free-btn {
    background: linear-gradient(135deg, #00c97b, #00a86b);
}
.free-beat .expand-card-btn.free-btn:hover {
    box-shadow: 0 5px 15px rgba(0, 233, 167, 0.4);
}

/* Free-download details reserved height (shorter list) */
.beat-modal .license-option.free-download { grid-template-rows: auto 100px auto; }
.beat-modal .license-option.free-download .license-details { height: 100px; }

/* Modal logo at bottom-left */
.beat-modal .beat-modal-logo {
    position: absolute;
    bottom: 2px;
    left: 12px;
    width: 350px;
    height: auto;
    opacity: 0.85;
    pointer-events: none;
}

