        :root {
            --primary-color: #8A2BE2;
            --primary-light: #9370DB;
            --background-dark: #121212;
            --background-card: #1E1E1E;
            --text-primary: #FFFFFF;
            --text-secondary: #B3B3B3;
            --success-color: #4CAF50;
            --error-color: #F44336;
            --border-radius: 8px;
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--background-dark);
            color: var(--text-primary);
            line-height: 1.6;
            
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 5px 40px 5px;
        }

        header {
            text-align: center;
            margin-bottom: 40px;
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            display: inline-block;
        }

        .subtitle {
            font-size: 1.2rem;
            color: var(--text-secondary);
            max-width: 1100px;
            margin: 0 auto;
        }
        
        
.ai-video {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
    justify-content: center;
	align-items: center; 
	padding-bottom: 20px;
	gap: 10px;
	
}

.ai-video img {
   border-radius: 20px;
   display: flex;
   max-width: 95%;
}        

        .card {
            padding: 5px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            margin-bottom: 40px;
        }

        /* Toggle Switch */
        .toggle-container {
            display: flex;
            justify-content: center;
			align-items: center;
            margin-bottom: 30px;
			margin-bottom: 20px;
			
        }
        
        #mode-toggle {
            display: none;
        }

        .toggle-switch {
            position: relative;
            display: flex;
            width: 450px;
            height: 50px;
            background-color: var(--background-dark);
            border-radius: 25px;
            border: 2px solid var(--primary-color);
            margin: 0 auto;
			align-items: center;
			justify-content: center;
			cursor: pointer;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 25px;
            transition: var(--transition);
			align-items: center;
			justify-content: center;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 40px;
            width: calc(33.333% - 8px);
            left: 4px;
            bottom: 3px;
            background-color: var(--primary-color);
            border-radius: 20px;
            transition: var(--transition);
        }

        .toggle-labels {
            display: flex;
            justify-content: space-around;
            width: 450px;
            padding: 0px;
            position: relative;
            height: 100%;
            color: var(--text-primary);
            font-weight: bold;
			font-size: 15px;
            z-index: 1;
			text-align: center;
			align-items: center;
			justify-content: center;
        }

.toggle-label {
    width: 33.333%;
    text-align: center;
    transition: var(--transition);
    color: var(--text-secondary);  
    user-select: none;
    cursor: pointer;
}

.toggle-label.active {
    color: var(--text-primary);   
}

.toggle-slider[data-mode="0"]:before { transform: translateX(0px); }
.toggle-slider[data-mode="1"]:before { transform: translateX(calc(100% + 8px)); }
.toggle-slider[data-mode="2"]:before { transform: translateX(calc(200% + 16px)); }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #fff;
        }
		
#image-upload-container {
    display: flex;
    flex-wrap: wrap;        
    gap: 20px;  
}	

#first-frame,
#last-frame {
    flex: 1 1 calc(50% - 10px); 
    min-width: 300px;
}	

        .form-control {
            width: 100%;
            padding: 12px 15px;
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--border-radius);
            color: var(--text-primary);
            font-size: 1rem;
            transition: var(--transition);
        }
	

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.25);
        }

        textarea.form-control {
            min-height: 100px;
            resize: vertical;
        }

        .file-upload, .file-uploadlf {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            border: 2px dashed rgba(255, 255, 255, 0.2);
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: var(--transition);
        }

        .file-upload:hover, .file-uploadlf:hover {
            border-color: var(--primary-color);
        }

        .file-upload i, .file-uploadlf i {
            font-size: 2rem;
            margin-bottom: 10px;
            color: var(--primary-color);
        }

        .file-upload-input, .file-upload-inputlf {
            display: none;
        }

        .file-name, .file-namelf {
            margin-top: 10px;
            word-break: break-all;
            text-align: center;
        }
		
		#image-preview, #image-previewlf {
			margin: auto;
			display: flex;
			object-fit: contain;
			max-width: 100%; 
			max-height: 300px; 
			margin-top: 10px; 
			display: none;
			cursor: pointer;
		}
		
		
#ref-img-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ref-img-slot {
    flex: 1 1 calc(33.333% - 14px);
    min-width: 260px;
}

.file-upload-ref {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-ref:hover {
    border-color: var(--primary-color);
}

.file-upload-ref i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.file-name-ref {
    margin-top: 10px;
    word-break: break-all;
    text-align: center;
}

#ref-preview-1,
#ref-preview-2,
#ref-preview-3 {
    display: none;
    margin: 10px auto 0;
    object-fit: contain;
    max-width: 100%;
    max-height: 220px;
    cursor: pointer;
}		
		

        .select-group {
            display: flex;
            gap: 20px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        .select-item {
            flex: 1;
            min-width: 200px;
        }

        select.form-control {
            appearance: none;
            padding-right: 30px;
            background-color: #1A1A1A; 

        }

        .price-info {
            text-align: right;
            font-size: 1.2rem;
            margin: 30px 20px;
            color: var(--text-secondary);
        }

        .price-info strong {
            color: var(--primary-color);
            font-size: 1.4rem;
        }

        .btn {
            display: block;
            width: 100%;
            padding: 14px 20px;
            background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
            color: white;
            border: none;
            border-radius: var(--border-radius);
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 7px 15px rgba(138, 43, 226, 0.3);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }

        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            100% {
                transform: scale(20, 20);
                opacity: 0;
            }
        }

        .btn:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }
        
    
		
.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 20px auto;
  position: relative;
  animation: rotate 1.5s linear infinite;
  box-shadow: 0 0 0 4px rgba(147, 112, 219, 0.2);
}

.spinner::before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: #9370DB;
  animation: spin 1.5s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}


a {
    color: green;
}

#result {
	display: flex;
	flex-direction: column;
	margin: auto;
	align-items: center;
	justify-content: center;
}


.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 12px 20px;
  background-color: #7B3FC8; 
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(123, 63, 200, 0.4);
}

.download-btn:hover {
  background-color: #9B59B6; 
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(155, 89, 182, 0.4);
}

.download-btn:active {
  background-color: #6C2EB9; 
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(108, 46, 185, 0.3);
}


		

        .about-section {
            margin-top: 60px;
        }

        .about-section h2 {
            font-size: 2rem;
            margin-bottom: 20px;
            color: var(--primary-light);
        }

        .about-section p {
            margin-bottom: 15px;
            line-height: 1.8;
        }
        
        

.about-section ul,
.about-section ol {
  margin: 0 0 1em 20px; 
  padding-left: 20px;
}

.about-section li {
  margin-bottom: 0.5em;
  list-style-type: disc; 
}


        

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .feature-item {
            background-color: rgba(255, 255, 255, 0.05);
            border-radius: var(--border-radius);
            padding: 25px;
            transition: var(--transition);
        }

        .feature-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--primary-color);
        }

        .feature-title {
            font-size: 1.3rem;
            margin-bottom: 10px;
            color: var(--text-primary);
        }

        @media (max-width: 768px) {
            .select-group {
                flex-direction: column;
                gap: 15px;
            }
            
.toggle-switch { width: 320px; }
       
	   }
        
        
        
        
        #cookie-banner {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.9);
            color: #fff;
            padding: 20px;
            text-align: center;
            border-radius: 8px;
            width: 95%;
            max-width: 800px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
            z-index: 9999;
            font-family: Arial, sans-serif;
        }
        #cookie-banner button {
            margin: 10px;
            padding: 10px 20px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            border-radius: 10px;
            transition: background 0.3s ease;
        }
        .accept {
            background: #28a745;
            color: white;
        }
        .accept:hover {
            background: #218838;
        }
        .managesettings {
            text-decoration: underline;
            color: white;
            cursor: pointer;
        }
        
     
    #cookie-settings {
        display: none;
        text-align: left;
        margin-left: 30px;
    } 
        
    #labelh3 {
        margin-bottom: 15px;
        font-size: 18px;
        color: white;
    }

    .cookie-label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        color: #fff;
        cursor: pointer;
        margin: 10px 0;
    }

    input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #fff;
        cursor: pointer;
    }
    
    
#language-selector {
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
}

#language {
    display: flex;
    border-radius: 5px;
    border: 1px solid #333;
    height: 25px;
    background-color: #242424;
    color: #fff;
    font-size: 18px;
}    



        footer {
		    display: flex;
            position: fixed;
            bottom: 0;
            width: 100%;
            background-color: #222;
            padding: 0;
            text-align: center;
			justify-content: center;
            color: #fff;
        }
        
        #gotoHome {
        display: flex;
        color: #00FFCD; 
        width: 250px;
        border-radius: 20px;
        padding: 10px;
        margin: 10px auto;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        background-color: #2e2e2e;
        border: 2px solid #00FFCD;
        text-decoration: none;
        font-size: 20px;
    }
    
        #gotoHome:hover {
        background-color: #3e3e3e;
    }        
        
		
		


  .faq-section {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    background-color: transparent;
  }

  .faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #ffffff;
  }

  .faq-item {
    background-color: #1e1e1e;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    overflow: hidden;
  }

  .faq-question {
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding: 16px 20px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 18px;
    transition: background 0.3s;
  }

  .faq-question:hover {
    background-color: #333333;
  }

  .faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s ease;
  }

  .faq-item.active .faq-question::after {
    content: "-";
    transform: rotate(180deg);
  }

  .faq-answer {
    display: none;
    padding: 16px 20px;
    font-size: 17px;
    line-height: 1.7;
    background-color: #1e1e1e;
    color: #fff;
  }

  .faq-answer ul {
    padding-left: 20px;
    margin: 10px 0;
  }

  .faq-answer li {
    margin-bottom: 5px;
  }

  .faq-answer pre {
    background: #2d2d2d;
    padding: 12px;
    border-radius: 6px;
    color: #ddd;
    overflow-x: auto;
  }

		