* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E4405F;
    --primary-dark: #C13584;
    --secondary-color: #405DE6;
    --background: #0a0a0a;
    --surface: #1a1a1a;
    --surface-light: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --success: #10b981;
    --error: #ef4444;
    --gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Light Mode Variables - Fixed */
html[data-theme="light"],
[data-theme="light"] {
    --background: #ffffff;
    --surface: #f5f5f5;
    --surface-light: #e8e8e8;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #d0d0d0;
}

/* Dark Mode Variables - Explicit */
html[data-theme="dark"],
[data-theme="dark"] {
    --background: #0a0a0a;
    --surface: #1a1a1a;
    --surface-light: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
}

/* Minimal transitions for performance */
html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] * {
    transition: background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] * {
    transition: background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
    transition: background-color 0.1s ease, color 0.1s ease;
    position: relative;
    overflow-x: hidden;
}

/* Minimal transitions for performance */
* {
    transition: background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

/* Removed animated background and gradient animations for performance */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Responsive Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.navbar-left,
.navbar-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-center .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.navbar-center .logo h1 {
    font-size: 24px;
    margin: 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body {
    padding-top: 70px;
}

.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    background: var(--surface-light);
    transform: translateY(-2px);
}

.lang-icon {
    font-size: 18px;
}

.lang-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.lang-btn:hover .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    
}

/* Hover functionality - Fixed to stay open */
.language-selector:hover .lang-dropdown,
.lang-btn:hover ~ .lang-dropdown,
.lang-btn:hover + .lang-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
}

.lang-dropdown:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
}

/* Ensure no gap between button and dropdown */
.language-selector {
    position: relative;
}

.language-selector::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 25px;
    z-index: 999;
    pointer-events: none; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.lang-option {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.lang-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(228, 64, 95, 0.1), transparent);
    transition: left 0.5s ease;
}

.lang-option:hover::before {
    left: 100%;
}

.lang-option:hover {
    background: var(--surface-light);
    color: var(--primary-color);
    transform: translateX(4px);
    padding-left: 16px;
}

/* Dark Mode Toggle - Instant & Premium */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 36px;
    cursor: pointer;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 36px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    overflow: hidden;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.toggle-handle {
    position: absolute;
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    pointer-events: none; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.toggle-icon.sun {
    left: 8px;
    opacity: 1;
    transform: translateY(-50%) rotate(0deg) scale(1);
}

.toggle-icon.moon {
    right: 8px;
    opacity: 0;
    transform: translateY(-50%) rotate(0deg) scale(0.8);
}

.theme-toggle:hover .toggle-slider {
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.7);
    transform: scale(1.02);
}

.theme-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.5);
}

.theme-toggle input:checked + .toggle-slider::before,
.theme-toggle input:checked + .toggle-slider .toggle-handle {
    transform: translateX(34px);
}

.theme-toggle input:checked + .toggle-slider .sun {
    opacity: 0;
    transform: translateY(-50%) rotate(180deg) scale(0.8);
}

.theme-toggle input:checked + .toggle-slider .moon {
    opacity: 1;
    transform: translateY(-50%) rotate(0deg) scale(1);
}

.theme-toggle:hover input:checked + .toggle-slider {
    box-shadow: 0 6px 18px rgba(26, 26, 46, 0.7);
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo img,
.logo.png {
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(228, 64, 95, 0.3));
    display: block;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .container { padding: 0 18px; }
    .navbar-container { padding: 0 8px; }
    .logo h1 { font-size: 22px; }
}

@media (max-width: 768px) {
    .navbar { padding: 10px; }
    .navbar-container { gap: 8px; }
    .lang-btn { padding: 8px 12px; font-size: 13px; }
    .logo img { width: 28px; height: 28px; }
    .logo h1 { font-size: 20px; }
    body { padding-top: 64px; }
    .download-card { margin: 0 8px; }
    .input-wrapper { display: flex; gap: 8px; }
    #urlInput { flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 480px) {
    .navbar-container { flex-direction: row; align-items: center; }
    .navbar-center { order: 2; }
    .navbar-left { order: 1; }
    .navbar-right { order: 3; }
    .lang-btn { padding: 8px; font-size: 12px; }
    .logo h1 { font-size: 18px; }
    .download-btn { padding: 12px 10px; font-size: 14px; }
    
    .feature-cards { flex-direction: column; }
    .media-preview video, .media-preview img { max-width: 100%; height: auto; }
}

/* Ensure media elements are responsive */
.media-preview video, .media-preview img {
    max-width: 100%;
    height: auto;
    display: block;
}

.tagline {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
}

/* Trust Rating Section */
.trust-rating {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.1) 0%, rgba(188, 24, 136, 0.1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(228, 64, 95, 0.2);
    backdrop-filter: blur(10px);
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars .star {
    font-size: 24px;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    animation: starPulse 2s ease-in-out infinite;
}

.rating-stars .star:nth-child(1) { animation-delay: 0s; }
.rating-stars .star:nth-child(2) { animation-delay: 0.2s; }
.rating-stars .star:nth-child(3) { animation-delay: 0.4s; }
.rating-stars .star:nth-child(4) { animation-delay: 0.6s; }
.rating-stars .star:nth-child(5) { animation-delay: 0.8s; }

@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

.rating-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rating-score {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.rating-count {
    font-size: 14px;
    color: var(--text-secondary);
    
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.trust-badges .badge {
    padding: 6px 14px;
    background: rgba(228, 64, 95, 0.15);
    border: 1px solid rgba(228, 64, 95, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.trust-badges .badge:hover {
    background: rgba(228, 64, 95, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.3);
}

/* Trust Indicators Section */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding: 24px;
    background: var(--surface-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: default;
}

.trust-item:hover {
    border-color: var(--primary-color);
    background: var(--surface-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.2);
}

.trust-icon {
    font-size: 28px;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(228, 64, 95, 0.3));
    animation: iconFloat 3s ease-in-out infinite;
}

.trust-item:nth-child(1) .trust-icon { animation-delay: 0s; }
.trust-item:nth-child(2) .trust-icon { animation-delay: 0.5s; }
.trust-item:nth-child(3) .trust-icon { animation-delay: 1s; }
.trust-item:nth-child(4) .trust-icon { animation-delay: 1.5s; }
.trust-item:nth-child(5) .trust-icon { animation-delay: 2s; }
.trust-item:nth-child(6) .trust-icon { animation-delay: 2.5s; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.trust-text span {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.download-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.input-section {
    margin-bottom: 30px;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

#urlInput {
    flex: 1;
    padding: 16px 20px;
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

#urlInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(228, 64, 95, 0.1);
}

#urlInput::placeholder {
    color: var(--text-secondary);
}

.download-btn {
    padding: 16px 32px;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
    font-family: inherit;
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(228, 64, 95, 0.4);
}

.download-btn:active:not(:disabled) {
    transform: translateY(0);
}

.download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: flex;
    align-items: center;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.examples {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}

.example-label {
    color: var(--text-secondary);
}

.example-url {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    background: var(--surface-light);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.result-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.media-preview {
    margin-bottom: 20px;
}

.media-item {
    background: var(--surface-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.media-item img,
.media-item video {
    width: 100%;
    display: block;
    max-height: 500px;
    object-fit: contain;
}

.media-item video {
    background: #000;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.download-link:hover {
    border-color: var(--primary-color);
    background: var(--surface);
    transform: translateX(4px);
}

.download-link-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.download-link-icon {
    font-size: 20px;
}

.download-link-text {
    display: flex;
    flex-direction: column;
}

.download-link-label {
    font-weight: 600;
    font-size: 14px;
}

.download-link-type {
    font-size: 12px;
    color: var(--text-secondary);
}

.download-link-btn {
    background: var(--gradient);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Quality Selector Styles */
.quality-selector-container {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.quality-selector-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.quality-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.quality-option-btn {
    flex: 1;
    min-width: 80px;
    padding: 12px 20px;
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.quality-option-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: var(--surface-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.2);
}

.quality-option-btn:active:not(:disabled) {
    transform: translateY(0);
}

.quality-option-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Highlight HD quality buttons */
.quality-option-btn[data-quality="720p"],
.quality-option-btn[data-quality="1080p"],
.quality-option-btn[data-quality="4K"] {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.1) 0%, rgba(188, 24, 136, 0.1) 100%);
}

.quality-option-btn[data-quality="720p"]:hover:not(:disabled),
.quality-option-btn[data-quality="1080p"]:hover:not(:disabled),
.quality-option-btn[data-quality="4K"]:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.2) 0%, rgba(188, 24, 136, 0.2) 100%);
    box-shadow: 0 4px 16px rgba(228, 64, 95, 0.3);
}

.new-download-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.new-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.new-download-btn:hover {
    border-color: var(--primary-color);
    background: var(--surface);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.2);
}

.new-download-btn:active {
    transform: translateY(0);
}

.new-download-btn span:first-child {
    font-size: 18px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    text-align: center;
    padding: 24px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(228, 64, 95, 0.2);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Section Styles */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    height: 3px;
    background: var(--gradient);
    width: 100px;
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* How to Download Section */
.how-to-section {
    margin: 60px 0;
    padding: 40px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.step-card {
    background: var(--surface-light);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(228, 64, 95, 0.3);
}

.step-number {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.4);
}

.step-icon {
    font-size: 64px;
    margin: 20px 0;
    filter: drop-shadow(0 0 10px rgba(228, 64, 95, 0.3));
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features-section {
    margin: 60px 0;
    padding: 40px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--surface-light);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(228, 64, 95, 0.2);
}

.feature-card.reverse {
    direction: rtl;
}

.feature-card.reverse > * {
    direction: ltr;
}

.feature-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16/9;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
}

.play-button {
    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);
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.photos-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-frame {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: var(--gradient);
}

.frame1 {
    width: 200px;
    height: 250px;
    transform: rotate(-5deg);
    z-index: 3;
}

.frame2 {
    width: 180px;
    height: 230px;
    transform: rotate(3deg);
    left: 120px;
    z-index: 2;
    opacity: 0.9;
}

.frame3 {
    width: 160px;
    height: 210px;
    transform: rotate(-2deg);
    left: 200px;
    top: 20px;
    z-index: 1;
    opacity: 0.8;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-card-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
    padding: 40px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.faq-container {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--surface-light);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    min-width: 24px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Footer */
footer {
    margin-top: 60px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.footer-top {
    background: #2e3161;
    padding: 30px 20px;
    text-align: center;
}

.footer-links-horizontal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-horizontal-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-horizontal-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-disclaimer {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 20px;
    margin-bottom: 0;
}

.footer-section h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-section .seo-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-column h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-bottom {
    background: #101224;
    padding: 20px;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.6;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(228, 64, 95, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(228, 64, 95, 0.6);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}



@media (max-width: 768px) {
    .top-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .language-selector,
    .theme-toggle-container {
        width: 100%;
    }

    .lang-btn {
        width: 100%;
        justify-content: center;
    }

    .lang-dropdown {
        left: 0;
        right: 0;
        width: 100%;
    }

    

    .download-card {
        padding: 24px;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-rating {
        padding: 16px;
    }

    .rating-display {
        flex-direction: column;
        gap: 12px;
    }

    .rating-stars .star {
        font-size: 20px;
    }

    .rating-score {
        font-size: 24px;
    }

    .trust-badges {
        gap: 8px;
    }

    .trust-badges .badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .trust-item {
        padding: 10px;
    }

    .trust-icon {
        font-size: 24px;
    }

    .trust-text strong {
        font-size: 13px;
    }

    .trust-text span {
        font-size: 11px;
    }

    .how-to-section,
    .features-section,
    .faq-section {
        padding: 24px;
        margin: 40px 0;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .feature-card.reverse {
        direction: ltr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-links-horizontal {
        flex-direction: column;
        gap: 12px;
    }

    .footer-horizontal-link {
        width: 100%;
        text-align: center;
    }

    .footer-section .seo-text {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        padding: 8px 10px;
    }

    .navbar-center .logo h1 {
        font-size: 16px;
    }

    .navbar-center .logo img {
        width: 20px;
        height: 20px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .lang-btn span:not(.lang-icon):not(.lang-arrow) {
        display: none;
    }

    .theme-toggle {
        width: 55px;
        height: 30px;
    }

    .toggle-slider::before,
    .toggle-handle {
        height: 22px;
        width: 22px;
    }

    .theme-toggle input:checked + .toggle-slider::before,
    .theme-toggle input:checked + .toggle-slider .toggle-handle {
        transform: translateX(25px);
    }

    .logo h1 {
        font-size: 24px;
    }

    .tagline {
        font-size: 14px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .trust-indicators {
        grid-template-columns: 1fr;
    }

    .trust-rating {
        padding: 12px;
    }

    .rating-stars .star {
        font-size: 18px;
    }

    .rating-score {
        font-size: 20px;
    }

    .rating-count {
        font-size: 12px;
    }

    .section-title {
        font-size: 24px;
    }

    .how-to-section,
    .features-section,
    .faq-section {
        padding: 20px;
    }

    .step-card {
        padding: 24px;
    }

    .step-icon {
        font-size: 48px;
    }

    .step-title {
        font-size: 18px;
    }

    .feature-card-title {
        font-size: 22px;
    }

    .video-placeholder,
    .photos-placeholder {
        max-width: 100%;
    }

    .footer-bottom {
        padding: 15px;
        font-size: 12px;
    }

    .footer-bottom p {
        font-size: 12px;
        line-height: 1.5;
    }

}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .footer-links-horizontal {
        gap: 8px;
    }

    .footer-horizontal-link {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Policy Pages */
.policy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.policy-page h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.policy-page section {
    margin-bottom: 32px;
}

.policy-page h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.policy-page p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.policy-page ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.policy-page li {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.contact-email {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--surface-light);
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 8px;
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 24px;
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    border-color: var(--primary-color);
    background: var(--surface);
    transform: translateX(-4px);
}


/* Language Dropdown Fix - Expanded and 2 columns */
.lang-dropdown {
    min-width: 320px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 480px) {
    .lang-dropdown {
        min-width: 280px !important;
        grid-template-columns: 1fr !important;
    }
}

.lang-option {
    padding: 12px !important;
    white-space: nowrap !important;
}

/* Language Dropdown Enhancements */
.lang-dropdown.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option.active {
    background-color: var(--primary-color);
    color: white;
}

/* Download Options Container - New Quality Grid */
.download-options-container {
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.download-section {
    margin-bottom: 20px;
}

.download-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.quality-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.quality-btn {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quality-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quality-btn.video-btn {
    border-color: #E4405F;
}

.quality-btn.video-btn:hover {
    background: linear-gradient(135deg, #E4405F, #C13584);
    border-color: transparent;
    color: white;
}

.quality-btn.audio-btn {
    border-color: #1DB954;
}

.quality-btn.audio-btn:hover {
    background: linear-gradient(135deg, #1DB954, #1ed760);
    border-color: transparent;
    color: white;
}

@media (max-width: 480px) {
    .quality-grid {
        justify-content: center;
    }
    
    .quality-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .download-options-container {
        padding: 16px;
    }
}
