:root {
    --np-navy: #101b2d;
    --np-navy-2: #1d3048;
    --np-yellow: #ffc629;
    --np-ink: #172438;
    --np-muted: #687487;
    --np-line: #e3e8ef;
    --np-surface: #ffffff;
    --np-page: #f4f6f9;
    --np-radius: 12px;
    --np-shadow: 0 10px 28px rgba(16, 27, 45, .07);
}

html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--np-page);
    color: var(--np-ink);
    font-family: Arial, Helvetica, sans-serif;
}

/* Cabeçalho principal */
.np-header {
    position: relative;
    z-index: 100;
    width: 100%;
    color: #fff;
    background: var(--np-navy);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 4px 18px rgba(10, 20, 35, .12);
}
.np-header-inner {
    width: min(1380px, calc(100% - 48px));
    min-height: 76px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
}
.np-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    color: #fff !important;
    text-decoration: none !important;
}
.np-brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border-radius: 9px;
    background: var(--np-yellow);
    color: var(--np-navy);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.5px;
}
.np-brand-name {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .25px;
    white-space: nowrap;
}
.np-brand-name > span { color: var(--np-yellow); }

.np-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.35vw, 20px);
}
.np-nav > a,
.np-header-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    color: #dce4ef;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.np-nav > a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}
.np-nav > a:hover,
.np-nav > a.is-active { color: var(--np-yellow); }
.np-nav > a.is-active { border-bottom-color: var(--np-yellow); }
.np-nav > a.np-nav-cta {
    padding: 10px 13px;
    border: 0;
    border-radius: 7px;
    background: var(--np-yellow);
    color: var(--np-navy);
}
.np-nav > a.np-nav-cta:hover { background: #f1b91e; color: var(--np-navy); }

.np-header-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.np-header-actions > a { padding: 8px 0; }
.np-header-actions > a:hover { color: var(--np-yellow); }
.np-header-actions .np-register-link {
    padding: 10px 13px;
    border-radius: 7px;
    background: var(--np-yellow);
    color: var(--np-navy);
}
.np-header-actions .np-register-link:hover { background: #f1b91e; color: var(--np-navy); }
.np-header-actions .np-admin-link { color: var(--np-yellow); }

.np-dropdown {
    position: relative;
    flex: 0 0 auto;
}
.np-dropdown > summary {
    position: relative;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 7px;
    color: #e8eef7;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    list-style: none;
    cursor: pointer;
    user-select: none;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.np-dropdown > summary::-webkit-details-marker { display: none; }
.np-dropdown > summary::marker { content: ""; }
.np-dropdown > summary:hover,
.np-dropdown > summary.is-active,
.np-dropdown[open] > summary {
    border-color: rgba(255,198,41,.65);
    color: var(--np-yellow);
    background: rgba(255,255,255,.045);
}
.np-chevron {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .15s ease;
}
.np-dropdown[open] > summary .np-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}
.np-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 120;
    min-width: 205px;
    padding: 7px;
    border: 1px solid #e2e7ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(4, 15, 31, .22);
}
.np-dropdown-panel a {
    display: flex;
    min-height: 39px;
    align-items: center;
    padding: 9px 11px;
    border-radius: 6px;
    color: #26364b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}
.np-dropdown-panel a:hover,
.np-dropdown-panel a.is-active {
    color: #101b2d;
    background: #fff4cf;
}
.np-dropdown-heading {
    padding: 8px 11px 5px;
    color: #8490a0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.np-dropdown-divider {
    height: 1px;
    margin: 6px 4px;
    background: #e8ecf1;
}
.np-more-menu[open] > .np-dropdown-panel { left: 0; }
.np-account-menu > summary { padding-right: 12px; }
.np-account-menu .np-dropdown-panel {
    left: auto;
    right: 0;
    min-width: 225px;
}
.np-account-label-mobile { display: none; }
.np-notification-count {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 20px;
    background: var(--np-yellow);
    color: var(--np-navy);
    font-size: 10px;
    font-weight: 900;
}
.np-logout-form { display: inline-flex; flex: 0 0 auto; margin: 0; }
.np-logout-button {
    min-height: 38px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 7px;
    padding: 8px 12px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.np-logout-button:hover { border-color: var(--np-yellow); color: var(--np-yellow); }

/* Cabeçalho administrativo */
.np-admin-nav { gap: clamp(13px, 1.5vw, 22px); }
.np-admin-actions { gap: 15px; }

/* Rodapé */
.np-footer {
    width: 100%;
    margin-top: auto;
    background: #0c1728;
    color: #d5deea;
}
.np-footer-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px 40px;
}
.np-footer-brand { margin-bottom: 10px !important; }
.np-footer-brand-block p { margin: 8px 0 0; color: #aab7c8; font-size: 12px; }
.np-footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 20px; }
.np-footer-links a { color: #c7d1df; text-decoration: none; font-size: 12px; }
.np-footer-links a:hover { color: var(--np-yellow); }
.np-footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #8e9db1;
    font-size: 11px;
}

/* Padronização de superfície, formulários e títulos entre os módulos. */
.auth-container,
.account-container,
.admin-shell,
.plans-main,
.company-page { flex: 1 0 auto; }
.auth-container { min-height: auto; padding-top: 38px; padding-bottom: 48px; }
.account-container { min-height: auto; }
.account-content,
.admin-content,
.company-admin-page,
.company-directory,
.company-dashboard,
.plans-main { scroll-margin-top: 24px; }
.account-card,
.admin-card,
.admin-empty,
.company-form-card,
.company-side-card,
.plan-card,
.plan-empty,
.listing-form-card,
.listing-detail-card {
    border-radius: var(--np-radius);
    box-shadow: 0 5px 18px rgba(16, 27, 45, .035);
}
.account-content h1,
.admin-content h1,
.company-page-heading h1,
.company-directory-heading h1,
.plans-intro h1 { letter-spacing: -.6px; }

input, select, textarea, button { font-family: inherit; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(255, 198, 41, .5);
    outline-offset: 2px;
}
button { cursor: pointer; }

/* Navegação em telas médias: marca e conta na primeira linha, links na segunda. */
@media (max-width: 1120px) {
    .np-header-inner {
        width: calc(100% - 36px);
        min-height: auto;
        padding: 12px 0 10px;
        grid-template-columns: 1fr auto;
        gap: 10px 16px;
    }
    .np-brand { grid-column: 1; grid-row: 1; }
    .np-header-actions { grid-column: 2; grid-row: 1; }
    .np-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        gap: 10px 22px;
        padding-top: 3px;
    }
    .np-nav > a, .np-dropdown > summary { min-height: 36px; }
}
@media (max-width: 650px) {
    .np-header-inner { width: calc(100% - 28px); gap: 8px 10px; }
    .np-brand { gap: 8px; }
    .np-brand-mark { width: 35px; height: 35px; flex-basis: 35px; border-radius: 8px; }
    .np-brand-name { font-size: 14px; letter-spacing: 0; }
    .np-header-actions { gap: 7px; }
    .np-account-label-desktop { display: none; }
    .np-account-label-mobile { display: inline; }
    .np-account-menu > summary { min-height: 35px; padding: 6px 9px; font-size: 12px; }
    .np-logout-button { min-height: 35px; padding: 6px 10px; font-size: 11px; }
    .np-nav {
        gap: 7px 12px;
        overflow: visible;
        overflow-x: visible;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 4px 0 6px;
    }
    .np-nav > a, .np-nav .np-dropdown > summary { min-height: 34px; font-size: 11px; }
    .np-nav > a { padding: 7px 0; }
    .np-nav > a.np-nav-cta { padding: 8px 10px; }
    .np-dropdown-panel { top: calc(100% + 7px); }
    .np-account-menu .np-dropdown-panel { right: 0; min-width: 210px; }
    .np-footer-inner { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 18px; }
    .np-footer-links { justify-content: flex-start; }
    .np-footer-bottom { flex-direction: column; gap: 7px; }
    .auth-container { padding: 28px 14px 38px; }
    .admin-content { padding: 30px 15px 45px; }
}
@media (max-width: 390px) {
    .np-brand-name { font-size: 12px; }
    .np-brand-mark { width: 32px; height: 32px; flex-basis: 32px; font-size: 13px; }
    .np-header-actions { gap: 5px; }
    .np-account-menu > summary { padding: 5px 7px; }
    .np-logout-button { padding: 5px 8px; }
}
