/* ================================================================
   OBJECTIVE PAGE
   Page-specific Nothing DS overrides for objective.html.
   ================================================================ */

/* Use a real page shell so main can stretch and keep the footer pinned to the bottom. */
body.nm-page.objective-page>.app-shell {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

body.nm-page.objective-page {
    position: relative;
    isolation: isolate;
    background: var(--body-bg);
}

/* Grid de fundo — mesmo padrão da home (.hero::before) */
body.nm-page.objective-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-line, rgba(255, 255, 255, 0.03)) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line, rgba(255, 255, 255, 0.03)) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}

body.nm-page.objective-page::after {
    display: none;
}

body.nm-page.objective-page>.nm-header,
body.nm-page.objective-page>.app-shell,
body.nm-page.objective-page>.nm-footer {
    position: relative;
}

body.nm-page.objective-page>.nm-header {
    z-index: 120;
}

/* app-shell acima do footer para o CTA fixo não ficar atrás dele. */
body.nm-page.objective-page>.app-shell {
    z-index: 3;
}

body.nm-page.objective-page>.nm-footer {
    z-index: 2;
}

body.nm-page.objective-page .objective-step[hidden] {
    display: none !important;
}

body.nm-page.objective-page>.nm-footer {
    background: var(--header-bg, rgba(10, 11, 13, 0.88));
    border-top-color: var(--header-border, var(--border));
}

body.nm-page.objective-page>.nm-back-to-top {
    z-index: 2;
}

body.nm-page.objective-page>.app-shell>main {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.nm-page.objective-page:not(.objective-wizard-advanced)>.app-shell>main {
    align-items: flex-start;
    justify-content: flex-start;
}

body.nm-page.objective-page .main-panels {
    padding-bottom: 0;
    max-width: 1040px;
}

body.nm-page.objective-page .panel-objective {
    margin-top: 0;
    max-width: 1040px;
}

body.nm-page.objective-page .objective-results {
    width: 100%;
    align-items: start;
}

/* Botões de ação do wizard fixos na viewport (sempre visíveis), sem
   card de fundo. O recuo lateral replica a largura renderizada do
   painel — (viewport - largura do painel) / 2 + padding interno —
   para o "Próximo" alinhar exatamente à borda direita dos cards. */
body.nm-page.objective-page .objective-wizard-actions {
    --obj-cta-inset: calc((100% - min(1040px, var(--layout-content-max-width) - 2 * var(--container-padding))) / 2 + 2rem);
    position: fixed;
    left: var(--obj-cta-inset);
    right: var(--obj-cta-inset);
    bottom: calc(clamp(16px, 3vw, 28px) + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

/* ≤1100px: o app-shell passa a ocupar 100% com padding lateral menor. */
@media (max-width: 1100px) {
    body.nm-page.objective-page .objective-wizard-actions {
        --obj-cta-inset: calc((100% - min(1040px, 100% - 2 * clamp(14px, 3.2vw, 20px))) / 2 + 2rem);
    }
}

/* ≤900px: o padding interno do painel muda para o valor mobile. */
@media (max-width: 900px) {
    body.nm-page.objective-page .objective-wizard-actions {
        --obj-cta-inset: calc((100% - min(1040px, 100% - 2 * clamp(14px, 3.2vw, 20px))) / 2 + clamp(1.35rem, 4.8vw, 1.9rem));
    }
}

/* Reserva espaço para o conteúdo não ficar escondido atrás do CTA fixo. */
body.nm-page.objective-page .objective-step:not([data-step="results"]) {
    padding-bottom: 132px;
}

@media (max-width: 520px) {
    body.nm-page.objective-page .objective-step:not([data-step="results"]) {
        padding-bottom: 188px;
    }
}

body.nm-page.objective-page.objective-showing-results .objective-progress-wrap {
    display: none;
}

body.nm-page.objective-page .objective-wizard-head-results {
    gap: 6px;
}

body.nm-page.objective-page .objective-results-heading {
    margin: 0;
    font-family: var(--font-ui);
    font-size: clamp(1.8rem, 3vw, 1.65rem);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--text-display);
    text-wrap: balance;
}

body.theme-light.nm-page.objective-page {
    --body-bg: radial-gradient(circle at top, #ffffff 0, #f4f5f7 46%, #ebeef2 100%);
    --surface: #f4f7fb;
    --surface-raised: #ffffff;
    --surface-high: #edf2f7;
    --border: rgba(148, 163, 184, 0.28);
    --border-visible: rgba(148, 163, 184, 0.56);
    --text-disabled: #64748b;
    --text-secondary: #475569;
    --text-primary: #334155;
    --text-display: #0f172a;
    --interactive: #1d4ed8;
    --accent-subtle: rgba(215, 25, 33, 0.09);
    background: var(--body-bg);
    color: var(--text-primary);
}

body.theme-light.nm-page.objective-page::before {
    filter: grayscale(1) contrast(0.92) saturate(0.8);
}

body.theme-light.nm-page.objective-page.has-profile-background.profile-bg-visible::before {
    opacity: 0.06;
}

body.theme-light.nm-page.objective-page::after {
    background: linear-gradient(180deg,
            rgba(248, 250, 252, 0.9) 0%,
            rgba(237, 242, 247, 0.96) 100%);
}

body.theme-light.nm-page.objective-page.objective-showing-results.has-profile-background.profile-bg-visible::before {
    opacity: 0.035;
}

body.theme-light.nm-page.objective-page.objective-showing-results::after {
    background: linear-gradient(180deg,
            rgba(248, 250, 252, 0.94) 0%,
            rgba(237, 242, 247, 0.985) 100%);
}

body.theme-light.nm-page.objective-page .hero-btn-primary {
    background: #0f172a;
    color: #ffffff;
}

body.theme-light.nm-page.objective-page .hero-btn-primary:hover:not(:disabled) {
    background: #020617;
}

body.theme-light.nm-page.objective-page .objective-budget-slider::-webkit-slider-thumb {
    background: #ffffff;
    border-color: var(--accent, #D71921);
}

body.theme-light.nm-page.objective-page .objective-budget-slider::-moz-range-thumb {
    background: #ffffff;
    border-color: var(--accent, #D71921);
}

/* Wizard panel — no card wrapper, content sits on body background */
body.nm-page .objective-panel {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.nm-page .objective-title {
    font-family: var(--font-ui);
    font-size: 28px;
    font-weight: 400;
    color: var(--text-display);
    letter-spacing: -0.01em;
}

body.nm-page .objective-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

body.nm-page .objective-step-title {
    font-family: var(--font-data);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 400;
}

body.nm-page .objective-step-hint {
    font-size: 13px;
    color: var(--text-disabled);
}

body.nm-page .objective-step-progress-bar {
    background: var(--border-visible);
    border-radius: 0;
    height: 2px;
}

body.nm-page .objective-step-progress-bar.is-active {
    background: var(--accent);
}

body.nm-page .hero-btn-primary {
    font-family: var(--font-data);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: var(--text-display);
    color: var(--black);
    border: none;
    border-radius: var(--radius-pill);
    min-height: 48px;
    padding: 0 var(--space-xl);
    cursor: pointer;
    transition: background 150ms var(--ease-out);
    box-shadow: none;
}

body.nm-page .hero-btn-primary:hover:not(:disabled) {
    background: #ffffff;
}

body.theme-dark.nm-page.objective-page .hero-btn-primary {
    background: var(--action-primary-bg);
    color: var(--action-primary-text);
}

body.theme-dark.nm-page.objective-page .hero-btn-primary:hover:not(:disabled),
body.theme-dark.nm-page.objective-page .hero-btn-primary:focus-visible {
    background: var(--action-primary-bg-hover);
    color: var(--action-primary-text);
}

body.nm-page .hero-btn-primary:disabled,
body.nm-page .hero-btn-primary[aria-disabled="true"] {
    background: var(--border-visible);
    color: var(--text-disabled);
    cursor: not-allowed;
    box-shadow: none;
}

body.nm-page .objective-btn-secondary {
    font-family: var(--font-data);
    font-size: 13px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: var(--action-secondary-bg);
    color: var(--action-secondary-text);
    border: 1px solid var(--action-secondary-border);
    border-radius: var(--radius-pill);
    min-height: 48px;
    padding: 0 var(--space-xl);
    cursor: pointer;
    transition: all 150ms var(--ease-out);
    box-shadow: none;
}

body.nm-page .objective-btn-secondary:hover {
    background: color-mix(in srgb, var(--action-secondary-bg) 90%, var(--bg) 10%);
    color: var(--action-secondary-text);
    border-color: var(--action-secondary-border);
}

body.nm-page .objective-budget-value {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--text-display);
}

/* Corrige alinhamento das marcas com o thumb do slider.
   O browser recua o track em thumbWidth/2 (8px) em cada extremidade,
   então left=0% e left=100% não coincidem com os extremos visuais do thumb. */
body.nm-page.objective-page .objective-budget-mark {
    left: calc(var(--mark-pos) * (100% - 16px) + 8px);
}

body.nm-page .objective-budget-slider {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    height: 3px;
    min-height: 0;
    max-height: 3px;
    background: linear-gradient(90deg,
            var(--accent, #D71921) 0,
            var(--accent, #D71921) var(--objective-budget-progress, 50%),
            var(--border-visible, #2E3540) var(--objective-budget-progress, 50%),
            var(--border-visible, #2E3540) 100%);
    border-radius: 0;
    outline: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    box-shadow: none;
}

body.nm-page .objective-budget-slider::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 0;
    background: transparent;
}

body.nm-page .objective-budget-slider::-moz-range-track {
    height: 3px;
    border-radius: 0;
    background: transparent;
}

body.nm-page .objective-budget-slider::-moz-range-progress {
    height: 3px;
    border-radius: 0;
    background: var(--accent, #D71921);
}

body.nm-page .objective-budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -6px;
    background: var(--surface-raised, #181A1E);
    border-radius: 0;
    cursor: pointer;
    border: 2px solid var(--accent, #D71921);
    box-shadow: none;
}

body.nm-page .objective-budget-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--surface-raised, #181A1E);
    border-radius: 0;
    border: 2px solid var(--accent, #D71921);
    cursor: pointer;
    box-shadow: none;
}

body.nm-page .objective-card {
    background: var(--surface-raised);
    border: 1px solid var(--border-visible);
    border-radius: var(--radius-lg);
    box-shadow: none;
}

body.nm-page .objective-card.is-selected {
    border-color: var(--text-display);
    background: var(--surface-high);
}

body.nm-page.objective-page .objective-card-media {
    position: relative;
    margin: 0 0 16px;
    min-height: 152px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: color-mix(in srgb, var(--surface-high) 88%, var(--surface-raised));
}

body.nm-page.objective-page .objective-card-media-art {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    height: 100%;
    padding: 14px;
}

body.nm-page.objective-page .objective-card-media-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 138px;
    height: auto;
    object-fit: contain;
    filter: none;
}

body.nm-page.objective-page .objective-card.has-bike-media .objective-card-media {
    margin: 0 0 18px;
    min-height: 214px;
}

body.nm-page.objective-page .objective-card.has-bike-media .objective-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.nm-page.objective-page .objective-card.has-bike-media .objective-card-media-art {
    align-items: flex-end;
    padding: 12px 10px 6px;
}

body.nm-page.objective-page .objective-card.has-bike-media .objective-card-media-image {
    width: 112%;
    max-width: none;
    max-height: 188px;
    transform-origin: center bottom;
}

body.nm-page.objective-page .objective-card.has-bike-media .objective-spec-grid,
body.nm-page.objective-page .objective-card.has-bike-media .objective-card-actions-b {
    width: 100%;
}

body.nm-page.objective-page .objective-card.has-bike-media .objective-spec-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
}

body.nm-page.objective-page .objective-card.has-bike-media .objective-spec-card.objective-spec-card--full-span {
    grid-column: 1 / -1;
}

body.nm-page.objective-page .objective-card.has-bike-media .objective-spec-card:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.nm-page.objective-page .objective-card.has-bike-media .objective-spec-value {
    text-align: left;
    white-space: normal;
}

body.nm-page .objective-bike-title {
    font-family: var(--font-ui);
    color: var(--text-display);
}

body.nm-page.objective-page .objective-bike-header.vs-header {
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 14px;
}

body.nm-page.objective-page .objective-brand-logo.vs-brand-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid var(--border-visible);
    background: color-mix(in srgb, var(--surface-high) 86%, black 14%);
}

body.nm-page.objective-page .objective-bike-text.vs-brand-model {
    gap: 0;
    min-width: 0;
}

body.nm-page.objective-page .objective-bike-meta.vs-brand {
    margin: 0 0 2px;
    font-family: var(--font-data);
    font-size: 11px;
    line-height: 1.1;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

body.nm-page.objective-page .objective-bike-title.vs-name {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-family: var(--font-ui);
    font-size: 1.36rem;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text-display);
    padding-right: 0;
}

body.nm-page.objective-page .objective-bike-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.nm-page.objective-page .objective-bike-title.vs-name .vs-gallery-icon {
    position: static;
    top: auto;
    right: auto;
    width: 0.72em;
    height: 0.72em;
    margin-left: 0;
    flex-shrink: 0;
}

body.nm-page .objective-bike-meta {
    font-family: var(--font-data);
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

body.nm-page.objective-page .objective-bike-submeta.vs-category {
    margin-top: 3px;
    font-family: var(--font-data);
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

body.nm-page .objective-bike-price {
    font-family: var(--font-data);
    color: var(--text-display);
}

body.nm-page.objective-page .objective-bike-price.vs-meta {
    font-family: var(--font-data);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-display);
}

body.nm-page .objective-spec-label {
    font-family: var(--font-data);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

body.nm-page .objective-spec-value {
    font-family: var(--font-data);
    color: var(--text-primary);
}

body.nm-page.objective-page .objective-spec-grid[hidden] {
    display: none !important;
}

body.nm-page.objective-page .objective-spec-grid--collapsible {
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition:
        height 240ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 180ms ease,
        transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.nm-page.objective-page .objective-spec-grid--collapsible.is-collapsed {
    opacity: 0;
    transform: translateY(-6px);
}

body.nm-page.objective-page .objective-card-detail-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 8px;
    width: auto;
    min-height: 0;
    margin: 2px 0 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-family: var(--font-data);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    cursor: pointer;
    transition:
        color 140ms var(--ease-out),
        opacity 140ms var(--ease-out);
}

body.nm-page.objective-page .objective-card-detail-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transform-origin: center;
    transition: transform 160ms var(--ease-out);
    flex-shrink: 0;
}

body.nm-page.objective-page .objective-card-detail-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg) translate(-1px, -1px);
}

body.nm-page.objective-page .objective-card-detail-toggle:hover,
body.nm-page.objective-page .objective-card-detail-toggle:focus-visible {
    color: var(--text-display);
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    body.nm-page.objective-page .objective-spec-grid--collapsible {
        transition: none;
    }
}

body.nm-page .objective-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    margin-top: 16px;
    padding: 13px 16px;
    border: 1px solid color-mix(in srgb, var(--border-visible) 68%, var(--text-display) 32%);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-high) 86%, var(--surface-raised));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 12px 24px rgba(0, 0, 0, 0.16);
    font-family: var(--font-data);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: none;
    color: var(--text-display);
    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;
    transition:
        background 140ms var(--ease-out),
        border-color 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out),
        color 140ms var(--ease-out);
}

body.nm-page .objective-card-link-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: color-mix(in srgb, var(--text-display) 14%, transparent);
    color: color-mix(in srgb, var(--text-display) 94%, var(--text-muted) 6%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition:
        background 140ms var(--ease-out),
        color 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out);
}

body.nm-page .objective-card-link-icon svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    shape-rendering: geometricPrecision;
}

body.nm-page .objective-card-link-label {
    display: inline-flex;
    align-items: center;
}

body.nm-page .objective-card-link:hover {
    color: var(--text-display);
    border-color: color-mix(in srgb, var(--accent) 52%, var(--border-visible));
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--accent) 12%, var(--surface-high)) 0%,
            color-mix(in srgb, var(--surface-high) 92%, var(--surface-raised)) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent),
        0 18px 30px rgba(0, 0, 0, 0.22);
}

body.nm-page .objective-card-link:hover .objective-card-link-icon,
body.nm-page .objective-card-link:focus-visible .objective-card-link-icon {
    background: color-mix(in srgb, var(--accent) 84%, black 16%);
    color: #ffffff;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        0 6px 14px color-mix(in srgb, var(--accent) 28%, transparent);
}

body.nm-page .objective-card-link:focus-visible {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 56%, var(--border-visible));
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--accent) 12%, var(--surface-high)) 0%,
            color-mix(in srgb, var(--surface-high) 92%, var(--surface-raised)) 100%);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 30px rgba(0, 0, 0, 0.22);
}

body.nm-page.objective-page .objective-card-best,
body.nm-page.objective-page .objective-card-second,
body.nm-page.objective-page .objective-card-third {
    position: relative;
    border-color: color-mix(in srgb, var(--objective-rank-ring) 72%, transparent);
    z-index: 1;
}

body.nm-page.objective-page .objective-card-best {
    --objective-notch-bg: color-mix(in srgb, #22c55e 28%, #10161d 72%);
    --objective-notch-border: rgba(34, 197, 94, 0.3);
    --objective-notch-text: #d7ffe4;
    --objective-rank-ring: rgba(34, 197, 94, 0.42);
    transform: translateX(10px);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--objective-rank-ring) 72%, transparent),
        0 0 28px rgba(34, 197, 94, 0.1);
}

body.nm-page.objective-page .objective-card-second {
    --objective-notch-bg: color-mix(in srgb, #60a5fa 28%, #10161d 72%);
    --objective-notch-border: rgba(96, 165, 250, 0.32);
    --objective-notch-text: #dbeafe;
    --objective-rank-ring: rgba(96, 165, 250, 0.42);
    transform: translateX(-10px);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--objective-rank-ring) 72%, transparent),
        0 0 28px rgba(96, 165, 250, 0.1);
}

body.nm-page.objective-page .objective-card-third {
    --objective-notch-bg: color-mix(in srgb, #f87171 28%, #10161d 72%);
    --objective-notch-border: rgba(248, 113, 113, 0.32);
    --objective-notch-text: #ffe2dd;
    --objective-rank-ring: rgba(248, 113, 113, 0.42);
    /* Card central destacado: levemente acima e maior que os laterais */
    z-index: 4;
    transform: scale(1.04);
    transform-origin: center center;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--objective-rank-ring) 72%, transparent),
        0 0 28px rgba(248, 113, 113, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.32),
        0 2px 8px rgba(0, 0, 0, 0.18),
        -14px 0 22px rgba(0, 0, 0, 0.38),
        14px 0 22px rgba(0, 0, 0, 0.38);
}


body.nm-page.objective-page .objective-card-best::after,
body.nm-page.objective-page .objective-card-second::after,
body.nm-page.objective-page .objective-card-third::after {
    content: none;
}

body.nm-page.objective-page .objective-card .vs-top-bar {
    justify-content: flex-end;
    margin-bottom: 0.35rem;
}

body.nm-page.objective-page .objective-card .vs-top-left {
    position: absolute;
    top: -1px;
    left: 50%;
    z-index: 34;
    transform: translateX(-50%);
    justify-content: center;
    width: max-content;
    max-width: calc(100% - 72px);
    pointer-events: none;
}

body.nm-page.objective-page .objective-card .vs-top-left::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 5px;
    background: var(--objective-notch-bg);
    pointer-events: none;
}

body.nm-page.objective-page .objective-card .vs-badge-placeholder {
    display: none;
}

body.nm-page.objective-page .objective-card .vs-badge-main {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-height: 34px;
    padding: 7px 16px 10px;
    background: var(--objective-notch-bg);
    border: 1px solid var(--objective-notch-border);
    border-top: none;
    border-radius: 0 0 18px 18px;
    color: var(--objective-notch-text);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 8px 18px rgba(0, 0, 0, 0.18);
}

body.nm-page.objective-page .objective-card .vs-badge-main::before,
body.nm-page.objective-page .objective-card .vs-badge-main::after {
    content: none;
    display: none;
}

body.theme-light.nm-page.objective-page .objective-card-best,
body.theme-light.nm-page.objective-page .objective-card-second,
body.theme-light.nm-page.objective-page .objective-card-third {
    background: color-mix(in srgb, var(--surface-raised) 92%, white 8%);
}

body.theme-light.nm-page.objective-page .objective-card-best {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--objective-rank-ring) 78%, transparent),
        0 12px 24px rgba(34, 197, 94, 0.08);
}

body.theme-light.nm-page.objective-page .objective-card-second {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--objective-rank-ring) 78%, transparent),
        0 12px 24px rgba(96, 165, 250, 0.08);
}

body.theme-light.nm-page.objective-page .objective-card-third {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--objective-rank-ring) 78%, transparent),
        0 12px 24px rgba(248, 113, 113, 0.08);
}

body.theme-light.nm-page.objective-page .objective-card .vs-badge-main {
    color: var(--objective-notch-text);
    box-shadow:
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 8px 16px rgba(15, 23, 42, 0.14);
}

body.theme-light.nm-page.objective-page .objective-card-media {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

body.theme-light.nm-page.objective-page .objective-card.has-bike-media .objective-spec-card:last-child {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.nm-page .profile-option {
    border-color: var(--border-visible);
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
    box-shadow: none;
}

body.nm-page .profile-option:has(input:checked) {
    border-color: var(--text-display);
    background: var(--surface-high);
}

body.nm-page #objectiveProfileWizardCards .profile-option {
    background: var(--surface-raised);
    border-color: var(--border-visible);
    border-radius: var(--radius-lg);
    box-shadow: none;
}

body.nm-page #objectiveProfileWizardCards .profile-option:hover {
    background: var(--surface-high);
    border-color: var(--text-secondary);
}

body.nm-page #objectiveProfileWizardCards .profile-option:has(input:checked) {
    background: color-mix(in srgb, var(--accent) 14%, var(--surface-raised));
    border-color: var(--accent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

body.nm-page.objective-page #objectiveProfileWizardCards {
    min-height: 420px;
}

body.nm-page.objective-page #objectiveStyleCards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.nm-page.objective-page .style-card-sections {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.nm-page.objective-page .style-card-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border-visible);
    border-radius: calc(var(--radius-lg) + 4px);
    background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
}

body.nm-page.objective-page .style-card-section-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

body.nm-page.objective-page .style-card-section-title {
    margin: 0;
    font-family: var(--font-ui);
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-display);
}

body.nm-page.objective-page .style-card-section .style-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.nm-page.objective-page .style-card-section--recommended {
    border-color: color-mix(in srgb, #2f855a 24%, var(--border-visible));
    background:
        linear-gradient(180deg, rgba(47, 133, 90, 0.08) 0%, rgba(47, 133, 90, 0) 40%),
        color-mix(in srgb, var(--surface-raised) 96%, transparent);
}

body.nm-page.objective-page .style-card-section--neutral {
    border-color: color-mix(in srgb, #64748b 18%, var(--border-visible));
    background:
        linear-gradient(180deg, rgba(100, 116, 139, 0.08) 0%, rgba(100, 116, 139, 0) 40%),
        color-mix(in srgb, var(--surface-raised) 96%, transparent);
}

body.nm-page.objective-page .style-card-section--avoid {
    border-color: color-mix(in srgb, #c2410c 24%, var(--border-visible));
    background:
        linear-gradient(180deg, rgba(194, 65, 12, 0.08) 0%, rgba(194, 65, 12, 0) 40%),
        color-mix(in srgb, var(--surface-raised) 96%, transparent);
}

body.nm-page .style-card {
    /* Cor do estado selecionado — sobrescrita por tier abaixo para
       harmonizar com o fundo da seção (verde/cinza/laranja). */
    --style-card-accent: var(--accent);
    border-color: var(--border-visible);
    background: var(--surface-raised);
    border-radius: var(--radius-lg);
    box-shadow: none;
}

body.nm-page .style-card-label {
    font-family: var(--font-data);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
}

body.nm-page .style-card-description {
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    width: 100%;
    max-width: none;
}

body.nm-page .style-card:hover {
    background: var(--surface-high);
    border-color: var(--text-secondary);
}

body.nm-page .style-card.style-card--selected,
body.nm-page .style-card:has(input:checked) {
    background: color-mix(in srgb, var(--style-card-accent) 12%, var(--surface-raised));
    border-color: var(--style-card-accent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--style-card-accent) 30%, transparent);
}

body.nm-page.objective-page .style-card.style-card--recommended {
    --style-card-accent: #2f855a;
    border-color: color-mix(in srgb, #2f855a 32%, var(--border-visible));
}

body.nm-page.objective-page .style-card.style-card--neutral {
    --style-card-accent: #64748b;
    border-color: color-mix(in srgb, #64748b 24%, var(--border-visible));
}

body.nm-page.objective-page .style-card.style-card--avoid {
    --style-card-accent: #c2410c;
    border-color: color-mix(in srgb, #c2410c 32%, var(--border-visible));
}

/* Aviso ao tentar avançar sem escolher um estilo de moto. */
body.nm-page.objective-page .objective-step-warning {
    margin: 0;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface-raised));
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.4;
}

body.nm-page.objective-page .objective-step-warning[hidden] {
    display: none;
}

body.nm-page .objective-status {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
    color: var(--text-secondary);
}

body.nm-page .objective-compare-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

body.nm-page.objective-page .objective-compare-actions-b .objective-btn-secondary,
body.nm-page.objective-page .objective-compare-actions-b .hero-btn-primary {
    display: inline-flex;
    align-self: start;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    font-family: var(--font-data);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

body.nm-page .objective-results-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex: 1;
    text-align: center;
}

body.theme-light.nm-page .objective-status {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(148, 163, 184, 0.44);
}

body.theme-light.nm-page .objective-compare-actions {
    border-top-color: rgba(148, 163, 184, 0.34);
}

/* Em coluna única, scale e translateX causariam overflow horizontal — resetar. */
@media (max-width: 900px) {
    body.nm-page.objective-page .objective-card-best,
    body.nm-page.objective-page .objective-card-second,
    body.nm-page.objective-page .objective-card-third {
        transform: none;
        z-index: 1;
    }
}

@media (max-width: 760px) {
    body.nm-page.objective-page .style-card-section {
        padding: 16px;
    }

    body.nm-page.objective-page .objective-results-heading {
        font-size: 1.72rem;
        line-height: 1.02;
    }

    body.nm-page .objective-compare-actions {
        align-items: stretch;
    }

    body.nm-page .objective-results-subtitle {
        flex-basis: 100%;
        text-align: left;
    }

    body.nm-page.objective-page .objective-card {
        padding-top: 50px;
    }

    body.nm-page.objective-page .objective-card-media {
        min-height: 132px;
        margin-bottom: 14px;
    }

    body.nm-page.objective-page .objective-card-media-art {
        padding: 12px;
    }

    body.nm-page.objective-page .objective-card-media-image {
        max-height: 118px;
    }

    body.nm-page.objective-page .objective-card.has-bike-media .objective-card-media {
        margin: 0 0 16px;
        min-height: 176px;
    }

    body.nm-page.objective-page .objective-card.has-bike-media .objective-spec-grid {
        grid-template-columns: 1fr;
    }

    body.nm-page.objective-page .objective-card.has-bike-media .objective-card-media-art {
        padding: 10px 8px 4px;
    }

    body.nm-page.objective-page .objective-card.has-bike-media .objective-card-media-image {
        width: 108%;
        max-height: 152px;
        transform: translateX(4px) scale(1.02);
    }

    body.nm-page.objective-page .objective-card .vs-badge-main {
        height: 32px;
        min-height: 32px;
        padding: 6px 16px 9px;
        border-radius: 0 0 16px 16px;
        font-size: 0.66rem;
    }

    body.nm-page.objective-page .objective-bike-header.vs-header {
        gap: 10px;
        margin-bottom: 12px;
    }

    body.nm-page.objective-page .objective-brand-logo.vs-brand-logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    body.nm-page.objective-page .objective-bike-title.vs-name {
        font-size: 1.22rem;
    }

    body.nm-page.objective-page .objective-bike-submeta.vs-category,
    body.nm-page.objective-page .objective-bike-price.vs-meta,
    body.nm-page.objective-page .objective-bike-meta.vs-brand {
        font-size: 10px;
    }

    body.nm-page.objective-page .style-card-section .style-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.nm-page.objective-page .objective-b-subtitle {
    max-width: 740px;
}

body.nm-page.objective-page #objectiveStepResults {
    position: relative;
    overflow: visible;
}

body.nm-page.objective-page .objective-b-side-hint {
    position: absolute;
    top: 124px;
    left: calc(-1 * clamp(210px, 18vw, 290px));
    width: clamp(180px, 16vw, 240px);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    pointer-events: none;
}

body.nm-page.objective-page .objective-b-side-hint-text {
    margin: 0;
    font-family: var(--font-ui);
    font-size: clamp(0.96rem, 1.1vw, 1.1rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: color-mix(in srgb, var(--text-display) 90%, var(--text-secondary) 10%);
    text-wrap: balance;
}

body.nm-page.objective-page .objective-b-side-hint-icon {
    display: block;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: color-mix(in srgb, var(--text-display) 34%, var(--border-visible));
    flex-shrink: 0;
}

body.nm-page.objective-page .objective-b-side-hint-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.nm-page.objective-page #objectiveCompareBtn.hero-btn-primary {
    background: var(--action-primary-bg);
    color: var(--action-primary-text);
    border: 1px solid color-mix(in srgb, var(--action-primary-bg) 88%, black 12%);
    box-shadow: var(--action-primary-shadow);
}

body.nm-page.objective-page #objectiveCompareBtn.hero-btn-primary:hover:not(:disabled),
body.nm-page.objective-page #objectiveCompareBtn.hero-btn-primary:focus-visible {
    background: var(--action-primary-bg-hover);
    color: var(--action-primary-text);
    border-color: color-mix(in srgb, var(--action-primary-bg-hover) 84%, black 16%);
    box-shadow: var(--action-primary-shadow-hover);
    animation: none;
}

body.nm-page.objective-page #objectiveCompareBtn.hero-btn-primary:disabled {
    opacity: 1;
    color: var(--text-disabled);
    border-color: color-mix(in srgb, var(--border-visible) 88%, transparent);
    background: color-mix(in srgb, var(--surface-high) 92%, var(--surface-raised));
    box-shadow: none;
}

body.nm-page.objective-page .objective-card-b {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: start;
    padding-bottom: 18px;
    cursor: default;
}

body.nm-page.objective-page .objective-card-actions-b {
    margin-top: 10px;
    padding-top: 0;
}

body.nm-page.objective-page .objective-card-actions-b .objective-card-link {
    margin-top: 0;
}

body.nm-page.objective-page .objective-card-compare-check {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 36;
}

body.nm-page.objective-page .objective-card-compare-checkbox {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

body.nm-page.objective-page .objective-card-compare-indicator {
    position: relative;
    width: 20px;
    height: 20px;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--border-visible) 88%, transparent);
    border-radius: 6px;
    background: color-mix(in srgb, var(--surface-high) 82%, var(--surface-raised));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: transparent;
    transition:
        background 140ms var(--ease-out),
        border-color 140ms var(--ease-out),
        color 140ms var(--ease-out),
        box-shadow 140ms var(--ease-out);
}

body.nm-page.objective-page .objective-card.has-bike-media .objective-card-compare-indicator {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(10, 11, 13, 0.54);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.nm-page.objective-page .objective-card-compare-indicator::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 5px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -58%) rotate(-45deg) scale(0.7);
    transform-origin: center;
    opacity: 0;
    transition:
        transform 140ms var(--ease-out),
        opacity 140ms var(--ease-out);
}

body.nm-page.objective-page .objective-card-compare-checkbox:hover+.objective-card-compare-indicator,
body.nm-page.objective-page .objective-card-compare-checkbox:focus-visible+.objective-card-compare-indicator {
    border-color: color-mix(in srgb, var(--text-display) 20%, var(--border-visible));
    background: color-mix(in srgb, var(--surface-high) 92%, var(--surface-raised));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-display) 12%, transparent);
}

body.nm-page.objective-page .objective-card-compare-checkbox:checked+.objective-card-compare-indicator {
    border-color: rgba(34, 197, 94, 0.36);
    background: color-mix(in srgb, #22c55e 14%, var(--surface-high) 86%);
    color: color-mix(in srgb, #dcfce7 92%, white 8%);
    box-shadow: none;
}

body.nm-page.objective-page .objective-card-compare-checkbox:checked+.objective-card-compare-indicator::after {
    transform: translate(-50%, -58%) rotate(-45deg) scale(1);
    opacity: 1;
}

body.nm-page.objective-page .objective-card-compare-check.is-locked {
    cursor: not-allowed;
}

body.nm-page.objective-page .objective-card-compare-checkbox:disabled+.objective-card-compare-indicator {
    border-color: color-mix(in srgb, var(--border-visible) 70%, transparent);
    background: transparent;
    color: transparent;
    opacity: 0.55;
    box-shadow: none;
}

body.theme-light.nm-page.objective-page .objective-card.has-bike-media .objective-card-compare-indicator {
    border-color: rgba(148, 163, 184, 0.34);
    background: rgba(255, 255, 255, 0.82);
}

body.nm-page.objective-page .objective-card.is-selected {
    border-color: color-mix(in srgb, #22c55e 26%, var(--border-visible));
    background: color-mix(in srgb, var(--surface-high) 97%, #22c55e 3%);
    box-shadow: none;
}

body.nm-page.objective-page .objective-compare-actions-b {
    justify-content: space-between;
    align-items: center;
}

body.nm-page.objective-page .objective-compare-actions-b .objective-results-subtitle {
    flex: 0 1 auto;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

body.nm-page.objective-page .objective-compare-actions-b #objectiveCompareBtn {
    flex-shrink: 0;
}

@media (max-width: 820px) {
    body.nm-page.objective-page #objectiveProfileWizardCards {
        min-height: 492px;
    }

    body.nm-page.objective-page .objective-compare-actions-b {
        align-items: stretch;
    }

    body.nm-page.objective-page .objective-compare-actions-b .objective-results-subtitle {
        flex-basis: 100%;
    }
}

@media (max-width: 520px) {
    body.nm-page.objective-page .style-card-section .style-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1380px) {
    body.nm-page.objective-page .objective-b-side-hint {
        display: none;
    }
}