/* ============================================================
   RESET
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #ffffff;
    color: #171725;

    line-height: 1.6;

    min-height: 100vh;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* ============================================================
   VARIÁVEIS
   ============================================================ */

:root {

    --jax-primary: #7956f6;
    --jax-purple: #7956f6;
    --jax-blue: #5c8df5;
    --jax-cyan: #43c9dc;

    --jax-dark: #151522;
    --jax-text: #29293a;
    --jax-muted: #6e6e80;

    --jax-background: #f7f8fc;
    --jax-card: #ffffff;

    --jax-border: #e7e7ef;

    --jax-gradient:
        linear-gradient(
            110deg,
            #7956f6 0%,
            #6389f5 48%,
            #43c9dc 100%
        );

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;

    --shadow-sm:
        0 4px 16px rgba(30, 30, 60, 0.06);

    --shadow-md:
        0 12px 35px rgba(30, 30, 60, 0.10);

    --container-width: 1180px;
}


/* ============================================================
   UTILITÁRIOS
   ============================================================ */

.container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin-inline: auto;
}


/* ============================================================
   BOTÕES
   ============================================================ */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 20px;

    border-radius: 10px;

    border: 1px solid transparent;

    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: var(--jax-gradient);

    box-shadow:
        0 8px 20px rgba(108, 101, 242, 0.25);
}

.btn-primary:hover {
    box-shadow:
        0 12px 28px rgba(108, 101, 242, 0.35);
}

.btn-outline {
    color: var(--jax-purple);
    background: #ffffff;
    border-color: #dcd9f8;
}

.btn-secondary {
    color: var(--jax-text);
    background: #ffffff;
    border-color: var(--jax-border);
}

.btn-light {
    color: var(--jax-purple);
    background: #ffffff;
}

.btn-large {
    min-height: 52px;
    padding-inline: 26px;
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;

    z-index: 100;

    background:
        rgba(255, 255, 255, 0.94);

    border-bottom: 1px solid var(--jax-border);

    backdrop-filter: blur(14px);
}

.header-content {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* LOGO */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    flex-shrink: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;

    object-fit: cover;

    border-radius: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: 0.08em;
}

.brand-text span {
    margin-top: 4px;

    color: var(--jax-muted);

    font-size: 0.66rem;
}


/* NAVEGAÇÃO */

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;

    color: var(--jax-muted);

    font-size: 0.9rem;
    font-weight: 600;

    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--jax-purple);
}

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -9px;

    height: 2px;

    border-radius: 999px;

    background: var(--jax-gradient);
}


/* AÇÕES */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-auth-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-auth-actions[hidden] {
    display: none;
}


/* MENU MOBILE */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--jax-border);
    border-radius: 10px;

    background: #ffffff;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    width: 20px;
    height: 2px;

    margin: 4px auto;

    background: var(--jax-dark);

    border-radius: 999px;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #faf9ff 0%,
            #ffffff 100%
        );
}

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -250px;
    right: -180px;

    background:
        radial-gradient(
            circle,
            rgba(67, 201, 220, 0.18),
            transparent 70%
        );

    pointer-events: none;
}

.hero-content {
    min-height: 600px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(320px, 0.9fr);

    align-items: center;

    gap: 70px;

    padding-block: 80px;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 16px;

    color: var(--jax-purple);

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.14em;
}

.hero h1 {
    max-width: 700px;

    color: var(--jax-dark);

    font-size:
        clamp(3rem, 6vw, 5.2rem);

    line-height: 0.98;

    letter-spacing: -0.055em;
}

.hero h1 span,
.section-heading h2 span {
    display: block;

    background: var(--jax-gradient);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-text > p {
    max-width: 610px;

    margin-top: 28px;

    color: var(--jax-muted);

    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


/* VISUAL DA HERO */

.hero-visual {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 400px;
}

.hero-glow {
    position: absolute;

    width: 330px;
    height: 330px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(121, 86, 246, 0.22),
            rgba(67, 201, 220, 0.12),
            transparent 70%
        );

    filter: blur(8px);
}

.logo-card {
    position: relative;

    width: 310px;

    padding: 16px;

    border-radius: 28px;

    background: #ffffff;

    box-shadow:
        0 25px 70px rgba(50, 50, 90, 0.16);

    transform: rotate(2deg);

    transition:
        transform 0.3s ease;
}

.logo-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.logo-card img {
    width: 100%;

    border-radius: 18px;
}


/* ============================================================
   SEÇÕES
   ============================================================ */

.section {
    padding-block: 100px;

    background: var(--jax-background);
}

.section-heading {
    max-width: 680px;

    margin-bottom: 50px;
}

.section-heading h2 {
    color: var(--jax-dark);

    font-size:
        clamp(2.2rem, 4vw, 3.5rem);

    line-height: 1.05;

    letter-spacing: -0.04em;
}

.section-heading p {
    margin-top: 20px;

    color: var(--jax-muted);

    font-size: 1rem;
}


/* ============================================================
   CARDS
   ============================================================ */

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.feature-card {
    display: flex;

    gap: 18px;

    padding: 28px;

    background: var(--jax-card);

    border: 1px solid var(--jax-border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--jax-gradient);

    color: #ffffff;

    font-size: 1.1rem;
    font-weight: 800;
}

.feature-card h3 {
    color: var(--jax-dark);

    font-size: 1.15rem;
}

.feature-card p {
    margin-top: 8px;

    color: var(--jax-muted);

    font-size: 0.9rem;
}


/* ============================================================
   CTA
   ============================================================ */

.cta-section {
    padding-block: 80px;

    background: #ffffff;
}

.cta-card {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 55px;

    border-radius: 28px;

    color: #ffffff;

    background: var(--jax-gradient);

    box-shadow:
        0 25px 60px rgba(87, 109, 230, 0.25);
}

.cta-card .eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

.cta-card h2 {
    font-size:
        clamp(2rem, 4vw, 3rem);

    line-height: 1.05;

    letter-spacing: -0.035em;
}

.cta-card p {
    margin-top: 12px;

    color: rgba(255, 255, 255, 0.82);
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: #151522;

    color: #ffffff;
}

.footer-content {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding-block: 45px;
}

.footer-brand {
    display: flex;
    align-items: center;

    gap: 12px;
}

.footer-brand img {
    width: 44px;
    height: 44px;

    object-fit: cover;

    border-radius: 9px;
}

.footer-brand div {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    letter-spacing: 0.08em;
}

.footer-brand span {
    margin-top: 4px;

    color: #9999aa;

    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #aaaabb;

    font-size: 0.85rem;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-block: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    color: #777789;

    font-size: 0.75rem;

    text-align: center;
}

/* ============================================================
   PÁGINAS DE ERRO
   ============================================================ */

.error-page {
    min-height: calc(100vh - 76px);

    display: flex;
    align-items: center;

    padding-block: 80px;

    background:
        linear-gradient(
            180deg,
            #faf9ff 0%,
            #ffffff 100%
        );
}


.error-content {
    max-width: 760px;

    margin-inline: auto;

    text-align: center;
}


.error-code {
    margin-top: 10px;

    background: var(--jax-gradient);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    font-size: clamp(7rem, 20vw, 13rem);

    font-weight: 900;

    line-height: 0.9;

    letter-spacing: -0.08em;
}


.error-content h1 {
    margin-top: 25px;

    color: var(--jax-dark);

    font-size:
        clamp(2rem, 5vw, 3.5rem);

    line-height: 1.05;

    letter-spacing: -0.045em;
}


.error-content p {
    max-width: 560px;

    margin: 18px auto 0;

    color: var(--jax-muted);

    font-size: 1rem;
}


.error-actions {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


@media (max-width: 600px) {

    .error-page {
        padding-block: 60px;
    }

    .error-code {
        font-size: 8rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
    }

}

/* ============================================================
   PÁGINAS INSTITUCIONAIS / LEGAIS
   ============================================================ */

.legal-page {
    min-height: calc(100vh - 76px);
    padding-block: 80px 100px;
    background:
        linear-gradient(
            180deg,
            #faf9ff 0%,
            #ffffff 35%,
            #ffffff 100%
        );
}

.legal-header {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.legal-header h1 {
    margin-top: 18px;
    color: var(--jax-dark);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.legal-lead {
    max-width: 700px;
    margin: 24px auto 0;
    color: var(--jax-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.legal-content {
    max-width: 820px;
    margin: 64px auto 0;
}

.legal-section {
    padding-block: 34px;
    border-bottom: 1px solid var(--jax-border);
}

.legal-section:first-child {
    padding-top: 0;
}

.legal-last-section {
    border-bottom: 0;
}

.legal-section h2 {
    margin-bottom: 18px;
    color: var(--jax-dark);
    font-size: 1.45rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.legal-section p {
    margin-top: 14px;
    color: var(--jax-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.legal-section p:first-of-type {
    margin-top: 0;
}

.legal-section ul {
    margin-top: 18px;
    padding-left: 22px;
}

.legal-section li {
    margin-bottom: 10px;
    color: var(--jax-muted);
    line-height: 1.7;
}

.legal-highlight {
    margin-top: 24px;
    padding: 28px 30px;
    border: 1px solid var(--jax-border);
    border-radius: 18px;
    background: #faf9ff;
}

.legal-highlight p {
    margin-top: 10px;
}

.legal-highlight p:first-child {
    margin-top: 0;
    color: var(--jax-dark);
    font-size: 1.15rem;
}

@media (max-width: 600px) {

    .legal-page {
        padding-block: 60px 70px;
    }

    .legal-content {
        margin-top: 44px;
    }

    .legal-section {
        padding-block: 28px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-lead {
        font-size: 1rem;
        line-height: 1.7;
    }

    .legal-highlight {
        padding: 22px;
    }
}


/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;

        text-align: center;

        padding-block: 70px;
    }

    .hero-text > p {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        min-height: 300px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        flex-direction: column;

        align-items: flex-start;
    }

}


@media (max-width: 600px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container-width)
        );
    }

    .brand-text span {
        display: none;
    }

    .hero-content {
        padding-block: 55px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .logo-card {
        width: 250px;
    }

    .section {
        padding-block: 70px;
    }

    .feature-card {
        padding: 22px;
    }

    .cta-card {
        padding: 35px 25px;
    }

    .footer-content {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;

        gap: 10px;
    }

}

/* ============================================================
   AUTENTICAÇÃO
   ============================================================ */

.auth-page-body {
    background:
        linear-gradient(
            180deg,
            #faf9ff 0%,
            #ffffff 100%
        );
}


/* ============================================================
   ESTRUTURA
   ============================================================ */

.auth-page {
    min-height: calc(100vh - 76px);
    padding: 70px 20px 90px;
    display: flex;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 620px;
}


/* ============================================================
   CARD
   ============================================================ */

.auth-card {
    width: 100%;
    padding: 42px;
    background: #ffffff;
    border: 1px solid var(--jax-border);
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(20, 16, 50, 0.08);
}

.auth-card-login {
    max-width: 540px;
    margin-inline: auto;
}


/* ============================================================
   CABEÇALHO
   ============================================================ */

.auth-header {
    text-align: center;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-header h1 {
    margin-top: 16px;
    color: var(--jax-dark);
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.auth-header p {
    max-width: 480px;
    margin: 16px auto 0;
    color: var(--jax-muted);
    line-height: 1.7;
}

/* ============================================================
   AUTH ERRO
   ============================================================ */

.auth-error {
    margin-top: 18px;
    padding: 13px 15px;

    border: 1px solid #f0caca;
    border-radius: 10px;

    background: #fff5f5;
    color: #a33a3a;

    font-size: 0.85rem;
    line-height: 1.5;
}

   /* ============================================================
   FORMULÁRIO
   ============================================================ */

.auth-form {
    margin-top: 34px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--jax-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--jax-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--jax-dark);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input::placeholder {
    color: #a3a1ad;
}

.form-group input:hover {
    border-color: #c9c5d8;
}

.form-group input:focus {
    border-color: var(--jax-primary);
    box-shadow:
        0 0 0 4px rgba(124, 92, 255, 0.10);
}


/* ============================================================
   DUAS COLUNAS
   ============================================================ */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}


/* ============================================================
   CHECKBOX
   ============================================================ */

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    color: var(--jax-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: var(--jax-primary);
    cursor: pointer;
}

.form-checkbox a {
    color: var(--jax-primary);
    font-weight: 600;
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

.form-checkbox-small {
    margin-top: 0;
}


/* ============================================================
   BOTÃO PRINCIPAL
   ============================================================ */

.auth-submit {
    width: 100%;
    margin-top: 26px;
}


/* ============================================================
   OPÇÕES DO LOGIN
   ============================================================ */

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
}

.auth-link {
    color: var(--jax-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}


/* ============================================================
   DIVISOR
   ============================================================ */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0;
    color: var(--jax-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--jax-border);
}


/* ============================================================
   CRIAÇÃO DE CONTA
   ============================================================ */

.auth-create {
    text-align: center;
}

.auth-create p {
    margin-bottom: 14px;
    color: var(--jax-muted);
    font-size: 0.9rem;
}

.auth-create .btn {
    width: 100%;
}


/* ============================================================
   RODAPÉ DA AUTENTICAÇÃO
   ============================================================ */

.auth-footer {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--jax-border);
    text-align: center;
}

.auth-footer span {
    color: var(--jax-muted);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--jax-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.form-group small {
    display: block;
    margin-top: 6px;

    color: var(--jax-muted);

    font-size: 0.78rem;
    line-height: 1.4;
}


/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 700px) {

    .auth-page {
        padding: 40px 16px 60px;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

}


@media (max-width: 480px) {

    .auth-page {
        padding-top: 24px;
    }

    .auth-card {
        padding: 26px 18px;
        border-radius: 18px;
        box-shadow: none;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

}

/* ============================================================
   ÁREA PRIVADA
   ============================================================ */

.private-page-body {
    background: #f8f8fc;
}

.private-page {
    min-height: calc(100vh - 76px);
    padding: 60px 20px 90px;
}

.private-container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
}


/* ============================================================
   CABEÇALHO DO DASHBOARD
   ============================================================ */

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.dashboard-header h1 {
    margin-top: 14px;
    color: var(--jax-dark);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.dashboard-header p {
    max-width: 650px;
    margin-top: 14px;
    color: var(--jax-muted);
    line-height: 1.7;
}

/* ============================================================
   DASHBOARD — ERRO
   ============================================================ */

.dashboard-error {
    margin-bottom: 24px;
    padding: 14px 18px;

    border: 1px solid #f0caca;
    border-radius: 12px;

    background: #fff5f5;
    color: #a33a3a;

    font-size: 0.9rem;
    line-height: 1.5;
}

.dashboard-error[hidden] {
    display: none;
}


/* ============================================================
   INDICADORES
   ============================================================ */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.dashboard-stat-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--jax-border);
    border-radius: 18px;
}

.dashboard-stat-label {
    display: block;
    color: var(--jax-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-stat-value {
    display: block;
    margin-top: 10px;
    color: var(--jax-dark);
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.dashboard-stat-description {
    display: block;
    margin-top: 8px;
    color: var(--jax-muted);
    font-size: 0.78rem;
}

.dashboard-panel-description {
    margin: 6px 0 0;
    color: var(--jax-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ============================================================
   GRID DO DASHBOARD
   ============================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}


/* ============================================================
   PAINÉIS
   ============================================================ */

.dashboard-panel {
    margin-bottom: 20px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--jax-border);
    border-radius: 20px;
}

.dashboard-panel-large {
    margin-bottom: 0;
}

.dashboard-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-panel-header h2 {
    margin-top: 6px;
    color: var(--jax-dark);
    font-size: 1.35rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.dashboard-panel-header > a {
    flex: 0 0 auto;
    color: var(--jax-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.dashboard-panel-header > a:hover {
    text-decoration: underline;
}

.dashboard-panel-eyebrow {
    color: var(--jax-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.dashboard-panel-description {
    max-width: 680px;
    margin-top: 8px;
    color: var(--jax-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* ============================================================
   FEATURE
   ============================================================ */

.dashboard-feature {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px;
    border: 1px solid var(--jax-border);
    border-radius: 16px;
    background: #faf9ff;
}

.dashboard-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 16px;
    background: var(--jax-gradient);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
}

.dashboard-feature-content > span {
    color: var(--jax-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-feature-content h3 {
    margin-top: 5px;
    color: var(--jax-dark);
    font-size: 1.2rem;
}

.dashboard-feature-content p {
    margin: 7px 0 16px;
    color: var(--jax-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}


/* ============================================================
   PERFIL RESUMIDO
   ============================================================ */

.dashboard-profile-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.dashboard-avatar,
.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--jax-gradient);
    color: #ffffff;
    font-weight: 800;
}

.dashboard-avatar {
    width: 52px;
    height: 52px;
}

.dashboard-profile-summary strong {
    display: block;
    color: var(--jax-dark);
}

.dashboard-profile-summary span {
    display: block;
    margin-top: 3px;
    color: var(--jax-muted);
    font-size: 0.8rem;
}

.dashboard-full-button {
    width: 100%;
}


/* ============================================================
   ATIVIDADES
   ============================================================ */

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-feedback {
    grid-column: 1 / -1;
    padding: 1.5rem 0;
    color: var(--jax-text-muted, #888);
    font-size: 0.95rem;
    text-align: center;
}

.activity-item-danger .activity-icon {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

.activity-item-danger strong {
    color: #dc2626;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 0;
    border-bottom: 1px solid var(--jax-border);
}

.activity-item:first-child {
    padding-top: 0;
}

.activity-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #f1efff;
    color: var(--jax-primary);
    font-weight: 800;
}

.activity-content {
    min-width: 0;
    flex: 1;
}

.activity-content strong {
    display: block;
    color: var(--jax-dark);
    font-size: 0.9rem;
}

.activity-content span {
    display: block;
    margin-top: 3px;
    color: var(--jax-muted);
    font-size: 0.78rem;
}

.activity-item time {
    flex: 0 0 auto;
    color: var(--jax-muted);
    font-size: 0.75rem;
}


/* ============================================================
   ACESSOS RÁPIDOS
   ============================================================ */

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.quick-access-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--jax-border);
    border-radius: 16px;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.quick-access-card:hover {
    transform: translateY(-2px);
    border-color: #d2cdef;
    box-shadow: 0 10px 30px rgba(20, 16, 50, 0.06);
}

.quick-access-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: #f1efff;
    color: var(--jax-primary);
    font-weight: 800;
}

.quick-access-card strong {
    color: var(--jax-dark);
}

.quick-access-card > span:last-child {
    margin-top: 6px;
    color: var(--jax-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}


/* ============================================================
   PERFIL
   ============================================================ */

.profile-hero {
    display: flex;
    align-items: center;
    gap: 22px;
}

.profile-avatar {
    width: 82px;
    height: 82px;
    flex: 0 0 auto;
    font-size: 1.8rem;
}

.profile-identity > span {
    color: var(--jax-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.profile-identity h2 {
    margin-top: 4px;
    color: var(--jax-dark);
    font-size: 1.8rem;
}

.profile-identity p {
    margin-top: 4px;
    color: var(--jax-muted);
    font-size: 0.85rem;
}


/* ============================================================
   DADOS DO PERFIL
   ============================================================ */

.profile-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.profile-data-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--jax-border);
}

.profile-data-item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.profile-data-item span {
    display: block;
    color: var(--jax-muted);
    font-size: 0.75rem;
}

.profile-data-item strong {
    display: block;
    margin-top: 6px;
    color: var(--jax-dark);
    font-size: 0.92rem;
}


/* ============================================================
   INTERESSES
   ============================================================ */

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.interest-tag {
    padding: 9px 14px;
    border: 1px solid var(--jax-border);
    border-radius: 999px;
    background: #faf9ff;
    color: var(--jax-dark);
    font-size: 0.8rem;
    font-weight: 600;
}


/* ============================================================
   GUARNICÊ
   ============================================================ */

.guarnice-intro {
    display: flex;
    align-items: center;
    gap: 22px;
}

.guarnice-intro-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    border-radius: 18px;
    background: var(--jax-gradient);
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 800;
}

.guarnice-intro h2 {
    margin-top: 6px;
    color: var(--jax-dark);
    font-size: 1.35rem;
}

.guarnice-intro p {
    max-width: 700px;
    margin-top: 7px;
    color: var(--jax-muted);
    line-height: 1.6;
}


/* ============================================================
   TOOLBAR
   ============================================================ */

.guarnice-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.guarnice-search {
    width: 300px;
}

.guarnice-search label {
    display: block;
    margin-bottom: 7px;
    color: var(--jax-dark);
    font-size: 0.78rem;
    font-weight: 600;
}

.guarnice-search input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--jax-border);
    border-radius: 10px;
    outline: none;
    font-family: inherit;
}

.guarnice-search input:focus {
    border-color: var(--jax-primary);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.10);
}


/* ============================================================
   OBRAS
   ============================================================ */

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.work-card {
    overflow: hidden;
    border: 1px solid var(--jax-border);
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.work-card:hover {
    transform: translateY(-3px);
    border-color: #d2cdef;
    box-shadow: 0 14px 35px rgba(20, 16, 50, 0.08);
}

.work-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    background: var(--jax-gradient);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.work-content {
    padding: 17px;
}

.work-status {
    color: var(--jax-primary);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.work-content h3 {
    margin-top: 8px;
    color: var(--jax-dark);
    font-size: 1rem;
    line-height: 1.3;
}

.work-content p {
    margin-top: 4px;
    color: var(--jax-muted);
    font-size: 0.8rem;
}

.work-action {
    display: block;
    margin-top: 18px;
    color: var(--jax-primary);
    font-size: 0.8rem;
    font-weight: 700;
}


/* ============================================================
   12 TÓPICOS
   ============================================================ */

.analysis-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.analysis-topic {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 13px 15px;
    border: 1px solid var(--jax-border);
    border-radius: 12px;
}

.analysis-topic span {
    color: var(--jax-primary);
    font-size: 0.7rem;
    font-weight: 800;
}

.analysis-topic strong {
    color: var(--jax-dark);
    font-size: 0.82rem;
}


/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 1000px) {

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 800px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-panel-large {
        margin-bottom: 0;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .analysis-topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .private-page {
        padding: 40px 16px 60px;
    }

    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-header-action {
        width: 100%;
    }

    .dashboard-header-action .btn {
        width: 100%;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-feature {
        align-items: flex-start;
        flex-direction: column;
    }

    .guarnice-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .guarnice-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .guarnice-search {
        width: 100%;
    }

    .profile-data-grid {
        grid-template-columns: 1fr;
    }

    .profile-data-item:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--jax-border);
    }

    .profile-data-item:last-child {
        border-bottom: 0;
    }

}


@media (max-width: 480px) {

    .dashboard-panel {
        padding: 22px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .analysis-topics-grid {
        grid-template-columns: 1fr;
    }

    .activity-item {
        align-items: flex-start;
    }

    .activity-item time {
        display: none;
    }

}

/* ============================================================
   GUARNICÊ — FEEDBACK
   ============================================================ */

.guarnice-feedback {
    padding: 30px 0;
    text-align: center;
    color: var(--jax-muted);
    font-size: 0.92rem;
}


/* ============================================================
   GUARNICÊ — MODAL
   ============================================================ */

body.guarnice-modal-open {
    overflow: hidden;
}

.guarnice-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.guarnice-modal[hidden] {
    display: none;
}

.guarnice-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 50, 0.55);
    backdrop-filter: blur(6px);
}

.guarnice-modal-dialog {
    position: relative;
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 44px 42px 38px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(20, 16, 50, 0.25);
}

.guarnice-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f1efff;
    color: var(--jax-primary);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.guarnice-modal-close:hover {
    background: #e5e0ff;
}

.guarnice-modal-loading,
.guarnice-modal-error {
    padding: 40px 0;
    text-align: center;
    color: var(--jax-muted);
}

.guarnice-modal-error {
    color: #a33a3a;
}


/* ============================================================
   GUARNICÊ — CABEÇALHO DA ANÁLISE
   ============================================================ */

.guarnice-analysis-header {
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--jax-border);
}

.guarnice-analysis-header h2 {
    margin-top: 8px;
    color: var(--jax-dark);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.guarnice-analysis-meta {
    margin-top: 8px;
    color: var(--jax-muted);
    font-size: 0.9rem;
}


/* ============================================================
   GUARNICÊ — SEÇÕES DA ANÁLISE
   ============================================================ */

.guarnice-analysis-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.guarnice-analysis-section {
    padding: 20px 22px;
    border: 1px solid var(--jax-border);
    border-radius: 14px;
    background: #faf9ff;
}

.guarnice-analysis-section header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.guarnice-analysis-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
    border-radius: 8px;
    background: var(--jax-gradient);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.guarnice-analysis-section h3 {
    color: var(--jax-dark);
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}

.guarnice-analysis-text {
    color: var(--jax-text);
    font-size: 0.95rem;
    line-height: 1.75;
    white-space: pre-wrap;
}

.guarnice-analysis-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.guarnice-analysis-list li {
    padding: 7px 13px;
    border: 1px solid var(--jax-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--jax-dark);
    font-size: 0.82rem;
    font-weight: 600;
}

.guarnice-analysis-empty {
    color: var(--jax-muted);
    font-size: 0.88rem;
    font-style: italic;
}

/* ============================================================
   GUARNICÊ — CARDS DE LISTA (PERSONAGENS / REPERTÓRIOS)
   ============================================================ */

.guarnice-analysis-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guarnice-card {
    padding: 16px 18px;
    border: 1px solid var(--jax-border);
    border-radius: 12px;
    background: #ffffff;
}

.guarnice-card-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1efff;
    color: var(--jax-primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.guarnice-card-title {
    margin: 0;
    color: var(--jax-dark);
    font-size: 0.98rem;
    line-height: 1.3;
}

.guarnice-card-meta {
    margin-top: 4px;
    color: var(--jax-muted);
    font-size: 0.82rem;
}

.guarnice-card-text {
    margin-top: 8px;
    color: var(--jax-text);
    font-size: 0.9rem;
    line-height: 1.7;
}

.guarnice-card-exemplos {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--jax-border);
}

.guarnice-card-exemplos-label {
    display: block;
    margin-bottom: 6px;
    color: var(--jax-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.guarnice-card-exemplos ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.guarnice-card-exemplos li {
    padding: 5px 10px;
    border: 1px solid var(--jax-border);
    border-radius: 999px;
    background: #faf9ff;
    color: var(--jax-dark);
    font-size: 0.78rem;
}


/* ============================================================
   GUARNICÊ — RESPONSIVO
   ============================================================ */

@media (max-width: 650px) {

    .guarnice-modal {
        padding: 12px;
        align-items: flex-start;
    }

    .guarnice-modal-dialog {
        padding: 32px 20px 24px;
        border-radius: 18px;
        max-height: calc(100vh - 24px);
    }

    .guarnice-analysis-section {
        padding: 16px;
    }
}

/* ============================================================
   ADMIN — TABELA
   ============================================================ */

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--jax-border);
}

.admin-table th {
    color: var(--jax-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table-actions {
    text-align: right;
}

.admin-row-button {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.8rem;
}


/* ============================================================
   ADMIN — BADGES
   ============================================================ */

.admin-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.admin-badge-active {
    background: #e8f7ee;
    color: #1f7a45;
}

.admin-badge-inactive {
    background: #fdecec;
    color: #a33a3a;
}


/* ============================================================
   ADMIN — MODAL
   ============================================================ */

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 50, 0.55);
    backdrop-filter: blur(6px);
}

.admin-modal-dialog {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 44px 42px 38px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(20, 16, 50, 0.25);
}

.admin-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
}

.admin-delete-button {
    color: #a33a3a;
    border-color: #f0caca;
}

.admin-delete-button:hover {
    background: #fff5f5;
}

@media (max-width: 650px) {
    .admin-modal {
        padding: 12px;
        align-items: flex-start;
    }
    .admin-modal-dialog {
        padding: 32px 20px 24px;
        border-radius: 18px;
        max-height: calc(100vh - 24px);
    }
    .admin-modal-actions {
        flex-direction: column-reverse;
    }
    .admin-modal-actions > div {
        width: 100%;
    }
    .admin-modal-actions .btn {
        flex: 1;
    }
}

/* ============================================================
   MOBILE MENU — DROPDOWN DAS AÇÕES DO HEADER
   ============================================================ */

@media (max-width: 900px) {

    /* Ações do header viram um painel abaixo do header */
    .site-header.is-menu-open .header-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        padding: 20px;
        background: #ffffff;
        border-top: 1px solid var(--jax-border);
        border-bottom: 1px solid var(--jax-border);
        box-shadow: 0 14px 34px rgba(20, 16, 50, 0.10);

        z-index: 99;
    }

    .site-header.is-menu-open .header-actions .header-auth-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .site-header.is-menu-open .header-actions .header-auth-actions[hidden] {
        display: none;
    }

    .site-header.is-menu-open .header-actions .btn {
        width: 100%;
    }

    /* Animação do hambúrguer -> X */
    .mobile-menu-button span {
        transition: transform 0.25s ease, opacity 0.25s ease;
        transform-origin: center;
    }

    .site-header.is-menu-open .mobile-menu-button span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .site-header.is-menu-open .mobile-menu-button span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-menu-open .mobile-menu-button span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}
