/* ═══════════════════════════════════════════════════════════════
   NextDocu — Premium UI Stylesheet
   Fonts: Syne (display) + DM Sans (body)
   Theme: Dark-first with light toggle
═══════════════════════════════════════════════════════════════ */


/* ─── CSS Variables ─────────────────────────────────────────── */

:root {
    --ff-display: 'Syne', sans-serif;
    --ff-body: 'DM Sans', sans-serif;
    /* Dark theme (default) */
    --bg-base: #0d0f14;
    --bg-surface: #14171f;
    --bg-card: #1a1e28;
    --bg-card-hover: #1f2433;
    --bg-input: #111520;
    --bg-overlay: rgba(13, 15, 20, 0.85);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);
    --text-primary: #f0f2f8;
    --text-secondary: #8892a8;
    --text-muted: #545e72;
    --accent: #4f7cff;
    --accent-hover: #6690ff;
    --accent-dim: rgba(79, 124, 255, 0.12);
    --accent-glow: rgba(79, 124, 255, 0.3);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #38bdf8;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 0 40px rgba(79, 124, 255, 0.2);
    --nav-height: 68px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-base: #f4f6fc;
    --bg-surface: #030202ff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8faff;
    --bg-input: #f0f2f8;
    --bg-overlay: rgba(244, 246, 252, 0.9);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text-primary: #0d1120;
    --text-secondary: #4a5568;
    --text-muted: #9aa3b4;
    --accent-dim: rgba(79, 124, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}


/* ─── Reset & Base ──────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    background: var(--bg-base);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    transition: background var(--transition), color var(--transition);
}


/* ─── Navbar ────────────────────────────────────────────────── */

#mainNav {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
    backdrop-filter: blur(20px);
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--ff-display);
    font-size: 1.3rem;
    color: var(--text-primary) !important;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: white;
    box-shadow: var(--shadow-accent);
}

.brand-text strong {
    color: var(--accent);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
    background: var(--accent-dim);
}

.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    min-width: 220px;
}

.dropdown-item {
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    transition: all var(--transition);
}

.dropdown-item:hover {
    background: var(--accent-dim);
    color: var(--text-primary);
}

.dropdown-divider {
    border-color: var(--border);
    margin: 0.3rem 0;
}


/* ─── Buttons ───────────────────────────────────────────────── */

.btn-accent {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.45rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--ff-body);
    transition: all var(--transition);
    cursor: pointer;
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-outline-accent {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 0.45rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.45rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}

.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--ff-display);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary-lg:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.9rem;
}

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


/* ─── Flash/Toast ───────────────────────────────────────────── */

.flash-container {
    position: fixed;
    top: calc(var(--nav-height) + 16px);
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}

.toast-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    border: 1px solid transparent;
}

.toast-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.toast-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.toast-info {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}

.toast-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    font-size: 1rem;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* ─── Hero Section ──────────────────────────────────────────── */

.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(79, 124, 255, 0.18) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 80% 60%, rgba(79, 124, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid rgba(79, 124, 255, 0.2);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 28px;
    animation: fadeUp 0.5s ease 0.1s both;
}

.hero h1 {
    font-family: var(--ff-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fadeUp 0.5s ease 0.2s both;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 48px;
    animation: fadeUp 0.5s ease 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.5s ease 0.4s both;
}


/* ─── Tools Grid ────────────────────────────────────────────── */

.tools-section {
    padding: 80px 0;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.tool-card:hover {
    border-color: rgba(79, 124, 255, 0.25);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-accent);
    color: var(--text-primary);
    text-decoration: none;
}

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

.tool-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.tool-card h3 {
    font-family: var(--ff-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tool-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.tool-card:hover .tool-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}


/* Tool icon colors */

.icon-merge {
    background: rgba(79, 124, 255, 0.15);
    color: #4f7cff;
}

.icon-split {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.icon-compress {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.icon-convert {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.icon-rotate {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.icon-watermark {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.icon-encrypt {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}


/* ─── Upload Zone ───────────────────────────────────────────── */

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    background: var(--bg-card);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.upload-zone.dragover {
    transform: scale(1.01);
}

.upload-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: block;
    opacity: 0.8;
}

.upload-zone h3 {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.upload-zone p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.upload-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.upload-meta span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}


/* ─── File List ─────────────────────────────────────────────── */

.file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    animation: fadeUp 0.3s ease;
}

.file-item-icon {
    width: 38px;
    height: 38px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.file-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.file-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all var(--transition);
    font-size: 1rem;
}

.file-item-remove:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}


/* ─── Progress ──────────────────────────────────────────────── */

.progress-bar-custom {
    height: 4px;
    background: var(--bg-input);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 100px;
    transition: width 0.4s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}


/* ─── Processing Panel ──────────────────────────────────────── */

.processing-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
}

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

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


/* ─── Result Panel ──────────────────────────────────────────── */

.result-panel {
    background: var(--bg-card);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
}

.result-icon {
    width: 72px;
    height: 72px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ─── Tool Page Layout ──────────────────────────────────────── */

.tool-page {
    padding: 60px 0;
    min-height: calc(100vh - var(--nav-height) - 200px);
}

.tool-header {
    text-align: center;
    margin-bottom: 48px;
}

.tool-header h1 {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid rgba(79, 124, 255, 0.2);
    color: var(--accent);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}


/* ─── Option Controls ───────────────────────────────────────── */

.option-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.option-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.option-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

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

.pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}


/* ─── Form inputs ───────────────────────────────────────────── */

.form-control-dark {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
    font-family: var(--ff-body);
    transition: all var(--transition);
    width: 100%;
}

.form-control-dark:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
    background: var(--bg-card);
}

.form-control-dark::placeholder {
    color: var(--text-muted);
}


/* ─── Auth Pages ────────────────────────────────────────────── */

.auth-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.auth-card h2 {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-card p.subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.input-with-icon {
    padding-left: 2.5rem !important;
}


/* ─── Dashboard ─────────────────────────────────────────────── */

.dashboard-page {
    padding: 48px 0;
}

.page-title {
    font-family: var(--ff-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}

.stat-card-value {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.data-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    padding: 0.875rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.data-table tbody td {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--bg-card-hover);
}


/* ─── Status badges ─────────────────────────────────────────── */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-done {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.status-processing {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.status-pending {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

.status-failed {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}


/* ─── Features Strip ────────────────────────────────────────── */

.features-strip {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}

.feature-item h4 {
    font-family: var(--ff-display);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 0.83rem;
    color: var(--text-secondary);
}


/* ─── Footer ────────────────────────────────────────────────── */

.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-brand {
    font-family: var(--ff-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 260px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

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

.security-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-security {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.badge-security i {
    color: var(--success);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* ─── Animations ────────────────────────────────────────────── */

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

.animate-in {
    animation: fadeUp 0.5s ease both;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}


/* ─── Navbar toggler (dark) ─────────────────────────────────── */

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(240,242,248,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* ─── Drag handle (for reordering) ─────────────────────────── */

.drag-handle {
    cursor: grab;
    color: var(--text-muted);
    padding: 0 8px;
    font-size: 1.1rem;
}

.drag-handle:active {
    cursor: grabbing;
}


/* ─── Utility ───────────────────────────────────────────────── */

.text-accent {
    color: var(--accent) !important;
}

.text-muted-custom {
    color: var(--text-muted) !important;
}

.bg-card {
    background: var(--bg-card) !important;
}

.border-subtle {
    border-color: var(--border) !important;
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}


/* Sortable ghost */

.sortable-ghost {
    opacity: 0.4;
    background: var(--accent-dim);
}


/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 50px;
    }
    .tools-section {
        padding: 50px 0;
    }
    .tool-page {
        padding: 40px 0;
    }
    .upload-zone {
        padding: 2.5rem 1.25rem;
    }
    .result-stats {
        gap: 1.25rem;
    }
    .navbar-actions {
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }
}