  :root {
            --primary-color: #FE2C55;
            --secondary-color: #25F4EE;
            --dark-color: #161823;
            --light-color: #ffffff;
            --gray-color: #f5f5f5;
            --success-color: #4CAF50;
            --error-color: #f44336;
            --warning-color: #ff9800;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: var(--gray-color);
            color: var(--dark-color);
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        /* Header Styles */
        header {
            background-color: var(--light-color);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
        }
        
        .logo-icon {
            color: var(--primary-color);
            font-size: 2rem;
            margin-right: 10px;
        }
        
        .logo-text {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--dark-color);
        }
        
        .nav-links {
            display: flex;
            gap: 20px;
        }
        
        .nav-links a {
            color: var(--dark-color);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        .nav-links a:hover {
            color: var(--primary-color);
        }
        
        .auth-buttons {
            display: flex;
            gap: 15px;
        }
        
        .auth-btn {
            padding: 8px 20px;
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .login-btn {
            background-color: transparent;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
        }
        
        .login-btn:hover {
            background-color: rgba(254, 44, 85, 0.1);
        }
        
        .signup-btn {
            background-color: var(--primary-color);
            border: 1px solid var(--primary-color);
            color: white;
        }
        
        .signup-btn:hover {
            background-color: #d41c45;
            border-color: #d41c45;
        }
        
        .user-profile {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            text-transform: uppercase;
        }
        
        .user-name {
            font-weight: 500;
        }
        
        .logout-btn {
            background: none;
            border: none;
            color: var(--primary-color);
            cursor: pointer;
            font-size: 0.9rem;
        }
        
        /* Notification Styles */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 5px;
            color: white;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transform: translateX(150%);
            transition: transform 0.3s ease;
        }
        
        .notification.show {
            transform: translateX(0);
        }
        
        .notification.success {
            background-color: var(--success-color);
        }
        
        .notification.error {
            background-color: var(--error-color);
        }
        
        .notification.warning {
            background-color: var(--warning-color);
        }
        
        .notification i {
            font-size: 1.2rem;
        }
        
        .notification-close {
            margin-left: 10px;
            cursor: pointer;
            font-weight: bold;
        }
        
        /* Main Content Styles */
        .container {
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px;
            flex: 1;
        }
        
        .main-title {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .main-title h1 {
            font-size: 2.5rem;
            color: var(--dark-color);
            margin-bottom: 10px;
        }
        
        .main-title h1 i {
            color: var(--primary-color);
        }
        
        .subtitle {
            font-size: 1.2rem;
            color: #666;
        }
        
        /* Download Section */
        .download-section {
            background-color: var(--light-color);
            border-radius: 10px;
            padding: 30px 50px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }
        
        .input-group {
            display: flex;
            margin-bottom: 20px;
        }
        
        .input-group input {
            flex: 1;
            padding: 15px;
            border: 2px solid #ddd;
            border-radius: 5px 0 0 5px;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.3s;
        }
        
        .input-group input:focus {
            border-color: var(--primary-color);
        }
        
        .input-group button {
            padding: 15px 25px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 0 5px 5px 0;
            cursor: pointer;
            font-size: 1rem;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        .input-group button:hover {
            background-color: #d41c45;
        }
        
        .features {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
        }
        
        .feature {
            display: flex;
            align-items: center;
            margin: 10px;
            color: #555;
        }
        
        .feature i {
            margin-right: 8px;
            color: var(--primary-color);
            font-size: 1.2rem;
        }
        
        /* Result Section */
        .result-section {
            background-color: var(--light-color);
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
            display: none;
        }
        
        .video-preview {
            margin-bottom: 20px;
            text-align: center;
            position: relative;
        }
        
        .video-preview video {
            max-width: 100%;
            border-radius: 8px;
            max-height: 500px;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
        
        .image-preview {
            margin-bottom: 20px;
            text-align: center;
        }
        
        .image-preview img {
            max-width: 100%;
            max-height: 500px;
            border-radius: 8px;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
        
        /* Hide controls except play/pause and progress bar */
        .video-preview video::-webkit-media-controls-overlay-play-button {
            display: none;
        }
        
        .video-preview video::-webkit-media-controls-timeline {
            display: none;
        }
        
        .video-preview video::-webkit-media-controls-current-time-display {
            display: none;
        }
        
        .video-preview video::-webkit-media-controls-time-remaining-display {
            display: none;
        }
        
        .video-preview video::-webkit-media-controls-mute-button {
            display: none;
        }
        
        .video-preview video::-webkit-media-controls-volume-slider {
            display: none;
        }
        
        .video-preview video::-webkit-media-controls-fullscreen-button {
            display: none;
        }
        
        .download-options h3 {
            margin-bottom: 15px;
            color: var(--dark-color);
            text-align: center;
        }
        
        .options {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
        }
        
        .option-btn {
            padding: 12px 20px;
            background-color: var(--secondary-color);
            color: #000;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: bold;
            transition: background-color 0.3s;
            display: flex;
            align-items: center;
        }
        
        .option-btn i {
            margin-right: 8px;
        }
        
        .option-btn:hover {
            background-color: #1dd1cc;
        }
        
        #download-hd {
            background-color: var(--primary-color);
            color: white;
        }
        
        #download-hd:hover {
            background-color: #d41c45;
        }
        
        #download-audio {
            background-color: #69C9D0;
            color: white;
        }
        
        #download-audio:hover {
            background-color: #4fb3bb;
        }
        
        #download-image {
            background-color: #8a2be2;
            color: white;
        }
        
        #download-image:hover {
            background-color: #7b1fa2;
        }
        
        /* Loading and Error States */
        .loading {
            text-align: center;
            padding: 30px;
            background-color: var(--light-color);
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
            display: none;
        }
        
        .spinner {
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .error {
            text-align: center;
            padding: 30px;
            background-color: var(--light-color);
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
            display: none;
        }
        
        .error i {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 20px;
        }
        
        .error p {
            color: #d41c45;
            font-weight: bold;
        }
        
        /* Auth Modals */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background-color: var(--light-color);
            padding: 30px;
            border-radius: 10px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            position: relative;
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
        }
        
        .close-modal:hover {
            color: var(--dark-color);
        }
        
        .modal h2 {
            margin-bottom: 20px;
            text-align: center;
            color: var(--dark-color);
        }
        
        .form-group {
            margin-bottom: 20px;
            position: relative;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .form-group input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
        }
        
        .form-group input:focus {
            outline: none;
            border-color: var(--primary-color);
        }
        
        .form-error {
            color: var(--error-color);
            font-size: 0.8rem;
            margin-top: 5px;
            display: none;
        }
        
        .submit-btn {
            width: 100%;
            padding: 12px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .submit-btn:hover {
            background-color: #d41c45;
        }
        
        .submit-btn:disabled {
            background-color: #cccccc;
            cursor: not-allowed;
        }
        
        .form-footer {
            text-align: center;
            margin-top: 20px;
        }
        
        .form-footer a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
        }
        
        .form-footer a:hover {
            text-decoration: underline;
        }
        
        /* History Section */
        .history-section {
            background-color: var(--light-color);
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }
        
        .history-section h2 {
            margin-bottom: 20px;
            color: var(--dark-color);
        }
        
        .history-list {
            max-height: 400px;
            overflow-y: auto;
        }
        
        .history-item {
            display: flex;
            align-items: center;
            padding: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .history-item:last-child {
            border-bottom: none;
        }
        
        .history-thumbnail {
            width: 80px;
            height: 80px;
            border-radius: 5px;
            object-fit: cover;
            margin-right: 15px;
        }
        
        .history-info {
            flex: 1;
        }
        
        .history-title {
            font-weight: 500;
            margin-bottom: 5px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .history-date {
            font-size: 0.8rem;
            color: #666;
        }
        
        .history-download {
            background: none;
            border: none;
            color: var(--primary-color);
            cursor: pointer;
            font-size: 1.2rem;
        }
        
        .no-history {
            text-align: center;
            color: #666;
            padding: 20px;
        }
        
        /* Tabs */
        .tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 1px solid #ddd;
        }
        
        .tab {
            padding: 10px 20px;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
        }
        
        .tab.active {
            border-bottom-color: var(--primary-color);
            color: var(--primary-color);
            font-weight: 500;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* Info Pages */
        .info-page {
            background-color: var(--light-color);
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }
        
        .info-page h2 {
            color: var(--primary-color);
            margin-bottom: 20px;
        }
        
        .info-page h3 {
            margin: 25px 0 15px;
            color: var(--dark-color);
        }
        
        .info-page p, .info-page ul, .info-page ol {
            margin-bottom: 15px;
            line-height: 1.7;
        }
        
        .info-page ul, .info-page ol {
            padding-left: 20px;
        }
        
        .info-page li {
            margin-bottom: 8px;
        }
        
        .contact-form {
            margin-top: 30px;
        }
        
        .contact-form .form-group {
            margin-bottom: 15px;
        }
        
        .contact-form textarea {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
            min-height: 150px;
            resize: vertical;
        }
        
        .contact-form textarea:focus {
            outline: none;
            border-color: var(--primary-color);
        }
        
        /* Footer */
        footer {
            text-align: center;
            padding: 30px 20px;
            color: #666;
            font-size: 0.9rem;
            background-color: var(--light-color);
            margin-top: 50px;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .footer-links a {
            color: #666;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: var(--primary-color);
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .social-links a {
            color: #666;
            font-size: 1.5rem;
            transition: color 0.3s;
        }
        
        .social-links a:hover {
            color: var(--primary-color);
        }
        
        .copyright {
            margin-top: 20px;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
                gap: 15px;
            }
            
            .nav-links {
                order: 3;
                width: 100%;
                justify-content: center;
                margin-top: 15px;
            }
            
            .auth-buttons, .user-profile {
                width: 100%;
                justify-content: center;
            }
            
            .input-group {
                flex-direction: column;
            }
            
            .input-group input {
                border-radius: 5px;
                margin-bottom: 10px;
            }
            
            .input-group button {
                border-radius: 5px;
                width: 100%;
            }
            
            .features {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .options {
                flex-direction: column;
            }
            
            .option-btn {
                width: 100%;
                justify-content: center;
            }
            
            .history-item {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .history-thumbnail {
                width: 100%;
                height: auto;
                margin-right: 0;
                margin-bottom: 10px;
            }
            
            .notification {
                width: calc(100% - 40px);
                right: 20px;
                left: 20px;
            }
        }