* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #E1306C;
    --secondary: #833AB4;
    --accent: #F77737;
    --dark: #1a1a2e;
    --light: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
    min-height: 100vh;
    color: var(--light);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo i {
    font-size: 3rem;
    background: linear-gradient(45deg, var(--accent), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
}

.tagline {
    margin-top: 10px;
    opacity: 0.8;
    font-size: 1.1rem;
}

.download-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-box h2 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.download-box h2 i {
    color: var(--primary);
    margin-right: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.paste-btn {
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.paste-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--light);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(225, 48, 108, 0.4);
}

.download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loader {
    margin-top: 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    margin-top: 20px;
    padding: 15px 25px;
    background: rgba(255, 71, 87, 0.2);
    border-radius: 10px;
    color: #ff6b7a;
}

.error i {
    margin-right: 10px;
}

.result-box {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-box h3 {
    color: #2ecc71;
    margin-bottom: 20px;
}

.preview video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.download-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.feature i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.feature p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.how-to {
    margin-top: 50px;
    text-align: center;
}

.how-to h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: left;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    margin-bottom: 5px;
}

.step-content p {
    opacity: 0.8;
    font-size: 0.9rem;
}

footer {
    margin-top: 50px;
    text-align: center;
    padding: 30px;
    opacity: 0.8;
}

.disclaimer {
    font-size: 0.85rem;
    margin-top: 10px;
    opacity: 0.6;
}

.hidden {
    display: none !important;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2ecc71;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-box {
        padding: 25px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .paste-btn {
        display: none;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .download-options {
        flex-direction: column;
    }
}