/* Página /carterinha-digital */

.mkt-carteirinha-page:not(.mkt-home-carteirinha-embed__card):not(.benef-carteirinha-preview):not(.benef-carteirinha-print-only):not(.benef-carteirinha-stage):not(.clinic-carteirinha-paciente__preview):not(.benef-carteirinha-col):not(.mkt-idcard-deck) {
    font-family: 'Nunito', 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--mkt-v2-bg, #f1f5f9);
}

.mkt-home-carteirinha-embed__card.mkt-carteirinha-page,
.benef-carteirinha-preview.mkt-carteirinha-page,
.benef-carteirinha-print-only.mkt-carteirinha-page,
.benef-carteirinha-stage.mkt-carteirinha-page,
.clinic-carteirinha-paciente__preview.mkt-carteirinha-page,
.benef-carteirinha-col.mkt-carteirinha-page,
.mkt-idcard-deck.mkt-carteirinha-page {
    font-family: inherit;
    min-height: 0;
    height: auto;
    display: block;
    background: transparent;
}

/* ── Header dedicado (barra estável, sem pill apertado) ── */
.mkt-carteirinha-page .mkt-header--carteirinha {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: color-mix(in srgb, var(--mkt-v2-bg-elevated, #fff) 92%, transparent);
    border-bottom: 1px solid var(--mkt-v2-border, rgba(15, 23, 42, 0.08));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.mkt-carteirinha-page .mkt-header--carteirinha .mkt-header-inner--v2 {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.mkt-header-product-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    min-width: 0;
    flex-wrap: wrap;
}

.mkt-header-product-nav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--mkt-v2-muted, #64748b);
    padding: 8px 14px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
}

.mkt-header-product-nav a:hover {
    color: var(--mkt-v2-text, #0f172a);
    background: var(--mkt-v2-surface, #f8fafc);
}

.mkt-nav-select-wrap__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mkt-v2-muted, #64748b);
}

.mkt-nav-select:not(.mkt-nav-select--inline),
.mkt-plan-select {
    appearance: none;
    width: 100%;
    padding: 10px 36px 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--mkt-v2-border, rgba(15, 23, 42, 0.12));
    background:
        var(--mkt-v2-bg-elevated, #fff)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
        no-repeat right 14px center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--mkt-v2-text, #0f172a);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.mkt-nav-select:not(.mkt-nav-select--inline):focus,
.mkt-plan-select:focus {
    outline: none;
    border-color: #4b72be;
    box-shadow: 0 0 0 3px rgba(75, 114, 190, 0.16);
}

.mkt-carteirinha-page .mkt-header-actions--v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Conteúdo principal ── */
.mkt-carteirinha-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 104px 24px 40px;
    flex: 1;
    width: 100%;
}

.mkt-carteirinha-panel.is-hidden {
    display: none !important;
}

.mkt-carteirinha-hero {
    margin: 0 0 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--mkt-v2-border, rgba(15, 23, 42, 0.08));
}

.mkt-carteirinha-hero .mkt-section-eyebrow {
    margin: 0 0 8px;
}

.mkt-carteirinha-hero h1 {
    font-family: 'Sora', 'Nunito', sans-serif;
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    color: var(--mkt-v2-text, #0f172a);
}

.mkt-carteirinha-hero .mkt-section-sub {
    margin: 0;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--mkt-v2-muted, #64748b);
}

/* ── Grid principal ── */
.mkt-carteirinha-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    gap: 28px;
    align-items: start;
}

/* ── Painel de planos (esquerda) ── */
.mkt-carteirinha-sidebar__card {
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px solid var(--mkt-v2-border, rgba(15, 23, 42, 0.08));
    background: var(--mkt-v2-bg-elevated, #fff);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.mkt-plan-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mkt-v2-border, rgba(15, 23, 42, 0.08));
}

.mkt-plan-select-wrap__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mkt-v2-muted, #64748b);
}

.mkt-plan-detail.is-hidden {
    display: none !important;
}

.mkt-plan-detail h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mkt-v2-text, #0f172a);
}

.mkt-plan-detail__tagline {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--mkt-v2-text, #0f172a);
}

.mkt-plan-detail__hint {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 700;
    color: #4b72be;
}

.mkt-plan-detail__perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.mkt-plan-detail__perks li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mkt-v2-muted, #64748b);
}

.mkt-plan-detail__perks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4b72be;
}

/* ── Preview da carteirinha (direita) ── */
.mkt-carteirinha-demo {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mkt-carteirinha-demo__frame {
    width: 100%;
    max-width: 380px;
    padding: 16px 18px 14px;
    border-radius: 18px;
    border: 1px solid var(--mkt-v2-border, rgba(15, 23, 42, 0.08));
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
}

.mkt-carteirinha-demo__panel.is-hidden {
    display: none !important;
}

.mkt-carteirinha-demo .mkt-idcard-widget {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mkt-carteirinha-demo .mkt-idcard-widget__tabs {
    align-self: center;
    margin-bottom: 16px;
}

.mkt-carteirinha-demo .mkt-idcard-widget__scene {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1.586 / 1;
}

.mkt-carteirinha-demo__caption {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--mkt-v2-muted, #64748b);
}

/* ── Widget da carteirinha (base autossuficiente) ── */
.mkt-idcard-widget {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mkt-idcard-widget__tabs {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.mkt-idcard-widget__tabs button {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.mkt-idcard-widget__tabs button.is-active {
    background: #fff;
    color: #3d5f9f;
    box-shadow: 0 4px 12px rgba(30, 42, 58, 0.08);
}

.mkt-idcard-widget__scene {
    position: relative;
    width: 100%;
    aspect-ratio: 1.586 / 1;
}

.mkt-idcard {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transform-style: flat;
    transition: none;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
}

.mkt-idcard__face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    box-shadow: 0 14px 34px rgba(30, 42, 58, 0.14), 0 2px 0 rgba(255, 255, 255, 0.65) inset;
}

.mkt-idcard__face--front {
    background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.22) 0%, transparent 55%), linear-gradient(135deg, #3d5f9f 0%, #4b72be 42%, #5a8fd4 100%);
    color: #fff;
}

.mkt-idcard__face--back {
    background: linear-gradient(180deg, #f8fafd 0%, #eef3fa 100%);
    color: #1a2744;
    border: 1px solid rgba(75, 114, 190, 0.14);
}

.mkt-idcard__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.mkt-idcard__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
    z-index: 0;
}

.mkt-idcard-widget__flip-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.mkt-idcard-widget__flip-hint i {
    font-size: 11px;
    opacity: 0.8;
}

.mkt-idcard__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mkt-idcard__brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    min-width: 0;
    flex: 1;
}

.mkt-idcard__header-badges {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.mkt-idcard__ribbon {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, #2d8a8a, #5a9a9a);
    flex-shrink: 0;
}

.mkt-idcard__chip {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 10px;
    font-weight: 800;
}

.mkt-idcard__hint {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    color: rgba(30, 42, 58, 0.72);
    pointer-events: none;
}

.mkt-idcard__qr {
    display: grid;
    grid-template-columns: repeat(3, 8px);
    gap: 3px;
    margin: 0 auto;
    padding: 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mkt-idcard__qr span {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
}

.mkt-idcard__qr span:nth-child(2),
.mkt-idcard__qr span:nth-child(5),
.mkt-idcard__qr span:nth-child(8) {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.mkt-idcard__stripe {
    display: block;
    height: 24px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #2a3f6b 0%, #4b72be 55%, #c9a227 100%);
}

.mkt-idcard__back-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

.mkt-idcard__back-ref {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3d5f9f;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(75, 114, 190, 0.1);
    border: 1px solid rgba(75, 114, 190, 0.16);
    white-space: nowrap;
}

.mkt-idcard__back-section {
    display: block;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    padding-top: 2px;
    flex-shrink: 0;
}

.mkt-idcard__back-title {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7e8fa2;
    padding-left: 7px;
    border-left: 2px solid #4b72be;
}

.mkt-idcard__back-body {
    padding: 8px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.mkt-idcard__dl {
    display: grid;
    gap: 4px;
    margin: 0;
}

.mkt-idcard__dl div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.mkt-idcard__dl dt {
    margin: 0;
    font-size: 9px;
    font-weight: 700;
    color: #7e8fa2;
}

.mkt-idcard__dl dd {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
}

.mkt-idcard__verify {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed rgba(75, 114, 190, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mkt-idcard__verify-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7e8fa2;
}

.mkt-idcard__verify code {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #3d5f9f;
    background: rgba(75, 114, 190, 0.08);
    padding: 3px 7px;
    border-radius: 6px;
}

/* ── Carteirinha horizontal (formato cartão ID) ── */
.mkt-carteirinha-page .mkt-idcard--landscape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    min-height: 0;
    border-radius: 14px;
    transform-style: flat;
    transition: none;
    overflow: hidden;
}

.mkt-carteirinha-page .mkt-idcard--landscape.is-flipped {
    transform: none;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__face {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    min-height: 100%;
    border-radius: 14px;
    transform: none !important;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__face--front {
    transform: none;
    padding: 10px 12px 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__header,
.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__body {
    position: relative;
    z-index: 2;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__face--back {
    transform: none;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mkt-carteirinha-page .mkt-idcard--landscape.is-flipped .mkt-idcard__face--front {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mkt-carteirinha-page .mkt-idcard--landscape:not(.is-flipped) .mkt-idcard__face--back {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mkt-carteirinha-page .mkt-idcard--landscape.is-flipped .mkt-idcard__face--back {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-height: 0;
    flex-shrink: 0;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__brand {
    font-size: 8px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__header-badges {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__ribbon {
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 7px;
    letter-spacing: 0.08em;
    box-shadow: none;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__chip {
    padding: 3px 7px;
    font-size: 9px;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__hint {
    padding: 4px 6px;
    font-size: 9px;
    flex-shrink: 0;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__hint i {
    font-size: 9px;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__body {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__media {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__avatar {
    width: 100%;
    max-width: 68px;
    height: 68px;
    border-radius: 8px;
    font-size: 15px;
    flex-shrink: 0;
    margin: 0 auto;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 4px 12px rgba(15, 23, 42, 0.18);
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__avatar--photo {
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__qr {
    grid-template-columns: repeat(3, 6px);
    gap: 2px;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__qr span {
    width: 6px;
    height: 6px;
    border-radius: 1px;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    min-height: 0;
    flex: 1;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-bottom: 2px;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__name {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    word-break: break-word;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__role {
    margin: 0;
    font-size: 8px;
    line-height: 1.3;
    opacity: 0.9;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__plan-tag {
    display: inline-flex;
    margin-top: 0;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mkt-idcard__identity-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.mkt-idcard__phase {
    display: inline-flex;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity: 0.92;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    margin: 0;
    padding: 6px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    align-items: start;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__field {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    min-width: 0;
    align-content: start;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__field--wide {
    grid-column: 1 / -1;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__field dt {
    margin: 0;
    font-size: 6.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
    line-height: 1.2;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__field dd {
    margin: 0;
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    word-break: break-word;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__type {
    margin: 0;
    padding: 0;
    font-size: 6.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.72;
    text-align: left;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__issuer {
    font-size: 6.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.65;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Baralho 3D — reutiliza tipografia landscape do modelo interativo */
.mkt-idcard-deck.mkt-carteirinha-page .mkt-idcard--landscape.mkt-idcard-deck__card {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    min-height: 0;
    border-radius: 14px;
    transform-style: preserve-3d;
    overflow: hidden;
}

.mkt-idcard-deck.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__face {
    box-shadow: none;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__stripe {
    height: 22px;
    flex-shrink: 0;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__back-body {
    padding: 7px 11px 9px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    gap: 4px;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__back-title {
    font-size: 7.5px;
    margin-bottom: 0;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__back-ref {
    font-size: 7px;
    padding: 2px 6px;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__back-section {
    font-size: 6.5px;
    padding-top: 1px;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 8px;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__dl--contact {
    gap: 3px 8px;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__dl div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    min-width: 0;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__dl-item--wide {
    grid-column: 1 / -1;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__dl dt {
    font-size: 7px;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__dl dd {
    font-size: 8.5px;
    line-height: 1.2;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__verify {
    padding-top: 4px;
    margin-top: auto;
    flex-shrink: 0;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__verify-label {
    font-size: 7px;
}

.mkt-carteirinha-page .mkt-idcard--landscape .mkt-idcard__verify code {
    font-size: 9px;
    padding: 2px 6px;
}

/* ── Temas da carteirinha por plano ── */
.mkt-idcard--premium .mkt-idcard__ribbon {
    background: linear-gradient(90deg, #9a7b1a, #c9a227);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}

.mkt-idcard--essencial .mkt-idcard__face--front {
    background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.22) 0%, transparent 55%), linear-gradient(135deg, #3d5f9f 0%, #4b72be 42%, #5a8fd4 100%);
}

.mkt-idcard--profissional .mkt-idcard__face--front {
    background: radial-gradient(100% 80% at 0% 0%, rgba(255, 255, 255, 0.2) 0%, transparent 50%), linear-gradient(135deg, #1f6b6b 0%, #2d8a8a 45%, #5a9a9a 100%);
}

.mkt-idcard--profissional .mkt-idcard__phase {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

.mkt-idcard--premium .mkt-idcard__face--front {
    background: radial-gradient(90% 70% at 100% 0%, rgba(201, 162, 39, 0.25) 0%, transparent 55%), linear-gradient(145deg, #141f33 0%, #1a2744 40%, #243656 100%);
    color: #f8fafc;
}

.mkt-idcard--premium .mkt-idcard__avatar {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.35), rgba(255, 255, 255, 0.1));
    border-color: rgba(201, 162, 39, 0.45);
}

.mkt-idcard--premium .mkt-idcard__phase {
    background: rgba(201, 162, 39, 0.22);
    border: 1px solid rgba(201, 162, 39, 0.45);
    color: #f5e6b8;
}

.mkt-idcard--premium .mkt-idcard__stripe {
    background: linear-gradient(90deg, #0d1526 0%, #1a2744 50%, #9a7b1a 100%);
}

.mkt-idcard--premium .mkt-idcard__face--back {
    background: linear-gradient(180deg, #f8fafd 0%, #eef2f8 100%);
}

.mkt-idcard--premium .mkt-idcard__verify code {
    color: #9a7b1a;
    background: rgba(201, 162, 39, 0.12);
}

.mkt-idcard--profissional .mkt-idcard__stripe {
    background: linear-gradient(90deg, #1a4f4f 0%, #2d6a6a 100%);
}

.mkt-idcard__qr--premium span {
    background: rgba(201, 162, 39, 0.85);
}

.mkt-idcard__qr--premium span:nth-child(2),
.mkt-idcard__qr--premium span:nth-child(5),
.mkt-idcard__qr--premium span:nth-child(8) {
    background: transparent;
    border: 1px solid rgba(201, 162, 39, 0.7);
}

/* ── Guia médico na página dedicada ── */
.mkt-carteirinha-page .mkt-guia-product {
    padding: 0;
}

.mkt-guia-product__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mkt-v2-border, rgba(15, 23, 42, 0.08));
}

.mkt-guia-product__title {
    margin: 0;
    font-family: 'Sora', 'Nunito', sans-serif;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    font-weight: 800;
}

.mkt-guia-product__sub {
    margin: 6px 0 0;
    font-size: 15px;
    color: var(--mkt-v2-muted, #64748b);
    line-height: 1.5;
}

.mkt-guia-product__phase {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(90, 154, 154, 0.1);
    border: 1px solid rgba(90, 154, 154, 0.2);
    font-size: 12px;
    font-weight: 800;
    color: #2d6a6a;
}

.mkt-guia-product__phase-desc,
.mkt-guia-product__proc {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.55;
}

.mkt-guia-product__layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.mkt-guia-product__card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--mkt-v2-border, rgba(15, 23, 42, 0.08));
    background: var(--mkt-v2-bg-elevated, #fff);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.mkt-guia-product__card--alert {
    background: linear-gradient(180deg, #fff 0%, #fff9f8 100%);
    border-color: rgba(196, 92, 74, 0.14);
}

.mkt-guia-product__card-label {
    margin: 0 0 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mkt-v2-muted, #64748b);
}

.mkt-guia-product__tips,
.mkt-guia-product__alerts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.mkt-guia-product__tips li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    line-height: 1.45;
}

.mkt-guia-product__tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5a9a9a;
}

.mkt-guia-product__alerts li {
    display: flex;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #7a4038;
}

.mkt-guia-product__contact {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--mkt-v2-muted, #64748b);
}

.mkt-footer--carteirinha {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.mkt-footer-inner--carteirinha {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 24px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid var(--mkt-v2-border, rgba(15, 23, 42, 0.08));
}

.mkt-footer-back {
    font-size: 14px;
    font-weight: 700;
    color: #4b72be;
    text-decoration: none;
    transition: color 0.15s ease;
}

.mkt-footer-back:hover {
    color: #3d61a8;
    text-decoration: underline;
}

.mkt-footer-sep {
    color: var(--mkt-v2-muted, #94a3b8);
    font-weight: 600;
    user-select: none;
}

.mkt-footer-brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--mkt-v2-muted, #64748b);
}

/* ── Responsivo ── */
@media (max-width: 960px) {
    .mkt-carteirinha-page .mkt-header--carteirinha .mkt-header-inner--v2 {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand actions"
            "nav nav";
        gap: 12px 16px;
        padding: 12px 16px;
    }

    .mkt-carteirinha-page .mkt-brand {
        grid-area: brand;
    }

    .mkt-header-product-nav {
        grid-area: nav;
        justify-content: stretch;
    }

    .mkt-nav-product-select,
    .mkt-header-product-nav .mkt-nav-select--inline {
        max-width: none;
        width: 100%;
    }

    .mkt-carteirinha-page .mkt-header-actions--v2 {
        grid-area: actions;
    }

    .mkt-carteirinha-main {
        padding: 96px 16px 32px;
    }

    .mkt-carteirinha-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mkt-carteirinha-demo {
        position: static;
        order: -1;
    }

    .mkt-carteirinha-demo__frame {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .mkt-carteirinha-page .mkt-header-actions--v2 .mkt-btn--ghost-v2 {
        display: none;
    }

    .mkt-carteirinha-sidebar__card {
        padding: 18px 16px;
    }

    .mkt-carteirinha-demo__frame {
        padding: 16px 14px 12px;
    }
}
