/* ========================================
   IMAGIXO - Main Stylesheet
   Primary Color: #7819e4
   ======================================== */

/* ========================================
   CSS Variables / Design Tokens
   ======================================== */
:root {
    /* Primary Colors */
    --primary: #7819e4;
    --primary-light: #9747ff;
    --primary-lighter: #b77dff;
    --primary-dark: #5c0fb3;
    --primary-darker: #420a82;
    --primary-rgb: 120, 25, 228;

    /* Neutral Colors - Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #f1f3f9;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-tertiary: #6b6b8a;
    --border-color: #e2e5f1;
    --border-light: #f0f2f8;

    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 14px 0 rgba(120, 25, 228, 0.25);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --container-max: 1280px;
    --section-padding: 80px;
    --card-padding: 24px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-toast: 400;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #252542;
    --text-primary: #f5f5f7;
    --text-secondary: #a0a0b8;
    --text-tertiary: #7a7a98;
    --border-color: #2d2d4a;
    --border-light: #1f1f38;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
}

/* ========================================
   Layout & Container
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section--alt {
    background-color: var(--bg-secondary);
}

/* ========================================
   Header - Fixed alignment
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    height: 70px;
    gap: 20px;
    position: relative;
}

.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header__logo img {
    height: 42px;
    width: auto;
}

.header__search {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 360px;
}

.header__search-input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    line-height: 1;
    display: flex;
    align-items: center;
}

.header__search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.header__search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    line-height: 1;
}

.header__search-icon svg {
    display: block;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    flex-shrink: 0;
}

.header__nav-link {
    padding: 8px 12px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.header__nav-link:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.mobile-menu-btn.active {
    background: var(--primary);
    color: white;
}

/* Mobile Search Button */
.mobile-search-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-search-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* Mobile Search Overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 1000;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}

.search-overlay.show {
    display: flex;
}

.search-overlay__container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

.search-overlay__form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.search-overlay__icon {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.search-overlay__input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
}

.search-overlay__input::placeholder {
    color: var(--text-tertiary);
}

.search-overlay__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.search-overlay__close:hover {
    background: var(--error-light);
    color: var(--error);
}

.search-overlay__results {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.search-overlay__result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 8px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.search-overlay__result-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.search-overlay__result-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.search-overlay__result-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.search-overlay__result-content {
    flex: 1;
    min-width: 0;
}

.search-overlay__result-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.search-overlay__result-desc {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-overlay__no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

.search-overlay__no-results svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Tablet - Hide nav at smaller screens */
@media (max-width: 1024px) {
    .header__nav-link {
        padding: 8px 10px;
        font-size: 0.875rem;
    }

    .header__search {
        max-width: 300px;
    }
}

@media (max-width: 900px) {
    .header__nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        padding: 12px 16px 20px;
        gap: 4px;
        z-index: 100;
        animation: slideDown 0.25s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .header__nav.show {
        display: flex;
    }

    .header__nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        border-radius: var(--radius-md);
        background: transparent;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-primary);
        text-align: left;
        border: 1px solid transparent;
        transition: all var(--transition-fast);
    }

    .header__nav-link:hover {
        background: rgba(var(--primary-rgb), 0.08);
        border-color: rgba(var(--primary-rgb), 0.15);
        color: var(--primary);
        transform: translateX(4px);
    }

    .header__nav-link:active {
        background: rgba(var(--primary-rgb), 0.12);
    }

    /* Add icons to mobile nav items */
    .header__nav-link::before {
        content: "";
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
        opacity: 0;
        transition: opacity var(--transition-fast);
    }

    .header__nav-link:hover::before {
        opacity: 1;
    }

    /* Mobile nav divider */
    .header__nav::after {
        content: "";
        display: block;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--border-color), transparent);
        margin-top: 8px;
    }
}

@media (max-width: 900px) {
    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        padding: 12px 16px 20px;
        gap: 4px;
        z-index: 100;
        animation: slideDown 0.25s ease;
    }

    .header__nav.show {
        display: flex;
    }

    .header__nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        border-radius: var(--radius-md);
        background: transparent;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-primary);
        text-align: left;
        border: 1px solid transparent;
        transition: all var(--transition-fast);
    }

    .header__nav-link:hover {
        background: rgba(var(--primary-rgb), 0.08);
        border-color: rgba(var(--primary-rgb), 0.15);
        color: var(--primary);
        transform: translateX(4px);
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: white;
}

.btn--primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.btn--secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn--secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: white;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn--icon {
    padding: 12px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 50px 0 70px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at center top, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Hero highlights */
.hero__highlights {
    display: inline-flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.hero__highlight {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.hero__highlight svg {
    color: var(--primary);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Desktop: Make badge look like highlights */
@media (min-width: 769px) {
    .hero__highlights {
        flex-wrap: wrap;
    }

    .hero__badge {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        color: var(--text-secondary);
        box-shadow: var(--shadow-sm);
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-bottom: 20px;
    }

    .hero__badge svg {
        color: var(--primary);
        width: 14px;
        height: 14px;
    }
}

.hero__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 28px;
}

/* Hero Stats Bar - Compact inline design */
.hero__stats-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 32px;
    padding: 16px 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.hero__stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
}

.hero__stats-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.hero__stats-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero__stats-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

/* Universal Converter Box */
.universal-converter {
    max-width: 700px;
    margin: 0 auto 32px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.universal-converter__upload {
    cursor: pointer;
}

.universal-converter__dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    transition: all var(--transition);
    background: var(--bg-secondary);
}

/* Compact mode when files are uploaded */
.universal-converter__upload.has-files .universal-converter__dropzone {
    padding: 16px;
}

.universal-converter__upload.has-files .universal-converter__icon {
    display: none;
}

.universal-converter__upload.has-files .universal-converter__text {
    font-size: 1rem;
    margin-bottom: 4px;
}

.universal-converter__upload.has-files .universal-converter__subtext,
.universal-converter__upload.has-files .universal-converter__description,
.universal-converter__upload.has-files .universal-converter__formats {
    display: none;
}

.universal-converter__upload:hover .universal-converter__dropzone,
.universal-converter__dropzone.dragover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.universal-converter__icon {
    margin-bottom: 16px;
    color: var(--primary);
}

.universal-converter__icon svg {
    stroke: var(--primary);
}

.universal-converter__text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.universal-converter__subtext {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.universal-converter__description {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    opacity: 0.9;
}

.universal-converter__formats {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.universal-converter__format-select {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.universal-converter__detected {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.universal-converter__detected strong {
    color: var(--primary);
    text-transform: uppercase;
}

.universal-converter__choose {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

.format-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.format-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.format-btn.active,
.format-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.format-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Universal Converter - File Preview */
.universal-converter__preview {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.universal-converter__preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.universal-converter__preview-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.universal-converter__clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.universal-converter__clear-btn:hover {
    color: var(--error);
    background: var(--error-light);
    border-color: var(--error);
}

.universal-converter__preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
}

.universal-converter__preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--bg-tertiary);
}

.universal-converter__preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.universal-converter__preview-item--pdf,
.universal-converter__preview-item--file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.universal-converter__preview-item--pdf svg,
.universal-converter__preview-item--file svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    margin-bottom: 4px;
}

.universal-converter__preview-item--pdf span,
.universal-converter__preview-item--file span {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    text-align: center;
    word-break: break-all;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
}

.universal-converter__preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.universal-converter__preview-item:hover .universal-converter__preview-remove {
    opacity: 1;
}

.universal-converter__preview-remove:hover {
    background: var(--error);
}

.universal-converter__preview-remove svg {
    pointer-events: none;
}

/* Add More Button */
.universal-converter__preview-item--add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: 2px dashed var(--border-color);
    background: transparent;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.universal-converter__preview-item--add:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.universal-converter__preview-item--add svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.universal-converter__preview-item--add span {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.universal-converter__file-count {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-align: center;
}

/* ========================================
   Tools Grid
   ======================================== */
.tools-section__header {
    text-align: center;
    margin-bottom: 48px;
}

.tools-section__title {
    margin-bottom: 12px;
}

.tools-section__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.tool-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 14px;
    padding: 18px 16px 18px 22px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.tool-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tool-card__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius);
    grid-row: span 2;
    align-self: center;
}

.tool-card__icon svg {
    width: 21px;
    height: 21px;
    color: var(--primary);
}

.tool-card__content {
    display: contents;
}

.tool-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
}

.tool-card__tagline {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    line-height: 1.3;
    grid-column: 2 / 4;
    grid-row: 2;
    align-self: start;
    margin-top: 4px;
    white-space: nowrap;
}

.tool-card__arrow {
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    margin-left: auto;
    padding-left: 12px;
}

.tool-card__arrow svg {
    width: 16px;
    height: 16px;
}

.tool-card:hover .tool-card__arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* Tool cards without tagline - center the title vertically */
.tool-card:not(:has(.tool-card__tagline)) {
    grid-template-rows: auto;
    align-items: center;
    padding: 16px 16px 16px 22px;
}

.tool-card:not(:has(.tool-card__tagline)) .tool-card__icon {
    grid-row: 1;
}

.tool-card:not(:has(.tool-card__tagline)) .tool-card__title {
    align-self: center;
}

.tool-card:not(:has(.tool-card__tagline)) .tool-card__arrow {
    grid-row: 1;
}

/* ========================================
   Features Section
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: var(--card-padding);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-card__icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.feature-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card__description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Statistics Section - Redesigned
   ======================================== */
.stats-section {
    background: var(--bg-secondary);
    padding: 70px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-card {
    padding: 32px 24px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.stat-card__number {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-card__label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Format Guide Section
   ======================================== */
.format-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.format-guide-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.format-guide-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.format-guide-card__header {
    margin-bottom: 16px;
}

.format-guide-card__badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
}

.format-guide-card__description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.format-guide-card__best {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   Security Section - Redesigned
   ======================================== */
.security-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.security-section .container {
    position: relative;
    z-index: 1;
}

.security-section__header {
    text-align: center;
    margin-bottom: 48px;
}

.security-section__title {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.security-section__subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.security-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.security-item__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.2) 100%);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.security-item__icon svg {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.security-item__text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.security-item__text strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

/* ========================================
   How It Works Section - Redesigned
   ======================================== */
.how-to-section {
    padding: 60px 0;
}

.how-to-section__header {
    text-align: center;
    margin-bottom: 48px;
}

.how-to-section__title {
    font-size: 1.75rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.how-to-section__subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.how-to-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.how-to-step {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.how-to-step:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.how-to-step__number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.how-to-step__content {
    flex: 1;
}

.how-to-step__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.how-to-step__description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How It Works Section - Enhanced */
.section--how-it-works {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0.08) 50%, rgba(var(--primary-rgb), 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.section--how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.section--how-it-works::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

/* Simple steps for homepage */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.step-card__number {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 24px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.step-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-card__description {
    color: var(--text-secondary);
}

/* ========================================
   Use Cases Section
   ======================================== */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.use-case-card {
    padding: var(--card-padding);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
}

.use-case-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.use-case-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.use-case-card__icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.use-case-card__title {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.use-case-card__description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ========================================
   Blog Section
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.blog-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-card__image {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.blog-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__content {
    padding: var(--card-padding);
}

.blog-card__category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.blog-card__title {
    font-size: 1.125rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card__title a {
    color: var(--text-primary);
}

.blog-card__title a:hover {
    color: var(--primary);
}

.blog-card__excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.blog-card__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    background: var(--bg-primary);
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.active .faq-question__icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer__content {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Rating Section - Interactive with Emojis
   ======================================== */
.rating-section {
    background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: var(--radius-xl);
    padding: 32px 40px;
    margin-top: 32px;
    text-align: center;
    position: relative;
}

.rating-section__title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 700;
}

.rating-section__subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.6;
}

.rating-stars-interactive {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px 0;
}

.rating-star {
    position: relative;
    width: 56px;
    height: 56px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.rating-star:hover {
    transform: scale(1.1) translateY(-4px);
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

.rating-star__emoji {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    font-size: 28px;
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
}

.rating-star:hover .rating-star__emoji {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    top: -48px;
}

.rating-star svg {
    width: 32px;
    height: 32px;
    color: #d1d5db;
    fill: #d1d5db;
    transition: all 0.2s ease;
}

.rating-star:hover svg,
.rating-star.hovered svg {
    color: #fbbf24;
    fill: #fbbf24;
}

.rating-star.active svg {
    color: #f59e0b;
    fill: #f59e0b;
    transform: scale(1.1);
}

.rating-star.rated {
    pointer-events: none;
}

.rating-star.rated svg {
    color: #f59e0b;
    fill: #f59e0b;
}

.rating-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.rating-info svg {
    width: 18px;
    height: 18px;
    color: #f59e0b;
    fill: #f59e0b;
}

.rating-info__count {
    font-weight: 600;
    color: var(--primary);
}

.rating-thank-you {
    display: none;
    padding: 16px 24px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    color: var(--success);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 20px;
}

.rating-thank-you.show {
    display: block;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 48px;
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer__logo img {
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer__description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--primary);
    color: white;
}

.footer__column-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--primary);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.footer__language {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__language-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

/* ========================================
   Converter Page
   ======================================== */
.converter-section {
    padding: 40px 0 60px;
}

.converter-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.converter-header {
    text-align: center;
    margin-bottom: 32px;
}

.converter-header h1 {
    font-size: 1.875rem;
    margin-bottom: 12px;
}

.converter-header p {
    color: var(--text-secondary);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.upload-zone__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.upload-zone__icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.upload-zone__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-zone__hint {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Compact upload zone when files are selected */
.upload-zone.has-files {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.upload-zone.has-files .upload-zone__icon {
    width: 40px;
    height: 40px;
    margin: 0;
    flex-shrink: 0;
}

.upload-zone.has-files .upload-zone__icon svg {
    width: 20px;
    height: 20px;
}

.upload-zone.has-files .upload-zone__title {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.upload-zone.has-files .upload-zone__hint {
    display: none;
}

/* File List */
.file-list {
    margin-top: 16px;
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.file-list:empty {
    display: none;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.file-item__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.file-item__info {
    flex: 1;
    min-width: 0;
}

.file-item__name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item__size {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.file-item__remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.file-item__remove:hover {
    background: var(--error-light);
    color: var(--error);
}

.file-item__remove svg {
    pointer-events: none;
}

/* Download Results */
.download-results {
    margin-top: 24px;
    padding: 24px;
    background: var(--success-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--success);
}

.download-results__title {
    color: var(--success);
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-results__files {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.download-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius);
    gap: 12px;
    overflow: hidden;
}

.download-file__name {
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
    font-size: 0.9375rem;
    line-height: 1.2;
}

.download-file__btn {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

.download-file__btn:hover {
    background: var(--primary-dark);
    color: white;
}

.download-results__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.download-results__actions .btn {
    padding: 10px 20px;
    font-size: 0.9375rem;
}

/* Download Results - Dark Mode */
[data-theme="dark"] .download-results {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .download-results__title {
    color: #34d399;
}

[data-theme="dark"] .download-file {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .download-file__name {
    color: var(--text-primary);
}

[data-theme="dark"] .download-file__btn {
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
}

[data-theme="dark"] .download-file__btn:hover {
    background: var(--primary-light);
    color: #ffffff;
}

/* Converter Actions */
.converter-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 16px;
}

/* Quality Slider */
.quality-control {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.quality-control__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.quality-control__label span:first-child {
    font-weight: 500;
}

.quality-control__value {
    font-weight: 600;
    color: var(--primary);
}

.quality-slider {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-color);
    border-radius: var(--radius-full);
    outline: none;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quality-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-primary);
}

/* ========================================
   About Content Section
   ======================================== */
.about-content-section {
    padding: 60px 0;
}

.about-content-section__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content-section__title {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.about-content-section__text {
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-content-section__text p {
    margin-bottom: 16px;
}

.about-content-section__text h3 {
    color: var(--text-primary);
    margin: 28px 0 16px;
    font-size: 1.25rem;
}

.about-content-section__text ul {
    margin: 16px 0 16px 24px;
    list-style: disc;
}

.about-content-section__text li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.about-content-section__text strong {
    color: var(--text-primary);
}

/* ========================================
   About Tool Card - Redesigned
   ======================================== */
.about-tool-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.about-tool-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.about-tool-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    border-bottom: 1px solid var(--border-color);
}

.about-tool-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: var(--radius-lg);
    color: white;
    flex-shrink: 0;
}

.about-tool-card__title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.about-tool-card__content {
    padding: 32px;
}

.about-tool-card__intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

.about-tool-card__section {
    margin-bottom: 28px;
}

.about-tool-card__section h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.about-tool-card__section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-tool-card__benefits h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-tool-card__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.about-benefit {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.about-benefit svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.about-benefit strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.about-benefit span {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.about-tool-card__formats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 600px) {
    .about-tool-card__formats {
        flex-direction: column;
        gap: 16px;
    }

    .about-tool-card__formats .format-info__arrow {
        transform: rotate(90deg);
    }

    .about-tool-card__formats .format-info__desc {
        max-width: none;
    }
}

.format-info {
    text-align: center;
}

.format-info__label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.format-info__badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.format-info__badge--from {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.format-info__badge--to {
    background: var(--primary);
    color: white;
}

.format-info__desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    max-width: 200px;
}

.format-info__arrow {
    color: var(--primary);
}

/* ========================================
   Content Section (for Related Tools, etc.)
   ======================================== */
.content-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.content-section .tools-section__header {
    text-align: center;
    margin-bottom: 32px;
}

.content-section .tools-section__title {
    font-size: 1.75rem;
}

/* ========================================
   Breadcrumbs
   ======================================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-tertiary);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs__separator {
    color: var(--text-tertiary);
}

.breadcrumbs__current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    color: white;
}

.stat-card__number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-card__label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========================================
   Trust Section
   ======================================== */
.trust-section {
    padding: 48px 0;
    text-align: center;
}

.trust-section__title {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.trust-logos img {
    height: 32px;
    filter: grayscale(100%);
    transition: all var(--transition);
}

.trust-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   Blog Page Styles
   ======================================== */
.blog-header {
    padding: 60px 0 40px;
    background: var(--bg-secondary);
    text-align: center;
}

.blog-header h1 {
    margin-bottom: 12px;
}

.blog-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.blog-listing {
    padding: 60px 0;
}

/* Blog Post Page */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.blog-post__header {
    margin-bottom: 32px;
}

.blog-post__category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.blog-post__title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.blog-post__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    flex-wrap: wrap;
}

.blog-post__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.blog-post__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.blog-post__image:hover img {
    transform: scale(1.02);
}

.blog-post__content {
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.blog-post__content h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 48px 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.blog-post__content h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
}

.blog-post__content h3 {
    font-size: 1.375rem;
    color: var(--text-primary);
    margin: 36px 0 18px;
    padding-left: 16px;
    border-left: 3px solid var(--primary);
}

.blog-post__content p {
    margin-bottom: 20px;
}

.blog-post__content > p:first-of-type {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.blog-post__content ul,
.blog-post__content ol {
    margin: 0 0 24px 0;
    padding-left: 0;
    list-style: none;
}

.blog-post__content ol {
    counter-reset: item;
}

.blog-post__content ul > li,
.blog-post__content ol > li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.blog-post__content ul > li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.blog-post__content ol > li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.blog-post__content ol > li {
    min-height: 22px;
    padding-left: 32px;
    line-height: 1.6;
}

.blog-post__content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(120, 25, 228, 0.3);
    transition: all var(--transition-fast);
}

.blog-post__content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

/* Exclude buttons from regular link styling */
.blog-post__content a.btn {
    border-bottom: none;
}

.blog-post__content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-post__content code {
    background: var(--bg-tertiary);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.blog-post__content pre {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    overflow-x: auto;
    margin: 32px 0;
    position: relative;
}

.blog-post__content pre::before {
    content: "Code";
    position: absolute;
    top: 0;
    right: 16px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post__content pre code {
    background: none;
    padding: 0;
    border: none;
}

.blog-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.blog-post__content th,
.blog-post__content td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.blog-post__content th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.blog-post__content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Table of Contents */
.toc {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.toc__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.toc__title svg {
    transition: transform var(--transition);
}

.toc__title.collapsed svg {
    transform: rotate(-90deg);
}

.toc__title.collapsed {
    margin-bottom: 0;
}

.toc__content {
    display: block;
}

.toc__content.hide {
    display: none;
}

.toc__list {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.toc__list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.toc__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.toc__list a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

.toc__list a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* ========================================
   Blog Post Enhancements
   ======================================== */

/* Pros & Cons Boxes */
.blog-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .blog-pros-cons {
        grid-template-columns: 1fr;
    }
}

.blog-pros,
.blog-cons {
    padding: 0;
    border-radius: var(--radius-lg);
    border: 2px solid;
    overflow: hidden;
}

.blog-pros {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

.blog-cons {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%);
    border-color: rgba(239, 68, 68, 0.4);
}

.blog-pros h4,
.blog-cons h4 {
    margin: 0;
    padding: 16px 20px;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.blog-pros h4 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}


.blog-cons h4 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}


.blog-pros ul,
.blog-cons ul {
    margin: 0 !important;
    padding: 20px 24px !important;
    list-style: none !important;
}

.blog-pros li,
.blog-cons li {
    position: relative;
    padding-left: 28px !important;
    margin-bottom: 12px !important;
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-pros li:last-child,
.blog-cons li:last-child {
    margin-bottom: 0 !important;
}

.blog-pros li::before {
    content: "✓" !important;
    position: absolute;
    left: 0 !important;
    top: 0.2em !important;
    width: 18px !important;
    height: 18px !important;
    background: #10b981 !important;
    color: white !important;
    font-weight: 700;
    font-size: 0.65rem;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.blog-cons li::before {
    content: "✗" !important;
    position: absolute;
    left: 0 !important;
    top: 0.2em !important;
    width: 18px !important;
    height: 18px !important;
    background: #ef4444 !important;
    color: white !important;
    font-weight: 700;
    font-size: 0.65rem;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Blog CTA Box */
.blog-cta {
    background: linear-gradient(135deg, rgba(120, 25, 228, 0.1) 0%, rgba(120, 25, 228, 0.02) 100%);
    border: 2px solid rgba(120, 25, 228, 0.25);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    margin: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.blog-cta h3,
.blog-post__content .blog-cta h3 {
    color: var(--text-primary);
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 1.5rem;
    text-align: center;
}

.blog-cta h3::after,
.blog-post__content .blog-cta h3::after {
    display: none !important;
}

.blog-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
}

.blog-cta .btn,
.blog-cta a.btn,
.blog-post__content .blog-cta a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    background: var(--primary);
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-primary);
}

.blog-cta .btn:hover,
.blog-cta a.btn:hover,
.blog-post__content .blog-cta a.btn:hover {
    background: var(--primary-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(120, 25, 228, 0.35);
}

/* Blog Info Box */
.blog-info-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    padding: 24px 28px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 32px 0;
    box-shadow: var(--shadow-sm);
}

.blog-info-box.tip {
    border-left-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.blog-info-box.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.blog-info-box strong {
    display: block;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.blog-info-box ul {
    margin: 0 !important;
    padding: 0 !important;
}

.blog-info-box ul li {
    margin-bottom: 8px !important;
    padding-left: 24px !important;
    position: relative;
}

.blog-info-box ul li::before {
    content: "" !important;
    position: absolute !important;
    left: 6px !important;
    top: 0.55em !important;
    width: 6px !important;
    height: 6px !important;
    background: #10b981 !important;
    border-radius: 50% !important;
}

.blog-info-box.warning ul li::before {
    background: #f59e0b !important;
}

/* Blog FAQ Accordion */
.blog-faq {
    margin: 40px 0;
}

.blog-faq h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.blog-faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.blog-faq-item:hover {
    border-color: var(--primary-light);
}

.blog-faq-question {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.blog-faq-question:hover {
    color: var(--primary);
}

.blog-faq-question::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform var(--transition);
}

.blog-faq-item.active .blog-faq-question::after {
    content: "−";
}

.blog-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.blog-faq-item.active .blog-faq-answer {
    max-height: 500px;
}

.blog-faq-answer p {
    padding: 20px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
}

/* Blog Key Takeaways Box */
.blog-takeaways {
    background: linear-gradient(135deg, rgba(120, 25, 228, 0.06) 0%, rgba(120, 25, 228, 0.02) 100%);
    border: 1px solid rgba(120, 25, 228, 0.15);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin: 40px 0;
    position: relative;
}

.blog-takeaways::before {
    content: "✓";
    position: absolute;
    top: -12px;
    left: 24px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.blog-takeaways h4 {
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 1.25rem;
}

.blog-takeaways ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.blog-takeaways li {
    position: relative;
    padding-left: 28px !important;
    margin-bottom: 12px !important;
    color: var(--text-secondary);
}

.blog-takeaways li::before {
    content: "→" !important;
    position: absolute;
    left: 0 !important;
    top: 0 !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1rem;
}

/* Blog Comparison Table Enhancement */
.blog-post__content .comparison-table {
    margin: 32px 0;
    overflow-x: auto;
}

.blog-post__content .comparison-table table {
    min-width: 100%;
}

.blog-post__content .comparison-table th {
    background: var(--primary);
    color: white;
}

.blog-post__content .comparison-table tr:nth-child(even) td {
    background: var(--bg-secondary);
}

/* ========================================
   404 & Error Pages
   ======================================== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.error-page__code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page__title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.error-page__description {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ========================================
   Related Tools Grid - Fixed spacing
   ======================================== */
.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.related-tools-grid .tool-card {
    padding: 14px 16px;
}

.related-tools-grid .tool-card__content {
    padding-right: 8px;
}

.tool-card--compact {
    padding: 14px 16px;
}

.tool-card--compact .tool-card__icon {
    width: 38px;
    height: 38px;
}

.tool-card--compact .tool-card__icon svg {
    width: 18px;
    height: 18px;
}

.tool-card--compact .tool-card__title {
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__brand {
        grid-column: span 2;
        max-width: none;
    }

    .steps-grid::before {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .header__inner {
        justify-content: space-between;
    }

    .header__search,
    .header__nav {
        display: none;
    }

    .header__actions {
        margin-left: auto;
        display: flex;
        gap: 4px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-search-btn {
        display: flex;
    }

    .theme-toggle,
    .mobile-menu-btn,
    .mobile-search-btn {
        width: 36px;
        height: 36px;
    }

    .hero::before {
        height: 300px;
    }

    .hero__highlights {
        gap: 8px;
    }

    .hero__highlight {
        padding: 5px 10px;
        font-size: 0.7rem;
        gap: 4px;
    }

    .hero__highlight svg {
        width: 12px;
        height: 12px;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* Stats bar - Mobile: Compact single row */
    .hero__stats-bar {
        margin-top: 24px;
        padding: 12px 16px;
        gap: 0;
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-lg);
    }

    .hero__stats-item {
        flex: 1;
        flex-direction: column;
        padding: 0 8px;
        gap: 2px;
        text-align: center;
    }

    .hero__stats-value {
        font-size: 1.25rem;
    }

    .hero__stats-label {
        font-size: 0.7rem;
    }

    .hero__stats-divider {
        height: 28px;
    }

    .universal-converter {
        padding: 20px 16px;
    }

    .universal-converter__dropzone {
        padding: 24px 16px;
    }

    .universal-converter__icon svg {
        width: 36px;
        height: 36px;
    }

    .universal-converter__text {
        font-size: 1rem;
    }

    .universal-converter__preview-grid {
        grid-template-columns: repeat(4, 1fr);
        max-height: none;
        gap: 8px;
        overflow-y: visible;
    }

    .universal-converter__preview-item {
        aspect-ratio: 1;
        min-height: 0;
        width: 100%;
    }

    .universal-converter__preview-remove {
        opacity: 1;
    }

    /* Tool card mobile - same grid layout as desktop with larger size */
    .tool-card {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 0 12px;
        padding: 20px 16px;
    }

    .tool-card__icon {
        width: 38px;
        height: 38px;
    }

    .tool-card__icon svg {
        width: 18px;
        height: 18px;
    }

    .tool-card__title {
        font-size: 0.9rem;
        line-height: 1.4;
        padding-top: 2px;
    }

    .tool-card__tagline {
        font-size: 0.8rem;
        grid-column: 2 / 4;
        margin-top: 3px;
    }

    .tool-card__arrow {
        grid-row: 1 / 3;
    }

    .tool-card__arrow svg {
        width: 14px;
        height: 14px;
    }

    .universal-converter__format-select {
        margin-top: 16px;
        padding-top: 16px;
    }

    .format-btn {
        padding: 8px 14px;
        font-size: 0.875rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps-grid::before {
        display: none;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer__brand {
        grid-column: 1;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__logo {
        justify-content: center;
    }

    .footer__description {
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__column {
        text-align: center;
    }

    .footer__column-title {
        text-align: center;
    }

    .footer__links {
        align-items: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        align-items: center;
    }

    .footer__language {
        justify-content: center;
    }

    .blog-post__title {
        font-size: 1.75rem;
    }

    .blog-post__content {
        font-size: 1rem;
    }

    .how-to-step {
        flex-direction: column;
        text-align: center;
    }

    .how-to-step__number {
        margin: 0 auto;
    }

    .rating-section {
        padding: 32px 20px;
    }

    .rating-section__title {
        font-size: 1.25rem;
    }

    .rating-section__subtitle {
        font-size: 0.875rem;
        margin-bottom: 24px;
    }

    .rating-stars-interactive {
        gap: 6px;
        padding: 12px 0;
    }

    .rating-star {
        width: 44px;
        height: 44px;
    }

    .rating-star svg {
        width: 24px;
        height: 24px;
    }

    .rating-star__emoji {
        font-size: 22px;
        top: -32px;
    }

    .rating-star:hover .rating-star__emoji {
        top: -38px;
    }

    .rating-info {
        padding: 10px 18px;
        font-size: 0.875rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .stat-card__number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .hero__highlights {
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 4px;
        justify-content: center;
    }

    .hero__highlight {
        padding: 4px 8px;
        font-size: 0.65rem;
    }

    .hero__highlight svg {
        width: 10px;
        height: 10px;
    }

    /* Stats bar - Extra small screens */
    .hero__stats-bar {
        padding: 10px 12px;
    }

    .hero__stats-item {
        padding: 0 6px;
    }

    .hero__stats-value {
        font-size: 1.1rem;
    }

    .hero__stats-label {
        font-size: 0.65rem;
    }

    .hero__stats-divider {
        height: 24px;
    }

    .hero__cta {
        flex-direction: column;
        width: 100%;
    }

    .hero__cta .btn {
        width: 100%;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .converter-actions {
        flex-direction: column;
    }

    .converter-actions .btn {
        width: 100%;
    }

    .universal-converter {
        padding: 24px 16px;
    }

    .universal-converter__preview-grid {
        grid-template-columns: repeat(3, 1fr);
        max-height: none;
        gap: 6px;
        overflow-y: visible;
    }

    .universal-converter__preview-item {
        aspect-ratio: 1;
        min-height: 0;
        width: 100%;
    }

    .universal-converter__preview-item--add svg {
        width: 20px;
        height: 20px;
    }

    .universal-converter__preview-item--add span {
        font-size: 0.5rem;
    }

    /* Tool card mobile - ensure vertical layout */
    .tool-card {
        flex-wrap: wrap;
    }

    .tool-card__content {
        flex: 1 1 calc(100% - 60px);
        min-width: 0;
    }

    .download-results__actions {
        flex-direction: column;
        align-items: center;
    }

    .download-results__actions .btn {
        width: auto;
        min-width: 200px;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-slide-up {
    animation: slideUp 0.5s ease;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

.hidden { display: none !important; }
.visible { display: block; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Page Hero (About, Privacy, Terms)
   ======================================== */
.page-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
}

.page-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.page-hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ========================================
   About Page Styles
   ======================================== */
.about-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-mission__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.about-mission__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.about-mission__text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-mission__stats {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.about-stat {
    text-align: center;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    min-width: 120px;
}

.about-stat__number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-stat__label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* About Features Grid */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-feature {
    padding: 32px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.about-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.about-feature__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
    margin-bottom: 16px;
}

.about-feature__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.about-feature__text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.value-card {
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    position: relative;
}

.value-card__number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(var(--primary-rgb), 0.1);
    line-height: 1;
}

.value-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
}

.value-card__text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Technology Section */
.tech-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-section__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.tech-section__text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.tech-list {
    list-style: none;
}

.tech-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.tech-list__item svg {
    color: var(--success);
    flex-shrink: 0;
}

.tech-section__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-graphic {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    color: var(--primary);
}

/* About CTA */
.about-cta {
    text-align: center;
    padding: 60px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.1) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.about-cta__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-cta__text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.about-cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ========================================
   Legal Pages (Privacy, Terms)
   ======================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content__updated {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-section__subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section ul {
    list-style: none;
    margin-bottom: 16px;
}

.legal-section li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.legal-highlight {
    padding: 24px;
    background: rgba(var(--primary-rgb), 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
}

.legal-highlight p {
    margin-bottom: 0;
}

.legal-contact {
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.legal-contact__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.legal-contact__item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.legal-contact__item:last-child {
    margin-bottom: 0;
}

.legal-contact__item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Responsive for About & Legal */
@media (max-width: 992px) {
    .about-mission {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tech-section__visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-hero__title {
        font-size: 2rem;
    }

    .about-mission__stats {
        flex-direction: column;
        gap: 16px;
    }

    .about-stat {
        min-width: auto;
    }

    .about-features-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .about-cta {
        padding: 40px 24px;
    }

    .about-cta__buttons {
        flex-direction: column;
    }

    .about-cta__buttons .btn {
        width: 100%;
    }
}
