@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Roboto:wght@300;400;700&display=swap');

/* Define print styles separately to avoid blocking rendering */
@media print {
    .header, .footer, .visualizer, .upload-area, .cookie-consent {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .main {
        margin: 0;
        padding: 20px;
    }
    
    .container {
        max-width: 100%;
    }
}

/* CSS Custom Properties for better performance and maintainability */
:root {
    --neon-purple: #ba01ff;
    --neon-blue: #00f0ff;
    --neon-pink: #ff0083;
    --neon-green: #00ff66;
    --neon-yellow: #ffcf00;
    --dark-bg: #080010;
    --darker-bg: #050008;
    --accent-gradient: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    --text-shadow: 0 0 5px rgba(186, 1, 255, 0.7);
    --box-shadow: 0 5px 25px rgba(186, 1, 255, 0.3);
    
    /* Adding performance-focused properties */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 10px;
    --border-radius-md: 20px;
    --border-radius-lg: 30px;
    --border-radius-xl: 50px;
    
    /* Font sizes for consistency */
    --font-size-xs: 0.8rem;
    --font-size-sm: 0.9rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.2rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 4rem;
    
    /* Z-index scale */
    --z-index-base: 1;
    --z-index-header: 1000;
    --z-index-modal: 2000;
    --z-index-notification: 3000;
}

/* Content-visibility for better rendering performance */
section, .feature, .privacy-card, .footer-content {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

/* Will-change for smoother animations */
.visualizer .bar, .btn::before, .upload-area::before {
    will-change: transform, opacity;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Prevent layout shift from scrollbars */
    scrollbar-gutter: stable;
    /* Improved font rendering in modern browsers */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Enhanced touch support for mobile devices */
    touch-action: manipulation;
}

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle at top, #120025, var(--dark-bg), var(--darker-bg));
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    
    /* Improve scrolling performance */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    /* Prevent FOIT (Flash of Invisible Text) */
    font-display: swap;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: var(--z-index-base);
}

/* Reduce complexity of grid overlay for better performance */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0,0,0,0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.4) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
    transform: translateZ(0); /* Promote to GPU layer */
}

/* Header */
.header {
    background: rgba(5, 0, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-bottom: 1px solid rgba(186, 1, 255, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-index-header);
    padding: 0 30px;
    transition: background var(--transition-normal);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    
    /* Hardware acceleration for smoother scrolling */
    transform: translateZ(0);
}

.header:hover {
    border-bottom: 1px solid var(--neon-purple);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    background: var(--accent-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
    letter-spacing: 1px;
    text-shadow: var(--text-shadow);
}

.logo::before {
    content: "🎵";
    margin-right: 10px;
    font-size: 32px;
    filter: hue-rotate(270deg) drop-shadow(0 0 5px rgba(186, 1, 255, 0.7));
}

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

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1.5px;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-purple);
    text-shadow: var(--text-shadow);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Main Content */
.main {
    margin-top: 80px;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 100px;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    background: radial-gradient(circle at center, rgba(186, 1, 255, 0.15), transparent 60%);
    z-index: -1;
    animation: pulse 10s infinite alternate;
    will-change: opacity, transform;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.hero h1 {
    font-size: 4.5em;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    line-height: 1.2;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(186, 1, 255, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.5)); }
}

.hero p {
    font-size: 1.3em;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

/* AI Badge */
.ai-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(186, 1, 255, 0.15);
    border: 1px solid var(--neon-purple);
    border-radius: 50px;
    padding: 5px 15px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.ai-badge span {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.ai-badge .pulse {
    width: 12px;
    height: 12px;
    background-color: var(--neon-purple);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.ai-badge .pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--neon-purple);
    animation: pulse-ring 2s infinite;
    top: 0;
    left: 0;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

/* Visualizer */
.visualizer {
    aspect-ratio: 5/1;
    height: auto;
    max-height: 120px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    margin: 30px auto;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    padding: 20px;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(186, 1, 255, 0.2);
}

.visualizer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 70%, rgba(5, 0, 10, 0.8));
    z-index: 2;
    pointer-events: none;
}

.visualizer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
    box-shadow: 0 0 15px var(--neon-purple);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.bar {
    width: 7px;
    background: linear-gradient(to top, var(--neon-purple), var(--neon-blue));
    border-radius: 3px;
    animation: wave 1s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 8px rgba(186, 1, 255, 0.5);
}

.bar:nth-child(2n) { animation-delay: 0.1s; }
.bar:nth-child(3n) { animation-delay: 0.2s; }
.bar:nth-child(4n) { animation-delay: 0.3s; }
.bar:nth-child(5n) { animation-delay: 0.4s; }

@keyframes wave {
    0% { height: 15px; }
    100% { height: 80px; }
}

/* Converter Section */
.converter {
    background: rgba(10, 0, 20, 0.6);
    border: 1px solid rgba(186, 1, 255, 0.3);
    border-radius: 30px;
    padding: 50px;
    margin-bottom: 100px;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.converter::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(186, 1, 255, 0.1), transparent 60%);
    animation: rotate 20s linear infinite;
}

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

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: var(--text-shadow);
}

.upload-area {
    border: 2px dashed rgba(186, 1, 255, 0.5);
    border-radius: 20px;
    padding: 70px 20px;
    text-align: center;
    background: rgba(10, 0, 20, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 40px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(186, 1, 255, 0.05), transparent);
    z-index: 0;
    transform: translateY(100%);
    transition: transform 0.6s ease;
}

.upload-area:hover::before {
    transform: translateY(0);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--neon-purple);
    background: rgba(186, 1, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--neon-purple);
    filter: drop-shadow(0 0 10px rgba(186, 1, 255, 0.5));
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: scale(1.1);
}

.upload-text {
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 500;
    color: #fff;
}

.file-input {
    display: none;
}

.btn {
    background: var(--accent-gradient);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1em;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(186, 1, 255, 0.4);
}

.btn:hover::before {
    transform: rotate(45deg) translateX(100%);
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button variations */
.btn-sm {
    padding: 8px 20px;
    font-size: 0.9em;
}

.btn-outline {
    background: none;
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
}

.btn-outline:hover {
    background: rgba(186, 1, 255, 0.1);
}

.cancel-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 15px;
    margin-top: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Processing Animation */
.processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 30px;
    border-radius: var(--border-radius-md);
    background: rgba(10, 0, 20, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(186, 1, 255, 0.3);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.spinner {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 30px;
    filter: drop-shadow(0 0 10px rgba(186, 1, 255, 0.5));
}

.spinner::before,
.spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: spin 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.spinner::before {
    border: 4px solid transparent;
    border-top-color: var(--neon-purple);
    border-left-color: var(--neon-purple);
    animation-direction: normal;
}

.spinner::after {
    border: 4px solid transparent;
    border-bottom-color: var(--neon-blue);
    border-right-color: var(--neon-blue);
    animation-direction: reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); opacity: 1; }
    50% { transform: rotate(180deg) scale(0.9); opacity: 0.8; }
    100% { transform: rotate(360deg) scale(1); opacity: 1; }
}

.processing-text {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 10px;
}

.processing-steps {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin-top: 20px;
}

.processing-step {
    display: inline-block;
    margin: 0 10px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.processing-step.active {
    opacity: 1;
    color: var(--neon-blue);
}

/* Audio Controls */
.audio-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.audio-section {
    background: rgba(10, 0, 20, 0.4);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(186, 1, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audio-section:hover {
    border-color: var(--neon-purple);
    box-shadow: var(--box-shadow);
    transform: translateY(-3px);
}

.audio-section h3 {
    margin-bottom: 25px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.audio-section h3::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-gradient);
}

audio {
    width: 100%;
    margin-bottom: 25px;
    filter: hue-rotate(270deg);
    border-radius: 50px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

audio:hover {
    opacity: 1;
    transform: scale(1.01);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
    position: relative;
}

.feature {
    background: rgba(10, 0, 20, 0.6);
    border: 1px solid rgba(186, 1, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
    box-shadow: var(--box-shadow);
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 25px;
    color: var(--neon-blue);
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(186, 1, 255, 0.5));
    transition: all 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature h3 {
    margin-bottom: 20px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3em;
    letter-spacing: 1px;
}

.feature p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* Privacy Section */
.privacy-section {
    margin-bottom: 100px;
}

.privacy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.privacy-card {
    background: rgba(10, 0, 20, 0.6);
    border: 1px solid rgba(186, 1, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.privacy-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: var(--box-shadow);
}

.privacy-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--neon-green);
    filter: drop-shadow(0 0 10px rgba(0, 255, 102, 0.5));
}

.privacy-card h3 {
    margin-bottom: 15px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3em;
}

.privacy-notice {
    background: rgba(10, 0, 20, 0.4);
    border: 1px solid rgba(255, 207, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.privacy-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 207, 0, 0.05), transparent);
    z-index: -1;
}

.privacy-notice strong {
    color: var(--neon-yellow);
}

/* Warning message */
.warning-message {
    background: rgba(255, 207, 0, 0.1);
    border: 1px solid rgba(255, 207, 0, 0.3);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
}

.warning-message i {
    color: var(--neon-yellow);
    font-size: 1.2em;
    margin-right: 15px;
}

/* Footer */
.footer {
    background: rgba(10, 0, 20, 0.95);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(186, 1, 255, 0) 0%, rgba(186, 1, 255, 0.8) 50%, rgba(186, 1, 255, 0) 100%);
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ba01ff;
    text-shadow: 0 0 10px rgba(186, 1, 255, 0.8);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-end;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ba01ff;
    text-shadow: 0 0 10px rgba(186, 1, 255, 0.8);
}

/* Social Media Links */
.social-media-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-media-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-media-links a:hover {
    background: #ba01ff;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(186, 1, 255, 0.8);
}

.social-media-links .fa-youtube {
    color: #ff0000;
}

.social-media-links .fa-tiktok {
    color: #00f2ea;
}

.social-media-links a:hover .fa-youtube,
.social-media-links a:hover .fa-tiktok {
    color: #fff;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 20px;
}

/* Modal Dialogs */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    overflow-y: auto;
    padding: 50px 0;
}

.modal-content {
    background: rgba(10, 0, 20, 0.95);
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 30px rgba(186, 1, 255, 0.4);
    padding: 30px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--neon-pink);
    transform: rotate(90deg);
}

.modal h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2em;
    color: white;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(186, 1, 255, 0.3);
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-body h3 {
    color: var(--neon-blue);
    margin: 25px 0 15px;
    font-family: 'Orbitron', sans-serif;
}

.modal-body p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: rgba(10, 0, 20, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(186, 1, 255, 0.3);
    padding: 20px;
    z-index: 1500;
    opacity: 0;
    transition: all 0.5s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent.show {
    bottom: 0;
    opacity: 1;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 20px;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-buttons a {
    color: var(--neon-blue);
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.cookie-buttons a:hover {
    text-decoration: underline;
    color: var(--neon-purple);
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 300px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: var(--z-index-notification);
    font-family: 'Orbitron', sans-serif;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(10, 0, 20, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-purple);
    position: relative;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.notification-success .notification-content {
    border-top: 3px solid var(--neon-blue);
}

.notification-error .notification-content {
    border-top: 3px solid var(--neon-pink);
}

/* Fix for Font Awesome */
.fas, .fab {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.fab {
    font-family: 'Font Awesome 6 Brands';
}

.feature .fas {
    font-size: 1.2em;
}

/* Accessibility focus styles */
a:focus, button:focus, [role="button"]:focus {
    outline: 2px solid var(--neon-blue);
    outline-offset: 3px;
}

/* Focus style for upload area */
.upload-area:focus {
    outline: 2px solid var(--neon-blue);
    outline-offset: 3px;
    border-color: var(--neon-blue);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5em; }
    .features { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .audio-controls { gap: 30px; }
    .converter { padding: 40px 30px; }
    .footer-content { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .footer-logo { margin-bottom: 10px; }
    .footer-links { justify-content: center; }
    .social-media-links { margin-top: 20px; }
}

@media (max-width: 768px) {
    .hero h1 { 
        font-size: 2.8em;
        /* Improve readability on mobile */
        background-clip: text;
        -webkit-text-fill-color: transparent;
        background-image: linear-gradient(45deg, #ba01ff, #00f0ff 70%);
    }
    .audio-controls { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .converter { padding: 30px 20px; }
    .section-title { font-size: 2em; }
    .bar { width: 5px; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-buttons { width: 100%; justify-content: center; }
    .notification { left: 20px; right: 20px; width: auto; min-width: 0; }
    
    /* Further mobile optimizations */
    .feature, .privacy-card {
        padding: 25px 15px;
    }
    
    .social-media-links {
        margin-top: 25px;
    }
    
    .social-media-links a {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2em; }
    .privacy-content { grid-template-columns: 1fr; }
    .modal-content { margin: 0 15px; padding: 20px 15px; }
    .upload-area { padding: 40px 15px; }
    
    /* Improve tap targets for mobile users */
    .nav-links a, .footer-links a, .btn {
        padding: 12px;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Offline notification */
.offline-notification {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: rgba(255, 59, 48, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px;
    color: white;
    z-index: var(--z-index-notification);
    opacity: 0;
    transition: bottom 0.4s ease, opacity 0.4s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.offline-notification.show {
    bottom: 0;
    opacity: 1;
}

.offline-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.offline-content i {
    font-size: 1.2em;
}

/* Core Web Vitals optimization */
/* Reduce layout shift with fixed aspect ratios */
.visualizer {
    aspect-ratio: 5/1;
    height: auto;
    max-height: 120px;
}

/* Ensure images don't cause layout shift */
img {
    aspect-ratio: attr(width) / attr(height);
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .bar, .ai-badge .pulse, .ai-particle, .spinner, .visualizer::after {
        animation: none !important;
        transform: none !important;
    }
    
    .btn::before {
        display: none;
    }
}

/* Font loading optimization - avoid invisible text */
.wf-loading {
    visibility: hidden;
}

.wf-active, .wf-inactive {
    visibility: visible;
}

/* Improved focus indicators for accessibility */
:focus-visible {
    outline: 3px solid var(--neon-blue);
    outline-offset: 3px;
}

/* High contrast mode improvements */
@media (forced-colors: active) {
    .btn, .upload-area, .feature, .privacy-card {
        border: 2px solid;
    }
    
    .ai-badge, .logo, .hero h1 {
        color: Highlight;
        -webkit-text-fill-color: Highlight;
    }
}

/* Ensure scrollbar doesn't cause layout shift */
html {
    scrollbar-gutter: stable;
}

/* Optimize loading states */
.lazy-load {
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.loaded {
    opacity: 1;
}

/* Image error fallbacks */
.image-load-error {
    border: 1px dashed var(--neon-purple);
    filter: grayscale(1);
}

/* Core Web Vitals optimizations */
/* Layout stability for LCP elements */
.hero h1, .section-title, .visualizer {
    contain: layout;
}

/* Fixed aspect ratio for media elements */
.visualizer {
    aspect-ratio: 5/1;
    height: auto;
    max-height: 120px;
}

audio {
    aspect-ratio: 6/1;
    height: auto;
}

/* Enhanced mobile-first responsiveness */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5em; }
    .features { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .audio-controls { gap: 30px; }
    .converter { padding: 40px 30px; }
    .footer-content { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .footer-logo { margin-bottom: 10px; }
    .footer-links { justify-content: center; }
    .social-media-links { margin-top: 20px; }
}

@media (max-width: 768px) {
    .hero h1 { 
        font-size: 2.8em;
        /* Improve readability on mobile */
        background-clip: text;
        -webkit-text-fill-color: transparent;
        background-image: linear-gradient(45deg, #ba01ff, #00f0ff 70%);
    }
    .audio-controls { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .converter { padding: 30px 20px; }
    .section-title { font-size: 2em; }
    .bar { width: 5px; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-buttons { width: 100%; justify-content: center; }
    .notification { left: 20px; right: 20px; width: auto; min-width: 0; }
    
    /* Further mobile optimizations */
    .feature, .privacy-card {
        padding: 25px 15px;
    }
    
    .social-media-links {
        margin-top: 25px;
    }
    
    .social-media-links a {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2em; }
    .privacy-content { grid-template-columns: 1fr; }
    .modal-content { margin: 0 15px; padding: 20px 15px; }
    .upload-area { padding: 40px 15px; }
    
    /* Improve tap targets for mobile users */
    .nav-links a, .footer-links a, .btn {
        padding: 12px;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Offline notification */
.offline-notification {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: rgba(255, 59, 48, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px;
    color: white;
    z-index: var(--z-index-notification);
    opacity: 0;
    transition: bottom 0.4s ease, opacity 0.4s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.offline-notification.show {
    bottom: 0;
    opacity: 1;
}

.offline-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.offline-content i {
    font-size: 1.2em;
}

/* Ensure proper loading indicators */
.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2em;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 10;
}

/* Fix accessibility for screen readers */
.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;
}

/* Google embed optimizations */
/* These styles ensure Google featured snippets look good */
.feature-icon, .privacy-icon {
    margin-bottom: 20px;
    font-size: 2.5em;
    display: inline-block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(186, 1, 255, 0.5));
}

/* Fix for Font Awesome */
.fas, .fab {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Print styles for non-essential elements */
@media print {
    .footer-links, .ai-particles, .offline-notification {
        display: none !important;
    }
}

/* Form elements for download options */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--neon-blue);
    font-weight: 500;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(186, 1, 255, 0.3);
    background: rgba(10, 0, 20, 0.6);
    color: white;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 2px rgba(186, 1, 255, 0.2);
    outline: none;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ba01ff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.file-info {
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid var(--neon-blue);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

.file-info i {
    color: var(--neon-blue);
    margin-right: 8px;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

/* Modal adjustments for the form */
.modal-body form {
    margin-top: 20px;
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 300px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: var(--z-index-notification);
    font-family: 'Orbitron', sans-serif;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(10, 0, 20, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-purple);
    position: relative;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.notification-success .notification-content {
    border-top: 3px solid var(--neon-blue);
}

.notification-error .notification-content {
    border-top: 3px solid var(--neon-pink);
}

/* Quality Options Panel */
.quality-options-panel {
    background: linear-gradient(135deg, #2d2d3f 0%, #1a1a25 100%);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
    margin: 20px auto;
    max-width: 600px;
    padding: 20px;
    text-align: left;
    border: 1px solid #3d3d6b;
}

.quality-options-panel h3 {
    color: #bb86fc;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 8px rgba(187, 134, 252, 0.4);
}

.option-row {
    display: flex;
    margin: 12px 0;
    align-items: center;
}

.option-row label {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    width: 100%;
}

.option-row input[type="checkbox"] {
    appearance: none;
    background-color: #1a1a25;
    border: 2px solid #3d3d6b;
    border-radius: 4px;
    cursor: pointer;
    height: 20px;
    margin-right: 10px;
    position: relative;
    width: 20px;
    transition: all 0.2s ease;
}

.option-row input[type="checkbox"]:checked {
    background-color: #bb86fc;
    border-color: #bb86fc;
}

.option-row input[type="checkbox"]:checked::after {
    content: '✓';
    color: #121212;
    display: block;
    font-size: 14px;
    font-weight: bold;
    left: 4px;
    position: absolute;
    top: -1px;
}

.option-row input[type="checkbox"]:hover {
    border-color: #bb86fc;
    box-shadow: 0 0 5px rgba(187, 134, 252, 0.5);
}

.option-row:hover {
    background-color: rgba(187, 134, 252, 0.1);
    border-radius: 5px;
    padding: 3px 5px;
    margin: 9px -5px;
}

/* Enhanced Features Section */
.enhanced-features {
    margin-top: 60px;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8) 0%, rgba(30, 30, 50, 0.6) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(186, 1, 255, 0.2),
                0 0 40px rgba(0, 140, 255, 0.1);
}

.enhanced-features .glow-text {
    text-align: center;
    margin-bottom: 30px;
    color: #bb86fc;
    font-size: 2.2rem;
    text-shadow: 0 0 10px rgba(187, 134, 252, 0.6),
                 0 0 20px rgba(187, 134, 252, 0.3);
    letter-spacing: 1px;
}

.enhanced-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.enhanced-feature {
    display: flex;
    background: linear-gradient(135deg, rgba(40, 40, 70, 0.7) 0%, rgba(30, 30, 50, 0.7) 100%);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(187, 134, 252, 0.2);
}

.enhanced-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
                0 0 15px rgba(187, 134, 252, 0.3);
    border-color: rgba(187, 134, 252, 0.5);
}

.ef-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #bb86fc 0%, #3700b3 100%);
    border-radius: 12px;
    margin-right: 20px;
    flex-shrink: 0;
}

.ef-icon i {
    font-size: 24px;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.ef-content h3 {
    color: #bb86fc;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.ef-content p {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .enhanced-features .glow-text {
        font-size: 1.8rem;
    }
    
    .enhanced-features-grid {
        grid-template-columns: 1fr;
    }
    
    .enhanced-feature {
        flex-direction: column;
    }
    
    .ef-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.7) 0%, rgba(20, 20, 35, 0.7) 100%);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-blue) 100%);
    border-radius: 50%;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 28px;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Progress bar container */
.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    max-width: 500px;
}

/* Progress bar styles */
.progress-bar {
    height: 15px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 10px rgba(186, 1, 255, 0.4);
}

/* Progress bar fill */
.progress-fill {
    height: 100%;
    width: 0%; /* Will be updated via JavaScript */
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(186, 1, 255, 0.8);
}

/* Progress fill animation */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: progress-shine 1.5s linear infinite;
    transform: translateX(-100%);
}

@keyframes progress-shine {
    to {
        transform: translateX(100%);
    }
}

/* Progress percentage text */
.progress-percentage {
    min-width: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(186, 1, 255, 0.7);
    animation: pulse-text 2s infinite;
}

@keyframes pulse-text {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Advanced Options Modal specific styles */
.settings-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: var(--font-size-md);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.setting-item {
    background: rgba(10, 0, 20, 0.5);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    border: 1px solid rgba(186, 1, 255, 0.2);
    transition: all var(--transition-normal);
}

.setting-item:hover {
    border-color: var(--neon-purple);
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

.setting-item label {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 500;
    font-size: var(--font-size-md);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--neon-purple);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(186, 1, 255, 0.7);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--neon-purple);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(186, 1, 255, 0.7);
    border: none;
}

.slider:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--neon-blue);
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--neon-blue);
}

.slider-value {
    min-width: 45px;
    font-size: var(--font-size-sm);
    color: var(--neon-blue);
    font-weight: 700;
    text-align: right;
}

.preset-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.preset-btn {
    background: rgba(10, 0, 20, 0.6);
    border: 1px solid rgba(186, 1, 255, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 8px 16px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: var(--font-size-sm);
}

.preset-btn:hover {
    background: rgba(186, 1, 255, 0.2);
    border-color: var(--neon-purple);
    transform: translateY(-2px);
}

.preset-active {
    background: linear-gradient(45deg, rgba(186, 1, 255, 0.4), rgba(0, 240, 255, 0.4));
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(186, 1, 255, 0.5);
}

.settings-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Responsive adjustments for advanced options */
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .preset-options {
        flex-direction: column;
        align-items: center;
    }
    
    .preset-btn {
        width: 100%;
        max-width: 200px;
    }
} 