:root {
            --bg: #0a0d14;
            --bg-hero: radial-gradient(ellipse 70% 90% at 50% 0%, #0f1a33 0%, #0a0d14 70%);
            --hdr-bg: rgba(10, 13, 20, 0.92);
            --fg: #f1f5f9;
            --fg-title: #ffffff;
            --muted: #94a3b8;
            --card-bg: rgba(17, 24, 39, 0.6);
            --card-border: #1f2937;
            --cyan: #00a8ff;
            --blue: #2563eb;
            --line: #1e293b;
            --dropdown-bg: #0f172a;
            --footer-bg: #0a0d14;
            --footer-fg: #94a3b8;
            --pill-p1-bg: #ffffff;
            --pill-p1-fg: #0a0d14;
            --pill-p2-bg: rgba(17, 24, 39, 0.45);
            --pill-p2-fg: #f1f5f9;
            --input-bg: rgba(17, 24, 39, 0.8);
            --r: 16px;
        }

        :root[data-theme="light"], body.light-theme {
            --bg: #f8fafc;
            --bg-hero: radial-gradient(ellipse 70% 90% at 50% 0%, #e2e8f0 0%, #f8fafc 70%);
            --hdr-bg: rgba(255, 255, 255, 0.95);
            --fg: #0f172a;
            --fg-title: #0f172a;
            --muted: #64748b;
            --card-bg: #ffffff;
            --card-border: #e2e8f0;
            --cyan: #0088cc;
            --blue: #2563eb;
            --line: #e2e8f0;
            --dropdown-bg: #ffffff;
            --footer-bg: #f1f5f9;
            --footer-fg: #64748b;
            --pill-p1-bg: #0f172a;
            --pill-p1-fg: #ffffff;
            --pill-p2-bg: #ffffff;
            --pill-p2-fg: #0f172a;
            --input-bg: #ffffff;
        }

        html {
            background-color: var(--bg) !important;
            color: var(--fg) !important;
            font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
            margin: 0;
            padding: 0;
            overflow-x: hidden !important;
            overflow-y: auto !important;
            scrollbar-width: thin;
            scrollbar-color: #1e293b var(--bg);
            -webkit-font-smoothing: antialiased;
            transition: background-color 0.25s ease, color 0.25s ease;
        }

        body {
            background-color: var(--bg) !important;
            color: var(--fg) !important;
            font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
            margin: 0 !important;
            padding: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            overflow: visible !important;
            overflow-x: visible !important;
            overflow-y: visible !important;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
            transition: background-color 0.25s ease, color 0.25s ease;
        }

        /* Prevent Astra/Elementor wrappers from creating inner vertical scrollbars */
        #page, .site, .site-content, .entry-content, .ast-container, #content, .elementor {
            overflow: visible !important;
            overflow-x: visible !important;
            overflow-y: visible !important;
        }

        /* Single clean scrollbar on the viewport (no double slider) */
        html::-webkit-scrollbar {
            width: 7px;
        }
        html::-webkit-scrollbar-track {
            background: var(--bg);
        }
        html::-webkit-scrollbar-thumb {
            background: #1e293b;
            border-radius: 999px;
        }
        html::-webkit-scrollbar-thumb:hover {
            background: var(--cyan);
        }

        /* Container background & text overrides */
        .ptl-header-box, [data-id="hdr_root"] {
            background-color: var(--hdr-bg) !important;
            border-bottom: 1px solid var(--line) !important;
            position: sticky;
            top: 0;
            z-index: 1000;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            transition: background-color 0.25s ease, border-color 0.25s ease;
        }
        .ptl-hero-box, [data-id="hero_root"] {
            background: var(--bg-hero) !important;
            transition: background 0.25s ease;
        }
        [data-id="tools_root"] {
            background-color: var(--bg) !important;
            transition: background-color 0.25s ease;
        }
        [data-id="footer_root"] {
            background-color: var(--footer-bg) !important;
            color: var(--footer-fg) !important;
            transition: background-color 0.25s ease;
        }

        /* Titles and text */
        [data-id="hero_root"] h1, [data-id="tools_root"] h2, [data-id="footer_root"] h4 {
            color: var(--fg-title) !important;
        }
        [data-id="hero_root"] p, [data-id="footer_root"] p, [data-id="footer_root"] li a {
            color: var(--muted) !important;
        }

        /* Header Reference Styles (Unified Blue) */
        .header-logo-squircle {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: linear-gradient(135deg, #00a8ff, #2563eb);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff !important;
            font-weight: 900;
            font-size: 20px;
            box-shadow: 0 4px 14px rgba(0, 168, 255, 0.4);
            flex-shrink: 0;
            transition: transform 0.2s ease;
        }
        .header-logo-squircle:hover {
            transform: scale(1.05);
        }

        .header-brand-title {
            font-size: 1.35rem;
            font-weight: 800;
            letter-spacing: -0.025em;
            line-height: 1;
            color: var(--fg-title) !important;
            display: inline-flex;
            align-items: center;
        }
        .header-brand-title strong {
            font-weight: 800;
            color: var(--fg-title) !important;
        }
        .header-brand-title .brand-accent {
            color: var(--cyan) !important;
            font-weight: 800;
        }

        /* Pill buttons in header (Unified Blue) */
        .header-pill-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            height: 38px;
            padding: 0 16px;
            border-radius: 999px;
            font-size: 0.875rem;
            font-weight: 600;
            text-decoration: none;
            border: 1px solid rgba(0, 168, 255, 0.35);
            background: rgba(0, 168, 255, 0.05);
            color: var(--fg-title) !important;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            outline: none;
            font-family: inherit;
            box-sizing: border-box;
        }
        .header-pill-btn:hover {
            border-color: var(--cyan) !important;
            background: rgba(0, 168, 255, 0.12) !important;
            color: var(--cyan) !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(0, 168, 255, 0.2);
        }
        .header-pill-btn svg {
            flex-shrink: 0;
        }
        .header-pill-btn.header-pill-primary {
            background: linear-gradient(135deg, #00a8ff, #2563eb) !important;
            border-color: #00a8ff !important;
            color: #ffffff !important;
            box-shadow: 0 4px 14px rgba(0, 168, 255, 0.35);
        }
        .header-pill-btn.header-pill-primary:hover {
            background: linear-gradient(135deg, #38bdf8, #00a8ff) !important;
            box-shadow: 0 6px 20px rgba(0, 168, 255, 0.5);
            transform: translateY(-1px);
            color: #ffffff !important;
        }
        .header-pill-btn.nav-home {
            background: transparent !important;
            border-color: transparent !important;
            color: var(--muted) !important;
        }
        .header-pill-btn.nav-home:hover {
            border-color: rgba(0, 168, 255, 0.3) !important;
            background: rgba(0, 168, 255, 0.08) !important;
            color: var(--fg-title) !important;
        }

        /* Load more button hover */
        .pill-load-more:hover {
            border-color: var(--cyan) !important;
            background: rgba(0, 168, 255, 0.18) !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 168, 255, 0.25);
        }

        /* CTA buttons */
        .pill-p1 {
            background: var(--pill-p1-bg) !important;
            color: var(--pill-p1-fg) !important;
        }
        .pill-p2 {
            background: var(--pill-p2-bg) !important;
            border: 1px solid var(--line) !important;
            color: var(--fg) !important;
        }

        /* Search input */
        #q {
            background: var(--input-bg) !important;
            border: 1px solid var(--line) !important;
            color: var(--fg) !important;
        }
        #q:focus {
            border-color: var(--cyan) !important;
            box-shadow: 0 0 15px rgba(0, 168, 255, 0.25) !important;
        }

        /* Tool Cards */
        .grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }
        @media (max-width: 1023px) {
            .grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 640px) {
            .grid {
                grid-template-columns: 1fr;
            }
        }

        .card {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 14px;
            min-height: 200px;
            padding: 22px;
            border-radius: var(--r);
            background: var(--card-bg) !important;
            border: 1px solid var(--card-border) !important;
            text-decoration: none;
            color: var(--fg) !important;
            transition: transform .25s, border-color .25s, box-shadow .25s;
            box-sizing: border-box;
            cursor: pointer;
        }
        .card:hover {
            transform: translateY(-4px);
            border-color: var(--cyan) !important;
            box-shadow: 0 0 0 1px rgba(0, 168, 255, .35), 0 12px 32px rgba(0, 168, 255, .14);
        }
        .badge {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            display: grid;
            place-items: center;
            color: var(--cyan) !important;
            background: rgba(0, 168, 255, .1);
            border: 1px solid rgba(0, 168, 255, .35);
            box-shadow: 0 0 14px rgba(0, 168, 255, .18);
            transition: transform 0.2s ease, background 0.2s ease;
        }
        .card:hover .badge {
            transform: scale(1.06);
            background: rgba(0, 168, 255, .2);
        }
        .card h3 {
            font-size: 1.06rem;
            font-weight: 700;
            color: var(--fg-title) !important;
            margin: 0;
            line-height: 1.3;
        }
        .card p {
            color: var(--muted) !important;
            font-size: .9rem;
            flex: 1;
            margin: 0;
            line-height: 1.5;
        }
        .arrow {
            align-self: flex-end;
            width: 20px;
            height: 20px;
            color: var(--cyan) !important;
            transition: transform .25s;
        }
        .card:hover .arrow {
            transform: translateX(6px);
        }

        /* Filter buttons */
        .filters {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .filters .f {
            height: 36px;
            padding: 0 16px;
            border-radius: 999px;
            border: 1px solid var(--line) !important;
            background: transparent !important;
            color: var(--muted) !important;
            font: 500 .88rem inherit;
            cursor: pointer;
            transition: all 0.2s;
        }
        .filters .f:hover {
            color: var(--fg-title) !important;
            border-color: var(--cyan) !important;
        }
        .filters .f.active, .filters .f[aria-pressed="true"] {
            background: var(--blue) !important;
            border-color: var(--blue) !important;
            color: #ffffff !important;
        }

        /* Modal Overlay */
        .gpt-modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(10, 13, 20, 0.88);
            backdrop-filter: blur(8px);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
        }
        .gpt-modal-overlay.active {
            display: flex;
        }
        .gpt-modal-card {
            background: #0f172a;
            border: 1px solid #1e293b;
            border-radius: 20px;
            max-width: 500px;
            width: 100%;
            padding: 32px;
            position: relative;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 168, 255, 0.2);
            box-sizing: border-box;
        }
        .gpt-modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(30, 41, 59, 0.8);
            border: 1px solid #334155;
            color: #94a3b8;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
        }
        .gpt-modal-close:hover {
            color: #fff;
            border-color: #00a8ff;
        }