        /* Lingoloop AI Site Generator - Estilos CSS Premium */

        /* Importar fonte Inter */
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

        /* Reset e configurações globais */
        * {
            box-sizing: border-box;
        }

        #lingoloop-container {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-size: 12px;
            line-height: 1.4;
            color: #EEEEEE;
            background: #050b1a;
            overflow: hidden;
        }

        /* Container principal - Layout Flexbox */
        #lingoloop-container {
            display: flex;
            width: 100vw;
            max-width: 100vw;
            height: 100vh;
            background: #050b1a;
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        body.lingoloop-generator-active {
            overflow: hidden !important;
            margin: 0 !important;
            padding: 0 !important;
            background: #050b1a !important;
        }

        /* Toast exibido quando a geração continua em segundo plano */
        #lingoloop-background-toast {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: min(320px, calc(100vw - 32px));
            padding: 16px 18px;
            border-radius: 16px;
            background: rgba(5, 11, 26, 0.92);
            border: 1px solid rgba(74, 158, 255, 0.35);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
            color: #E9F2FF;
            font-size: 13px;
            line-height: 1.45;
            z-index: 2147483647;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.25s ease, transform 0.25s ease;
            pointer-events: none;
            backdrop-filter: blur(18px);
        }

        #lingoloop-background-toast.visible {
            opacity: 1;
            transform: translateY(0);
        }

        #lingoloop-background-toast strong {
            display: block;
            font-size: 13px;
            margin-bottom: 4px;
            color: #FFFFFF;
        }

        #lingoloop-background-toast span {
            display: block;
            font-size: 12px;
            color: #CFDAFF;
        }

        @media (max-width: 768px) {
            #lingoloop-background-toast {
                left: 12px;
                right: 12px;
                bottom: auto;
                top: calc(12px + env(safe-area-inset-top, 0px));
                width: auto;
                padding: 12px 16px;
                transform: translateY(0);
            }
            #lingoloop-background-toast.visible {
                transform: translateY(0);
            }
        }

        body.lingoloop-generator-active #page,
        body.lingoloop-generator-active #content,
        body.lingoloop-generator-active main,
        body.lingoloop-generator-active .site,
        body.lingoloop-generator-active .wrap {
            margin: 0 !important;
            padding: 0 !important;
            max-width: 100% !important;
            width: 100% !important;
        }

        /* ===== COLUNA ESQUERDA - PREVIEW DO SITE (71%) ===== */
        #lingoloop-preview-area {
            flex: 0 0 75%;
            display: flex;
            flex-direction: column;
            background: radial-gradient(circle at 20% 20%, rgba(56,189,248,0.08), transparent 55%), #050b1a;
            border-right: none;
            overflow: hidden;
        }

        /* Área de abas */
        #lingoloop-tabs {
            display: flex;
            background-color: rgba(15, 23, 42, 0.95);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            padding: 0 12px 0 0;
            height: 44px;
            min-height: 44px;
            max-height: 44px;
            align-items: center;
            flex-shrink: 0;
            backdrop-filter: blur(8px);
        }

        /* Container das tabs - CRÍTICO para layout horizontal */
        .lingoloop-tab-list {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 4px;
            flex-wrap: nowrap;
            overflow-x: auto;
            padding: 4px 8px;
            flex: 1;
        }

        .lingoloop-tab {
            padding: 8px 14px;
            margin-right: 2px;
            background-color: transparent;
            color: #64748b;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 11px;
            font-weight: 500;
            transition: all 0.15s ease;
            position: relative;
            white-space: nowrap;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
        }

        /* ➕ Tab de adicionar nova página */
        .lingoloop-tab.lingoloop-tab-add {
            padding: 6px 10px;
            color: #64748b;
            border: 1px dashed rgba(100, 116, 139, 0.4);
            background: transparent;
            margin-left: 4px;
        }

        .lingoloop-tab.lingoloop-tab-add:hover {
            color: #3b82f6;
            border-color: rgba(59, 130, 246, 0.5);
            background: rgba(59, 130, 246, 0.08);
        }

        .lingoloop-tab.lingoloop-tab-add svg {
            width: 14px;
            height: 14px;
        }

        /* 🛒 Tabs WooCommerce - Estilo especial */
        .lingoloop-tab.lingoloop-tab-woo {
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.15));
            border: 1px solid rgba(37, 99, 235, 0.3);
            color: #10B981;
            display: inline-flex;
            align-items: center;
            flex-shrink: 0;
        }

        .lingoloop-tab.lingoloop-tab-woo:hover {
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(16, 185, 129, 0.25));
            border-color: rgba(16, 185, 129, 0.5);
            color: #34D399;
        }

        .lingoloop-tab.lingoloop-tab-woo.active {
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(16, 185, 129, 0.3));
            border-color: #10B981;
            border-bottom: 2px solid #10B981;
            color: #34D399;
        }

        /* Manter tabs sem margem esquerda extra para ficar 100% colado */
        .lingoloop-tab:first-child { margin-left: 0; }

        .lingoloop-tab:hover {
            background-color: rgba(255, 255, 255, 0.05);
            color: #e2e8f0;
        }

        .lingoloop-tab.active {
            background-color: rgba(59, 130, 246, 0.1);
            color: #e2e8f0;
            border-bottom: none;
            box-shadow: inset 0 -2px 0 #3b82f6;
        }

        .lingoloop-tabs-actions {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .lingoloop-preview-toggle {
            display: inline-flex;
            align-items: center;
            padding: 2px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(15, 23, 42, 0.8);
        }

        .lingoloop-device-btn {
            border: none;
            background: transparent;
            color: #64748b;
            font-size: 11px;
            font-weight: 500;
            border-radius: 999px;
            padding: 4px 10px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .lingoloop-device-btn i {
            font-size: 11px;
        }

        .lingoloop-device-btn.active {
            background: rgba(59, 130, 246, 0.2);
            color: #3b82f6;
        }

        .lingoloop-device-btn:not(.active):hover {
            color: #e2e8f0;
            background: rgba(255, 255, 255, 0.05);
        }

        /* Botão "Nova Página" - Escondido (agora está integrado nas tabs como "+") */
        .lingoloop-add-page-btn {
        display: none !important;
        }

        /* Iframe principal - preview do site */
        #lingoloop-site-frame {
            width: 100%;
            border: 0;
            background-color: transparent;
            display: block;
            position: relative;
            left: 0;
            flex: 1 1 auto;
            margin: 0;
            padding: 0;
            min-height: 0;
            box-sizing: border-box;
            height: calc(100% - 40px);
            transition: width 0.25s ease, border-radius 0.25s ease, box-shadow 0.25s ease, margin 0.25s ease;
        }

        /* Garantir que iframe expanda completamente */
        #lingoloop-preview-area > #lingoloop-site-frame {
            flex-grow: 1 !important;
            flex-shrink: 1 !important;
            flex-basis: 0 !important;
        }

        #lingoloop-container.lingoloop-preview-mobile #lingoloop-preview-area {
            background: radial-gradient(circle at top, rgba(74, 158, 255, 0.08), rgba(5, 11, 26, 0.95));
        }

        #lingoloop-container.lingoloop-preview-mobile #lingoloop-tabs {
            padding: 0 24px;
        }

        #lingoloop-container.lingoloop-preview-mobile #lingoloop-site-frame {
            width: 420px !important;
            max-width: calc(100% - 48px);
            border-radius: 28px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: #000000;
            margin: 12px auto 24px !important;
            align-self: center;
        }

        #lingoloop-container.lingoloop-preview-mobile.lingoloop-fullscreen #lingoloop-site-frame {
            width: min(480px, 90vw) !important;
        }

        /* Frame de preview */
        #lingoloop-preview-frame {
            flex: 1;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            background-color: #1E1E1E;
            overflow: auto;
        }

        .lingoloop-placeholder {
            text-align: center;
            color: #888888;
            font-size: 14px;
            font-weight: 400;
            max-width: 360px;
            line-height: 1.4;
        }

        /* Placeholders para seções */
        .lingoloop-section-placeholder {
            background-color: #2A2A2A;
            border: 1px solid #444444;
            border-radius: 6px;
            padding: 14px;
            margin-bottom: 10px;
            transition: all 0.3s ease;
            width: 100%;
            max-width: 520px;
        }

        .lingoloop-section-placeholder:hover {
            background-color: #3A3A3A;
            border-color: #555555;
        }

        .lingoloop-placeholder-title {
            font-size: 13px;
            font-weight: 600;
            color: #EEEEEE;
            margin-bottom: 6px;
        }

        .lingoloop-placeholder-status {
            font-size: 11px;
            color: #AAAAAA;
            font-style: italic;
        }

        /* Containers de páginas */
        .lingoloop-page-container {
            width: 100%;
            max-width: 760px;
            margin: 0 auto;
        }

        /* Seções geradas */
        .lingoloop-section {
            margin-bottom: 14px;
            border-radius: 6px;
            overflow: hidden;
            box-shadow: 0 3px 5px rgba(0, 0, 0, 0.08);
        }

        /* Estilos para o HTML gerado pelas seções */
        .lingoloop-section * {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        .lingoloop-section img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
        }

        .lingoloop-section h1,
        .lingoloop-section h2,
        .lingoloop-section h3,
        .lingoloop-section h4,
        .lingoloop-section h5,
        .lingoloop-section h6 {
            color: #EEEEEE;
            margin: 0 0 10px 0;
            line-height: 1.25;
        }

        .lingoloop-section p {
            color: #CCCCCC;
            margin: 0 0 8px 0;
            line-height: 1.4;
        }

        .lingoloop-section a {
            color: #4A9EFF;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .lingoloop-section a:hover {
            color: #3A8EEF;
        }

        .lingoloop-section button,
        .lingoloop-section .btn {
            background-color: #4A9EFF;
            color: #FFFFFF;
            border: none;
            padding: 8px 14px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .lingoloop-section button:hover,
        .lingoloop-section .btn:hover {
            background-color: #3A8EEF;
            transform: translateY(-1px);
        }

        /* ===== COLUNA DIREITA - ÁREA DO CHAT (29%) ===== */
        #lingoloop-chat-area {
            flex: 0 0 25%;
            min-width: 320px;
            max-width: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
            background: radial-gradient(circle at top left, rgba(74,158,255,0.08), transparent 55%), #0f1528;
            box-shadow: -24px 0 80px rgba(5,10,25,0.75);
            min-height: 0;
        }

        /* Header do chat com botões */
        .lingoloop-chat-header {
            padding: 10px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            position: sticky;
            top: 0;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(12px);
            z-index: 3;
        }

        /* Toolbar Mobile - Chips de ação rápida */
        .lingoloop-chat-mobile-toolbar {
            display: none;
            gap: 8px;
            padding: 0;
            background: transparent;
            border: none;
        }

        .lingoloop-mobile-chip {
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(30, 41, 59, 0.6);
            color: #e2e8f0;
            border-radius: 10px;
            padding: 10px 16px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
            -webkit-tap-highlight-color: transparent;
        }

        .lingoloop-mobile-chip svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            opacity: 0.8;
        }

        .lingoloop-mobile-chip-primary {
            background: #10b981;
            border-color: transparent;
            color: #ffffff;
        }

        .lingoloop-mobile-chip-primary svg {
            opacity: 1;
        }

        .lingoloop-mobile-chip:active {
            transform: scale(0.97);
            background: rgba(255, 255, 255, 0.1);
        }

        .lingoloop-mobile-chip-primary:active {
            background: #059669;
        }

        /* Estilos dos botões - Estilo SaaS Minimalista */
        .lingoloop-btn {
            padding: 6px 10px;
            background-color: transparent;
            color: #94a3b8;
            border: 1px solid rgba(148, 163, 184, 0.25);
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.15s ease;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .lingoloop-btn svg {
            width: 14px;
            height: 14px;
            flex-shrink: 0;
        }

        .lingoloop-btn:hover {
            background-color: rgba(148, 163, 184, 0.08);
            color: #e2e8f0;
            border-color: rgba(148, 163, 184, 0.4);
        }

        .lingoloop-btn:active {
            background-color: rgba(148, 163, 184, 0.12);
        }

        .lingoloop-btn-primary {
            background-color: #10b981;
            border-color: #10b981;
            color: #FFFFFF;
            padding: 6px 12px;
            font-size: 12px;
            font-weight: 500;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.15s ease;
        }

        .lingoloop-btn-primary:hover {
            background-color: #059669;
            border-color: #059669;
        }

        .lingoloop-btn-primary:active {
            background-color: #047857;
        }

        .lingoloop-btn-primary.llp-generating,
        #lingoloop-generate-btn.llp-generating {
            background: #f97316 !important;
            background-color: #f97316 !important;
            background-image: none !important;
            border-color: #f97316 !important;
            animation: pulse-orange 2s ease-in-out infinite !important;
        }

        .lingoloop-btn-primary.llp-generating:hover,
        #lingoloop-generate-btn.llp-generating:hover {
            background: #ea580c !important;
            background-color: #ea580c !important;
            background-image: none !important;
            border-color: #ea580c !important;
        }

        .lingoloop-btn-primary.llp-generating:active,
        #lingoloop-generate-btn.llp-generating:active {
            background: #c2410c !important;
            background-color: #c2410c !important;
            background-image: none !important;
        }

        #lingoloop-stop-btn.llp-generating {
            background: #f97316 !important;
            background-color: #f97316 !important;
            background-image: none !important;
            border-color: #f97316 !important;
        }

        #lingoloop-stop-btn.llp-generating:hover {
            background: #ea580c !important;
            background-color: #ea580c !important;
            background-image: none !important;
            border-color: #ea580c !important;
        }

        #lingoloop-stop-btn.llp-generating:active {
            background: #c2410c !important;
            background-color: #c2410c !important;
            background-image: none !important;
        }

        @keyframes pulse-orange {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
            }
            50% {
                box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
            }
        }

        .lingoloop-btn-primary svg {
            width: 14px;
            height: 14px;
            flex-shrink: 0;
        }

        /* Container para botões de geração */
        .lingoloop-generate-buttons {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        /* Botão V2 - Geração aprimorada */
        .lingoloop-btn-v2 {
            background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
            border: none;
            color: #FFFFFF;
            padding: 6px 14px;
            font-size: 12px;
            font-weight: 600;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.2s ease;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
        }

        .lingoloop-btn-v2:hover {
            background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
            transform: translateY(-1px);
        }

        .lingoloop-btn-v2:active {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
        }

        .lingoloop-btn-v2:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Estado publicado - botão atualizar */
        #lingoloop-publish-btn.site-published {
            background-color: transparent;
            border-color: rgba(16, 185, 129, 0.4);
            color: #10b981;
        }

        #lingoloop-publish-btn.site-published:hover {
            background-color: rgba(16, 185, 129, 0.1);
            border-color: #10b981;
        }

        /* Botão de parar geração */
        #lingoloop-stop-btn {
            background-color: transparent;
            border-color: rgba(239, 68, 68, 0.4);
            color: #ef4444;
            display: none; /* Inicialmente oculto */
        }

        #lingoloop-stop-btn:hover {
            background-color: rgba(239, 68, 68, 0.1);
            border-color: #ef4444;
        }

        #lingoloop-stop-btn:disabled {
            background-color: transparent;
            border-color: rgba(148, 163, 184, 0.2);
            color: #64748b;
            cursor: not-allowed;
        }

        /* Área de log do chat */
        #lingoloop-chat-log {
            flex: 1 1 auto;
            padding: 16px 18px 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-height: 0;
        }

        /* Mensagens do chat */
        .lingoloop-message {
            display: flex;
            margin-bottom: 8px;
            gap: 10px;
            align-items: flex-end;
        }

        .lingoloop-message-user {
            justify-content: flex-end;
        }

        .lingoloop-message-system,
        .lingoloop-message-ai {
            justify-content: flex-start;
        }

        .lingoloop-message-content {
            max-width: 85%;
            padding: 10px 14px;
            border-radius: 12px;
            font-size: 13px;
            line-height: 1.5;
            word-wrap: break-word;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .lingoloop-message-user .lingoloop-message-content {
            background: #3b82f6;
            color: #FFFFFF;
            border-bottom-right-radius: 4px;
        }

        .lingoloop-message-system .lingoloop-message-content,
        .lingoloop-message-ai .lingoloop-message-content {
            background: rgba(30, 41, 59, 0.8);
            color: #e2e8f0;
            border-bottom-left-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        /* Área de input do chat - NOVA VERSÃO MELHORADA */
        .lingoloop-chat-input-area {
            padding: 12px 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(12px);
            position: sticky;
            bottom: 0;
            z-index: 4;
        }

        .lingoloop-input-container {
            width: 100%;
            margin-bottom: 8px;
            position: relative;
            background-color: rgba(30, 41, 59, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            transition: all 0.15s ease;
        }

        .lingoloop-input-container:focus-within {
            border-color: rgba(59, 130, 246, 0.5);
            background-color: rgba(30, 41, 59, 0.8);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .lingoloop-asset-controls {
            display: none !important; /* Box removido completamente */
        }

        /* Botão + para adicionar assets - estilo moderno e clean */
        #lingoloop-container .lingoloop-asset-trigger .lingoloop-asset-btn,
        #lingoloop-container #lingoloop-asset-btn.lingoloop-asset-btn {
            background: rgba(59, 130, 246, 0.08) !important;
            border: none !important;
            color: #3b82f6 !important;
            font-weight: 400;
            font-size: 18px;
            width: 32px;
            height: 32px;
            padding: 0 !important;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            line-height: 1;
            box-shadow: none !important;
            outline: none !important;
            border-radius: 8px !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        #lingoloop-container .lingoloop-asset-trigger .lingoloop-asset-btn:hover:not(:disabled),
        #lingoloop-container #lingoloop-asset-btn.lingoloop-asset-btn:hover:not(:disabled) {
            background: rgba(59, 130, 246, 0.15) !important;
            color: #2563eb !important;
            transform: scale(1.05);
            border: none !important;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
        }

        #lingoloop-container .lingoloop-asset-trigger .lingoloop-asset-btn:active:not(:disabled),
        #lingoloop-container #lingoloop-asset-btn.lingoloop-asset-btn:active:not(:disabled) {
            transform: scale(0.95);
            background: rgba(59, 130, 246, 0.12) !important;
        }

        .lingoloop-asset-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .lingoloop-asset-btn.is-uploading {
            cursor: progress;
            opacity: 0.8;
        }

        .lingoloop-asset-helper {
            display: none !important; /* Removido da interface */
        }

        .lingoloop-asset-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .lingoloop-asset-pill {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px 10px;
            background: #1b1c20;
            border: 1px solid #2f3036;
            border-radius: 10px;
            min-width: 0;
        }

        .lingoloop-asset-thumb {
            width: 38px;
            height: 38px;
            border-radius: 8px;
            object-fit: cover;
            background: #0f1117;
            flex-shrink: 0;
        }

        .lingoloop-asset-body {
            display: flex;
            flex-direction: column;
            gap: 3px;
            min-width: 0;
        }

        .lingoloop-asset-name {
            font-size: 12px;
            color: #f3f4f6;
            line-height: 1.2;
            max-width: 180px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .lingoloop-asset-actions {
            display: flex;
            gap: 4px;
        }

        .lingoloop-asset-action {
            border: 1px solid #374151;
            background: transparent;
            color: #9CA3AF;
            font-size: 10px;
            padding: 2px 8px;
            border-radius: 999px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .lingoloop-asset-action.is-active {
            border-color: #4A9EFF;
            background: #4A9EFF;
            color: #0f172a;
            font-weight: 600;
        }

        .lingoloop-asset-remove {
            border: none;
            background: transparent;
            color: #e5e7eb;
            font-size: 14px;
            padding: 0 4px;
            cursor: pointer;
            line-height: 1;
            margin-left: auto;
        }

        .lingoloop-asset-remove:hover {
            color: #f87171;
        }

        @media (max-width: 640px) {
            .lingoloop-asset-list {
                flex-direction: column;
            }

            .lingoloop-asset-name {
                max-width: 140px;
            }
        }

        #lingoloop-user-input {
            width: 100%;
            min-height: 56px;
            padding: 10px 12px 8px 12px;
            background-color: transparent;
            border: none;
            color: #EEEEEE;
            font-size: 12px;
            font-family: inherit;
            resize: vertical;
            box-sizing: border-box;
        }

        #lingoloop-user-input:focus {
            outline: none;
        }

        .lingoloop-input-footer {
            padding: 6px 12px 10px 12px;
            border-top: 1px solid #333333;
            background-color: transparent;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .lingoloop-footer-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .lingoloop-conversational-link {
            color: #94a3b8;
            font-size: 13px;
            cursor: pointer;
            transition: color 0.2s ease;
            user-select: none;
            font-weight: 500;
        }

        .lingoloop-conversational-link:hover {
            color: #3b82f6;
        }

        .lingoloop-input-bottom {
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

        /* REMOVIDO: Template link 
        .lingoloop-template-link {
            color: #888888;
            font-size: 13px;
            cursor: pointer;
            transition: color 0.2s ease;
            user-select: none;
            font-weight: 500;
        }

        .lingoloop-template-link:hover {
            color: #4A9EFF;
            text-decoration: underline;
        }
        */

        #lingoloop-user-input:focus {
            outline: none;
            border-color: #4A9EFF;
            background-color: #2F2F2F;
        }

        #lingoloop-user-input::placeholder {
            color: #888888;
        }

        /* Scrollbar personalizada (chat, preview e textarea) */
        #lingoloop-chat-log::-webkit-scrollbar,
        #lingoloop-preview-frame::-webkit-scrollbar,
        #lingoloop-user-input::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        #lingoloop-chat-log::-webkit-scrollbar-track,
        #lingoloop-preview-frame::-webkit-scrollbar-track,
        #lingoloop-user-input::-webkit-scrollbar-track {
            background: #141414;
            border-radius: 8px;
            box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
        }

        #lingoloop-chat-log::-webkit-scrollbar-thumb,
        #lingoloop-preview-frame::-webkit-scrollbar-thumb,
        #lingoloop-user-input::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #4A9EFF, #357ABD);
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
        }

        #lingoloop-chat-log::-webkit-scrollbar-thumb:hover,
        #lingoloop-preview-frame::-webkit-scrollbar-thumb:hover,
        #lingoloop-user-input::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #5BA8FF, #3F7FBC);
        }

        /* Evita pulo de layout quando a barra aparece */
        #lingoloop-chat-log,
        #lingoloop-preview-frame {
            scrollbar-gutter: stable both-edges;
        }

        /* Scrollbar para Firefox */
        #lingoloop-chat-log {
            scrollbar-width: thin;
            scrollbar-color: #4A9EFF #141414;
        }

        #lingoloop-preview-frame {
            scrollbar-width: thin;
            scrollbar-color: #4A9EFF #141414;
        }

        #lingoloop-user-input {
            scrollbar-width: thin;
            scrollbar-color: #4A9EFF #141414;
        }

        @media (max-width: 900px) {
            .lingoloop-preview-toggle {
                display: none;
            }
        }

        /* ===== RESPONSIVIDADE: TABLET ===== */
        @media (max-width: 1024px) {
            #lingoloop-container {
                flex-direction: column;
            }
            
            #lingoloop-preview-area {
                flex: 1 1 55%;
                border-right: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            }
            
            #lingoloop-chat-area {
                flex: 1 1 45%;
            }
            
            .lingoloop-chat-header {
                padding: 12px 16px;
            }
            
            .lingoloop-btn {
                padding: 8px 12px;
                font-size: 12px;
            }
        }

        @media (max-width: 768px) {
            /* ===== MOBILE: Reset de UX ===== */
            * {
                -webkit-tap-highlight-color: transparent;
                -webkit-touch-callout: none;
            }

            /* ===== MOBILE: Layout Base ===== */
            #lingoloop-container {
                flex-direction: column;
                height: 100vh;
                height: 100dvh;
                height: -webkit-fill-available;
                overflow: hidden;
                touch-action: manipulation;
            }

            #lingoloop-preview-area {
                flex: 1 1 50%;
                border-right: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.06);
                min-height: 0;
                position: relative;
            }
            
            #lingoloop-chat-area {
                flex: 1 1 50%;
                min-height: 0;
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }

            /* 🔥 MOBILE REAL: Iframe DEVE ocupar 100% - Sobrescreve regra de 420px */
            #lingoloop-container.lingoloop-preview-mobile #lingoloop-site-frame,
            #lingoloop-container.lingoloop-preview-desktop #lingoloop-site-frame,
            #lingoloop-container #lingoloop-site-frame,
            #lingoloop-site-frame {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 100% !important;
                height: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
                border: none !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                align-self: stretch !important;
                background: #050b1a !important;
            }
            
            /* 🔥 MOBILE REAL: Forçar largura total mesmo com classe lingoloop-preview-mobile */
            #lingoloop-container.lingoloop-preview-mobile.lingoloop-fullscreen #lingoloop-site-frame {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 100% !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                margin: 0 !important;
            }
            
            #lingoloop-preview-area {
                padding: 0 !important;
                margin: 0 !important;
                background: none !important;
            }
            
            /* 🔥 MOBILE REAL: Preview area sem efeitos de simulação */
            #lingoloop-container.lingoloop-preview-mobile #lingoloop-preview-area {
                background: none !important;
                padding: 0 !important;
            }

            /* ===== MOBILE: Tabs - Design Limpo ===== */
            #lingoloop-tabs {
                padding: 0 12px;
                height: 52px;
                min-height: 52px;
                max-height: 52px;
                gap: 6px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                background: linear-gradient(180deg, #0a0f1e 0%, #050b1a 100%);
                border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            }

            #lingoloop-tabs::-webkit-scrollbar {
                display: none;
            }

            .lingoloop-tab-list {
                gap: 6px;
                padding: 8px 0;
            }

            .lingoloop-tab {
                padding: 10px 16px;
                font-size: 13px;
                font-weight: 500;
                border-radius: 10px;
                min-width: max-content;
                transition: all 0.15s ease;
            }

            .lingoloop-tab:active {
                transform: scale(0.96);
                opacity: 0.8;
            }

            .lingoloop-tab.active {
                background: rgba(59, 130, 246, 0.15);
                border-color: rgba(59, 130, 246, 0.4);
                color: #60a5fa;
            }

            .lingoloop-tab.lingoloop-tab-add {
                padding: 10px 14px;
                min-width: 44px;
            }

            .lingoloop-tab.lingoloop-tab-add:active {
                transform: scale(0.94);
            }

            .lingoloop-tabs-actions {
                gap: 8px;
                flex-shrink: 0;
                padding-left: 12px;
            }

            .lingoloop-preview-toggle {
                display: none;
            }

            /* ===== MOBILE: Chat Header - Compacto ===== */
            .lingoloop-chat-header {
                padding: 12px 14px;
                gap: 8px;
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                background: rgba(10, 15, 30, 0.98);
                border-bottom: 1px solid rgba(255, 255, 255, 0.06);
                position: sticky;
                top: 0;
                z-index: 10;
            }

            .lingoloop-chat-header::-webkit-scrollbar {
                display: none;
            }

            .lingoloop-chat-header .lingoloop-btn {
                flex-shrink: 0;
                padding: 10px 14px;
                font-size: 13px;
                font-weight: 500;
                border-radius: 10px;
                min-height: 44px;
            }

            .lingoloop-chat-header .lingoloop-btn:active {
                transform: scale(0.96);
                opacity: 0.9;
            }

            /* ===== MOBILE: Toolbar de Chips - Melhorado ===== */
            .lingoloop-chat-mobile-toolbar {
                display: flex !important;
                gap: 10px;
                padding: 12px 14px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 17, 34, 0.98) 100%);
                border-bottom: 1px solid rgba(255, 255, 255, 0.06);
                scrollbar-width: none;
            }

            .lingoloop-chat-mobile-toolbar::-webkit-scrollbar {
                display: none;
            }

            .lingoloop-mobile-chip {
                flex-shrink: 0;
                padding: 12px 18px;
                font-size: 14px;
                font-weight: 500;
                border-radius: 24px;
                min-height: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 6px;
                background: rgba(255, 255, 255, 0.04);
                border: 1px solid rgba(255, 255, 255, 0.1);
                color: #e2e8f0;
                transition: all 0.15s ease;
            }

            .lingoloop-mobile-chip:active {
                transform: scale(0.96);
                background: rgba(255, 255, 255, 0.08);
            }

            .lingoloop-mobile-chip svg {
                width: 16px;
                height: 16px;
                opacity: 0.8;
            }

            /* ===== MOBILE: Chat Log - Melhorado ===== */
            #lingoloop-chat-log {
                padding: 16px;
                gap: 12px;
                flex: 1 1 auto;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                overscroll-behavior: contain;
            }

            .lingoloop-message {
                animation: mobileMessageIn 0.25s ease;
            }

            @keyframes mobileMessageIn {
                from {
                    opacity: 0;
                    transform: translateY(8px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }

            .lingoloop-message-content {
                max-width: 88%;
                padding: 12px 16px;
                font-size: 15px;
                line-height: 1.55;
                border-radius: 16px;
            }

            .lingoloop-message.user .lingoloop-message-content {
                background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
                border-radius: 16px 16px 4px 16px;
            }

            .lingoloop-message.assistant .lingoloop-message-content {
                background: rgba(30, 41, 59, 0.95);
                border: 1px solid rgba(255, 255, 255, 0.06);
                border-radius: 16px 16px 16px 4px;
            }

            /* ===== MOBILE: Input Area - Premium ===== */
            .lingoloop-chat-input-area {
                padding: 16px;
                padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
                background: linear-gradient(180deg, rgba(10, 17, 34, 0) 0%, rgba(10, 17, 34, 0.98) 20%);
                position: relative;
            }

            .lingoloop-input-container {
                border-radius: 16px;
                background: rgba(15, 23, 42, 0.98);
                border: 1px solid rgba(255, 255, 255, 0.1);
                overflow: hidden;
            }

            .lingoloop-input-container:focus-within {
                border-color: rgba(59, 130, 246, 0.5);
                box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
            }

            #lingoloop-user-input {
                min-height: 52px;
                padding: 14px 16px;
                font-size: 16px;
                line-height: 1.45;
                background: transparent;
                border: none;
                resize: none;
            }

            #lingoloop-user-input::placeholder {
                color: #64748b;
            }

            .lingoloop-input-footer {
                padding: 10px 14px 12px;
                flex-wrap: wrap;
                gap: 10px;
                background: rgba(0, 0, 0, 0.2);
                border-top: 1px solid rgba(255, 255, 255, 0.04);
            }

            #lingoloop-generate-btn {
                padding: 0;
                width: 48px;
                height: 48px;
                font-size: 15px;
                font-weight: 600;
                border-radius: 12px;
                background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
                border: none;
                box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
                display: inline-flex;
                align-items: center;
                justify-content: center;
                transition: all 0.3s ease;
                cursor: pointer;
            }

            #lingoloop-generate-btn svg {
                margin: 0 !important;
            }

            #lingoloop-generate-btn:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
            }

            #lingoloop-generate-btn:active {
                transform: translateY(0) scale(0.95);
                box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
            }

            /* ===== MOBILE: Asset Controls ===== */
            .lingoloop-asset-controls {
                padding: 12px 14px;
                background: rgba(15, 23, 42, 0.95);
                border-top: 1px solid rgba(255, 255, 255, 0.06);
            }

            .lingoloop-asset-helper {
                font-size: 13px;
                color: #94a3b8;
            }

            .lingoloop-asset-list {
                flex-direction: column;
                gap: 8px;
            }

            .lingoloop-asset-pill {
                width: 100%;
                padding: 12px 14px;
                border-radius: 10px;
            }

            .lingoloop-asset-pill:active {
                transform: scale(0.98);
            }
        }

        /* ===== MOBILE PEQUENO (480px) ===== */
        @media (max-width: 480px) {
            #lingoloop-tabs {
                height: 48px;
                min-height: 48px;
                max-height: 48px;
                padding: 0 10px;
            }

            .lingoloop-tab {
                padding: 8px 12px;
                font-size: 12px;
            }

            .lingoloop-tab.lingoloop-tab-add {
                padding: 8px 10px;
                min-width: 40px;
            }

            .lingoloop-chat-header {
                padding: 10px 12px;
            }

            .lingoloop-chat-header .lingoloop-btn {
                padding: 8px 12px;
                font-size: 12px;
                min-height: 40px;
            }

            .lingoloop-mobile-chip {
                padding: 10px 14px;
                font-size: 13px;
                min-height: 40px;
            }

            #lingoloop-user-input {
                font-size: 16px; /* Previne zoom no iOS */
                min-height: 48px;
            }

            #lingoloop-generate-btn {
                padding: 10px 16px;
                font-size: 14px;
                min-height: 44px;
            }

            .lingoloop-message-content {
                padding: 10px 14px;
                font-size: 14px;
            }
        }

        /* ===== MOBILE: Estados Especiais ===== */
        @media (max-width: 768px) {
            #lingoloop-container {
                position: relative;
            }

            /* Estado: Input focado (tela inicial) - Welcome Screen */
            #lingoloop-container.llp-mobile-input-only {
                height: 100vh;
                height: 100dvh;
                height: -webkit-fill-available;
                background: linear-gradient(160deg, #050b1a 0%, #09142e 45%, #0f1f3f 100%);
            }

            #lingoloop-container.llp-mobile-input-only #lingoloop-preview-area {
                display: none !important;
            }

            #lingoloop-container.llp-mobile-input-only #lingoloop-chat-area {
                flex: 1 1 100%;
                display: flex;
                flex-direction: column;
                background: transparent;
            }

            #lingoloop-container.llp-mobile-input-only .lingoloop-chat-header {
                display: none !important;
            }

            #lingoloop-container.llp-mobile-input-only #lingoloop-chat-log {
                display: none !important;
            }

            #lingoloop-container.llp-mobile-input-only .lingoloop-chat-mobile-toolbar {
                display: none !important;
            }

            #lingoloop-container.llp-mobile-input-only .lingoloop-chat-input-area {
                flex: 1 1 auto;
                display: flex !important;
                flex-direction: column;
                justify-content: center;
                padding: 32px 20px;
                padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
                background: transparent;
            }

            #lingoloop-container.llp-mobile-input-only .lingoloop-input-container {
                width: 100%;
                max-width: 100%;
                background: rgba(15, 23, 42, 0.8);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                border: 1px solid rgba(255, 255, 255, 0.1);
                border-radius: 20px;
                box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
            }

            #lingoloop-container.llp-mobile-input-only #lingoloop-user-input {
                min-height: 140px;
                font-size: 17px;
                padding: 18px 20px;
                line-height: 1.5;
            }

            #lingoloop-container.llp-mobile-input-only .lingoloop-input-footer {
                padding: 14px 18px 16px;
            }

            #lingoloop-container.llp-mobile-input-only #lingoloop-generate-btn {
                width: 100%;
                padding: 16px 24px;
                font-size: 16px;
                border-radius: 14px;
                min-height: 52px;
            }

            /* V2: Container de botões no mobile */
            #lingoloop-container.llp-mobile-input-only .lingoloop-generate-buttons {
                display: flex;
                gap: 10px;
                width: 100%;
            }
            
            #lingoloop-container.llp-mobile-input-only .lingoloop-generate-buttons #lingoloop-generate-btn {
                flex: 1;
            }
            
            #lingoloop-container.llp-mobile-input-only .lingoloop-generate-buttons #lingoloop-generate-v2-btn {
                padding: 16px 20px;
                font-size: 14px;
                border-radius: 14px;
                min-height: 52px;
                white-space: nowrap;
            }

            /* Estado: Preview em tela cheia */
            #lingoloop-container.llp-mobile-full-preview {
                height: 100vh !important;
                height: 100dvh !important;
                height: -webkit-fill-available !important;
            }

            #lingoloop-container.llp-mobile-full-preview #lingoloop-preview-area {
                display: flex !important;
                flex: 1 1 100%;
                padding: 0 !important;
                margin: 0 !important;
                background: none !important;
            }

            #lingoloop-container.llp-mobile-full-preview #lingoloop-chat-area {
                display: none !important;
            }

            /* 📱 Esconder tabs durante geração/preview fullscreen no mobile */
            #lingoloop-container.llp-mobile-full-preview #lingoloop-tabs {
                display: none !important;
            }

            #lingoloop-container.llp-mobile-full-preview #lingoloop-site-frame {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 100% !important;
                height: 100% !important;
                border: none !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                margin: 0 !important;
                background: #050b1a !important;
            }

            /* Estado: Chat expandido */
            #lingoloop-container.llp-mobile-chat-expanded {
                height: 100vh;
                height: 100dvh;
                height: -webkit-fill-available;
            }

            #lingoloop-container.llp-mobile-chat-expanded #lingoloop-preview-area {
                display: none !important;
            }

            #lingoloop-container.llp-mobile-chat-expanded #lingoloop-chat-area {
                display: flex !important;
                flex-direction: column;
                flex: 1 1 100%;
                animation: chatSlideIn 0.25s ease;
            }

            @keyframes chatSlideIn {
                from {
                    opacity: 0;
                    transform: translateY(20px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }

            #lingoloop-container.llp-mobile-chat-expanded #lingoloop-chat-log {
                flex: 1 1 auto;
                overflow-y: auto;
            }

            #lingoloop-container.llp-mobile-chat-expanded .lingoloop-chat-header {
                display: flex !important;
            }

            #lingoloop-container.llp-mobile-chat-expanded .lingoloop-chat-mobile-toolbar {
                display: flex !important;
            }

            #lingoloop-container.llp-mobile-chat-expanded .lingoloop-chat-input-area {
                display: flex !important;
            }

            /* Estado: Pré-publicação (esconder botões) */
            #lingoloop-container.llp-mobile-prepublish #lingoloop-new-site-btn,
            #lingoloop-container.llp-mobile-prepublish #lingoloop-fullscreen-toggle-btn,
            #lingoloop-container.llp-mobile-prepublish #lingoloop-publish-btn,
            #lingoloop-container.llp-mobile-prepublish #lingoloop-minimize-chat {
                display: none !important;
            }

            /* ===== MOBILE: Controles Flutuantes - Premium ===== */
            #llp-mobile-controls {
                position: fixed;
                left: 50%;
                bottom: calc(24px + env(safe-area-inset-bottom, 0px));
                transform: translateX(-50%);
                display: flex;
                gap: 10px;
                padding: 10px 14px;
                max-width: calc(100vw - 32px);
                justify-content: center;
                background: rgba(10, 17, 34, 0.95);
                border: 1px solid rgba(255, 255, 255, 0.1);
                border-radius: 20px;
                box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
                z-index: 99999;
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                animation: controlsSlideUp 0.3s ease;
            }

            @keyframes controlsSlideUp {
                from {
                    opacity: 0;
                    transform: translateX(-50%) translateY(20px);
                }
                to {
                    opacity: 1;
                    transform: translateX(-50%) translateY(0);
                }
            }

            #llp-mobile-controls .llp-mobile-btn {
                border: none;
                border-radius: 12px;
                padding: 14px 20px;
                font-size: 14px;
                font-weight: 600;
                color: #ffffff;
                background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
                cursor: pointer;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                transition: all 0.15s ease;
                min-height: 50px;
                -webkit-tap-highlight-color: transparent;
                box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
            }

            #llp-mobile-controls .llp-mobile-btn svg {
                width: 16px;
                height: 16px;
            }

            #llp-mobile-controls .llp-mobile-btn-chat {
                background: rgba(255, 255, 255, 0.08);
                border: 1px solid rgba(255, 255, 255, 0.15);
                color: #e2e8f0;
                box-shadow: none;
            }

            #llp-mobile-controls .llp-mobile-btn-chat:active {
                background: rgba(255, 255, 255, 0.15);
            }

            #llp-mobile-controls .llp-mobile-btn-publish {
                background: linear-gradient(135deg, #10b981 0%, #059669 100%);
                box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
            }

            #llp-mobile-controls .llp-mobile-btn-publish:active {
                background: linear-gradient(135deg, #059669 0%, #047857 100%);
            }

            #llp-mobile-controls .llp-mobile-btn-stop {
                background: rgba(239, 68, 68, 0.1);
                border: 1px solid rgba(239, 68, 68, 0.3);
                color: #f87171;
                box-shadow: none;
            }

            #llp-mobile-controls .llp-mobile-btn-stop:active {
                background: rgba(239, 68, 68, 0.2);
            }

            #llp-mobile-controls .llp-mobile-btn:active {
                transform: scale(0.96);
            }
        }

        /* ===== ANIMAÇÕES E TRANSIÇÕES ===== */
        .lingoloop-tab,
        .lingoloop-btn,
        #lingoloop-user-input {
            transition: all 0.2s ease;
        }

        .lingoloop-message {
            animation: fadeInUp 0.3s ease;
        }

        .lingoloop-section {
            animation: fadeInUp 0.5s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ===== ESTADOS DE CARREGAMENTO ===== */
        .lingoloop-loading {
            opacity: 0.7;
            pointer-events: none;
        }

        .lingoloop-loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            margin: -10px 0 0 -10px;
            border: 2px solid #4A9EFF;
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        } 

        /* === ETAPA 6.3: Edição por Seção com Chat Lateral === */
        .lingoloop-section-editor {
        position: fixed;
        top: 0; right: 0;
        width: 400px; max-width: 100vw;
        height: 100vh;
        background: #181a1b;
        color: #fff;
        box-shadow: -2px 0 16px #000a;
        z-index: 9999;
        display: flex; flex-direction: column;
        border-left: 1px solid #222;
        animation: lingoloop-slidein .2s;
        }
        @keyframes lingoloop-slidein {
        from { right: -420px; opacity: 0; }
        to { right: 0; opacity: 1; }
        }
        .lingoloop-section-editor-header {
        padding: 16px; font-weight: bold; border-bottom: 1px solid #222;
        display: flex; align-items: center; justify-content: space-between;
        background: #202124;
        }
        .lingoloop-section-editor-close {
        background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; margin-left: 8px;
        transition: color .2s;
        }
        .lingoloop-section-editor-close:hover { color: #ff6b35; }
        .lingoloop-section-editor-chat {
        flex: 1; overflow-y: auto; padding: 16px; background: #181a1b;
        }
        .lingoloop-section-editor-input {
        display: flex; border-top: 1px solid #222; padding: 12px; background: #202124;
        }
        .lingoloop-section-editor-input input {
        flex: 1; background: #222; color: #fff; border: none; padding: 8px; border-radius: 4px;
        }
        .lingoloop-section-editor-input button {
        margin-left: 8px; background: #0073aa; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; font-weight: bold;
        transition: background .2s;
        }
        .lingoloop-section-editor-input button:hover { background: #005177; }
        .lingoloop-section-editor-msg { margin-bottom: 18px; }
        .lingoloop-section-editor-msg-label { font-size: 12px; color: #aaa; margin-bottom: 2px; }
        .lingoloop-section-editor-html {
        background: #23272a; color: #e0e0e0; padding: 8px; border-radius: 4px; font-size: 12px; overflow-x: auto;
        }
        .lingoloop-section-editor-user {
        background: #222; color: #fff; padding: 8px; border-radius: 4px; font-size: 14px;
        }
        .lingoloop-section-editor-error {
        background: #3a1a1a; color: #ff6b35; padding: 8px; border-radius: 4px; font-size: 13px;
        }
        .lingoloop-section-editor-msg-loading {
        color: #aaa; font-style: italic;
        }
        .lingoloop-section-editing {
        outline: 2px solid #0073aa !important;
        outline-offset: 2px;
        transition: outline .2s;
        z-index: 10;
        }
        @media (max-width: 600px) {
        .lingoloop-section-editor { width: 100vw; min-width: 0; }
        }
        /* Fim ETAPA 6.3 */ 

        /* ===== MODAL DE PUBLICAÇÃO ===== */
        #lingoloop-publish-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(4px);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        #lingoloop-publish-modal.show {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .lingoloop-modal-content {
            background: #0f172a;
            border-radius: 16px;
            width: 90%;
            max-width: 560px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            position: relative;
            animation: slideUp 0.2s ease;
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        @keyframes slideUp {
            from { 
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to { 
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .lingoloop-modal-header {
            padding: 20px 24px 16px 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .lingoloop-modal-title {
            font-size: 18px;
            font-weight: 600;
            color: #f1f5f9;
            margin: 0;
            display: flex;
            align-items: center;
        }

        .lingoloop-modal-close {
            background: none;
            border: none;
            color: #64748b;
            font-size: 20px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            transition: all 0.15s ease;
        }

        .lingoloop-modal-close:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #e2e8f0;
        }

        .lingoloop-modal-body {
            padding: 20px 24px 24px;
        }

        .lingoloop-publish-options {
            display: grid;
            gap: 12px;
        }

        .lingoloop-publish-option {
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 16px;
            cursor: pointer;
            transition: all 0.15s ease;
            background: rgba(30, 41, 59, 0.5);
        }

        .lingoloop-publish-option:hover {
            border-color: rgba(59, 130, 246, 0.4);
            background: rgba(30, 41, 59, 0.8);
        }

        .lingoloop-publish-option.selected {
            border-color: #3b82f6;
            background: rgba(59, 130, 246, 0.1);
        }

        .lingoloop-option-header {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
        }

        .lingoloop-option-icon {
            font-size: 18px;
            margin-right: 10px;
            color: #64748b;
        }

        .lingoloop-publish-option.selected .lingoloop-option-icon {
            color: #3b82f6;
        }

        .lingoloop-option-title {
            font-size: 15px;
            font-weight: 600;
            color: #e2e8f0;
            margin: 0;
        }

        .lingoloop-option-description {
            color: #94a3b8;
            font-size: 13px;
            line-height: 1.5;
            margin: 0;
        }

        .lingoloop-option-content {
            margin-top: 16px;
            display: none;
        }

        .lingoloop-publish-option.selected .lingoloop-option-content {
            display: block;
        }

        .lingoloop-form-group {
            margin-bottom: 14px;
        }

        .lingoloop-form-label {
            display: block;
            font-weight: 500;
            color: #cbd5e1;
            margin-bottom: 6px;
            font-size: 13px;
        }

        .lingoloop-form-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            background: rgba(15, 23, 42, 0.8);
            color: #e2e8f0;
            font-size: 14px;
            transition: all 0.15s ease;
        }

        .lingoloop-form-input:focus {
            outline: none;
            border-color: rgba(59, 130, 246, 0.5);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .lingoloop-form-input::placeholder {
            color: #64748b;
        }

        .lingoloop-domain-preview {
            margin-top: 8px;
            padding: 10px 12px;
            background: rgba(59, 130, 246, 0.1);
            border-radius: 6px;
            font-family: 'SF Mono', Monaco, 'Courier New', monospace;
            font-size: 13px;
            color: #3b82f6;
            border-left: 3px solid #3b82f6;
        }

        .lingoloop-instructions {
            background: rgba(30, 41, 59, 0.5);
            border-radius: 8px;
            padding: 14px;
            margin-bottom: 16px;
        }

        .lingoloop-instructions h4 {
            margin: 0 0 12px 0;
            color: #FFFFFF;
            font-size: 16px;
        }

        .lingoloop-instructions ol {
            margin: 0;
            padding-left: 20px;
            color: #CCCCCC;
        }

        .lingoloop-instructions li {
            margin-bottom: 8px;
            line-height: 1.5;
        }

        .lingoloop-verification-section {
            margin-top: 16px;
            padding: 16px;
            background: #1A365D;
            border-radius: 8px;
            border-left: 3px solid #4A9EFF;
        }

        .lingoloop-verification-status {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }

        .lingoloop-status-icon {
            font-size: 20px;
        }

        .lingoloop-status-text {
            font-weight: 500;
            color: #FFFFFF;
        }

        .lingoloop-modal-footer {
            padding: 16px 24px 24px 24px;
            border-top: 1px solid #333333;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .lingoloop-modal-footer .lingoloop-btn {
            min-width: 120px;
        }

        .lingoloop-btn-outline {
            background: transparent;
            border: 1px solid #4A9EFF;
            color: #4A9EFF;
        }

        .lingoloop-btn-outline:hover {
            background: #4A9EFF;
            color: #FFFFFF;
        }

        .lingoloop-loading-spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid #333333;
            border-radius: 50%;
            border-top-color: #4A9EFF;
            animation: spin 1s ease-in-out infinite;
            margin-right: 8px;
        }

        /* ✅ MELHORIAS NO LOADING SPINNER */
        .lingoloop-loading-spinner.publishing {
            border-color: rgba(255, 255, 255, 0.3);
            border-top-color: #ffffff;
            width: 18px;
            height: 18px;
            margin-right: 10px;
        }

        /* Animação mais suave para o spinner */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* ✅ ESTILOS PARA BOTÃO DE PUBLICAÇÃO DURANTE LOADING */
        .lingoloop-btn.publishing {
            background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
            border-color: #6366f1 !important;
            cursor: not-allowed !important;
            position: relative;
            overflow: hidden;
        }

        .lingoloop-btn.publishing::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.2), 
                transparent
            );
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        /* Responsividade para o modal */
        @media (max-width: 768px) {
            #lingoloop-publish-modal {
                align-items: flex-end;
                padding: 0;
            }

            .lingoloop-modal-content {
                width: 100%;
                max-width: 100%;
                margin: 0;
                border-radius: 20px 20px 0 0;
                max-height: 90vh;
                max-height: 90dvh;
                animation: slideUpMobile 0.25s ease;
            }

            @keyframes slideUpMobile {
                from {
                    transform: translateY(100%);
                }
                to {
                    transform: translateY(0);
                }
            }

            .lingoloop-modal-header {
                padding: 16px;
                position: sticky;
                top: 0;
                background: #0f172a;
                z-index: 10;
            }

            .lingoloop-modal-title {
                font-size: 16px;
            }

            .lingoloop-modal-body {
                padding: 16px;
                padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
            }

            .lingoloop-publish-options {
                gap: 10px;
            }

            .lingoloop-publish-option {
                padding: 14px;
            }

            .lingoloop-option-title {
                font-size: 14px;
            }

            .lingoloop-option-description {
                font-size: 12px;
            }

            .lingoloop-form-input {
                padding: 12px;
                font-size: 16px; /* Previne zoom no iOS */
            }

            .lingoloop-modal-footer {
                flex-direction: column;
                gap: 10px;
                padding: 16px;
                padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
                position: sticky;
                bottom: 0;
                background: #0f172a;
                border-top: 1px solid rgba(255, 255, 255, 0.08);
            }
            
            .lingoloop-modal-footer .lingoloop-btn {
                width: 100%;
                padding: 14px;
                font-size: 15px;
                justify-content: center;
            }
        }

        /* === SISTEMA DE AUTO-MELHORIA === */

        /* Container de melhorias */
        .improvement-panel {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 20px;
            margin-top: 20px;
            backdrop-filter: blur(10px);
        }

        .improvement-panel h3 {
            color: #ffffff;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .improvement-panel h3::before {
            content: "🚀";
            font-size: 20px;
        }

        /* Grid de botões de melhoria */
        .improvement-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }

        /* Botões de melhoria */
        .improvement-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            border-radius: 8px;
            color: white;
            padding: 12px 16px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            position: relative;
            overflow: hidden;
        }

        .improvement-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }

        .improvement-btn:active {
            transform: translateY(0);
        }

        .improvement-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Botões específicos por tipo */
        .improvement-btn.content {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .improvement-btn.design {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .improvement-btn.functionality {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        .improvement-btn.seo {
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        }

        .improvement-btn.conversion {
            background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
        }

        /* Spinner de loading */
        .spinner {
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top: 2px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Ícones dos botões */
        .improvement-btn::before {
            font-size: 16px;
        }

        .improvement-btn.content::before {
            content: "✍️";
        }

        .improvement-btn.design::before {
            content: "🎨";
        }

        .improvement-btn.functionality::before {
            content: "⚙️";
        }

        .improvement-btn.seo::before {
            content: "🔍";
        }

        .improvement-btn.conversion::before {
            content: "📈";
        }

        /* Descrições das melhorias */
        .improvement-description {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.4;
            margin-top: 8px;
        }

        .improvement-description ul {
            margin: 8px 0 0 16px;
            padding: 0;
        }

        .improvement-description li {
            margin-bottom: 4px;
        }

        /* Status das melhorias */
        .improvement-status {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            margin-top: 12px;
        }

        .improvement-status.success {
            background: rgba(76, 175, 80, 0.2);
            color: #4CAF50;
            border: 1px solid rgba(76, 175, 80, 0.3);
        }

        .improvement-status.error {
            background: rgba(244, 67, 54, 0.2);
            color: #f44336;
            border: 1px solid rgba(244, 67, 54, 0.3);
        }

        .improvement-status.loading {
            background: rgba(255, 193, 7, 0.2);
            color: #FFC107;
            border: 1px solid rgba(255, 193, 7, 0.3);
        }

        /* Responsividade para melhorias */
        @media (max-width: 768px) {
            .improvement-buttons {
                grid-template-columns: 1fr;
            }
            
            .improvement-panel {
                padding: 16px;
                margin-top: 16px;
            }
            
            .improvement-btn {
                padding: 14px 16px;
                font-size: 15px;
            }
        }

        /* Animações suaves */
        .improvement-panel {
            animation: fadeInUp 0.4s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ===== ✨ TELA DE BOAS-VINDAS INSPIRADORA ===== */
        .lingoloop-welcome-screen {
            min-height: 100vh;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            overflow: hidden;
            position: relative;
        }

        .lingoloop-magic-container {
            text-align: center;
            color: white;
            max-width: 600px;
            padding: 40px;
            position: relative;
            z-index: 2;
        }

        .lingoloop-magic-icon {
            font-size: 80px;
            animation: lingoloop-pulse 2s ease-in-out infinite;
            margin-bottom: 20px;
        }

        @keyframes lingoloop-pulse {
            0%, 100% { transform: scale(1); opacity: 0.8; }
            50% { transform: scale(1.2); opacity: 1; }
        }

        .lingoloop-welcome-title {
            font-size: 48px;
            font-weight: 700;
            margin: 0 0 20px 0;
            background: linear-gradient(45deg, #fff, #f0f8ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: lingoloop-titleGlow 3s ease-in-out infinite;
        }

        @keyframes lingoloop-titleGlow {
            0%, 100% { filter: drop-shadow(0 0 10px rgba(255,255,255,0.3)); }
            50% { filter: drop-shadow(0 0 20px rgba(255,255,255,0.6)); }
        }

        .lingoloop-welcome-subtitle {
            font-size: 20px;
            opacity: 0.9;
            margin-bottom: 40px;
            line-height: 1.5;
        }

        .lingoloop-features-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin: 40px 0;
        }

        .lingoloop-feature {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .lingoloop-feature:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .lingoloop-feature-icon {
            font-size: 32px;
            margin-bottom: 10px;
        }

        .lingoloop-feature-text {
            font-size: 16px;
            font-weight: 500;
        }

        .lingoloop-inspiration-text {
            margin-top: 40px;
        }

        .lingoloop-typewriter {
            font-size: 22px;
            font-style: italic;
            opacity: 0.8;
            border-right: 2px solid white;
            padding-right: 5px;
            animation: lingoloop-typewriter 4s steps(40) infinite, lingoloop-cursor 1s infinite;
            white-space: nowrap;
            overflow: hidden;
            max-width: 100%;
        }

        @keyframes lingoloop-typewriter {
            0%, 50% { width: 0; }
            100% { width: 100%; }
        }

        @keyframes lingoloop-cursor {
            50% { border-color: transparent; }
        }

        .lingoloop-floating-elements {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .lingoloop-floating-elements div {
            position: absolute;
            font-size: 40px;
            opacity: 0.3;
        }

        .lingoloop-float-1 {
            top: 20%;
            left: 10%;
            animation: lingoloop-float 6s ease-in-out infinite;
        }

        .lingoloop-float-2 {
            top: 60%;
            right: 15%;
            animation: lingoloop-float 8s ease-in-out infinite reverse;
        }

        .lingoloop-float-3 {
            top: 10%;
            right: 20%;
            animation: lingoloop-float 7s ease-in-out infinite;
        }

        .lingoloop-float-4 {
            bottom: 20%;
            left: 20%;
            animation: lingoloop-float 9s ease-in-out infinite reverse;
        }

        @keyframes lingoloop-float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(180deg); }
        }

        /* ===== ✨ TELA DE GERAÇÃO MÁGICA ===== */
        .lingoloop-generating-screen {
            min-height: 100vh;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            color: white;
            overflow: hidden;
            position: relative;
            padding: 40px;
        }

        .lingoloop-ai-brain {
            margin-bottom: 40px;
            position: relative;
        }

        .lingoloop-brain-core {
            width: 120px;
            height: 120px;
            border: 3px solid #4facfe;
            border-radius: 50%;
            position: relative;
            animation: lingoloop-brainPulse 2s ease-in-out infinite;
        }

        @keyframes lingoloop-brainPulse {
            0%, 100% { 
                transform: scale(1); 
                box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
            }
            50% { 
                transform: scale(1.1); 
                box-shadow: 0 0 40px rgba(79, 172, 254, 0.6);
            }
        }

        .lingoloop-neural-network {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
        }

        .lingoloop-neuron {
            position: absolute;
            width: 12px;
            height: 12px;
            background: #4facfe;
            border-radius: 50%;
            animation: lingoloop-neuronFire 1.5s ease-in-out infinite;
        }

        .lingoloop-neuron:nth-child(1) {
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            animation-delay: 0s;
        }

        .lingoloop-neuron:nth-child(2) {
            top: 30%;
            right: 0;
            animation-delay: 0.3s;
        }

        .lingoloop-neuron:nth-child(3) {
            bottom: 30%;
            right: 0;
            animation-delay: 0.6s;
        }

        .lingoloop-neuron:nth-child(4) {
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            animation-delay: 0.9s;
        }

        .lingoloop-neuron:nth-child(5) {
            top: 30%;
            left: 0;
            animation-delay: 1.2s;
        }

        @keyframes lingoloop-neuronFire {
            0%, 100% { 
                opacity: 0.3;
                transform: scale(1);
                box-shadow: 0 0 5px rgba(79, 172, 254, 0.3);
            }
            50% { 
                opacity: 1;
                transform: scale(1.5);
                box-shadow: 0 0 15px rgba(79, 172, 254, 0.8);
            }
        }

        .lingoloop-generation-title {
            font-size: 32px;
            font-weight: 600;
            text-align: center;
            margin-bottom: 40px;
            background: linear-gradient(45deg, #4facfe, #00f2fe);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .lingoloop-sparkle {
            animation: lingoloop-sparkle 1.5s ease-in-out infinite;
        }

        @keyframes lingoloop-sparkle {
            0%, 100% { transform: rotate(0deg) scale(1); }
            50% { transform: rotate(180deg) scale(1.2); }
        }

        .lingoloop-process-steps {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .lingoloop-step {
            text-align: center;
            opacity: 0.4;
            transition: all 0.5s ease;
            padding: 20px;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            min-width: 120px;
        }

        .lingoloop-step.active {
            opacity: 1;
            background: rgba(79, 172, 254, 0.2);
            border-color: rgba(79, 172, 254, 0.5);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
        }

        .lingoloop-step-icon {
            font-size: 32px;
            margin-bottom: 10px;
        }

        .lingoloop-step-text {
            font-size: 14px;
            font-weight: 500;
        }

        .lingoloop-code-rain {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            opacity: 0.1;
            z-index: 1;
        }

        .lingoloop-code-line {
            position: absolute;
            font-family: 'Courier New', monospace;
            font-size: 14px;
            color: #4facfe;
            animation: lingoloop-codeRain 8s linear infinite;
        }

        .lingoloop-code-line:nth-child(1) {
            left: 10%;
            animation-delay: 0s;
        }

        .lingoloop-code-line:nth-child(2) {
            left: 30%;
            animation-delay: 2s;
        }

        .lingoloop-code-line:nth-child(3) {
            left: 50%;
            animation-delay: 4s;
        }

        .lingoloop-code-line:nth-child(4) {
            left: 70%;
            animation-delay: 6s;
        }

        .lingoloop-code-line:nth-child(5) {
            left: 90%;
            animation-delay: 8s;
        }

        @keyframes lingoloop-codeRain {
            0% {
                top: -50px;
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                top: 100vh;
                opacity: 0;
            }
        }

        .lingoloop-loading-bar {
            width: 300px;
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
            margin: 40px 0;
            overflow: hidden;
            position: relative;
        }

        .lingoloop-loading-fill {
            height: 100%;
            background: linear-gradient(90deg, #4facfe, #00f2fe);
            width: 0%;
            border-radius: 3px;
            animation: lingoloop-loadingFill 8s ease-in-out infinite;
            position: relative;
        }

        .lingoloop-loading-fill::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 20px;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
            animation: lingoloop-loadingShimmer 1.5s ease-in-out infinite;
        }

        @keyframes lingoloop-loadingFill {
            0% { width: 0%; }
            100% { width: 100%; }
        }

        @keyframes lingoloop-loadingShimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        .lingoloop-ai-thoughts {
            text-align: center;
            margin-top: 30px;
            height: 60px;
            position: relative;
        }

        .lingoloop-thought {
            position: absolute;
            width: 100%;
            top: 0;
            left: 0;
            font-size: 18px;
            opacity: 0;
            transition: opacity 0.5s ease;
            color: #b3d9ff;
            font-style: italic;
        }

        .lingoloop-thought.active {
            opacity: 1;
        }

        /* ===== RESPONSIVIDADE PARA NOVAS TELAS ===== */
        @media (max-width: 768px) {
            .lingoloop-welcome-title {
                font-size: 36px;
            }
            
            .lingoloop-welcome-subtitle {
                font-size: 18px;
            }
            
            .lingoloop-features-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .lingoloop-typewriter {
                font-size: 18px;
            }
            
            .lingoloop-generation-title {
                font-size: 24px;
            }
            
            .lingoloop-process-steps {
                gap: 15px;
            }
            
            .lingoloop-step {
                min-width: 100px;
                padding: 15px;
            }
            
            .lingoloop-loading-bar {
                width: 250px;
            }
            
            .lingoloop-thought {
                font-size: 16px;
            }
        }

        @media (max-width: 480px) {
            .lingoloop-magic-container {
                padding: 20px;
            }
            
            .lingoloop-welcome-title {
                font-size: 28px;
            }
            
            .lingoloop-welcome-subtitle {
                font-size: 16px;
            }
            
            .lingoloop-generation-title {
                font-size: 20px;
            }
            
            .lingoloop-process-steps {
                flex-direction: column;
                align-items: center;
            }
            
            .lingoloop-loading-bar {
                width: 200px;
            }
        }

        /* ===== ESTILOS PARA MENSAGENS DE ERRO ===== */
        .lingoloop-message-error {
            border-left: 4px solid #ff4757 !important;
            background-color: rgba(255, 71, 87, 0.1) !important;
            animation: errorPulse 2s ease-in-out;
        }

        .lingoloop-message-error .lingoloop-message-content {
            color: #ff6b7a !important;
        }

        .error-details {
            background-color: rgba(255, 71, 87, 0.05);
            border: 1px solid rgba(255, 71, 87, 0.2);
            border-radius: 8px;
            padding: 15px;
            margin: 10px 0;
        }

        .error-header {
            font-weight: 600;
            color: #ff4757;
            margin-bottom: 10px;
            font-size: 15px;
        }

        .error-content {
            color: #ff6b7a;
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
            font-size: 13px;
            line-height: 1.6;
            background-color: rgba(0, 0, 0, 0.3);
            padding: 10px;
            border-radius: 4px;
            margin: 10px 0;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .error-footer {
            color: #a0a0a0;
            font-size: 12px;
            font-style: italic;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 71, 87, 0.1);
        }

        @keyframes errorPulse {
            0% { 
                box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
                transform: scale(1);
            }
            50% { 
                box-shadow: 0 0 20px 5px rgba(255, 71, 87, 0.2);
                transform: scale(1.02);
            }
            100% { 
                box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
                transform: scale(1);
            }
        }

        /* ===== NOTIFICAÇÕES DE PUBLICAÇÃO ===== */
        .lingoloop-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10002;
            max-width: 400px;
            font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
            border-radius: 12px;
            padding: 20px;
            color: white;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.2);
            animation: slideInFromRight 0.4s ease-out, fadeOut 0.3s ease-in 12s forwards;
            backdrop-filter: blur(10px);
        }

        .lingoloop-notification.success {
            background: linear-gradient(135deg, #10b981, #059669);
        }

        .lingoloop-notification.error {
            background: linear-gradient(135deg, #ef4444, #dc2626);
        }

        .lingoloop-notification.warning {
            background: linear-gradient(135deg, #f97316, #ea580c);
        }

        .lingoloop-notification-header {
            font-weight: bold;
            margin-bottom: 10px;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .lingoloop-notification-body {
            font-size: 14px;
            margin-bottom: 15px;
            opacity: 0.9;
            line-height: 1.4;
        }

        .lingoloop-notification-footer {
            font-size: 12px;
            opacity: 0.8;
            line-height: 1.3;
        }

        .lingoloop-notification-close {
            position: absolute;
            top: 10px;
            right: 15px;
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.3s ease;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .lingoloop-notification-close:hover {
            opacity: 1;
        }

        .lingoloop-notification-action {
            display: inline-block;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            padding: 8px 16px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            font-size: 14px;
        }

        .lingoloop-notification-action:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-1px);
        }

        /* Mensagem de progresso da publicação */
        .lingoloop-publish-progress {
            margin-top: 15px;
            padding: 15px;
            background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
            border: 2px solid #cce7ff;
            border-radius: 8px;
            text-align: center;
            font-size: 14px;
            color: #2563eb;
            font-weight: 500;
            animation: progressPulse 2s ease-in-out infinite;
        }

        @keyframes slideInFromRight {
            0% {
                transform: translateX(100%);
                opacity: 0;
            }
            100% {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes fadeOut {
            0% {
                opacity: 1;
            }
            100% {
                opacity: 0;
                transform: translateX(100%);
            }
        }

        /* ===== MODAL DE CRIAÇÃO DE PÁGINA ===== */
        .lingoloop-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(4px);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: modalFadeIn 0.3s ease;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* 🔒 Forçar cores legíveis no modal (evitar overrides do tema) */
        #lingoloop-create-page-modal,
        #lingoloop-create-page-modal .lingoloop-modal-content {
            color: #EEEEEE !important;
        }
        #lingoloop-create-page-modal .lingoloop-modal-content a,
        #lingoloop-create-page-modal .lingoloop-modal-content p,
        #lingoloop-create-page-modal .lingoloop-modal-content span,
        #lingoloop-create-page-modal .lingoloop-modal-content small,
        #lingoloop-create-page-modal .lingoloop-modal-content label {
            color: #EEEEEE !important;
        }
        #lingoloop-create-page-modal .lingoloop-input::placeholder {
            color: #AAAAAA !important;
        }

        #lingoloop-create-page-modal .lingoloop-modal-content {
            background: #1E1E1E;
            border-radius: 16px;
            width: 90%;
            max-width: 500px;
            border: 1px solid #333333;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from { 
                opacity: 0;
                transform: translateY(-20px) scale(0.95);
            }
            to { 
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        #lingoloop-create-page-modal .lingoloop-modal-header {
            padding: 20px 24px;
            border-bottom: 1px solid #333333;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        #lingoloop-create-page-modal .lingoloop-modal-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: #EEEEEE !important;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        #lingoloop-create-page-modal .lingoloop-modal-header h3 i {
            color: #4A9EFF;
        }

        #lingoloop-create-page-modal .lingoloop-modal-close {
            background: none;
            border: none;
            color: #AAAAAA;
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: all 0.2s ease;
        }

        #lingoloop-create-page-modal .lingoloop-modal-close:hover {
            background: #333333;
            color: #EEEEEE;
        }

        #lingoloop-create-page-modal .lingoloop-modal-body {
            padding: 24px;
        }

        #lingoloop-create-page-modal .lingoloop-form-group {
            margin-bottom: 0;
        }

        #lingoloop-create-page-modal .lingoloop-form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #EEEEEE;
            font-size: 14px;
        }

        #lingoloop-create-page-modal .lingoloop-input {
            width: 100%;
            padding: 12px 16px;
            background: #2A2A2A;
            border: 1px solid #444444;
            border-radius: 8px;
            color: #EEEEEE;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        #lingoloop-create-page-modal .lingoloop-input:focus {
            outline: none;
            border-color: #4A9EFF;
            box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
        }

        #lingoloop-create-page-modal .lingoloop-help-text {
            display: block;
            margin-top: 6px;
            font-size: 12px;
            color: #AAAAAA;
        }

        #lingoloop-create-page-modal .lingoloop-modal-footer {
            padding: 16px 24px;
            border-top: 1px solid #333333;
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }

        #lingoloop-create-page-modal .lingoloop-btn {
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        #lingoloop-create-page-modal .lingoloop-btn-secondary {
            background: #333333;
            color: #EEEEEE;
        }

        #lingoloop-create-page-modal .lingoloop-btn-secondary:hover {
            background: #444444;
        }

        #lingoloop-create-page-modal .lingoloop-btn-primary {
            background: linear-gradient(135deg, #4A9EFF 0%, #357ABD 100%);
            color: #FFFFFF;
            box-shadow: 0 2px 8px rgba(74, 158, 255, 0.2);
        }

        #lingoloop-create-page-modal .lingoloop-btn-primary:hover {
            background: linear-gradient(135deg, #357ABD 0%, #2A5F99 100%);
            box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
            transform: translateY(-1px);
        }

        #lingoloop-create-page-modal .lingoloop-btn-primary:active {
            transform: translateY(0);
        }

        @keyframes progressPulse {
            0%, 100% {
                box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
            }
            50% {
                box-shadow: 0 0 20px 5px rgba(37, 99, 235, 0.1);
            }
        }

        /* Responsividade para notificações */
        @media (max-width: 768px) {
            .lingoloop-notification {
                top: 10px;
                right: 10px;
                left: 10px;
                max-width: none;
                padding: 15px;
            }
            
            .lingoloop-notification-header {
                font-size: 15px;
            }
            
            .lingoloop-notification-body {
                font-size: 13px;
            }
            
            .lingoloop-notification-action {
                padding: 6px 12px;
                font-size: 13px;
            }
        }

        /* ===== MODO TELA CHEIA ===== */
        #lingoloop-container.lingoloop-fullscreen {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            z-index: 999999 !important;
            background-color: #121212 !important;
        }

        #lingoloop-container.lingoloop-fullscreen #lingoloop-preview-area {
            flex: 1 !important;
            width: 100% !important;
            border-right: none !important;
        }

        #lingoloop-container.lingoloop-fullscreen #lingoloop-chat-area {
            display: none !important;
        }

        /* Iframe em tela cheia ocupa toda a área */
        #lingoloop-container.lingoloop-fullscreen #lingoloop-site-frame {
            width: 100% !important;
            height: calc(100vh - 40px) !important;
            border: none !important;
            flex: 1 1 auto !important;
        }

        /* Abas em tela cheia com botão de voltar visível */
        #lingoloop-container.lingoloop-fullscreen #lingoloop-tabs {
            position: relative !important;
            background-color: #2A2A2A !important;
            padding: 0 12px !important;
            justify-content: space-between !important;
        }

        /* Adicionar um texto informativo quando em tela cheia */
        #lingoloop-container.lingoloop-fullscreen #lingoloop-tabs::after {
            content: "ESC para sair";
            position: absolute;
            right: 120px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            color: #FFFFFF;
            font-weight: 500;
            pointer-events: none;
            white-space: nowrap;
            z-index: 10;
            background-color: rgba(0, 0, 0, 0.8);
            padding: 4px 8px;
            border-radius: 4px;
            border: 1px solid #555;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
        }

        /* Botão de tela cheia - Estilo SaaS Minimalista */
        #lingoloop-fullscreen-toggle-btn {
            background: transparent !important;
            color: #94a3b8 !important;
            border: 1px solid rgba(148, 163, 184, 0.25) !important;
            padding: 6px 10px !important;
            border-radius: 6px !important;
            font-size: 12px !important;
            font-weight: 500 !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 6px !important;
        }

        #lingoloop-fullscreen-toggle-btn:hover {
            background: rgba(148, 163, 184, 0.08) !important;
            color: #e2e8f0 !important;
            border-color: rgba(148, 163, 184, 0.4) !important;
        }

        #lingoloop-fullscreen-toggle-btn:active {
            background: rgba(148, 163, 184, 0.12) !important;
        }

        #lingoloop-fullscreen-toggle-btn svg {
            width: 14px !important;
            height: 14px !important;
            flex-shrink: 0 !important;
        }

        /* Animação suave para transição de tela cheia */
        #lingoloop-container {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        #lingoloop-preview-area {
            transition: flex 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        #lingoloop-chat-area {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        /* Media query para dispositivos móveis em tela cheia */
        @media (max-width: 768px) {
            #lingoloop-container.lingoloop-fullscreen #lingoloop-tabs::after {
                display: none; /* Ocultar texto em dispositivos móveis */
            }
        }

        /* Full-bleed simplificado: evitar deslocamentos aplicando apenas resets horizontais */
        #lingoloop-container {
            width: 100% !important;
            max-width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        /* ===== PLACEHOLDERS DE IMAGEM ===== */
        .llp-image-placeholder {
            position: relative !important;
            background: linear-gradient(135deg, #1e293b, #334155) !important;
            border: 2px dashed #475569 !important;
            transition: all 0.25s ease !important;
            cursor: pointer !important;
            user-select: none !important;
        }

        .llp-image-placeholder:hover {
            border-color: #6366f1 !important;
            background: linear-gradient(135deg, #252f42, #3b4758) !important;
            transform: scale(1.01) !important;
        }

        .llp-image-placeholder > div:not(img) {
            pointer-events: none !important;
            font-family: 'Inter', system-ui, sans-serif !important;
        }

        .llp-image-placeholder img {
            position: absolute !important;
            inset: 0 !important;
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            transition: opacity 0.25s ease !important;
        }

        /* Estados quando a imagem está carregada */
        .llp-image-placeholder img[src]:not([src=""]) {
            opacity: 1 !important;
        }

        .llp-image-placeholder:has(img[src]:not([src=""])) {
            background: transparent !important;
            border: none !important;
        }

        .llp-image-placeholder:has(img[src]:not([src=""])) > div:not(img) {
            display: none !important;
        }

        /* ===== CONTROLES DE DIMENSIONAMENTO DE IMAGEM ===== */
        .llp-image-controls {
            background: #111827 !important;
            border: 1px solid rgba(255,255,255,0.1) !important;
            border-radius: 6px !important;
            padding: 8px !important;
        }

        .llp-size-btn, .llp-aspect-btn, .llp-fit-btn {
            background: #374151 !important;
            border: none !important;
            color: #e5e7eb !important;
            border-radius: 4px !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            font-family: 'Inter', system-ui, sans-serif !important;
        }

        .llp-size-btn:hover, .llp-aspect-btn:hover, .llp-fit-btn:hover {
            background: #4b5563 !important;
            transform: scale(1.05) !important;
        }

        .llp-size-btn:active, .llp-aspect-btn:active, .llp-fit-btn:active {
            transform: scale(0.95) !important;
        }

        .llp-aspect-btn.active, .llp-fit-btn.active {
            background: #2563eb !important;
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3) !important;
        }

        .llp-width-slider, .llp-radius-slider {
            -webkit-appearance: none !important;
            appearance: none !important;
            background: #374151 !important;
            border-radius: 10px !important;
            height: 6px !important;
            outline: none !important;
            cursor: pointer !important;
        }

        .llp-width-slider::-webkit-slider-thumb, .llp-radius-slider::-webkit-slider-thumb {
            -webkit-appearance: none !important;
            appearance: none !important;
            width: 16px !important;
            height: 16px !important;
            border-radius: 50% !important;
            background: #2563eb !important;
            cursor: pointer !important;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
            transition: all 0.2s ease !important;
        }

        .llp-width-slider::-webkit-slider-thumb:hover, .llp-radius-slider::-webkit-slider-thumb:hover {
            background: #3b82f6 !important;
            transform: scale(1.2) !important;
        }

        .llp-width-slider::-moz-range-thumb, .llp-radius-slider::-moz-range-thumb {
            width: 16px !important;
            height: 16px !important;
            border-radius: 50% !important;
            background: #2563eb !important;
            cursor: pointer !important;
            border: none !important;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
        }

        .llp-width-display, .llp-radius-display {
            background: #1f2937 !important;
            padding: 2px 6px !important;
            border-radius: 4px !important;
            border: 1px solid rgba(255,255,255,0.1) !important;
            min-width: 40px !important;
            text-align: center !important;
        }


        /* === Layout Hardening: evitar seções aninhadas visualmente ou largura parcial === */
        section, .llp-section, .lingoloop-section {
            display: block;
            width: 100%;
            position: relative;
        }

        /* Prevenir que uma section interna grude na anterior por margin collapse */
        section + section, .lingoloop-section + .lingoloop-section, .llp-section + .llp-section {
            margin-top: 0;
            border-top: 1px solid rgba(0,0,0,0.04);
        }

        /* Separador visual opcional (injetado pelo balanceador) */
        /* Comentários <!-- llp:section-separator --> podem ser estilizados se desejado */

        /* Evitar corte de elementos com posição absoluta dentro de seções */
        section, .lingoloop-section { overflow: visible; }

        /* Garantir espaçamento mínimo para seções vazias */
        section:empty { min-height: 120px; }

        /* Se detecção de container estreito ocorrer, permitir expansão full bleed com data atributo futuro */
        [data-llp-full-bleed="true"] { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

        /* Fix para imagens grandes não forçarem scroll lateral quando full-bleed não é usado */
        section img, .lingoloop-section img { max-width: 100%; height: auto; }

        /* Utility para debugar nesting (ativar manualmente adicionando body.llp-debug-nesting) */
        body.llp-debug-nesting section { outline: 1px dashed rgba(0,128,255,0.35); }
        body.llp-debug-nesting section section { outline-color: rgba(255,0,128,0.45); }

        /* === Modal inline de texto/link (iframe) === */
        .llp-textlink-overlay {
            position: fixed;
            inset: 0;
            padding: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2147483000;
            background: radial-gradient(110% 130% at 50% 15%, rgba(56, 189, 248, 0.25), rgba(2, 6, 23, 0.95));
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            animation: llpTextlinkFade 0.18s ease;
        }

        .llp-textlink-modal {
            width: min(640px, calc(100% - 32px));
            max-height: 90vh;
            overflow-y: auto;
            background: rgba(4, 8, 20, 0.98);
            border: 1px solid rgba(148, 163, 184, 0.25);
            border-radius: 20px;
            padding: 28px 30px;
            box-shadow: 0 40px 120px rgba(2, 6, 23, 0.65);
            color: #e2e8f0;
            font-family: 'Inter','Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
            animation: llpTextlinkSlide 0.26s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .llp-tl-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 18px;
        }

        .llp-tl-eyebrow {
            margin: 0;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(125, 211, 252, 0.9);
        }

        .llp-tl-title {
            margin: 2px 0 4px;
            font-size: 18px;
            font-weight: 600;
            color: #f8fafc;
        }

        .llp-tl-subtitle {
            margin: 0;
            font-size: 13px;
            color: #94a3b8;
        }

        .llp-tl-icon-btn {
            width: 36px;
            height: 36px;
            border-radius: 999px;
            border: 1px solid rgba(148, 163, 184, 0.4);
            background: rgba(30, 41, 59, 0.7);
            color: #cbd5f5;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
            transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
        }

        .llp-tl-icon-btn:hover {
            border-color: rgba(56, 189, 248, 0.9);
            background: rgba(14, 116, 144, 0.4);
            transform: translateY(-2px);
        }

        .llp-tl-body {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .llp-tl-field {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 14px 16px;
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 14px;
            background: rgba(8, 12, 30, 0.8);
        }

        .llp-tl-field.is-disabled {
            opacity: 0.55;
        }

        .llp-tl-label {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #cbd5f5;
        }

        .llp-tl-input,
        .llp-tl-textarea {
            width: 100%;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: rgba(2, 6, 23, 0.65);
            color: #f8fafc;
            font-size: 13px;
            padding: 10px 12px;
            transition: border 0.2s ease, box-shadow 0.2s ease;
        }

        .llp-tl-input:focus,
        .llp-tl-textarea:focus {
            outline: none;
            border-color: rgba(56, 189, 248, 0.7);
            box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
        }

        .llp-tl-input[disabled] {
            cursor: not-allowed;
        }

        .llp-tl-tip {
            margin: 0;
            font-size: 12px;
            color: #94a3b8;
        }

        .llp-tl-color-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
        }

        .llp-tl-color-card {
            flex: 1 1 220px;
            min-width: 220px;
            padding: 14px;
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 14px;
            background: rgba(8, 12, 30, 0.85);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .llp-tl-color-picker {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .llp-tl-color-input {
            width: 52px;
            height: 44px;
            border: none;
            border-radius: 12px;
            background: transparent;
            cursor: pointer;
        }

        .llp-tl-switch {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: #cbd5f5;
        }

        .llp-tl-switch input {
            width: 18px;
            height: 18px;
        }

        .llp-tl-gradient-wrapper {
            display: none;
            flex-direction: column;
            gap: 12px;
            padding: 14px;
            border-radius: 14px;
            border: 1px solid rgba(148, 163, 184, 0.2);
            background: rgba(10, 16, 35, 0.9);
        }

        .llp-gradient-preview {
            width: 100%;
            height: 56px;
            border-radius: 12px;
            border: 1px solid rgba(148, 163, 184, 0.25);
            position: relative;
            overflow: hidden;
        }

        .llp-gradient-preview-label {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 600;
            color: rgba(248, 250, 252, 0.85);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            mix-blend-mode: difference;
        }

        .llp-gradient-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
            transform: translateX(-100%);
            transition: transform 0.35s ease;
        }

        .llp-gradient-panel {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .llp-gradient-row {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }

        .llp-gradient-row select,
        .llp-gradient-row input[type="text"] {
            border-radius: 8px;
            border: 1px solid rgba(148, 163, 184, 0.4);
            background: rgba(2, 6, 23, 0.6);
            color: #f8fafc;
            padding: 6px 10px;
            font-size: 12px;
        }

        .llp-gradient-extra-colors {
            display: none;
            flex-direction: column;
            gap: 8px;
        }

        .llp-gradient-extra-colors > div {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .llp-gradient-extra-colors button {
            border: none;
            border-radius: 6px;
            padding: 4px 8px;
            background: #dc3545;
            color: #fff;
            cursor: pointer;
        }

        .llp-tl-gradient-toggle,
        .llp-tl-remove-gradient,
        .llp-gradient-add-color {
            border-radius: 999px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: transparent;
            color: #f8fafc;
            padding: 6px 14px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease;
        }

        .llp-tl-gradient-toggle:hover,
        .llp-tl-remove-gradient:hover,
        .llp-gradient-add-color:hover {
            border-color: rgba(56, 189, 248, 0.7);
            background: rgba(14, 165, 233, 0.2);
        }

        .llp-tl-footer {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 20px;
            padding-top: 18px;
            border-top: 1px solid rgba(148, 163, 184, 0.18);
        }

        .llp-tl-btn {
            min-width: 120px;
            border-radius: 999px;
            padding: 10px 18px;
            font-size: 13px;
            font-weight: 600;
            border: 1px solid transparent;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .llp-tl-btn.secondary {
            border-color: rgba(148, 163, 184, 0.4);
            background: transparent;
            color: #cbd5f5;
        }

        .llp-tl-btn.primary {
            background: linear-gradient(120deg, #34d399, #10b981);
            color: #041014;
            box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
        }

        .llp-tl-btn:hover {
            transform: translateY(-1px);
        }

        @keyframes llpTextlinkFade {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes llpTextlinkSlide {
            from { opacity: 0; transform: translateY(16px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        @media (max-width: 540px) {
            .llp-textlink-modal {
                padding: 22px;
                border-radius: 16px;
            }
            .llp-tl-header {
                flex-direction: column;
            }
            .llp-tl-footer {
                flex-direction: column;
            }
            .llp-tl-btn {
                width: 100%;
            }
        }

        /* ===== CORREÇÃO DE IMAGENS - SLOTS PREENCHIDOS ===== */
        /* Garantir que imagens preencham completamente seus containers */

        /* Container picture que envolve imagens de slots */
        .llp-image-slot-filled,
        picture.llp-image-slot-filled {
            display: block;
            width: 100%;
            height: 100%;
            min-height: 200px; /* Altura mínima para evitar colapso */
            position: relative;
            overflow: hidden;
            border-radius: inherit;
        }

        /* Imagens dentro de slots preenchidos */
        .llp-image-slot-filled img,
        picture.llp-image-slot-filled img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            object-position: center center !important;
            display: block !important;
            position: absolute !important;
            inset: 0 !important;
        }

        /* Slot vazio aguardando imagem */
        .llp-image-slot {
            display: block;
            width: 100%;
            min-height: 200px;
            position: relative;
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            border: 2px dashed #475569;
            border-radius: 8px;
            overflow: hidden;
        }

        /* 🔧 CORREÇÃO: Placeholder de texto dentro do slot vazio - ESCONDIDO em produção */
        /* Apenas visível no editor para indicar onde adicionar imagem */
        .llp-image-slot .llp-image-ph {
            display: none !important; /* 🔧 Nunca exibir texto de placeholder em páginas publicadas */
            visibility: hidden !important;
        }

        /* Apenas mostrar no contexto do editor (quando há classe de edição no body ou container) */
        body.lingoloop-editor .llp-image-slot .llp-image-ph,
        .llp-editor-mode .llp-image-slot .llp-image-ph {
            display: flex !important;
            visibility: visible !important;
            position: absolute;
            inset: 0;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            font-size: 14px;
            text-align: center;
            padding: 20px;
        }

        /* 🔧 CORREÇÃO GENÉRICA: Todos os containers de imagem comuns */
        .card-image,
        .image-container,
        .service-image,
        .team-photo,
        .hero-image,
        .gallery-item,
        .portfolio-image,
        [class*="img-container"],
        [class*="image-wrapper"],
        [class*="photo-wrapper"],
        .hero-visual,
        .hero-media,
        [class*="hero-visual"],
        [class*="hero-media"] {
            position: relative;
            width: 100%;
            min-height: 200px;
            overflow: hidden;
        }

        /* 🔧 CORREÇÃO GENÉRICA: Imagens dentro de containers comuns */
        .card-image img,
        .image-container img,
        .service-image img,
        .team-photo img,
        .hero-image img,
        .gallery-item img,
        .portfolio-image img,
        [class*="img-container"] img,
        [class*="image-wrapper"] img,
        [class*="photo-wrapper"] img,
        .hero-visual img,
        .hero-media img,
        [class*="hero-visual"] img,
        [class*="hero-media"] img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            object-position: center center !important;
            display: block !important;
            position: absolute !important;
            inset: 0 !important;
        }

        /* Imagens em cards/seções - garantir preenchimento */
        .llp-theme-surface-wrapper [class*="card"] .llp-image-slot-filled,
        .llp-theme-surface-wrapper .card .llp-image-slot-filled,
        .llp-theme-surface-wrapper .feature-card .llp-image-slot-filled,
        .llp-theme-surface-wrapper .service-card .llp-image-slot-filled,
        .llp-theme-surface-wrapper .team-card .llp-image-slot-filled,
        .llp-theme-surface-wrapper .gallery-item .llp-image-slot-filled,
        .llp-theme-surface-wrapper .portfolio-item .llp-image-slot-filled,
        [class*="card"] .card-image,
        [class*="card"] .image-container,
        [class*="card"] picture {
            aspect-ratio: 16/10;
            min-height: 180px;
        }

        /* Hero sections - imagens maiores */
        .llp-hero .llp-image-slot-filled,
        [class*="hero"] .llp-image-slot-filled,
        .hero-section .llp-image-slot-filled,
        .hero-section .hero-image,
        [class*="hero"] .hero-image,
        .llp-hero picture,
        .hero-visual picture,
        .hero-visual img,
        [class*="hero-visual"] picture,
        [class*="hero-visual"] img,
        .hero-media picture,
        .hero-media img,
        [class*="hero-media"] picture,
        [class*="hero-media"] img {
            min-height: 400px;
            aspect-ratio: 21/9;
        }

        /* Garantir que imagens gerais em seções preencham quando em containers com altura definida */
        section img,
        .lingoloop-section img,
        .llp-section img {
            max-width: 100%;
        }

        /* Quando a imagem está em um container com altura definida, usar cover */
        [style*="height"] > img,
        [style*="min-height"] > img,
        .llp-image-container img,
        .image-wrapper img,
        .img-container img,
        .photo-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        /* 🔧 FALLBACK HEADER LAYOUT (publicado e preview): centralizar conteúdo do cabeçalho */
        header, .site-header, .app-header, .nav-header, [class*="header"] {
            width: 100%;
            box-sizing: border-box;
        }
        header .container, .site-header .container, .nav-wrapper, .header-inner, .header-content,
        [class*="header"] .container, [class*="header"] .wrapper, [class*="header"] .inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            box-sizing: border-box;
        }
        header nav, .site-header nav, [class*="header"] nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }
        header nav ul, .site-header nav ul, [class*="header"] nav ul {
            display: flex;
            gap: 14px;
            padding: 0;
            margin: 0;
            list-style: none;
            align-items: center;
            flex-wrap: wrap;
        }

        /* 🧩 UI Kit base: containers e seções usadas pelo template engine */
        .ll-section {
            width: 100%;
            box-sizing: border-box;
        }

        .ll-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            box-sizing: border-box;
        }

        .ll-section > .ll-container,
        .ll-section .ll-container {
            width: 100%;
        }

        /* Background images - garantir cover */
        [style*="background-image"] {
            background-size: cover !important;
            background-position: center center !important;
            background-repeat: no-repeat !important;
        }

        /* Suporte a aspect-ratio em containers de imagem comuns */
        .aspect-16-9, .aspect-ratio-16-9 { aspect-ratio: 16/9; }
        .aspect-4-3, .aspect-ratio-4-3 { aspect-ratio: 4/3; }
        .aspect-1-1, .aspect-ratio-1-1, .aspect-square { aspect-ratio: 1/1; }
        .aspect-21-9, .aspect-ratio-21-9 { aspect-ratio: 21/9; }
        .aspect-3-2, .aspect-ratio-3-2 { aspect-ratio: 3/2; }

        .aspect-16-9 img, .aspect-ratio-16-9 img,
        .aspect-4-3 img, .aspect-ratio-4-3 img,
        .aspect-1-1 img, .aspect-ratio-1-1 img, .aspect-square img,
        .aspect-21-9 img, .aspect-ratio-21-9 img,
        .aspect-3-2 img, .aspect-ratio-3-2 img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* ==========================================================
        🧹 PÁGINAS PUBLICADAS - DESATIVAR ESTILOS DE EDIÇÃO
        Estas regras sobrescrevem estilos de edição quando a página
        está em modo de produção (não é o editor)
        ========================================================== */

        /* Detectar páginas publicadas por classe do body */
        body.lingoloop-published-page .llp-image-placeholder,
        body.lingoloop-exact-template .llp-image-placeholder,
        body:not(.lingoloop-generator-active) .llp-image-placeholder:not(.in-editor) {
            border: none !important;
            cursor: default !important;
            background: transparent !important;
            user-select: auto !important;
        }

        body.lingoloop-published-page .llp-image-placeholder:hover,
        body.lingoloop-exact-template .llp-image-placeholder:hover,
        body:not(.lingoloop-generator-active) .llp-image-placeholder:not(.in-editor):hover {
            transform: none !important;
            border: none !important;
            background: transparent !important;
            border-color: transparent !important;
        }

        /* Desativar bordas em colunas e zonas de edição */
        body.lingoloop-published-page .llp-col,
        body.lingoloop-exact-template .llp-col,
        body.lingoloop-published-page [data-llp-inline-zone],
        body.lingoloop-exact-template [data-llp-inline-zone] {
            outline: none !important;
            border: none !important;
        }

        body.lingoloop-published-page .llp-col:hover,
        body.lingoloop-exact-template .llp-col:hover,
        body.lingoloop-published-page [data-llp-inline-zone]:hover,
        body.lingoloop-exact-template [data-llp-inline-zone]:hover {
            outline: none !important;
            background: inherit !important;
        }

        /* Garantir que links funcionem em páginas publicadas */
        body.lingoloop-published-page a,
        body.lingoloop-exact-template a,
        body.lingoloop-published-page header a,
        body.lingoloop-exact-template header a,
        body.lingoloop-published-page [class*="llp-ecom"] a,
        body.lingoloop-exact-template [class*="llp-ecom"] a {
            pointer-events: auto !important;
            cursor: pointer !important;
        }

        /* Remover overlays de edição */
        body.lingoloop-published-page .llp-section-overlay,
        body.lingoloop-exact-template .llp-section-overlay,
        body.lingoloop-published-page .llp-hover-overlay,
        body.lingoloop-exact-template .llp-hover-overlay,
        body.lingoloop-published-page .llp-edit-overlay,
        body.lingoloop-exact-template .llp-edit-overlay {
            display: none !important;
        }

        /* Desativar atributos de edição */
        body.lingoloop-published-page [data-llp-editing],
        body.lingoloop-exact-template [data-llp-editing],
        body.lingoloop-published-page [data-llp-active-target],
        body.lingoloop-exact-template [data-llp-active-target],
        body.lingoloop-published-page [contenteditable="true"],
        body.lingoloop-exact-template [contenteditable="true"] {
            outline: none !important;
            box-shadow: none !important;
            border: none !important;
        }

        /* 🧹 CORREÇÃO CRÍTICA: Desativar TODOS os estilos de edição em páginas publicadas */
        /* Isso é uma camada extra de segurança para páginas publicadas antes das correções */
        body.lingoloop-published-page [data-llp-editable],
        body.lingoloop-exact-template [data-llp-editable],
        body.lingoloop-published-page [data-llp-inline-zone],
        body.lingoloop-exact-template [data-llp-inline-zone],
        body.lingoloop-published-page [data-llp-menu-index],
        body.lingoloop-exact-template [data-llp-menu-index],
        body.lingoloop-published-page [data-llp-original-href],
        body.lingoloop-exact-template [data-llp-original-href],
        body.lingoloop-published-page [data-llp-section-index],
        body.lingoloop-exact-template [data-llp-section-index] {
            outline: none !important;
            box-shadow: none !important;
            border: none !important;
            cursor: pointer !important;
            pointer-events: auto !important;
        }

        /* 🧹 Links de menu devem funcionar normalmente em produção */
        body.lingoloop-published-page a[data-llp-editable="menu-item"],
        body.lingoloop-exact-template a[data-llp-editable="menu-item"],
        body.lingoloop-published-page a[data-llp-original-href],
        body.lingoloop-exact-template a[data-llp-original-href] {
            cursor: pointer !important;
            pointer-events: auto !important;
        }

        /* 🧹 Elementos hover não devem mostrar bordas em produção */
        body.lingoloop-published-page [data-llp-editable]:hover,
        body.lingoloop-exact-template [data-llp-editable]:hover,
        body.lingoloop-published-page .llp-inline-block:hover,
        body.lingoloop-exact-template .llp-inline-block:hover,
        body.lingoloop-published-page .llp-col:hover,
        body.lingoloop-exact-template .llp-col:hover {
            outline: none !important;
            box-shadow: none !important;
            border: none !important;
            background-color: inherit !important;
        }

        /* ===== PROJECT NAME & DROPDOWN ===== */
        .llp-project-name-wrapper {
            position: relative;
            flex: 1;
            min-width: 0;
        }

        .llp-project-name-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            background: linear-gradient(135deg, rgba(74, 158, 255, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
            border: 1px solid rgba(74, 158, 255, 0.25);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            width: 100%;
            max-width: 240px;
        }

        .llp-project-name-btn:hover {
            background: linear-gradient(135deg, rgba(74, 158, 255, 0.18) 0%, rgba(139, 92, 246, 0.12) 100%);
            border-color: rgba(74, 158, 255, 0.4);
            transform: translateY(-1px);
        }

        .llp-project-name-btn:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.3);
        }

        .llp-project-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            background: linear-gradient(135deg, #4a9eff 0%, #8b5cf6 100%);
            border-radius: 8px;
            flex-shrink: 0;
        }

        .llp-project-icon svg {
            color: #fff;
            width: 14px;
            height: 14px;
        }

        .llp-project-name-text {
            flex: 1;
            font-size: 13px;
            font-weight: 600;
            color: #e2e8f0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: left;
        }

        .llp-project-chevron {
            display: flex;
            align-items: center;
            color: #64748b;
            transition: transform 0.2s ease;
        }

        .llp-project-name-btn[aria-expanded="true"] .llp-project-chevron {
            transform: rotate(180deg);
        }

        .llp-project-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            width: 280px;
            background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
            border: 1px solid rgba(74, 158, 255, 0.2);
            border-radius: 16px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            overflow: hidden;
        }

        .llp-project-dropdown.llp-dropdown-open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .llp-dropdown-header {
            padding: 16px 20px;
            background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .llp-dropdown-title {
            font-size: 15px;
            font-weight: 700;
            background: linear-gradient(135deg, #4a9eff 0%, #8b5cf6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .llp-dropdown-credits {
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .llp-credits-label {
            font-size: 11px;
            font-weight: 500;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .llp-credits-value {
            display: flex;
            align-items: baseline;
            gap: 4px;
            margin-bottom: 10px;
        }

        .llp-credits-value #llp-credits-remaining {
            font-size: 28px;
            font-weight: 700;
            color: #10b981;
        }

        .llp-credits-total {
            font-size: 14px;
            color: #64748b;
        }

        .llp-credits-bar {
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
            overflow: hidden;
        }

        .llp-credits-progress {
            height: 100%;
            background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
            border-radius: 3px;
            transition: width 0.5s ease;
            width: 0%;
        }

        .llp-dropdown-actions {
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .llp-dropdown-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 12px 16px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .llp-dropdown-btn svg {
            width: 16px;
            height: 16px;
        }

        .llp-btn-credits {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: #fff;
            border: none;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }

        .llp-btn-credits:hover {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
        }

        .llp-btn-help {
            background: rgba(255, 255, 255, 0.05);
            color: #94a3b8;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .llp-btn-help:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #e2e8f0;
            border-color: rgba(255, 255, 255, 0.2);
        }

        .llp-header-actions {
            display: flex;
            gap: 6px;
            flex-shrink: 0;
        }

        /* Ajuste do header para acomodar project name */
        .lingoloop-chat-header {
            justify-content: space-between;
            align-items: center;
        }

        /* Mobile responsive para project name */
        @media (max-width: 768px) {
            .llp-project-name-btn {
                max-width: 180px;
                padding: 6px 10px;
            }

            .llp-project-name-text {
                font-size: 12px;
            }

            .llp-project-icon {
                width: 24px;
                height: 24px;
            }

            .llp-project-icon svg {
                width: 12px;
                height: 12px;
            }

            .llp-project-dropdown {
                width: calc(100vw - 32px);
                max-width: 300px;
            }
        }

        /* ===== BOTÃO PROJETOS NO DROPDOWN ===== */
        .llp-btn-projects {
            background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
            color: #fff;
            border: none;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        .llp-btn-projects:hover {
            background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
        }

        /* ===== MODAL DE PROJETOS ===== */
        .llp-projects-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .llp-projects-modal.llp-modal-open {
            opacity: 1;
            visibility: visible;
        }

        .llp-projects-modal-content {
            background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
            border: 1px solid rgba(99, 102, 241, 0.3);
            border-radius: 16px;
            width: 90%;
            max-width: 500px;
            max-height: 80vh;
            overflow: hidden;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
            transform: scale(0.9) translateY(20px);
            transition: transform 0.3s ease;
        }

        .llp-modal-open .llp-projects-modal-content {
            transform: scale(1) translateY(0);
        }

        .llp-projects-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .llp-projects-modal-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 700;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .llp-projects-modal-close {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #94a3b8;
            font-size: 24px;
            width: 36px;
            height: 36px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .llp-projects-modal-close:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        .llp-projects-modal-body {
            padding: 16px;
            max-height: 60vh;
            overflow-y: auto;
        }

        .llp-projects-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .llp-projects-loading,
        .llp-projects-empty {
            text-align: center;
            padding: 40px 20px;
            color: #64748b;
            font-size: 14px;
        }

        .llp-project-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 16px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 12px;
            transition: all 0.2s ease;
        }

        .llp-project-item:hover {
            background: rgba(99, 102, 241, 0.1);
            border-color: rgba(99, 102, 241, 0.3);
        }

        .llp-project-item-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
            min-width: 0;
        }

        .llp-project-item-name {
            font-size: 14px;
            font-weight: 600;
            color: #e2e8f0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .llp-project-item-date {
            font-size: 12px;
            color: #64748b;
        }

        .llp-project-item-actions {
            display: flex;
            gap: 8px;
        }

        .llp-project-item .llp-project-load-btn,
        .llp-project-item .llp-project-delete-btn {
            width: 36px;
            height: 36px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .llp-project-item .llp-project-load-btn {
            background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
            color: #fff;
        }

        .llp-project-item .llp-project-load-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
        }

        .llp-project-item .llp-project-delete-btn {
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
        }

        .llp-project-item .llp-project-delete-btn:hover {
            background: rgba(239, 68, 68, 0.2);
        }

        /* ═══════════════════════════════════════════════════════ */
        /* 🤖 AI Model Selector                                   */
        /* ═══════════════════════════════════════════════════════ */
        .llp-ai-model-selector {
            display: inline-flex;
            align-items: center;
            margin-left: 8px;
        }
        .llp-ai-model-select {
            appearance: none;
            -webkit-appearance: none;
            background: rgba(255,255,255,0.08);
            color: inherit;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 6px;
            padding: 4px 24px 4px 8px;
            font-size: 11px;
            cursor: pointer;
            outline: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 6px center;
            transition: border-color .2s, background .2s;
        }
        .llp-ai-model-select:hover {
            border-color: rgba(255,255,255,0.3);
            background-color: rgba(255,255,255,0.12);
        }
        .llp-ai-model-select:focus {
            border-color: #3B82F6;
            box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
        }
        .llp-ai-model-select option {
            background: #1e1e2e;
            color: #e0e0e0;
        }