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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-pink: #ff10f0;
    --accent-cyan: #00ffff;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #312e81 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-bg-solid: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-pink-cyan: linear-gradient(135deg, #ff10f0 0%, #00ffff 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Particles Container */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 16, 240, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Animated Logo Particles Background */
.animated-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

/* Pink Particles */
.particle.pink {
    background: radial-gradient(circle, rgba(255, 16, 240, 0.4) 0%, rgba(255, 16, 240, 0.2) 50%, transparent 100%);
}

/* Cyan Particles */
.particle.cyan {
    background: radial-gradient(circle, rgba(0, 255, 255, 0.4) 0%, rgba(0, 255, 255, 0.2) 50%, transparent 100%);
}

/* White Star Particles */
.particle.star {
    background: rgba(255, 255, 255, 0.3);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Cloud-like Particles */
.particle.cloud {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
}

/* Particle Sizes */
.particle.small {
    width: 20px;
    height: 20px;
}

.particle.medium {
    width: 40px;
    height: 40px;
}

.particle.large {
    width: 60px;
    height: 60px;
}

/* Floating Animations */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(15px) rotate(5deg);
    }
    50% {
        transform: translateY(-60px) translateX(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) translateX(-15px) rotate(3deg);
    }
}

@keyframes floatLeftRight {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(30px) translateY(-20px) rotate(-5deg);
    }
    50% {
        transform: translateX(-20px) translateY(-40px) rotate(5deg);
    }
    75% {
        transform: translateX(20px) translateY(-20px) rotate(-3deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(calc(-50% - 10px));
    }
}

@keyframes rotateSlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Individual Particle Animations */
.particle-1 {
    top: 10%;
    left: 15%;
    animation: floatUpDown 12s ease-in-out infinite;
}

.particle-2 {
    top: 20%;
    right: 20%;
    animation: floatLeftRight 15s ease-in-out infinite;
}

.particle-3 {
    top: 40%;
    left: 30%;
    animation: floatUpDown 10s ease-in-out infinite;
    animation-delay: -2s;
}

.particle-4 {
    top: 60%;
    right: 25%;
    animation: floatLeftRight 14s ease-in-out infinite;
    animation-delay: -4s;
}

.particle-5 {
    bottom: 20%;
    left: 20%;
    animation: floatUpDown 13s ease-in-out infinite;
    animation-delay: -1s;
}

.particle-6 {
    top: 30%;
    left: 60%;
    animation: floatLeftRight 11s ease-in-out infinite;
    animation-delay: -3s;
}

.particle-7 {
    bottom: 30%;
    right: 15%;
    animation: floatUpDown 16s ease-in-out infinite;
    animation-delay: -5s;
}

.particle-8 {
    top: 50%;
    left: 10%;
    animation: floatLeftRight 12s ease-in-out infinite;
    animation-delay: -2.5s;
}

.particle-9 {
    top: 70%;
    right: 40%;
    animation: floatUpDown 14s ease-in-out infinite;
    animation-delay: -3.5s;
}

.particle-10 {
    bottom: 15%;
    left: 50%;
    animation: floatLeftRight 13s ease-in-out infinite;
    animation-delay: -1.5s;
}

.particle-11 {
    top: 15%;
    right: 50%;
    animation: floatUpDown 11s ease-in-out infinite;
    animation-delay: -4.5s;
}

.particle-12 {
    top: 80%;
    left: 70%;
    animation: floatLeftRight 15s ease-in-out infinite;
    animation-delay: -6s;
}

.particle-13 {
    top: 25%;
    right: 10%;
    animation: floatUpDown 12s ease-in-out infinite;
    animation-delay: -2s;
}

.particle-14 {
    bottom: 40%;
    right: 60%;
    animation: floatLeftRight 14s ease-in-out infinite;
    animation-delay: -4s;
}

.particle-15 {
    top: 65%;
    left: 45%;
    animation: floatUpDown 13s ease-in-out infinite;
    animation-delay: -3s;
}

.particle-16 {
    top: 35%;
    left: 80%;
    animation: floatLeftRight 11s ease-in-out infinite;
    animation-delay: -1s;
}

.particle-17 {
    bottom: 25%;
    left: 35%;
    animation: floatUpDown 15s ease-in-out infinite;
    animation-delay: -5s;
}

.particle-18 {
    top: 55%;
    right: 30%;
    animation: floatLeftRight 12s ease-in-out infinite;
    animation-delay: -2.5s;
}

.particle-19 {
    bottom: 50%;
    right: 50%;
    animation: floatUpDown 14s ease-in-out infinite;
    animation-delay: -3.5s;
}

.particle-20 {
    top: 45%;
    left: 25%;
    animation: floatLeftRight 13s ease-in-out infinite;
    animation-delay: -1.5s;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Header */
.header {
    text-align: center;
    padding: 50px 30px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
    will-change: transform;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.header:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.7);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 16, 240, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 20px;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-social .social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg-solid);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-social .social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.header-social .social-link:hover i.fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-social .social-link:hover i.fa-facebook {
    color: #1877f2;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.logo-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.logo-image {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 16, 240, 0.5));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 20px rgba(255, 16, 240, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.7)); }
}

.logo-text {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 16, 240, 0.5);
    animation: textShimmer 3s ease-in-out infinite;
}

/* Navigation Menu Styles */
.main-nav {
    position: relative;
    margin: 20px 0;
    z-index: 10;
}

.main-nav.footer-nav {
    margin: 15px 0;
}

.mobile-menu-toggle {
    display: none;
    background: var(--card-bg-solid);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.mobile-menu-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    background: var(--card-bg-solid);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-link.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 6px;
        margin-top: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 8px 12px;
        font-size: 11px;
    }
}

@keyframes textShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.legal-notice {
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    z-index: 1;
    animation: noticePulse 2s ease-in-out infinite;
}

@keyframes noticePulse {
    0%, 100% { border-color: rgba(255, 193, 7, 0.3); }
    50% { border-color: rgba(255, 193, 7, 0.6); }
}

.legal-notice a {
    color: #ffc107;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s;
}

.legal-notice a:hover {
    color: #ffeb3b;
}

.legal-notice-small {
    margin: 15px 0;
    padding: 10px 15px;
    background: rgba(255, 152, 0, 0.1);
    border-left: 3px solid #ff9800;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.legal-notice-small a {
    color: #ff9800;
    text-decoration: underline;
    font-weight: 600;
}

.legal-notice-small a:hover {
    color: #ffb74d;
}

/* Mode Toggle Section */
.mode-toggle-section {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    animation: fadeIn 0.8s ease-out 0.1s both;
}

.mode-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.mode-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.mode-toggle input:checked ~ .mode-label,
.mode-toggle:has(input:checked) .mode-label:last-child {
    color: var(--text-primary);
}

.mode-toggle:has(input:not(:checked)) .mode-label:first-child {
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-bg-solid);
    border: 2px solid var(--border-color);
    transition: 0.3s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.toggle-slider:hover {
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.input-mode {
    display: block;
}

.input-mode.hidden {
    display: none;
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out 0.2s both;
    will-change: transform;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.input-section:hover {
    transform: translateY(-2px);
}

.input-container {
    position: relative;
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.input-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), var(--shadow-xl);
    transform: translateY(-2px);
}

.url-input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: var(--text-primary);
    resize: vertical;
    font-family: inherit;
}

.url-input.textarea-input {
    min-height: 120px;
    line-height: 1.6;
    padding-right: 50px;
}

.url-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-container:has(.textarea-input) .clear-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.clear-btn.hidden {
    display: none;
}

.clear-btn.show {
    display: flex;
}

.parse-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.parse-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.parse-btn:hover::before {
    width: 300px;
    height: 300px;
}

.parse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

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

.parse-btn.parsing {
    pointer-events: none;
    opacity: 0.8;
}

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.parse-btn.parsing .btn-spinner {
    display: block;
}

.parse-btn.parsing .btn-label {
    display: none;
}

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

.input-tips {
    margin-top: 12px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.download-button-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.download-all-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 18px 48px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.download-all-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.download-all-btn:hover::before {
    width: 300px;
    height: 300px;
}

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

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

.download-all-btn.downloading {
    pointer-events: none;
    opacity: 0.8;
}

.download-all-btn.downloading .btn-spinner {
    display: block;
}

.download-all-btn.downloading .btn-label {
    display: none;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.loading.hidden {
    display: none;
}

.loading-animation {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.magic-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.circle-outer,
.circle-middle,
.circle-inner {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle-outer {
    width: 100%;
    height: 100%;
    border-top-color: var(--accent-pink);
    animation: rotate 2s linear infinite;
}

.circle-middle {
    width: 80%;
    height: 80%;
    border-right-color: var(--accent-cyan);
    animation: rotate 1.5s linear infinite reverse;
}

.circle-inner {
    width: 60%;
    height: 60%;
    border-bottom-color: var(--primary-color);
    animation: rotate 1s linear infinite;
}

.magic-wand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.particle:nth-child(1) { 
    top: 10%; 
    left: 20%; 
    background: var(--accent-pink);
    animation-delay: 0s; 
}
.particle:nth-child(2) { 
    top: 30%; 
    right: 20%; 
    background: var(--accent-cyan);
    animation-delay: 0.5s; 
}
.particle:nth-child(3) { 
    bottom: 30%; 
    left: 30%; 
    background: var(--accent-pink);
    animation-delay: 1s; 
}
.particle:nth-child(4) { 
    bottom: 10%; 
    right: 30%; 
    background: var(--accent-cyan);
    animation-delay: 1.5s; 
}
.particle:nth-child(5) { 
    top: 50%; 
    left: 50%; 
    background: var(--primary-color);
    animation-delay: 2s; 
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-30px) scale(1.3); opacity: 1; }
}

.loading-text {
    margin-bottom: 20px;
}

.loading-title {
    display: block;
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.loading-subtitle {
    display: block;
    font-size: 16px;
    color: var(--text-secondary);
}

.loading-progress {
    max-width: 300px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 16, 240, 0.5);
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Video Info */
.video-info {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    padding: 30px;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out;
    will-change: transform;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.video-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 35px -5px rgba(99, 102, 241, 0.3);
}

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

.video-info.hidden {
    display: none;
}

.video-preview {
    position: relative;
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.video-preview:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s;
}

.play-btn:hover {
    transform: scale(1.1);
}

.video-details {
    margin-bottom: 30px;
}

.video-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.video-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-item i {
    color: var(--primary-color);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Download Section */
.download-section {
    margin-bottom: 30px;
}

.download-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-title i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iconRotate 3s linear infinite;
}

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

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.download-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out both;
    will-change: transform;
}

.download-item:nth-child(1) { animation-delay: 0.1s; }
.download-item:nth-child(2) { animation-delay: 0.2s; }
.download-item:nth-child(3) { animation-delay: 0.3s; }
.download-item:nth-child(4) { animation-delay: 0.4s; }

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

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

.download-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
}

.download-item.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.download-info {
    margin-bottom: 16px;
}

.download-type {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-type i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.download-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    background: var(--card-bg-solid);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.download-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.download-btn i {
    transition: transform 0.3s;
}

.download-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

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

.download-btn.primary:hover {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

/* Prompt Section */
.prompt-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
}

.prompt-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt-title i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prompt-content {
    background: var(--card-bg-solid);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 60px;
    border: 1px solid var(--border-color);
}

.copy-prompt-btn {
    background: var(--card-bg-solid);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.copy-prompt-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Share Section */
.share-section {
    margin-bottom: 30px;
}

.share-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-title i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.share-links {
    display: flex;
    gap: 12px;
}

.share-item {
    flex: 1;
    display: flex;
    gap: 8px;
}

.share-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    background: var(--card-bg-solid);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
}

.share-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.copy-btn {
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Error Message */
.error-msg {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--error-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--error-color);
    margin-bottom: 30px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-msg.hidden {
    display: none;
}

.error-msg i {
    font-size: 24px;
}

/* Tutorial Section */
.tutorial-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    animation: fadeIn 0.8s ease-out;
}

.tutorial-header {
    text-align: center;
    margin-bottom: 40px;
}

.tutorial-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tutorial-title i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tutorial-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.tutorial-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--card-bg-solid);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tutorial-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.tutorial-step:hover::before {
    left: 100%;
}

.tutorial-step:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    transform: translateY(-3px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-title i {
    color: var(--primary-color);
    font-size: 20px;
}

.step-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.step-image-container {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    position: relative;
}

.step-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
}

.step-image-placeholder {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.step-image-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
    display: block;
}

.step-image-placeholder p {
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.step-image-placeholder small {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.step-icon {
    text-align: center;
    margin-top: 16px;
    padding: 20px;
}

.step-icon i {
    font-size: 48px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.tutorial-note {
    margin-top: 40px;
    padding: 20px 24px;
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tutorial-note i {
    color: #ffc107;
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tutorial-note p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.tutorial-note strong {
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-text i {
    color: var(--success-color);
    animation: iconPulse 2s ease-in-out infinite;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg-solid);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.social-link:hover i.fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-link:hover i.fa-facebook {
    color: #1877f2;
}

.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 6px;
}

.footer-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.footer-separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

.footer-brand {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-brand p {
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: var(--success-color);
    color: white;
    padding: 18px 28px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    backdrop-filter: blur(10px);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.hidden {
    display: none;
}

.toast.error {
    background: var(--error-color);
}

.toast.warning {
    background: var(--warning-color);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-content i {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 30px 20px;
        animation: fadeIn 0.8s ease-out;
    }

    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .header-social {
        gap: 12px;
    }

    .header-social .social-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .logo {
        margin-bottom: 0;
    }

    .logo-text {
        font-size: 32px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

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

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

    .download-options {
        grid-template-columns: 1fr;
    }

    .video-info {
        padding: 20px;
        animation: fadeIn 0.8s ease-out;
    }
    
    /* Reduce particles on mobile for performance */
    .animated-particles .particle {
        opacity: 0.2;
    }
    
    /* Hide some particles on mobile */
    .particle-11,
    .particle-12,
    .particle-13,
    .particle-14,
    .particle-15,
    .particle-16,
    .particle-17,
    .particle-18,
    .particle-19,
    .particle-20 {
        display: none;
    }
    
    /* Simplify animations on mobile */
    .header,
    .video-info {
        animation: fadeIn 0.8s ease-out;
    }
    
    /* Reduce animation complexity */
    .particle {
        animation-duration: 8s !important;
    }

    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-separator {
        display: none;
    }

    .tutorial-section {
        padding: 30px 20px;
    }

    .tutorial-title {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }

    .tutorial-subtitle {
        font-size: 16px;
    }

    .tutorial-steps {
        gap: 20px;
    }

    .tutorial-step {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .step-title {
        font-size: 18px;
    }

    .step-description {
        font-size: 14px;
    }

    .step-image {
        max-height: 250px;
    }

    .tutorial-note {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }

    .tutorial-note i {
        margin: 0 auto;
    }
}

/* Image Hover Fix Button */
.image-fix-button {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
    display: none;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: bounce 1s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.image-fix-button.show {
    display: flex;
}

.image-fix-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.7);
}

.image-fix-button i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .image-fix-button {
        right: 10px;
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Fixed Download Button for Non-Home Pages */
.fixed-download-button {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 16px 28px;
    color: white;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    animation: fixed-button-pulse 4s ease-in-out infinite, fixed-button-bounce 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.fixed-download-button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.8), 0 0 30px rgba(118, 75, 162, 0.4);
    animation: fixed-button-pulse 2s ease-in-out infinite, fixed-button-bounce-hover 2.5s ease-in-out infinite;
}

.fixed-download-button i {
    font-size: 18px;
    animation: icon-wiggle 3s ease-in-out infinite;
}

.fixed-download-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 50px;
    z-index: -1;
    opacity: 0.5;
    animation: ripple 3s ease-out infinite;
}

@keyframes fixed-button-pulse {
    0%, 100% {
        box-shadow: 0 4px 25px rgba(99, 102, 241, 0.5), 0 0 0 0 rgba(118, 75, 162, 0.3);
    }
    50% {
        box-shadow: 0 4px 35px rgba(99, 102, 241, 0.7), 0 0 0 8px rgba(118, 75, 162, 0);
    }
}

@keyframes fixed-button-bounce {
    0%, 100% {
        margin-top: 0;
    }
    50% {
        margin-top: -8px;
    }
}

@keyframes fixed-button-bounce-hover {
    0%, 100% {
        margin-top: 0;
    }
    50% {
        margin-top: -8px;
    }
}

@keyframes icon-wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-8deg);
    }
    75% {
        transform: rotate(8deg);
    }
}

@keyframes icon-spin {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .fixed-download-button {
        right: 10px;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .fixed-download-button i {
        font-size: 16px;
    }
}
