/* =====================================================================
   Currículo IA Pro — camada visual "futurista" sobre o AdminLTE 4.
   Carregue SEMPRE depois do adminlte.min.css.

   Estrutura:
     1. Tokens (claro/escuro)      5. Sidebar
     2. Base e fundo animado       6. Componentes
     3. Tipografia                 7. Tabelas e formulários
     4. Cards / superfícies        8. Animações e utilitários
   ===================================================================== */

/* ============ 1. TOKENS ============ */
:root {
    --fx-primary: #4f7cff;
    --fx-primary-rgb: 79, 124, 255;
    --fx-accent: #00e5d0;
    --fx-accent-rgb: 0, 229, 208;
    --fx-violet: #8b5cf6;
    --fx-pink: #ec4899;
    --fx-amber: #f59e0b;
    --fx-danger: #ef4444;
    --fx-success: #10b981;

    --fx-radius: 16px;
    --fx-radius-sm: 10px;
    --fx-radius-lg: 24px;

    --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --fx-speed: 280ms;

    /* tema claro */
    --fx-bg: #eef2fb;
    --fx-bg-2: #f7f9ff;
    --fx-surface: rgba(255, 255, 255, 0.82);
    --fx-surface-solid: #ffffff;
    --fx-border: rgba(15, 23, 42, 0.09);
    --fx-border-strong: rgba(15, 23, 42, 0.16);
    --fx-text: #0f172a;
    --fx-muted: #64748b;
    --fx-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.25);
    --fx-shadow-lg: 0 28px 60px -28px rgba(15, 23, 42, 0.45);
    --fx-glow: 0 0 0 1px rgba(var(--fx-primary-rgb), 0.18), 0 12px 40px -18px rgba(var(--fx-primary-rgb), 0.55);
    --fx-grid: rgba(79, 124, 255, 0.07);
    --fx-sheen: rgba(255, 255, 255, 0.75);
}

[data-bs-theme="dark"] {
    --fx-bg: #070b18;
    --fx-bg-2: #0c1224;
    --fx-surface: rgba(18, 25, 46, 0.72);
    --fx-surface-solid: #121a2e;
    --fx-border: rgba(148, 163, 184, 0.16);
    --fx-border-strong: rgba(148, 163, 184, 0.3);
    --fx-text: #e6edff;
    --fx-muted: #93a4c4;
    --fx-shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.8);
    --fx-shadow-lg: 0 32px 70px -30px rgba(0, 0, 0, 0.95);
    --fx-glow: 0 0 0 1px rgba(var(--fx-accent-rgb), 0.22), 0 14px 46px -18px rgba(var(--fx-accent-rgb), 0.45);
    --fx-grid: rgba(0, 229, 208, 0.06);
    --fx-sheen: rgba(255, 255, 255, 0.08);
}

/* ============ 2. BASE E FUNDO ============ */
body {
    background: var(--fx-bg);
    color: var(--fx-text);
    font-feature-settings: "cv02", "cv03", "cv04", "ss01";
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--fx-speed) var(--fx-ease), color var(--fx-speed) var(--fx-ease);
}

/* malha + auroras: só decoração, nunca captura clique */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background-image:
        linear-gradient(var(--fx-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--fx-grid) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 85%);
    opacity: 0.9;
}

body::after {
    background:
        radial-gradient(38rem 26rem at 12% -8%, rgba(var(--fx-primary-rgb), 0.22), transparent 65%),
        radial-gradient(32rem 24rem at 92% 4%, rgba(var(--fx-accent-rgb), 0.18), transparent 62%),
        radial-gradient(34rem 30rem at 60% 110%, rgba(139, 92, 246, 0.16), transparent 68%);
    animation: fx-aurora 22s var(--fx-ease) infinite alternate;
}

@keyframes fx-aurora {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
    50% { transform: translate3d(-1.5%, 1.5%, 0) scale(1.06); opacity: 1; }
    100% { transform: translate3d(1.5%, -1%, 0) scale(1.02); opacity: 0.9; }
}

.app-wrapper,
.fx-page {
    position: relative;
    z-index: 1;
}

/* ============ 3. TIPOGRAFIA ============ */
.fx-display {
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.fx-gradient-text {
    background: linear-gradient(100deg, var(--fx-primary) 0%, var(--fx-accent) 55%, var(--fx-violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fx-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fx-muted);
}

.fx-mono {
    font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 0.85em;
}

/* ============ 4. CARDS / SUPERFÍCIES ============ */
.card,
.fx-card {
    background: var(--fx-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius);
    box-shadow: var(--fx-shadow);
    transition: transform var(--fx-speed) var(--fx-ease),
                box-shadow var(--fx-speed) var(--fx-ease),
                border-color var(--fx-speed) var(--fx-ease);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--fx-border);
    font-weight: 600;
}

.fx-card-hover:hover,
.card.fx-card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--fx-primary-rgb), 0.45);
    box-shadow: var(--fx-shadow-lg), var(--fx-glow);
}

/* borda com gradiente girando — usada nos destaques */
.fx-neon {
    position: relative;
    isolation: isolate;
}

.fx-neon::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--fx-angle, 0deg),
        rgba(var(--fx-primary-rgb), 0.85),
        rgba(var(--fx-accent-rgb), 0.85),
        rgba(139, 92, 246, 0.85),
        rgba(var(--fx-primary-rgb), 0.85));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--fx-speed) var(--fx-ease);
    z-index: -1;
}

.fx-neon:hover::before,
.fx-neon.is-on::before {
    opacity: 1;
    animation: fx-spin 4s linear infinite;
}

@property --fx-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes fx-spin {
    to { --fx-angle: 360deg; }
}

/* varredura de luz ao passar o mouse */
.fx-sheen {
    position: relative;
    overflow: hidden;
}

.fx-sheen::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, var(--fx-sheen), transparent);
    transform: skewX(-18deg);
    transition: left 700ms var(--fx-ease);
    pointer-events: none;
}

.fx-sheen:hover::after {
    left: 140%;
}

/* ============ 4b. KPI / SMALL BOX ============ */
.fx-kpi {
    position: relative;
    overflow: hidden;
    padding: 1.15rem 1.25rem;
    border-radius: var(--fx-radius);
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--fx-shadow);
    transition: transform var(--fx-speed) var(--fx-ease), box-shadow var(--fx-speed) var(--fx-ease);
}

.fx-kpi:hover {
    transform: translateY(-4px);
    box-shadow: var(--fx-shadow-lg), var(--fx-glow);
}

.fx-kpi::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fx-kpi-color, var(--fx-primary)), transparent 70%);
}

.fx-kpi__icon {
    position: absolute;
    right: -0.35rem;
    bottom: -0.85rem;
    font-size: 4.2rem;
    line-height: 1;
    color: var(--fx-kpi-color, var(--fx-primary));
    opacity: 0.13;
    transition: transform 500ms var(--fx-ease), opacity 500ms var(--fx-ease);
}

.fx-kpi:hover .fx-kpi__icon {
    transform: scale(1.12) rotate(-8deg);
    opacity: 0.24;
}

.fx-kpi__value {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0.15rem 0 0;
}

.fx-kpi__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fx-muted);
    margin: 0;
}

.fx-kpi__foot {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--fx-kpi-color, var(--fx-primary));
}

.fx-kpi__foot i {
    transition: transform 240ms var(--fx-ease);
}

.fx-kpi__foot:hover i {
    transform: translateX(4px);
}

/* ============ 5. SIDEBAR / HEADER ============ */
.app-sidebar {
    background: linear-gradient(185deg, #0b1226 0%, #0a1020 55%, #080d1a 100%) !important;
    border-right: 1px solid rgba(var(--fx-accent-rgb), 0.14);
    box-shadow: 8px 0 40px -24px rgba(0, 0, 0, 0.9);
}

.sidebar-brand {
    border-bottom: 1px solid rgba(var(--fx-accent-rgb), 0.14);
    background: linear-gradient(120deg, rgba(var(--fx-primary-rgb), 0.22), transparent 65%);
}

.sidebar-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1rem;
    color: #fff;
    text-decoration: none;
}

.fx-logo {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--fx-primary), var(--fx-accent));
    color: #04101f;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px -10px rgba(var(--fx-accent-rgb), 0.9);
    animation: fx-breathe 4.5s var(--fx-ease) infinite;
}

@keyframes fx-breathe {
    0%, 100% { box-shadow: 0 8px 24px -10px rgba(var(--fx-accent-rgb), 0.85); }
    50% { box-shadow: 0 8px 34px -8px rgba(var(--fx-primary-rgb), 1); }
}

.sidebar-menu .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 2px 8px;
    padding: 0.62rem 0.8rem;
    border-radius: 12px;
    color: rgba(226, 235, 255, 0.78);
    font-weight: 500;
    overflow: hidden;
    transition: color 200ms var(--fx-ease), background-color 200ms var(--fx-ease), transform 200ms var(--fx-ease);
}

.sidebar-menu .nav-link .nav-icon {
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
    transition: transform 260ms var(--fx-ease);
}

.sidebar-menu .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(3px);
}

.sidebar-menu .nav-link:hover .nav-icon {
    transform: scale(1.15);
}

.sidebar-menu .nav-link.active {
    color: #051021;
    background: linear-gradient(100deg, var(--fx-accent), var(--fx-primary));
    box-shadow: 0 10px 26px -12px rgba(var(--fx-accent-rgb), 0.85);
    font-weight: 700;
}

.sidebar-menu .nav-link.active .nav-icon {
    color: #051021;
}

.sidebar-menu .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 3px;
    background: var(--fx-accent);
    transform: translateY(-50%);
    transition: height 220ms var(--fx-ease);
}

.sidebar-menu .nav-link:not(.active):hover::before {
    height: 60%;
}

.sidebar-menu .nav-header {
    padding: 1rem 1.1rem 0.35rem;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(var(--fx-accent-rgb), 0.72);
}

.sidebar-menu .nav-treeview .nav-link {
    padding-left: 2.4rem;
    font-size: 0.92rem;
}

.nav-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(var(--fx-accent-rgb), 0.18);
    color: var(--fx-accent);
}

.sidebar-menu .nav-link.active .nav-badge {
    background: rgba(5, 16, 33, 0.22);
    color: #051021;
}

/* header */
.app-header {
    background: var(--fx-surface) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--fx-border);
    box-shadow: 0 8px 26px -22px rgba(15, 23, 42, 0.7);
}

.app-header .nav-link {
    border-radius: 10px;
    transition: background-color 200ms var(--fx-ease), color 200ms var(--fx-ease);
}

.app-header .nav-link:hover {
    background: rgba(var(--fx-primary-rgb), 0.1);
}

.fx-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--fx-primary), var(--fx-violet));
    box-shadow: 0 6px 18px -8px rgba(var(--fx-primary-rgb), 0.9);
}

.fx-avatar--lg {
    width: 64px;
    height: 64px;
    font-size: 1.35rem;
}

.fx-avatar--xl {
    width: 96px;
    height: 96px;
    font-size: 2rem;
}

/* alternador de tema */
.fx-theme-toggle i {
    display: inline-block;
    transition: transform 420ms var(--fx-ease), opacity 220ms var(--fx-ease);
}

.fx-theme-toggle:active i {
    transform: rotate(180deg) scale(0.85);
}

/* ============ 6. COMPONENTES ============ */
.btn {
    border-radius: var(--fx-radius-sm);
    font-weight: 600;
    transition: transform 180ms var(--fx-ease), box-shadow 220ms var(--fx-ease), filter 180ms var(--fx-ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.985);
}

.btn-primary {
    border: 0;
    background: linear-gradient(100deg, var(--fx-primary), #6d8bff);
    box-shadow: 0 10px 26px -14px rgba(var(--fx-primary-rgb), 0.95);
}

.btn-primary:hover {
    background: linear-gradient(100deg, #3f6cf5, var(--fx-primary));
    box-shadow: 0 14px 32px -12px rgba(var(--fx-primary-rgb), 1);
}

.fx-btn-glow {
    border: 0;
    color: #05121f;
    background: linear-gradient(100deg, var(--fx-accent), var(--fx-primary));
    box-shadow: 0 12px 30px -14px rgba(var(--fx-accent-rgb), 0.95);
}

.fx-btn-glow:hover {
    color: #05121f;
    filter: brightness(1.06);
}

/* ondulação no clique */
.fx-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: currentColor;
    opacity: 0.28;
    pointer-events: none;
    animation: fx-ripple 600ms var(--fx-ease) forwards;
}

@keyframes fx-ripple {
    to { transform: scale(2.6); opacity: 0; }
}

.badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.fx-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--fx-border-strong);
    background: var(--fx-surface);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fx-text);
    text-decoration: none;
    transition: all 200ms var(--fx-ease);
}

.fx-chip:hover,
.fx-chip.is-active {
    border-color: rgba(var(--fx-primary-rgb), 0.6);
    color: var(--fx-primary);
    box-shadow: 0 8px 20px -12px rgba(var(--fx-primary-rgb), 0.9);
}

.fx-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: var(--fx-success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: fx-pulse 2.2s infinite;
}

.fx-dot--off {
    background: var(--fx-muted);
    animation: none;
    box-shadow: none;
}

.fx-dot--warn {
    background: var(--fx-amber);
    animation: none;
}

@keyframes fx-pulse {
    70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* estado vazio */
.fx-empty {
    text-align: center;
    padding: 3rem 1.25rem;
    color: var(--fx-muted);
}

.fx-empty i {
    font-size: 2.6rem;
    opacity: 0.4;
    display: block;
    margin-bottom: 0.6rem;
}

/* toasts */
.fx-toasts {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: min(360px, calc(100vw - 2rem));
}

.fx-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--fx-radius-sm);
    border: 1px solid var(--fx-border-strong);
    background: var(--fx-surface-solid);
    box-shadow: var(--fx-shadow-lg);
    animation: fx-slide-in 380ms var(--fx-ease);
}

.fx-toast.is-out {
    animation: fx-slide-out 260ms var(--fx-ease) forwards;
}

@keyframes fx-slide-in {
    from { opacity: 0; transform: translateX(24px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes fx-slide-out {
    to { opacity: 0; transform: translateX(24px) scale(0.96); }
}

/* paleta de comandos (Ctrl+K) */
.fx-palette {
    position: fixed;
    inset: 0;
    z-index: 1095;
    display: none;
    padding-top: 12vh;
    background: rgba(4, 8, 20, 0.55);
    backdrop-filter: blur(6px);
}

.fx-palette.is-open {
    display: block;
    animation: fx-fade 200ms var(--fx-ease);
}

.fx-palette__box {
    width: min(620px, calc(100vw - 2rem));
    margin: 0 auto;
    border-radius: var(--fx-radius);
    border: 1px solid var(--fx-border-strong);
    background: var(--fx-surface-solid);
    box-shadow: var(--fx-shadow-lg);
    overflow: hidden;
    animation: fx-pop 260ms var(--fx-ease);
}

.fx-palette__input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--fx-border);
    background: transparent;
    color: var(--fx-text);
    padding: 1rem 1.1rem;
    font-size: 1rem;
    outline: none;
}

.fx-palette__list {
    max-height: 52vh;
    overflow-y: auto;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
}

.fx-palette__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--fx-radius-sm);
    color: var(--fx-text);
    text-decoration: none;
    cursor: pointer;
}

.fx-palette__item.is-active,
.fx-palette__item:hover {
    background: rgba(var(--fx-primary-rgb), 0.12);
    color: var(--fx-primary);
}

@keyframes fx-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fx-pop {
    from { opacity: 0; transform: translateY(-10px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

/* ============ 7. TABELAS E FORMULÁRIOS ============ */
.fx-table-wrap {
    border-radius: var(--fx-radius);
    border: 1px solid var(--fx-border);
    overflow: hidden;
    background: var(--fx-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.fx-table-scroll {
    overflow-x: auto;
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.table > thead th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fx-muted);
    border-bottom: 1px solid var(--fx-border);
    background: rgba(var(--fx-primary-rgb), 0.05);
    white-space: nowrap;
}

.table > tbody tr {
    transition: background-color 180ms var(--fx-ease);
}

.table > tbody tr:hover {
    background: rgba(var(--fx-primary-rgb), 0.06);
}

.table > tbody td {
    border-color: var(--fx-border);
    vertical-align: middle;
}

.form-control,
.form-select {
    border-radius: var(--fx-radius-sm);
    border: 1px solid var(--fx-border-strong);
    background: var(--fx-surface-solid);
    color: var(--fx-text);
    transition: border-color 200ms var(--fx-ease), box-shadow 200ms var(--fx-ease);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--fx-primary-rgb), 0.65);
    box-shadow: 0 0 0 4px rgba(var(--fx-primary-rgb), 0.16);
    background: var(--fx-surface-solid);
    color: var(--fx-text);
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fx-muted);
    margin-bottom: 0.3rem;
}

.form-text {
    color: var(--fx-muted);
}

/* barra de progresso com brilho */
.progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(var(--fx-primary-rgb), 0.12);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--fx-primary), var(--fx-accent));
    position: relative;
}

.progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: fx-shimmer 2s linear infinite;
}

@keyframes fx-shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* ============ 8. ANIMAÇÕES E UTILITÁRIOS ============ */
/* Progressive enhancement: sem JS o conteúdo aparece normalmente.
   A classe .fx-js é adicionada pelo <head> logo no início do parse. */
.fx-js .fx-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 560ms var(--fx-ease), transform 560ms var(--fx-ease);
}

.fx-js .fx-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* se o JS falhar em algum ponto, revela tudo depois de 3s */
@keyframes fx-reveal-fallback { to { opacity: 1; transform: none; } }
.fx-js .fx-reveal:not(.is-visible) {
    animation: fx-reveal-fallback 400ms var(--fx-ease) 3s forwards;
}

.fx-stagger > * {
    animation: fx-rise 520ms var(--fx-ease) both;
}

.fx-stagger > *:nth-child(1) { animation-delay: 40ms; }
.fx-stagger > *:nth-child(2) { animation-delay: 90ms; }
.fx-stagger > *:nth-child(3) { animation-delay: 140ms; }
.fx-stagger > *:nth-child(4) { animation-delay: 190ms; }
.fx-stagger > *:nth-child(5) { animation-delay: 240ms; }
.fx-stagger > *:nth-child(6) { animation-delay: 290ms; }
.fx-stagger > *:nth-child(7) { animation-delay: 340ms; }
.fx-stagger > *:nth-child(8) { animation-delay: 390ms; }
.fx-stagger > *:nth-child(n + 9) { animation-delay: 440ms; }

@keyframes fx-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.fx-float {
    animation: fx-float 6s var(--fx-ease) infinite;
}

@keyframes fx-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* hero da vitrine pública */
.fx-hero {
    position: relative;
    padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem);
    overflow: hidden;
}

.fx-hero__scan::before {
    content: "";
    position: absolute;
    inset-inline: -10%;
    top: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(var(--fx-accent-rgb), 0.18), transparent);
    filter: blur(28px);
    animation: fx-scan 7s var(--fx-ease) infinite;
    pointer-events: none;
}

@keyframes fx-scan {
    0%, 100% { transform: translateY(-40%); opacity: 0.5; }
    50% { transform: translateY(340%); opacity: 1; }
}

/* cartão de egresso */
.fx-grad-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.15rem;
    border-radius: var(--fx-radius);
    border: 1px solid var(--fx-border);
    background: var(--fx-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--fx-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform var(--fx-speed) var(--fx-ease), box-shadow var(--fx-speed) var(--fx-ease), border-color var(--fx-speed) var(--fx-ease);
}

.fx-grad-card:hover {
    transform: translateY(-5px);
    color: inherit;
    border-color: rgba(var(--fx-primary-rgb), 0.45);
    box-shadow: var(--fx-shadow-lg), var(--fx-glow);
}

.fx-grad-card__photo {
    width: 100%;
    aspect-ratio: 1;
    max-width: 84px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--fx-border-strong);
}

.fx-text-muted {
    color: var(--fx-muted) !important;
}

.fx-divider {
    height: 1px;
    border: 0;
    margin: 1.25rem 0;
    background: linear-gradient(90deg, transparent, var(--fx-border-strong), transparent);
    opacity: 1;
}

.fx-scroll-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.fx-scroll-thin::-webkit-scrollbar-track { background: transparent; }
.fx-scroll-thin::-webkit-scrollbar-thumb {
    background: var(--fx-border-strong);
    border-radius: 999px;
}

/* rodapé */
.app-footer {
    background: transparent;
    border-top: 1px solid var(--fx-border);
    color: var(--fx-muted);
    font-size: 0.85rem;
}

/* ============ 9. POLIMENTO GLOBAL DO PAINEL ============ */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--fx-bg);
    --bs-body-color: var(--fx-text);
    --bs-secondary-color: var(--fx-muted);
    --bs-tertiary-color: var(--fx-muted);
    --bs-border-color: var(--fx-border);
    --bs-secondary-bg: var(--fx-bg-2);
    --bs-tertiary-bg: var(--fx-surface-solid);
}

.app-main,
.app-content,
.app-content-header,
.app-footer {
    color: var(--fx-text);
    transition: color var(--fx-speed) var(--fx-ease), background-color var(--fx-speed) var(--fx-ease);
}

.app-content-header .fx-display,
.app-content-header h1 {
    position: relative;
    width: fit-content;
    max-width: 100%;
    color: var(--fx-text);
    animation: fx-title-in 520ms var(--fx-ease) both;
}

.app-content-header .fx-display::after,
.app-content-header h1::after {
    content: "";
    display: block;
    width: clamp(2.5rem, 12vw, 4.5rem);
    height: 3px;
    margin-top: .42rem;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--fx-primary), var(--fx-accent));
    transform-origin: left;
    animation: fx-title-line 650ms 120ms var(--fx-ease) both;
}

@keyframes fx-title-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fx-title-line {
    from { transform: scaleX(.15); opacity: .35; }
    to { transform: scaleX(1); opacity: 1; }
}

/* Entrada leve e escalonada para cartões, painéis e blocos das listagens. */
.app-content .card,
.app-content .fx-card,
.app-content .fx-kpi,
.app-content .fx-grad-card {
    animation: fx-surface-in 460ms var(--fx-ease) both;
}

@keyframes fx-surface-in {
    from { opacity: 0; transform: translateY(10px) scale(.995); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.app-content .row.fx-stagger > *,
.app-content .list-group.fx-stagger > * {
    animation-duration: 500ms;
}

/* Nomes/títulos de registros recebem destaque e movimento apenas no hover. */
.app-content .table tbody td:first-child a:not(.btn),
.app-content .list-group-item a:not(.btn),
.app-content .card-title a,
.app-content .fx-grad-card .fw-semibold {
    transition: color 220ms var(--fx-ease), text-shadow 220ms var(--fx-ease), letter-spacing 220ms var(--fx-ease);
}

.app-content .table tbody td:first-child a:not(.btn):hover,
.app-content .list-group-item a:not(.btn):hover,
.app-content .card-title a:hover,
.app-content .fx-grad-card:hover .fw-semibold {
    color: var(--fx-primary);
    text-shadow: 0 0 18px rgba(var(--fx-primary-rgb), .2);
    letter-spacing: .005em;
}

.app-content .table > tbody > tr {
    animation: fx-row-in 360ms var(--fx-ease) both;
}

.app-content .table > tbody > tr:nth-child(1) { animation-delay: 20ms; }
.app-content .table > tbody > tr:nth-child(2) { animation-delay: 45ms; }
.app-content .table > tbody > tr:nth-child(3) { animation-delay: 70ms; }
.app-content .table > tbody > tr:nth-child(4) { animation-delay: 95ms; }
.app-content .table > tbody > tr:nth-child(5) { animation-delay: 120ms; }
.app-content .table > tbody > tr:nth-child(6) { animation-delay: 145ms; }
.app-content .table > tbody > tr:nth-child(7) { animation-delay: 170ms; }
.app-content .table > tbody > tr:nth-child(n + 8) { animation-delay: 195ms; }

@keyframes fx-row-in {
    from { opacity: 0; transform: translateX(-7px); }
    to { opacity: 1; transform: translateX(0); }
}

.app-content .table > tbody > tr:hover {
    transform: translateX(2px);
    box-shadow: inset 3px 0 0 rgba(var(--fx-primary-rgb), .72);
}

/* Botões e ações mantêm o mesmo feedback em telas antigas e novas. */
.app-main .btn:not(.btn-link) {
    position: relative;
    background-size: 180% 100%;
    transition: transform 200ms var(--fx-ease), box-shadow 220ms var(--fx-ease),
                background-position 320ms var(--fx-ease), filter 200ms var(--fx-ease);
}

.app-main .btn-primary:hover,
.app-main .fx-btn-glow:hover {
    background-position: 100% 0;
    box-shadow: var(--fx-glow), 0 12px 28px -15px rgba(var(--fx-primary-rgb), .7);
}

.app-main .btn:focus-visible,
.app-header .nav-link:focus-visible,
.sidebar-menu .nav-link:focus-visible {
    outline: 2px solid var(--fx-accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(var(--fx-accent-rgb), .16);
}

.app-content .form-control:hover,
.app-content .form-select:hover {
    border-color: rgba(var(--fx-primary-rgb), .42);
}

.app-content .form-control::placeholder,
.app-content .form-select:invalid {
    color: var(--fx-muted);
    opacity: .78;
}

/* Tema escuro também cobre superfícies Bootstrap que não são cartões. */
[data-bs-theme="dark"] .app-main .dropdown-menu,
[data-bs-theme="dark"] .app-main .modal-content,
[data-bs-theme="dark"] .app-main .list-group-item,
[data-bs-theme="dark"] .app-main .input-group-text,
[data-bs-theme="dark"] .app-main .page-link {
    color: var(--fx-text);
    background-color: var(--fx-surface-solid);
    border-color: var(--fx-border);
}

[data-bs-theme="dark"] .app-main .dropdown-item,
[data-bs-theme="dark"] .app-main .modal-title,
[data-bs-theme="dark"] .app-main .table {
    color: var(--fx-text);
}

[data-bs-theme="dark"] .app-main .dropdown-item:hover,
[data-bs-theme="dark"] .app-main .page-link:hover {
    color: var(--fx-text);
    background-color: rgba(var(--fx-accent-rgb), .1);
}

[data-bs-theme="dark"] .app-main .table > thead th {
    background: rgba(var(--fx-accent-rgb), .055);
}

@media (prefers-reduced-motion: reduce) {
    .app-content-header .fx-display,
    .app-content-header h1,
    .app-content .card,
    .app-content .fx-card,
    .app-content .fx-kpi,
    .app-content .fx-grad-card,
    .app-content .table > tbody > tr {
        animation: none !important;
    }
}

/* ============ ACESSIBILIDADE ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* preferência salva no perfil do usuário */
body.fx-no-motion *,
body.fx-no-motion *::before,
body.fx-no-motion *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
}

body.fx-no-motion::after {
    animation: none !important;
}

:focus-visible {
    outline: 2px solid var(--fx-primary);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 575.98px) {
    .fx-kpi { padding: 0.95rem 1rem; }
    .fx-kpi__icon { font-size: 3.2rem; }
    .fx-toasts { left: 1rem; right: 1rem; max-width: none; }
    .app-content > .container-fluid { padding-inline: 0.75rem; }
}

@media print {
    body::before,
    body::after,
    .app-sidebar,
    .app-header,
    .app-footer,
    .fx-toasts { display: none !important; }
    .card, .fx-card { box-shadow: none; border: 1px solid #ddd; }
}

/* ============ 10. SIDEBAR FIXA + MOTION MAIS VISÍVEL ============ */
@media (min-width: 992px) {
    body.layout-fixed.sidebar-expand-lg .app-sidebar {
        position: sticky !important;
        top: 0 !important;
        align-self: start;
        display: flex;
        flex-direction: column;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh;
        max-height: 100vh !important;
        overflow: hidden;
    }

    body.layout-fixed.sidebar-expand-lg .app-sidebar > .sidebar-brand {
        flex: 0 0 3.5rem;
    }

    body.layout-fixed.sidebar-expand-lg .app-sidebar > .sidebar-wrapper {
        flex: 1 1 auto;
        min-height: 0;
        height: calc(100vh - 3.5rem) !important;
        height: calc(100dvh - 3.5rem) !important;
        max-height: none;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }
}

@media (max-width: 991.98px) {
    body.sidebar-open .app-sidebar {
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    body.sidebar-open .app-sidebar > .sidebar-wrapper {
        flex: 1 1 auto;
        min-height: 0;
        height: calc(100vh - 3.5rem) !important;
        height: calc(100dvh - 3.5rem) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }
}

.app-main .app-content {
    animation: fx-content-arrive 620ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes fx-content-arrive {
    from { opacity: .25; transform: translateY(18px); filter: blur(2px); }
    to { opacity: 1; transform: none; filter: none; }
}

.app-content .card:hover,
.app-content .fx-card:hover,
.app-content .fx-grad-card:hover {
    transform: translateY(-6px) scale(1.006);
    box-shadow: var(--fx-shadow-lg), var(--fx-glow);
}

.app-content .table > tbody > tr:hover {
    transform: translateX(4px);
    box-shadow: inset 4px 0 0 var(--fx-accent), 0 5px 18px rgba(var(--fx-primary-rgb), .09);
}

.app-content .table tbody td:first-child a:not(.btn) {
    position: relative;
    text-decoration: none;
}

.app-content .table tbody td:first-child a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--fx-primary), var(--fx-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 260ms var(--fx-ease);
}

.app-content .table tbody td:first-child a:not(.btn):hover::after {
    transform: scaleX(1);
}

.app-main .btn:not(.btn-link):hover {
    transform: translateY(-3px) scale(1.025);
    filter: saturate(1.16) brightness(1.04);
    box-shadow: 0 10px 26px -12px rgba(var(--fx-primary-rgb), .65), 0 0 0 1px rgba(var(--fx-accent-rgb), .18);
}

.sidebar-menu .nav-link.active {
    background-size: 200% 100%;
    animation: fx-active-menu-flow 4s ease-in-out infinite;
}

@keyframes fx-active-menu-flow {
    0%, 100% { background-position: 0 50%; box-shadow: 0 8px 24px -12px rgba(var(--fx-accent-rgb), .65); }
    50% { background-position: 100% 50%; box-shadow: 0 10px 30px -10px rgba(var(--fx-primary-rgb), .8); }
}

@media (prefers-reduced-motion: reduce) {
    .app-main .app-content,
    .sidebar-menu .nav-link.active {
        animation: none !important;
    }
    .app-content .card:hover,
    .app-content .fx-card:hover,
    .app-content .fx-grad-card:hover,
    .app-content .table > tbody > tr:hover,
    .app-main .btn:not(.btn-link):hover {
        transform: none !important;
    }
}

/* =====================================================================
   LANDING PAGE (modo claro fixo)
   ===================================================================== */

/* quando a página é claro-fixo, ignoramos qualquer preferência escura */
body.fx-light-only {
    --fx-bg: #f5f7fe;
    --fx-bg-2: #ffffff;
    --fx-surface: rgba(255, 255, 255, 0.9);
    --fx-surface-solid: #ffffff;
    --fx-border: rgba(15, 23, 42, 0.09);
    --fx-border-strong: rgba(15, 23, 42, 0.16);
    --fx-text: #0f172a;
    --fx-muted: #5b6b86;
    --fx-sheen: rgba(255, 255, 255, 0.8);
    color: var(--fx-text);
    background: var(--fx-bg);
}

html { scroll-behavior: smooth; }

/* ---- âncora não some atrás da navbar fixa ---- */
.fx-page section[id] {
    scroll-margin-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ---- HERO ---- */
.fx-lp-hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
    overflow: hidden;
}

.fx-lp-hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 70%;
    background:
        radial-gradient(40rem 26rem at 20% 20%, rgba(var(--fx-primary-rgb), 0.18), transparent 62%),
        radial-gradient(34rem 24rem at 80% 10%, rgba(var(--fx-accent-rgb), 0.16), transparent 60%);
    filter: blur(8px);
    pointer-events: none;
    animation: fx-aurora 20s var(--fx-ease) infinite alternate;
}

.fx-lp-hero > * {
    position: relative;
    z-index: 1;
}

.fx-lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--fx-primary-rgb), 0.28);
    background: rgba(var(--fx-primary-rgb), 0.08);
    color: var(--fx-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.fx-lp-title {
    font-size: clamp(2.2rem, 6vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.fx-lp-lead {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--fx-muted);
    line-height: 1.65;
}

/* mockup do painel no hero */
.fx-lp-mock {
    border-radius: var(--fx-radius-lg);
    border: 1px solid var(--fx-border);
    background: var(--fx-surface-solid);
    box-shadow: var(--fx-shadow-lg);
    overflow: hidden;
}

.fx-lp-mock__bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--fx-border);
    background: linear-gradient(90deg, rgba(var(--fx-primary-rgb), 0.08), transparent);
}

.fx-lp-mock__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--fx-border-strong);
}

.fx-lp-mock__url {
    margin-left: 0.5rem;
    font-size: 0.72rem;
    color: var(--fx-muted);
    font-family: ui-monospace, monospace;
}

/* ---- faixa de números ---- */
.fx-lp-stats {
    border-radius: var(--fx-radius-lg);
    border: 1px solid var(--fx-border);
    background: var(--fx-surface-solid);
    box-shadow: var(--fx-shadow);
    padding: clamp(1.1rem, 3vw, 1.8rem);
}

.fx-lp-stat__value {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.fx-lp-stat__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fx-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0.35rem 0 0;
}

/* ---- cartão de recurso ---- */
.fx-lp-feature {
    height: 100%;
    padding: 1.4rem;
    border-radius: var(--fx-radius);
    border: 1px solid var(--fx-border);
    background: var(--fx-surface-solid);
    transition: transform var(--fx-speed) var(--fx-ease),
                box-shadow var(--fx-speed) var(--fx-ease),
                border-color var(--fx-speed) var(--fx-ease);
}

.fx-lp-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--fx-primary-rgb), 0.4);
    box-shadow: var(--fx-shadow-lg);
}

.fx-lp-feature__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--fx-primary), var(--fx-accent));
    box-shadow: 0 8px 22px -12px rgba(var(--fx-primary-rgb), 0.9);
}

/* ---- passo a passo ---- */
.fx-lp-step {
    position: relative;
    height: 100%;
    padding: 1.4rem 1.4rem 1.4rem 3.4rem;
    border-radius: var(--fx-radius);
    border: 1px solid var(--fx-border);
    background: var(--fx-surface-solid);
}

.fx-lp-step__n {
    position: absolute;
    left: 1.1rem;
    top: 1.35rem;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--fx-primary), var(--fx-violet));
}

.fx-lp-step::after {
    content: "";
    position: absolute;
    right: -0.85rem;
    top: 50%;
    width: 1.1rem;
    height: 2px;
    background: var(--fx-border-strong);
    display: none;
}

@media (min-width: 992px) {
    .fx-lp-steps > div:not(:last-child) .fx-lp-step::after { display: block; }
}

/* ---- integrações (IA e gateways) ---- */
.fx-lp-integration {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.3rem;
    border-radius: var(--fx-radius);
    border: 1px solid var(--fx-border);
    background: var(--fx-surface-solid);
    transition: border-color var(--fx-speed) var(--fx-ease), box-shadow var(--fx-speed) var(--fx-ease);
}

.fx-lp-integration:hover {
    border-color: rgba(var(--fx-primary-rgb), 0.4);
    box-shadow: var(--fx-shadow);
}

.fx-lp-integration__logo {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 1.05rem;
    color: #fff;
}

.fx-lp-endpoint {
    display: block;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 0.72rem;
    padding: 0.5rem 0.65rem;
    border-radius: 9px;
    background: rgba(var(--fx-primary-rgb), 0.07);
    color: var(--fx-muted);
    word-break: break-all;
}

/* ---- faixa da vitrine ---- */
.fx-lp-showcase {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    background:
        linear-gradient(180deg, transparent, rgba(var(--fx-primary-rgb), 0.05) 40%, transparent),
        var(--fx-bg);
}

/* ---- planos ---- */
.fx-lp-plan {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border-radius: var(--fx-radius-lg);
    border: 1px solid var(--fx-border);
    background: var(--fx-surface-solid);
    transition: transform var(--fx-speed) var(--fx-ease), box-shadow var(--fx-speed) var(--fx-ease);
}

.fx-lp-plan:hover { transform: translateY(-4px); box-shadow: var(--fx-shadow-lg); }

.fx-lp-plan--featured {
    border-color: rgba(var(--fx-primary-rgb), 0.55);
    box-shadow: 0 20px 50px -26px rgba(var(--fx-primary-rgb), 0.8);
}

.fx-lp-plan__tag {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(100deg, var(--fx-primary), var(--fx-violet));
}

.fx-lp-plan__price {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* ---- CTA final ---- */
.fx-lp-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--fx-radius-lg);
    padding: clamp(2rem, 5vw, 3.2rem);
    color: #eaf1ff;
    background: linear-gradient(140deg, #0c1530 0%, #12203f 55%, #0b1428 100%);
}

.fx-lp-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(26rem 18rem at 12% 10%, rgba(var(--fx-primary-rgb), 0.45), transparent 62%),
        radial-gradient(22rem 16rem at 88% 85%, rgba(var(--fx-accent-rgb), 0.35), transparent 60%);
    animation: fx-aurora 16s var(--fx-ease) infinite alternate;
}

.fx-lp-cta > * { position: relative; z-index: 1; }

/* ---- FAQ ---- */
.fx-lp-faq .accordion-item {
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius) !important;
    margin-bottom: 0.6rem;
    overflow: hidden;
    background: var(--fx-surface-solid);
}

.fx-lp-faq .accordion-button {
    font-weight: 600;
    background: transparent;
}

.fx-lp-faq .accordion-button:not(.collapsed) {
    color: var(--fx-primary);
    background: rgba(var(--fx-primary-rgb), 0.06);
    box-shadow: none;
}

/* ---- rodapé rico ---- */
.fx-lp-footer {
    border-top: 1px solid var(--fx-border);
    padding: clamp(2rem, 5vw, 3rem) 0 1.5rem;
}

.fx-lp-footer a {
    color: var(--fx-muted);
    text-decoration: none;
    display: inline-block;
    padding: 0.15rem 0;
}

.fx-lp-footer a:hover { color: var(--fx-primary); }

@media (max-width: 575.98px) {
    .fx-lp-step { padding-left: 1.4rem; padding-top: 3rem; }
    .fx-lp-step__n { top: 1.1rem; left: 1.4rem; }
}
