/* CSS Variables & Reset */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --bg-dark: #0f0f1a;
    --bg-color: #0f0f1a;
    /* Alias for index.html compatibility */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-color: #ffffff;
    /* Alias */
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #6366f1, #ec4899, #06b6d4);
    --gradient-2: linear-gradient(135deg, #06b6d4, #6366f1);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.6);
    /* Default Neon Glow */
}

/* Light Theme */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-color: #f8fafc;
    /* Critical for Light Theme */
    --bg-card: rgba(255, 255, 255, 0.95);
    --card-bg: rgba(255, 255, 255, 0.95);
    /* Alias */
    --bg-card-hover: rgba(255, 255, 255, 0.8);
    --text: #0f172a;
    --text-color: #0f172a;
    --text-muted: #475569;
    --border: rgba(0, 0, 0, 0.1);
    --card-border: rgba(0, 0, 0, 0.1);
    /* Alias */
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --primary: #6366f1;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.4);
    /* Light Mode Glow */
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Base Navbar Neon Effect */
.navbar {
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 4px 20px var(--shadow-glow), 0 0 10px var(--primary);
}

/* Ocean Theme */
[data-theme="ocean"] {
    --bg-dark: #0f1c2e;
    --bg-color: #0f1c2e;
    --text: #e0f7fa;
    --text-color: #e0f7fa;
    --text-muted: #81d4fa;
    --primary: #00bcd4;
    --secondary: #0288d1;
    --accent: #26c6da;
    --bg-card: rgba(15, 28, 46, 0.8);
    --card-bg: rgba(15, 28, 46, 0.8);
    --border: rgba(0, 188, 212, 0.3);
    --card-border: rgba(0, 188, 212, 0.3);
    --gradient-1: linear-gradient(135deg, #00bcd4 0%, #0288d1 100%);
    --glass-bg: rgba(15, 28, 46, 0.7);
    --shadow-glow: 0 0 20px rgba(0, 188, 212, 0.4);
}
















/* Sakura Theme */
[data-theme="sakura"] {
    --bg-dark: #fff0f5;
    --bg-color: #fff0f5;
    --text: #880e4f;
    --text-color: #880e4f;
    --text-muted: #d81b60;
    --primary: #f06292;
    --secondary: #ec407a;
    --accent: #ff80ab;
    --bg-card: rgba(255, 240, 245, 0.9);
    --card-bg: rgba(255, 240, 245, 0.9);
    --border: rgba(240, 98, 146, 0.3);
    --card-border: rgba(240, 98, 146, 0.3);
    --gradient-1: linear-gradient(135deg, #f48fb1 0%, #ec407a 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-glow: 0 0 20px rgba(240, 98, 146, 0.3);
}




/* Royal Theme */
[data-theme="royal"] {
    --bg-dark: #1a0b2e;
    --bg-color: #1a0b2e;
    --text: #fceea7;
    --text-color: #fceea7;
    --text-muted: #9c88ff;
    --primary: #fceea7;
    --secondary: #4834d4;
    --accent: #ffd700;
    --bg-card: rgba(26, 11, 46, 0.9);
    --card-bg: rgba(26, 11, 46, 0.9);
    --border: rgba(252, 238, 167, 0.4);
    --card-border: rgba(252, 238, 167, 0.4);
    --gradient-1: linear-gradient(135deg, #fceea7 0%, #dabf5e 100%);
    --glass-bg: rgba(26, 11, 46, 0.8);
    --shadow-glow: 0 0 25px rgba(252, 238, 167, 0.4);
}

/* Retro Theme */
[data-theme="retro"] {
    --bg-dark: #f4e4c1;
    --bg-color: #f4e4c1;
    --text: #5d4037;
    --text-color: #5d4037;
    --text-muted: #8d6e63;
    --primary: #d84315;
    --secondary: #ff7043;
    --accent: #ffab91;
    --bg-card: rgba(244, 228, 193, 0.9);
    --card-bg: rgba(244, 228, 193, 0.9);
    --border: rgba(216, 67, 21, 0.3);
    --card-border: rgba(216, 67, 21, 0.3);
    --gradient-1: linear-gradient(135deg, #ff7043 0%, #d84315 100%);
    --glass-bg: rgba(244, 228, 193, 0.85);
    --shadow-glow: 0 0 20px rgba(216, 67, 21, 0.3);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: rotate(15deg) scale(1.1);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:active i {
    transform: rotate(180deg);
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    top: 50%;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    background: var(--primary);
}

.particle:nth-child(2) {
    left: 20%;
    top: 80%;
    animation-delay: -2s;
    background: var(--secondary);
}

.particle:nth-child(3) {
    left: 35%;
    top: 50%;
    animation-delay: -4s;
    background: var(--accent);
}

.particle:nth-child(4) {
    left: 50%;
    top: 30%;
    animation-delay: -6s;
    background: var(--primary);
}

.particle:nth-child(5) {
    left: 65%;
    top: 70%;
    animation-delay: -8s;
    background: var(--secondary);
}

.particle:nth-child(6) {
    left: 80%;
    top: 40%;
    animation-delay: -10s;
    background: var(--accent);
}

.particle:nth-child(7) {
    left: 90%;
    top: 60%;
    animation-delay: -12s;
    background: var(--primary);
}

.particle:nth-child(8) {
    left: 45%;
    top: 90%;
    animation-delay: -14s;
    background: var(--secondary);
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }

    25% {
        transform: translateY(-100px) translateX(20px) scale(1.5);
        opacity: 1;
    }

    50% {
        transform: translateY(-200px) translateX(-10px) scale(1);
        opacity: 0.6;
    }

    75% {
        transform: translateY(-100px) translateX(30px) scale(1.3);
        opacity: 0.8;
    }
}

/* Animated Lines */
.animated-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.1;
}

.line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    animation: lineSweep 8s infinite ease-in-out;
}

.line:nth-child(1) {
    left: 25%;
    animation-delay: 0s;
}

.line:nth-child(2) {
    left: 50%;
    animation-delay: -2.5s;
}

.line:nth-child(3) {
    left: 75%;
    animation-delay: -5s;
}

@keyframes lineSweep {

    0%,
    100% {
        transform: translateX(0) scaleY(0.5);
        opacity: 0;
    }

    50% {
        transform: translateX(100px) scaleY(1);
        opacity: 0.3;
    }
}

/* Light Theme Particles - Darker colors */
[data-theme="light"] .particle {
    opacity: 0.4;
}

[data-theme="light"] .animated-lines {
    opacity: 0.05;
}

/* Ocean Theme - Enhanced glow */
[data-theme="ocean"] .particle {
    box-shadow: 0 0 10px currentColor;
    opacity: 0.8;
}

[data-theme="ocean"] .animated-lines {
    opacity: 0.15;
}

[data-theme="ocean"] .line {
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    width: 2px;
}

/* Falling Media Icons Animation */
.falling-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.icon-fall {
    position: absolute;
    top: -50px;
    left: var(--left, 50%);
    font-size: 16px;
    opacity: 0.4;
    animation: iconFall 12s linear infinite;
    animation-delay: var(--delay, 0s);
}

.icon-fall.fa-youtube {
    color: #ff0000;
}

.icon-fall.fa-instagram {
    color: #e1306c;
}

.icon-fall.fa-tiktok {
    color: #00f2ea;
}

.icon-fall.fa-facebook {
    color: #1877f2;
}

.icon-fall.fa-spotify {
    color: #1DB954;
}

.icon-fall.fa-soundcloud {
    color: #ff5500;
}

.icon-fall.fa-twitter {
    color: #1da1f2;
}

.icon-fall.fa-reddit {
    color: #ff4500;
}

.icon-fall.fa-pinterest {
    color: #e60023;
}

.icon-fall.fa-threads {
    color: #833ab4;
}

@keyframes iconFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    font-size: 1.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pro-badge {
    background: var(--gradient-1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.hero-badge i {
    color: #fbbf24;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Download Box */
.download-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.input-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.url-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    color: var(--text);
    outline: none;
}

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

.paste-btn {
    background: var(--primary);
    border: none;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.paste-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.download-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.8rem 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.toggle-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.toggle-option input {
    display: none;
}

.toggle-slider {
    width: 44px;
    height: 24px;
    background: #374151;
    border-radius: 12px;
    position: relative;
    transition: background 0.3s;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.toggle-option input:checked+.toggle-slider {
    background: var(--primary);
}

.toggle-option input:checked+.toggle-slider::after {
    transform: translateX(20px);
}

.option-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.option-label i {
    color: var(--accent);
    margin-right: 0.3rem;
}

.quality-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.quality-select option {
    background: var(--bg-dark);
}

.download-btn {
    width: 100%;
    background: var(--gradient-1);
    border: none;
    padding: 1.2rem 2rem;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.download-btn::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;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Supported Platforms */
.supported-platforms {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
    overflow: hidden;
    max-width: 100%;
}

.supported-platforms>span {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.platform-icons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 0;
}

.platform-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s;
    cursor: pointer;
}

.platform-icon:hover {
    transform: translateY(-3px) scale(1.1);
}

.platform-icon.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px var(--primary), 0 10px 30px rgba(99, 102, 241, 0.4);
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 3px var(--primary), 0 10px 30px rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 0 0 5px var(--primary), 0 10px 40px rgba(99, 102, 241, 0.6);
    }
}

.platform-icon[data-platform] {
    position: relative;
}

.platform-icon[data-platform]::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.platform-icon.active::after {
    transform: translateX(-50%) scale(1);
}

.platform-icon.all {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
}

.selected-platform-label {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-block;
}

.platform-icon.youtube {
    background: #ff0000;
}

.platform-icon.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.platform-icon.tiktok {
    background: #000;
    border: 1px solid #fff;
}

.platform-icon.facebook {
    background: #1877f2;
}

.platform-icon.twitter {
    background: #000;
}

.platform-icon.threads {
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
}

.platform-icon.reddit {
    background: #ff4500;
}

.platform-icon.netflix {
    background: #e50914;
}

.platform-icon.douyin {
    background: linear-gradient(45deg, #25f4ee, #fe2c55, #000);
}

.platform-icon.soundcloud {
    background: #ff5500;
}

.platform-icon.spotify {
    background: #1DB954;
}

.platform-icon.ytmusic {
    background: linear-gradient(45deg, #ff0000, #cc0000);
}

/* Auth Buttons in Nav */
.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
}

.nav-btn-login {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: 0.3s;
}

.nav-btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-btn-signup {
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.nav-btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-buttons {
        display: none;
        /* Hide on mobile for now or add to hamburger menu */
    }
}

.stats-section {
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Section Styles */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Platforms Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.platform-card:hover {
    transform: translateY(-5px);
}

.platform-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.platform-card.youtube i {
    color: #ff0000;
}

.platform-card.instagram i {
    color: #e4405f;
}

.platform-card.tiktok i {
    color: #fff;
}

.platform-card.facebook i {
    color: #1877f2;
}

.platform-card.twitter i {
    color: #fff;
}

.platform-card.pinterest i {
    color: #e60023;
}

.platform-card.threads i {
    color: #833ab4;
}

.platform-card.reddit i {
    color: #ff4500;
}

.platform-card.douyin i {
    color: #fe2c55;
}

.platform-card.netflix i {
    color: #e50914;
}

.platform-card.soundcloud i {
    color: #ff5500;
}

.platform-card.spotify i {
    color: #1DB954;
}

.platform-card.ytmusic i {
    color: #ff0000;
}

.platform-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.platform-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Steps */
.steps-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 1rem 0;
}

.step-card h3 {
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header i {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-service {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

/* Footer Noun Project Style */
.footer {
    background: #000000;
    /* Pure black */
    border-top: none;
    padding: 80px 40px 40px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    /* 5 columns */
    gap: 40px;
    text-align: left;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .footer-brand-col {
        grid-column: span 2;
    }

    .footer-ad-col {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-brand-col,
    .footer-ad-col {
        grid-column: span 1;
    }
}

/* Col 1: Brand & Newsletter */
.footer-brand-col {
    padding-right: 20px;
}

.footer-brand-col .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    text-decoration: none;
}

.newsletter-box input {
    width: 100%;
    background: transparent;
    border: 1px solid #333;
    padding: 12px 15px;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 30px;
    transition: 0.3s;
}

.newsletter-box input:focus {
    border-color: #666;
    outline: none;
}

.social-connect p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background: #333;
    /* Dark circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #555;
    color: white;
}

/* Links Columns */
.footer-col h4 {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-col a {
    display: block;
    color: #fff;
    /* White links */
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col a:hover {
    color: #888;
}

/* Ad Column */
.footer-ad-col h4 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.ad-placeholder {
    background: #111;
    border: 1px solid #222;
    padding: 20px;
    border-radius: 4px;
    transition: 0.3s;
}

.ad-placeholder:hover {
    border-color: #444;
}

.ad-placeholder p {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
}

.ad-placeholder span {
    font-size: 0.85rem;
    color: #666;
}

/* Bottom */
.footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0;
    padding-top: 20px;
    border-top: none;
    color: #444;
    font-size: 0.8rem;
    text-align: left;
    padding-left: 40px;
}

.footer-bottom i {
    color: #ef4444;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transition: all 0.3s;
    z-index: 3000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast i {
    color: #22c55e;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .download-options {
        flex-direction: column;
    }

    .toggle-option {
        width: 100%;
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .download-buttons {
        flex-direction: column;
    }
}

/* Watermark Remover Section */
.watermark-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
}

.watermark-tool {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

/* Tabs */
.wm-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.wm-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.wm-tab:hover {
    color: var(--text);
    background: rgba(99, 102, 241, 0.1);
}

.wm-tab.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    border-bottom: 2px solid var(--primary);
}

.wm-tab-content {
    padding: 1.5rem;
}

/* Embed Container */
.embed-info {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

.embed-info p {
    color: #22c55e;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.embed-container {
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    min-height: 500px;
}

.embed-container iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* Alternative Links */
.alt-links {
    margin-top: 1.5rem;
    text-align: center;
}

.alt-links p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.alt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.alt-btn:hover {
    background: var(--primary);
    color: white;
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
}

.mode-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Step Container */
.wm-step {
    padding: 1.5rem;
}

/* Mask Header */
.mask-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.mask-header>span {
    font-weight: 600;
    color: var(--accent);
}

.brush-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.brush-controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.brush-controls input[type="range"] {
    width: 100px;
    cursor: pointer;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-small:hover {
    background: #ef4444;
    color: white;
}

/* Mask Instruction */
.mask-instruction {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.mask-instruction i {
    color: var(--primary);
}

/* Canvas Container */
.canvas-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: 450px;
    background: #1a1a2e;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

#imageCanvas {
    max-width: 100%;
    max-height: 450px;
    display: block;
}

#maskCanvas {
    position: absolute;
    cursor: crosshair;
    pointer-events: auto;
}

/* Result Title */
.result-title {
    text-align: center;
    color: #22c55e;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-title i {
    margin-right: 0.5rem;
}

/* Side by Side Comparison */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.comparison-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-label {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-label.result-label {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    color: #22c55e;
}

.comparison-image {
    padding: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-image img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 8px;
    object-fit: contain;
}


.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.02);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.upload-area h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--text-muted);
}

.supported-formats {
    font-size: 0.8rem !important;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    display: inline-block;
}

.preview-area {
    animation: fadeInUp 0.3s ease;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.preview-header span {
    font-weight: 600;
    color: var(--accent);
}

.btn-reset {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-reset:hover {
    background: #ef4444;
    color: white;
}

.preview-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: 450px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-container img,
.preview-container video {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    display: block;
}

#selectionCanvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: crosshair;
    z-index: 10;
}

.selection-box {
    position: absolute;
    border: 3px dashed #ff0000;
    background: rgba(255, 0, 0, 0.25);
    pointer-events: none;
    z-index: 11;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.instruction-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.instruction-text i {
    color: var(--primary);
}

.watermark-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.coords-display {
    display: flex;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.coords-display span {
    color: var(--text-muted);
}

.coords-display strong {
    color: var(--accent);
    font-family: monospace;
}

.btn-remove-wm {
    background: var(--gradient-1);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

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

.btn-remove-wm:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.progress-bar {
    position: relative;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 0.9rem;
}

.result-area {
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.result-area h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #22c55e;
}

.result-area h3 i {
    margin-right: 0.5rem;
}

.result-preview {
    margin-bottom: 1.5rem;
}

.result-preview img,
.result-preview video {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-sm);
}

.result-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-download-result {
    background: var(--gradient-1);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-download-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-new {
    background: transparent;
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-new:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .watermark-controls {
        flex-direction: column;
    }

    .coords-display {
        width: 100%;
        justify-content: center;
    }

    .btn-remove-wm {
        width: 100%;
        justify-content: center;
    }

    .result-buttons {
        flex-direction: column;
    }
}

/* ========== VIDEO TO AUDIO CONVERTER ========== */
.audio-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.03), transparent);
}

.audio-tool {
    max-width: 700px;
    margin: 2rem auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.audio-step {
    padding: 2rem;
}

.video-preview-container {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}

.video-preview-container video {
    width: 100%;
    max-height: 300px;
    display: block;
}

.audio-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 500px) {
    .audio-options {
        grid-template-columns: 1fr;
    }
}

.format-select,
.quality-select {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.format-select label,
.quality-select label {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.format-select label i,
.quality-select label i {
    color: var(--primary);
}

.format-select select,
.quality-select select {
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.format-select select:hover,
.quality-select select:hover {
    border-color: var(--primary);
}

.format-select select:focus,
.quality-select select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-convert {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.btn-convert:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.audio-result {
    text-align: center;
    padding: 1rem 0;
}

.audio-result>i {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.audio-result h3 {
    color: #22c55e;
    margin-bottom: 1.5rem;
}

.audio-player-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.audio-player-container audio {
    width: 100%;
}

.audio-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.audio-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audio-info i {
    color: var(--accent);
}

/* Light theme adjustments */
[data-theme="light"] .audio-tool {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .format-select select,
[data-theme="light"] .quality-select select {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
}

/* ========== BACKGROUND REMOVER ========== */
.bg-remover-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03), transparent);
}

.checkerboard-bg {
    background-color: #eee;
    background-image:
        linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
        linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

[data-theme="dark"] .checkerboard-bg {
    background-color: #333;
    background-image:
        linear-gradient(45deg, #444 25%, transparent 25%, transparent 75%, #444 75%, #444),
        linear-gradient(45deg, #444 25%, transparent 25%, transparent 75%, #444 75%, #444);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Live Anime Mascot */
.mascot-wrapper {
    position: absolute;
    top: -160px;
    /* Sit on top of the box */
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 160px;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.live-mascot {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    animation: mascotFloat 3s ease-in-out infinite;
    transform-origin: bottom center;
}

.mascot-bubble {
    position: absolute;
    top: -40px;
    right: -80px;
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: bubblePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s forwards;
}

.mascot-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

@keyframes mascotFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

@keyframes bubblePop {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


/* Live Background Canvas */
.live-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Behind everything */
    overflow: hidden;
    background: #0a0a0a;
    /* Default dark */
}

#bgCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gradient Overlay to make text readable */
.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

/* Theme Button Animation */
.theme-toggle:active {
    transform: scale(0.95);
}

/* ============================================
   ENHANCED HERO SECTION - Glassmorphism
   ============================================ */

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    animation: heroGradientRotate 15s linear infinite;
    opacity: 0.1;
    z-index: -1;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Download Box with Glassmorphism */
.download-box {
    position: relative;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.download-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    animation: borderGlow 3s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes borderGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.7;
    }
}

/* Hero Badge Enhancement */
.hero-badge {
    background: rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    padding: 5rem 0;
    position: relative;
}

.faq-section .section-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   SHARE BUTTONS
   ============================================ */

.share-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.share-section span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877F2, #0d65d9);
}

.share-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.share-btn.copy-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

/* Tablets & Small Laptops */
@media (max-width: 1024px) {
    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets Portrait */
@media (max-width: 768px) {

    /* Navigation - Hamburger Menu */
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 99;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        text-align: center;
        border-radius: var(--radius-sm);
    }

    .nav-links a:hover {
        background: var(--bg-card);
    }

    /* Hero Section */
    .hero {
        padding: 6rem 1rem 4rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .download-box {
        padding: 1.5rem !important;
        margin: 0 0.5rem;
    }

    .download-options {
        flex-direction: column;
        align-items: stretch;
    }

    .toggle-option {
        justify-content: center;
    }

    .quality-select {
        width: 100%;
    }

    /* Platform Icons */
    .platform-icons {
        gap: 0.5rem;
    }

    .platform-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.75rem;
    }

    .features-grid,
    .platforms-grid,
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card,
    .platform-card,
    .step-card {
        padding: 1.5rem;
    }

    /* FAQ */
    .faq-question {
        font-size: 1rem;
        padding: 1.2rem;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .share-section {
        flex-direction: column;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .gradient-text {
        display: block;
    }

    .download-box {
        padding: 1rem !important;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .url-input {
        width: 100%;
        padding: 1rem;
    }

    .paste-btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .download-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .platform-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .step-card h3 {
        font-size: 1.1rem;
    }

    /* Falling icons - reduce on mobile */
    .falling-icons {
        display: none;
    }

    /* Share buttons smaller */
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Extra Small Phones */
@media (max-width: 350px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .logo span {
        font-size: 1rem;
    }

    .pro-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 5rem 1rem 2rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        display: none;
    }

    .bg-animation {
        opacity: 0.3;
    }
}

/* Print Styles */
@media print {

    .bg-animation,
    .falling-icons,
    .particles,
    .animated-lines {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* ============================================
   DOWNLOAD HISTORY PANEL
   ============================================ */

.history-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.history-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.history-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--border);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.history-panel.open {
    right: 0;
}

.history-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-header h3 {
    color: var(--text);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-header h3 i {
    color: var(--primary);
}

.history-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.history-close:hover {
    color: var(--secondary);
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.history-item:hover {
    border-color: var(--primary);
    transform: translateX(-5px);
}

.history-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.history-item-header i {
    font-size: 1.5rem;
}

.history-item-header .platform-youtube {
    color: #ff0000;
}

.history-item-header .platform-instagram {
    color: #e1306c;
}

.history-item-header .platform-tiktok {
    color: #00f2ea;
}

.history-item-header .platform-facebook {
    color: #1877f2;
}

.history-item-header .platform-twitter {
    color: #1da1f2;
}

.history-item-header .platform-other {
    color: var(--primary);
}

.history-item-title {
    flex: 1;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.history-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.history-item-actions button {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.history-item-actions .redownload-btn {
    background: var(--primary);
    color: white;
}

.history-item-actions .redownload-btn:hover {
    background: var(--primary-dark);
}

.history-item-actions .delete-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.history-item-actions .delete-btn:hover {
    background: #ef4444;
    color: white;
}

.history-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.history-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.history-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.clear-history-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.clear-history-btn:hover {
    background: #ef4444;
    color: white;
}

/* ============================================
   BATCH DOWNLOAD MODAL
   ============================================ */

.batch-btn {
    position: fixed;
    bottom: 170px;
    right: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.batch-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.batch-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.batch-modal.open {
    display: flex;
}

.batch-content {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.batch-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.batch-header h3 {
    color: var(--text);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.batch-header h3 i {
    color: #10b981;
}

.batch-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.batch-textarea {
    width: 100%;
    min-height: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    color: var(--text);
    font-size: 0.9rem;
    resize: vertical;
    font-family: 'Consolas', monospace;
}

.batch-textarea::placeholder {
    color: var(--text-muted);
}

.batch-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.batch-progress {
    margin-top: 1rem;
    display: none;
}

.batch-progress.active {
    display: block;
}

.batch-progress-bar {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}

.batch-progress-fill {
    height: 100%;
    background: var(--gradient-1);
    width: 0%;
    transition: width 0.3s;
}

.batch-progress-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.batch-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
}

.batch-footer button {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.batch-start-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
}

.batch-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.batch-cancel-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.batch-cancel-btn:hover {
    border-color: var(--text);
    color: var(--text);
}

/* ============================================
   KEYBOARD SHORTCUTS HINT
   ============================================ */

.keyboard-hints {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.keyboard-hints kbd {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.7rem;
    margin-right: 0.3rem;
}

.auto-paste-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auto-paste-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile adjustments for floating buttons */
@media (max-width: 768px) {

    .history-btn,
    .batch-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .keyboard-hints {
        display: none;
    }

    .history-panel {
        width: 100%;
        right: -100%;
    }
}