
/* ===================================
   CSS STYLESHEET - TikDownloader.site
   VERSION 3.3 - Mobile Header Fixed to Match Screenshot 2
   DATE: 2026-01-19
   
   CHANGES:
   - Language selector moved to header (not fixed bottom)
   - Logo structure preserved
   - Header layout matches Screenshot 2 exactly
   - NO OTHER DESIGN CHANGES
   =================================== */

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --primary-color: #00C896;
    --primary-dark: #00A67C;
    --primary-light: #00E5A8;
    --secondary-color: #FF0050;
    --success-color: #00C851;
    --error-color: #ff4444;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F9FB;
    --bg-gradient: linear-gradient(135deg, #00C896 0%, #00E5A8 100%);
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --max-width: 1140px;
    --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --green-gradient: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --z-header: 1000;
    --z-dropdown: 9999;
    --z-mobile-dropdown: 10000;
    --z-mobile-lang: 1001;
    --z-language-dropdown: 1100;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

input, textarea, select {
    font-family: inherit;
}

/* ===================================
   CONTAINER
   =================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.site-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
    gap: 10px;
}

/* =================================== 
   LOGO - Purple Gradient Icon + Text
   =================================== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.85;
}

/* Logo Icon (Purple Gradient Arrow) */
.logo-icon {
    width: 40px;
    height: 40px;
    display: block;
    flex-shrink: 0;
}

/* Logo Text (TikDownloader) - Purple Gradient */
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo {
        gap: 8px;
    }
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #667eea;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-gradient);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ===================================
   LANGUAGE SELECTOR - FIXED FOR MOBILE HEADER
   =================================== */
.lang-selector-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 20px;
    z-index: var(--z-mobile-lang);
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-1px);
}

.lang-btn:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

.lang-flag {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 50%;
}

.lang-name {
    font-weight: 600;
    color: #2d3748;
}

.lang-arrow {
    transition: transform 0.3s ease;
    opacity: 0.7;
    color: #2d3748;
    font-size: 10px;
}

.lang-btn:hover .lang-arrow {
    transform: translateY(2px);
    opacity: 1;
}

/* Language Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-language-dropdown);
    max-height: 350px;
    overflow-y: auto;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    margin: 0;
    padding: 0;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.lang-dropdown a:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    border-left-color: #667eea;
    padding-left: 20px;
}

.lang-dropdown a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    border-left-color: #fff;
}

.lang-dropdown a.active:hover {
    padding-left: 16px;
}

/* Scrollbar */
.lang-dropdown::-webkit-scrollbar {
    width: 5px;
}

.lang-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.lang-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

/* OLD LANGUAGE SWITCHER - HIDE IT */
.language-switcher {
    display: none !important;
}

/* ===================================
   MOBILE MENU TOGGLE
   =================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: transparent;
    order: 3;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    padding: 4rem 0 5rem;
    background: #FFFFFF;
    text-align: center;
    position: relative;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ===================================
   DOWNLOAD TOOL
   =================================== */
.download-tool {
    background: linear-gradient(135deg, #6B9FED 0%, #8B7FE8 35%, #FFFFFF 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 15px 50px rgba(107, 159, 237, 0.25);
    max-width: 780px;
    margin: 0 auto 3rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.download-tool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.download-tool-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.download-tool-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* ===================================
   INPUT GROUP
   =================================== */
.input-group {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 6px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.input-group:focus-within {
    box-shadow: 0 8px 35px rgba(107, 159, 237, 0.35);
    transform: translateY(-2px);
}

.url-input, #video-url, #videoUrl {
    flex: 1;
    padding: 1.1rem 1.75rem;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-primary);
    background: white;
    min-height: 54px;
}

.url-input:focus, #video-url:focus, #videoUrl:focus {
    outline: none;
    background: white;
}

.url-input::placeholder, #video-url::placeholder, #videoUrl::placeholder {
    color: #999999;
}

/* ===================================
   DOWNLOAD BUTTON - GREEN
   =================================== */
.btn-primary, .download-btn, #download-btn, #downloadBtn {
    padding: 1.1rem 2.75rem;
    background: var(--green-gradient);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.35);
    border: none;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover, .download-btn:hover, #download-btn:hover, #downloadBtn:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.45);
}

.btn-primary:active, .download-btn:active, #download-btn:active, #downloadBtn:active {
    transform: translateY(0);
}

.btn-primary:disabled, .download-btn:disabled, #download-btn:disabled, #downloadBtn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary::before {
    content: '\2193';
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text {
    display: inline-block;
}

/* ===================================
   SPINNER
   =================================== */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   MESSAGES
   =================================== */
.disclaimer-text {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 0;
    color: #555555;
    font-size: 0.85rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.disclaimer-text strong {
    color: #333333;
    font-weight: 700;
}

.error-message, #errorMessage, #error-message {
    background: #FFF3CD;
    color: #856404;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    margin-top: 1.25rem;
    border: 1px solid #FFE69C;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    display: none;
}

.error-message.show, #errorMessage.show, #error-message.show {
    display: block;
}

.success-message {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: #d4edda;
    color: #155724;
    padding: 0.9rem 1.25rem;
    border-radius: 10px;
    margin-top: 1.25rem;
    border: 1px solid #c3e6cb;
    position: relative;
    z-index: 1;
}

/* ===================================
   VIDEO PREVIEW
   =================================== */
.video-preview, #videoPreview {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.4s ease;
    display: none;
}

.video-preview.show, #videoPreview.show {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-preview-container, .preview-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.video-preview-container video, .preview-video {
    width: 100%;
    max-height: 400px;
    border-radius: 12px;
    background: #000;
    object-fit: contain;
    display: block;
}

.video-info, .preview-info {
    text-align: left;
    padding: 1rem 0;
}

.video-info h4, .preview-title, #videoTitle {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-info p, .preview-author, #videoAuthor {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.video-info strong {
    color: #333;
}

.preview-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#videoThumbnail {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
}

/* ===================================
   DOWNLOAD OPTIONS - FIXED LAYOUT
   =================================== */
.download-options, #downloadOptions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    display: none;
}

.download-options.show, #downloadOptions.show {
    display: block;
}

.download-options h3 {
    color: #333333;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

/* Fixed Button Layout */
.option-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    color: white;
    text-align: left;
}

.option-btn:active {
    transform: scale(0.98);
}

.option-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.option-btn span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Red Button - Without Watermark */
.option-btn.btn-no-watermark, .option-btn[data-type="no-watermark"] {
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
}

.option-btn.btn-no-watermark:hover, .option-btn[data-type="no-watermark"]:hover {
    background: linear-gradient(135deg, #EE5A6F, #DC526A);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
}

/* Blue Button - HD Quality */
.option-btn.btn-hd, .option-btn[data-type="hd"] {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
}

.option-btn.btn-hd:hover, .option-btn[data-type="hd"]:hover {
    background: linear-gradient(135deg, #357ABD, #2E6BA8);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.4);
}

/* Pink Button - MP3 Audio */
.option-btn.btn-audio, .option-btn[data-type="audio"] {
    background: linear-gradient(135deg, #F06292, #EC407A);
}

.option-btn.btn-audio:hover, .option-btn[data-type="audio"]:hover {
    background: linear-gradient(135deg, #EC407A, #D81B60);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(240, 98, 146, 0.4);
}

/* Additional button classes */
.btn-no-watermark {
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
}

.btn-no-watermark:hover {
    background: linear-gradient(135deg, #EE5A6F, #DC526A);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.btn-hd {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
}

.btn-hd:hover {
    background: linear-gradient(135deg, #357ABD, #2E6BA8);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 144, 226, 0.4);
}

.btn-audio {
    background: linear-gradient(135deg, #F06292, #EC407A);
}

.btn-audio:hover {
    background: linear-gradient(135deg, #EC407A, #D81B60);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(240, 98, 146, 0.4);
}

/* ===================================
   HOW TO STEPS
   =================================== */
.how-to-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}

.step {
    background: white;
    padding: 2rem 1.75rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #E5E7EB;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(107, 159, 237, 0.2);
    border-color: #6B9FED;
}

.step-number {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #6B9FED, #8B7FE8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
    box-shadow: 0 6px 20px rgba(107, 159, 237, 0.35);
}

.step h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ===================================
   RESPONSIVE - MOBILE LAYOUT (MATCHES SCREENSHOT 2)
   =================================== */
@media (max-width: 768px) {
    /* CRITICAL FIX: Mobile header layout */
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
    }
    
    /* Logo stays on left */
    .logo {
        order: 1;
        flex-shrink: 0;
        font-size: 1.25rem;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
    }
    
    /* Language selector IN HEADER (not fixed bottom) - MATCHES SCREENSHOT 2 */
    .lang-selector-wrapper {
        order: 2;
        margin-left: auto;
        margin-right: 10px;
        position: relative;
        display: flex !important;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
    }
    
    .lang-flag {
        width: 16px;
        height: 16px;
    }
    
    .lang-arrow {
        font-size: 9px;
    }
    
    .lang-dropdown {
        right: 0;
        left: auto;
        min-width: 170px;
        max-height: 300px;
    }
    
    /* Hamburger menu on right */
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    /* Mobile nav menu */
    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background: var(--bg-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    /* Hero Section */
    .hero-section {
        padding: 3rem 0 4rem;
    }

    .main-title {
        font-size: 1.85rem;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    /* Download Tool - Mobile */
    .download-tool {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        max-width: 100%;
    }

    .download-tool-title {
        font-size: 1.75rem;
    }

    .download-tool-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    /* Input Group - Mobile */
    .input-group {
        flex-direction: column;
        border-radius: 16px;
        padding: 8px;
    }

    .url-input, #video-url, #videoUrl {
        border-radius: 12px;
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-primary, .download-btn, #download-btn, #downloadBtn {
        width: 100%;
        border-radius: 12px;
        justify-content: center;
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Download Options - Mobile Fixed */
    .download-options, #downloadOptions {
        padding: 1.25rem 1rem;
        margin-top: 1.5rem;
    }

    .download-options h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    /* Option Buttons - Mobile Optimized */
    .option-btn {
        padding: 0.9rem 1rem;
        font-size: 0.88rem;
        margin-bottom: 0.75rem;
    }

    .option-btn svg {
        width: 18px;
        height: 18px;
    }

    /* How to Steps */
    .how-to-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Video Preview - Mobile */
    .video-preview, #videoPreview {
        padding: 1rem;
    }

    .video-preview-container video, .preview-video {
        max-height: 300px;
    }

    .video-info h4, .preview-title, #videoTitle {
        font-size: 1rem;
    }
    
    /* ========================================
       MOBILE TEXT OVERFLOW FIXES - MINIMAL
       ======================================== */
    
    /* Prevent horizontal scroll */
    body {
        max-width: 100vw;
    }
    
    /* Force word wrapping for long text */
    code, pre {
        white-space: pre-wrap;
        word-break: break-all;
    }
    
    /* URL wrapping */
    .url-text,
    .error-message,
    .success-message {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 15px;
    }

    .download-tool {
        padding: 1.75rem 1.25rem;
    }

    .download-tool-title {
        font-size: 1.5rem;
    }

    .download-tool-subtitle {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.1rem;
    }
    
    .logo img {
        width: 26px;
        height: 26px;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .lang-flag {
        width: 14px;
        height: 14px;
    }

    .lang-dropdown {
        min-width: 150px;
        max-height: 280px;
    }

    /* Extra Small Mobile - Button Text */
    .option-btn {
        font-size: 0.82rem;
        padding: 0.85rem 0.9rem;
    }

    .option-btn span {
        font-size: 0.82rem;
    }
}

/* ===================================
   CTA SECTION (Above Footer)
   =================================== */

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #667eea;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #f8f9ff;
}

/* ===================================
   FOOTER SECTION
   =================================== */

.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e8e8f0;
    padding: 60px 20px 30px;
    margin-top: 0;
    border-top: 3px solid #667eea;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.footer-column p {
    color: #b8b8d1;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #b8b8d1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
    position: relative;
}

/* THIS IS THE IMPORTANT HOVER FIX */
.footer-column a:hover {
    color: #667eea !important;
    transform: translateX(5px) !important;
    text-decoration: none !important;
}

.footer-column a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-column a:hover::before {
    transform: translateY(-50%) scale(1);
    left: -12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #b8b8d1;
    font-size: 0.9rem;
}

/* ===================================
   FOOTER RESPONSIVE
   =================================== */

@media (max-width: 992px) {
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .cta-section {
        padding: 60px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .site-footer {
        padding: 40px 20px 20px;
        margin-top: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column h4 {
        font-size: 1.1rem;
    }
    
    .footer-column p,
    .footer-column a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 20px;
    }
}

/* ===================================
   CTA SECTION (Ready to Download)
   =================================== */

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Subtle animated background effect */
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #667eea;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #f8f9ff;
    color: #667eea;
    text-decoration: none;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ===================================
   CTA SECTION RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 20px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .cta-section {
        padding: 50px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}


/* ===================================
   FOOTER HOVER FIX - ULTRA STRONG
   =================================== */

/* Remove any pointer-events blocking */
.site-footer,
.site-footer *,
.footer-column,
.footer-column * {
    pointer-events: auto !important;
}

/* Force footer links to have hover effect */
.site-footer a,
.footer-column a,
.footer-grid a,
footer a {
    color: #b8b8d1 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    position: relative !important;
}

.site-footer a:hover,
.footer-column a:hover,
.footer-grid a:hover,
footer a:hover {
    color: #667eea !important;
    transform: translateX(5px) !important;
    text-decoration: none !important;
}

/* Add left padding on hover for list links */
.footer-column ul li a:hover {
    padding-left: 8px !important;
}

/* Animated dot before link on hover */
.footer-column ul li a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover::before {
    transform: translateY(-50%) scale(1);
    left: -2px;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 20px;
        margin-top: 50px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

/* ===================================
   CTA SECTION (Ready to Download) - FINAL VERSION
   Place ONCE at bottom of style.css
   =================================== */

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: ctaPulse 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaPulse {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.5;
    }
    50% { 
        transform: translate(10%, 10%) scale(1.1); 
        opacity: 0.8;
    }
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
}

.cta-button {
    display: inline-block !important;
    background: #ffffff !important;
    color: #667eea !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    cursor: pointer !important;
}

.cta-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
    background: #f8f9ff !important;
    color: #667eea !important;
    text-decoration: none !important;
}

.cta-button:active {
    transform: translateY(-1px) !important;
}

/* CTA Section Responsive */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 20px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 14px 30px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .cta-section {
        padding: 50px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

/* =========================================================
   HEADER / LOGO PATCH (Desktop menu + Mobile logo visibility)
   Paste at VERY BOTTOM of style.css
   Uses existing classes only:
   .site-header .nav-container .nav-menu .logo .logo-icon .logo-text
   ========================================================= */

/* --- Desktop / Default --- */
.site-header .nav-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;         /* prevents breaking lines */
}

/* Logo must not push the menu */
.site-header .logo{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;            /* logo stays its own size */
  min-width: 0;
}

/* Make icon clear (similar presence to competitor) */
.site-header .logo-icon{
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: block;
}

/* Prevent logo text from wrapping and breaking layout */
.site-header .logo-text{
  white-space: nowrap;
  font-size: 1.35rem;
  line-height: 1;
}

/* Desktop nav menu MUST be flex (fixes disturbance) */
.site-header .nav-menu{
  display: flex;
  align-items: center;
  justify-content: center;   /* center menu between logo and language */
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;

  flex: 1 1 auto;            /* menu takes remaining space */
  min-width: 0;
  white-space: nowrap;       /* stops menu wrapping into 2 lines */
}

/* If a long label exists (Blog & Guides), this helps avoid breaks */
.site-header .nav-menu li{
  flex: 0 0 auto;
}

/* --- Mobile --- */
@media (max-width: 768px){
  /* Keep your existing mobile nav behavior; just improve logo visibility */
  .site-header .logo{
    gap: 8px;
  }

  .site-header .logo-icon{
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .site-header .logo-text{
    font-size: 1.2rem;
    white-space: nowrap;
  }
}

@media (max-width: 480px){
  .site-header .logo-icon{
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .site-header .logo-text{
    font-size: 1.15rem;
  }
}

/* =========================================================
   MOBILE MENU FIX (keeps desktop perfect, fixes mobile drawer)
   Paste at VERY BOTTOM of style.css
   ========================================================= */

/* Desktop remains flex */
@media (min-width: 769px) {
  .site-header .nav-menu {
    display: flex !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
  }
}

/* Mobile: menu is hidden by default */
@media (max-width: 768px) {
  .site-header .nav-menu {
    display: none !important;          /* IMPORTANT: hide until active */
    position: fixed !important;
    top: 65px !important;              /* matches your header height */
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 65px) !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 20px 20px !important;
    gap: 10px !important;
    z-index: 99999 !important;         /* above everything */
    overflow-y: auto !important;
  }

  /* When hamburger clicked */
  .site-header .nav-menu.active {
    display: flex !important;
  }

  /* Make list items full width */
  .site-header .nav-menu li {
    width: 100% !important;
  }

  /* Make links look like proper menu buttons */
  .site-header .nav-menu a {
    display: block !important;
    width: 100% !important;
    padding: 14px 0 !important;
    font-size: 16px !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  }
}

/* =========================================================
   STOP MOBILE "MOVING" (lock background scroll + stop x-overflow)
   Paste at VERY BOTTOM of style.css
   ========================================================= */

/* Prevent horizontal shifting site-wide */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* When menu is open, lock the page behind */
body.menu-open {
  position: fixed;      /* stops background scrolling */
  width: 100%;
  overflow: hidden;
}

/* =========================================================
   HAMBURGER ICON ALIGN FIX (Mobile Menu Toggle)
   ========================================================= */

.site-header .mobile-menu-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.site-header .mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  margin: 0;
  padding: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Optional: When active (X animation) */
.site-header .mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.site-header .mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.site-header .mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* =========================================================
   FORCE MOBILE MENU TEXT VISIBLE (fix blank links)
   Paste at VERY BOTTOM of style.css
   ========================================================= */
@media (max-width: 768px) {
  .site-header .nav-menu a {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;

    opacity: 1 !important;
    visibility: visible !important;

    text-indent: 0 !important;
    letter-spacing: normal !important;
    transform: none !important;
  }

  .site-header .nav-menu li {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* === Share Bar (sitewide) - FIXED === */
.td-sharebar{
  width: 100%;
  margin: 10px 0;
}

.td-sharebar-inner{
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 980px;
  margin: 10px auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

/* Share count block */
.td-sharebar-count{
  background: #ffffff;
  color: #111827;
  padding: 12px 14px;
  font-weight: 800;
  border-right: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  white-space: nowrap;
}

/* IMPORTANT: anchors must be block/flex */
.td-share-btn{
  flex: 1 1 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff !important;
  text-decoration: none !important;
  border: 0;
}

/* Colored tiles */
.td-fb{ background:#3b5998; }
.td-x{ background:#000000; }
.td-tg{ background:#229ED9; }
.td-rd{ background:#FF4500; }
.td-native{ background:#7ac943; }

/* Hover */
.td-share-btn:hover{
  filter: brightness(1.06);
}

/* Mobile tuning */
@media (max-width: 600px){
  .td-sharebar-inner{ border-radius: 6px; }
  .td-sharebar-count{
    min-width: 95px;
    font-size: 14px;
    padding: 10px 10px;
  }
  .td-share-btn{
    font-size: 16px;
    padding: 10px 0;
  }
}


/* ===================================
   END OF STYLESHEET
   =================================== */


