/* =============================================
   TRANSFERPDF — PREMIUM LIGHT UI DESIGN SYSTEM
   ============================================= */

/* ROOT VARIABLES */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --surface: #f1f5f9;
    --surface-hover: #e8edf3;
    --border: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.1);
    --text: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --accent: #ef4444;
    --accent-hover: #dc2626;
    --accent-glow: rgba(239, 68, 68, 0.2);
    --accent-soft: rgba(239, 68, 68, 0.06);
    --gradient-hero: linear-gradient(135deg, #fef2f2 0%, #faf5ff 30%, #eff6ff 60%, #f0fdf4 100%);
    --gradient-text: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 8px 30px rgba(239, 68, 68, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* GLOBAL RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    line-height: 1.3;
    color: var(--text);
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================
   HEADER & NAV
   ======================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.logo:hover {
    color: var(--text);
}

.accent {
    color: var(--accent);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px var(--accent-glow);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface);
}

.nav-link.active {
    color: var(--accent);
    background: var(--accent-soft);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.dropdown-btn:hover {
    color: var(--text);
    background: var(--surface);
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform var(--transition);
    margin-left: 2px;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    min-width: 520px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--surface);
    color: var(--text);
}

.dropdown-item .dd-emoji {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    background: none;
    border: none;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    position: relative;
}

.hero-subhead,
.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
}

/* ========================
   BUTTONS
   ======================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: all var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: var(--surface);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ========================
   TRUST BADGES
   ======================== */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    position: relative;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    box-shadow: var(--shadow-xs);
}

.trust-badge svg {
    width: 16px;
    height: 16px;
    stroke: #22c55e;
}

/* ========================
   QUICK TOOLS (Homepage)
   ======================== */
.quick-tools {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.quick-tool-card {
    background: var(--bg-secondary);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 150px;
    transition: all var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.quick-tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    background: var(--accent-soft);
}

.quick-tool-icon {
    font-size: 2rem;
}

.quick-tool-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

/* ========================
   TOOL PAGE GRID (All Tools)
   ======================== */
.tools-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.tools-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    box-shadow: var(--shadow-xs);
}

.tool-item:hover {
    transform: translateY(-3px);
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.1);
    background: var(--accent-soft);
    color: var(--text);
}

.tool-item.active-tool {
    border: 2px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.tool-item.coming {
    opacity: 0.5;
    cursor: default;
}

.tool-emoji {
    font-size: 2rem;
}

.badge-soon {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    background: var(--accent-soft);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================
   TOOL CARD (Upload Area)
   ======================== */
.tool-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.drop-zone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    padding: 60px 30px;
    text-align: center;
    background: var(--surface);
    transition: all var(--transition);
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 30px rgba(239, 68, 68, 0.03);
}

.drop-icon {
    margin-bottom: 16px;
}

.drop-icon svg {
    stroke: var(--accent);
    opacity: 0.7;
}

.drop-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.drop-or {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.drop-note {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 8px;
}

.btn-upload {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-upload:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
    color: #fff;
}

/* Step Views */
.step {
    display: none;
}

.step.active {
    display: block;
}

/* File Info Bar */
.file-info-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.file-icon svg {
    stroke: var(--accent);
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

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

.btn-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition);
}

.btn-remove:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

/* Compression Levels */
.compression-levels {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.level-option {
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-primary);
}

.level-option:hover {
    border-color: var(--border-light);
    background: var(--surface);
}

.level-option.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.level-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.level-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-compress,
.btn-action {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-compress:hover,
.btn-action:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Progress */
.progress-content {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
}

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

.progress-text {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.progress-bar-wrap {
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #f97316 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
}

/* Result */
.result-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    text-align: center;
}

.result-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.result-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.stat {
    text-align: center;
}

.stat span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat strong {
    font-size: 1.3rem;
    color: var(--text);
}

.stat.highlight strong {
    color: #16a34a;
}

.arrow {
    font-size: 1.5rem;
    color: var(--text-dim);
}

.savings-badge {
    text-align: center;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
    font-weight: 700;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-download {
    display: block;
    text-align: center;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    box-shadow: 0 4px 16px var(--accent-glow);
    margin-bottom: 30px;
}

.btn-download:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    color: #fff;
}

/* ========================
   FEATURES / SECURITY
   ======================== */
.features-section,
.content-section,
.security-section {
    padding: 80px 0;
}

.features-grid,
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card,
.sec-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}

.feature-card:hover,
.sec-item:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon,
.sec-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: inline-block;
}

.feature-card h3,
.sec-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p,
.sec-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================
   FAQ
   ======================== */
.faq-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-q {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
    transition: color var(--transition);
}

.faq-q:hover {
    color: var(--accent);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-a {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-a p {
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-icon {
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ========================
   FOOTER
   ======================== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer .logo {
    color: #f1f5f9;
}

.footer .accent {
    color: var(--accent);
}

.footer p {
    color: #94a3b8;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 140px;
}

.footer-col h4 {
    color: #f1f5f9;
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: #94a3b8;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #f1f5f9;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom a {
    color: #64748b;
}

.footer-bottom a:hover {
    color: #f1f5f9;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    transition: all var(--transition);
    color: #94a3b8;
}

.social-links a:hover {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent);
}

/* ========================
   CONTENT SECTIONS (SEO)
   ======================== */
.step-result h2,
.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}

.step-result p,
.content-section p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ========================
   MERGE-SPECIFIC STYLES
   ======================== */
.file-list {
    margin: 16px 0;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: all var(--transition);
}

.file-item:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.file-item .handle {
    cursor: grab;
    color: var(--text-dim);
    margin-right: 12px;
}

.file-count {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 12px 0;
}

/* ========================
   SPLIT-SPECIFIC STYLES
   ======================== */
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.page-thumb {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.page-thumb:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.page-thumb.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.page-thumb canvas {
    width: 100%;
    border-radius: 4px;
}

.page-thumb .page-num {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========================
   MERGE FILE LIST
   ======================== */
.file-list,
.files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.file-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: grab;
    transition: all var(--transition);
    user-select: none;
}

.file-list-item:active {
    cursor: grabbing;
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.file-list-item.dragging {
    opacity: 0.4;
}

.file-list-item .grip {
    color: var(--text-dim);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.file-list-item .fl-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-list-item .fl-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}

.file-list-item .fl-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.file-list-item .fl-num {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.file-list-item .fl-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-dim);
    border-radius: 6px;
    transition: all var(--transition);
    flex-shrink: 0;
}

.file-list-item .fl-remove:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.add-more-btn {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--border-light);
    background: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
    margin-bottom: 16px;
}

.add-more-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.add-more-container {
    margin-bottom: 16px;
}

.result-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-another {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    background: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    transition: all var(--transition);
    text-align: center;
}

.btn-another:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========================
   ANIMATIONS
   ======================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 900px) {
    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    body.nav-open .nav {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 14px 16px;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-btn {
        width: 100%;
        padding: 14px 16px;
        justify-content: space-between;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding: 0 0 0 12px;
        min-width: 0;
        grid-template-columns: 1fr;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown.active .dropdown-menu {
        max-height: 600px;
    }

    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-item {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .mobile-toggle {
        display: flex;
    }

    body.nav-open .mobile-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    body.nav-open .mobile-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .mobile-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subhead,
    .hero-desc {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .tool-card {
        padding: 24px 16px;
        margin: 0 -10px;
        border-radius: var(--radius-lg);
    }

    .trust-badges {
        gap: 8px;
    }

    .trust-badge {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    .quick-tools {
        gap: 10px;
    }

    .quick-tool-card {
        width: 120px;
        padding: 16px;
    }

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

    .tool-item {
        padding: 20px 12px;
        font-size: 0.85rem;
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .result-stats {
        flex-direction: column;
        gap: 12px;
    }

    .arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 12px;
    }

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

/* ========================
   TESTIMONIALS
   ======================== */
.testimonials-section {
    padding: 80px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.testimonial-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.t-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.t-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.t-info {
    display: flex;
    flex-direction: column;
}

.t-name {
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
}

.t-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.t-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.t-content {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
}

/* ========================
   BLOG STYLES (Global)
   ======================== */
.blog-hero {
    padding: 100px 0 80px;
    background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 50%, #f8fafc 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.05;
    z-index: 0;
}

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

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -0.02em;
}

/* Category Filter */
.category-filter {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 10px 24px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
}

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

.cat-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0 80px;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    position: relative;
    /* Added for clickable card link */
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 0 10px 10px -5px rgba(37, 99, 235, 0.04);
    border-color: var(--accent);
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-tag {
    display: inline-block;
    padding: 4px 14px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.4;
    color: var(--text);
}

.blog-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-more {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.read-more:hover {
    gap: 10px;
}

/* Related Posts Section */
.related-posts {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    background: #fff;
}

.related-posts h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 40px;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    text-align: center;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.newsletter-box h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.newsletter-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input:focus {
    border-color: var(--accent);
}

.newsletter-form button {
    padding: 0 30px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: var(--accent-hover);
}

@media (max-width: 600px) {
    .newsletter-box {
        padding: 30px 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        padding: 14px;
    }
}

/* Blog Post Layout */
.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--surface);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.post-header h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.post-featured-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-lg);
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 48px 0 24px;
    color: var(--text);
}

.post-content p {
    margin-bottom: 24px;
}

/* Global Blog Section (for non-blog pages) */
.global-blog-section {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid var(--border);
}

.global-blog-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--bg-primary);
    color: var(--accent);
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--accent);
    transition: all var(--transition);
}

.btn-view-all:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.cta-box {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 24px;
    padding: 40px;
    color: #fff;
    text-align: center;
    margin: 60px 0;
    box-shadow: var(--shadow-glow);
}

.cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #fff;
}

.cta-box p {
    margin-bottom: 24px;
    opacity: 0.9;
    color: #fff;
}

.cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--accent);
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--transition);
}

.cta-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 2.2rem;
    }

    .post-featured-img {
        height: 300px;
    }

    .post-container {
        padding: 100px 16px 60px;
    }
}