
        /* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background: #f8fafc;
            color: #0f172a;
            height: 100vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: background 0.3s, color 0.3s;
            scroll-behavior: smooth;
        }

        body.dark-theme {
            background: #0f172a;
            color: #e2e8f0;
        }

        /* ═══════════════════════════════════════════════
   UPLOAD SCREEN
   ═══════════════════════════════════════════════ */
        #upload-screen {
            position: fixed;
            top: 60px;
            bottom: 0;
            left: 0;
            right: 0;
            background: #f8fafc;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 5000;
            transition: opacity .3s, background 0.3s;
        }

        body.dark-theme #upload-screen {
            background: #0f172a;
        }

        #upload-screen.hidden {
            display: none;
        }

        .home-container {
            width: 100%;
            height: 100%;
            overflow-y: auto;
            background: #f8fafc;
        }

        body.dark-theme .home-container {
            background: #0f172a;
        }

        .upload-content {
            text-align: center;
            max-width: 800px;
            padding: 20px;
        }

        .upload-title {
            font-size: 40px;
            font-weight: 700;
            margin-bottom: 16px;
            color: #1e293b;
            letter-spacing: -0.5px;
        }

        body.dark-theme .upload-title {
            color: #f8fafc;
        }

        .upload-desc {
            font-size: 18px;
            color: #64748b;
            margin-bottom: 40px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }

        body.dark-theme .upload-desc {
            color: #94a3b8;
        }

        .upload-box {
            padding: 80px 100px;
            border: 2px dashed #cbd5e1;
            border-radius: 24px;
            cursor: pointer;
            transition: all .3s;
            background: #ffffff;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
            margin: 0 auto;
        }

        .btn-primary-custom {
            background: #ef4444;
            color: white;
            border: none;
            padding: 14px 40px;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
            transition: all 0.3s ease;
        }

        .btn-primary-custom:hover {
            background: #dc2626;
            transform: translateY(-2px);
            box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.4);
        }

        .navbar-btn-custom {
            background: #ef4444;
            color: white;
            padding: 8px 16px;
            border-radius: 12px;
            font-weight: 700;
            display: flex;
            align-items: center;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
            transition: all 0.3s ease;
        }

        .navbar-btn-custom:hover {
            background: #dc2626;
            transform: translateY(-1px);
            box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
        }

        /* ═══════ MOBILE RESPONSIVE ═══════ */
        @media (max-width: 768px) {
            .navbar {
                padding: 12px 16px;
            }

            .nav-brand {
                font-size: 18px !important;
            }

            .navbar-btn-custom span {
                display: none;
            }

            .navbar-btn-custom {
                padding: 8px 12px;
            }

            .navbar-btn-custom div {
                margin-right: 0 !important;
            }

            #upload-screen {
                top: 56px;
            }

            .hero-grid {
                grid-template-columns: 1fr !important;
                gap: 40px !important;
                text-align: center;
                padding-top: 20px !important;
            }

            .hero-content {
                display: flex;
                flex-direction: column;
                align-items: center;
            }

            .hero-content h1 {
                font-size: 32px !important;
                margin-bottom: 16px !important;
            }

            .hero-content p {
                font-size: 16px !important;
                margin-bottom: 24px !important;
                max-width: 100% !important;
            }

            .hero-features {
                display: flex !important;
                flex-direction: column !important;
                align-items: flex-start;
                gap: 12px !important;
                width: 100%;
                max-width: 300px;
            }

            .upload-box {
                padding: 40px 20px !important;
            }

            .upload-box h2 {
                font-size: 20px !important;
            }

            .how-to-grid {
                grid-template-columns: 1fr !important;
                gap: 30px !important;
            }

            .how-to-item {
                max-width: 300px;
                margin: 0 auto;
            }

            footer div {
                flex-direction: column;
                gap: 10px !important;
            }
        }

        .upload-box:hover {
            border-color: #ef4444;
            background: #ffffff;
            transform: translateY(-4px);
            box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.15);
        }

        body.dark-theme .upload-box:hover {
            background: #1e3a5f;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        }

        .upload-box svg {
            width: 80px;
            height: 80px;
            fill: #ef4444;
            margin-bottom: 24px;
        }

        .upload-box h2 {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 12px;
            color: #1e293b;
        }

        body.dark-theme .upload-box h2 {
            color: #f1f5f9;
        }

        .upload-box p {
            color: #94a3b8;
            font-size: 15px;
        }

        #file-input {
            display: none;
        }

        /* ═══════════════════════════════════════════════
   TOOLBAR
   ═══════════════════════════════════════════════ */
        .navbar {
            background: var(--bg-nav, #ffffff);
            border-bottom: 1px solid var(--border-color, #e2e8f0);
            padding: 12px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            z-index: 10000;
        }

        body.dark-theme .navbar {
            --bg-nav: #1e293b;
            --border-color: #334155;
            --text-main: #f8fafc;
        }

        #toolbar {
            display: none;
            background: #ffffff;
            border-bottom: 1px solid #e2e8f0;
            padding: 8px 16px;
            height: auto;
            min-height: 56px;
            flex-wrap: wrap;
            overflow: visible;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex-shrink: 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
            transition: background 0.3s, border-color 0.3s;
        }

        @media (max-width: 768px) {
            #toolbar {
                justify-content: flex-start;
            }
        }

        #toolbar::-webkit-scrollbar {
            display: none;
        }

        body.dark-theme #toolbar {
            background: #1e293b;
            border-bottom: 1px solid #334155;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        #toolbar.active {
            display: flex;
        }

        .toolbar-group {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 0 12px;
            border-right: 1px solid #e2e8f0;
            height: 40px;
            flex-shrink: 0;
        }

        body.dark-theme .toolbar-group {
            border-right-color: #334155;
        }

        .toolbar-group:last-child {
            border-right: none;
        }

        .tool-btn {
            background: transparent;
            border: none;
            color: #64748b;
            padding: 8px;
            width: 36px;
            height: 36px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            position: relative;
            transition: all .2s;
            flex-shrink: 0;
        }

        /* Generic Global Tooltip */
        #global-tooltip {
            position: fixed;
            display: none;
            background: #1e293b;
            color: #ffffff;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 11px;
            z-index: 99999;
            pointer-events: none;
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            white-space: nowrap;
            transform: translateX(-50%);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        body.dark-theme #global-tooltip {
            background: #f8fafc;
            color: #0f172a;
        }

        body.dark-theme .tool-btn {
            color: #94a3b8;
        }

        .tool-btn:hover {
            background: #f1f5f9;
            color: #0f172a;
        }

        body.dark-theme .tool-btn:hover {
            background: #334155;
            color: #e2e8f0;
        }

        .tool-btn.active {
            background: #eff6ff;
            color: #2563eb;
        }

        body.dark-theme .tool-btn.active {
            background: #1e3a5f;
            color: #60a5fa;
        }

        .tool-btn.primary {
            background: #2563eb;
            color: white;
            font-weight: 600;
        }

        .tool-btn.primary:hover {
            background: #1d4ed8;
            color: white;
            box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
        }

        .tool-btn.danger {
            background: #ef4444;
            color: white;
        }

        .tool-btn.danger:hover {
            background: #dc2626;
            color: white;
            box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
        }

        .tool-btn i,
        .nav-btn i,
        #sidebar-toggle i,
        #btn-add-page i,
        .toolbar-label i {
            font-size: 15px;
            color: #ef4444 !important;
            display: inline-block;
            transition: color 0.15s;
        }

        .thumb-act i {
            font-size: 15px;
            color: #000000 !important;
            display: inline-block;
            transition: color 0.15s;
        }

        .tool-btn:hover i,
        .nav-btn:hover i,
        .thumb-act:hover i,
        #sidebar-toggle:hover i,
        #btn-add-page:hover i,
        .toolbar-label:hover i {
            opacity: 0.8;
        }

        .tool-btn.primary i,
        .tool-btn.danger i {
            color: white !important;
        }

        /* Shapes Dropdown Grid */
        #shapes-wrapper {
            position: relative;
        }

        #shapes-grid {
            display: none;
            position: fixed;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 8px;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            margin-top: 8px;
        }

        body.dark-theme #shapes-grid {
            background: #1e293b;
            border-color: #334155;
        }

        #shapes-grid.open {
            display: grid;
        }

        #shapes-grid .tool-btn {
            width: 32px;
            height: 32px;
        }

        /* Toolbar inputs */
        .toolbar-select,
        .toolbar-input {
            background: #ffffff;
            color: #0f172a;
            border: 1px solid #cbd5e1;
            padding: 6px 10px;
            border-radius: 6px;
            font-size: 13px;
            font-family: inherit;
            transition: border-color 0.2s;
        }

        body.dark-theme .toolbar-select,
        body.dark-theme .toolbar-input {
            background: #0f172a;
            color: #e2e8f0;
            border-color: #475569;
        }

        .toolbar-select:focus,
        .toolbar-input:focus {
            outline: none;
            border-color: #3b82f6;
        }

        .toolbar-input {
            width: 55px;
            text-align: center;
        }

        .toolbar-color {
            width: 30px;
            height: 30px;
            border: 2px solid #cbd5e1;
            border-radius: 50%;
            /* Rounded color picker */
            cursor: pointer;
            padding: 0;
            background: none;
            overflow: hidden;
            transition: border-color 0.2s;
        }

        body.dark-theme .toolbar-color {
            border-color: #475569;
        }

        .toolbar-color::-webkit-color-swatch-wrapper {
            padding: 0;
        }

        .toolbar-color::-webkit-color-swatch {
            border: none;
            border-radius: 50%;
        }

        .toolbar-label {
            font-size: 11px;
            color: #64748b;
            margin-right: 4px;
        }

        /* ═══════════════════════════════════════════════
   PAGE NAVIGATION BAR (FLOATING)
   ═══════════════════════════════════════════════ */
        #page-nav {
            display: none;
            position: absolute;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%);
            background: #ffffff;
            padding: 8px 20px;
            border-radius: 40px;
            align-items: center;
            justify-content: center;
            gap: 16px;
            z-index: 90;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
            transition: all 0.3s;
            width: fit-content;
        }

        body.dark-theme #page-nav {
            background: #334155;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        }

        #page-nav.active {
            display: flex;
        }

        #page-nav .nav-btn {
            background: transparent;
            border: none;
            color: #64748b;
            padding: 6px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all .2s;
        }

        #page-nav .nav-btn:hover:not(:disabled) {
            background: #f1f5f9;
            color: #0f172a;
        }

        #page-nav .nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        #page-info {
            font-size: 14px;
            color: #64748b;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        #page-input {
            width: 36px;
            text-align: center;
            background: #ffffff;
            border: 1px solid #cbd5e1;
            color: #0f172a;
            border-radius: 4px;
            padding: 2px;
            font-size: 13px;
            font-weight: 600;
        }

        #zoom-display {
            font-size: 13px;
            color: #64748b;
            font-weight: 500;
            min-width: 45px;
            text-align: center;
        }

        .nav-divider {
            width: 1px;
            height: 20px;
            background: #e2e8f0;
            margin: 0 4px;
        }

        @media (max-width: 768px) {
            #page-nav {
                bottom: 12px;
                padding: 6px 12px;
                gap: 8px;
            }
        }

        /* ═══════════════════════════════════════════════
   MAIN WORKSPACE
   ═══════════════════════════════════════════════ */
        #workspace {
            display: none;
            flex: 1;
            overflow: auto;
            background: #f1f5f9;
            position: relative;
            transition: background 0.3s;
        }

        body.dark-theme #workspace {
            background: #0f172a;
        }

        #workspace.active {
            display: flex;
        }

        /* Thumbnails Sidebar */
        #sidebar-toggle {
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 48px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-left: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 50;
            border-radius: 0 8px 8px 0;
            box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
            color: #64748b;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body.dark-theme #sidebar-toggle {
            background: #1e293b;
            border-color: #334155;
            color: #94a3b8;
        }

        #thumbnails {
            width: 0;
            min-width: 0;
            padding: 0;
            border-right: none;
            overflow: hidden;
            background: #ffffff;
            display: flex;
            flex-direction: column;
            gap: 12px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        #thumbnails.open {
            width: 160px;
            min-width: 160px;
            padding: 16px;
            border-right: 1px solid #e2e8f0;
            overflow-y: auto;
        }

        body.dark-theme #thumbnails {
            background: #1e293b;
            border-right-color: #334155;
        }

        .thumb-item {
            cursor: pointer;
            border: 2px solid transparent;
            border-radius: 6px;
            overflow: hidden;
            transition: all .15s;
            background: white;
            position: relative;
        }

        .thumb-item:hover {
            border-color: #475569;
        }

        .thumb-item.active {
            border-color: #3b82f6;
            box-shadow: 0 0 10px rgba(59, 130, 246, .3);
        }

        .thumb-item canvas {
            width: 100%;
            display: block;
        }

        .thumb-num {
            position: absolute;
            top: 4px;
            right: 4px;
            background: rgba(0, 0, 0, .65);
            color: white;
            font-size: 10px;
            font-weight: 600;
            padding: 1px 6px;
            border-radius: 10px;
            pointer-events: none;
            z-index: 3;
        }

        /* ── Thumbnail action overlay ── */
        .thumb-actions {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.80));
            display: flex;
            justify-content: center;
            align-items: flex-end;
            gap: 5px;
            padding: 14px 6px 6px;
            opacity: 0;
            transition: opacity 0.18s;
            border-radius: 0 0 4px 4px;
            pointer-events: none;
            z-index: 4;
        }

        .thumb-item:hover .thumb-actions {
            opacity: 1;
            pointer-events: auto;
        }

        .thumb-act {
            background: rgba(255, 255, 255, 0.18);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            border: 1px solid rgba(255, 255, 255, 0.35);
            color: #fff;
            cursor: pointer;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            font-size: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
            flex-shrink: 0;
        }

        .thumb-act:hover {
            transform: scale(1.12);
        }

        .thumb-act.dup:hover {
            background: rgba(59, 130, 246, 0.90);
            border-color: #3b82f6;
        }

        .thumb-act.del:hover {
            background: rgba(239, 68, 68, 0.90);
            border-color: #ef4444;
        }

        /* ── Add Page button ── */
        #btn-add-page {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            width: calc(100% - 0px);
            padding: 9px 0;
            background: #f8fafc;
            border: 2px dashed #cbd5e1;
            border-radius: 8px;
            color: #64748b;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-family: 'Inter', sans-serif;
            position: sticky;
            bottom: 0;
            margin-top: 4px;
        }

        #btn-add-page:hover {
            background: #eff6ff;
            border-color: #3b82f6;
            color: #2563eb;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
        }

        body.dark-theme #btn-add-page {
            background: #1e293b;
            border-color: #334155;
            color: #64748b;
        }

        body.dark-theme #btn-add-page:hover {
            background: #1e3a5f;
            border-color: #3b82f6;
            color: #60a5fa;
        }

        /* Canvas Container */
        #canvas-container {
            flex: 1;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            overflow: auto;
            padding: 40px;
        }

        #canvas-wrapper {
            position: relative;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07),
                0 10px 40px rgba(0, 0, 0, 0.12),
                0 20px 60px rgba(0, 0, 0, 0.06);
            background: white;
            display: none;
            transition: box-shadow 0.3s;
            border-radius: 2px;
        }

        body.dark-theme #canvas-wrapper {
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        /* Prevent browser from softening the high-DPI canvas */
        #canvas-wrapper canvas {
            image-rendering: -webkit-optimize-contrast;
            /* Safari */
            image-rendering: crisp-edges;
            /* Firefox */
            image-rendering: pixelated;
            /* Chrome / Edge */
        }

        #pdf-render-canvas {
            display: none;
        }


        /* ═══════════════════════════════════════════════
   STATUS BAR
   ═══════════════════════════════════════════════ */
        #status-bar {
            display: none;
            background: #ffffff;
            border-top: 1px solid #e2e8f0;
            padding: 6px 20px;
            height: 32px;
            align-items: center;
            font-size: 12px;
            color: #64748b;
            gap: 24px;
            flex-shrink: 0;
            font-weight: 500;
            transition: background 0.3s, border-color 0.3s;
        }

        body.dark-theme #status-bar {
            background: #1e293b;
            border-top-color: #334155;
            color: #94a3b8;
        }

        #status-bar.active {
            display: flex;
        }

        #status-bar span {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* ═══════════════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════════════ */
        #loading-overlay {
            position: fixed;
            inset: 0;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            flex-direction: column;
            gap: 20px;
            transition: background 0.3s;
        }

        body.dark-theme #loading-overlay {
            background: rgba(15, 23, 42, 0.9);
        }

        #loading-overlay.active {
            display: flex;
        }

        .spinner {
            width: 48px;
            height: 48px;
            border: 4px solid #334155;
            border-top-color: #3b82f6;
            border-radius: 50%;
            animation: spin .8s linear infinite;
        }

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

        #loading-text {
            color: #94a3b8;
            font-size: 15px;
        }

        /* ═══════════════════════════════════════════════
   TOAST / NOTIFICATION
   ═══════════════════════════════════════════════ */
        .toast {
            position: fixed;
            bottom: 50px;
            left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: #1e293b;
            color: #e2e8f0;
            padding: 10px 24px;
            border-radius: 8px;
            font-size: 14px;
            z-index: 10001;
            opacity: 0;
            transition: all .3s;
            border: 1px solid #334155;
            box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
        }

        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .toast.success {
            border-color: #22c55e;
        }

        .toast.error {
            border-color: #ef4444;
        }

        /* ═══════════════════════════════════════════════
   TEXT HIGHLIGHT OVERLAYS
   ═══════════════════════════════════════════════ */
        .text-highlight {
            position: absolute;
            background: rgba(59, 130, 246, 0.1);
            cursor: text;
            transition: all .12s;
            z-index: 5;
            pointer-events: auto;
            border-radius: 2px;
        }

        .text-highlight:hover {
            background: rgba(59, 130, 246, .15);
            border-color: rgba(59, 130, 246, .7);
        }

        /* Eraser mode: red highlight on hover */
        .text-highlight.eraser-mode {
            cursor: cell;
            background: rgba(239, 68, 68, 0.1);
        }

        .text-highlight.eraser-mode:hover {
            background: rgba(239, 68, 68, .15);
            border-color: rgba(239, 68, 68, .7);
        }

        /* Scrollbar Styling */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #0f172a;
        }

        .text-highlight.image-mode {
            background: rgba(59, 130, 246, 0.15);
            cursor: move;
        }

        .text-highlight.image-mode:hover {
            background: rgba(59, 130, 246, 0.25);
            box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: #334155;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #475569;
        }

        /* Custom Color Pickers */
        .custom-cp {
            position: relative;
            display: flex;
        }

        .custom-cp-trigger {
            border: 2px solid transparent !important;
            box-shadow: 0 0 0 1px #cbd5e1 inset;
        }

        .custom-cp-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 8px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            width: max-content;
        }

        body.dark-theme .custom-cp-dropdown {
            background: #1e293b;
            border-color: #334155;
        }

        .custom-cp-dropdown.open {
            display: block;
        }

        .custom-cp-swatch-list {
            display: flex;
            gap: 8px;
        }

        .custom-cp-swatch {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
            transition: transform 0.1s;
        }

        .custom-cp-swatch:hover {
            transform: scale(1.1);
        }

        .custom-cp-swatch.custom-cp-add {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f1f5f9;
            color: #64748b;
            box-shadow: none;
            border: 1px dashed #cbd5e1;
        }

        .custom-cp-swatch.custom-cp-add:hover {
            background: #e2e8f0;
            color: #0f172a;
        }

        body.dark-theme .custom-cp-swatch.custom-cp-add {
            background: #334155;
            color: #94a3b8;
            border-color: #475569;
        }

        body.dark-theme .custom-cp-swatch.custom-cp-add:hover {
            background: #475569;
            color: #f8fafc;
        }

        .pickr .pcr-button {
            display: none;
        }

        body.editor-active .homepage-only {
            display: none !important;
        }
    

            @media (max-width: 968px) {
                .hero-grid {
                    grid-template-columns: 1fr !important;
                    gap: 40px !important;
                    text-align: center;
                }

                .hero-content h1 {
                    font-size: 40px !important;
                }

                .hero-content p {
                    margin: 0 auto 30px auto !important;
                }
            }
        

        .site-footer {
            background: var(--bg-nav, #ffffff);
            border-top: 1px solid var(--border-color, #e2e8f0);
            padding: 60px 24px;
            color: var(--text-muted, #64748b);
            flex-shrink: 0;
            z-index: 100;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 40px;
            text-align: left;
            margin-bottom: 40px;
        }

        .footer-brand-col {
            grid-column: span 2;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 20px;
            font-weight: 800;
            color: var(--text-main, #1e293b);
            margin-bottom: 20px;
        }

        .footer-logo i {
            color: #ef4444;
            font-size: 24px;
        }

        .footer-desc {
            font-size: 14px;
            line-height: 1.6;
            max-width: 300px;
        }

        .footer-title {
            color: var(--text-main, #1e293b);
            margin-bottom: 20px;
            font-size: 16px;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            font-size: 14px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .footer-links a {
            color: inherit;
            text-decoration: none;
            transition: color 0.2s;
        }

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

        .footer-bottom {
            border-top: 1px solid var(--border-color, #e2e8f0);
            padding-top: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
        }

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

        .social-links a {
            color: inherit;
            text-decoration: none;
            font-size: 18px;
            transition: color 0.2s;
        }

        .social-links a:hover {
            color: #3b82f6;
        }

        body.dark-theme footer {
            --bg-nav: #1e293b;
            --border-color: #334155;
            --text-muted: #94a3b8;
        }

        @media (max-width: 768px) {
            .footer-grid {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .footer-brand-col {
                grid-column: span 1;
            }

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