/* ========== PaperKnife-Inspired Design System for FinSheet AI ========== */
/* Utility Classes — required by script.js toggle logic */
.hidden { display: none !important; }
.show { display: block !important; }
.convert-section.show { display: block !important; }
.file-info.show { display: block !important; }
.format-selection.show { display: block !important; }
.progress-section.show { display: block !important; }
.result-section.show { display: block !important; }
.error-section.show { display: block !important; }
.preview-section.show { display: block !important; }
.search-filter-bar.show { display: block !important; }
.batch-file-info.show, #batchFileInfo.show { display: block !important; }
/* Fonts */
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans-Regular.ttf') format('truetype'); font-weight: 400; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans-Medium.ttf') format('truetype'); font-weight: 500; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans-Bold.ttf') format('truetype'); font-weight: 700; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype'); font-weight: 800; }

/* ===== CSS Variables Override ===== */
:root {
    --primary-color: #F43F5E;
    --primary-dark: #E11D48;
    --primary-light: #FB7185;
    --secondary-color: #3b82f6;
    --accent-color: #F43F5E;
    --danger-color: #ef4444;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --text-primary: #18181B;
    --text-secondary: #71717A;
    --text-muted: #A1A1AA;
    --bg-primary: #FAFAFA;
    --bg-secondary: #F4F4F5;
    --bg-tertiary: #E4E4E7;
    --border-color: #F4F4F5;
    --border-light: #E4E4E7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.06);
    --shadow-xl: 0 20px 40px rgba(244,63,94,0.08);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --bg-card: #FFFFFF;
}

/* Dark mode */
.dark {
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --bg-primary: #000000;
    --bg-secondary: #18181B;
    --bg-tertiary: #27272A;
    --border-color: rgba(255,255,255,0.08);
    --border-light: rgba(255,255,255,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.3);
    --bg-card: #1C1C20;
}

/* ===== Global Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D4D4D8; border-radius: 999px; }
.dark ::-webkit-scrollbar-thumb { background: #3F3F46; }

.skip-link {
    position: absolute; top: 12px; left: -999px;
    background: var(--primary-color); color: white;
    padding: 0.75rem 1.25rem; border-radius: var(--radius-md);
    font-weight: 700; z-index: 2000; text-decoration: none;
}
.skip-link:focus { left: 12px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* ===== HEADER ===== */
.header {
    background: rgba(250,250,250,0.80);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: all 0.3s ease;
}
.dark .header { background: rgba(0,0,0,0.80); border-bottom-color: rgba(255,255,255,0.06); }
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.04); }

.nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.6rem 0; width: 100%; position: relative;
}

.logo {
    display: flex; align-items: center; gap: 0.6rem;
    text-decoration: none; color: var(--text-primary); transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; transform: none; }
.logo-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.logo-icon svg { filter: none; transition: all 0.2s; }
.logo:hover .logo-icon svg { transform: scale(1.05); filter: drop-shadow(0 2px 8px rgba(244,63,94,0.3)); }
.logo-text {
    font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em;
    background: none; -webkit-background-clip: unset; -webkit-text-fill-color: unset;
    background-clip: unset; color: var(--text-primary);
}

.nav-links { display: flex; gap: 0.15rem; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-links li { display: flex; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-secondary);
    font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.15em; padding: 0.55rem 0.85rem;
    border-radius: var(--radius-md); position: relative; overflow: visible; transition: all 0.2s;
}
.nav-links a::before { display: none; }
.nav-links a:hover { color: var(--primary-color); background: rgba(244,63,94,0.06); transform: none; }
.nav-links a.active { color: var(--primary-color); background: rgba(244,63,94,0.08); font-weight: 800; }

/* Theme toggle */
.theme-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border-color);
    background: var(--bg-card); color: var(--text-secondary); cursor: pointer;
    transition: all 0.3s; font-size: 0.9rem; padding: 0; margin-left: 0.25rem;
}
.theme-toggle:hover { border-color: var(--primary-color); color: var(--primary-color); background: rgba(244,63,94,0.06); }
.dark .theme-toggle { border-color: rgba(255,255,255,0.1); }
.dark .theme-toggle:hover { border-color: var(--primary-color); }

/* Mobile hamburger */
.menu-toggle {
    display: none; flex-direction: column; justify-content: space-around;
    width: 32px; height: 32px; background: transparent; border: none;
    cursor: pointer; padding: 4px; z-index: 1001; position: relative; margin-left: auto;
}
.menu-toggle:focus { outline: 2px solid var(--primary-color); outline-offset: 2px; border-radius: 4px; }
.menu-toggle span { width: 100%; height: 2.5px; background: var(--text-primary); border-radius: 3px; transition: all 0.3s ease; transform-origin: center; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

@media screen and (max-width: 768px) {
    .header { padding: 0; }
    .header .container { padding: 0 1rem; }
    .nav { padding: 0.6rem 0; display: flex !important; justify-content: space-between !important; align-items: center !important; }
    .menu-toggle { display: flex !important; order: 2; }
    .nav-links {
        position: fixed !important; top: 56px !important; left: 0 !important; right: 0 !important;
        background: rgba(250,250,250,0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important; align-items: stretch !important;
        padding: 0 !important; max-height: 0 !important;
        overflow: hidden !important; opacity: 0 !important;
        visibility: hidden !important; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 999 !important; gap: 0 !important; margin: 0 !important; display: flex !important;
        border-bottom: 1px solid var(--border-color);
    }
    .dark .nav-links { background: rgba(0,0,0,0.98) !important; }
    .nav-links.active { max-height: 600px !important; opacity: 1 !important; visibility: visible !important; padding: 0.75rem !important; }
    .nav-links li { width: 100%; display: flex; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--border-light); margin: 0; padding: 0; }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a { padding: 0.85rem 1rem; font-size: 0.75rem; min-height: 44px; display: block; width: 100%; text-align: left; border-radius: var(--radius-md); margin: 0.1rem 0; }
    .nav-links #auth-links, .nav-links #user-menu { flex-direction: column; gap: 0.25rem; width: 100%; }
    .nav-links #auth-links a, .nav-links #user-menu a { width: 100%; }
    .logo { order: 1; flex: 1; }
    .logo-text { font-size: 0.95rem; }
}
@media (max-width: 480px) {
    .logo-text { display: none; }
    .logo::after { content: "FinSheet AI"; margin-left: 0.25rem; font-weight: 800; font-size: 0.95rem; color: var(--primary-color); }
    .nav-links { top: 52px !important; }
}

/* ===== MAIN ===== */
.main { padding-top: 68px; min-height: 100vh; }

/* ===== HERO ===== */
.hero {
    text-align: center; padding: 7rem 0 4.5rem;
    background: var(--bg-primary); position: relative; overflow: hidden;
    animation: none;
}
.hero::before {
    content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
    width: 140%; height: 140%;
    background: radial-gradient(ellipse at 50% 30%, rgba(244,63,94,0.06) 0%, transparent 55%),
                radial-gradient(ellipse at 20% 80%, rgba(59,130,246,0.03) 0%, transparent 50%);
    pointer-events: none; opacity: 1;
}
.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(244,63,94,0.07); color: var(--primary-color);
    padding: 0.55rem 1.2rem; border-radius: 999px;
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.2em; margin-bottom: 2rem;
    border: 1px solid rgba(244,63,94,0.15);
    box-shadow: none; animation: none;
}
.hero-badge i { animation: none; }

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 900;
    letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 1.5rem;
    color: var(--text-primary); max-width: 820px;
    margin-left: auto; margin-right: auto;
    background: none; -webkit-background-clip: unset;
    -webkit-text-fill-color: unset; background-clip: unset;
    animation: none;
}
.hero h1 strong, .hero-accent {
    color: var(--primary-color); -webkit-text-fill-color: var(--primary-color);
    background: linear-gradient(135deg, #F43F5E, #E11D48);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p, .hero-description {
    font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7;
    max-width: 620px; margin-left: auto; margin-right: auto;
    margin-bottom: 2rem; font-weight: 500; animation: none;
}

.hero-proof-points {
    display: flex; flex-direction: column; gap: 0.5rem;
    margin: 1.5rem auto 2rem; max-width: 520px; text-align: left;
}
.proof-point {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
    padding: 0.65rem 1rem; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); border-left: 3px solid var(--primary-color); transition: all 0.2s;
}
.proof-point:hover { border-color: rgba(244,63,94,0.4); transform: translateY(-1px); }
.proof-point i { color: var(--primary-color); font-size: 0.85rem; flex-shrink: 0; }

.hero-actions {
    display: flex; justify-content: center; gap: 0.75rem;
    flex-wrap: wrap; margin: 0 0 3rem;
}
.hero-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1rem 2rem; border-radius: 999px;
    font-weight: 800; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.1em; text-decoration: none; transition: all 0.3s; min-height: 48px;
}
.hero-cta.primary {
    background: var(--primary-color); color: white;
    box-shadow: 0 8px 24px rgba(244,63,94,0.3);
}
.hero-cta.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(244,63,94,0.4); }
.hero-cta.secondary {
    border: 1px solid var(--border-color); color: var(--text-primary); background: var(--bg-card);
}
.hero-cta.secondary:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* Hero Benefits */
.hero-benefits {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem; margin: 2rem auto 0; max-width: 800px;
}
.benefit-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 1.25rem; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); text-align: left; transition: all 0.3s;
    position: relative; overflow: hidden;
}
.benefit-item::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0; transition: opacity 0.3s;
}
.benefit-item:hover { border-color: rgba(244,63,94,0.4); transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.benefit-item:hover::after { opacity: 1; }
.benefit-icon {
    width: 42px; height: 42px; background: var(--primary-color); border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0;
}
.benefit-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit-text { display: flex; flex-direction: column; gap: 0.15rem; }
.benefit-text strong { font-size: 0.9rem; font-weight: 800; }
.benefit-text span { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }

.trust-indicators { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.trust-item {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--text-secondary); font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 0.4rem 0.8rem; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 999px; transition: all 0.2s;
}
.trust-item:hover { border-color: rgba(244,63,94,0.3); }
.trust-item svg { color: var(--primary-color); stroke: var(--primary-color); }

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900;
    letter-spacing: -0.03em; color: var(--text-primary);
    text-align: center; margin-bottom: 0.75rem;
}
.section-subtitle {
    font-size: 1rem; color: var(--text-secondary); font-weight: 500;
    text-align: center; margin-bottom: 2.5rem; line-height: 1.6;
}

/* ===== WHY DIFFERENT ===== */
.why-different-section { padding: 5rem 0; background: var(--bg-primary); }
.why-different-container { max-width: 850px; margin: 0 auto; }
.comparison-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .comparison-columns { grid-template-columns: 1fr; } }
.comparison-column {
    padding: 2rem; border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color); background: var(--bg-card);
}
.comparison-column.finsheet { border-color: rgba(244,63,94,0.3); }
.comparison-column h3 { font-size: 0.9rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.comparison-column.others h3 { color: var(--text-muted); }
.comparison-column.finsheet h3 { color: var(--primary-color); }
.comparison-column ul { list-style: none; padding: 0; }
.comparison-column li { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.comparison-column.others li i { color: #D4D4D8; }
.comparison-column.finsheet li i { color: var(--primary-color); }
.result-statement {
    text-align: center; font-size: 0.9rem; color: var(--text-secondary);
    padding: 1.25rem; background: rgba(244,63,94,0.04);
    border-radius: var(--radius-lg); border: 1px solid rgba(244,63,94,0.1);
}

/* ===== COMPARISON TABLE / SAMPLE OUTPUT ===== */
.comparison-table-section { padding: 5rem 0; background: var(--bg-primary); }
.comparison-table-container { max-width: 900px; margin: 0 auto; text-align: center; }
.sample-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--primary-color); color: white;
    padding: 0.9rem 1.75rem; border-radius: 999px;
    font-weight: 800; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.1em; text-decoration: none; transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(244,63,94,0.3);
}
.sample-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(244,63,94,0.4); }

/* ===== HOW IT WORKS ===== */
.how-it-works-section { padding: 5rem 0; background: var(--bg-secondary); }
.steps-container { display: flex; justify-content: center; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin: 2rem 0; }
.step-item {
    text-align: center; padding: 2rem 1.5rem;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl); flex: 1; min-width: 200px; max-width: 260px; transition: all 0.3s;
    position: relative; overflow: hidden;
}
.step-item::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); opacity: 0; transition: opacity 0.3s;
}
.step-item:hover { border-color: rgba(244,63,94,0.4); transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.step-item:hover::before { opacity: 1; }
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; background: var(--primary-color);
    color: white; border-radius: 999px; font-weight: 800; font-size: 0.9rem; margin-bottom: 0.75rem;
}
.step-icon { color: var(--primary-color); font-size: 2rem; margin-bottom: 0.75rem; }
.step-item h3 { font-weight: 800; font-size: 1.05rem; margin-bottom: 0.4rem; }
.step-item p { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.step-arrow { color: var(--text-muted); font-size: 1.1rem; }
@media (max-width: 640px) { .step-arrow { display: none; } }
.steps-tagline { text-align: center; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); margin-top: 1.25rem; }

/* ===== SECURITY ===== */
.security-section { padding: 5rem 0; background: var(--bg-primary); }
.security-content { max-width: 700px; margin: 0 auto; text-align: center; }
.security-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1.25rem; }
.security-intro { color: var(--text-secondary); font-size: 1rem; margin-bottom: 2rem; font-weight: 500; }
.security-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; text-align: left; }
@media (max-width: 640px) { .security-features { grid-template-columns: 1fr; } }
.security-feature {
    display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem;
    font-weight: 600; color: var(--text-primary); padding: 1rem;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
}
.security-feature i { color: var(--primary-color); }
.gdpr-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 600; }
.security-cta {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--primary-color); font-weight: 800; font-size: 0.8rem;
    text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em;
}
.security-cta:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ===== ACCURACY ===== */
.accuracy-section { padding: 5rem 0; background: var(--bg-secondary); }
.accuracy-stats { display: flex; justify-content: center; gap: 3rem; margin: 2rem 0; flex-wrap: wrap; }
.accuracy-stat { text-align: center; }
.accuracy-stat .stat-value { font-size: 2.5rem; font-weight: 900; color: var(--primary-color); letter-spacing: -0.03em; }
.accuracy-stat .stat-label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); }
.accuracy-description { text-align: center; max-width: 600px; margin: 0 auto; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }

/* ===== PROFESSIONAL ===== */
.professional-section { padding: 5rem 0; background: var(--bg-primary); }
.professional-features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem; max-width: 800px; margin: 2rem auto;
}
.professional-feature {
    display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem;
    font-weight: 600; color: var(--text-primary); padding: 1.1rem;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
}
.professional-feature i { color: var(--primary-color); font-size: 1rem; }
.not-for-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 1.5rem; font-weight: 500; }

/* ===== UPLOAD SECTION (adapted from pdfstatementtoexcel.com) ===== */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes gradientMove { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
@keyframes pulse-ring { 0%{transform:translate(-50%,-50%) scale(1);opacity:1} 100%{transform:translate(-50%,-50%) scale(1.5);opacity:0} }
@keyframes stage-pulse { 0%{transform:scale(1);opacity:1} 100%{transform:scale(1.3);opacity:0} }
@keyframes tipFade { 0%,45%{opacity:1} 50%{opacity:0.3} 55%,100%{opacity:1} }
@keyframes modalSlideIn { from{opacity:0;transform:translateY(-20px) scale(0.95)} to{opacity:1;transform:translateY(0) scale(1)} }

.upload-section {
    background: transparent; padding: 3rem 0; margin: 0; position: relative;
    max-width: 900px; margin-left: auto; margin-right: auto;
}
.dark .upload-section { background: transparent; }
.upload-section::before { display: none; }
.upload-container { max-width: 800px; margin: 0 auto; }
.upload-header { text-align: center; margin-bottom: 3rem; }
.upload-header h2 { font-size: 2.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; }
.upload-header p { font-size: 1.125rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.upload-content { position: relative; z-index: 2; }

.upload-area {
    border: 3px dashed var(--border-color); border-radius: 20px; padding: 2.5rem 2rem;
    text-align: center; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); cursor: pointer;
    position: relative; background: var(--bg-secondary, #f8fafc); overflow: hidden;
    min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.dark .upload-area { background: #111113; border-color: rgba(255,255,255,0.08); }
.upload-area::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244,63,94,0.1), transparent);
    transition: width 0.3s ease; opacity: 0;
}
.upload-area::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    background: radial-gradient(circle, rgba(244,63,94,0.1) 0%, transparent 70%);
    border-radius: 50%; transform: translate(-50%,-50%); transition: all 0.4s ease;
}
.upload-area:hover::before { width: 100%; opacity: 1; }
.upload-area:hover::after { width: 200px; height: 200px; }
.upload-area:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(244,63,94,0.12);
}
.dark .upload-area:hover { background: linear-gradient(135deg, rgba(244,63,94,0.08), rgba(244,63,94,0.04)); }
.upload-area.drag-over, .upload-area.dragover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffe4e6, #fecdd3);
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(244,63,94,0.25);
}
.dark .upload-area.drag-over, .dark .upload-area.dragover { background: linear-gradient(135deg, rgba(244,63,94,0.12), rgba(244,63,94,0.06)); }
.upload-area.drag-over::after, .upload-area.dragover::after {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(244,63,94,0.2) 0%, transparent 70%);
}

.upload-icon {
    font-size: 5rem; margin-bottom: 1.5rem; color: var(--text-muted);
    transition: all 0.3s ease; animation: float 3s ease-in-out infinite;
}
.upload-area:hover .upload-icon { color: var(--primary-color); transform: scale(1.1); }
.upload-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-primary); transition: all 0.3s ease; }
.upload-area:hover .upload-title { color: var(--primary-color); }
.upload-subtext { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.1rem; transition: all 0.3s ease; }
.upload-area:hover .upload-subtext { color: var(--text-primary); }

.upload-buttons { display: flex; gap: 1rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.browse-btn {
    display: flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem;
    border: none; border-radius: 12px; font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: all 0.3s ease; min-width: 160px; justify-content: center;
    font-family: inherit; position: relative; overflow: hidden;
}
.browse-btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: width 0.3s ease; opacity: 0;
}
.browse-btn:hover::before { width: 100%; opacity: 1; }
.browse-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), #E11D48); color: white;
    box-shadow: 0 4px 12px rgba(244,63,94,0.3);
}
.browse-btn.primary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(244,63,94,0.4); }
.browse-btn.primary:active { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(244,63,94,0.3); }
.browse-btn.secondary {
    background: rgba(59,130,246,0.1); color: #3b82f6; border: 2px solid #3b82f6;
}
.dark .browse-btn.secondary { background: rgba(59,130,246,0.15); }
.browse-btn.secondary:hover { background: #3b82f6; color: white; transform: translateY(-2px); }

.upload-features { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.upload-feature { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.upload-feature i { color: var(--primary-color); font-size: 1rem; }

.smart-feature-badge {
    margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem;
    background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%); color: white;
    padding: 0.75rem 1.25rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(244,63,94,0.3);
}

.upload-info { margin-top: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.info-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; padding: 0.5rem 0; }
.info-item i { color: var(--text-muted); margin-top: 0.15rem; flex-shrink: 0; }

/* ===== FILE INFO ===== */
.file-info { background: var(--bg-secondary); border-radius: 16px; padding: 2rem; margin: 2rem 0; display: none; opacity: 0; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.4,0,0.2,1); border: 1px solid var(--border-color); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.dark .file-info { background: #111113; }
.file-info.show { display: block; opacity: 1; transform: translateY(0); }
.file-details { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.file-name { font-weight: 600; color: var(--text-primary); }
.file-size { color: var(--text-muted); font-size: 0.9rem; }
.remove-file { background: #ef4444; color: white; border: none; padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }

/* ===== FORMAT SELECTION ===== */
.format-selection { margin: 2rem 0; display: none; opacity: 0; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.4,0,0.2,1); }
.format-selection.show { display: block; opacity: 1; transform: translateY(0); }
.format-options { display: flex; gap: 1rem; justify-content: center; }
.format-option { display: flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; border: 2px solid var(--border-color); border-radius: 10px; cursor: pointer; transition: all 0.3s ease; }
.format-option:hover { border-color: #3b82f6; background: rgba(59,130,246,0.04); }
.format-option.selected { border-color: #3b82f6; background: rgba(59,130,246,0.08); }
.format-option input[type="radio"] { margin: 0; }

/* ===== CONVERT BUTTON ===== */
.convert-section { text-align: center; margin: 2rem 0; display: none; opacity: 0; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.4,0,0.2,1); }
.convert-section.show { display: block; opacity: 1; transform: translateY(0); }
.convert-btn {
    background: var(--primary-color); color: white; border: none; padding: 1rem 3rem;
    border-radius: 8px; font-size: 1.1rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(244,63,94,0.2); position: relative; overflow: hidden;
}
.convert-btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: width 0.3s ease; opacity: 0;
}
.convert-btn:hover::before { width: 100%; opacity: 1; }
.convert-btn:hover { background: #E11D48; transform: translateY(-2px); box-shadow: 0 8px 16px rgba(244,63,94,0.3); }
.convert-btn:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(244,63,94,0.2); }
.convert-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== PROGRESS SECTION ===== */
.progress-section { margin: 2rem 0; display: none; animation: fadeInUp 0.5s ease; }
.progress-section.show { display: block; }
.progress-container {
    background: transparent; padding: 2rem 0; position: relative;
}
.dark .progress-container { background: transparent; }
.progress-container::before { display: none; }
.progress-header { text-align: center; margin-bottom: 2.5rem; }
.progress-icon-wrapper { position: relative; display: inline-block; margin-bottom: 1.5rem; }
.progress-icon-bg {
    width: 80px; height: 80px; background: linear-gradient(135deg, rgba(244,63,94,0.15), rgba(225,29,72,0.1));
    border-radius: 50%; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%); animation: pulse-ring 2s ease-out infinite;
}
.progress-main-icon { font-size: 2.5rem; color: var(--primary-color); position: relative; z-index: 1; }
.progress-title { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.progress-subtitle { font-size: 1rem; color: var(--text-secondary); margin: 0; }

.progress-stages { display: flex; justify-content: center; align-items: center; gap: 0; margin-bottom: 2.5rem; flex-wrap: wrap; }
.progress-stage { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; transition: all 0.4s ease; }
.stage-icon {
    width: 50px; height: 50px; border-radius: 50%; background: var(--bg-secondary, #f3f4f6);
    border: 3px solid var(--border-color); display: flex; align-items: center;
    justify-content: center; font-size: 1.1rem; color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1); position: relative;
}
.dark .stage-icon { background: #18181b; border-color: #27272a; }
.stage-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); transition: all 0.3s ease; }
.stage-connector {
    width: 60px; height: 3px; background: var(--border-color); margin: 0 0.5rem;
    margin-bottom: 2rem; border-radius: 2px; position: relative; overflow: hidden;
}
.stage-connector::after {
    content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    background: linear-gradient(90deg, #F43F5E, #E11D48); transition: width 0.5s ease; border-radius: 2px;
}
.progress-stage.active .stage-icon {
    background: linear-gradient(135deg, #F43F5E, #E11D48); border-color: var(--primary-color);
    color: white; transform: scale(1.1); box-shadow: 0 8px 25px rgba(244,63,94,0.4);
}
.progress-stage.active .stage-icon::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid rgba(244,63,94,0.3); animation: stage-pulse 1.5s ease-out infinite;
}
.progress-stage.active .stage-label { color: var(--primary-color); font-weight: 700; }
.progress-stage.completed .stage-icon { background: var(--primary-color); border-color: var(--primary-color); color: white; }
.progress-stage.completed .stage-label { color: #E11D48; }
.stage-connector.active::after { width: 100%; }

.progress-bar-wrapper { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.progress-bar { flex: 1; background: var(--border-color); border-radius: 12px; height: 12px; overflow: hidden; position: relative; box-shadow: inset 0 2px 4px rgba(0,0,0,0.06); }
.dark .progress-bar { background: #27272a; }
.progress-fill {
    background: linear-gradient(90deg, #F43F5E, #E11D48, #F43F5E); background-size: 200% 100%;
    height: 100%; width: 0%; transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative; border-radius: 12px; animation: gradientMove 2s linear infinite;
}
.progress-fill::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}
.progress-glow {
    position: absolute; top: -2px; bottom: -2px; left: 0; width: 0%;
    background: linear-gradient(90deg, transparent, rgba(244,63,94,0.3));
    filter: blur(8px); transition: width 0.4s ease; pointer-events: none;
}
.progress-percentage { min-width: 60px; font-size: 1.25rem; font-weight: 800; color: var(--primary-color); text-align: right; font-variant-numeric: tabular-nums; }

.progress-details {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem;
    padding: 1rem 1.5rem; background: rgba(244,63,94,0.05); border-radius: 12px;
    border: 1px solid rgba(244,63,94,0.1);
}
.dark .progress-details { background: rgba(244,63,94,0.08); border-color: rgba(244,63,94,0.15); }
.progress-text { display: flex; align-items: center; gap: 0.75rem; color: var(--text-primary); font-weight: 600; font-size: 0.95rem; }
.progress-status-icon { color: var(--primary-color); font-size: 1rem; }
.progress-time { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.9rem; }
.progress-time i { color: var(--text-muted); }

.progress-tip {
    display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #fef3c7, #fef9c3); border-radius: 12px;
    border: 1px solid rgba(245,158,11,0.2); font-size: 0.9rem; color: #92400e;
    animation: tipFade 8s ease-in-out infinite;
}
.dark .progress-tip { background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(245,158,11,0.05)); color: #fbbf24; border-color: rgba(245,158,11,0.2); }
.progress-tip i { color: #f59e0b; font-size: 1.1rem; }

/* ===== RESULT SECTION (Full-screen dedicated page) ===== */
.result-section {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-secondary, #f8fafc); z-index: 1000; display: none; overflow-y: auto;
}
.dark .result-section { background: #09090b; }
.result-section.show { display: block !important; opacity: 1; transform: translateY(0); }
.result-header {
    background: #374151; color: white; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 10;
}
.dark .result-header { background: #18181b; }
.result-actions { display: flex; gap: 1rem; }
.back-btn {
    background: transparent; color: white; border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem; border-radius: 6px; font-weight: 500; cursor: pointer;
    transition: all 0.3s ease; display: flex; align-items: center; gap: 0.5rem; font-family: inherit;
}
.back-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.download-btn {
    background: #22c55e; color: white; border: none; padding: 0.75rem 1.5rem;
    border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; gap: 0.5rem; font-family: inherit;
}
.download-btn:hover { background: #16a34a; transform: translateY(-1px); }

/* ===== SEARCH & FILTER BAR ===== */
.search-filter-bar {
    background: var(--bg-card, white); margin: 1rem 2rem; padding: 1rem 1.5rem;
    border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
}
.dark .search-filter-bar { background: #111113; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.search-box { flex: 1; min-width: 250px; position: relative; display: flex; align-items: center; }
.search-box i.fa-search { position: absolute; left: 1rem; color: var(--text-muted); }
.search-box input {
    width: 100%; padding: 0.75rem 2.5rem; border: 2px solid var(--border-color);
    border-radius: 8px; font-size: 0.95rem; transition: all 0.2s ease;
    background: var(--bg-card, white); color: var(--text-primary); font-family: inherit;
}
.dark .search-box input { background: #18181b; border-color: #27272a; color: #f4f4f5; }
.search-box input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(244,63,94,0.1); }
.clear-search { position: absolute; right: 0.75rem; background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.25rem; }
.clear-search:hover { color: #ef4444; }
.filter-controls { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.filter-select {
    padding: 0.6rem 2rem 0.6rem 1rem; border: 2px solid var(--border-color); border-radius: 8px;
    font-size: 0.9rem; background: var(--bg-card, white); cursor: pointer; appearance: none;
    color: var(--text-primary); font-family: inherit;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.75rem center;
}
.dark .filter-select { background-color: #18181b; border-color: #27272a; color: #f4f4f5; }
.filter-select:focus { outline: none; border-color: var(--primary-color); }
.reset-filters-btn {
    padding: 0.6rem 1rem; background: var(--bg-secondary); border: none; border-radius: 8px;
    font-size: 0.9rem; color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; gap: 0.5rem; transition: all 0.2s ease; font-family: inherit;
}
.reset-filters-btn:hover { background: #ef4444; color: white; }
.filter-stats { font-size: 0.85rem; color: var(--text-muted); width: 100%; }

/* ===== RESULTS TABLE ===== */
.results-table-container { margin: 0 2rem 2rem; overflow-x: auto; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.results-table { width: 100%; border-collapse: collapse; background: var(--bg-card, white); }
.dark .results-table { background: #111113; }
.results-table thead th { background: var(--bg-secondary, #f9fafb); padding: 1rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 2px solid var(--border-color); text-align: left; white-space: nowrap; }
.dark .results-table thead th { background: #18181b; border-color: #27272a; }
.results-table tbody td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-primary); }
.dark .results-table tbody td { border-color: rgba(255,255,255,0.06); }
.results-table tbody tr:hover { background: rgba(244,63,94,0.03); }
.dark .results-table tbody tr:hover { background: rgba(244,63,94,0.06); }

/* ===== EMAIL MODAL ===== */
.email-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); display: flex; align-items: center;
    justify-content: center; z-index: 2000; backdrop-filter: blur(4px);
}
.email-modal {
    background: var(--bg-card, white); border-radius: 16px; width: 90%; max-width: 450px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: modalSlideIn 0.3s ease;
}
.dark .email-modal { background: #18181b; }
.email-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color); }
.email-modal-header h3 { margin: 0; font-size: 1.25rem; color: var(--text-primary); display: flex; align-items: center; gap: 0.5rem; }
.email-modal-header h3 i { color: #3b82f6; }
.close-modal { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; padding: 0.25rem; line-height: 1; }
.close-modal:hover { color: #ef4444; }
.email-modal-body { padding: 1.5rem; }
.email-modal-body p { color: var(--text-secondary); margin-bottom: 1rem; }
.email-input-group { display: flex; flex-direction: column; gap: 0.5rem; }
.email-input-group label { font-weight: 500; color: var(--text-primary); font-size: 0.95rem; }
.email-input-group input { padding: 0.75rem 1rem; border: 2px solid var(--border-color); border-radius: 8px; font-size: 1rem; transition: all 0.2s ease; background: var(--bg-card, white); color: var(--text-primary); font-family: inherit; }
.dark .email-input-group input { background: #111113; border-color: #27272a; color: #f4f4f5; }
.email-input-group input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(244,63,94,0.1); }
.email-modal-footer { display: flex; justify-content: flex-end; gap: 0.75rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); }
.cancel-btn { padding: 0.6rem 1.25rem; background: var(--bg-secondary); border: none; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--text-secondary); font-family: inherit; }
.cancel-btn:hover { background: var(--border-color); }
.send-btn { padding: 0.6rem 1.5rem; background: #3b82f6; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; font-family: inherit; }
.send-btn:hover { background: #2563eb; }

/* ===== ERROR SECTION ===== */
.error-section { display: none; text-align: center; padding: 3rem; }
.error-section.show { display: block; }
.error-icon { font-size: 4rem; color: #ef4444; margin-bottom: 1rem; }
.error-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.error-message { color: var(--text-secondary); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.retry-btn { background: var(--primary-color); color: white; border: none; padding: 0.75rem 2rem; border-radius: 8px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; font-family: inherit; }
.retry-btn:hover { background: #E11D48; }

/* Loading spinner */
.loading-spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid var(--border-color); border-top: 3px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin-right: 0.5rem; }
@keyframes spin { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .upload-section { padding: 2rem 0; margin: 0; }
    .upload-header h2 { font-size: 1.6rem; }
    .upload-area { padding: 2rem 1.5rem; min-height: 180px; }
    .upload-icon { font-size: 3.5rem; }
    .upload-title { font-size: 1.3rem; }
    .browse-btn { padding: 0.85rem 1.5rem; font-size: 0.9rem; min-width: 140px; }
    .upload-features { gap: 1rem; }
    .result-header { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
    .search-filter-bar { margin: 0.75rem 1rem; padding: 0.75rem; }
    .results-table-container { margin: 0 1rem 1rem; }
    .progress-container { padding: 2rem 1.5rem; }
    .progress-stages { gap: 0.25rem; }
    .stage-connector { width: 30px; }
    .stage-icon { width: 40px; height: 40px; font-size: 0.9rem; }
    .stage-label { font-size: 0.75rem; }
    .progress-details { flex-direction: column; gap: 0.75rem; text-align: center; }
    .progress-title { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .upload-section { padding: 1.5rem 0; }
    .upload-buttons { flex-direction: column; }
    .browse-btn { width: 100%; }
    .format-options { flex-direction: column; align-items: stretch; }
    .format-option { justify-content: center; }
}

/* Usage Limits */
.usage-limits { margin-top: 1.5rem; padding: 1.25rem; background: rgba(244,63,94,0.03); border-radius: var(--radius-lg); border: 1px solid rgba(244,63,94,0.1); position: relative; z-index: 3; }
.usage-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.usage-header h4 { margin: 0; font-size: 0.95rem; font-weight: 800; }
.plan-badge, .usage-header .plan-badge {
    position: static; transform: none; background: var(--primary-color); color: white;
    padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.75rem;
    font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    box-shadow: none; white-space: nowrap;
}
.usage-stats { display: grid; gap: 0.75rem; }
.usage-stat { display: flex; flex-direction: column; gap: 0.35rem; }
.stat-label { font-weight: 700; color: var(--text-secondary); font-size: 0.8rem; }
.stat-bar { height: 6px; background: var(--bg-tertiary); border-radius: 999px; overflow: hidden; }
.stat-progress { height: 100%; background: linear-gradient(90deg, var(--primary-color), var(--primary-light)); border-radius: 999px; transition: width 0.3s; width: 0%; }
.stat-progress.warning { background: linear-gradient(90deg, #F59E0B, #D97706); }
.stat-progress.danger { background: linear-gradient(90deg, #EF4444, #DC2626); }
.stat-text { font-size: 0.8rem; font-weight: 700; color: var(--text-primary); }
.upgrade-prompt { margin-top: 0.75rem; padding: 0.65rem; background: rgba(244,63,94,0.04); border-radius: var(--radius-md); text-align: center; }
.upgrade-prompt p { margin: 0; color: var(--text-secondary); font-size: 0.82rem; }
.upgrade-link { color: var(--primary-color); text-decoration: none; font-weight: 700; }

/* Demo Video */
.demo-video-section { margin: 2rem 0; text-align: center; }
.demo-video-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(244,63,94,0.07); color: var(--primary-color); padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.5rem; }
.demo-video-title { font-size: 1.2rem; font-weight: 800; }
.demo-video-subtitle { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.demo-video-container { position: relative; padding-bottom: 56.17%; height: 0; overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--border-color); }
.demo-video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.demo-video-caption { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 0.5rem; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

/* File Info */
.file-info { display: none; padding: 1.1rem 1.25rem; background: var(--bg-card, #fff); border: 1px solid var(--border-color); border-radius: var(--radius-lg); margin: 0.75rem 0; }
.dark .file-info { background: #09090b; border-color: #27272a; }
.dark .file-name { color: #f4f4f5; }
.dark .remove-file { border-color: rgba(239,68,68,0.2); }
.file-info .file-details { display: flex; justify-content: space-between; align-items: center; }
.file-name { font-weight: 700; font-size: 0.9rem; }
.file-size { font-size: 0.78rem; color: var(--text-muted); }
.remove-file { background: none; border: 1px solid rgba(239,68,68,0.3); color: #EF4444; padding: 0.35rem 0.75rem; border-radius: var(--radius-md); font-weight: 700; font-size: 0.75rem; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.remove-file:hover { background: rgba(239,68,68,0.06); }

/* Format Selection */
.format-selection { display: none; margin: 1rem 0; padding: 1.25rem; background: var(--bg-card, #fff); border: 1px solid var(--border-color); border-radius: var(--radius-lg); }
.dark .format-selection { background: #09090b; border-color: #27272a; }
.dark .format-option { background: #18181b; border-color: #27272a; color: #f4f4f5; }
.dark .format-option:hover { border-color: var(--primary-color); }
.dark .format-heading { color: #fff; }
.dark .convert-btn { box-shadow: 0 8px 24px rgba(244,63,94,0.2); }
.format-options { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.format-option {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.1rem; border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); cursor: pointer; font-weight: 600;
    font-size: 0.82rem; transition: all 0.2s; background: var(--bg-primary);
}
.format-option:hover { border-color: var(--primary-color); }
.format-option input[type="radio"] { accent-color: var(--primary-color); }

/* Convert */
.convert-section { display: none; margin: 1.25rem 0; text-align: center; }
.convert-btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: linear-gradient(135deg, #F43F5E, #E11D48); color: white;
    padding: 1rem 2.5rem;
    border-radius: 999px; font-weight: 800; font-size: 1rem;
    border: none; cursor: pointer; transition: all 0.3s ease; font-family: inherit;
    box-shadow: 0 8px 24px rgba(244,63,94,0.35);
    text-transform: uppercase; letter-spacing: 0.03em;
    position: relative; overflow: hidden;
}
.convert-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
}
.convert-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 40px rgba(244,63,94,0.45);
}
.convert-btn:active { transform: scale(0.97); }
.convert-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Progress — PaperKnife polish */
.progress-section {
    display: none; margin: 1.5rem 0; padding: 2.5rem 2rem;
    background: var(--bg-card, #fff); border: 1px solid var(--border-color);
    border-radius: 2rem; position: relative; overflow: hidden;
}
.progress-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(244,63,94,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.dark .progress-section { background: #09090b; border-color: #27272a; }
.dark .progress-section::before { background: radial-gradient(ellipse at 50% 0%, rgba(244,63,94,0.06) 0%, transparent 60%); }
.progress-container { max-width: 460px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }

/* Icon */
.progress-icon-wrapper {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin-bottom: 1rem;
}
.progress-icon-bg {
    width: 64px; height: 64px; background: rgba(244,63,94,0.1);
    border-radius: 999px; position: absolute; inset: 0;
    animation: progressPulse 2s ease-in-out infinite;
}
@keyframes progressPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.7; }
}
.progress-main-icon { font-size: 1.5rem; color: var(--primary-color); position: relative; z-index: 1; }
.dark .progress-icon-bg { background: rgba(244,63,94,0.15); }

/* Title */
.progress-title { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.15rem; }
.progress-subtitle { font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; }

/* Stage Indicators */
.progress-stages { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin: 1.5rem 0 1rem; }
.progress-stage { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.stage-icon {
    width: 36px; height: 36px; border-radius: 999px;
    background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: var(--text-muted);
    transition: all 0.5s ease-in-out;
    border: 2px solid transparent;
}
.progress-stage.active .stage-icon {
    background: var(--primary-color); color: white;
    box-shadow: 0 4px 16px rgba(244,63,94,0.3);
    border-color: rgba(244,63,94,0.2);
}
.progress-stage.done .stage-icon {
    background: #22C55E; color: white;
    box-shadow: 0 4px 12px rgba(34,197,94,0.25);
}
.dark .stage-icon { background: #27272a; color: #71717a; }
.stage-label {
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.15em; color: var(--text-muted);
    transition: color 0.3s;
}
.progress-stage.active .stage-label { color: var(--primary-color); }
.progress-stage.done .stage-label { color: #22C55E; }
.stage-connector {
    width: 32px; height: 2px; background: var(--border-color);
    margin-bottom: 1.1rem; border-radius: 999px;
    transition: background 0.5s ease-in-out;
}
.stage-connector.active { background: linear-gradient(90deg, #22C55E, var(--primary-color)); }
.dark .stage-connector { background: #27272a; }

/* Progress Bar */
.progress-bar-wrapper { margin: 0.5rem 0; }
.progress-bar {
    height: 8px; background: var(--bg-tertiary); border-radius: 999px;
    overflow: hidden; position: relative;
}
.dark .progress-bar { background: #27272a; }
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color));
    background-size: 200% 100%;
    animation: progressShimmer 2s ease-in-out infinite;
    border-radius: 999px; width: 0%; transition: width 0.5s ease;
}
@keyframes progressShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.progress-glow { display: none; }
.progress-percentage {
    font-size: 0.85rem; font-weight: 900; color: var(--primary-color);
    margin-top: 0.5rem; letter-spacing: -0.02em;
}

/* Details */
.progress-details {
    display: flex; justify-content: space-between; align-items: center;
    margin: 0.75rem 0; gap: 0.5rem;
}
.progress-text { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; }
.progress-status-icon { color: var(--primary-color); }
.progress-time {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.75rem; color: var(--text-muted); font-weight: 700;
    background: var(--bg-secondary); padding: 0.3rem 0.7rem; border-radius: 999px;
}
.dark .progress-time { background: #18181b; }

/* Tip */
.progress-tip {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(244,63,94,0.03);
    border: 1px solid rgba(244,63,94,0.08);
    border-radius: var(--radius-lg); font-size: 0.78rem;
    color: var(--text-secondary); font-weight: 500;
    transition: opacity 0.3s;
}
.dark .progress-tip { background: rgba(244,63,94,0.05); border-color: rgba(244,63,94,0.1); }
.progress-tip i { color: var(--primary-color); flex-shrink: 0; }

/* OLD Result/Table/Email overrides removed — now handled by the fullscreen result section above */
.category-badge { display: inline-block; padding: 0.15rem 0.45rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(244,63,94,0.08); color: var(--primary-color); }
.source-file-tag { display: inline-block; background: var(--primary-color); color: white; font-size: 0.75rem; padding: 0.1rem 0.35rem; border-radius: 999px; font-weight: 700; margin-bottom: 0.15rem; opacity: 0.85; }
/* Old email modal overrides removed — handled by fullscreen section above */

/* Error / Preview */
.error-section {
    display: none; text-align: center; padding: 2.5rem; margin: 1.5rem 0;
    background: var(--bg-card, #fff); border: 1px solid var(--border-color);
    border-radius: 2rem; position: relative; overflow: hidden;
}
.dark .error-section { background: #09090b; border-color: #27272a; }
.error-icon { font-size: 2.5rem; color: #EF4444; margin-bottom: 0.75rem; }
.error-title { font-weight: 900; font-size: 1.2rem; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.error-message { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.25rem; }
.retry-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--primary-color); color: white; padding: 0.7rem 1.4rem;
    border-radius: 999px; font-weight: 800; font-size: 0.82rem;
    border: none; cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 16px rgba(244,63,94,0.25); transition: all 0.3s;
}
.retry-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(244,63,94,0.35); }
.preview-section { display: none; margin: 1.5rem 0; }
.preview-table { width: 100%; border-collapse: collapse; }
.preview-table th, .preview-table td { padding: 0.45rem 0.65rem; border: 1px solid var(--border-color); font-size: 0.82rem; }
.preview-table th { background: var(--bg-secondary); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; }

/* Batch */
.batch-file-item { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 0.85rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); margin-bottom: 0.4rem; transition: all 0.2s; }
.batch-file-item:hover { border-color: var(--primary-color); }
.batch-file-item .file-info { display: flex; flex-direction: column; gap: 0.1rem; margin: 0; padding: 0; background: none; border-radius: 0; }
.batch-file-item .file-name { font-weight: 700; font-size: 0.82rem; }
.batch-file-item .file-size { font-size: 0.75rem; color: var(--text-muted); }
.remove-file-btn { background: #EF4444; color: white; border: none; border-radius: 999px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.85rem; font-weight: bold; transition: all 0.2s; }
.remove-file-btn:hover { background: #DC2626; transform: scale(1.1); }
.batch-results { text-align: center; padding: 1.5rem; }
.batch-summary { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; text-align: center; }
.summary-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin-top: 0.75rem; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.stat-number { font-size: 1.75rem; font-weight: 900; color: var(--primary-color); }
.batch-downloads { margin-top: 1.5rem; }
.download-grid { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.batch-download-item { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: all 0.2s; }
.batch-download-item:hover { border-color: var(--primary-color); transform: translateY(-1px); }
.file-details { display: flex; flex-direction: column; gap: 0.15rem; }
.file-stats { color: var(--text-muted); font-size: 0.75rem; }
.download-link { background: var(--primary-color); color: white; padding: 0.35rem 0.7rem; border-radius: var(--radius-md); text-decoration: none; font-size: 0.75rem; font-weight: 700; }
.download-link:hover { background: var(--primary-dark); }
.download-btn.primary { background: #22C55E; color: white; padding: 0.75rem 1.4rem; border-radius: var(--radius-md); text-decoration: none; font-weight: 800; font-size: 0.85rem; display: inline-block; transition: all 0.2s; border: none; cursor: pointer; }
.download-btn.primary:hover { background: #059669; transform: translateY(-1px); }
.batch-download-all { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }

/* ===== SUPPORTED BANKS ===== */
.supported-banks-section { padding: 4rem 0; background: var(--bg-primary) !important; }

/* ===== FEATURES ===== */
.features-section { padding: 5rem 0; background: var(--bg-secondary) !important; }
.features-section .container > h2 { text-align: center; }
.features-section .container > p { text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr) !important; gap: 1.25rem !important; max-width: 1000px; margin: 0 auto; text-align: center; }
.features-grid > div {
    padding: 2rem 1.5rem !important; background: var(--bg-card, white) !important;
    border: 1px solid var(--border-color); border-radius: var(--radius-2xl) !important;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.features-grid > div::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.features-grid > div:hover { border-color: rgba(244,63,94,0.4); transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.features-grid > div:hover::before { transform: scaleX(1); }
.features-grid h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.4rem; }
.features-grid p { font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; line-height: 1.6; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr !important; } }

/* ===== PRICING ===== */
.pricing-section { padding: 5rem 0; background: var(--bg-primary) !important; }
.pricing-title { text-align: center; font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.pricing-subtitle { text-align: center; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; margin-bottom: 2rem; }
.pricing-toggle { display: flex; justify-content: center; align-items: center; margin-bottom: 3rem !important; }
.toggle-container { background: var(--bg-card, white) !important; border: 1px solid var(--border-color) !important; border-radius: 999px !important; padding: 0.3rem !important; display: flex; align-items: center; box-shadow: none !important; backdrop-filter: none !important; }
.toggle-option { background: transparent !important; color: var(--text-primary) !important; border: none; padding: 0.55rem 1.15rem; border-radius: 999px; font-weight: 700; cursor: pointer; transition: all 0.3s; min-width: 100px; text-align: center; font-size: 0.78rem; font-family: inherit; }
.toggle-option.active { background: var(--primary-color) !important; color: white !important; }
.savings-badge { background: linear-gradient(135deg, #22C55E, #16A34A) !important; color: white !important; padding: 0.3rem 0.75rem !important; border-radius: 999px !important; font-size: 0.75rem !important; font-weight: 800 !important; margin-left: 0.4rem; letter-spacing: 0.05em; border: none !important; box-shadow: none !important; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; gap: 1.25rem !important; max-width: 1000px; margin: 0 auto; }
.pricing-card { background: var(--bg-card, white) !important; border: 1px solid var(--border-color) !important; border-radius: var(--radius-2xl) !important; padding: 2.25rem 1.75rem !important; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.3s; position: relative; }
.pricing-card:hover { border-color: rgba(244,63,94,0.4) !important; transform: translateY(-3px); }
.pricing-card.recommended {
    border-color: var(--primary-color) !important;
    box-shadow: 0 12px 40px rgba(244,63,94,0.12) !important; transform: translateY(-5px) !important;
    background: linear-gradient(180deg, rgba(244,63,94,0.02), transparent) !important;
}
.dark .pricing-card.recommended { background: linear-gradient(180deg, rgba(244,63,94,0.06), var(--bg-card)) !important; }
.pricing-card .plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary-color); color: white; padding: 0.35rem 1.1rem; border-radius: 999px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; box-shadow: 0 4px 12px rgba(244,63,94,0.3); white-space: nowrap; }
.plan-title { font-size: 1.4rem; font-weight: 900; color: var(--primary-color) !important; margin-bottom: 0.4rem; }
.plan-desc { color: var(--text-secondary); font-size: 0.82rem; font-weight: 500; margin-bottom: 1.25rem; }
.price-display { font-size: 2.75rem; font-weight: 900; margin-bottom: 0.4rem; letter-spacing: -0.03em; }
.price-period { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.savings-info { display: none; font-size: 0.78rem; font-weight: 700; color: #22C55E; }
.plan-features { list-style: none; text-align: left; margin-bottom: 1.5rem; padding: 0; flex-grow: 1; }
.plan-features li { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.plan-features li i { color: var(--primary-color); font-size: 0.75rem; }
.pricing-cta, .pricing-card .action-btn { display: block; text-align: center; padding: 0.75rem; border-radius: 999px; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; transition: all 0.3s; }
.pricing-cta.primary { background: var(--primary-color); color: white; box-shadow: 0 4px 16px rgba(244,63,94,0.25); }
.pricing-cta.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(244,63,94,0.35); }
.pricing-cta.secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); }
.pricing-cta.secondary:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* ===== FAQ ===== */
.faq-section { padding: 5rem 0; background: var(--bg-secondary) !important; }
.faq-grid, .faq-section .faq-grid { display: flex; flex-direction: column; gap: 0; max-width: 800px; margin: 0 auto; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-color); background: var(--bg-card, white); }
.faq-item, .faq-section .faq-item {
    background: transparent !important; border: none !important; border-radius: 0 !important;
    box-shadow: none !important; transition: background 0.25s ease; overflow: hidden;
    padding: 0 !important; border-bottom: 1px solid var(--border-color) !important;
    position: relative;
}
.faq-item:last-child { border-bottom: none !important; }
.faq-item:hover { background: rgba(244,63,94,0.015) !important; }
.faq-item.open { background: rgba(244,63,94,0.03) !important; }
.faq-item.open::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--primary-color); border-radius: 0 4px 4px 0;
}
/* Hide legacy h3/p — JS replaces them with accordion markup */
.faq-item > h3, .faq-item > p { display: none !important; }
.faq-card .faq-question, .faq-card .faq-answer { display: none !important; }
.faq-q {
    padding: 1.15rem 1.5rem; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; font-weight: 700; font-size: 1rem; user-select: none;
    color: var(--text-primary); gap: 1rem; transition: color 0.2s;
}
.faq-q:hover { color: var(--primary-color); }
.faq-q .faq-q-text { flex: 1; }
.faq-q .faq-icon {
    width: 34px; height: 34px; min-width: 34px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
    background: var(--bg-secondary); color: var(--text-muted); transition: all 0.35s ease;
}
.dark .faq-q .faq-icon { background: var(--bg-tertiary); }
.faq-q .faq-icon svg { transition: transform 0.35s ease; }
.faq-item.open .faq-q { color: var(--primary-color); font-weight: 800; }
.faq-item.open .faq-q .faq-icon { background: var(--primary-color); color: white; }
.faq-item.open .faq-q .faq-icon svg { transform: rotate(180deg); }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 1.5rem 0 1.5rem; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.85; font-weight: 500;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 1.5rem 1.35rem 1.5rem; }
/* FAQ header badge */
.faq-header .section-subtitle, .faq-section-title p { margin-bottom: 2.5rem; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 5rem 0; background: var(--bg-primary) !important; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; max-width: 1000px; margin: 0 auto 2.5rem; }
.testimonial-card {
    background: var(--bg-card, white); border: 1px solid var(--border-color); border-radius: var(--radius-2xl);
    padding: 1.75rem; transition: all 0.3s; position: relative; overflow: hidden;
}
.testimonial-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #FBBF24, #F59E0B);
}
.testimonial-card:hover { border-color: rgba(244,63,94,0.3); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stars { color: #FBBF24; margin-bottom: 0.75rem; font-size: 0.85rem; }
.testimonial-content p { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; line-height: 1.6; font-style: italic; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.65rem; }
.author-info strong { display: block; font-weight: 800; font-size: 0.82rem; }
.author-info span { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.testimonials-stats { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }

/* ===== FINAL CTA ===== */
.final-cta-section {
    padding: 5rem 0; text-align: center;
    background: linear-gradient(135deg, rgba(244,63,94,0.03), rgba(244,63,94,0.07)) !important;
    position: relative; overflow: hidden;
}
.final-cta-section::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(244,63,94,0.06) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.final-cta-section::after {
    content: ''; position: absolute; bottom: -30%; left: -10%; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.04) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.final-cta-content h2 { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.final-cta-content p { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; margin-bottom: 1.75rem; }
.final-cta-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--primary-color); color: white; padding: 0.9rem 1.75rem; border-radius: 999px; font-weight: 800; font-size: 0.85rem; text-decoration: none; transition: all 0.3s; box-shadow: 0 8px 24px rgba(244,63,94,0.3); }
.final-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(244,63,94,0.4); }
.pricing-note { display: block; margin-top: 0.75rem; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border-color); padding: 3.5rem 0 1.5rem; background: var(--bg-secondary); }
.dark .footer { background: var(--bg-secondary); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .footer-content { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-section h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.6rem; }
.footer-section h4 { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.85rem; }
.footer-section p { font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; line-height: 1.6; max-width: 350px; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { margin-bottom: 0.4rem; }
.footer-section a { color: var(--text-secondary); text-decoration: none; font-size: 0.82rem; font-weight: 500; transition: color 0.2s; }
.footer-section a:hover { color: var(--primary-color); }
.footer-bottom { padding-top: 1.25rem; border-top: 1px solid var(--border-color); text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ===== STICKY CTA ===== */
.sticky-cta { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900; background: var(--primary-color); color: white; padding: 0.85rem 1.25rem; border-radius: 999px; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; display: flex; align-items: center; gap: 0.4rem; box-shadow: 0 8px 24px rgba(244,63,94,0.4); transform: translateY(80px); opacity: 0; transition: all 0.4s; }
.sticky-cta.visible { transform: translateY(0); opacity: 1; }

/* Guest */
.guest-user-info { background: rgba(244,63,94,0.05); border: 1px solid rgba(244,63,94,0.15); border-radius: var(--radius-lg); margin: 1.25rem auto; max-width: 700px; box-shadow: none; animation: none; }
.guest-info-content { display: flex; align-items: center; padding: 1.1rem; gap: 0.65rem; }
.guest-info-icon { color: var(--primary-color); font-size: 1.2rem; flex-shrink: 0; }
.guest-info-text h4 { margin: 0 0 0.25rem 0; color: var(--text-primary); font-size: 0.9rem; font-weight: 800; }
.guest-info-text p { margin: 0; color: var(--text-secondary); font-size: 0.82rem; }
.guest-signup-link { color: var(--primary-color); font-weight: 700; text-decoration: underline; }
.guest-info-close { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 0.35rem; border-radius: var(--radius-md); }

/* Overlays */
.upgrade-prompt-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 10000; animation: none; }
.upgrade-prompt-content { background: var(--bg-card); border-radius: var(--radius-2xl); padding: 2.25rem; max-width: 480px; width: 90%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: none; }
.upgrade-icon { color: #EF4444; font-size: 2.5rem; margin-bottom: 0.75rem; }
.upgrade-prompt-content h3 { font-weight: 800; font-size: 1.3rem; margin-bottom: 0.6rem; }
.upgrade-prompt-content p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.25rem; }
.upgrade-prompt-content ul { text-align: left; list-style: none; padding: 0; margin-bottom: 1.5rem; }
.upgrade-prompt-content li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.85rem; }
.upgrade-prompt-content li i { color: var(--primary-color); }
.upgrade-actions { display: flex; gap: 0.6rem; justify-content: center; }
.upgrade-actions .btn { padding: 0.65rem 1.25rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-size: 0.82rem; font-family: inherit; }
.upgrade-actions .btn-primary { background: var(--primary-color); color: white; }
.upgrade-actions .btn-primary:hover { transform: translateY(-1px); }
.upgrade-actions .btn-secondary { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border-color); }
.login-required-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 10000; }

/* Dark mode toggle init */
.dark body { background: #000; color: #FAFAFA; }

/* Animation overrides (keeping clean) */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInDown { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-savings { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

/* ===== NEW CLASSES: Stripped from inline styles ===== */

/* Feature icon boxes */
.feature-icon-box {
    width: 56px; height: 56px; background: var(--primary-color); border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem;
    margin: 0 auto 1.5rem;
}
.feature-icon-amber { background: #f59e0b; }
.feature-icon-red { background: #ef4444; }

/* Bank cards */
.banks-container { max-width: 900px; }
.bank-cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem; margin-bottom: 2rem;
}
.bank-card {
    display: flex; align-items: center; gap: 1rem; padding: 1.25rem;
    background: var(--bg-card, white); border-radius: var(--radius-lg);
    text-decoration: none; border: 1px solid var(--border-color); transition: all 0.2s;
}
.dark .bank-card { background: var(--bg-secondary); border-color: rgba(255,255,255,0.06); }
.bank-card:hover { border-color: rgba(244,63,94,0.4); transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.bank-icon {
    width: 48px; height: 48px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0;
}
.bank-card-name { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.bank-card-desc { font-size: 0.8rem; color: var(--text-secondary); }
.bank-card-arrow { margin-left: auto; color: var(--primary-color); font-size: 0.85rem; }

/* View all banks link */
.text-center { text-align: center; }
.view-all-banks-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--primary-color); font-weight: 700; text-decoration: none;
    font-size: 0.85rem;
}
.view-all-banks-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* PDF tools CTA */
.pdf-tools-cta {
    margin-top: 2rem; padding: 1.5rem; background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15); border-radius: var(--radius-lg);
    text-align: center; max-width: 800px; margin-left: auto; margin-right: auto;
}
.dark .pdf-tools-cta { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.2); }
.pdf-tools-title { color: var(--text-primary); margin-bottom: 0.5rem; font-size: 1.05rem; font-weight: 700; }
.pdf-tools-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.pdf-tools-link { color: #3b82f6; font-weight: 600; text-decoration: underline; }
.pdf-tools-btn {
    display: inline-block; background: #3b82f6; color: white; padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md); font-weight: 600; text-decoration: none; transition: all 0.2s;
}
.pdf-tools-btn:hover { background: #2563eb; transform: translateY(-1px); }

/* FAQ header */
.faq-header { text-align: center; margin-bottom: 3rem; }

/* Proof image */
.proof-image-container {
    position: relative; width: 100%; border-radius: var(--radius-2xl);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); overflow: hidden;
    border: 1px solid var(--border-color); margin: 2rem 0;
}
.proof-image { width: 100%; height: auto; display: block; }
.proof-badge {
    position: absolute; top: 1rem; right: 1rem; background: var(--primary-color);
    color: white; padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.8rem;
    font-weight: 700; box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
}

/* Format heading & preview heading */
.format-heading { text-align: center; margin-bottom: 1rem; color: var(--text-primary); font-weight: 800; font-size: 1rem; }
.preview-heading { margin-bottom: 1rem; color: var(--text-primary); font-weight: 800; font-size: 1rem; }

/* Smart feature badge */
.smart-feature-badge {
    margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(244,63,94,0.08); color: var(--primary-color);
    padding: 0.45rem 0.9rem; border-radius: 999px; font-weight: 700; font-size: 0.75rem;
    border: 1px solid rgba(244,63,94,0.15);
}

/* Batch file */
.batch-heading { margin-bottom: 1rem; color: var(--text-primary); font-weight: 800; }
.batch-file-list { max-height: 200px; overflow-y: auto; margin-bottom: 1rem; }
.batch-actions { display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.batch-total-size { color: var(--text-secondary); font-size: 0.85rem; }

/* Author avatar */
.author-avatar-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ===== MODAL ===== */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); z-index: 10000;
    align-items: center; justify-content: center;
}
.modal-content {
    background: var(--bg-card, white); border-radius: var(--radius-2xl); padding: 2rem;
    max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative;
    border: 1px solid var(--border-color); box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.dark .modal-content { background: var(--bg-secondary); }
.modal-close-btn {
    position: absolute; top: 1rem; right: 1rem; background: none; border: none;
    font-size: 1.5rem; cursor: pointer; color: var(--text-muted); transition: color 0.2s;
}
.modal-close-btn:hover { color: var(--text-primary); }
.modal-title { color: var(--text-primary); margin-bottom: 0.5rem; font-size: 1.4rem; font-weight: 800; }
.modal-desc { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.9rem; }

/* Form elements */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; font-size: 0.85rem; }
.required { color: #ef4444; }
.form-input {
    width: 100%; padding: 0.75rem; border: 1px solid var(--border-color);
    border-radius: var(--radius-md); font-size: 0.9rem; box-sizing: border-box;
    font-family: inherit; background: var(--bg-primary); color: var(--text-primary); outline: none;
}
.form-input:focus { border-color: var(--primary-color); }
.form-help { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.35rem; }

/* Dropzone */
.dropzone {
    border: 2px dashed var(--border-color); border-radius: var(--radius-lg);
    padding: 1.5rem; text-align: center; cursor: pointer; transition: all 0.2s;
    background: var(--bg-card, white);
}
.dark .dropzone { background: var(--bg-secondary); }
.dropzone:hover { border-color: var(--primary-color); }
.dropzone-icon { font-size: 2rem; color: var(--text-muted); margin-bottom: 0.5rem; display: block; }
.dropzone-label { color: var(--text-secondary); margin: 0; font-size: 0.85rem; }

/* Modal submit */
.modal-submit-btn {
    width: 100%; padding: 0.875rem; background: var(--primary-color); color: white;
    border: none; border-radius: var(--radius-md); font-weight: 700; font-size: 0.9rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 0.5rem; font-family: inherit; transition: all 0.2s;
}
.modal-submit-btn:hover { background: var(--primary-dark, #E11D48); transform: translateY(-1px); }

/* Modal success */
.modal-success { display: none; text-align: center; padding: 2rem 0; }
.success-icon-wrap {
    width: 64px; height: 64px; background: rgba(244,63,94,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.dark .success-icon-wrap { background: rgba(244,63,94,0.15); }
.success-check-icon { font-size: 2rem; color: var(--primary-color); }
.success-title { color: var(--text-primary); margin-bottom: 0.5rem; font-weight: 800; }
.success-desc { color: var(--text-secondary); font-size: 0.9rem; }

/* Bank identify banner & JS-generated error content overrides */
#bankIdentifyBanner h3 { color: var(--text-primary) !important; }
#bankIdentifyBanner p { color: var(--text-secondary) !important; }
#bankIdentifyBanner button { font-family: inherit; }
#bankIdentifyBanner div[style*="background:linear-gradient"] { border-radius: 50%; }
#bankIdentifyBanner a { color: #3b82f6; }

/* Override hardcoded colors in JS-generated "Bank Not Recognized" error */
.error-message h3[style] { color: var(--text-primary) !important; }
.error-message p[style] { color: var(--text-secondary) !important; }
.error-message button[style] { font-family: inherit !important; }
.error-message a[style] { font-family: inherit !important; }
.dark .error-message button[style*="background:#f3f4f6"] {
    background: var(--bg-tertiary) !important; color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Fix ondragover inline event colors for dark mode */
.dark #bankPdfDropzone[style*="background"] { background: rgba(244,63,94,0.08) !important; }
