
        :root {
            --color-brand-50: #eef2ff;
            --color-brand-100: #e0e7ff;
            --color-brand-200: #c7d2fe;
            --color-brand-300: #a5b4fc;
            --color-brand-400: #818cf8;
            --color-brand-500: #6366f1;
            --color-brand-600: #4f46e5;
            --color-brand-700: #4338ca;
            --color-brand-800: #3730a3;
            --color-brand-900: #312e81;
        }
        [data-theme-color="emerald"] {
            --color-brand-50: #ecfdf5; --color-brand-100: #d1fae5; --color-brand-200: #a7f3d0;
            --color-brand-300: #6ee7b7; --color-brand-400: #34d399; --color-brand-500: #10b981;
            --color-brand-600: #059669; --color-brand-700: #047857; --color-brand-800: #065f46; --color-brand-900: #064e3b;
        }
        [data-theme-color="cyan"] {
            --color-brand-50: #ecfeff; --color-brand-100: #cffafe; --color-brand-200: #a5f3fc;
            --color-brand-300: #67e8f9; --color-brand-400: #22d3ee; --color-brand-500: #06b6d4;
            --color-brand-600: #0891b2; --color-brand-700: #0e7490; --color-brand-800: #155e75; --color-brand-900: #164e63;
        }
        [data-theme-color="violet"] {
            --color-brand-50: #f5f3ff; --color-brand-100: #ede9fe; --color-brand-200: #ddd6fe;
            --color-brand-300: #c4b5fd; --color-brand-400: #a78bfa; --color-brand-500: #8b5cf6;
            --color-brand-600: #7c3aed; --color-brand-700: #6d28d9; --color-brand-800: #5b21b6; --color-brand-900: #4c1d95;
        }

        html[lang="en"] body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; }
        html[lang="fa"] body { font-family: 'Vazirmatn', Tahoma, sans-serif; letter-spacing: -0.015em; }
        html[lang="ku"] body { font-family: 'Noto Kufi Arabic', 'Noto Sans Arabic', 'Rabar', 'Vazirmatn', Tahoma, sans-serif; letter-spacing: -0.01em; word-spacing: 0.04em; }

        .grid-bg-dark {
            background-size: 40px 40px;
            background-image: linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
        }
        .grid-bg-light {
            background-size: 40px 40px;
            background-image: linear-gradient(to right, rgba(15,23,42,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,23,42,.05) 1px, transparent 1px);
        }
        .glass-card-dark {
            background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
            backdrop-filter: blur(18px);
            border: 1px solid rgba(255,255,255,.08);
        }
        .glass-card-light {
            background: rgba(255,255,255,.88);
            backdrop-filter: blur(18px);
            border: 1px solid rgba(226,232,240,.92);
        }
        .pro-editor {
            min-height: 230px;
            max-height: 340px;
            overflow-y: auto;
            outline: none;
            line-height: 1.9;
        }
        .task-action[disabled], .btn-loading[disabled] {
            opacity: .65;
            pointer-events: none;
        }
        .task-action.busy {
            transform: scale(.98);
        }
        .json-tree ul { padding-left: 18px; margin: 2px 0; list-style: none; border-left: 1px dashed rgba(129, 140, 248, 0.22); }
        .json-tree li { margin: 3px 0; position: relative; }
        .json-key { color: #f472b6; font-weight: 700; }
        .json-string { color: #34d399; }
        .json-number { color: #60a5fa; }
        .json-boolean { color: #fbbf24; }
        .json-null { color: #cbd5e1; }
        .json-toggle { cursor: pointer; user-select: none; color: #a5b4fc; font-weight: bold; margin-right: 4px; display: inline-block; width: 14px; text-align: center; }
        .tour-highlight {
            outline: 3px solid rgba(99,102,241,.85);
            outline-offset: 5px;
            border-radius: 18px;
        }
        .tour-shade-visible { display: block !important; }
        .guide-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
        .guide-card:hover { transform: translateY(-3px); border-color: rgba(99,102,241,.30); box-shadow: 0 18px 40px -28px rgba(15,23,42,.45); }
        .toast-enter { animation: toastin .35s ease; }
        @keyframes toastin {
            from { opacity: 0; transform: translateY(12px) scale(.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        .loader-ring {
            width: 62px;
            height: 62px;
            border-radius: 9999px;
            border: 4px solid rgba(255,255,255,.15);
            border-top-color: var(--color-brand-400);
            animation: spin 1s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .shimmer {
            background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,0) 100%);
            background-size: 200% 100%;
            animation: shimmer 1.4s infinite;
        }
        @keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
    
.dark .glass-card-light{
            background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
            backdrop-filter: blur(18px);
            border: 1px solid rgba(255,255,255,.08);
        }

.dark .grid-bg-light{
            background-size: 40px 40px;
            background-image: linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
        }
