/* ============================================================================
   FILEMORPH — DESIGN SYSTEM
   Brand: dissolving-pixel morph motif, cyan → indigo → violet gradient
   Type:  Space Grotesk (display) / Inter (body) / JetBrains Mono (data)
   ============================================================================ */

/* ---------------------------------------------------------------------------
   0. FONTS
   --------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------------------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------------------- */
:root {
    /* Surfaces */
    --void: #05060c;
    --bg-main: #05060c;
    --bg-card: #0d0f1c;
    --bg-card-hover: #151830;
    --bg-raised: #11142200;
    --bg-nav: rgba(5, 6, 12, 0.72);
    --border-soft: rgba(148, 163, 197, 0.12);
    --border-strong: rgba(148, 163, 197, 0.22);

    /* Brand */
    --cyan: #22d3ee;
    --indigo: #6366f1;
    --violet: #8b5cf6;
    --gradient-brand: linear-gradient(120deg, var(--cyan) 0%, var(--indigo) 55%, var(--violet) 100%);
    --gradient-brand-hover: linear-gradient(120deg, #67e8f9 0%, #818cf8 55%, #a78bfa 100%);
    --primary-color: var(--indigo);
    --secondary-color: var(--violet);
    --accent-glow: rgba(139, 92, 246, 0.35);

    /* Text */
    --text-light: #f4f6fb;
    --text-muted: #96a0bd;
    --text-faint: #616c88;
    --text-dark: #05060c;

    /* Semantic */
    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.13);
    --error: #f87171;
    --error-bg: rgba(248, 113, 113, 0.13);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.13);

    /* Type */
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Layout */
    --container-max-width: 1240px;
    --container-padding: clamp(1.25rem, 4vw, 2.25rem);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 0.15s ease;
    --t-normal: 0.3s var(--ease-out);
    --t-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 24px -8px rgba(0,0,0,0.5);
    --shadow-lg: 0 24px 60px -16px rgba(0,0,0,0.65);
    --shadow-glow: 0 0 0 1px rgba(139,92,246,0.25), 0 12px 40px -8px rgba(99,102,241,0.35);
}

/* ---------------------------------------------------------------------------
   LIGHT THEME
   --------------------------------------------------------------------------- */
html.light-theme {
    --void: #f3f5fb;
    --bg-main: #f3f5fb;
    --bg-card: #ffffff;
    --bg-card-hover: #eef1fa;
    --bg-nav: rgba(255, 255, 255, 0.78);
    --border-soft: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);

    --text-light: #0b0e1a;
    --text-muted: #57607a;
    --text-faint: #838ca5;
    --text-dark: #ffffff;

    --success-bg: rgba(16, 185, 129, 0.1);
    --error-bg: rgba(239, 68, 68, 0.1);
    --warning-bg: rgba(245, 158, 11, 0.1);

    --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
    --shadow-md: 0 8px 24px -10px rgba(15,23,42,0.12);
    --shadow-lg: 0 24px 60px -20px rgba(15,23,42,0.18);
    --shadow-glow: 0 0 0 1px rgba(99,102,241,0.15), 0 12px 32px -10px rgba(99,102,241,0.25);
}

html.light-theme body { background-image: none; }
html.light-theme .pixel-field { opacity: 0.35; }
html.light-theme .hero::before { opacity: 0.5; }

/* ---------------------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    background-color: var(--bg-main);
    background-image:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
        radial-gradient(ellipse 900px 600px at 90% 10%, rgba(139, 92, 246, 0.12), transparent 60%);
    background-attachment: fixed;
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--indigo); }

::selection { background-color: var(--violet); color: #fff; }

img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------------------
   3. TYPOGRAPHY & UTILITIES
   --------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.15;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
p { margin-bottom: 1rem; }

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.25rem;
}

.eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    flex-shrink: 0;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    color: transparent;
}

a { color: var(--indigo); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--violet); }

*:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
    border-radius: 4px;
}

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

.skip-link {
    position: absolute;
    top: -50px;
    left: 1rem;
    background: var(--indigo);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-sm);
    z-index: 10001;
    font-weight: 600;
    transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------------------------------------------------------------------------
   4. NAVIGATION
   --------------------------------------------------------------------------- */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border-soft);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
    gap: 1rem;
}

.logo-container a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    height: 34px;
    width: auto;
    transition: transform var(--t-bounce);
}

.logo-container:hover .logo-icon { transform: rotate(-6deg) scale(1.08); }

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li a:not(.nav-cta) {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.98rem;
    position: relative;
    padding: 0.5rem 0.1rem;
}

.nav-links li a:not(.nav-cta):hover,
.nav-links li a.active {
    color: var(--text-light);
}

.nav-links li a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 2px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--t-normal);
}

.nav-links li a:not(.nav-cta):hover::after,
.nav-links li a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    background: var(--gradient-brand);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
    transition: transform var(--t-bounce), box-shadow var(--t-normal);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(139,92,246,0.45); color: #fff !important; }

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    transition: color var(--t-fast), transform var(--t-bounce), border-color var(--t-fast), background var(--t-fast);
    border-radius: 50%;
}

.theme-toggle-btn:hover {
    color: var(--violet);
    border-color: var(--border-strong);
    background: rgba(139,92,246,0.08);
    transform: rotate(15deg) scale(1.06);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    width: 42px; height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 20px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: transform var(--t-normal), opacity var(--t-normal);
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------------------
   5. HERO
   --------------------------------------------------------------------------- */
.hero {
    position: relative;
    text-align: center;
    padding: 5.5rem 1rem 3.5rem;
    max-width: 880px;
    margin: 0 auto;
    animation: fadeInDown 0.7s var(--ease-out);
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
}
.hero-badge svg { color: var(--success); flex-shrink: 0; }

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.75;
    margin-top: 1.4rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong { color: var(--text-light); font-weight: 600; }

/* ---------------------------------------------------------------------------
   6. TOOL CARD
   --------------------------------------------------------------------------- */
.converter-wrapper { margin-bottom: 4rem; position: relative; }

.tool-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 3rem);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.04);
    border: 1px solid var(--border-soft);
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 220px; height: 220px;
    background: var(--cyan);
    filter: blur(110px);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}
.tool-card::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -60px;
    width: 240px; height: 240px;
    background: var(--violet);
    filter: blur(120px);
    opacity: 0.16;
    z-index: 0;
    pointer-events: none;
}

/* ---------------------------------------------------------------------------
   7. DRAG AND DROP ZONE — pixel-morph motif
   --------------------------------------------------------------------------- */
.drop-zone {
    position: relative;
    z-index: 1;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 3.5rem 2rem;
    text-align: center;
    background: rgba(99, 102, 241, 0.04);
    cursor: pointer;
    transition: all var(--t-normal);
    overflow: hidden;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.dragover {
    background: rgba(99, 102, 241, 0.09);
    border-color: var(--violet);
    transform: scale(1.012);
}

.drop-zone.dragover { border-style: solid; }

.drop-icon-wrap {
    position: relative;
    display: inline-flex;
    margin-bottom: 1.4rem;
}

.drop-icon {
    color: var(--indigo);
    transition: transform var(--t-normal), color var(--t-normal);
    position: relative;
    z-index: 2;
}

.drop-zone:hover .drop-icon { transform: translateY(-6px); color: var(--violet); }

/* small dissolving pixel accents around the drop icon */
.pixel-burst { position: absolute; inset: -18px; pointer-events: none; z-index: 1; }
.pixel-burst span {
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 1px;
    background: var(--cyan);
    opacity: 0;
    transition: opacity var(--t-normal), transform var(--t-normal);
}
.drop-zone:hover .pixel-burst span { animation: pixelDrift 1.4s ease-in-out infinite; }
.pixel-burst span:nth-child(1) { top: 0; left: 10%; background: var(--cyan); animation-delay: 0s; }
.pixel-burst span:nth-child(2) { top: 20%; left: 0; background: var(--indigo); animation-delay: 0.15s; }
.pixel-burst span:nth-child(3) { top: 70%; left: 4%; background: var(--violet); animation-delay: 0.3s; }
.pixel-burst span:nth-child(4) { top: 5%; right: 6%; background: var(--violet); animation-delay: 0.2s; }
.pixel-burst span:nth-child(5) { top: 60%; right: 0; background: var(--cyan); animation-delay: 0.4s; }
.pixel-burst span:nth-child(6) { top: 85%; right: 15%; background: var(--indigo); animation-delay: 0.1s; }

@keyframes pixelDrift {
    0% { opacity: 0; transform: translate(0,0) scale(0.6); }
    40% { opacity: 0.9; }
    100% { opacity: 0; transform: translate(var(--dx, 14px), var(--dy, -14px)) scale(1.3); }
}

.drop-zone h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 0.4rem; }

.supported-formats {
    margin-top: 1.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    background: rgba(148,163,197,0.07);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    display: inline-block;
    letter-spacing: 0.02em;
}

/* File list (multi-file support) */
.file-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.file-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.9rem;
    animation: fadeIn 0.35s var(--ease-out);
}

.file-row .file-thumb {
    width: 38px; height: 38px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-card-hover);
    flex-shrink: 0;
}

.file-row .file-icon-fallback {
    width: 38px; height: 38px;
    border-radius: 6px;
    background: var(--bg-card-hover);
    display: flex; align-items: center; justify-content: center;
    color: var(--indigo);
    flex-shrink: 0;
}

.file-row .file-meta { flex: 1; min-width: 0; }
.file-row .file-name {
    font-size: 0.9rem; font-weight: 600; color: var(--text-light);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-row .file-size { font-size: 0.78rem; color: var(--text-faint); font-family: var(--font-mono); }

.file-row .file-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.file-row .file-status.pending { color: var(--text-muted); background: rgba(148,163,197,0.1); }
.file-row .file-status.working { color: var(--warning); background: var(--warning-bg); }
.file-row .file-status.done { color: var(--success); background: var(--success-bg); }
.file-row .file-status.failed { color: var(--error); background: var(--error-bg); }

.file-row .file-remove {
    background: transparent;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: color var(--t-fast), background var(--t-fast);
    flex-shrink: 0;
}
.file-row .file-remove:hover { color: var(--error); background: var(--error-bg); }

.add-more-btn {
    align-self: center;
    margin-top: 0.3rem;
    background: transparent;
    border: 1px dashed var(--border-strong);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--t-fast);
}
.add-more-btn:hover { color: var(--text-light); border-color: var(--indigo); }

/* ---------------------------------------------------------------------------
   8. FORM CONTROLS
   --------------------------------------------------------------------------- */
.controls {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.conversion-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.settings-label { font-size: 1.02rem; font-weight: 600; }

.format-dropdown {
    appearance: none;
    background-color: var(--bg-main);
    color: var(--text-light);
    border: 2px solid var(--border-soft);
    padding: 0.75rem 2.5rem 0.75rem 1.1rem;
    font-size: 0.98rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--t-fast);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.6rem auto;
}

.format-dropdown:hover, .format-dropdown:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    outline: none;
}

.format-dropdown optgroup { background: var(--bg-card); color: var(--text-muted); font-weight: bold; }
.format-dropdown option { background: var(--bg-main); color: var(--text-light); font-weight: normal; padding: 10px; }

.format-hint {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-faint);
    margin-top: -1.3rem;
    margin-bottom: 1.6rem;
}

/* ---------------------------------------------------------------------------
   9. BUTTONS
   --------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--t-bounce);
    letter-spacing: 0.01em;
}

.btn-large {
    padding: 1.05rem 2.6rem;
    font-size: 1.02rem;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    display: flex;
}

.primary-btn {
    background: var(--gradient-brand);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.32);
}

.primary-btn:hover {
    background: var(--gradient-brand-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px var(--accent-glow);
}

.primary-btn:active { transform: translateY(0); }
.primary-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }

/* ---------------------------------------------------------------------------
   10. HOW-IT-WORKS
   --------------------------------------------------------------------------- */
.how-section { padding: 5rem 0 2rem; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    counter-reset: step;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    position: relative;
    transition: transform var(--t-normal), border-color var(--t-normal);
}
.step-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.step-number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyan);
    background: rgba(34,211,238,0.09);
    border: 1px solid rgba(34,211,238,0.25);
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}

.step-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   11. FEATURES / TRUST GRID
   --------------------------------------------------------------------------- */
.features-section { padding: 4rem 0; }

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--gradient-brand);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    margin-bottom: 1.1rem;
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   12. SEO GRID & POPULAR CONVERSIONS
   --------------------------------------------------------------------------- */
.seo-grid-section { padding: 4rem 0; border-top: 1px solid var(--border-soft); }

.section-heading { text-align: center; margin-bottom: 2.75rem; }
.section-heading p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
}

.grid-card {
    background: var(--bg-card);
    padding: 1.6rem 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--t-normal);
    position: relative;
    overflow: hidden;
}

.grid-card .conv-arrow {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(99,102,241,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--indigo);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    transition: background var(--t-normal), color var(--t-normal);
}

.grid-card h3, .grid-card p { position: relative; z-index: 1; }
.grid-card h3 { font-size: 1.02rem; margin-bottom: 0.15rem; font-family: var(--font-sans); font-weight: 700; }
.grid-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.grid-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}
.grid-card:hover .conv-arrow { background: var(--gradient-brand); color: #fff; }

/* ---------------------------------------------------------------------------
   13. COMPRESSOR UI
   --------------------------------------------------------------------------- */
.preview-container {
    position: relative; z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.18);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    border: 1px solid var(--border-soft);
    gap: 1rem;
}

html.light-theme .preview-container { background: rgba(15,23,42,0.03); }

.preview-box { text-align: center; flex: 1; min-width: 0; }

.preview-thumb {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-card-hover);
    margin: 0 auto 0.9rem;
}

.preview-title {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.size-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.error-bg { background: var(--error-bg); color: var(--error); border: 1px solid rgba(248, 113, 113, 0.28); }
.success-bg { background: var(--success-bg); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.28); }
.warning-bg { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.3); }

.savings-badge {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--success);
}

.preview-arrow { color: var(--text-faint); padding: 0 0.5rem; animation: pulseArrow 2s infinite; flex-shrink: 0; }

.slider-container {
    position: relative; z-index: 1;
    background: rgba(255,255,255,0.025);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.75rem;
    border: 1px solid var(--border-soft);
}

html.light-theme .slider-container { background: rgba(15,23,42,0.02); }

.slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.quality-percentage { font-size: 1.1rem; color: var(--violet); font-family: var(--font-mono); }

.format-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.format-toggle button {
    flex: 1;
    min-width: 90px;
    background: transparent;
    border: 1.5px solid var(--border-soft);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--t-fast);
    font-family: var(--font-mono);
}
.format-toggle button.active {
    background: var(--gradient-brand);
    border-color: transparent;
    color: #fff;
}
.format-toggle button:not(.active):hover { border-color: var(--indigo); color: var(--text-light); }

.custom-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%;
    background: transparent;
    margin: 15px 0;
}
.custom-slider:focus { outline: none; }
.custom-slider::-webkit-slider-runnable-track {
    width: 100%; height: 8px; cursor: pointer;
    background: var(--bg-card-hover);
    border-radius: 10px;
    border: 1px solid var(--border-soft);
}
.custom-slider::-webkit-slider-thumb {
    height: 22px; width: 22px; border-radius: 50%;
    background: var(--violet);
    cursor: pointer; -webkit-appearance: none;
    margin-top: -8px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.55);
    border: 2px solid #fff;
    transition: transform var(--t-fast);
}
.custom-slider::-webkit-slider-thumb:hover { transform: scale(1.18); }
.custom-slider::-moz-range-track {
    width: 100%; height: 8px; cursor: pointer;
    background: var(--bg-card-hover); border-radius: 10px;
}
.custom-slider::-moz-range-thumb {
    height: 22px; width: 22px; border-radius: 50%;
    background: var(--violet); cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.55);
}

.slider-hint { margin-top: 1rem; font-size: 0.85rem; text-align: center; }

/* ---------------------------------------------------------------------------
   14. FAQ ACCORDION
   --------------------------------------------------------------------------- */
.faq-container { max-width: 800px; padding-top: 3.5rem; padding-bottom: 4rem; }
.faq-header { margin-bottom: 3rem; }

.faq-search {
    max-width: 480px;
    margin: 1.75rem auto 0;
    position: relative;
}
.faq-search input {
    width: 100%;
    background: var(--bg-card);
    border: 1.5px solid var(--border-soft);
    color: var(--text-light);
    padding: 0.85rem 1.2rem 0.85rem 2.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: border-color var(--t-fast);
}
.faq-search input:focus { outline: none; border-color: var(--indigo); }
.faq-search svg {
    position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
    color: var(--text-faint); pointer-events: none;
}

.faq-category-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin: 2.25rem 0 0.85rem;
}
.faq-category-label:first-of-type { margin-top: 0.5rem; }

.accordion-wrapper { display: flex; flex-direction: column; gap: 0.75rem; }

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--t-fast);
}
.accordion-item:has(.accordion-header.active) { border-color: var(--border-strong); }

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.02rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background var(--t-fast);
    font-family: var(--font-sans);
}

.accordion-header:hover { background: rgba(255,255,255,0.02); }

.accordion-icon { color: var(--indigo); transition: transform var(--t-normal); flex-shrink: 0; }
.accordion-header.active .accordion-icon { transform: rotate(180deg); color: var(--violet); }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-normal);
    background: rgba(0,0,0,0.12);
}
html.light-theme .accordion-content { background: rgba(15,23,42,0.02); }

.accordion-content p { padding: 0 1.4rem 1.4rem; margin: 0; color: var(--text-muted); }
.accordion-content code {
    background: var(--bg-main);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--violet);
    font-family: var(--font-mono);
}

.faq-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-faint);
    display: none;
}

/* ---------------------------------------------------------------------------
   15. DEEP SEO TEXT SECTION
   --------------------------------------------------------------------------- */
.seo-deep-content { margin-top: 4.5rem; padding-top: 2.5rem; border-top: 1px dashed var(--border-soft); }
.seo-content-box {
    background: var(--bg-card);
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
}
.seo-deep-content h2 { font-size: 1.6rem; color: var(--text-light); margin-bottom: 1.4rem; }
.seo-deep-content h3 { font-size: 1.25rem; margin-top: 2.25rem; margin-bottom: 1rem; color: var(--text-light); }
.seo-deep-content p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 1.4rem; }
.seo-deep-content strong { color: var(--text-light); }
.seo-text-block { padding: 3.5rem 0 1rem; max-width: 820px; margin: 0 auto; }
.seo-text-block h2 { font-size: 1.6rem; }
.seo-text-block p { color: var(--text-muted); line-height: 1.8; }
.seo-text-block strong { color: var(--text-light); }

/* ---------------------------------------------------------------------------
   16. FOOTER
   --------------------------------------------------------------------------- */
.main-footer {
    background: var(--bg-card);
    padding-top: 3.5rem;
    border-top: 1px solid var(--border-soft);
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; }
.footer-brand-logo img { height: 26px; width: auto; }
.footer-brand-logo span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-light);
}

.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 280px; }

.footer-links h4 {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-mono);
    font-weight: 600;
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; transition: all var(--t-fast); display: inline-block; }
.footer-links a:hover { color: var(--indigo); padding-left: 4px; }

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.15);
    color: var(--text-faint);
    font-size: 0.83rem;
    border-top: 1px solid var(--border-soft);
}
html.light-theme .footer-bottom { background: rgba(15,23,42,0.02); }
.footer-bottom p { margin: 0; }

/* ---------------------------------------------------------------------------
   17. ANIMATIONS
   --------------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseArrow { 0% { transform: scale(1); } 50% { transform: scale(1.15); color: var(--indigo); } 100% { transform: scale(1); } }

/* Pixel-morph loader — replaces the generic spinner */
.spinner {
    display: none;
    width: 64px;
    height: 64px;
    margin: 2rem auto 0.5rem;
    position: relative;
}
.spinner .pixel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
    width: 100%; height: 100%;
}
.spinner .pixel-grid span {
    background: var(--gradient-brand);
    border-radius: 2px;
    animation: pixelPulse 1.2s ease-in-out infinite;
    opacity: 0.25;
}
.spinner .pixel-grid span:nth-child(1) { animation-delay: 0s; }
.spinner .pixel-grid span:nth-child(2) { animation-delay: 0.05s; }
.spinner .pixel-grid span:nth-child(3) { animation-delay: 0.1s; }
.spinner .pixel-grid span:nth-child(4) { animation-delay: 0.15s; }
.spinner .pixel-grid span:nth-child(5) { animation-delay: 0.05s; }
.spinner .pixel-grid span:nth-child(6) { animation-delay: 0.1s; }
.spinner .pixel-grid span:nth-child(7) { animation-delay: 0.15s; }
.spinner .pixel-grid span:nth-child(8) { animation-delay: 0.2s; }
.spinner .pixel-grid span:nth-child(9) { animation-delay: 0.1s; }
.spinner .pixel-grid span:nth-child(10) { animation-delay: 0.15s; }
.spinner .pixel-grid span:nth-child(11) { animation-delay: 0.2s; }
.spinner .pixel-grid span:nth-child(12) { animation-delay: 0.25s; }
.spinner .pixel-grid span:nth-child(13) { animation-delay: 0.15s; }
.spinner .pixel-grid span:nth-child(14) { animation-delay: 0.2s; }
.spinner .pixel-grid span:nth-child(15) { animation-delay: 0.25s; }
.spinner .pixel-grid span:nth-child(16) { animation-delay: 0.3s; }

@keyframes pixelPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1); }
}

.spinner-label {
    display: none;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Ambient hero pixel field */
.hero { position: relative; }
.hero::before {
    content: '';
    position: absolute;
    inset: -40px -20px auto -20px;
    height: 340px;
    background-image:
        radial-gradient(circle, rgba(34,211,238,0.5) 1px, transparent 1.5px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 0%, transparent 75%);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

/* ---------------------------------------------------------------------------
   18. TOASTS
   --------------------------------------------------------------------------- */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: min(380px, calc(100vw - 48px));
}

.toast {
    background: var(--bg-card);
    color: var(--text-light);
    padding: 1rem 1.4rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    font-size: 0.92rem;
    transform: translateX(120%);
    opacity: 0;
    animation: slideInToast 0.4s var(--t-bounce) forwards;
}

.toast .toast-icon { flex-shrink: 0; margin-top: 1px; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.removing { animation: slideOutToast 0.3s ease forwards; }

@keyframes slideInToast { to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutToast { to { transform: translateX(120%); opacity: 0; } }

/* ---------------------------------------------------------------------------
   19. TUTORIAL MODAL
   --------------------------------------------------------------------------- */
.tutorial-overlay {
    position: fixed; inset: 0;
    background: rgba(5, 6, 12, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.4s ease forwards;
}

.tutorial-card {
    background: var(--bg-card);
    width: 100%; max-width: 460px;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px var(--border-soft);
    position: relative;
    padding: 2.5rem 2.25rem;
    text-align: center;
    animation: slideUpFade 0.5s var(--t-bounce) forwards;
}

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

.tutorial-close {
    position: absolute; top: 14px; right: 14px;
    background: transparent; border: none;
    color: var(--text-faint);
    font-size: 1.6rem;
    cursor: pointer;
    width: 36px; height: 36px;
    border-radius: 50%;
    transition: all var(--t-fast);
}
.tutorial-close:hover { color: var(--error); background: var(--error-bg); }

.tutorial-slides { min-height: 190px; position: relative; }
.slide { display: none; animation: fadeIn 0.4s ease; }
.slide.active { display: block; }

.slide-icon-wrap {
    width: 64px; height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 16px;
    background: var(--gradient-brand);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}

.slide h3 { color: var(--text-light); margin-bottom: 0.85rem; }
.slide p { color: var(--text-muted); font-size: 1rem; }
.slide p strong { color: var(--text-light); }

.tutorial-footer { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; margin-top: 1.4rem; }
.tutorial-dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: all 0.3s; }
.dot.active { background: var(--violet); box-shadow: 0 0 8px var(--violet); width: 22px; border-radius: 4px; }

.tutorial-buttons { display: flex; gap: 0.85rem; width: 100%; }
.btn-secondary { background: rgba(255,255,255,0.05); color: var(--text-light); flex: 1; }
html.light-theme .btn-secondary { background: rgba(15,23,42,0.05); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
#tut-next { flex: 2; padding: 1rem 1.5rem; font-size: 1.05rem; font-weight: 800; }

/* ---------------------------------------------------------------------------
   20. 404 PAGE
   --------------------------------------------------------------------------- */
.error-page {
    text-align: center;
    padding: 6rem 1rem 5rem;
    max-width: 640px;
    margin: 0 auto;
}
.error-code {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
}
.error-page .btn { margin-top: 1.5rem; display: inline-flex; width: auto; padding: 1rem 2rem; }

/* ---------------------------------------------------------------------------
   21. MEDIA QUERIES
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-content .footer-links:last-child { grid-column: 3; }
}

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

@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 76px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-soft);
        padding: 0.5rem 1.25rem 1.25rem;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity var(--t-normal), transform var(--t-normal), visibility var(--t-normal);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
    }

    .nav-links li { width: 100%; }
    .nav-links li a { display: block; padding: 0.9rem 0.25rem; }
    .nav-links li:first-child { display: flex; justify-content: flex-end; padding: 0.5rem 0; }
    .nav-cta { text-align: center; margin-top: 0.5rem; }
}

@media (max-width: 768px) {
    .hero { padding: 3.5rem 1rem 2rem; }
    .tool-card { padding: 2rem 1.4rem; }
    .drop-zone { padding: 2.5rem 1rem; }

    .preview-container { flex-direction: column; gap: 1.25rem; }
    .preview-arrow { transform: rotate(90deg); animation: pulseArrowMobile 2s infinite; }
    @keyframes pulseArrowMobile {
        0% { transform: rotate(90deg) scale(1); }
        50% { transform: rotate(90deg) scale(1.15); color: var(--indigo); }
        100% { transform: rotate(90deg) scale(1); }
    }

    .seo-content-box { padding: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-content .footer-links:last-child { grid-column: auto; }

    #toast-container { bottom: 16px; right: 16px; left: 16px; max-width: none; }
    .toast { width: 100%; }
}

@media (max-width: 480px) {
    .conversion-settings { flex-direction: column; align-items: stretch; }
    .format-dropdown { width: 100%; margin-left: 0; }
    .btn-large { width: 100%; padding: 1rem; }
    .slider-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .footer-content { grid-template-columns: 1fr; gap: 1.75rem; }
    .format-toggle button { min-width: 70px; font-size: 0.78rem; padding: 0.55rem 0.5rem; }
}
