
/* =========================================================
   Correção definitiva: /dashboard/master-admin/configuracoes
   Painel "Visual, marca e copy da home" visível
   ========================================================= */

.master-config-visible-force [data-reveal],
.master-config-page [data-reveal],
.master-config-page .settings-panel-clean,
.master-config-page .easy-card,
.master-config-page .master-home-settings-panel,
body:has(.master-config-page) [data-reveal] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
}

.master-config-page .master-home-settings-panel,
.master-config-page article.settings-panel-clean.easy-card,
.master-config-page article.card.settings-panel-clean.easy-card {
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 24px !important;
    padding: clamp(22px, 3vw, 34px) !important;
    border: 1px solid rgba(139, 92, 246, .34) !important;
    background:
        radial-gradient(circle at 12% 8%, rgba(124,58,237,.18), transparent 36%),
        linear-gradient(145deg, rgba(15,23,42,.98), rgba(17,24,39,.94)) !important;
    box-shadow: 0 22px 64px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.045) !important;
}

.master-config-page .master-home-settings-panel .easy-form,
.master-config-page .settings-panel-clean .easy-form,
.master-config-page .settings-copy-box,
.master-config-page .clean-copy-box,
.master-config-page .settings-grid-clean,
.master-config-page .home-toggle-matrix {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    max-height: none !important;
    overflow: visible !important;
}

.master-config-page .easy-form {
    gap: 24px !important;
}

.master-config-page .settings-copy-box.clean-copy-box {
    gap: 22px !important;
}

.master-config-page .settings-grid-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.master-config-page .settings-grid-clean .field-wide {
    grid-column: 1 / -1 !important;
}

.master-config-page .home-toggle-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.master-config-page .toggle-control,
.master-config-page .field,
.master-config-page .upload-current-preview,
.master-config-page .hero-bg-preview {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.master-config-page .hero-bg-preview,
.master-config-page .upload-current-preview {
    min-height: 140px !important;
}

.master-config-page .hero-bg-preview-v75 {
    min-height: 260px !important;
}

.master-config-page .section-head.compact {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.master-config-page [hidden],
.master-config-page .is-hidden,
.master-config-page .hidden {
    display: none !important;
}

/* Caso algum script adicione inline opacity/display no painel principal */
.master-config-page .master-home-settings-panel[style],
.master-config-page article.settings-panel-clean.easy-card[style] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

@media (max-width: 980px) {
    .master-config-page .settings-grid-clean,
    .master-config-page .home-toggle-matrix {
        grid-template-columns: 1fr !important;
    }

    .master-config-page .master-home-settings-panel,
    .master-config-page article.settings-panel-clean.easy-card {
        padding: 20px !important;
    }
}
