/* Aplicação base MVC */
:root {
    --brand: #0b3d91;
    --brand-dark: #082b66;
    --surface: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --bg1: #0b3d91;
    --bg2: #0e7490;
}

* { box-sizing: border-box; }

.app-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: #0b1220;
}

.app-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(14, 116, 144, 0.45), transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(11, 61, 145, 0.55), transparent 45%),
        linear-gradient(160deg, #07101f 0%, #0b1a33 50%, #0a2a3d 100%);
    z-index: 0;
}

.app-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
}

@media (min-height: 720px) {
    .app-main {
        justify-content: center;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

.app-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.app-card--wide {
    max-width: 560px;
}

/* ------------------------------------------------------------------ Login ---- */
.login-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: #0f172a;
    background: #f4f7fb;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 960px) {
    .login-screen {
        grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
    }
}

.login-screen__form-pane {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.25rem 1.5rem;
    isolation: isolate;
    background:
        radial-gradient(ellipse 80% 50% at 0% 0%, rgba(14, 116, 144, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(11, 61, 145, 0.07), transparent 50%),
        linear-gradient(165deg, #fbfcfe 0%, #eef3f8 48%, #e8eef5 100%);
}

.login-screen__form-pane::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 60% at 40% 35%, #000 20%, transparent 75%);
}

.login-screen__form-inner {
    width: 100%;
    max-width: 400px;
}

.login-screen__intro {
    margin-bottom: 1.85rem;
}

.login-screen__mark {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin: 0 0 1.65rem;
    background: linear-gradient(145deg, #0b1a33, #0e7490);
    box-shadow:
        0 12px 28px rgba(11, 26, 51, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.login-screen__mark-logo {
    width: 78%;
    height: auto;
    filter: brightness(1.05);
}

.login-screen__eyebrow {
    margin: 0 0 0.45rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0e7490;
}

.login-screen__heading {
    margin: 0 0 0.5rem;
    font-family: "Outfit", sans-serif;
    font-weight: 750;
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: #07101f;
}

.login-screen__sub {
    margin: 0;
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.55;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.login-field__label {
    display: block;
    margin-bottom: 0.45rem;
    font-family: "Outfit", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #334155;
}

.login-field__control {
    position: relative;
}

.login-field__affix {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    color: #94a3b8;
    font-size: 0.92rem;
    pointer-events: none;
    transition: color 0.15s ease;
}

.login-field__input {
    width: 100%;
    border: 1px solid #cfd8e6;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 0.9rem 1rem 0.9rem 2.65rem;
    font-size: 1rem;
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-field__password .login-field__input {
    padding-right: 3rem;
}

.login-field__password .form-control {
    padding-right: 3rem;
}

.login-field__toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.login-field__toggle:hover,
.login-field__toggle:focus-visible {
    color: #0e7490;
    background: rgba(14, 116, 144, 0.1);
    outline: none;
}

.login-field__toggle[aria-pressed="true"] {
    color: #0e7490;
}

.login-field__input::placeholder {
    color: #94a3b8;
}

.login-field__control:focus-within .login-field__affix {
    color: #0e7490;
}

.login-field__input:focus {
    outline: none;
    border-color: #0e7490;
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(14, 116, 144, 0.14),
        0 1px 2px rgba(15, 23, 42, 0.04);
}

.login-submit {
    margin-top: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    font-family: "Outfit", sans-serif;
    font-weight: 650;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    color: #fff;
    background: linear-gradient(135deg, #0b3d91 0%, #0e7490 100%);
    box-shadow:
        0 14px 30px rgba(11, 61, 145, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 36px rgba(11, 61, 145, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    filter: brightness(1.04);
    color: #fff;
}

.login-submit:active {
    transform: translateY(0);
}

.login-submit i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.login-submit:hover i {
    transform: translateX(3px);
}

.login-screen__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 1.35rem 0 0;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #64748b;
}

.login-screen__secure i {
    color: #0e7490;
    font-size: 0.82rem;
}

.login-screen__foot {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #94a3b8;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

.login-screen__showcase {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 2.5rem 1.75rem;
    color: #e8eef7;
    background:
        radial-gradient(ellipse 80% 60% at 85% 10%, rgba(14, 116, 144, 0.45), transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 90%, rgba(11, 61, 145, 0.4), transparent 50%),
        linear-gradient(155deg, #050d18 0%, #0a1a2e 48%, #072033 100%);
}

.login-screen__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.login-screen__orb--a {
    width: 280px;
    height: 280px;
    top: -60px;
    right: -40px;
    background: rgba(14, 116, 144, 0.45);
    animation: login-orb 14s ease-in-out infinite alternate;
}

.login-screen__orb--b {
    width: 220px;
    height: 220px;
    bottom: 8%;
    left: -50px;
    background: rgba(37, 99, 235, 0.28);
    animation: login-orb 18s ease-in-out infinite alternate-reverse;
}

.login-screen__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
    pointer-events: none;
    opacity: 0.7;
}

@keyframes login-orb {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-18px, 14px, 0) scale(1.08); }
}

.login-screen__showcase-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.login-screen__brand-logo {
    display: block;
    width: min(220px, 70%);
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.login-screen__brand-name {
    margin: 0 0 0.85rem;
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
}

.login-screen__claim {
    margin: 0 0 0.85rem;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: rgba(232, 238, 247, 0.95);
    max-width: 22ch;
}

.login-screen__claim-lead {
    margin: 0 0 2rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(186, 198, 214, 0.92);
    max-width: 36rem;
}

.login-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.login-features__item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.login-features__item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(125, 211, 252, 0.35);
    transform: translateX(3px);
}

.login-features__icon {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(14, 116, 144, 0.55), rgba(37, 99, 235, 0.4));
    color: #e0f2fe;
}

.login-features__icon svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    margin: 0;
}

.login-features__item strong {
    display: block;
    font-family: "Outfit", sans-serif;
    font-weight: 650;
    font-size: 0.98rem;
    color: #fff;
    margin-bottom: 0.15rem;
}

.login-features__item > div > span {
    display: block;
    font-size: 0.88rem;
    line-height: 1.4;
    color: rgba(186, 198, 214, 0.9);
}

.login-anim {
    animation: login-rise 0.75s ease both;
}

.login-anim--delay {
    animation-delay: 0.12s;
}

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

@media (max-width: 959.98px) {
    .login-screen__showcase {
        order: -1;
        min-height: auto;
        padding: 1.75rem 1.35rem 1.85rem;
    }

    .login-screen__brand-logo {
        width: 3.25rem;
        margin-bottom: 0.85rem;
    }

    .login-screen__brand-name {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
        margin-bottom: 0.55rem;
    }

    .login-screen__claim {
        max-width: none;
        font-size: 1.05rem;
        margin-bottom: 0.55rem;
    }

    .login-screen__claim-lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .login-features {
        gap: 0.55rem;
    }

    .login-features__item {
        padding: 0.7rem 0.8rem;
    }

    .login-features__item:hover {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    /* Em telas estreitas, o painel fica enxuto: marca + claim, sem os 3 cards. */
    .login-features {
        display: none;
    }

    .login-screen__claim-lead {
        margin-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-anim,
    .login-screen__orb--a,
    .login-screen__orb--b {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

.app-logo {
    margin: -2rem -1.75rem 1.25rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(160deg, #07101f 0%, #0b1a33 55%, #0a2a3d 100%);
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.app-logo__img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0 auto;
}

.brand-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--bg2));
    color: #fff;
    font-size: 1.4rem;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}
.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.app-footer {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}
.app-footer a { color: rgba(255, 255, 255, 0.85); }

/* Verificação pública de autenticidade */
.verify-badge {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.85rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: #fff;
}

.verify-badge--ok {
    background: linear-gradient(145deg, #0e7490, #0b3d91);
    box-shadow: 0 10px 24px rgba(11, 61, 145, 0.25);
}

.verify-badge--fail {
    background: linear-gradient(145deg, #b91c1c, #9a3412);
}

.verify-dl {
    margin: 0;
}

.verify-dl > div {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.5rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.verify-dl dt {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.verify-dl dd {
    margin: 0;
    color: #0f172a;
    word-break: break-word;
}

.verify-hash {
    font-size: 0.72rem;
    word-break: break-all;
}

/* =========================================================================
   Admin — shell com sidebar vertical
   ========================================================================= */
.admin-shell {
    --admin-sidebar-w: 280px;
    --admin-bg: #eef2f7;
    --admin-ink: #0f172a;
    --admin-muted: #64748b;
    margin: 0;
    min-height: 100vh;
    font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(59, 130, 246, 0.08), transparent 45%),
        var(--admin-bg);
    color: var(--admin-ink);
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--admin-sidebar-w);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    background: linear-gradient(185deg, #07101f 0%, #0b1a33 55%, #0a2438 100%);
    color: #e2e8f0;
    box-shadow: 8px 0 40px rgba(7, 16, 31, 0.25);
    transition: transform 0.28s ease;
}

.admin-sidebar__brand {
    padding: 1.25rem 1.15rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar__logo-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.85rem 0.75rem;
    margin-bottom: 0.85rem;
}

.admin-sidebar__logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 52px;
    object-fit: contain;
}

.admin-sidebar__app-name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.admin-sidebar__app-sub {
    display: block;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.55);
    margin-top: 0.15rem;
}

.admin-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.1rem 0.85rem;
}

.admin-sidebar__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(226, 232, 240, 0.4);
    margin: 0 0.65rem 0.55rem;
    font-weight: 600;
}

.admin-sidebar__label:not(:first-child) {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.9rem;
    border-radius: 10px;
    color: rgba(226, 232, 240, 0.78);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.admin-nav-link i {
    width: 1.25rem;
    text-align: center;
    opacity: 0.85;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.admin-nav-link.is-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(14, 116, 144, 0.2));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.admin-nav-link.is-active i {
    color: #93c5fd;
    opacity: 1;
}

.admin-nav-group {
    margin-bottom: 0.25rem;
}

.admin-nav-link--toggle {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.admin-nav-link--toggle .admin-nav-caret {
    margin-left: auto;
    width: auto;
    font-size: 0.7rem;
    opacity: 0.55;
    transition: transform 0.2s ease;
}

.admin-nav-group.is-open > .admin-nav-link--toggle .admin-nav-caret {
    transform: rotate(180deg);
}

.admin-nav-sub {
    padding: 0.15rem 0 0.35rem 0.55rem;
    margin: 0 0 0.2rem 0.55rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

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

.admin-nav-link--sub {
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

/* Modal de confirmação padronizado */
.confirm-modal {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.confirm-modal .modal-header,
.confirm-modal .modal-footer {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
}

.confirm-modal .modal-body {
    padding: 0.5rem 1.35rem 1rem;
}

.confirm-modal__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    font-size: 1.15rem;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.confirm-modal__icon.is-danger {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.confirm-modal__icon.is-warning {
    background: rgba(217, 119, 6, 0.14);
    color: #d97706;
}

.confirm-modal__icon.is-primary {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.confirm-modal__text {
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.45;
}

.admin-sidebar__footer {
    padding: 1rem 1.05rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-user__avatar {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: linear-gradient(135deg, #0b3d91, #0e7490);
    color: #fff;
    flex-shrink: 0;
}

.admin-user__meta {
    min-width: 0;
}

.admin-user__meta strong {
    display: block;
    font-size: 0.88rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user__meta small {
    display: block;
    font-size: 0.72rem;
    color: rgba(226, 232, 240, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-logout {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    padding: 0.55rem 0.75rem;
}

.admin-logout:hover {
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.admin-main {
    margin-left: var(--admin-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-topbar__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-topbar__crumb {
    margin: 0.1rem 0 0;
    font-size: 0.78rem;
    color: var(--admin-muted);
}

.admin-topbar__actions {
    margin-left: auto;
}

.admin-topbar__badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e3a8a;
    background: #dbeafe;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.admin-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #dbe2ea;
    border-radius: 11px;
    background: #fff;
    color: var(--admin-ink);
}

.admin-content {
    padding: 1.5rem 1.75rem 2.5rem;
    animation: adminFadeIn 0.35s ease;
}

@keyframes adminFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 16, 31, 0.45);
    z-index: 1035;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.35rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
    width: 100%;
    max-width: none;
}

.stat-label { font-size: 0.82rem; color: var(--admin-muted); font-weight: 500; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--admin-ink); letter-spacing: -0.03em; line-height: 1.15; margin-top: 0.35rem; }

/* Cards estreitos só quando agrupados em grade de métricas */
.row > [class*="col-"] > .stat-card .stat-value {
    font-size: 1.65rem;
}

.admin-form {
    width: 100%;
    max-width: none;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-105%);
    }

    .admin-shell.is-sidebar-open .admin-sidebar {
        transform: none;
    }

    .admin-shell.is-sidebar-open .admin-overlay {
        display: block;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-menu-btn {
        display: inline-grid;
        place-items: center;
    }

    .admin-topbar {
        padding: 0.85rem 1rem;
    }

    .admin-content {
        padding: 1.15rem 1rem 2rem;
    }

    .admin-topbar__badge {
        display: none;
    }
}

.admin-table-wrap {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    overflow: auto;
}

.admin-table {
    margin: 0;
    font-size: 0.9rem;
}

.admin-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    white-space: nowrap;
}

.admin-form .stat-label {
    margin-bottom: 1rem;
}

.admin-form .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.calc-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.calc-step {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
}

.calc-step a {
    color: inherit;
    text-decoration: none;
}

.calc-step a:hover {
    color: var(--brand);
}

.calc-step.is-done {
    color: #0f766e;
}

.calc-step__num {
    display: inline-grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #e2e8f0;
    color: #334155;
}

.calc-step.is-done .calc-step__num {
    background: #ccfbf1;
    color: #0f766e;
}

.calc-step__sep {
    width: 1.25rem;
    height: 2px;
    background: #cbd5e1;
    border-radius: 2px;
}

/* ------------------------------------------------------------------ Home ---- */
.home-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: #e8eef7;
    background: #061018;
    scroll-behavior: smooth;
}

.home-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 15% 10%, rgba(14, 116, 144, 0.35), transparent 55%),
        radial-gradient(ellipse 55% 45% at 90% 0%, rgba(11, 61, 145, 0.4), transparent 50%),
        radial-gradient(ellipse 50% 40% at 70% 90%, rgba(8, 47, 73, 0.5), transparent 55%),
        linear-gradient(165deg, #050d18 0%, #0a1a2e 48%, #071820 100%);
    animation: home-bg-shift 18s ease-in-out infinite alternate;
}

@keyframes home-bg-shift {
    from { filter: hue-rotate(0deg) saturate(1); }
    to   { filter: hue-rotate(8deg) saturate(1.08); }
}

.home-top,
.home-hero,
.home-section,
.home-cta,
.home-foot {
    position: relative;
    z-index: 1;
}

.home-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    max-width: 1120px;
    margin: 0 auto;
}

.home-top__logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.home-top__link {
    color: rgba(232, 238, 247, 0.78);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease, color 0.2s ease;
}

.home-top__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.home-hero {
    min-height: calc(100vh - 4.5rem);
    display: grid;
    align-items: center;
    padding: 2rem 1.5rem 4rem;
    overflow: hidden;
}

.home-hero__inner {
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.home-hero__brand {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 1.25rem;
    line-height: 1.1;
}

.home-hero__title {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
    max-width: 22ch;
    color: rgba(232, 238, 247, 0.92);
    margin: 0 0 1rem;
}

.home-hero__lead {
    font-size: 1.08rem;
    line-height: 1.55;
    color: rgba(186, 198, 214, 0.92);
    max-width: 38rem;
    margin: 0 0 1.75rem;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-hero__plane {
    position: absolute;
    inset: auto -10% -20% 35%;
    height: 70%;
    background:
        radial-gradient(ellipse at 40% 40%, rgba(14, 116, 144, 0.22), transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(59, 130, 246, 0.12), transparent 55%);
    filter: blur(8px);
    animation: home-plane 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes home-plane {
    from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
    to   { transform: translate3d(-3%, -2%, 0) scale(1.06); opacity: 1; }
}

.home-btn-primary {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
    transform: translateY(-1px);
}

.home-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(232, 238, 247, 0.9);
    font-weight: 600;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.home-reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: home-reveal 0.7s ease forwards;
}

.home-reveal--delay-1 { animation-delay: 0.12s; }
.home-reveal--delay-2 { animation-delay: 0.24s; }
.home-reveal--delay-3 { animation-delay: 0.36s; }

@keyframes home-reveal {
    to { opacity: 1; transform: translateY(0); }
}

.home-section {
    padding: 4.5rem 1.5rem;
}

.home-section--muted {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-section__inner {
    max-width: 1120px;
    margin: 0 auto;
}

.home-section__inner--split {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .home-section__inner--split {
        grid-template-columns: 1.1fr 1fr;
        align-items: start;
        gap: 3rem;
    }
}

.home-section__title {
    font-family: "Outfit", sans-serif;
    font-weight: 650;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 0.75rem;
}

.home-section__lead {
    color: rgba(186, 198, 214, 0.92);
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 40rem;
    margin: 0 0 2rem;
}

.home-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .home-flow {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }
}

.home-flow__item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.home-flow__step {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.35);
}

.home-flow__item strong {
    display: block;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.home-flow__item p {
    margin: 0;
    color: rgba(186, 198, 214, 0.88);
    font-size: 0.95rem;
    line-height: 1.45;
}

.home-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-checklist li {
    position: relative;
    padding: 0.65rem 0 0.65rem 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(210, 220, 232, 0.92);
    line-height: 1.4;
}

.home-checklist li:last-child {
    border-bottom: 0;
}

.home-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.home-cta {
    padding: 4rem 1.5rem 3.5rem;
    text-align: center;
}

.home-cta__inner {
    max-width: 36rem;
    margin: 0 auto;
}

.home-cta__title {
    font-family: "Outfit", sans-serif;
    font-weight: 650;
    font-size: 1.65rem;
    color: #fff;
    margin: 0 0 0.65rem;
}

.home-cta__text {
    color: rgba(186, 198, 214, 0.92);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.home-foot {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.55rem;
    padding: 1.25rem 1.5rem 2rem;
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.88rem;
}

.home-foot__sep {
    opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
    .home-bg,
    .home-hero__plane,
    .home-reveal {
        animation: none !important;
        opacity: 1;
        transform: none;
        filter: none;
    }
}


/* Guia do dashboard */
.guide-toc {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.guide-toc__list {
    margin: 0;
    padding-left: 1.2rem;
    color: #334155;
}

.guide-toc__list a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.guide-toc__list a:hover {
    text-decoration: underline;
}

.guide-section {
    scroll-margin-top: 1.25rem;
}

.guide-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.guide-step {
    display: flex;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.guide-step:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.guide-step:first-child {
    padding-top: 0;
}

.guide-step__num {
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: #e0e7ff;
    color: #1e3a8a;
}

.guide-step__title {
    font-size: 1.05rem;
    font-weight: 650;
    margin: 0 0 0.45rem;
    color: #0f172a;
}

.guide-step p,
.guide-step li {
    color: #475569;
    line-height: 1.5;
}

.guide-step ul,
.guide-nested {
    margin: 0.5rem 0 0.75rem;
    padding-left: 1.2rem;
}

.guide-note {
    background: #f8fafc;
    border-left: 3px solid #94a3b8;
    padding: 0.55rem 0.75rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.92rem;
    color: #475569;
}

.guide-pipeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e3a8a;
}

.guide-pipeline > span:not(.guide-pipeline__arrow) {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
}

.guide-pipeline__arrow {
    color: #94a3b8;
    font-weight: 500;
}

.guide-formula {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.15rem;
    font-size: 0.88rem;
    line-height: 1.45;
    overflow-x: auto;
    margin: 0;
}
