/* Beneficiário — carteirinha e guia médico */

.benef-portal,
.benef-portal *,
.benef-portal *::before,
.benef-portal *::after {
    box-sizing: border-box;
}

.benef-portal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #eef2f8 0%, #f8fafc 45%, #fff 100%);
    font-family: 'Nunito', 'Inter', system-ui, sans-serif;
}

.benef-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, #fff 92%, transparent);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.benef-topbar__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
}

.benef-topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.benef-topbar__brand strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.benef-topbar__brand span {
    font-size: 11px;
    color: #64748b;
}

.benef-topbar__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eaf0fb;
    color: #4b72be;
}

.benef-topbar__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    min-width: 0;
    flex-wrap: nowrap;
}

.benef-topbar__logout {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
}

.benef-topbar__logout:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.benef-main {
    flex: 1;
    padding: 28px 20px 40px;
}

.benef-shell {
    max-width: 560px;
    margin: 0 auto;
}

.benef-shell--wide,
.benef-card--wide {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.benef-shell--split {
    max-width: 1100px;
}

.benef-product-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.benef-product-intro__access {
    min-width: 0;
}

.benef-product-intro__preview {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benef-product-intro__preview .mkt-patient-demo-embed {
    user-select: none;
}

.benef-product-intro__preview .mkt-home-patient-embed__top {
    pointer-events: none;
}

.benef-product-intro__preview .mkt-idcard-widget,
.benef-product-intro__preview .mkt-idcard-widget * {
    pointer-events: auto;
    user-select: auto;
}

.benef-product-intro__preview .mkt-home-patient-embed__preview {
    aspect-ratio: auto;
    overflow: visible;
}

.benef-product-intro__preview .mkt-home-carteirinha-embed__card--full {
    width: 100%;
}

.benef-product-intro__preview .mkt-home-carteirinha-embed__card {
    height: auto;
    overflow: visible;
}

.benef-product-intro__cta {
    width: 100%;
    justify-content: center;
    text-align: center;
}

@media (max-width: 991px) {
    .benef-product-intro {
        grid-template-columns: 1fr;
    }

    .benef-product-intro__preview {
        order: -1;
    }
}

.benef-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(30, 42, 58, 0.07);
}

.benef-card__head {
    display: block;
    margin-bottom: 20px;
}

.benef-card__icon,
.benef-method-card__icon {
    display: none;
}

.benef-card__head h1 {
    margin: 0 0 6px;
    font-family: 'Sora', 'Nunito', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
}

.benef-card__head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}

.benef-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.benef-card__icon--card {
    background: #ede9fe;
    color: #6d28d9;
}

.benef-card__icon--guia {
    background: #e8f5ef;
    color: #15803d;
}

/* Wizard */
.benef-wizard {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    gap: 8px;
}

.benef-wizard__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.benef-wizard__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    background: #e2e8f0;
    color: #64748b;
}

.benef-wizard__step.is-current .benef-wizard__dot {
    background: #4b72be;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(75, 114, 190, 0.15);
}

.benef-wizard__step.is-done .benef-wizard__dot {
    background: #15803d;
    color: #fff;
}

.benef-wizard__label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.benef-wizard__step.is-current .benef-wizard__label {
    color: #4b72be;
}

/* Forms */
.benef-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benef-method-picker legend {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.benef-method-picker__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.benef-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
    font-size: 11px;
    color: #64748b;
    transition: border-color 0.15s, background 0.15s;
}

.benef-method-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.benef-method-card strong {
    font-size: 12px;
    color: #0f172a;
}

.benef-method-card:has(input:checked) {
    border-color: #4b72be;
    background: #eaf0fb;
}

.benef-method-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #4b72be;
}

.benef-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.benef-field span {
    font-size: 13px;
    font-weight: 700;
}

.benef-field input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font: inherit;
    font-size: 15px;
}

.benef-field input:focus {
    outline: none;
    border-color: #4b72be;
    box-shadow: 0 0 0 3px rgba(75, 114, 190, 0.14);
}

.benef-field__hint {
    font-size: 12px;
    color: #94a3b8;
}

.benef-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.15s, background 0.15s;
}

.benef-btn--primary {
    background: #4b72be;
    color: #fff;
}

.benef-btn--primary:hover {
    filter: brightness(1.06);
}

.benef-btn--surface {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.benef-btn--ghost {
    background: transparent;
    color: #64748b;
}

.benef-btn--block {
    width: 100%;
}

.benef-form__actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.benef-alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

.benef-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.benef-confirm-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #eaf0fb;
    color: #1e3a5f;
}

.benef-confirm-banner i {
    font-size: 22px;
    color: #4b72be;
    margin-top: 2px;
}

.benef-confirm-banner p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.45;
}

.benef-demo-hint {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
    font-size: 13px;
    color: #64748b;
}

.benef-demo-hint summary {
    cursor: pointer;
    font-weight: 700;
    color: #4b72be;
}

.benef-demo-hint ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.benef-demo-hint__note {
    margin: 8px 0 0;
    font-size: 12px;
}

.benef-carteirinha-col {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.benef-carteirinha-stage {
    margin: 0 0 14px;
    padding: 16px 14px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #e8edf4;
}

.benef-carteirinha-preview {
    display: block;
    margin: 0;
    width: 100%;
}

.benef-carteirinha-preview .mkt-idcard-widget {
    width: 100%;
    max-width: none;
    align-items: stretch;
}

.benef-carteirinha-preview .mkt-idcard-widget__tabs {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
    padding: 3px;
}

.benef-carteirinha-preview .mkt-idcard-widget__tabs button {
    flex: 1;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    outline: none;
}

.benef-carteirinha-preview .mkt-idcard-widget__tabs button.is-active {
    border-color: #dbe4f2;
}

.benef-carteirinha-preview .mkt-idcard-widget__scene {
    width: 100%;
}

.benef-carteirinha-preview .mkt-idcard__qr {
    display: none;
}

.benef-carteirinha-col .benef-download-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.benef-carteirinha-col .benef-download-actions .benef-btn {
    width: 100%;
    justify-content: center;
}

.benef-carteirinha-col .benef-form--inline {
    margin: 0;
}

.benef-carteirinha-print-only {
    display: none !important;
}

.mkt-idcard-static .mkt-idcard__face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1 !important;
    visibility: visible !important;
}

.benef-print-label {
    display: none;
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.benef-print-label--visible {
    display: block;
}

.mkt-idcard-static-sheet {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.mkt-idcard-static-block + .mkt-idcard-static-block {
    margin-top: 18px;
}

.mkt-idcard-static {
    position: relative;
    width: 100%;
    aspect-ratio: 1.586 / 1;
    min-height: 190px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(30, 42, 58, 0.12);
}

.benef-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.benef-download-tips {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #475569;
}

.benef-download-tips li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.benef-download-tips__text {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
}

.benef-download-tips__text strong {
    font-weight: 800;
    color: #3d61a8;
}

.benef-download-tips i {
    color: #4b72be;
    width: 18px;
    flex-shrink: 0;
    text-align: center;
    margin-top: 2px;
}

/* Cartão estático para impressão — mesma tipografia compacta da tela */
.benef-carteirinha-print-only .mkt-idcard-static.mkt-idcard--landscape {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__face--front {
    display: flex;
    flex-direction: column;
    gap: 2mm;
    padding: 2.5mm 3mm 3mm;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__face--back {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__body {
    display: grid;
    grid-template-columns: 18mm minmax(0, 1fr);
    gap: 2.5mm;
    flex: 1;
    min-height: 0;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__avatar {
    width: 18mm;
    height: 18mm;
    font-size: 8pt;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__name {
    font-size: 7.5pt;
    line-height: 1.15;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__role {
    font-size: 5.5pt;
    line-height: 1.2;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__brand {
    font-size: 5.5pt;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__ribbon,
.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__chip {
    font-size: 5pt;
    padding: 1px 4px;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5mm 2mm;
    padding-top: 1.5mm;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__field dt {
    font-size: 4.5pt;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__field dd {
    font-size: 5.5pt;
    line-height: 1.2;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__field--wide {
    grid-column: 1 / -1;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__identity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1mm;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__phase {
    font-size: 4.5pt;
    padding: 0.5mm 1.5mm;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__plan-tag {
    font-size: 4.5pt;
    padding: 0.5mm 1.5mm;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__footer-bar {
    padding-top: 1mm;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__type {
    font-size: 4.5pt;
    opacity: 0.72;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__issuer {
    font-size: 4.5pt;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1mm;
    min-width: 0;
    min-height: 0;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__stripe {
    height: 7mm;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__back-body {
    padding: 2mm 3mm;
    gap: 1.5mm;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__back-title {
    font-size: 5.5pt;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5mm 2mm;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__dl dt {
    font-size: 4.5pt;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__dl dd {
    font-size: 5.5pt;
    line-height: 1.2;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__verify-label {
    font-size: 4.5pt;
}

.benef-carteirinha-print-only .mkt-idcard-static .mkt-idcard__verify code {
    font-size: 6pt;
}

.benef-foot {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #64748b;
}

.benef-foot__note {
    margin-top: 4px;
    font-size: 11px;
}

/* Guia médico — layout dedicado do beneficiário */
.benef-guia-app {
    max-width: 560px;
    margin: 0 auto;
    padding-bottom: 8px;
}

.benef-guia-hero {
    padding: 20px 18px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: linear-gradient(145deg, #4b72be 0%, #5a84cc 55%, #6b93d4 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(75, 114, 190, 0.22);
}

.benef-guia-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.benef-guia-hero__phase {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.benef-guia-hero__chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    color: #4b72be;
    font-size: 11px;
    font-weight: 800;
}

.benef-guia-hero__name {
    margin: 0 0 8px;
    font-family: 'Sora', 'Nunito', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.benef-guia-hero__meta {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.95;
}

.benef-guia-hero__code {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 800;
}

.benef-guia-hero__clinic {
    margin: 0 0 12px;
    font-size: 13px;
    opacity: 0.9;
}

.benef-guia-hero__clinic i {
    margin-right: 4px;
    opacity: 0.85;
}

.benef-guia-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.benef-guia-hero__facts > div {
    min-width: 0;
}

.benef-guia-hero__facts dt {
    margin: 0;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
}

.benef-guia-hero__facts dd {
    margin: 3px 0 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.benef-guia-progress {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.benef-guia-progress__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #64748b;
}

.benef-guia-progress__head strong {
    color: #4b72be;
    font-size: 15px;
}

.benef-guia-progress__track {
    height: 8px;
    border-radius: 999px;
    background: #e8eef6;
    overflow: hidden;
}

.benef-guia-progress__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4b72be, #6b93d4);
}

.benef-guia-progress__hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.benef-guia-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benef-guia-panel__intro {
    margin: 0 0 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f0f5fc;
    border-left: 3px solid #4b72be;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

.benef-guia-panel__card {
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.benef-guia-panel__card--highlight {
    border-color: rgba(75, 114, 190, 0.2);
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.benef-guia-panel__card--soft {
    background: #f8fafc;
}

.benef-guia-panel__card--alert {
    border-color: rgba(217, 119, 6, 0.2);
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.benef-guia-panel__card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.benef-guia-panel__card-head i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #eaf0fb;
    color: #4b72be;
    font-size: 14px;
}

.benef-guia-panel__card--alert .benef-guia-panel__card-head i {
    background: #ffedd5;
    color: #c2410c;
}

.benef-guia-panel__card-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.benef-guia-panel__today-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benef-guia-panel__today-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #334155;
}

.benef-guia-panel__today-day {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 6px;
    background: #4b72be;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.benef-guia-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benef-guia-timeline__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    align-items: stretch;
    padding-bottom: 14px;
    position: relative;
}

.benef-guia-timeline__item:last-child {
    padding-bottom: 0;
}

.benef-guia-timeline__rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 28px;
    min-height: 100%;
    position: relative;
}

.benef-guia-timeline__marker {
    position: relative;
    z-index: 1;
    display: block;
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
}

.benef-guia-timeline__item:not(:last-child) .benef-guia-timeline__rail::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: #e2e8f0;
    pointer-events: none;
}

.benef-guia-timeline__body {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    min-width: 0;
}

.benef-guia-timeline__day {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 2px;
}

.benef-guia-timeline__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #475569;
    word-wrap: break-word;
}

.benef-guia-timeline__item--done .benef-guia-timeline__marker {
    background: #4b72be;
    border-color: #4b72be;
}

.benef-guia-timeline__item--done:not(:last-child) .benef-guia-timeline__rail::after {
    background: rgba(75, 114, 190, 0.28);
}

.benef-guia-timeline__item--done .benef-guia-timeline__day {
    color: #4b72be;
}

.benef-guia-timeline__item--done .benef-guia-timeline__text {
    color: #334155;
}

.benef-guia-timeline__item--current .benef-guia-timeline__marker {
    border-color: #4b72be;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(75, 114, 190, 0.15);
}

.benef-guia-timeline__item--current .benef-guia-timeline__body {
    background: #eaf0fb;
    border-color: rgba(75, 114, 190, 0.18);
}

.benef-guia-timeline__item--current .benef-guia-timeline__day {
    color: #3d61a8;
}

.benef-guia-timeline__item--current .benef-guia-timeline__text {
    color: #0f172a;
    font-weight: 700;
}

.benef-guia-panel__tips {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benef-guia-panel__tips li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.45;
    color: #334155;
}

.benef-guia-panel__tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4b72be;
}

.benef-guia-lembretes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benef-guia-lembretes__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.benef-guia-lembretes__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #4b72be;
    font-size: 14px;
}

.benef-guia-lembretes__item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.benef-guia-lembretes__item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
}

.benef-guia-panel__alerts {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benef-guia-panel__alerts li {
    padding-left: 16px;
    position: relative;
    font-size: 13px;
    line-height: 1.45;
    color: #9a3412;
}

.benef-guia-panel__alerts li::before {
    content: '!';
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 11px;
    font-weight: 800;
}

.benef-guia-panel__contact {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(217, 119, 6, 0.15);
    font-size: 13px;
    line-height: 1.45;
    color: #78350f;
}

.benef-guia-actions {
    margin-top: 18px;
}

.benef-guia-actions h2 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.benef-guia-actions__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.benef-guia-actions__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.benef-guia-actions__item:hover {
    border-color: rgba(75, 114, 190, 0.25);
    box-shadow: 0 6px 18px rgba(75, 114, 190, 0.08);
}

.benef-guia-actions__item i {
    grid-row: span 2;
    align-self: center;
    font-size: 20px;
    color: #4b72be;
}

.benef-guia-actions__item strong {
    font-size: 14px;
}

.benef-guia-actions__item span {
    font-size: 12px;
    color: #64748b;
}

.benef-guia-actions__item--call i {
    color: #15803d;
}

.benef-guia-actions__emergency {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.benef-guia-actions__emergency i {
    font-size: 22px;
    color: #c2410c;
    margin-top: 2px;
}

.benef-guia-actions__emergency strong {
    display: block;
    font-size: 13px;
    color: #9a3412;
    margin-bottom: 2px;
}

.benef-guia-actions__emergency p {
    margin: 0;
    font-size: 13px;
    color: #c2410c;
    line-height: 1.4;
}

.benef-demo-badge {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #64748b;
}

@media (max-width: 480px) {
    .benef-guia-hero__facts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .benef-topbar__inner {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            'brand actions'
            'nav nav';
    }

    .benef-topbar__brand { grid-area: brand; }
    .benef-topbar__nav { grid-area: nav; justify-content: stretch; }
    .benef-topbar__logout { grid-area: actions; }

    .benef-method-picker__grid {
        grid-template-columns: 1fr;
    }

    .benef-wizard__label {
        display: none;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body.is-printing-carteirinha {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.is-printing-carteirinha * {
        visibility: hidden;
    }

    body.is-printing-carteirinha .benef-carteirinha-print-only,
    body.is-printing-carteirinha .benef-carteirinha-print-only * {
        visibility: visible;
    }

    body.is-printing-carteirinha .benef-carteirinha-print-only {
        position: absolute;
        left: 0;
        top: 0;
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
        background: #fff;
    }

    body.is-printing-carteirinha .mkt-idcard-static-sheet {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 6mm;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    body.is-printing-carteirinha .mkt-idcard-static-block {
        width: 86mm;
        height: 54mm;
        margin: 0;
        padding: 0;
        overflow: hidden;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    body.is-printing-carteirinha .mkt-idcard-static {
        position: relative;
        width: 86mm;
        height: 54mm;
        min-height: 0;
        max-height: 54mm;
        aspect-ratio: unset;
        border-radius: 3.5mm;
        overflow: hidden;
        box-shadow: none;
        border: 0.2mm solid #cbd5e1;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.is-printing-carteirinha .mkt-idcard-static .mkt-idcard__face {
        position: absolute;
        inset: 0;
        width: 86mm;
        height: 54mm;
        min-height: 0 !important;
        max-height: 54mm;
        overflow: hidden;
        border-radius: 3.5mm;
        opacity: 1 !important;
        visibility: visible !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ── Dark theme ── */
[data-theme="dark"] .benef-portal {
    --mkt-v2-bg-elevated: #0f172a;
    --mkt-v2-text: #f1f5f9;
    --mkt-v2-muted: rgba(241, 245, 249, 0.55);
    --mkt-v2-border: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #0a0f1e 0%, #030712 55%, #020617 100%);
    color: #f1f5f9;
}

[data-theme="dark"] .benef-topbar {
    background: color-mix(in srgb, #0a0f1e 92%, transparent);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .benef-topbar__brand span,
[data-theme="dark"] .benef-topbar__logout {
    color: var(--mkt-v2-muted);
}

[data-theme="dark"] .benef-topbar__logout:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--mkt-v2-text);
}

[data-theme="dark"] .benef-topbar__icon {
    background: rgba(75, 114, 190, 0.2);
    color: #93b4e8;
}

[data-theme="dark"] .benef-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .benef-card__head h1 {
    color: var(--mkt-v2-text);
}

[data-theme="dark"] .benef-card__head p {
    color: var(--mkt-v2-muted);
}

[data-theme="dark"] .benef-foot {
    color: var(--mkt-v2-muted);
}
