        /* Controle de Densidade (Zoom): 13px equivale a ~80% de escala nativa do navegador */
        html {
            font-size: 13px;
        }

        /* Estilos personalizados para a aplicação */
        body {
            font-family: 'Inter', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            min-width: 1024px;
            color: #fff;
            overflow-x: auto;
            overflow-y: hidden;
        }

        #animated-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2; /* Abaixo de tudo */
            background-color: #0c0a1a;
        }
        
        #app-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(12, 10, 26, 0.7); /* Overlay para legibilidade */
            z-index: -1;
        }

        .custom-scrollbar::-webkit-scrollbar {
            width: 8px;
        }
        .custom-scrollbar::-webkit-scrollbar-track {
            background: rgba(31, 41, 55, 0.7);
            border-radius: 10px;
        }
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: rgba(75, 85, 99, 0.7);
            border-radius: 10px;
        }
        .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background: rgba(107, 114, 128, 0.7);
        }
        
        @keyframes bounce {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1.0); }
        }
        .animate-bounce-dot {
            animation: bounce 1.4s infinite ease-in-out both;
        }
        @keyframes bounce-subtle {
            0%, 100% { transform: translate(-50%, 0); }
            50% { transform: translate(-50%, -5px); }
        }
        .animate-bounce-subtle {
            animation: bounce-subtle 2s infinite ease-in-out;
        }

        .hidden {
            display: none;
        }
        
        /* Estilos para o Ebook e PDF */
        .ebook-page {
            /* As variáveis de design são aplicadas dinamicamente via :root */
            background: var(--background-style, white);
            color: var(--body-text-color, #4a5568);
            font-family: var(--body-font, serif);
            width: 210mm; /* A4 width */
            height: 297mm; /* FIXO: A4 height */
            padding: 20mm !important;
            margin: 1rem auto;
            box-sizing: border-box;
            page-break-after: always;
            position: relative;
            overflow: hidden; /* Garante que nada estique a página */
            transition: margin 0.2s;
        }
        
        /* Counter reset para gamma-step removido para evitar conflitos com numeração via JS */
        
        #add-blank-page-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        #add-blank-page-btn.hidden {
            display: none !important;
            visibility: hidden !important;
        }
        
        /* Regras do painel limpo durante a exportação do PDF (mantidas apenas para remover barras de rolagem e UI do editor) */
        body.exporting-pdf {
            overflow: hidden !important;
            background: #ffffff !important;
        }

        body.exporting-pdf #ebook-render-area {
            align-items: flex-start !important;
            justify-content: flex-start !important;
            width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        /* 
           ATENÇÃO: Não injetamos mais regras de padding/margin na .ebook-page viva durante a exportação.
           Isso estava causando padding duplo (o CSS do painel + o CSS do exporting).
           Toda a formatação (remoção do padding da folha e injeção no content-area) 
           agora ocorre cirurgicamente dentro da função onclone do html2canvas no app.js.
        */

        /* Exceções: Capa e Sumário precisam de flex para centralização vertical */
        body.exporting-pdf #ebook-cover .ebook-content-area,
        body.exporting-pdf #ebook-toc .ebook-content-area,
        body.exporting-pdf #ebook-toc-2 .ebook-content-area {
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            align-items: center !important;
        }

        /* Trava os containers de imagem no PDF para evitar que se expandam ou encolham */
        body.exporting-pdf .gamma-split-image {
            width: 300px !important;
            height: auto !important;
            max-height: 400px !important;
            min-width: 300px !important;
            overflow: hidden !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            background: rgba(255, 255, 255, 0.03) !important;
            border-radius: 1rem !important;
        }

        body.exporting-pdf .gamma-split-view {
            width: 100% !important;
            display: flex !important;
            flex-direction: row !important;
            gap: 20px !important;
            align-items: center !important;
        }
        
        /* Garante que imagens e blocos não quebrem no meio */
        .ebook-block, .editable-image, .gamma-card, .gamma-quote, .gamma-split-view {
            break-inside: avoid;
            page-break-inside: avoid;
        }

        .ebook-content-area {
            width: 100%;
            height: 100%;
            display: block; /* block em vez de flex: permite detecção confiável de overflow via scrollHeight */
            position: relative;
        }

        /* NOVO: Estilos para formato Paisagem */
        .ebook-page.landscape {
            width: 297mm; /* Landscape width */
            height: 210mm; /* Landscape height */
            padding: 15mm;
        }

        #ebook-cover {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            background-size: cover;
            background-position: center;
            color: white;
            position: relative;
        }
        #ebook-cover .ebook-content-area {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        #ebook-cover::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: var(--cover-overlay, rgba(0,0,0,0.6));
            z-index: 1; /* Ensure overlay is above background image but below content */
        }
        #ebook-cover.no-overlay::before {
            background-color: transparent;
        }
        #ebook-cover > * {
            position: relative;
            z-index: 2;
        }
        #ebook-cover h1 {
            font-family: 'Times New Roman', Times, serif;
            font-size: 2.8rem;
            font-weight: bold;
            text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
        }
        #ebook-cover h2 {
            font-family: 'Times New Roman', Times, serif;
            font-size: 1.3rem;
            font-style: italic;
            margin-top: 1rem;
            font-weight: normal;
            text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
        }

        .blank-cover-page {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            color: white;
            position: relative;
            cursor: pointer;
        }

        .blank-cover-page.editable-image-cover {
            outline: 2px dashed #3b82f6;
            transition: filter 0.2s;
        }

        .blank-cover-page.editable-image-cover:hover {
            filter: brightness(1.1) contrast(1.1);
        }

        #ebook-toc, #ebook-toc-2 {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        #ebook-toc .ebook-content-area, #ebook-toc-2 .ebook-content-area {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        #ebook-toc h1, #ebook-toc-2 h1 {
            font-family: var(--heading-font);
            font-size: 2.5rem;
            font-weight: bold;
            text-align: center;
            margin-bottom: 2.5rem;
            color: var(--primary-color);
        }
        #ebook-toc ul, #ebook-toc-2 ul {
            list-style-type: none;
            padding-left: 0;
            column-count: 2;
            column-gap: 2rem;
            width: 100%;
            max-width: 90%;
            margin: 0 auto;
        }
        #ebook-toc li, #ebook-toc-2 li {
            font-family: var(--body-font);
            font-size: 1.1rem;
            margin-bottom: 1rem;
            border-left: 3px solid var(--secondary-color);
            padding-left: 1rem;
            page-break-inside: avoid;
            color: var(--body-text-color);
        }

        .ebook-content h1 {
            font-family: var(--heading-font);
            color: var(--primary-color);
            font-size: 36px;
            font-weight: bold;
            text-align: center;
            margin-top: 3rem;
            margin-bottom: 1.5rem;
        }
        .ebook-content h2 {
            font-family: var(--heading-font);
            color: var(--primary-color);
            font-size: 26px;
            font-weight: bold;
            margin-top: 2.5rem;
            margin-bottom: 1rem;
            border-bottom: 2px solid;
            border-image: linear-gradient(to right, var(--secondary-color), transparent) 1;
            padding-bottom: 0.5rem;
        }
        .ebook-content h3 {
            font-family: var(--heading-font);
            color: var(--primary-color);
            font-size: 22px;
            font-weight: bold;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
        }
        .ebook-content h4, .ebook-content h5, .ebook-content h6 {
            font-family: var(--heading-font);
            color: var(--primary-color);
            font-size: 20px;
            font-weight: bold;
            margin-top: 1rem;
            margin-bottom: 0.5rem;
        }
        .ebook-content p, .ebook-content li {
            font-family: var(--body-font);
            font-size: 17px;
            line-height: 1.7;
            text-align: justify;
            margin-bottom: 0.5rem;
            page-break-inside: avoid;
        }
        .ebook-page img, 
        .ebook-content img,
        .editable-image {
            max-width: 100%;
            height: auto !important;
            object-fit: contain; /* Para imagens soltas, manter a integridade é melhor que cortar */
            border-radius: 1rem;
            margin: 2rem auto;
            display: block;
            border: 1px solid rgba(255,255,255,0.1);
            transition: transform 0.3s ease;
            transform: translateZ(0);
        }

        .ebook-page img:hover,
        .editable-image:hover {
            transform: translateY(-2px);
        }

        /* GAMMA STYLE BLOCKS */
        .gamma-card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 0.75rem;
            margin: 0.25rem 0;
        }
        .gamma-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.5rem;
            border-radius: 1rem;
            transition: all 0.3s ease;
        }
        .gamma-card h3 {
            font-family: var(--heading-font);
            color: var(--primary-color);
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 0.75rem;
        }
        .gamma-card p {
            font-size: 17px;
            margin-bottom: 0;
        }
        
        .gamma-quote {
            border-left: 4px solid var(--secondary-color);
            padding: 1.5rem 2rem;
            margin: 2rem 0;
            background: rgba(var(--secondary-color-rgb), 0.05);
            border-radius: 0 1rem 1rem 0;
            font-style: italic;
            font-size: 17px;
            color: var(--primary-color);
        }

        .gamma-split-view {
            display: flex;
            gap: 2rem;
            align-items: center;
            margin: 2.5rem 0;
        }
        .gamma-split-view.reverse { flex-direction: row-reverse; }
        .gamma-split-content { flex: 1; }
        .gamma-split-image { 
            flex: 1; 
            border-radius: 1rem; 
            overflow: hidden; 
            padding: 0; 
            display: flex;
            justify-content: center;
            align-items: center;
            background: rgba(255, 255, 255, 0.05); /* Fundo sutil para manter a estrutura */
            min-height: 250px;
        }
        .gamma-split-image img {
            width: 100%;
            height: auto !important;
            max-height: 450px;
            object-fit: contain !important;
            border-radius: 1rem;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .gamma-split-image img:hover {
            transform: scale(1.02);
        }

        .gamma-step-item {
            display: flex;
            gap: 1rem;
            margin-bottom: 0.5rem;
            align-items: flex-start;
            position: relative;
        }
        .gamma-step-number {
            background: var(--primary-color);
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            flex-shrink: 0;
            position: relative; /* Adicionado para suporte ao badge de remover */
        }
        /* Garantir que nada seja injetado via CSS que gere números duplicados */
        .gamma-step-number::before, 
        .gamma-step-number::after { 
            content: none !important; 
            display: none !important; 
        }
        
        .gamma-callout {
            background: var(--primary-color);
            color: white;
            padding: 2rem;
            border-radius: 1.5rem;
            text-align: center;
            margin: 1.5rem 0;
        }
        .gamma-callout h3 { color: white; margin-bottom: 1rem; font-size: 22px; }
        .gamma-callout p { color: rgba(255,255,255,0.9); }

        .gamma-hero {
            padding: 4rem 2rem;
            background: var(--primary-color);
            color: white;
            border-radius: 1.5rem;
            margin: 2rem 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }
        .gamma-hero * { color: inherit; }
        .gamma-hero h2,
        .gamma-hero p {
            color: white;
        }

        .gamma-checklist {
            background: rgba(var(--secondary-color-rgb), 0.05);
            padding: 1.5rem;
            border-radius: 1rem;
            margin: 0.25rem 0;
        }
        .gamma-check-item {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 0.5rem;
        }
        .gamma-check-icon {
            color: #10b981;
            font-size: 1.25rem;
            margin-top: 0.25rem;
        }

        .gamma-comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
            margin: 1.5rem 0;
        }
        .gamma-comp-box {
            padding: 1.5rem;
            border-radius: 1rem;
            border: 2px solid transparent;
        }
        .gamma-comp-box.left { border-color: #ef4444; background: rgba(239, 68, 68, 0.05); }
        .gamma-comp-box.right { border-color: #10b981; background: rgba(16, 185, 129, 0.05); }
        .gamma-comp-title { font-weight: bold; font-size: 17px; margin-bottom: 0.5rem; display: block; text-align: center; }

        .gamma-timeline {
            position: relative;
            padding-left: 2rem;
            border-left: 2px dashed var(--secondary-color);
            margin: 1.5rem 0 1.5rem 1rem;
        }
        .gamma-time-item {
            position: relative;
            margin-bottom: 0.5rem;
        }
        .gamma-time-item::before {
            content: '';
            position: absolute;
            left: -2.45rem;
            top: 0.25rem;
            width: 12px;
            height: 12px;
            background: var(--primary-color);
            border-radius: 50%;
        }

        .gamma-spotlight {
            display: flex;
            gap: 2rem;
            margin: 2.5rem 0;
            background: rgba(var(--secondary-color-rgb), 0.03);
            border-radius: 1rem;
            padding: 1.5rem;
            align-items: center;
        }
        .gamma-spotlight-main { flex: 2; }
        .gamma-spotlight-side {
            flex: 1;
            background: var(--primary-color);
            color: white;
            padding: 1.5rem;
            border-radius: 0.75rem;
            font-size: 16px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .gamma-spotlight-side h4 { color: white !important; margin-bottom: 0.5rem; font-weight: bold; font-family: var(--heading-font); }
        .gamma-spotlight-side p { color: rgba(255,255,255,0.9) !important; margin: 0; }

        .gamma-qa {
            margin: 1.5rem 0;
            background: rgba(var(--secondary-color-rgb), 0.02);
            padding: 1rem;
            border-radius: 1rem;
        }
        .gamma-qa-item {
            margin-bottom: 0.5rem;
            padding: 1.25rem;
            border-left: 3px solid var(--primary-color);
            background: white;
            border-radius: 0 0.75rem 0.75rem 0;
        }
        .gamma-qa-question {
            font-weight: bold;
            color: var(--primary-color);
            margin-bottom: 0.75rem;
            display: flex;
            gap: 0.5rem;
            font-family: var(--heading-font);
            font-size: 1.1rem;
        }
        .gamma-qa-answer {
            color: var(--body-text-color);
            opacity: 0.9;
            line-height: 1.6;
            margin: 0;
        }

        @media (max-width: 768px) {
            .gamma-split-view { flex-direction: column; }
            .gamma-split-view.reverse { flex-direction: column; }
        }
        
        .two-column-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            align-items: start;
        }
        .two-column-layout .column h3 {
            font-family: var(--heading-font);
            font-size: 1.4rem;
            font-weight: bold;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }
         .two-column-layout ul {
            list-style-position: inside;
            padding-left: 0.5rem;
        }

        /* Responsive adjustments for two-column-layout */
        @media (max-width: 768px) {
            .two-column-layout {
                grid-template-columns: 1fr; /* Single column on tablets and smaller */
            }
        }

        .ebook-block-wrapper {
            position: relative;
        }

        .ebook-block-wrapper [contenteditable="true"] {
            outline: 2px dashed #3B82F6; /* blue-500 */
            background-color: #EFF6FF; /* blue-50 */
            cursor: text;
        }

        .ebook-block-wrapper:hover {
            background-color: #EFF6FF; /* blue-50 */
        }
        
        .ebook-block-wrapper h1[contenteditable="true"], 
        .ebook-block-wrapper h2[contenteditable="true"], 
        .ebook-block-wrapper h3[contenteditable="true"] {
             background-color: #EFF6FF; /* blue-50 */
        }

        .remove-block-btn {
            position: absolute;
            top: 2px; 
            right: 2px; 
            background-color: #dc2626; /* red-600 */
            color: white;
            font-weight: bold;
            padding: 2px 6px;
            border-radius: 50%;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s ease-in-out;
            z-index: 1001; /* FIX: Acima da toolbar de edição (z-index 1000) */
            line-height: 1; /* ensure 'X' is centered */
            font-size: 0.8rem;
        }

        .ebook-block-wrapper:hover .remove-block-btn,
        .gamma-step-number:hover .remove-block-btn, /* Mostrar botão ao pairar na bolinha */
        .remove-block-btn:hover {
            opacity: 1;
        }

        /* Estilo específico para o badge de remoção da bolinha */
        .remove-block-btn.step-remove-badge {
            top: -5px;
            right: -5px;
            width: 18px;
            height: 18px;
            font-size: 0.65rem;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .remove-page-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: #dc2626;
            color: white;
            font-weight: bold;
            padding: 4px 8px;
            border-radius: 50%;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s ease-in-out;
            z-index: 100;
            line-height: 1;
            font-size: 0.9rem;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ebook-page:hover .remove-page-btn {
            opacity: 1;
        }

        .edit-cover-btn {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #3b82f6;
            color: white;
            font-weight: bold;
            padding: 12px 24px;
            border-radius: 0.5rem;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
            z-index: 100;
            font-size: 1rem;
            white-space: nowrap;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        }

        #ebook-cover:hover .edit-cover-btn {
            opacity: 1;
            visibility: visible;
        }

        .edit-cover-btn.visible {
            opacity: 1;
            visibility: visible;
        }

        #ebook-cover.editable-image-cover {
            cursor: pointer;
            outline: 2px dashed #3b82f6; /* blue-500 */
            transition: filter 0.2s;
        }
        #ebook-cover.editable-image-cover:hover {
            filter: brightness(1.1) contrast(1.1);
        }

        .ebook-content img.editable-image {
            cursor: pointer;
            outline: 2px dashed #3b82f6;
            transition: filter 0.2s;
        }
        .ebook-content img.editable-image:hover {
            filter: brightness(1.1) contrast(1.1);
        }

        .ebook-product-wrapper {
            position: relative;
            flex-shrink: 0;
            page-break-inside: avoid;
            break-inside: avoid;
        }
        .ebook-product-single {
            display: flex;
            flex-direction: column;
            max-width: 100%;
            gap: 1rem;
        }
        .ebook-product-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0;
            padding: 1rem;
            background: #ffffff;
            page-break-inside: avoid;
            break-inside: avoid;
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            position: relative;
        }
        .ebook-product-card img {
            width: 100%;
            max-width: 100%;
            min-height: 180px;
            height: auto;
            object-fit: cover;
            border-radius: 10px;
            display: block !important;
            margin-bottom: 1rem;
            visibility: visible !important;
        }
        .ebook-product-card h3 {
            margin: 0 0 0.5rem 0;
            width: 100%;
            text-align: center;
            font-size: 1.1rem;
            font-weight: 600;
            color: #000000;
            display: block !important;
        }
        .ebook-product-card .ebook-cta-button {
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            margin-top: 0;
            padding: 0.65rem 1.5rem;
            background: #22c55e;
            color: white;
            font-weight: bold;
            border-radius: 9999px;
            text-align: center;
            text-decoration: none;
            max-width: 200px;
            margin-left: auto;
            margin-right: auto;
            visibility: visible !important;
        }
        .ebook-product-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }
        @media (max-width: 480px) {
            .ebook-product-grid { grid-template-columns: 1fr; }
        }

        #block-toolbox {
            min-width: 150px;
            max-width: 150px;
            padding: 1rem;
            pointer-events: all;
            left: 1rem;
            top: 100px;
        }

        .draggable-block-item {
            cursor: grab;
            user-select: none;
            background-color: #1F2937;
            color: #D1D5DB;
        }

        .draggable-block-item svg {
            width: 1.5rem;
            height: 1.5rem;
            margin-bottom: 0.25rem;
        }

        .draggable-block-item span {
            font-size: 0.75rem;
            text-align: center;
        }

        .draggable-block-item:active {
            cursor: grabbing;
        }

        .drag-over-top, .drag-over-bottom {
            position: relative;
        }
        .drag-over-top::before, .drag-over-bottom::before {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            height: 6px;
            background-color: #3b82f6;
            z-index: 100;
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
            border-radius: 3px;
        }
        .drag-over-top::before {
            top: -2px;
        }
        .drag-over-bottom::before {
            bottom: -2px;
        }

        .dragging {
            opacity: 0.5;
            outline: 2px dashed #3b82f6;
        }

        .cta-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: auto;
            min-height: 48px;
            max-width: 300px;
            padding: 12px 24px;
            margin: 15px auto;
            background-color: var(--secondary-color);
            color: white;
            text-align: center;
            text-decoration: none;
            border-radius: 8px;
            font-weight: bold;
            font-size: 1.1em;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s ease;
            page-break-inside: avoid;
            white-space: normal;
            word-break: break-word;
            line-height: 1.3;
        }

        .cta-button:hover {
            background-color: var(--primary-color);
            transform: translateY(-2px);
        }

        .ebook-block-wrapper .cta-button[contenteditable="true"] {
            outline: 2px dashed #3b82f6;
            background-color: #eff6ff;
            color: #000;
        }

        .ebook-content img.main-chapter-img {
            width: 100%;
            max-height: 320px;
            object-fit: contain;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .gamma-steps {
            margin: 2rem 0;
        }
        
        .gamma-step-item, .gamma-check-item, .gamma-card, .gamma-time-item, .gamma-qa-item {
            position: relative;
        }

        .gamma-step-item:hover .remove-block-btn,
        .gamma-check-item:hover .remove-block-btn,
        .gamma-card:hover .remove-block-btn,
        .gamma-time-item:hover .remove-block-btn,
        .gamma-qa-item:hover .remove-block-btn {
            opacity: 1;
        }

        .gamma-step-text p {
            margin-bottom: 0;
            text-align: left;
        }

        .gamma-quote {
            background: rgba(0, 0, 0, 0.03);
        }

        .ebook-cta-button {
            display: block;
            padding: 1rem 2rem;
            background-color: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 0.75rem;
            font-weight: bold;
            text-align: center;
            margin: 1.5rem auto;
            transition: transform 0.2s ease, opacity 0.2s ease;
            cursor: pointer;
            border: none;
            width: fit-content;
        }
        .ebook-cta-button:hover {
            transform: scale(1.05);
            opacity: 0.9;
        }
        .ebook-button-wrapper {
            text-align: center;
            width: 100%;
        }

        .text-edit-toolbar {
            transition: transform 0.1s ease-out, opacity 0.1s ease-out;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-10px);
            position: absolute;
            z-index: 1000;
            background-color: #1f2937;
            border: 1px solid #4b5563;
            border-radius: 0.5rem;
            padding: 0.5rem;
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            min-width: 250px;
        }
        .text-edit-toolbar.active {
            opacity: 1;
            pointer-events: all;
            transform: translateY(0);
        }

        #ebook-text-edit-toolbar {
            position: relative !important;
            transform: none !important;
            opacity: 1 !important;
            pointer-events: all !important;
            width: 100% !important;
            margin-bottom: 1rem !important;
            display: none;
            justify-content: center !important;
            box-shadow: none !important;
            border-color: #374151 !important;
            background-color: #1f2937 !important;
            z-index: 10;
        }

        #ebook-text-edit-toolbar:not(.hidden) {
            display: flex !important;
        }

        .text-edit-toolbar .toolbar-btn {
            background-color: #374151;
            color: #d1d5db;
            padding: 0.4rem 0.6rem;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            font-weight: 600;
            transition: background-color 0.2s ease;
        }
        .text-edit-toolbar .toolbar-btn:hover {
            background-color: #3b82f6;
        }
        .text-edit-toolbar .toolbar-btn.active {
            background-color: #3b82f6;
            color: white;
        }
        .text-edit-toolbar .color-picker {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            width: 2rem;
            height: 2rem;
            border: none;
            background: none;
            cursor: pointer;
            border-radius: 0.375rem;
            overflow: hidden;
            flex-shrink: 0;
        }
        .text-edit-toolbar .color-picker::-webkit-color-swatch-wrapper {
            padding: 0;
        }
        .text-edit-toolbar .color-picker::-webkit-color-swatch {
            border: 1px solid #4b5563;
            border-radius: 0.375rem;
        }
        .text-edit-toolbar .color-picker::-moz-color-swatch {
            border: 1px solid #4b5563;
            border-radius: 0.375rem;
        }

        /* Spinner/stepper maior e mais visível para controle de tamanho da fonte */
        .font-size-input::-webkit-inner-spin-button,
        .font-size-input::-webkit-outer-spin-button {
            opacity: 1;
            height: 28px;
            width: 18px;
        }
        .font-size-input::-webkit-outer-spin-button {
            margin-right: 2px;
        }

        /* MODIFICADO: Permite que botões de edição (com data-edit-button) e de bypass funcionem mesmo sem créditos */
        .credits-depleted [data-action-button="true"]:not([data-edit-button="true"]):not([data-bypass-credits="true"]),
        .credits-depleted #prompt-input:not([data-bypass-credits="true"]) {
            opacity: 0.6;
            cursor: not-allowed;
            pointer-events: none;
        }
        .credits-depleted #prompt-input::placeholder {
            color: #9ca3af;
        }

        #preview-container {
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }
        #preview-iframe {
            transition: max-width 0.4s ease-in-out;
            border-radius: 0.5rem;
            background-color: #1f2937;
            height: 100%;
        }
        .device-preview-button:hover {
            background-color: #4b5563;
        }
        .device-preview-button.active {
            background-color: #3b82f6;
            color: white;
        }

        .ai-message-content {
            position: relative;
        }
        .ai-message-content p, .ai-message-content pre {
            word-break: break-word;
        }
        .copy-chat-button {
            position: absolute;
            top: 8px;
            right: 8px;
            background-color: rgba(0,0,0,0.3);
            color: #d1d5db; /* gray-300 */
            border: none;
            border-radius: 5px;
            padding: 6px 10px;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.2s ease-in-out;
        }
        .copy-chat-button:hover {
            background-color: rgba(0,0,0,0.6);
            transform: scale(1.1);
        }
        @keyframes check-pop {
            0% { transform: scale(0.8); opacity: 0; }
            50% { transform: scale(1.2); opacity: 1; }
            100% { transform: scale(1); opacity: 1; }
        }
        .copy-chat-button .fa-check {
            display: none;
            color: #3b82f6; /* blue-500 */
        }
        .copy-chat-button.clicked .fa-copy {
            display: none;
        }
        .copy-chat-button.clicked .fa-check {
            display: inline-block;
            animation: check-pop 0.3s ease-out;
        }

        /* Animação da borda do cabeçalho */
        .header-animated-border {
            position: relative;
            overflow: hidden;
        }
        .header-animated::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(to right, #facc15, #8b5cf6, #c084fc, #facc15); /* Dourado -> Roxo -> Roxo Claro -> Dourado */
            background-size: 200% auto;
            animation: gradient-animation 4s linear infinite;
        }

        @keyframes gradient-animation {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* Animação de Carregamento do Site */
        .loader-container {
            position: relative;
            width: 150px;
            height: 150px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .loader-ring {
            position: absolute;
            border-radius: 50%;
            border: 4px solid transparent;
            animation: spin 2s linear infinite;
        }
        .loader-ring:nth-child(1) {
            width: 150px;
            height: 150px;
            border-top-color: #facc15; /* gold */
            animation-delay: -0.45s;
        }
        .loader-ring:nth-child(2) {
            width: 130px;
            height: 130px;
            border-right-color: #8b5cf6; /* purple */
            animation-delay: -0.3s;
        }
        .loader-ring:nth-child(3) {
            width: 110px;
            height: 110px;
            border-bottom-color: #3b82f6; /* blue */
            animation-delay: -0.15s;
        }
        .loader-icon {
            font-size: 4rem; /* 64px */
            color: #c084fc; /* light purple */
            animation: cog-spin 5s linear infinite reverse; /* reverse direction for contrast */
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        @keyframes cog-spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Novo estilo para o menu responsivo */
        #mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 40;
            display: none; /* Controlado via JS */
        }

        #mobile-nav-menu {
            position: fixed;
            top: 0;
            right: -300px; /* Escondido por padrão */
            width: 280px;
            height: 100%;
            background-color: #1f2937;
            z-index: 50;
            padding: 1.5rem;
            transition: right 0.3s ease-in-out;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        #mobile-nav-menu.open {
            right: 0;
        }

        /* Painel de Histórico de conversas (Ferramentas de I.A.) — mesma mecânica do menu mobile
           acima, mas funciona em qualquer tamanho de tela (não só mobile). */
        #ai-tool-history-panel {
            right: -320px; /* Escondido por padrão */
            transition: right 0.3s ease-in-out;
        }

        #ai-tool-history-panel.open {
            right: 0;
        }
        
        #mobile-nav-menu button, #mobile-nav-menu a {
            width: 100%;
            padding: 0.75rem;
            text-align: left;
            border-radius: 0.5rem;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            justify-content: flex-start;
        }
        #mobile-nav-menu button.active, #mobile-nav-menu a.active {
            background-color: #3b82f6;
            color: white;
        }
        #mobile-nav-menu button:hover, #mobile-nav-menu a:hover {
            background-color: #4b5563;
        }
        
        @media (min-width: 768px) { /* md breakpoint */
            #mobile-menu-button,
            #mobile-menu-overlay,
            #mobile-nav-menu {
                display: none !important; /* Esconde o menu mobile em telas maiores */
            }
        }

        /* Ajustes para o prompt input no mobile */
        @media (max-height: 700px) and (max-width: 767px) { /* Pequenas telas de celular */
            footer {
                padding-bottom: 2rem; /* Aumenta o padding inferior */
            }
            #prompt-input {
                min-height: 3rem; /* Garante altura mínima */
            }
        }

        /* Estilos para o microfone e indicador de áudio */
        .mic-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #3B82F6; /* blue-500 */
            animation: pulse-mic 1.2s infinite ease-in-out;
            transform-origin: center;
        }

        @keyframes pulse-mic {
            0% { transform: scale(0.6); opacity: 0.6; }
            50% { transform: scale(1); opacity: 1; }
            100% { transform: scale(0.6); opacity: 0.6; }
        }

        #microphone-button.microphone-active {
            background-color: #dc2626; /* red-600 */
            color: #fff;
            animation: none; /* Disable hover animation for active state */
        }
        #microphone-button.microphone-active:hover {
            background-color: #dc2626;
        }

        /* Adjustments for footer layout to accommodate new button */
        footer .flex {
            align-items: center; /* Align items vertically in the center */
        }

        /* Estilos para Tendências Virais — card de ideia de produto (azul neon, cores vivas) */
        .viral-product-card {
            position: relative;
            background: linear-gradient(180deg, #071228 0%, #040a1a 100%);
            border-radius: 1.1rem;
            padding: 1.1rem;
            margin-bottom: 1rem;
            border: 1px solid rgba(56, 130, 246, 0.55);
            box-shadow: 0 0 0 1px rgba(56, 130, 246, 0.12), 0 0 24px rgba(37, 99, 235, 0.25), inset 0 0 28px rgba(37, 99, 235, 0.08);
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }
        .viral-product-card h3 {
            font-size: 1.45rem;
            font-weight: 800;
            color: #ffffff;
            margin: 0;
            line-height: 1.2;
            letter-spacing: -0.01em;
        }
        .viral-product-card .viral-title-accent {
            background: linear-gradient(90deg, #22d3ee, #3b82f6);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: #22d3ee;
        }
        .viral-product-card p {
            font-size: 0.82rem;
            color: #8fb4f0;
            margin: 0;
            line-height: 1.5;
        }
        /* Topo: selo de demanda + nota */
        .viral-product-card .viral-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.5rem;
        }
        .viral-product-card .viral-demand {
            font-size: 0.75rem;
            font-weight: 700;
            color: #fbbf24;
            background: rgba(251, 191, 36, 0.1);
            border: 1px solid rgba(251, 191, 36, 0.55);
            border-radius: 999px;
            padding: 0.3rem 0.75rem;
        }
        .viral-product-card .viral-score-pill {
            font-size: 0.8rem;
            font-weight: 700;
            color: #fff;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(148, 163, 184, 0.25);
            border-radius: 999px;
            padding: 0.3rem 0.75rem;
        }
        .viral-product-card .viral-score-pill i { color: #22c55e; margin-right: 0.25rem; }
        .viral-product-card .viral-demand i { margin-right: 0.3rem; }
        .viral-product-card img {
            width: 100%;
            height: 11rem;
            object-fit: cover;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 0.7rem;
            border: 1px solid rgba(56, 130, 246, 0.35);
        }
        /* A virada: o ângulo que ninguém enxergou */
        .viral-product-card .viral-angle {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.95rem;
            font-weight: 600;
            color: #fde047;
            background: rgba(250, 204, 21, 0.07);
            border: 1px solid rgba(250, 204, 21, 0.45);
            border-radius: 0.7rem;
            padding: 0.7rem 0.85rem;
            line-height: 1.4;
        }
        .viral-product-card .viral-angle i {
            font-size: 1.5rem;
            color: #facc15;
            filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.6));
        }
        .viral-product-card .viral-desc { font-size: 0.9rem; color: #7fa8ee; }
        /* Frase real do público sobre a dor */
        .viral-product-card .viral-quote {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            font-size: 0.9rem;
            font-style: italic;
            color: #e2e8f0;
            background: rgba(37, 99, 235, 0.1);
            border: 1px solid rgba(56, 130, 246, 0.35);
            border-radius: 0.7rem;
            padding: 0.7rem 0.85rem;
            margin: 0;
            line-height: 1.4;
        }
        .viral-product-card .viral-quote i {
            font-size: 1.4rem;
            color: #3b82f6;
            padding-right: 0.85rem;
            border-right: 1px solid rgba(56, 130, 246, 0.35);
        }
        /* Termos reais que o público digita no Google/YouTube */
        .viral-product-card .viral-terms-title {
            font-size: 0.78rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #3b82f6;
            margin: 0 0 0.45rem 0;
        }
        .viral-product-card .viral-terms-title i { margin-right: 0.4rem; font-size: 1rem; }
        .viral-product-card .viral-term-list {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.4rem;
        }
        .viral-product-card .viral-term-item {
            font-size: 0.82rem;
            color: #e2e8f0;
            background: rgba(37, 99, 235, 0.08);
            border: 1px solid rgba(56, 130, 246, 0.4);
            border-radius: 999px;
            padding: 0.3rem 0.8rem;
            max-width: 100%;
        }
        .viral-product-card .viral-term-item i { color: #60a5fa; margin-right: 0.5rem; }
        /* Rodapé: onde a dor foi encontrada na internet */
        .viral-product-card .viral-source {
            font-size: 0.72rem;
            color: #6b8cc7;
            border-top: 1px solid rgba(56, 130, 246, 0.2);
            padding-top: 0.6rem;
        }
        .viral-product-card .viral-source i { margin-right: 0.3rem; color: #60a5fa; }
        /* Selos de decisão: concorrência e preço */
        .viral-product-card .viral-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            border-top: 1px solid rgba(56, 130, 246, 0.2);
            padding-top: 0.85rem;
        }
        .viral-product-card .viral-badge {
            font-size: 0.82rem;
            font-weight: 700;
            padding: 0.4rem 0.85rem;
            border-radius: 999px;
            border: 1px solid transparent;
            white-space: nowrap;
        }
        .viral-product-card .viral-badge i { margin-right: 0.35rem; }
        .viral-product-card .viral-badge-livre {
            color: #4ade80;
            background: rgba(74, 222, 128, 0.12);
            border-color: rgba(74, 222, 128, 0.55);
        }
        .viral-product-card .viral-badge-expansao {
            color: #60a5fa;
            background: rgba(96, 165, 250, 0.12);
            border-color: rgba(96, 165, 250, 0.55);
        }
        .viral-product-card .viral-badge-validado {
            color: #fbbf24; /* mercado cheio é prova de demanda, não alerta */
            background: rgba(251, 191, 36, 0.12);
            border-color: rgba(251, 191, 36, 0.6);
        }
        .viral-product-card .viral-badge-price {
            color: #fff;
            background: rgba(37, 99, 235, 0.12);
            border-color: rgba(56, 130, 246, 0.45);
        }
        /* Público / idade / tamanho em linha, com ícone */
        .viral-product-card .viral-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem 1.25rem;
            border-bottom: 1px solid rgba(56, 130, 246, 0.2);
            padding-bottom: 0.85rem;
        }
        .viral-product-card .viral-stat { display: flex; align-items: center; gap: 0.6rem; }
        .viral-product-card .viral-stat > i {
            width: 2.1rem;
            height: 2.1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #60a5fa;
            background: rgba(37, 99, 235, 0.15);
            border: 1px solid rgba(56, 130, 246, 0.35);
            border-radius: 50%;
            font-size: 0.85rem;
        }
        .viral-product-card .viral-stat small { display: block; font-size: 0.7rem; color: #7fa8ee; line-height: 1.2; }
        .viral-product-card .viral-stat b { display: block; font-size: 0.95rem; color: #fff; line-height: 1.3; }
        /* Placeholder quando não há imagem — mesma altura da imagem */
        .viral-product-card .viral-image-placeholder {
            width: 100%;
            height: 11rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            color: #7fa8ee;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 0.7rem;
        }
        /* Interesse de busca: rótulo + nota na mesma linha */
        .viral-product-card .viral-score-head {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            font-size: 0.9rem;
            color: #8fb4f0;
        }
        .viral-product-card .viral-score-head i { margin-right: 0.4rem; color: #60a5fa; }
        .viral-product-card .viral-score-head strong {
            color: #fbbf24;
            font-size: 1.15rem;
            font-weight: 800;
        }
        .viral-product-card .level-bar {
            height: 9px;
            background-color: rgba(56, 130, 246, 0.18);
            border-radius: 5px;
            overflow: hidden;
            margin-top: 0.5rem;
        }
        .viral-product-card .level-fill {
            height: 100%;
            background: linear-gradient(90deg, #f59e0b, #fde047);
            border-radius: 5px;
            transition: width 0.5s ease-out;
        }
        .viral-product-card .text-right {
            font-size: 0.75rem;
            color: #facc15;
            margin-top: 0.25rem;
        }

        /* Grid responsivo para viral-products-results */
        #viral-products-results {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Ajusta a largura mínima dos cards */
            gap: 1.5rem; /* Espaçamento entre os cards */
        }
        @media (min-width: 768px) { /* md breakpoint */
            #viral-products-results {
                grid-template-columns: repeat(2, 1fr); /* 2 colunas em telas médias */
            }
        }
        @media (min-width: 1024px) { /* lg breakpoint */
            #viral-products-results {
                grid-template-columns: repeat(3, 1fr); /* 3 colunas em telas grandes */
            }
        }
        /* Style for the Zayron Academy iframe */
        .zayron-iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        .ebook-page.landscape {
            width: 297mm;
            height: 210mm;
            padding: 15mm !important;
        }
        body.exporting-pdf .ebook-page {
            padding: 0 !important;
            margin: 0 !important;
        }

        /* Novo estilo futurista para itens de menu ativos */
        .menu-item-active-futuristic {
            background-color: #1A365D; /* Darker blue for active state */
            color: #fff;
            position: relative;
            transform: scale(1.01); /* Subtle zoom effect */
            transition: all 0.2s ease-in-out; /* Smooth transition for scale and shadow */
            overflow: hidden; /* Ensure pseudo-element doesn't overflow rounded corners */
        }
        .menu-item-active-futuristic::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 4px; /* Thin yellow line on the right */
            background-color: #facc15; /* Tailwind yellow-400 */
            border-radius: 0 0.5rem 0.5rem 0; /* Rounded right edge */
        }
        /* Efeito de cursor piscando para o Typewriter */
        .typing-cursor::after {
            content: '|';
            animation: typewriter-blink 1s infinite;
            margin-left: 2px;
            color: var(--primary-color);
            font-weight: bold;
        }
        @keyframes typewriter-blink { 
            0%, 100% { opacity: 1; } 
            50% { opacity: 0; } 
        }
        #skip-typewriter {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 10000;
            padding: 12px 24px;
            background: #3b82f6;
            color: white;
            border-radius: 50px;
            font-weight: bold;
            cursor: pointer;
            border: none;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
            font-family: sans-serif;
        }
        #skip-typewriter:hover {
            background: #2563eb;
            transform: translateY(-2px);
        }
        #skip-typewriter:active {
            transform: translateY(0);
        }

        /* ============================================================
           MOBILE RESPONSIVO — max-width: 1023px
           Todas as regras aqui são aditivas: não quebram o desktop.
           ============================================================ */
        /* Estilos da barra de abas mobile (elemento fica sm:hidden no desktop) */
        .mobile-tab-btn {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 14px;
            border-radius: 20px;
            border: none;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            background: rgba(55, 65, 81, 0.6);
            color: #9ca3af;
            white-space: nowrap;
            transition: background 0.2s, color 0.2s;
            font-family: 'Inter', sans-serif;
        }
        .mobile-tab-btn.mobile-tab-active {
            background: #2563eb;
            color: #fff;
        }
        #mobile-tab-bar::-webkit-scrollbar { display: none; }

        @media (max-width: 1023px) {

            /* --- Layout geral --- */
            html {
                overflow-x: hidden !important;
                background-color: #0c0a1a !important;
            }
            body {
                display: block !important;        /* tira o flex que centrava e quebrava o mobile */
                min-width: 0 !important;
                width: 100% !important;
                max-width: 100vw !important;
                overflow-x: hidden !important;
                overflow-y: auto !important;
                background-color: #0c0a1a !important;
            }
            #main-content-wrapper {
                margin-left: 0 !important;
                width: 100% !important;
                max-width: 100vw !important;
                overflow-x: hidden !important;
            }

            /* Padding inferior do main para não sobrepor footer */
            #main-content {
                padding-bottom: 80px;
            }

            /* --- Gerador de Sites: toolbar de botões --- */
            /* Scroll horizontal em vez de quebrar linha */
            #developer-view .flex.flex-wrap.items-center.gap-2 {
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                padding-bottom: 6px;
                justify-content: flex-start !important;
                scrollbar-width: none;
            }
            #developer-view .flex.flex-wrap.items-center.gap-2::-webkit-scrollbar {
                display: none;
            }
            /* Nome do projeto menor no mobile */
            #project-name-input {
                min-width: 110px;
                width: 110px !important;
                flex-shrink: 0;
            }
            /* Botões da toolbar: tamanho mínimo confortável para toque */
            #developer-view button[data-edit-button],
            #developer-view #copy-html-button,
            #developer-view #my-projects-dev-button {
                white-space: nowrap;
                flex-shrink: 0;
                min-height: 36px;
            }
            /* Preview container: altura generosa no mobile */
            #preview-container,
            #cloner-iframe-container {
                min-height: 55vh;
                padding: 0 !important;
            }
            #ebook-preview-container {
                min-height: 55vh;
            }
            #preview-iframe {
                border-radius: 0.5rem;
            }

            /* --- Criador de App Web: preview some porque o container fica
               dentro de um flex-col com flex-1 (flex-basis:0), que ignora a
               altura inline de 720px herdada do layout lg:flex-row do desktop --- */
            #la-preview-container {
                flex: none;
                height: 60vh !important;
                min-height: 60vh;
            }
            /* Remove espaço lateral excessivo no developer-view */
            #developer-view > div.flex-1.flex.flex-col {
                padding: 0.5rem !important;
            }

            /* --- Gerador de Criativos: empilha controles + resultado --- */
            #ad-creative-view .flex.gap-6,
            #ad-creative-view .flex.gap-4 {
                flex-direction: column;
            }
            /* Abas de formato: scroll horizontal */
            #creative-format-tabs {
                flex-wrap: nowrap !important;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                justify-content: flex-start !important;
                padding-bottom: 4px;
                scrollbar-width: none;
            }
            #creative-format-tabs::-webkit-scrollbar { display: none; }

            /* --- Gerador de Ebook: empilha painel + preview --- */
            #infoproduct-view .flex.flex-col.lg\\:flex-row {
                flex-direction: column !important;
            }
            #infoproduct-view .w-full.lg\\:w-\\[450px\\] {
                width: 100% !important;
            }

            /* --- Clonador de Sites: toolbar --- */
            #cloner-view .flex.flex-wrap.items-center.gap-2 {
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                padding-bottom: 6px;
                justify-content: flex-start !important;
                scrollbar-width: none;
            }
            #cloner-view .flex.flex-wrap.items-center.gap-2::-webkit-scrollbar {
                display: none;
            }

            /* --- Modais: largura total no mobile --- */
            .bg-gray-900\/95.rounded-2xl,
            [id$="-modal"] > div,
            [id$="-modal-content"] {
                width: 96vw !important;
                max-width: 96vw !important;
                padding: 1.25rem !important;
                margin: 0 auto;
            }

            /* --- Gerador de Prompts (chat): mais respiração --- */
            #chat-history-container {
                padding: 0.75rem;
            }

            /* --- Viral Trends: 1 coluna --- */
            #viral-products-results {
                grid-template-columns: 1fr !important;
            }

            /* --- Footer / prompt input --- */
            footer {
                padding: 0.5rem 0.75rem !important;
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
            }
            #prompt-input {
                font-size: 16px !important; /* < 16px causa zoom automático no iOS */
                height: 44px !important;
                min-height: 44px !important;
                max-height: 120px !important;
                overflow-y: auto !important;
                resize: none !important;
            }

            /* --- Overlay de geração: ajuste de texto --- */
            #generating-overlay-card h2 {
                font-size: 1.5rem;
            }
        }

        /* Telas muito pequenas (< 380px) */
        @media (max-width: 380px) {
            #developer-view button[data-edit-button] span,
            #developer-view #my-projects-dev-button span {
                display: none; /* esconde texto, mantém ícone */
            }
        }

/* Campo Pexels: aluno usa a chave do sistema, texto verde de "Chave Pexels Ativa" */
#user-pexels-key.system-key-active::placeholder { color: #22c55e; opacity: 1; font-weight: 600; }

        /* Títulos das ferramentas: branco extra-bold com a palavra-chave em gradiente azul */
        h2.zy-title {
            font-family: 'Inter', sans-serif;
            font-weight: 800;
            color: #fff;
            letter-spacing: -0.02em;
            line-height: 1.15;
            text-shadow: 0 2px 18px rgba(37, 99, 235, 0.25);
        }
        h2.zy-title .zy-accent {
            background: linear-gradient(90deg, #7dd3fc 0%, #3b82f6 55%, #2563eb 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: #3b82f6; /* fallback sem suporte a background-clip: text */
        }
        h2.zy-title i,
        h2.zy-title .zy-icon {
            font-size: 0.8em;
            color: #60a5fa;
            -webkit-text-fill-color: #60a5fa;
            filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.55));
        }

        /* ===== Ícone de IA nas barras de digitação + botões microfone/enviar ===== */
        #prompt-input,
        #viral-trends-description-input,
        #creative-input,
        #ebook-description-input,
        #illustrative-description-input,
        #code-content-textarea,
        #creative-refine-input {
            background-image: url('../img/ai-sparkle.png');
            background-repeat: no-repeat;
            background-size: 34px 34px;
            background-position: 10px 8px;
            padding-left: 4.4rem !important;
        }
        #creative-refine-input { background-position: 8px center; }
        #microphone-button,
        #send-button {
            width: 48px;
            height: 48px;
            padding: 0 !important;
            border-radius: 15px !important;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        #microphone-button {
            background-image: linear-gradient(180deg, #1f2738, #141a27);
            box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }
        #microphone-button:hover { filter: brightness(1.3); }
        #send-button {
            background-color: #2563eb;
            background-image: linear-gradient(180deg, #4f8ff7 0%, #1d4ed8 100%);
            box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 14px rgba(37, 99, 235, 0.4);
        }
        #send-button:hover { filter: brightness(1.12); }
        #send-button:disabled { opacity: 0.55; filter: saturate(0.6); }

        /* Barra principal na proporção da referência: campo e botões da mesma altura, estrela ~metade da altura */
        #prompt-input { min-height: 56px !important; background-position: 14px 11px; padding: 16px 14px 16px 5.4rem !important; font-size: 1.05rem; line-height: 24px !important; }
        #microphone-button, #send-button { width: 56px; height: 56px; border-radius: 17px !important; }
        #microphone-button i { font-size: 1.75rem; line-height: 1; }
        #send-arrow-svg { width: 1.9rem; height: 1.9rem; }

        /* Campos de várias linhas: primeira linha do texto na altura do centro da estrela (icone 34px, topo 8px) */
        #viral-trends-description-input,
        #creative-input,
        #ebook-description-input,
        #illustrative-description-input,
        #code-content-textarea {
            padding-top: 13px !important;
            line-height: 22px !important;
        }

        /* ===== Menu lateral que se ajusta ao texto dos botões (nunca quebra linha) ===== */
        #sidebar button, #sidebar a { white-space: nowrap; }
        @media (min-width: 640px) {
            #sidebar { width: max-content !important; min-width: 16rem; max-width: 24rem; }
            /* margem + largura 100% estouravam a tela pela largura do menu (cortava o lado direito
               entre 640px e ~1024px): a largura passa a ser "o que sobra ao lado do menu". */
            #main-content-wrapper { margin-left: var(--sidebar-w, 16rem) !important; width: calc(100% - var(--sidebar-w, 16rem)) !important; max-width: calc(100vw - var(--sidebar-w, 16rem)) !important; min-width: 0 !important; }
            #main-content { min-width: 0; }
            footer.fixed { left: var(--sidebar-w, 16rem) !important; }
        }

        /* ===== Tela vazia da pré-visualização do E-book ===== */
        .ebook-preview-sub { color: #94a3b8; font-size: 0.85rem; margin-top: 0.15rem; }
        .flex-1:has(#ebook-placeholder.hidden) .ebook-preview-sub { display: none; }
        /* Aba E-book Texto: tela vazia com o livro e o texto (borda tracejada, fundo normal) */
        #ebook-preview-container[data-ebook-tab="text"]:has(#ebook-placeholder:not(.hidden)) {
            border-style: dashed;
            border-color: rgba(148, 163, 184, 0.28);
            border-radius: 1rem;
        }
        #ebook-preview-container[data-ebook-tab="text"] .ebook-hero-img { display: none; }
        /* Aba Ilustrativo: arte "Imagine o que você pode criar hoje" com moldura neon em volta de tudo */
        #ebook-preview-container[data-ebook-tab="illustrative"] .ebook-empty-text { display: none; }
        .flex-1:has(#ebook-preview-container[data-ebook-tab="illustrative"] #ebook-placeholder:not(.hidden)) .ebook-preview-sub { display: none; }
        #ebook-preview-container[data-ebook-tab="illustrative"]:has(#ebook-placeholder:not(.hidden)) {
            border: 1px solid rgba(59, 130, 246, 0.65);
            border-radius: 1.25rem;
            background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(37, 99, 235, 0.16), transparent 70%), #030918;
            box-shadow: 0 0 22px rgba(37, 99, 235, 0.35), inset 0 0 38px rgba(37, 99, 235, 0.14);
            overflow: hidden;
            padding: 0;
        }
        #ebook-placeholder .ebook-hero-img { width: 100%; height: auto; max-height: 100%; object-fit: contain; pointer-events: none; }
        #ebook-placeholder .ebook-empty-img { width: min(380px, 70%); height: auto; margin-bottom: 0.5rem; }
        #ebook-placeholder .ebook-empty-title { font-size: 1.15rem; font-weight: 700; color: #fff; }
        #ebook-placeholder .ebook-empty-sub { font-size: 0.85rem; color: #94a3b8; margin-top: 0.15rem; }
        #my-ebooks-button, #ebook-undo-button, #ebook-redo-button {
            background-color: #0f1729 !important;
            box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
            border-radius: 0.75rem !important;
        }

        /* ===== Estado vazio dos resultados de Produtos Virais ===== */
        #viral-products-results:has(.viral-empty) { display: flex; align-items: center; justify-content: center; }
        .viral-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1rem; }
        .viral-empty-img { width: min(300px, 60%); height: auto; margin-bottom: 0.75rem; pointer-events: none; }
        .viral-empty-title { font-size: 1.2rem; font-weight: 700; color: #fff; }
        .viral-empty-sub { font-size: 0.9rem; color: #94a3b8; max-width: 36rem; margin-top: 0.35rem; line-height: 1.5; }

        /* ===== Arte do estado vazio / buscando (Produtos Virais) ===== */
        .viral-art { position: relative; width: min(300px, 60%); aspect-ratio: 640 / 536; margin-bottom: 1.25rem; container-type: inline-size; }
        .viral-art img { display: block; pointer-events: none; }
        .viral-art .art-base { width: 100%; animation: zyGlow 3.4s ease-in-out infinite; }
        /* A lupa gira em volta da caixa só durante a busca (cqw = largura da arte) */
        .viral-art .art-orbit { position: absolute; left: 50%; top: 56%; width: 0; height: 0; animation: zyOrbit 3.6s linear infinite; }
        .viral-art .art-lupa { position: absolute; max-width: none; width: 28cqw; left: -14cqw; top: -40cqw; animation: zyOrbitRev 3.6s linear infinite; filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.55)); }
        .viral-art.is-searching .art-base { animation-duration: 1.6s; }
        @keyframes zyOrbit { to { transform: rotate(360deg); } }
        @keyframes zyOrbitRev { to { transform: rotate(-360deg); } }
        @keyframes zyGlow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.22) saturate(1.1); } }
        .viral-search-bar { width: min(260px, 70%); height: 4px; margin-top: 1rem; border-radius: 999px; background: rgba(148, 163, 184, 0.18); overflow: hidden; }
        .viral-search-bar span { display: block; width: 40%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, #facc15); animation: zySearch 1.4s ease-in-out infinite; }
        @keyframes zySearch { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
        @media (prefers-reduced-motion: reduce) {
            .viral-art .art-base, .viral-search-bar span { animation: none !important; }
            .viral-art .art-orbit, .viral-art .art-lupa { animation-duration: 12s !important; }
        }

        /* Significado do selo de mercado, logo abaixo dos selos */
        .viral-product-card .viral-market-hint { font-size: 0.78rem; line-height: 1.45; padding: 0.45rem 0.7rem; border-left: 3px solid #64748b; border-radius: 0 0.5rem 0.5rem 0; background: rgba(148, 163, 184, 0.08); color: #cbd5e1; margin-top: -0.25rem; }
        .viral-product-card .viral-market-hint-livre { border-left-color: #4ade80; background: rgba(74, 222, 128, 0.07); }
        .viral-product-card .viral-market-hint-expansao { border-left-color: #60a5fa; background: rgba(96, 165, 250, 0.07); }
        .viral-product-card .viral-market-hint-validado { border-left-color: #fbbf24; background: rgba(251, 191, 36, 0.07); }

        /* ── Criador de Quiz: visual violeta (blocos, tema visual e luz atrás do celular) ── */
        #app-creator-view .bg-gray-900\/70 { background: linear-gradient(180deg, rgba(24, 16, 48, 0.78), rgba(10, 8, 22, 0.82)); border-color: rgba(139, 92, 246, 0.28); }
        #app-creator-view .ac-preview-card { overflow: hidden; border-color: rgba(139, 92, 246, 0.45); box-shadow: 0 0 28px rgba(124, 58, 237, 0.14); }
        #app-creator-view .ac-preview-card > * { position: relative; z-index: 1; }
        #app-creator-view .ac-tab-btn.text-blue-400, #app-creator-view .ac-tab-btn.border-blue-500 { color: #c4b5fd; border-color: #8b5cf6; }

        /* Tema Visual */
        #app-creator-view .ac-theme-section { background: linear-gradient(180deg, rgba(20, 14, 40, 0.8), rgba(10, 8, 22, 0.85)); border: 1px solid rgba(139, 92, 246, 0.25); }
        #app-creator-view .ac-theme-card { background: rgba(30, 27, 52, 0.55); border: 1px solid rgba(255, 255, 255, 0.07); cursor: pointer; }
        #app-creator-view .ac-theme-card:hover { border-color: rgba(167, 139, 250, 0.5); transform: translateY(-1px); }
        #app-creator-view .ac-theme-card { padding: 8px 6px; }
        #app-creator-view .ac-theme-card.is-selected { border: 2px solid #a855f7; background: rgba(88, 28, 135, 0.28); box-shadow: 0 0 22px rgba(168, 85, 247, 0.38), inset 0 0 18px rgba(168, 85, 247, 0.1); }
        #app-creator-view .ac-theme-check { position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #fff; background: linear-gradient(135deg, #a855f7, #7c3aed); box-shadow: 0 2px 10px rgba(124, 58, 237, 0.6); }
        #app-creator-view .ac-pulse-row { background: rgba(30, 27, 52, 0.55); border: 1px solid rgba(139, 92, 246, 0.35); }

        /* Neon violeta nas bordas dos blocos do Criador de Quiz (como a Prévia da referência) */
        #app-creator-view .bg-gray-900\/70 { border: 1px solid rgba(168, 85, 247, 0.55); box-shadow: 0 0 16px rgba(168, 85, 247, 0.28), inset 0 0 26px rgba(124, 58, 237, 0.10); border-radius: 16px; }
        #app-creator-view .ac-step-item { border: 1px solid rgba(139, 92, 246, 0.30); background: rgba(30, 27, 52, 0.45); }
        #app-creator-view .ac-step-item:hover { border-color: rgba(192, 132, 252, 0.7); box-shadow: 0 0 12px rgba(168, 85, 247, 0.25); }
        #app-creator-view .ac-step-item.is-selected { border: 1.5px solid #a855f7; background: linear-gradient(135deg, rgba(88, 28, 135, 0.45), rgba(49, 20, 92, 0.35)); box-shadow: 0 0 18px rgba(168, 85, 247, 0.55), inset 0 0 16px rgba(168, 85, 247, 0.12); }
        #app-creator-view .ac-step-num { flex-shrink: 0; width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; color: #ddd6fe; background: rgba(124, 58, 237, 0.25); border: 1px solid rgba(167, 139, 250, 0.5); }
        #app-creator-view .ac-step-item.is-selected .ac-step-num { color: #fff; background: #7648b8; border-color: transparent; box-shadow: none; }

        /* Títulos e botões de cabeçalho dos blocos do Criador de Quiz (estilo da referência) */
        #app-creator-view .ac-block-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.2; }
        #app-creator-view .ac-block-title i { color: #a855f7; font-size: 1.2rem; filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.65)); }
        #app-creator-view .ac-mode-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 0.65rem; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; border: 1px solid transparent; }
        #app-creator-view .ac-mode-pill.is-on { background: linear-gradient(180deg, #8b3cf5, #7c2de0); box-shadow: 0 0 16px rgba(139, 60, 245, 0.55); }
        #app-creator-view .ac-mode-pill.is-off { background: rgba(31, 27, 52, 0.75); border-color: rgba(148, 163, 184, 0.35); }
        #app-creator-view .ac-mode-pill.is-off:hover { border-color: rgba(192, 132, 252, 0.7); }
        #app-creator-view .ac-outline-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.9rem; border-radius: 0.65rem; font-size: 0.85rem; font-weight: 600; color: #c4b5fd; background: transparent; border: 1px solid rgba(139, 92, 246, 0.8); white-space: nowrap; transition: all .15s; }
        #app-creator-view .ac-outline-btn:hover { background: rgba(124, 58, 237, 0.18); box-shadow: 0 0 12px rgba(139, 92, 246, 0.4); color: #fff; }
        /* demais títulos pequenos em caixa-alta dos blocos viram o mesmo estilo (sem gritar) */
        #app-creator-view h4.text-xs.uppercase, #app-creator-view h5.text-xs.uppercase { font-size: 0.95rem; text-transform: none; letter-spacing: -0.005em; color: #fff; font-weight: 700; }
        #app-creator-view .ac-step-item .text-sm { font-size: 0.95rem; font-weight: 600; }
        #app-creator-view label.text-gray-400, #app-creator-view .text-\[11px\].font-semibold { color: #cbd5e1; }

        /* Fundo da Prévia: arte de ondas violeta atrás do celular */
        #app-creator-view .bg-gray-900\/70.ac-preview-card { background: #05030f url('../img/quiz-preview-bg.webp') 68% 50% / cover no-repeat; }

        /* ── Lateral do Criador de Quiz: abas, módulos e campos (estilo da referência) ── */
        #app-creator-view .ac-tab-btn { font-size: 0.85rem; letter-spacing: 0.04em; padding-top: 0.8rem; padding-bottom: 0.8rem; color: #cbd5e1; }
        #app-creator-view .ac-tab-btn.ac-tab-on { color: #fff; background: linear-gradient(180deg, #7c2de0, #5b21b6); box-shadow: 0 0 18px rgba(139, 60, 245, 0.55), inset 0 0 0 1px rgba(216, 180, 254, 0.45); border-radius: 0.85rem; margin: 5px; }
        #app-creator-view .ac-section-head { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 0.9rem; }
        #app-creator-view .ac-section-head > i { color: #a855f7; font-size: 1.6rem; margin-top: 2px; filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.6)); }
        #app-creator-view .ac-section-head h5 { font-size: 1.15rem; font-weight: 700; color: #fff; line-height: 1.2; }
        #app-creator-view .ac-section-head p { font-size: 0.82rem; color: #94a3b8; margin-top: 2px; }

        #app-creator-view .ac-module-item { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.55rem 0.75rem; margin-bottom: 0.5rem; border-radius: 0.85rem; cursor: pointer; background: rgba(20, 20, 40, 0.65); border: 1px solid rgba(100, 116, 139, 0.35); transition: all .15s; }
        #app-creator-view .ac-module-item:hover { border-color: rgba(192, 132, 252, 0.6); }
        #app-creator-view .ac-module-item.is-selected { border: 1.5px solid #a855f7; background: linear-gradient(135deg, rgba(88, 28, 135, 0.5), rgba(46, 16, 101, 0.4)); box-shadow: 0 0 16px rgba(168, 85, 247, 0.45); }
        #app-creator-view .ac-module-name { display: flex; align-items: center; gap: 0.7rem; min-width: 0; font-size: 0.95rem; color: #e2e8f0; font-weight: 500; }
        #app-creator-view .ac-grip { color: #64748b; font-size: 0.85rem; }
        #app-creator-view .ac-module-icon { width: 34px; height: 34px; border-radius: 0.6rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(51, 65, 85, 0.6); color: #60a5fa; font-size: 0.95rem; }
        #app-creator-view .ac-module-icon.is-on { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 0 12px rgba(59, 130, 246, 0.5); }
        #app-creator-view .ac-auto-badge { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; padding: 0.3rem 0.6rem; border-radius: 0.5rem; border: 1px solid rgba(100, 116, 139, 0.5); background: rgba(30, 41, 59, 0.6); }

        #app-creator-view .ac-module-hero { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; margin: 1rem 0 1.1rem; border-radius: 0.9rem; border: 1px solid rgba(139, 92, 246, 0.55);
            background: radial-gradient(ellipse 60% 120% at 100% 100%, rgba(168, 85, 247, 0.45), transparent 70%), linear-gradient(135deg, rgba(49, 20, 92, 0.75), rgba(20, 12, 45, 0.85)); }
        #app-creator-view .ac-module-hero-icon { width: 42px; height: 42px; border-radius: 0.7rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 0 14px rgba(59, 130, 246, 0.5); }
        #app-creator-view .ac-module-hero h5 { font-size: 1.25rem; font-weight: 700; color: #fff; line-height: 1.15; }
        #app-creator-view .ac-module-hero p { font-size: 0.82rem; color: #cbd5e1; margin-top: 2px; }

        #app-creator-view .ac-field-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.45rem; }
        #app-creator-view .ac-field-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
        #app-creator-view .ac-field-row select { width: 46%; min-width: 130px; }
        #app-creator-view .ac-field-label { font-size: 1.02rem; font-weight: 700; color: #fff; line-height: 1.2; }
        #app-creator-view .ac-field-hint { font-size: 0.8rem; color: #94a3b8; margin-top: 1px; }
        #app-creator-view .ac-color-pill { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; padding: 0.3rem 0.6rem; border-radius: 0.6rem; font-size: 0.78rem; color: #e2e8f0; background: rgba(15, 15, 32, 0.8); border: 1px solid rgba(148, 163, 184, 0.4); }
        #app-creator-view .ac-color-pill input[type=color] { width: 26px; height: 20px; padding: 0; border: 0; border-radius: 0.3rem; background: none; cursor: pointer; }
        #app-creator-view .ac-color-pill button { color: #f87171; font-size: 0.7rem; }
        #app-creator-view #ac-module-properties input[type=text], #app-creator-view #ac-module-properties input[type=number], #app-creator-view #ac-module-properties textarea, #app-creator-view #ac-module-properties select { font-size: 0.9rem; padding: 0.6rem 0.8rem; border-radius: 0.7rem; background: rgba(12, 14, 30, 0.85); border: 1px solid rgba(148, 163, 184, 0.35); color: #f1f5f9; }
        #app-creator-view #ac-module-properties input:focus, #app-creator-view #ac-module-properties textarea:focus, #app-creator-view #ac-module-properties select:focus { outline: none; border-color: #a855f7; box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25); }

        /* Paleta de Componentes: fontes e ícones no mesmo porte do resto da ferramenta */
        #app-creator-view .ac-pal-cat { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #a78bfa; margin: 0.4rem 0 0.5rem; }
        #app-creator-view .ac-pal-item { display: flex; align-items: center; gap: 0.75rem; text-align: left; padding: 0.6rem 0.75rem; border-radius: 0.75rem; font-size: 1rem; font-weight: 500; color: #e2e8f0; background: rgba(20, 20, 40, 0.55); border: 1px solid rgba(100, 116, 139, 0.25); transition: all .15s; }
        #app-creator-view .ac-pal-item i { width: 1.5rem; text-align: center; font-size: 1.15rem; color: #60a5fa; flex-shrink: 0; }
        #app-creator-view .ac-pal-item:hover { color: #fff; border-color: rgba(192, 132, 252, 0.6); background: rgba(88, 28, 135, 0.3); box-shadow: 0 0 12px rgba(168, 85, 247, 0.25); }

        /* ── Criador de App Web: neon azul ── */
        #learning-app-view .la-card { padding: 1rem; border-radius: 16px; background: linear-gradient(180deg, rgba(10, 22, 52, 0.80), rgba(5, 10, 26, 0.85)); border: 1px solid rgba(59, 130, 246, 0.65); box-shadow: 0 0 16px rgba(59, 130, 246, 0.35), inset 0 0 26px rgba(37, 99, 235, 0.14); }
        #learning-app-view .la-block-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.2; }
        #learning-app-view .la-block-title i { color: #60a5fa; font-size: 1.2rem; filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.75)); }
        #learning-app-view .la-preview-frame { border-radius: 14px; border: 1px solid rgba(96, 165, 250, 0.5); background: #030712; }
        #learning-app-view .la-sub { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
        #learning-app-view .la-item { display: flex; align-items: center; padding: 0.55rem 0.75rem; margin-bottom: 0.5rem; border-radius: 0.8rem; font-size: 0.9rem; color: #e2e8f0; background: rgba(20, 20, 40, 0.65); border: 1px solid rgba(100, 116, 139, 0.35); }
        #learning-app-view .la-item span { font-size: 0.9rem; }
        #learning-app-view .la-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: 0.75rem; font-size: 0.95rem; font-weight: 700; color: #fff; background: linear-gradient(180deg, #3b82f6, #2563eb); box-shadow: 0 0 16px rgba(59, 130, 246, 0.55); transition: all .15s; }
        #learning-app-view .la-btn-primary:hover { filter: brightness(1.1); box-shadow: 0 0 22px rgba(59, 130, 246, 0.8); }
        #learning-app-view .la-btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.65rem 0.85rem; border-radius: 0.75rem; font-size: 0.9rem; font-weight: 600; color: #dbeafe; background: rgba(10, 18, 42, 0.65); border: 1px solid rgba(96, 165, 250, 0.75); transition: all .15s; }
        #learning-app-view .la-btn-outline:hover, #learning-app-view .la-btn-outline.is-on { background: rgba(37, 99, 235, 0.3); color: #fff; box-shadow: 0 0 12px rgba(96, 165, 250, 0.5); }
        #learning-app-view .la-select { padding: 0.6rem 0.8rem; border-radius: 0.7rem; font-size: 0.9rem; color: #f1f5f9; background: rgba(12, 14, 30, 0.85); border: 1px solid rgba(148, 163, 184, 0.35); }
        #learning-app-view .la-sub i { color: #93c5fd; }
        #learning-app-view .la-btn-primary, #learning-app-view .la-btn-outline { white-space: nowrap; }

        /* Prévia do App dentro do celular, com luz azul atrás */
        #learning-app-view .la-phone-stage { position: relative; padding: 1rem 0; }
        #learning-app-view .la-phone-glow { position: absolute; inset: -4% -10%; pointer-events: none; filter: blur(26px);
            background: radial-gradient(ellipse 48% 44% at 50% 48%, rgba(56, 130, 246, 0.75), rgba(37, 99, 235, 0.32) 52%, transparent 78%),
                        radial-gradient(ellipse 30% 22% at 10% 80%, rgba(14, 165, 233, 0.35), transparent 70%),
                        radial-gradient(ellipse 30% 22% at 92% 22%, rgba(99, 102, 241, 0.28), transparent 70%); }
        #learning-app-view .la-phone-stage > .relative { z-index: 1; }

        /* O celular ocupa a altura inteira da janela (nada cortado) e a prévia acompanha a rolagem */
        #learning-app-view .la-phone-box { height: clamp(320px, calc(100vh - 36px), 820px); height: clamp(320px, calc(100dvh - 36px), 820px); aspect-ratio: 1024 / 1536; max-width: 100%; }
        @media (min-width: 1024px) {
            #learning-app-view .la-preview-card { position: sticky; top: 0.5rem; align-self: flex-start; padding: 0.5rem; scroll-margin-top: 0.5rem; }
            #learning-app-view .la-preview-card .la-block-title { position: absolute; left: 1rem; top: 0.9rem; z-index: 3; margin: 0; }
            #learning-app-view .la-preview-card .la-phone-stage { padding: 0; }
        }

        /* Selo "Em breve" no canto dos botões do menu (Criador de Quiz / Criador de App Web) */
        #app-creator-mode-button-sidebar, #learning-app-mode-button-sidebar, #app-creator-mode-button-mobile, #learning-app-mode-button-mobile { position: relative; }
        .menu-soon-badge { position: absolute; top: -3px; right: 10px; padding: 2px 10px; border-radius: 7px; background: #4caf67; color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.35; white-space: nowrap; box-shadow: 0 2px 8px rgba(76, 175, 103, 0.35); pointer-events: none; }

        /* Criador de Quiz: telas de lista (Meus Quiz) e assistente não ficam esticadas — centralizadas;
           o editor continua usando a largura toda. */
        #app-creator-view > div { transition: max-width .2s; }
        #app-creator-view:has(#ac-editor-panel.hidden) > div { max-width: 1100px; }
        /* Analytics/Dados de Clientes só aparece com um quiz aberto (na lista, cada quiz tem o seu "Analisar") */
        #app-creator-view:has(#ac-editor-panel.hidden) > div > div:first-child [data-ac-action="open-analytics-modal"] { display: none; }

        /* Criador de Quiz: tela inicial no mesmo desenho dos "Meus Apps" do App Web (versão violeta) */
        #app-creator-view .ac-new-card { background: linear-gradient(135deg, rgba(49, 20, 92, 0.55), rgba(20, 12, 45, 0.7)); border: 1px solid rgba(168, 85, 247, 0.55); box-shadow: 0 0 16px rgba(168, 85, 247, 0.22); }
        #app-creator-view .ac-new-card:hover { border-color: #c084fc; box-shadow: 0 0 22px rgba(168, 85, 247, 0.45); transform: translateY(-1px); }
        #app-creator-view .ac-new-card-icon { width: 48px; height: 48px; border-radius: 0.8rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, #8b3cf5, #6d28d9); box-shadow: 0 0 14px rgba(139, 92, 246, 0.55); }
        #app-creator-view .ac-list-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; padding: 0.6rem 0.75rem; margin-bottom: 0.5rem; border-radius: 0.8rem; font-size: 0.95rem; background: rgba(20, 20, 40, 0.65); border: 1px solid rgba(100, 116, 139, 0.35); }
        #app-creator-view .ac-list-item:hover { border-color: rgba(192, 132, 252, 0.55); }

        /* Criador de App Web: cartões de criação no mesmo desenho do "Criar Novo Quiz" (versão neon azul) */
        #learning-app-view .la-choice-card { background: linear-gradient(135deg, rgba(14, 36, 82, 0.6), rgba(6, 14, 36, 0.75)); border: 1px solid rgba(59, 130, 246, 0.65); box-shadow: 0 0 16px rgba(59, 130, 246, 0.25); }
        #learning-app-view .la-choice-card:hover { border-color: #93c5fd; box-shadow: 0 0 22px rgba(59, 130, 246, 0.5); transform: translateY(-1px); }
        #learning-app-view .la-choice-icon { width: 52px; height: 52px; border-radius: 0.8rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 0 14px rgba(59, 130, 246, 0.6); }
        #learning-app-view .la-choice-icon-ebook { background: linear-gradient(135deg, #38bdf8, #2563eb); box-shadow: 0 0 14px rgba(56, 189, 248, 0.55); }

        /* Criador de App Web: "Salvar projeto" em verde (ação de confirmar), com estado "Salvando..." */
        #learning-app-view .la-btn-primary.la-btn-save { background: linear-gradient(180deg, #22c55e, #16a34a); box-shadow: 0 0 16px rgba(34, 197, 94, 0.5); }
        #learning-app-view .la-btn-primary.la-btn-save:hover { box-shadow: 0 0 22px rgba(34, 197, 94, 0.75); }
        #learning-app-view .la-btn-primary.is-saving { opacity: 0.85; cursor: wait; filter: saturate(0.9); }

        /* "Salvar projeto" no cabeçalho do Criador de App Web, ao lado de Meus Apps */
        #learning-app-view .la-btn-save-header { background: linear-gradient(180deg, #22c55e, #16a34a); box-shadow: 0 0 14px rgba(34, 197, 94, 0.45); white-space: nowrap; }
        #learning-app-view .la-btn-save-header:hover { box-shadow: 0 0 20px rgba(34, 197, 94, 0.7); filter: brightness(1.05); }
        #learning-app-view .la-btn-save-header.is-saving { opacity: 0.85; cursor: wait; }

        /* Criador de Quiz: "Salvar quiz" verde no cabeçalho (só com um quiz aberto) e botões do bloco Publicar */
        #app-creator-view .ac-header-save { background: linear-gradient(180deg, #22c55e, #16a34a); box-shadow: 0 0 14px rgba(34, 197, 94, 0.45); white-space: nowrap; }
        #app-creator-view .ac-header-save:hover { box-shadow: 0 0 20px rgba(34, 197, 94, 0.7); filter: brightness(1.05); }
        #app-creator-view .ac-header-save.is-saving { opacity: 0.85; cursor: wait; }
        #app-creator-view:has(#ac-editor-panel.hidden) #ac-header-save { display: none; }
        #app-creator-view .ac-pub-btn { width: 100%; justify-content: center; padding: 0.7rem 0.9rem; font-size: 0.95rem; }

        /* Fundo da Prévia do App: arte de ondas azul neon atrás do celular (no lugar da luz radial) */
        #learning-app-view .la-card.la-preview-card { background: #030712 url('../img/app-preview-bg.webp') 68% 50% / cover no-repeat; }
        #learning-app-view .la-preview-card .la-phone-glow { display: none; }

        /* IA Poderosa: cartões das ferramentas no mesmo desenho dos cartões do Criador de App Web (azul neon) */
        .ai-tool-card { background: linear-gradient(135deg, rgba(14, 36, 82, 0.6), rgba(6, 14, 36, 0.75)); border: 1px solid rgba(59, 130, 246, 0.65); box-shadow: 0 0 16px rgba(59, 130, 246, 0.25); }
        .ai-tool-card:hover { border-color: #93c5fd; box-shadow: 0 0 22px rgba(59, 130, 246, 0.5); transform: translateY(-1px); }
        .ai-tool-card-icon { width: 52px; height: 52px; border-radius: 0.8rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 0 14px rgba(59, 130, 246, 0.6); }
        #ai-tools-gallery-grid > .ai-tool-card:nth-child(even) .ai-tool-card-icon { background: linear-gradient(135deg, #38bdf8, #2563eb); box-shadow: 0 0 14px rgba(56, 189, 248, 0.55); }
        .ai-tool-card-title { color: #fff; font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
        .ai-tool-card-desc { color: #9ca3af; font-size: 0.9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

        /* ── Gerador de Criativos: painel "Criativos Gerados" no visual azul-marinho com violeta neon ── */
        #ad-creative-view #creative-stack { gap: 1rem; padding: 0.9rem; margin: -0.9rem; } /* folga para o brilho do criativo ativo não ser cortado pela rolagem */
        #ad-creative-view .lg\:sticky > .bg-gray-900\/70 { background: linear-gradient(180deg, rgba(14, 18, 44, 0.92), rgba(8, 11, 28, 0.94)); border: 1px solid rgba(71, 85, 140, 0.55); border-radius: 22px; padding: 1.15rem; box-shadow: 0 0 28px rgba(79, 70, 229, 0.12); }
        #ad-creative-view .lg\:sticky > .bg-gray-900\/70 > div:first-child h3 { font-size: 1.15rem; font-weight: 700; text-transform: none; letter-spacing: -0.01em; color: #fff; }
        #ad-creative-view .lg\:sticky > .bg-gray-900\/70 > div:first-child h3 i { color: #60a5fa; font-size: 1.3rem; filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.6)); }
        #ad-creative-view #ad-creatives-my-button { background: rgba(28, 35, 72, 0.85); border: 1px solid rgba(71, 85, 140, 0.75); border-radius: 0.8rem; padding: 0.5rem 0.9rem; font-size: 0.85rem; }
        #ad-creative-view #ad-creatives-my-button:hover { background: rgba(55, 48, 163, 0.55); border-color: #818cf8; }

        #ad-creative-view .adcreative-card { background: linear-gradient(180deg, rgba(16, 21, 48, 0.95), rgba(9, 12, 30, 0.97)); border: 1px solid rgba(71, 85, 140, 0.6); border-radius: 22px; padding: 0.4rem; box-shadow: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
        #ad-creative-view .adcreative-card:hover { border-color: #818cf8; transform: translateY(-1px); }
        #ad-creative-view .adcreative-card.ring-2 { border: 2px solid transparent; background: linear-gradient(180deg, #0d1130, #080b1e) padding-box, linear-gradient(135deg, #6366f1, #a855f7 55%, #6366f1) border-box; box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.25), 0 0 26px rgba(124, 92, 255, 0.55), inset 0 0 18px rgba(99, 102, 241, 0.12); }
        #ad-creative-view .adcreative-card .adcard-media img { border-radius: 16px; }
        #ad-creative-view .adcreative-card .absolute.top-1\.5.left-1\.5 { top: 0.7rem; left: 0.7rem; background: rgba(8, 12, 30, 0.85); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0.7rem; padding: 0.3rem 0.65rem; font-size: 0.85rem; letter-spacing: 0.01em; }
        #ad-creative-view .adcreative-card [data-adcard-action="remove"] { top: 0.7rem; right: 0.7rem; width: 2.2rem; height: 2.2rem; font-size: 0.95rem; background: rgba(8, 12, 30, 0.88); border: 1px solid rgba(255, 255, 255, 0.08); }
        #ad-creative-view .adcreative-card [data-adcard-action="remove"]:hover { background: #dc2626; }
        #ad-creative-view .adcreative-card .flex.items-center.justify-between { gap: 0.5rem; margin-top: 0.55rem; padding: 0 0.1rem 0.1rem; }
        #ad-creative-view .adcreative-card [data-adcard-action="download"],
        #ad-creative-view .adcreative-card [data-adcard-action="save"],
        #ad-creative-view .adcreative-card [data-adcard-action="variation"] { padding: 0.7rem 0; font-size: 1rem; background: rgba(34, 42, 86, 0.9); border: 1px solid rgba(71, 85, 140, 0.7); border-radius: 0.85rem; }
        #ad-creative-view .adcreative-card [data-adcard-action="download"]:hover:not(:disabled) { background: rgba(21, 128, 61, 0.75); border-color: #22c55e; }
        #ad-creative-view .adcreative-card [data-adcard-action="save"]:hover:not(:disabled) { background: rgba(37, 99, 235, 0.7); border-color: #60a5fa; }
        #ad-creative-view .adcreative-card [data-adcard-action="variation"]:hover:not(:disabled) { background: rgba(109, 40, 217, 0.7); border-color: #a78bfa; }

        /* ── Gerador de Criativos: coluna esquerda (formato, descrição, ações) no mesmo visual da coluna de criativos ── */
        #ad-creative-left > .bg-gray-900\/70, #ad-creative-left #creative-result-area > .bg-gray-900\/70 { background: linear-gradient(180deg, rgba(14, 18, 44, 0.92), rgba(8, 11, 28, 0.94)); border: 1px solid rgba(71, 85, 140, 0.55); border-radius: 22px; padding: 1.15rem; box-shadow: 0 0 28px rgba(79, 70, 229, 0.10); }
        #ad-creative-left h3 { font-size: 1.05rem; font-weight: 700; text-transform: none; letter-spacing: -0.01em; color: #fff; }
        #ad-creative-left h3 i { color: #60a5fa; filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.55)); }
        #ad-creative-left h3.text-purple-400 i { color: #a78bfa; filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.55)); }
        #ad-creative-left h3.text-blue-400 i { color: #60a5fa; }
        #ad-creative-left label.uppercase, #ad-creative-left p.uppercase { font-size: 0.8rem; color: #cbd5e1; }

        #ad-creative-left #creative-format-tabs button { background: rgba(22, 28, 62, 0.9); border: 1px solid rgba(71, 85, 140, 0.7); border-radius: 14px; padding: 0.6rem 1rem; color: #cbd5e1; box-shadow: none; }
        #ad-creative-left #creative-format-tabs button:hover { border-color: #818cf8; color: #fff; }
        #ad-creative-left #creative-format-tabs button.border-blue-500 { border: 1.5px solid #818cf8; color: #fff; background: linear-gradient(135deg, rgba(79, 70, 229, 0.5), rgba(124, 58, 237, 0.32)); box-shadow: 0 0 18px rgba(124, 92, 255, 0.5); }
        #ad-creative-left #creative-format-desc { color: #94a3b8; font-size: 0.85rem; }

        #ad-creative-left textarea, #ad-creative-left select, #ad-creative-left input[type=text] { background-color: rgba(10, 14, 36, 0.92); border: 1px solid rgba(71, 85, 140, 0.7); border-radius: 14px; }
        #ad-creative-left textarea:focus, #ad-creative-left select:focus, #ad-creative-left input[type=text]:focus { outline: none; border-color: #818cf8; box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.28); }
        #ad-creative-left #creative-ref-image-btn { background: rgba(28, 35, 72, 0.9); border: 1px solid rgba(71, 85, 140, 0.8); border-radius: 0.85rem; }
        #ad-creative-left #creative-ref-image-btn:hover { background: rgba(79, 70, 229, 0.45); border-color: #818cf8; }

        #ad-creative-left #creative-btn-livre, #ad-creative-left #creative-btn-agitar, #ad-creative-left #creative-download-btn, #ad-creative-left #creative-variation-btn, #ad-creative-left #creative-refine-btn, #ad-creative-left #creative-translate-btn { border-radius: 14px; }
        #ad-creative-left #creative-btn-livre { background: linear-gradient(180deg, #5b4df0, #4338ca); box-shadow: 0 0 18px rgba(99, 102, 241, 0.45); }
        #ad-creative-left #creative-btn-agitar { background: linear-gradient(180deg, #ea6b2a, #d9531e); box-shadow: 0 0 18px rgba(234, 107, 42, 0.4); }
        /* Formatos do anúncio: os 4 lado a lado numa linha só (sem quebrar texto) */
        #ad-creative-left #creative-format-tabs { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
        #ad-creative-left #creative-format-tabs button { padding: 0.55rem 0.15rem; border-radius: 12px; min-width: 0; }
        #ad-creative-left #creative-format-tabs button span { white-space: nowrap; }
        #ad-creative-left #creative-format-tabs button span:first-child { font-size: 0.95rem; }
        #ad-creative-left #creative-format-tabs button span:last-child { font-size: 0.62rem; letter-spacing: -0.01em; opacity: 0.9; }

        /* Menu lateral: aviso "Mais opções" quando há botões abaixo da parte visível */
        #sidebar .sidebar-scroll-hint { position: sticky; bottom: 0; height: 0; flex-shrink: 0; z-index: 6; pointer-events: none; }
        #sidebar .sidebar-scroll-hint-inner { position: absolute; left: -1rem; right: -1rem; bottom: -1rem; height: 96px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1.25rem;
            background: linear-gradient(to top, rgba(8, 12, 22, 0.98) 30%, rgba(8, 12, 22, 0)); opacity: 0; transition: opacity .25s; }
        #sidebar .sidebar-scroll-hint.is-visible .sidebar-scroll-hint-inner { opacity: 1; }
        #sidebar .sidebar-scroll-hint button { pointer-events: none; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.95rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #dbeafe;
            background: rgba(30, 58, 138, 0.92); border: 1px solid rgba(96, 165, 250, 0.75); box-shadow: 0 0 14px rgba(59, 130, 246, 0.55); }
        #sidebar .sidebar-scroll-hint.is-visible button { pointer-events: auto; cursor: pointer; }
        #sidebar .sidebar-scroll-hint button i { animation: sidebar-hint-bounce 1.2s ease-in-out infinite; }
        @keyframes sidebar-hint-bounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
        /* Criativos Gerados: a lista usa a altura da tela da pessoa (antes parava em "100vh - 220px", no meio) */
        #ad-creative-view #creative-stack { max-height: calc(100vh - 132px); max-height: calc(100dvh - 132px); }

        /* Gerador de Criativos: topo com selo "Ad" em azul e "Criativos" em degradê azul para violeta */
        #ad-creative-view h2.ad-hero-title { display: inline-flex; align-items: center; justify-content: center; gap: 0.9rem; font-size: 2.4rem; text-shadow: 0 2px 22px rgba(79, 70, 229, 0.35); }
        #ad-creative-view .ad-title-badge { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 0.75rem; flex-shrink: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; -webkit-text-fill-color: #fff;
            background: linear-gradient(180deg, #4f8ff7 0%, #2563eb 100%); box-shadow: 0 0 18px rgba(59, 130, 246, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35); text-shadow: none; }
        #ad-creative-view h2.ad-hero-title .zy-accent { background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #a855f7 100%); -webkit-background-clip: text; background-clip: text; }
        #ad-creative-view h2.ad-hero-title + p { font-size: 1.05rem; color: #9aa4b8; }

        /* Selo de ícone no título de cada ferramenta (quadrado arredondado em degradê azul, como o "Ad" dos Criativos) */
        h2.zy-title:has(.zy-tool-badge) { display: block; } /* texto corrido: o espaço entre as palavras continua normal */
        h2.zy-title .zy-tool-badge { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; flex-shrink: 0; vertical-align: middle; margin: -0.2rem 0.85rem 0 0;
            background: linear-gradient(180deg, #4f8ff7 0%, #2563eb 100%); box-shadow: 0 0 18px rgba(59, 130, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); text-shadow: none; }
        h2.zy-title .zy-tool-badge i { font-size: 1.15rem; color: #fff; -webkit-text-fill-color: #fff; filter: none; }
        h2.zy-title:has(.zy-tool-badge) .zy-accent { background: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #a855f7 100%); -webkit-background-clip: text; background-clip: text; }

        /* CTA na imagem: com o CTA desativado a janela fica toda cinza, para não parecer ligada */
        #creative-cta-modal.cta-off #creative-cta-fields { filter: grayscale(1); opacity: 0.45; }
        #creative-cta-modal.cta-off [data-cta-style].bg-purple-700, #creative-cta-modal.cta-off [data-cta-bg].bg-purple-700 { background: #374151 !important; border-color: #6b7280 !important; color: #9ca3af !important; }
        #creative-cta-modal.cta-off .text-purple-300 { color: #9ca3af; }
        #creative-cta-modal.cta-off .rounded-xl.p-3 { background: rgba(55, 65, 81, 0.25) !important; border-color: rgba(107, 114, 128, 0.5) !important; }
        #creative-cta-modal.cta-off #creative-cta-close { background: #374151 !important; color: #d1d5db; }

        /* Criador de Sites: tela inicial (antes de gerar) com fundo azul neon e mockups, no lugar do vazio cinza */
        #site-hero-empty { background: #020b1c url('../img/site-hero-bg.webp') 50% 85% / cover no-repeat; color: #fff; padding-bottom: calc(0.6rem + 66px) !important; } /* o fundo vai até o fim da prévia (sem faixa cinza); os 66px de respiro embaixo mantêm a faixa de vantagens acima da barra de digitar fixa */
        #site-hero-empty.hidden { display: none; }
        #site-hero-empty .site-hero-badge { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: clamp(0.8rem, 1.5vw, 1.05rem);
            border: 1.5px solid rgba(56, 189, 248, 0.85); background: rgba(2, 16, 40, 0.55); box-shadow: 0 0 22px rgba(56, 189, 248, 0.45), inset 0 0 14px rgba(56, 189, 248, 0.15); }
        #site-hero-empty .site-hero-badge i { color: #38bdf8; }
        #site-hero-empty .site-hero-title { margin: 1rem 0 0.4rem; font-size: clamp(1.6rem, 3.6vw, 3.1rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6); }
        #site-hero-empty .site-hero-title span { color: #38bdf8; }
        #site-hero-empty .site-hero-sub { font-size: clamp(0.85rem, 1.5vw, 1.15rem); color: #cbd5e1; max-width: 46rem; }
        #site-hero-empty .site-hero-bar { width: 4.5rem; height: 5px; border-radius: 99px; margin-top: 0.9rem; background: #38bdf8; box-shadow: 0 0 14px rgba(56, 189, 248, 0.8); }
        #site-hero-empty .site-hero-stage { flex: 1 1 0; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; margin-top: 0.4rem; }
        #site-hero-empty .site-hero-stage img { max-height: 100%; max-width: min(100%, 980px); object-fit: contain; filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.55)); user-select: none; transform: scale(1.14); transform-origin: 50% 88%; }
        #site-hero-empty::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(to top, rgba(1, 7, 20, 0.8) 0%, rgba(1, 7, 20, 0.4) 9%, rgba(1, 7, 20, 0) 17%); }
        #site-hero-empty > * { position: relative; z-index: 1; }
        #site-hero-empty .site-hero-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: 100%; max-width: 1180px; margin-top: 0.3rem; padding: 0.5rem 0.4rem;
            border-radius: 18px; border: 1px solid rgba(56, 189, 248, 0.28); background: linear-gradient(180deg, rgba(4, 16, 40, 0.72), rgba(2, 10, 28, 0.88)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(125, 211, 252, 0.12); }
        #site-hero-empty .site-hero-features > div { display: flex; align-items: center; gap: 0.85rem; text-align: left; padding: 0.15rem 1rem; border-left: 1px solid rgba(148, 163, 184, 0.22); }
        #site-hero-empty .site-hero-features > div:first-child { border-left: 0; }
        #site-hero-empty .site-hero-features i { flex: 0 0 auto; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; font-size: 0.95rem; color: #7dd3fc;
            background: radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.28), rgba(56, 189, 248, 0.06)); border: 1px solid rgba(56, 189, 248, 0.55); box-shadow: 0 0 16px rgba(56, 189, 248, 0.35); }
        #site-hero-empty .site-hero-features b { display: block; font-size: clamp(0.82rem, 1.1vw, 1rem); font-weight: 700; color: #f1f5f9; letter-spacing: 0.005em; }
        #site-hero-empty .site-hero-features small { display: block; margin-top: 0.1rem; font-size: clamp(0.7rem, 0.9vw, 0.84rem); color: #9fb4d2; line-height: 1.3; }
        @media (max-width: 760px) { #site-hero-empty .site-hero-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

        /* Criador de Sites: moldura neon azul (borda fina com brilho e cantos bem arredondados) na área de prévia */
        #developer-view #preview-container { border: 1.5px solid rgba(66, 133, 244, 0.8) !important; border-radius: 24px !important; background: rgba(2, 8, 24, 0.85) !important;
            box-shadow: 0 0 0 1px rgba(30, 64, 175, 0.35), 0 0 24px rgba(59, 130, 246, 0.4), inset 0 0 28px rgba(37, 99, 235, 0.2); }
        #developer-view #preview-container #site-hero-empty { border-radius: 22px; }
        #developer-view #preview-container #preview-iframe { border-radius: 20px; }

