/* =========================================
   PixelConvert — Full Responsive CSS
   Theme: Light (default) / Dark (data-theme="dark")
   ========================================= */

/* ── LIGHT THEME (Default) ── */
:root {
    --primary: #5a54f5;
    --primary-light: rgba(90, 84, 245, 0.12);
    --primary-glow: rgba(90, 84, 245, 0.35);
    --accent: #0dbab0;
    --accent-light: rgba(13, 186, 176, 0.12);

    /* Light palette */
    --bg: #f0f2f8;
    --surface: rgba(255, 255, 255, 0.75);
    --surface-hover: rgba(255, 255, 255, 0.95);
    --border: rgba(0, 0, 0, 0.08);
    --text: #1a1d2e;
    --text-muted: #64748b;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);

    /* Nav */
    --nav-bg: rgba(255, 255, 255, 0.6);
    --nav-item-hover: rgba(90, 84, 245, 0.08);
    --nav-active-color: var(--primary);

    /* Spotlight */
    --spotlight: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
            rgba(13, 186, 176, 0.08) 0%, rgba(90, 84, 245, 0.06) 35%, transparent 65%);

    /* Spacing tokens */
    --pad: 2rem;
    --gap: 1.5rem;
    --header-mb: 1.5rem;
    --logo-size: 2rem;
    --card-pad: 1.5rem;
    --drop-pad: 2.5rem 1rem;
    --upload-icon-size: 2.5rem;
}

/* ── DARK THEME ── */
[data-theme="dark"] {
    --bg: #070b14;
    --surface: rgba(20, 26, 40, 0.65);
    --surface-hover: rgba(30, 40, 60, 0.8);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(10, 14, 26, 0.7);
    --nav-item-hover: rgba(90, 84, 245, 0.15);
    --nav-active-color: #a5b4fc;
    --spotlight: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
            rgba(13, 186, 176, 0.1) 0%, rgba(90, 84, 245, 0.08) 35%, transparent 65%);
}

/* ── Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    height: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    height: 100%;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* About page scrolls */
body.about-body {
    overflow: auto;
    height: auto;
}

#spotlight-bg {
    position: fixed;
    inset: 0;
    background: var(--spotlight);
    pointer-events: none;
    z-index: -1;
    transition: background 0.5s;
}

/* ── Container ── */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: var(--pad);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.about-page-container {
    height: auto;
    min-height: 100vh;
}

/* ═══════════════════════════════
   NAVIGATION (Premium)
═══════════════════════════════ */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--header-mb);
    flex-shrink: 0;
    position: relative;
    z-index: 1000;
}

.logo {
    font-size: var(--logo-size);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    line-height: 1;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.82rem;
    height: 1.2rem;
    margin-top: 0.25rem;
}

.main-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.35rem 0.5rem;
    box-shadow: var(--shadow);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* 🍔 Hamburger Elements */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--text);
    height: 2px;
    width: 20px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-label span::before {
    top: -6px;
}

.nav-toggle-label span::after {
    top: 6px;
}

/* Animation */
.nav-toggle:checked~.nav-toggle-label span {
    background: transparent;
}

.nav-toggle:checked~.nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle:checked~.nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--text);
    background: var(--nav-item-hover);
}

.main-nav a.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

[data-theme="dark"] .main-nav a.active {
    color: #fff;
}

/* 🌐 Language Switcher */
.lang-item {
    margin-left: 0.5rem;
    position: relative;
}

.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-current {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.lang-current:hover {
    background: var(--nav-item-hover);
    border-color: var(--primary);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
    padding: 0.4rem 0;
}

.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-opt {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-opt:hover {
    background: var(--nav-item-hover);
    color: var(--primary);
}

.lang-opt.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

/* ═══════════════════════════════
   MAIN LAYOUT
═══════════════════════════════ */
.main-content {
    flex: 1;
    min-height: 0;
    margin-bottom: var(--gap);
}

.converter-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--gap);
    height: 100%;
    min-height: 0;
}

.column-left,
.column-right {
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════
   GLASS CARD
═══════════════════════════════ */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: var(--card-pad);
    box-shadow: var(--shadow-lg);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.fh-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.upload-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* ═══════════════════════════════
   DROP ZONE
═══════════════════════════════ */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: var(--drop-pad);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-bottom: 1rem;
    background: transparent;
    flex-shrink: 0;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: scale(0.99);
}

.upload-icon {
    font-size: var(--upload-icon-size);
    color: var(--primary);
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 0 12px var(--primary-glow));
    display: block;
}

.drop-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.file-hint {
    font-size: 0.73rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════
   QUEUE
═══════════════════════════════ */
.queue-container {
    background: var(--primary-light);
    border-radius: 14px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(90, 84, 245, 0.15);
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.queue-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.queue-thumbs::-webkit-scrollbar {
    height: 4px;
}

.queue-thumbs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    opacity: 0.5;
}

.queue-item {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.queue-item:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ═══════════════════════════════
   OPTIONS
═══════════════════════════════ */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    flex-shrink: 0;
}

.option-item {
    background: rgba(0, 0, 0, 0.03);
    padding: 0.8rem;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}

[data-theme="dark"] .option-item {
    background: rgba(255, 255, 255, 0.03);
}

.option-item.highlighted {
    border-color: rgba(90, 84, 245, 0.2);
    background: var(--primary-light);
}

.option-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.73rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ── Format Badges ── */
.format-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.format-badge {
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.format-badge:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.format-badge.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 3px 10px var(--primary-glow);
}

/* ── PDF Special Style (Non-Image) ── */
.format-badge[data-format="application/pdf"] {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-style: italic;
}

.format-badge[data-format="application/pdf"]:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.format-badge[data-format="application/pdf"].active {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ── Range Slider ── */
.range-wrapper {
    padding: 0.4rem 0;
}

.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    accent-color: var(--primary);
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px var(--primary-glow);
    transition: transform 0.2s;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

/* ═══════════════════════════════
   RESULTS SECTION
═══════════════════════════════ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
}

.section-title i {
    color: var(--accent);
}

.batch-header-actions {
    display: flex;
    gap: 0.5rem;
}

.conversion-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-right: 0.4rem;
    min-height: 0;
}

.conversion-list::-webkit-scrollbar {
    width: 4px;
}

.conversion-list::-webkit-scrollbar-track {
    background: transparent;
}

.conversion-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.4;
    gap: 0.8rem;
}

.empty-state i {
    font-size: 3rem;
}

/* ── Conversion Items ── */
.conversion-item {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideIn 0.3s ease-out;
    flex-shrink: 0;
    transition: box-shadow 0.2s;
}

.conversion-item:hover {
    box-shadow: var(--shadow);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.item-preview {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-status {
    font-size: 0.68rem;
    font-weight: 500;
}

.item-actions a {
    color: var(--primary);
    font-size: 0.85rem;
}

.item-actions a:hover {
    opacity: 0.7;
}

/* ═══════════════════════════════
   BUTTONS
═══════════════════════════════ */
.btn {
    border: none;
    border-radius: 10px;
    padding: 0.55rem 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: #fff;
    box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--primary-glow);
}

.btn-lg {
    padding: 0.75rem 1.8rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-spark {
    position: relative;
    overflow: hidden;
}

.btn-spark::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-spark:hover::after {
    opacity: 1;
}

.btn-zip {
    background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(13, 186, 176, 0.3);
}

.btn-zip:hover {
    filter: brightness(1.1);
    transform: scale(1.04);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    border-radius: 8px;
}

/* ═══════════════════════════════
   LOADER
═══════════════════════════════ */
.loader-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
footer {
    text-align: center;
    padding: 0.8rem 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    flex-shrink: 0;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.75;
}

.hidden {
    display: none !important;
}

/* Dark Mode Toggle logic - styles are at the end of file */

/* ═══════════════════════════════════════════════
   ABOUT PAGE — Premium Redesign
═══════════════════════════════════════════════ */
.about-main {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-bottom: 2rem;
}

/* Hero */
.about-hero-section {
    text-align: center;
    padding: 3rem 1rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(90, 84, 245, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.2rem;
}

.about-hero-title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Section */

.section-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2rem;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(90, 84, 245, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 8px 20px var(--primary-glow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 28px var(--primary-glow);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.7rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Formats Section */
.formats-section {
    text-align: center;
}

.formats-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.formats-section h2 i {
    color: var(--primary);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.format-info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem 0.8rem;
    transition: all 0.3s;
    cursor: default;
}

.format-info-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--primary-glow);
}

.format-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.format-info-card p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Creator Section */


.creator-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
}

.creator-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 12px 30px var(--primary-glow);
    transition: transform 0.3s;
}

.creator-card:hover .creator-avatar {
    transform: scale(1.05) rotate(-5deg);
}

.creator-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.creator-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    max-width: 500px;
}

.creator-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stats bar */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ═══════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════ */

/* Full HD+ */
@media (min-width: 1441px) {
    :root {
        --pad: 2.5rem;
        --gap: 2rem;
        --header-mb: 2rem;
        --logo-size: 2.2rem;
        --card-pad: 2rem;
        --drop-pad: 3rem 1.5rem;
        --upload-icon-size: 3rem;
    }

    .queue-item {
        width: 60px;
        height: 60px;
    }

    .item-preview {
        width: 50px;
        height: 50px;
    }
}

/* Desktop HD (includes 1366x768) */
@media (min-width: 1024px) and (max-width: 1440px) {
    :root {
        --pad: 1.2rem;
        --gap: 1rem;
        --header-mb: 0.8rem;
        --logo-size: 1.6rem;
        --card-pad: 1rem;
        --drop-pad: 1.2rem 0.8rem;
        --upload-icon-size: 1.8rem;
    }

    .drop-text {
        font-size: 0.8rem;
    }

    .file-hint {
        font-size: 0.68rem;
    }

    .option-item label {
        font-size: 0.68rem;
        margin-bottom: 0.4rem;
    }

    .format-badge {
        padding: 0.32rem 0.55rem;
        font-size: 0.66rem;
    }

    .conversion-item {
        padding: 0.45rem 0.7rem;
    }

    .item-preview {
        width: 38px;
        height: 38px;
    }

    .item-name {
        font-size: 0.75rem;
    }

    .queue-item {
        width: 46px;
        height: 46px;
    }

    footer {
        padding: 0.5rem 0;
    }

    .formats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-grid {
        gap: 1rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {

    html,
    body {
        overflow: auto;
        height: auto;
    }

    .converter-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .column-left,
    .column-right {
        height: auto;
    }

    .fh-card {
        flex: none;
        min-height: 380px;
    }

    .upload-section {
        overflow: visible;
    }

    .formats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .creator-card {
        flex-direction: column;
        text-align: center;
    }

    .creator-actions {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --pad: 1rem;
        --gap: 0.8rem;
        --header-mb: 1rem;
        --logo-size: 1.4rem;
        --card-pad: 1rem;
        --drop-pad: 1.5rem 0.8rem;
        --upload-icon-size: 1.8rem;
    }

    html,
    body {
        overflow: auto;
        height: auto;
    }

    .main-header {
        flex-direction: row;
        /* Keep logo and menu on the same row if possible or stacked neatly */
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .logo-area {
        flex: 1;
    }

    .subtitle {
        display: none;
        /* Hide subtitle on mobile to save space */
    }

    .main-nav {
        border-radius: 14px;
        padding: 0;
        width: 100%;
        position: relative;
    }

    .nav-toggle-label {
        display: flex;
        padding: 0.8rem;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0.5rem;
        background: var(--nav-bg);
        border-top: 1px solid var(--border);
        border-radius: 0 0 14px 14px;
        position: absolute;
        top: 100%;
        left: 0;
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow-lg);
    }

    .nav-toggle:checked~ul {
        display: flex;
    }

    .main-nav a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-radius: 12px;
        width: 100%;
    }

    /* Fix language dropdown on mobile */
    .lang-item {
        margin-left: 0;
        width: 100%;
        padding-top: 0.5rem;
    }

    .lang-switcher {
        width: 100%;
        position: relative;
    }

    .lang-current {
        width: 100%;
        justify-content: space-between;
        padding: 0.8rem 1rem;
        border-radius: 12px;
    }

    .lang-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        display: block !important;
        width: 100%;
        box-shadow: var(--shadow-lg);
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        z-index: 100;
        transition: all 0.3s ease;
    }

    .lang-switcher:hover .lang-dropdown,
    .lang-switcher:focus-within .lang-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .lang-opt {
        padding: 0.8rem 1rem;
    }

    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--border);
        position: relative;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .converter-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .column-left,
    .column-right {
        height: auto;
    }

    .fh-card {
        flex: none;
        min-height: 300px;
    }

    .upload-section {
        overflow: visible;
    }

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

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

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

    .creator-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .creator-actions {
        justify-content: center;
    }

    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }
}

/* ═══════════════════════════════
   FAQ PAGE
═══════════════════════════════ */
.faq-section {
    position: relative;
    padding: 3rem 0;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .faq-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.faq-category {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .faq-category {
    background: rgba(15, 23, 42, 0.4);
}

.faq-category:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.2);
}

.faq-category-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.15);
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--surface);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.1);
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 12px 30px var(--primary-glow);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    transition: all 0.3s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '→';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    font-size: 1rem;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item[open] .faq-question::after {
    transform: rotate(90deg);
    background: var(--primary);
    color: #fff;
}

.faq-item[open] .faq-question {
    color: var(--primary);
}

.faq-answer {
    padding: 0 1.5rem 1.2rem;
    border-top: 1px solid var(--border);
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 1rem;
}

.faq-answer p strong {
    color: var(--text);
}

/* --- Floating Theme Toggle Enhanced --- */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-glow 3s infinite alternate;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.2);
}

.theme-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    background: var(--primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 40px var(--primary-glow);
}

.theme-toggle:active {
    transform: scale(0.95);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    100% {
        box-shadow: 0 0 0 12px rgba(99, 102, 241, 0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}