body {
            background-color: #080c14 !important;
            color: #e2e8f0;
            font-family: 'Plus Jakarta Sans', sans-serif;
            min-height: 100vh;
        }

        .feature-area {
            padding-top: 130px !important;
            padding-bottom: 70px !important;
        }

        @media (max-width: 991px) {
            .feature-area {
                padding-top: 25px !important;
                padding-bottom: 40px !important;
            }
        }

        .cat-subtitle {
            font-size: 11.5px;
            letter-spacing: 1.5px;
            font-weight: 700;
            color: var(--main-color-one, #00d285);
            text-transform: uppercase;
            display: inline-block;
            margin-bottom: 4px;
        }

        .page-main-title {
            font-size: 28px;
            font-weight: 800;
            color: #ffffff !important;
            margin: 0;
            line-height: 1.2;
        }

        /* Workspace Bounded SaaS Layout */
        .sql-workspace-row {
            margin-bottom: 0;
        }

        .code-card {
            background: #0d131f;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
        }

        @media (min-width: 1200px) {
            .sql-workspace-row {
                height: 740px;
            }

            .sql-workspace-row > [class*="col-"] {
                height: 100%;
            }

            .code-card {
                height: 100% !important;
                margin-bottom: 0 !important;
            }

            .sql-textarea {
                flex: 1 1 0 !important;
                min-height: 0 !important;
                height: 100% !important;
            }
        }

        @media (max-width: 1199px) {
            .sql-textarea {
                min-height: 380px !important;
                height: 380px !important;
            }
        }

        .sql-textarea {
            width: 100%;
            background: #050811 !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            border-radius: 12px !important;
            color: #f1f5f9 !important;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            padding: 14px;
            resize: none;
            outline: none;
            line-height: 1.6;
        }

        .sql-textarea:focus {
            border-color: #00d285 !important;
            box-shadow: 0 0 0 3px rgba(0, 210, 133, 0.15) !important;
        }

        .sql-textarea::-webkit-scrollbar {
            width: 6px;
        }
        .sql-textarea::-webkit-scrollbar-track {
            background: #050811;
        }
        .sql-textarea::-webkit-scrollbar-thumb {
            background: rgba(0, 210, 133, 0.25);
            border-radius: 3px;
        }
        .sql-textarea::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 210, 133, 0.5);
        }

        /* Lang Output Tabs */
        .output-tab-pill {
            background: #050811;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 3px;
            display: inline-flex;
            gap: 3px;
            overflow-x: auto;
            max-width: 100%;
        }

        .output-tab-btn {
            background: transparent;
            border: none;
            color: #94a3b8;
            font-size: 11.5px;
            font-weight: 700;
            height: 32px;
            padding: 0 10px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }

        .output-tab-btn:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.04);
        }

        .output-tab-btn.active {
            background: #00d285;
            color: #0b1118;
            box-shadow: 0 2px 10px rgba(0, 210, 133, 0.3);
        }

        /* Presets Chips */
        .preset-sql-chip {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #cbd5e1;
            font-size: 11.5px;
            font-weight: 600;
            padding: 5px 10px;
            border-radius: 6px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.18s ease;
            white-space: nowrap;
        }

        .preset-sql-chip:hover {
            background: rgba(0, 210, 133, 0.12);
            border-color: rgba(0, 210, 133, 0.4);
            color: #ffffff;
            transform: translateY(-1px);
        }

        /* Form Sub-Toggle (Bootstrap vs Tailwind) */
        .form-style-toggle {
            display: none;
            background: #0f172a;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            padding: 2px;
            gap: 2px;
        }

        .form-style-toggle.visible {
            display: inline-flex;
        }

        .form-style-btn {
            background: transparent;
            border: none;
            color: #94a3b8;
            font-size: 10.5px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .form-style-btn.active {
            background: rgba(0, 210, 133, 0.2);
            color: #00d285;
        }

        /* Action Buttons */
        .btn-action-glow {
            background: linear-gradient(135deg, #00d285 0%, #059669 100%);
            color: #0b1118 !important;
            font-weight: 800;
            font-size: 13px;
            height: 36px;
            padding: 0 16px;
            white-space: nowrap;
            border: none;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-action-glow:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(0, 210, 133, 0.35);
        }

        .btn-action-secondary {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #f1f5f9;
            font-weight: 600;
            font-size: 12px;
            height: 36px;
            padding: 0 12px;
            white-space: nowrap;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-action-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
            border-color: rgba(255, 255, 255, 0.2);
        }

        /* Badge Status Seguro (Solución al Bloque Verde Anómalo) */
        .badge-status-secure {
            background: rgba(0, 210, 133, 0.1);
            border: 1px solid rgba(0, 210, 133, 0.3);
            color: #00d285;
            font-size: 11px;
            font-weight: 700;
            padding: 5px 12px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            letter-spacing: 0.3px;
        }


        /* Contenedor Semántico de Salida de Código */
        .sql-code-container {
            width: 100%;
            flex: 1 1 0;
            min-height: 380px;
            height: 100%;
            position: relative;
            background: #050811;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .sql-code-pre {
            margin: 0;
            padding: 16px;
            flex: 1 1 0;
            height: 100%;
            overflow-x: auto;
            overflow-y: auto;
            background: transparent;
            border: none;
            font-family: 'JetBrains Mono', 'Fira Code', monospace;
            font-size: 13px;
            line-height: 1.6;
            tab-size: 4;
            -moz-tab-size: 4;
            white-space: pre;
            color: #f1f5f9;
            box-sizing: border-box;
        }

        .sql-code-pre::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        .sql-code-pre::-webkit-scrollbar-track {
            background: #050811;
        }
        .sql-code-pre::-webkit-scrollbar-thumb {
            background: rgba(0, 210, 133, 0.25);
            border-radius: 4px;
        }
        .sql-code-pre::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 210, 133, 0.5);
        }

        /* Modo Wrap con Hanging Indent exacto */
        .sql-code-pre.wrap-active {
            white-space: pre-wrap !important;
            word-break: break-word;
        }
        .sql-code-pre.wrap-active .code-line-row {
            display: flex;
            align-items: flex-start;
        }
        .sql-code-pre.wrap-active .code-line-indent {
            flex-shrink: 0;
            white-space: pre;
        }
        .sql-code-pre.wrap-active .code-line-body {
            flex: 1 1 0;
            min-width: 0;
            white-space: pre-wrap;
            word-break: break-word;
        }

        /* Syntax Highlighting Tokens */
        .tok-kw { color: #38bdf8; font-weight: 600; }
        .tok-type { color: #fbbf24; font-weight: 500; }
        .tok-str { color: #34d399; }
        .tok-comm { color: #64748b; font-style: italic; }
        .tok-num { color: #f472b6; }
        .tok-sql { color: #a78bfa; font-weight: 600; }
        .tok-fn { color: #60a5fa; }

        .btn-action-secondary.active {
            background: rgba(0, 210, 133, 0.2);
            color: #00d285;
            border-color: rgba(0, 210, 133, 0.4);
        }

        @media (max-width: 767px) {
            .code-card {
                padding: 14px !important;
            }
            .output-tab-pill {
                width: 100%;
                overflow-x: auto;
            }
            .sql-code-container {
                min-height: 320px;
            }
        }