        :root {
            /* Light Theme (Default) - Clean PDF-tool palette (iLovePDF-inspired) */
            --bg-primary: #f6f6f8;
            --bg-secondary: #ffffff;
            --bg-tertiary: #f1f1f4;
            --text-primary: #2b2b38;
            --text-secondary: #6b6b78;
            --text-tertiary: #9a9aa6;
            --border-color: #e6e6ea;
            --accent-primary: #e5322d;
            --accent-secondary: #c8201b;
            --accent-tertiary: #ff6b67;
            --shadow-color: rgba(20, 20, 40, 0.08);
            --card-bg: #ffffff;
            --navbar-bg: #ffffff;
            --glass-border: #e6e6ea;
        }

        [data-theme="dark"] {
            /* Dark Theme - same red accent, dark surfaces */
            --bg-primary: #1b1b22;
            --bg-secondary: #24242c;
            --bg-tertiary: #2c2c35;
            --text-primary: #f3f3f5;
            --text-secondary: #b3b3bd;
            --text-tertiary: #8a8a96;
            --border-color: #36363f;
            --accent-primary: #f0413c;
            --accent-secondary: #ff6b67;
            --accent-tertiary: #ff8a87;
            --shadow-color: rgba(0, 0, 0, 0.5);
            --card-bg: #24242c;
            --navbar-bg: #1f1f26;
            --glass-border: #36363f;
        }

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

        body {
            font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--bg-primary);
            min-height: 100vh;
            padding: 0;
            padding-top: 70px;
            position: relative;
            overflow-x: hidden;
            color: var(--text-primary);
            transition: background-color 0.2s ease, color 0.2s ease;
            scroll-padding-top: 84px;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Navbar */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            z-index: 1000;
            background: var(--navbar-bg);
            border-bottom: 1px solid var(--border-color);
            padding: 12px 0;
            transition: background 0.2s ease;
        }

        .navbar-content {
            max-width: 100%;
            margin: 0 auto;
            padding: 0 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .navbar-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: var(--text-primary);
            font-size: 20px;
            font-weight: 800;
            font-family: 'Poppins', sans-serif;
            transition: color 0.2s ease;
        }

        .navbar-brand:hover {
            color: var(--accent-primary);
        }

        .navbar-brand i {
            font-size: 24px;
            color: var(--accent-primary);
        }

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

        .nav-item {
            padding: 10px 16px;
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            border-radius: 8px;
            transition: color 0.15s ease, background 0.15s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            border: 1px solid transparent;
        }

        .nav-item:hover {
            color: var(--text-primary);
            background: var(--bg-tertiary);
        }

        .nav-item.active {
            color: var(--accent-primary);
            background: rgba(229, 50, 45, 0.08);
            font-weight: 700;
        }

        .nav-item i {
            font-size: 15px;
        }

        .navbar-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-button {
            padding: 9px 16px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: background 0.15s ease, border-color 0.15s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .nav-button:hover {
            background: var(--border-color);
        }

        .nav-button.primary {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            color: #fff;
        }

        .nav-button.primary:hover {
            background: var(--accent-secondary);
            border-color: var(--accent-secondary);
        }

        .nav-text {
            display: inline;
        }

        .theme-toggle {
            padding: 9px 12px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            cursor: pointer;
            font-size: 16px;
            transition: background 0.15s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
        }

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

        .mobile-menu-toggle {
            display: none;
            padding: 9px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            cursor: pointer;
            font-size: 18px;
            transition: background 0.15s ease;
        }

        .mobile-menu-toggle:hover {
            background: var(--border-color);
        }

        .menu-close-btn {
            display: none;
        }

        /* Floating scroll-to-top button */
        .scroll-top-fab {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 46px;
            height: 46px;
            border-radius: 8px;
            border: none;
            background: var(--accent-primary);
            color: #fff;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 14px var(--shadow-color);
            opacity: 0;
            visibility: hidden;
            transform: translateY(12px);
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, background 0.15s ease;
            z-index: 999;
        }

        .scroll-top-fab.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .scroll-top-fab:hover {
            background: var(--accent-secondary);
        }

        .scroll-top-fab:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 3px;
        }

        @media (max-width: 768px) {
            .scroll-top-fab {
                bottom: 18px;
                right: 18px;
                width: 42px;
                height: 42px;
                font-size: 16px;
            }
        }

        .container {
            max-width: 100%;
            margin: 0 auto;
            position: relative;
            z-index: 1;
            padding: 36px 40px 56px;
        }

        /* Header Section */
        .header-section {
            text-align: center;
            margin-bottom: 36px;
            padding: 24px 20px 8px;
            position: relative;
        }

        h1 {
            color: var(--text-primary);
            margin-bottom: 14px;
            font-size: clamp(2rem, 5vw, 3rem);
            font-family: 'Poppins', sans-serif;
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1.15;
        }

        h1 i {
            color: var(--accent-primary);
        }

        .header-subtitle {
            color: var(--text-secondary);
            font-size: 1.05rem;
            font-weight: 400;
            margin-top: 8px;
            line-height: 1.6;
            max-width: 720px;
            margin-left: auto;
            margin-right: auto;
        }

        .tab-content {
            display: none;
            background: var(--card-bg);
            border-radius: 14px;
            padding: 40px;
            box-shadow: 0 2px 12px var(--shadow-color);
            border: 1px solid var(--border-color);
            margin-top: 16px;
        }

        .tab-content.active {
            display: block;
            animation: fadeIn 0.25s ease;
        }

        .upload-area {
            border: 2px dashed var(--border-color);
            border-radius: 12px;
            padding: 64px 32px;
            text-align: center;
            background: var(--bg-tertiary);
            transition: border-color 0.15s ease, background 0.15s ease;
            cursor: pointer;
            margin-bottom: 28px;
            position: relative;
        }

        .upload-area:hover {
            border-color: var(--accent-primary);
            background: rgba(229, 50, 45, 0.04);
        }

        .upload-area.dragover {
            border-color: var(--accent-primary);
            background: rgba(229, 50, 45, 0.08);
        }

        .upload-icon {
            font-size: 56px;
            color: var(--accent-primary);
            margin-bottom: 18px;
            display: inline-block;
        }

        .upload-text {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .upload-hint {
            font-size: 14px;
            color: var(--text-tertiary);
            font-weight: 400;
        }

        input[type="file"] {
            display: none;
        }

        .file-list {
            margin-top: 16px;
            display: none;
        }

        .file-item {
            background: var(--bg-secondary);
            padding: 16px 20px;
            border-radius: 10px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid var(--border-color);
            border-left: 4px solid var(--accent-primary);
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }

        .file-item::before {
            content: '\f1c1';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            font-size: 28px;
            margin-right: 12px;
            color: var(--accent-primary);
        }

        .file-item:hover {
            box-shadow: 0 2px 10px var(--shadow-color);
        }

        .file-name {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 14px;
            flex: 1;
            margin-left: 10px;
        }

        .file-size {
            font-size: 12px;
            color: var(--text-tertiary);
            margin-left: 10px;
            font-weight: 400;
        }

        .file-remove {
            background: transparent;
            color: var(--accent-primary);
            border: 1px solid var(--accent-primary);
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: background 0.15s ease, color 0.15s ease;
        }

        .file-remove:hover {
            background: var(--accent-primary);
            color: #fff;
        }

        .file-remove:active {
            transform: scale(0.97);
        }

        .checkbox-container {
            margin: 24px 0;
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 18px 20px;
            background: var(--bg-tertiary);
            border-radius: 10px;
            border: 1px solid var(--border-color);
            transition: border-color 0.15s ease;
        }

        .checkbox-container:hover {
            border-color: var(--accent-primary);
        }

        .checkbox-container input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
            accent-color: var(--accent-primary);
        }

        .checkbox-container label {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            cursor: pointer;
            user-select: none;
        }

        .btn {
            background: var(--accent-primary);
            color: white;
            border: none;
            padding: 16px 36px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 700;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
            transition: background 0.15s ease, transform 0.1s ease;
            width: 100%;
            margin-top: 28px;
        }

        .btn:hover {
            background: var(--accent-secondary);
        }

        .btn:active {
            transform: scale(0.99);
        }

        .btn i {
            margin-right: 8px;
        }

        .btn:disabled {
            background: var(--border-color);
            color: var(--text-tertiary);
            cursor: not-allowed;
        }

        .loading {
            display: none;
            text-align: center;
            margin-top: 28px;
            padding: 36px 32px;
            background: var(--bg-tertiary);
            border-radius: 12px;
            border: 1px solid var(--border-color);
        }

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

        .loading p {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 15px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .error-message {
            background: rgba(229, 50, 45, 0.08);
            color: var(--text-primary);
            padding: 16px 20px;
            border-radius: 10px;
            margin-top: 20px;
            display: none;
            border: 1px solid rgba(229, 50, 45, 0.3);
            border-left: 4px solid var(--accent-primary);
            font-weight: 500;
        }

        .success-message {
            background: rgba(22, 163, 74, 0.08);
            color: var(--text-primary);
            padding: 16px 20px;
            border-radius: 10px;
            margin-top: 20px;
            display: none;
            border: 1px solid rgba(22, 163, 74, 0.3);
            border-left: 4px solid #16a34a;
            font-weight: 500;
        }

        .info-box {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-left: 4px solid var(--accent-primary);
            padding: 22px 26px;
            border-radius: 10px;
            margin-bottom: 28px;
        }

        .info-box h2 {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
            font-family: 'Poppins', sans-serif;
        }

        .info-box h2 i {
            color: var(--accent-primary);
        }

        .info-box p {
            margin: 6px 0;
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 400;
            line-height: 1.6;
        }

        .info-box p strong {
            font-weight: 600;
            color: var(--text-primary);
        }

        /* AdSense container styles */
        .ads-container {
            margin: 24px 0;
            text-align: center;
            min-height: 100px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: var(--bg-tertiary);
            border-radius: 10px;
            padding: 16px;
            border: 1px solid var(--border-color);
        }

        .ads-container ins {
            display: block;
            margin: 0 auto;
        }

        .ads-sidebar {
            position: fixed;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 160px;
            z-index: 100;
            background: var(--card-bg);
            border-radius: 10px;
            padding: 10px;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 12px var(--shadow-color);
        }

        @media (max-width: 1200px) {
            .ads-sidebar {
                display: none;
            }
        }

        @media (max-width: 768px) {
            body {
                padding-top: 62px;
                scroll-padding-top: 74px;
            }

            .ads-container {
                min-height: 50px;
            }

            .header-section {
                padding: 16px 10px 4px;
                margin-bottom: 24px;
            }

            .header-subtitle {
                font-size: 0.98rem;
                padding: 0 6px;
            }

            .tab-content {
                padding: 24px 16px;
                border-radius: 12px;
            }

            .upload-area {
                padding: 44px 16px;
                margin-bottom: 22px;
            }

            .upload-icon {
                font-size: 44px;
                margin-bottom: 14px;
            }

            .upload-text {
                font-size: 1.05rem;
            }

            .stats-container {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .container {
                padding: 20px 14px 40px;
            }

            .navbar {
                padding: 10px 0;
            }

            .navbar-content {
                padding: 0 14px;
            }

            .navbar-nav {
                display: flex;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100vh;
                background: var(--bg-primary);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 16px;
                padding: 40px;
                z-index: 2000;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transition: opacity 0.2s ease, visibility 0.2s ease;
            }

            .navbar-nav.active {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
            }

            .nav-item {
                width: 80%;
                justify-content: center;
                font-size: 1.05rem;
                padding: 16px;
                border: 1px solid var(--border-color);
            }

            .navbar-actions {
                gap: 6px;
            }

            .nav-button .nav-text {
                display: none;
            }

            .nav-button {
                padding: 9px;
                width: 40px;
                height: 40px;
                justify-content: center;
            }

            .nav-button i {
                margin: 0;
                font-size: 16px;
            }

            .mobile-menu-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 40px;
                height: 40px;
            }

            .menu-close-btn {
                display: flex !important;
                position: absolute;
                top: 18px;
                right: 18px;
                background: var(--bg-tertiary);
                border: 1px solid var(--border-color);
                color: var(--text-primary) !important;
                width: 44px;
                height: 44px;
                border-radius: 8px;
                font-size: 20px;
                font-weight: 700;
                cursor: pointer;
                align-items: center;
                justify-content: center;
                transition: background 0.15s ease;
                line-height: 1;
            }

            .menu-close-btn:hover {
                background: var(--border-color);
            }

            .navbar-nav .nav-item:hover,
            .navbar-nav .nav-item.active {
                background: rgba(229, 50, 45, 0.08) !important;
                color: var(--accent-primary) !important;
                border-color: var(--accent-primary) !important;
            }

            .navbar-brand {
                font-size: 16px;
                max-width: 160px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .navbar-brand i {
                font-size: 20px;
            }
        }

        /* Progress bar */
        .progress-bar-container {
            width: 100%;
            height: 6px;
            background: var(--border-color);
            border-radius: 6px;
            overflow: hidden;
            margin-top: 14px;
            display: none;
        }

        .progress-bar {
            height: 100%;
            background: var(--accent-primary);
            width: 0%;
            transition: width 0.3s ease;
            border-radius: 6px;
        }

        /* File count badge */
        .file-count-badge {
            display: inline-block;
            background: var(--accent-primary);
            color: white;
            padding: 3px 10px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 700;
            margin-left: 8px;
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--card-bg);
            padding: 16px 22px;
            border-radius: 10px;
            box-shadow: 0 6px 24px var(--shadow-color);
            z-index: 10000;
            display: none;
            animation: toastSlideIn 0.3s ease;
            max-width: 400px;
            border: 1px solid var(--border-color);
            border-left: 4px solid var(--accent-primary);
            color: var(--text-primary);
            font-weight: 500;
        }

        .toast.success {
            border-left-color: #16a34a;
        }

        .toast.error {
            border-left-color: var(--accent-primary);
        }

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

        /* Tooltip */
        .tooltip {
            position: relative;
            display: inline-block;
        }

        .tooltip .tooltiptext {
            visibility: hidden;
            width: 200px;
            background-color: var(--text-primary);
            color: var(--bg-secondary);
            text-align: center;
            border-radius: 8px;
            padding: 10px;
            position: absolute;
            z-index: 1000;
            bottom: 125%;
            left: 50%;
            margin-left: -100px;
            opacity: 0;
            transition: opacity 0.2s;
            font-size: 13px;
            box-shadow: 0 4px 16px var(--shadow-color);
        }

        .tooltip .tooltiptext::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: var(--text-primary) transparent transparent transparent;
        }

        .tooltip:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
        }

        /* Stats Cards */
        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 28px;
        }

        .stat-card {
            background: var(--card-bg);
            padding: 24px 22px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 2px 12px var(--shadow-color);
            border: 1px solid var(--border-color);
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }

        .stat-card:hover {
            border-color: var(--accent-primary);
            box-shadow: 0 4px 16px var(--shadow-color);
        }

        .stat-card .stat-icon {
            font-size: 32px;
            margin-bottom: 12px;
            color: var(--accent-primary);
        }

        .stat-card .stat-value {
            font-size: 30px;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 6px;
            font-family: 'Poppins', sans-serif;
        }

        .stat-card .stat-label {
            font-size: 13px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* Confetti Animation */
        .confetti {
            position: fixed;
            width: 10px;
            height: 10px;
            background: var(--accent-primary);
            top: -10px;
            z-index: 9999;
            animation: confettiFall linear;
        }

        @keyframes confettiFall {
            to {
                transform: translateY(100vh) rotate(360deg);
            }
        }

        /* Feature Cards */
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 32px 0;
        }

        .feature-card {
            background: var(--card-bg);
            padding: 26px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 2px 12px var(--shadow-color);
            border: 1px solid var(--border-color);
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }

        .feature-card:hover {
            border-color: var(--accent-primary);
            box-shadow: 0 4px 16px var(--shadow-color);
        }

        .feature-card .feature-icon {
            font-size: 40px;
            margin-bottom: 16px;
            display: block;
            color: var(--accent-primary);
        }

        .feature-card h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 10px;
        }

        .feature-card p {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* File Preview Enhanced */
        .file-preview {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px;
            background: var(--bg-tertiary);
            border-radius: 10px;
            margin-top: 14px;
        }

        .file-icon-large {
            font-size: 44px;
            color: var(--accent-primary);
        }

        /* Keyboard Shortcuts Hint */
        /* Help modal */
        .help-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 2000;
            animation: fadeIn 0.2s ease;
        }

        .help-modal-overlay[hidden] {
            display: none;
        }

        .help-modal {
            background: var(--card-bg);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 540px;
            width: 100%;
            max-height: 85vh;
            overflow-y: auto;
            padding: 32px;
            position: relative;
        }

        .help-modal h2 {
            font-family: 'Poppins', sans-serif;
            font-size: 1.4rem;
            font-weight: 800;
            margin-bottom: 20px;
            color: var(--text-primary);
        }

        .help-modal h2 i {
            color: var(--accent-primary);
        }

        .help-section {
            margin-bottom: 20px;
        }

        .help-section h3 {
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 6px;
            color: var(--text-primary);
        }

        .help-section h3 i {
            color: var(--accent-primary);
            margin-right: 6px;
        }

        .help-section p {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.7;
            margin: 0;
        }

        .help-shortcuts {
            list-style: none;
            margin: 0;
            padding: 0;
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 2;
        }

        .help-modal kbd {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 2px 7px;
            font-size: 12px;
            font-family: inherit;
            color: var(--text-primary);
        }

        .help-modal a {
            color: var(--accent-primary);
            font-weight: 600;
        }

        .help-modal-close {
            position: absolute;
            top: 14px;
            right: 16px;
            background: none;
            border: none;
            font-size: 28px;
            line-height: 1;
            cursor: pointer;
            color: var(--text-tertiary);
            transition: color 0.15s ease;
        }

        .help-modal-close:hover {
            color: var(--accent-primary);
        }

        /* Enhanced Upload Area States */
        .upload-area.has-file {
            border-color: #16a34a;
            background: rgba(22, 163, 74, 0.06);
        }

        .upload-area.processing {
            border-color: #d97706;
            background: rgba(217, 119, 6, 0.06);
        }

        /* Ripple Effect */
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            transform: scale(0);
            animation: rippleAnimation 0.6s ease-out;
            pointer-events: none;
        }

        @keyframes rippleAnimation {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        /* Footer Styles */
        footer {
            background: var(--navbar-bg);
            border-top: 1px solid var(--border-color);
            padding: 48px 20px;
            margin-top: 64px;
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .footer-content {
            max-width: 100%;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 32px;
            text-align: left;
        }

        .footer-section h4 {
            color: var(--text-primary);
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 16px;
            font-family: 'Poppins', sans-serif;
        }

        .footer-section p {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.6;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.15s ease;
        }

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

        .footer-bottom {
            margin-top: 48px;
            padding-top: 18px;
            border-top: 1px solid var(--border-color);
            color: var(--text-tertiary);
            font-size: 13px;
        }

        /* Trust badges row */
        .trust-badges {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px 24px;
            margin-top: 20px;
        }

        .trust-badges span {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
        }

        .trust-badges span i {
            color: #16a34a;
            font-size: 13px;
        }

        /* Tool cards grid */
        .tool-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 18px;
            margin-bottom: 28px;
        }

        .tool-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 28px 26px;
            text-align: left;
            cursor: pointer;
            transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
        }

        .tool-card:hover {
            border-color: var(--accent-primary);
            box-shadow: 0 4px 18px var(--shadow-color);
            transform: translateY(-2px);
        }

        .tool-card:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
        }

        .tool-card-icon {
            width: 48px;
            height: 48px;
            border-radius: 10px;
            background: rgba(229, 50, 45, 0.1);
            color: var(--accent-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            margin-bottom: 16px;
        }

        .tool-card h2 {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-primary);
            font-family: 'Poppins', sans-serif;
            margin-bottom: 8px;
        }

        .tool-card p {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 14px;
        }

        .tool-card-cta {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-size: 14px;
            font-weight: 600;
            color: var(--accent-primary);
        }

        .tool-card:hover .tool-card-cta i {
            transform: translateX(3px);
        }

        .tool-card-cta i {
            transition: transform 0.15s ease;
        }
