        /* ===== QR TOOL THEME INTEGRATION ===== */
        /* Use CleanPDF master colors and typography while keeping the full original layout */
        :root {
            --qr-bg: #F8FAFC;
            --qr-surface: #ffffff;
            --qr-primary: #4299e1;
            --qr-primary-dark: #2b6cb0;
            --qr-accent: #06B6D4;
            --qr-success: #10B981;
            --qr-text: #2d3748;
            --qr-text-soft: #64748b;
            --qr-border: #e2e8f0;
            --qr-shadow: 0 4px 6px rgba(0,0,0,0.07);
            --qr-radius: 12px;
        }

        .qrpage {
            background: var(--qr-bg);
            color: var(--qr-text);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        .qrpage .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* headings */
        .qrpage h1, .qrpage h2, .qrpage h3, .qrpage h4 {
            color: var(--qr-text);
            font-weight: 700;
            line-height: 1.2;
        }
        .qrpage h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 0.5em; }
        .qrpage h2 { font-size: 1.5rem; margin: 1.5em 0 0.75em; }
        .qrpage h3 { font-size: 1.15rem; margin: 1.2em 0 0.5em; }

        /* hero */
        .qr-hero {
            text-align: center;
            padding: 2rem 0;
        }
        .qr-hero p {
            color: var(--qr-text-soft);
            max-width: 600px;
            margin: 0 auto 1.5rem;
        }

        /* trust row */
        .trust-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            margin: 1.5rem 0;
        }
        .trust-chip {
            display: flex;
            align-items: center;
            gap: 6px;
            background: white;
            border: 1px solid var(--qr-border);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--qr-text-soft);
        }
        .trust-chip svg { width: 14px; height: 14px; color: var(--qr-success); }

        /* tool shell card (glass card from original) */
        .qr-tool-shell {
            background: white;
            border: 1px solid var(--qr-border);
            border-radius: 16px;
            box-shadow: var(--qr-shadow);
            padding: 20px;
            margin: 1.5rem 0;
            display: grid;
            grid-template-columns: 220px 1fr 320px;
            gap: 20px;
            align-items: start;
        }
        @media (max-width: 1000px) { .qr-tool-shell { grid-template-columns: 1fr; } }

        /* category rail */
        .qr-cat-rail {
            max-height: 550px;
            overflow-y: auto;
        }
        .qr-cat-rail::-webkit-scrollbar { width: 4px; }
        .qr-cat-rail::-webkit-scrollbar-thumb { background: var(--qr-border); border-radius: 4px; }
        .qr-cat-group {
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--qr-text-soft);
            margin: 12px 0 4px;
            padding-left: 8px;
        }
        .qr-cat-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            text-align: left;
            padding: 8px 10px;
            border-radius: 8px;
            border: none;
            background: transparent;
            color: var(--qr-text-soft);
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            margin-bottom: 2px;
            transition: background 0.15s;
        }
        .qr-cat-btn:hover { background: #f1f5f9; }
        .qr-cat-btn.active {
            background: var(--qr-primary);
            color: white;
            font-weight: 600;
        }
        .qr-cat-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

        /* mobile category select */
        .qr-cat-mobile {
            display: none;
            width: 100%;
            padding: 10px;
            border: 1px solid var(--qr-border);
            border-radius: 8px;
            font-size: 0.9rem;
            background: white;
            margin-bottom: 16px;
        }
        @media (max-width: 1000px) {
            .qr-cat-rail { display: none; }
            .qr-cat-mobile { display: block; }
        }

        /* form panel */
        .qr-form-panel h3 { margin: 0 0 12px; font-size: 1.1rem; }
        .qr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .qr-field-row.single { grid-template-columns: 1fr; }
        .qr-field {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .qr-field label {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--qr-text-soft);
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }
        .qr-field input, .qr-field textarea, .qr-field select {
            padding: 8px 12px;
            border: 1px solid var(--qr-border);
            border-radius: 8px;
            font-size: 0.9rem;
            background: white;
            transition: border 0.15s;
        }
        .qr-field input:focus, .qr-field textarea:focus, .qr-field select:focus {
            border-color: var(--qr-primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(66,153,225,0.15);
        }
        .qr-field textarea { resize: vertical; min-height: 70px; }
        .qr-field-check { display: flex; align-items: center; gap: 6px; flex-direction: row; }
        .qr-field-check input { width: auto; }
        .qr-field-check label { font-size: 0.85rem; text-transform: none; font-weight: 500; }

        /* tabs */
        .qr-tabs {
            display: flex;
            gap: 4px;
            background: #f1f5f9;
            padding: 3px;
            border-radius: 10px;
            margin-bottom: 16px;
        }
        .qr-tab-btn {
            flex: 1;
            padding: 8px;
            border: none;
            background: transparent;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--qr-text-soft);
            cursor: pointer;
        }
        .qr-tab-btn.active { background: white; color: var(--qr-primary); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

        /* customization scroll */
        .qr-customize { max-height: 400px; overflow-y: auto; }
        .qr-cust-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 6px 0;
            border-bottom: 1px solid var(--qr-border);
            gap: 10px;
        }
        .qr-cust-row:last-child { border-bottom: none; }
        .qr-cust-row label { font-size: 0.8rem; font-weight: 600; color: var(--qr-text); }
        .qr-color-swatch { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--qr-border); padding: 0; cursor: pointer; }
        .qr-segmented {
            display: flex;
            background: #f1f5f9;
            border-radius: 8px;
            padding: 2px;
            gap: 2px;
        }
        .qr-segmented button {
            border: none;
            background: transparent;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--qr-text-soft);
            cursor: pointer;
        }
        .qr-segmented button.active { background: var(--qr-primary); color: white; }
        .qr-shape-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
        .qr-shape-opt {
            border: 1px solid var(--qr-border);
            border-radius: 8px;
            padding: 8px 4px;
            background: white;
            cursor: pointer;
            text-align: center;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--qr-text-soft);
        }
        .qr-shape-opt.active { border-color: var(--qr-primary); color: var(--qr-primary); background: #ebf8ff; }

        /* preview panel */
        .qr-preview {
            text-align: center;
            background: #f8fafc;
            border: 1px solid var(--qr-border);
            border-radius: 16px;
            padding: 20px;
            position: sticky;
            top: 20px;
        }
        .qr-preview-frame {
            width: 100%;
            aspect-ratio: 1/1;
            max-width: 240px;
            margin: 0 auto 16px;
            background: white;
            border: 1px dashed var(--qr-border);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .qr-preview-frame canvas, .qr-preview-frame img { max-width: 100%; max-height: 100%; }
        .qr-dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
        .qr-util-row { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
        .qr-util-row button { background: none; border: none; color: var(--qr-text-soft); font-size: 0.8rem; font-weight: 500; cursor: pointer; }

        /* scanner */
        .qr-scanner-card {
            background: white;
            border: 1px solid var(--qr-border);
            border-radius: 16px;
            padding: 24px;
            margin: 2rem 0;
        }
        .qr-scan-drop {
            border: 2px dashed var(--qr-border);
            border-radius: 12px;
            padding: 28px;
            text-align: center;
            cursor: pointer;
            transition: border 0.15s;
        }
        .qr-scan-drop:hover { border-color: var(--qr-primary); background: #f8fafc; }

        /* content sections */
        .content-section { margin: 2rem 0; }
        .feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 20px; }
        .feature-card {
            background: white;
            border: 1px solid var(--qr-border);
            border-radius: 12px;
            padding: 16px;
            box-shadow: var(--qr-shadow);
            transition: transform 0.15s;
        }
        .feature-card:hover { transform: translateY(-2px); }
        .feature-card strong { display: block; margin-bottom: 4px; color: var(--qr-primary); }

        /* FAQ */
        .faq-item { border-bottom: 1px solid var(--qr-border); }
        .faq-q {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            background: none;
            border: none;
            text-align: left;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
        }
        .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
        .faq-a p { padding: 0 0 14px; color: var(--qr-text-soft); font-size: 0.9rem; }
        .faq-item.open .faq-a { max-height: 500px; }

        /* related tools */
        .related-tools-section { margin: 2rem 0; }

        /* preserve original toast, badge, etc. */
        .live-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--qr-success); margin-bottom: 10px; }
        .live-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--qr-success); animation: pulse-dot 1.6s infinite; }
        @keyframes pulse-dot { 0%,100%{opacity:1}50%{opacity:.3} }