:root {
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --bg: #f5f6fb;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --ok: #16a34a;
    --warn: #d97706;
    --danger: #dc2626;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1000px; margin: 0 auto; padding: 24px; }
.narrow { max-width: 520px; }

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; font-size: 1.25rem; color: var(--brand); }

.card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.plan { text-align: center; }
.plan .price { font-size: 2rem; font-weight: 700; color: var(--brand); margin: 8px 0; }
.plan .cycle { color: var(--muted); font-size: .9rem; }

h1, h2 { margin-top: 0; }

label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: .9rem; }
input, select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 1rem;
}
input:focus, select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

.btn {
    display: inline-block; background: var(--brand); color: #fff; border: 0;
    padding: 12px 20px; border-radius: 8px; font-size: 1rem; font-weight: 600;
    cursor: pointer; width: 100%;
}
.btn:hover { background: var(--brand-dark); }
.btn-link { background: none; color: var(--brand); width: auto; padding: 0; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-ok { background: #f0fdf4; color: var(--ok); border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.badge-active { background: #dcfce7; color: var(--ok); }
.badge-overdue, .badge-suspended { background: #fef3c7; color: var(--warn); }
.badge-pending { background: #e0e7ff; color: var(--brand); }
.badge-deleted { background: #fee2e2; color: var(--danger); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); font-size: .9rem; }
th { color: var(--muted); font-weight: 600; }

/* Tabela de dados: nao quebra colunas e rola na horizontal se faltar espaco */
.table-wrap { overflow-x: auto; }
.table-wrap th, .table-wrap td { white-space: nowrap; vertical-align: middle; }
.table-wrap tbody tr:hover { background: #fafaff; }
.table-wrap td code { background: #f3f4f6; padding: 2px 6px; border-radius: 6px; font-size: .8rem; }

/* ===== Painel admin moderno (full-width para PC) ===== */
.admin { max-width: 1440px; margin: 0 auto; padding: 24px 28px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { font-size: 1.6rem; }

.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 18px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
    position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.stat.s-green::before { background: var(--ok); }
.stat.s-amber::before { background: var(--warn); }
.stat.s-red::before   { background: var(--danger); }
.stat.s-blue::before  { background: #2563eb; }
.stat .label { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 1.75rem; font-weight: 700; margin-top: 6px; line-height: 1.1; }
.stat .sub   { color: var(--muted); font-size: .78rem; margin-top: 4px; }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.seg a { padding: 8px 14px; color: var(--text); font-size: .85rem; font-weight: 600; border-right: 1px solid var(--border); }
.seg a:last-child { border-right: 0; }
.seg a:hover { text-decoration: none; background: #f3f4f6; }
.seg a.active { background: var(--brand); color: #fff; }
.range { display: flex; align-items: center; gap: 8px; }
.range input[type=date] { width: auto; padding: 8px 10px; }
.range .btn { width: auto; padding: 8px 14px; }

.muted { color: var(--muted); font-size: .9rem; }
.mt { margin-top: 20px; }
.center { text-align: center; }

/* ===== Vitrine OptoFacil ===== */
.landing-body {
    --landing-ink: #102b26;
    --landing-green: #0f6b55;
    --landing-green-light: #dcece5;
    --landing-coral: #d45d47;
    --landing-yellow: #edc568;
    --landing-paper: #f4f5f2;
    --landing-line: #ced7d2;
    background: #fff;
    color: var(--landing-ink);
    font-family: "Manrope", sans-serif;
    letter-spacing: 0;
}

.landing-body h1,
.landing-body h2,
.landing-body h3,
.landing-body p { margin-top: 0; }

.landing-body h1,
.landing-body h2 {
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: 0;
}

.landing-body a:hover { text-decoration: none; }
.landing-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.landing-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 76px;
    padding: 13px max(24px, calc((100% - 1180px) / 2));
    background: rgba(255, 255, 255, .96);
    border-color: rgba(16, 43, 38, .14);
    backdrop-filter: blur(12px);
}

.landing-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    color: var(--landing-ink);
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 400;
}

.landing-brand img { display: block; width: 180px; height: auto; }
.footer-brand img { display: block; width: 190px; height: auto; }

.landing-nav,
.landing-nav-sections {
    display: flex;
    align-items: center;
    gap: 28px;
}

.landing-nav a { color: var(--landing-ink); font-size: .84rem; font-weight: 600; }
.landing-nav a:hover { color: var(--landing-green); }
.landing-nav .nav-login {
    padding: 10px 19px;
    border: 1px solid var(--landing-ink);
    border-radius: 4px;
}
.landing-nav .nav-login:hover { background: var(--landing-ink); color: #fff; }

.landing-hero {
    position: relative;
    display: flex;
    align-items: center;
    height: min(760px, calc(100svh - 108px));
    min-height: 0;
    max-height: 760px;
    overflow: hidden;
    color: #fff;
    background: #162a26 url("images/hero-exame-vista.jpg") center 45% / cover no-repeat;
}

.landing-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(9, 29, 25, .92) 0%, rgba(9, 29, 25, .76) 42%, rgba(9, 29, 25, .16) 76%);
}

.hero-content { position: relative; z-index: 1; padding: 60px 0; }
.eyebrow {
    margin-bottom: 18px;
    color: var(--landing-yellow);
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}
.eyebrow-dark { color: var(--landing-green); }
.landing-hero h1 { max-width: 700px; margin-bottom: 24px; font-size: 5rem; }
.hero-lead { max-width: 640px; margin-bottom: 32px; color: rgba(255, 255, 255, .84); font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.landing-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 23px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: .88rem;
    font-weight: 700;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.landing-btn-primary { background: var(--landing-coral); color: #fff; }
.landing-btn-primary:hover { background: #b94734; color: #fff; }
.landing-btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.landing-btn-ghost:hover { background: #fff; color: var(--landing-ink); }
.landing-btn-light { background: #fff; color: var(--landing-ink); }
.landing-btn-light:hover { background: var(--landing-yellow); color: var(--landing-ink); }
.landing-btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.landing-btn-outline:hover { background: #fff; color: var(--landing-green); }

.hero-proof {
    display: flex;
    gap: 27px;
    margin-top: 42px;
    color: rgba(255, 255, 255, .78);
    font-size: .75rem;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof span::before { width: 6px; height: 6px; border-radius: 50%; background: var(--landing-yellow); content: ""; }

.landing-intro { padding: 82px 0; background: #fff; }
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; align-items: end; }
.intro-grid h2 { max-width: 660px; margin-bottom: 0; font-size: 3.25rem; }
.intro-grid > p { margin-bottom: 4px; color: #52625e; font-size: 1rem; line-height: 1.8; }

.product-section { padding: 110px 0; }
.product-optometria { background: var(--landing-paper); }
.product-bling { background: #fff; }
.product-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 88px; align-items: center; }
.product-grid-reverse { grid-template-columns: 1.12fr .88fr; }
.product-grid-reverse .product-copy { order: 2; }
.product-grid-reverse .product-media { order: 1; }
.product-number { margin-bottom: 20px; color: var(--landing-green); font-size: .73rem; font-weight: 700; text-transform: uppercase; }
.product-bling .product-number { color: var(--landing-coral); }
.product-copy h2 { margin-bottom: 23px; font-size: 3.1rem; }
.product-lead { margin-bottom: 34px; color: #53635f; line-height: 1.75; }
.feature-list { margin: 0 0 34px; padding: 0; list-style: none; border-top: 1px solid var(--landing-line); }
.feature-list li {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px solid var(--landing-line);
}
.feature-list strong { font-size: .85rem; }
.feature-list span { color: #64716e; font-size: .78rem; line-height: 1.55; }
.text-link { display: inline-flex; gap: 10px; color: var(--landing-green); font-size: .85rem; font-weight: 700; }
.product-bling .text-link { color: var(--landing-coral); }
.text-link:hover span { transform: translateX(4px); }
.text-link span { transition: transform .2s ease; }

.product-media { position: relative; padding: 0 58px 76px 0; }
.product-media > img { display: block; width: 100%; height: 590px; object-fit: cover; }
.media-detail {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    width: min(395px, 72%);
    grid-template-columns: 130px 1fr;
    background: var(--landing-ink);
    color: #fff;
}
.media-detail img { width: 130px; height: 145px; object-fit: cover; }
.media-detail p { align-self: center; margin: 0; padding: 18px; color: rgba(255, 255, 255, .72); font-size: .72rem; line-height: 1.55; }
.media-detail strong { display: block; margin-bottom: 5px; color: #fff; font-size: .8rem; }
.product-bling .media-detail { background: var(--landing-coral); }

.video-section { padding: 110px 0; background: var(--landing-green-light); }
.section-heading { display: flex; justify-content: space-between; gap: 60px; align-items: end; margin-bottom: 50px; }
.section-heading h2 { margin-bottom: 0; font-size: 3.2rem; }
.section-heading > p { max-width: 420px; margin-bottom: 4px; color: #52625e; line-height: 1.7; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.video-card { background: #fff; }
.video-poster {
    position: relative;
    display: grid;
    height: 340px;
    place-items: center;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}
.video-optometria .video-poster { background-image: linear-gradient(rgba(7, 31, 25, .38), rgba(7, 31, 25, .38)), url("images/hero-exame-vista.jpg"); }
.video-bling .video-poster { background-image: linear-gradient(rgba(29, 20, 15, .36), rgba(29, 20, 15, .36)), url("images/bling2-armacoes.jpg"); }
.play-icon {
    width: 66px;
    height: 66px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
}
.play-icon::after {
    display: block;
    width: 0;
    height: 0;
    margin: 23px 0 0 27px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--landing-green);
    content: "";
}
.video-status { position: absolute; right: 18px; bottom: 18px; padding: 7px 10px; background: #fff; color: var(--landing-ink); font-size: .68rem; font-weight: 700; }
.video-copy { padding: 24px 26px 28px; }
.video-copy p { margin-bottom: 8px; color: var(--landing-green); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.video-bling .video-copy p { color: var(--landing-coral); }
.video-copy h3 { margin-bottom: 0; font-size: 1.14rem; }

.plans-section { padding: 110px 0; background: var(--landing-ink); color: #fff; }
.plans-heading > p { color: rgba(255, 255, 255, .66); }
.landing-plans { border-top: 1px solid rgba(255, 255, 255, .18); }
.landing-plan {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    align-items: center;
    padding: 34px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.plan-system { margin-bottom: 8px; color: var(--landing-yellow); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.landing-plan h3 { margin-bottom: 9px; font-size: 1.5rem; }
.plan-description { max-width: 590px; margin-bottom: 0; color: rgba(255, 255, 255, .62); font-size: .83rem; }
.plan-buy { display: grid; min-width: 410px; grid-template-columns: 1fr 100px 150px; align-items: center; gap: 22px; }
.landing-price { margin-bottom: 0; font-family: "DM Serif Display", Georgia, serif; font-size: 2rem; white-space: nowrap; }
.landing-price small { font-family: "Manrope", sans-serif; font-size: .72rem; }
.landing-cycle { margin-bottom: 0; color: rgba(255, 255, 255, .62); font-size: .72rem; }

.final-cta { padding: 110px 0; background: var(--landing-coral); color: #fff; }
.final-cta-inner { text-align: center; }
.final-cta h2 { max-width: 850px; margin: 0 auto 34px; font-size: 3.4rem; }
.final-cta .hero-actions { justify-content: center; }
.landing-footer { padding: 65px 0 35px; background: #091d19; color: rgba(255, 255, 255, .65); }
.landing-footer-inner { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 35px; align-items: center; }
.footer-brand { color: #fff; }
.landing-footer p { margin: 0; font-size: .8rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255, 255, 255, .75); font-size: .75rem; }
.landing-footer small { grid-column: 1 / -1; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .68rem; }

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 10px 28px rgba(9, 29, 25, .28);
    transition: background .2s ease, transform .2s ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible { background: #1eae54; color: #fff; transform: translateY(-3px); }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.whatsapp-float svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.whatsapp-float svg path:last-child { fill: currentColor; stroke: none; }
.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    width: max-content;
    max-width: 180px;
    padding: 8px 11px;
    border-radius: 4px;
    background: var(--landing-ink);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity .2s ease, transform .2s ease;
}
.whatsapp-tooltip::after {
    position: absolute;
    top: 50%;
    right: -5px;
    width: 10px;
    height: 10px;
    background: var(--landing-ink);
    content: "";
    transform: translateY(-50%) rotate(45deg);
}
.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

@media (max-width: 980px) {
    .landing-nav-sections { display: none; }
    .landing-hero h1 { max-width: 620px; font-size: 4.2rem; }
    .intro-grid { gap: 45px; }
    .product-grid,
    .product-grid-reverse { grid-template-columns: 1fr; gap: 55px; }
    .product-grid-reverse .product-copy,
    .product-grid-reverse .product-media { order: initial; }
    .product-media > img { height: 520px; }
    .plan-buy { min-width: 360px; grid-template-columns: 1fr 90px 140px; }
    .landing-footer-inner { grid-template-columns: 1fr auto; }
    .landing-footer-inner > p { display: none; }
}

@media (max-width: 720px) {
    .landing-shell { width: min(100% - 32px, 1180px); }
    .landing-topbar { min-height: 68px; padding: 10px 16px; }
    .landing-brand img { width: 150px; }
    .landing-nav .nav-login { padding: 8px 13px; }
    .landing-hero { height: calc(100svh - 92px); min-height: 0; max-height: 680px; background-position: 58% center; }
    .landing-hero::before { background: linear-gradient(90deg, rgba(9, 29, 25, .91) 0%, rgba(9, 29, 25, .68) 100%); }
    .hero-content { padding: 42px 0; }
    .landing-hero h1 { max-width: 520px; font-size: 3rem; }
    .hero-lead { font-size: .9rem; line-height: 1.6; }
    .hero-proof { gap: 10px 18px; flex-wrap: wrap; margin-top: 28px; }
    .landing-intro,
    .product-section,
    .video-section,
    .plans-section,
    .final-cta { padding: 75px 0; }
    .intro-grid { grid-template-columns: 1fr; gap: 22px; }
    .intro-grid h2,
    .product-copy h2,
    .section-heading h2,
    .final-cta h2 { font-size: 2.55rem; }
    .product-grid { gap: 40px; }
    .feature-list li { grid-template-columns: 1fr; gap: 5px; }
    .product-media { padding: 0 24px 52px 0; }
    .product-media > img { height: 420px; }
    .media-detail { width: min(360px, 88%); grid-template-columns: 100px 1fr; }
    .media-detail img { width: 100px; height: 120px; }
    .section-heading { display: block; margin-bottom: 34px; }
    .section-heading > p { margin-top: 18px; }
    .video-grid { grid-template-columns: 1fr; }
    .video-poster { height: 270px; }
    .landing-plan { grid-template-columns: 1fr; gap: 24px; }
    .plan-buy { min-width: 0; grid-template-columns: 1fr auto; gap: 8px 20px; }
    .plan-buy .landing-btn { grid-column: 1 / -1; margin-top: 10px; }
    .landing-footer-inner { grid-template-columns: 1fr; }
    .footer-links { flex-wrap: wrap; }
    .whatsapp-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
    .whatsapp-float svg { width: 31px; height: 31px; }
    .whatsapp-tooltip { display: none; }
}

@media (max-height: 700px) {
    .hero-content { padding: 24px 0; }
    .landing-hero h1 { max-width: 620px; margin-bottom: 14px; font-size: 3.6rem; }
    .hero-lead { margin-bottom: 18px; font-size: .88rem; line-height: 1.55; }
    .hero-proof { margin-top: 18px; }
    .eyebrow { margin-bottom: 10px; }
}

@media (max-width: 720px) and (max-height: 700px) {
    .landing-hero h1 { font-size: 2.45rem; }
    .hero-proof { display: none; }
}

@media (max-width: 420px) {
    .landing-brand img { width: 142px; }
    .landing-hero h1 { font-size: 2.55rem; }
    .hero-actions .landing-btn { width: 100%; }
    .hero-proof span { width: 100%; }
    .product-media > img { height: 350px; }
    .media-detail { width: 92%; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-content > * { animation: landing-rise .7s both; }
    .hero-content > *:nth-child(2) { animation-delay: .08s; }
    .hero-content > *:nth-child(3) { animation-delay: .16s; }
    .hero-content > *:nth-child(4) { animation-delay: .24s; }
    .hero-content > *:nth-child(5) { animation-delay: .32s; }
}

@keyframes landing-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Acesso OptoFacil ===== */
.auth-body {
    --landing-ink: #102b26;
    --landing-green: #0f6b55;
    --landing-coral: #d45d47;
    --landing-yellow: #edc568;
    --landing-line: #ced7d2;
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    background: #fff;
    color: var(--landing-ink);
    font-family: "Manrope", sans-serif;
    letter-spacing: 0;
}

.auth-body a:hover { text-decoration: none; }
.auth-topbar { position: relative; flex: 0 0 auto; }
.auth-page {
    display: grid;
    min-height: calc(100svh - 130px);
    grid-template-columns: minmax(0, 1.05fr) minmax(480px, .95fr);
    flex: 1;
}

.auth-visual {
    position: relative;
    display: flex;
    min-height: 620px;
    align-items: end;
    overflow: hidden;
    padding: 64px max(48px, calc((100vw - 1180px) / 2));
    color: #fff;
    background: #16312b url("images/hero-exame-vista.jpg") center / cover no-repeat;
}
.auth-visual::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(8, 28, 24, .06), rgba(8, 28, 24, .9));
}
.auth-visual-content { position: relative; z-index: 1; max-width: 560px; }
.auth-visual-content h2 {
    margin: 0 0 18px;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 3.35rem;
    font-weight: 400;
    line-height: 1.04;
}
.auth-visual-content > p:last-child { max-width: 490px; margin: 0; color: rgba(255, 255, 255, .76); line-height: 1.7; }

.auth-panel { display: grid; place-items: center; padding: 64px 54px; background: #fff; }
.auth-form-wrap { width: min(100%, 440px); }
.auth-kicker { margin: 0 0 14px; color: var(--landing-green); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.auth-form-wrap h1 {
    margin: 0 0 16px;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 3.15rem;
    font-weight: 400;
    line-height: 1.05;
}
.auth-intro { margin: 0 0 34px; color: #64716e; font-size: .9rem; line-height: 1.7; }
.auth-form { display: grid; gap: 21px; }
.auth-field label { margin: 0; color: var(--landing-ink); font-size: .78rem; font-weight: 700; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.auth-label-row a { color: var(--landing-green); font-size: .72rem; font-weight: 600; }
.auth-field > label { margin-bottom: 8px; }
.auth-field input {
    height: 52px;
    border: 1px solid var(--landing-line);
    border-radius: 4px;
    background: #f8faf8;
    color: var(--landing-ink);
    font-family: "Manrope", sans-serif;
    font-size: .88rem;
}
.auth-field input::placeholder { color: #98a29f; }
.auth-field input:focus { border-color: var(--landing-green); outline: 2px solid rgba(15, 107, 85, .16); }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    background: transparent;
    color: #62716d;
    cursor: pointer;
}
.password-toggle:hover { color: var(--landing-green); }
.password-toggle:focus-visible { border-radius: 3px; outline: 2px solid var(--landing-green); }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.auth-submit {
    min-height: 52px;
    border: 0;
    border-radius: 4px;
    background: var(--landing-coral);
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}
.auth-submit:hover { background: #b94734; }
.auth-submit:focus-visible { outline: 3px solid rgba(212, 93, 71, .25); outline-offset: 3px; }
.auth-submit-link { display: flex; align-items: center; justify-content: center; color: #fff; }
.auth-submit-link:hover { color: #fff; }
.auth-signup { margin: 34px 0 0; padding-top: 24px; border-top: 1px solid #e3e8e5; color: #687571; font-size: .8rem; text-align: center; }
.auth-signup a { color: var(--landing-green); font-weight: 700; }
.auth-body .alert { margin-bottom: 24px; font-size: .8rem; }
.auth-footer {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex: 0 0 auto;
    padding: 12px max(24px, calc((100% - 1180px) / 2));
    border-top: 1px solid #e0e6e3;
    background: #f5f7f5;
    color: #73807c;
    font-size: .7rem;
}
.auth-footer a { color: var(--landing-green); font-weight: 700; }

@media (max-width: 960px) {
    .auth-page { grid-template-columns: minmax(0, .8fr) minmax(430px, 1.2fr); }
    .auth-visual { padding: 48px 36px; }
    .auth-visual-content h2 { font-size: 2.6rem; }
    .auth-panel { padding: 52px 38px; }
}

@media (max-width: 720px) {
    .auth-topbar { min-height: 68px; }
    .auth-page { display: block; min-height: calc(100svh - 116px); }
    .auth-visual { display: none; }
    .auth-panel { min-height: calc(100svh - 122px); padding: 46px 24px; place-items: start center; }
    .auth-form-wrap h1 { font-size: 2.65rem; }
    .auth-intro { margin-bottom: 28px; }
    .auth-footer { min-height: 48px; padding: 10px 16px; }
    /* iOS/Android da zoom automatico ao focar input com font-size < 16px */
    .auth-field input { font-size: 16px; }
}

/* ===== Checkout OptoFacil ===== */
.checkout-body {
    --landing-ink: #102b26;
    --landing-green: #0f6b55;
    --landing-coral: #d45d47;
    --landing-yellow: #edc568;
    --landing-line: #ced7d2;
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    background: #f2f5f2;
    color: var(--landing-ink);
    font-family: "Manrope", sans-serif;
    letter-spacing: 0;
}
.checkout-body a:hover { text-decoration: none; }
.checkout-topbar { position: relative; flex: 0 0 auto; }
.checkout-login-label { color: #6d7976; font-size: .75rem; }
.checkout-page { flex: 1; padding: 62px 24px 80px; }
.checkout-shell { display: grid; width: min(1100px, 100%); margin: 0 auto; grid-template-columns: minmax(0, 1fr) 350px; gap: 42px; align-items: start; }
.checkout-main { min-width: 0; }
.checkout-kicker { margin: 0 0 12px; color: var(--landing-green); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.checkout-main > h1,
.checkout-success h1 { margin: 0 0 14px; font-family: "DM Serif Display", Georgia, serif; font-size: 3.35rem; font-weight: 400; line-height: 1.05; }
.checkout-intro { max-width: 620px; margin: 0 0 34px; color: #65736f; font-size: .9rem; line-height: 1.7; }
.checkout-errors { margin-bottom: 26px; padding: 18px 20px; border: 1px solid #f0b8ae; border-left: 4px solid var(--landing-coral); border-radius: 4px; background: #fff5f3; color: #8f2f20; font-size: .78rem; }
.checkout-errors strong { display: block; margin-bottom: 7px; }
.checkout-errors ul { margin: 0; padding-left: 18px; }
.checkout-form { display: grid; gap: 20px; }
.checkout-section { margin: 0; padding: 27px 28px 30px; border: 1px solid #dce3df; border-radius: 6px; background: #fff; }
.checkout-section legend { padding: 0 10px 0 0; color: var(--landing-ink); font-size: .9rem; font-weight: 700; }
.checkout-section legend span { display: inline-grid; width: 27px; height: 27px; margin-right: 8px; place-items: center; border-radius: 50%; background: var(--landing-green); color: #fff; font-size: .7rem; }
.checkout-fields { display: grid; grid-template-columns: repeat(6, 1fr); gap: 19px 16px; }
.checkout-field { display: flex; grid-column: span 3; flex-direction: column; }
.checkout-field-full { grid-column: 1 / -1; }
.checkout-field-small { grid-column: span 2; }
.checkout-field label { margin: 0 0 8px; color: var(--landing-ink); font-size: .75rem; font-weight: 700; }
.checkout-field label small { color: #87928f; font-size: .65rem; font-weight: 500; }
.checkout-field input,
.checkout-field select { height: 50px; border: 1px solid var(--landing-line); border-radius: 4px; background: #fafbfa; color: var(--landing-ink); font-family: "Manrope", sans-serif; font-size: .84rem; }
.checkout-field input:focus,
.checkout-field select:focus { border-color: var(--landing-green); outline: 2px solid rgba(15, 107, 85, .14); }
.checkout-payment-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 3px 0 23px; padding-bottom: 18px; border-bottom: 1px solid #e5eae7; }
.checkout-payment-head strong { display: block; font-size: .8rem; }
.checkout-payment-head small { display: block; margin-top: 3px; color: #77837f; font-size: .68rem; }
.secure-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--landing-green); font-size: .68rem; font-weight: 700; }
.secure-badge svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.checkout-submit { min-height: 54px; border: 0; border-radius: 4px; background: var(--landing-coral); color: #fff; font-family: "Manrope", sans-serif; font-size: .88rem; font-weight: 700; cursor: pointer; }
.checkout-submit:hover { background: #b94734; }
.checkout-submit:disabled { cursor: wait; opacity: .7; }
.checkout-security { display: flex; max-width: 590px; align-items: flex-start; gap: 9px; justify-self: center; margin: 0; color: #74817d; font-size: .68rem; line-height: 1.55; text-align: center; }
.checkout-security svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--landing-green); stroke-width: 1.7; }
.checkout-summary { position: sticky; top: 24px; padding: 30px; border-radius: 6px; background: var(--landing-ink); color: #fff; }
.summary-eyebrow { margin: 0 0 8px; color: var(--landing-yellow); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.checkout-summary h2 { margin: 0 0 27px; font-family: "DM Serif Display", Georgia, serif; font-size: 2rem; font-weight: 400; }
.summary-product { display: flex; align-items: center; gap: 13px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.summary-mark { display: block; width: 46px; height: 46px; flex: 0 0 46px; }
.summary-mark img { display: block; width: 100%; height: 100%; }
.summary-product strong,
.summary-product span { display: block; }
.summary-product strong { font-size: .83rem; }
.summary-product div span { margin-top: 3px; color: rgba(255, 255, 255, .6); font-size: .7rem; }
.summary-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 25px 0 3px; }
.summary-price-row > span { color: rgba(255, 255, 255, .7); font-size: .72rem; }
.summary-price-row strong { font-family: "DM Serif Display", Georgia, serif; font-size: 2rem; font-weight: 400; white-space: nowrap; }
.summary-price-row small { font-family: "Manrope", sans-serif; font-size: .65rem; }
.summary-cycle { margin: 0 0 24px; color: rgba(255, 255, 255, .56); font-size: .68rem; text-align: right; }
.summary-benefits { display: grid; gap: 12px; margin: 0; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); list-style: none; }
.summary-benefits li { position: relative; padding-left: 20px; color: rgba(255, 255, 255, .74); font-size: .71rem; line-height: 1.45; }
.summary-benefits li::before { position: absolute; top: 4px; left: 0; width: 8px; height: 5px; border-bottom: 2px solid var(--landing-yellow); border-left: 2px solid var(--landing-yellow); content: ""; transform: rotate(-45deg); }
.summary-recurring { margin-top: 21px; color: rgba(255, 255, 255, .48); font-size: .64rem; line-height: 1.6; }
.checkout-success { width: min(560px, 100%); margin: 70px auto; padding: 55px; border: 1px solid #dce3df; border-radius: 6px; background: #fff; text-align: center; }
.success-mark { display: grid; width: 62px; height: 62px; margin: 0 auto 24px; place-items: center; border-radius: 50%; background: var(--landing-green); color: #fff; font-size: 1.6rem; }
.checkout-success .auth-submit { width: 100%; margin-top: 18px; }

@media (max-width: 900px) {
    .checkout-shell { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
    .checkout-page { padding-right: 18px; padding-left: 18px; }
    .checkout-summary { padding: 24px; }
}

@media (max-width: 720px) {
    .checkout-topbar { min-height: 68px; }
    .checkout-login-label { display: none; }
    .checkout-page { padding: 38px 16px 60px; }
    .checkout-shell { display: flex; flex-direction: column; }
    .checkout-main { width: 100%; }
    .checkout-main > h1,
    .checkout-success h1 { font-size: 2.65rem; }
    .checkout-intro { margin-bottom: 27px; }
    .checkout-summary { position: static; order: -1; width: 100%; }
    .checkout-summary h2 { margin-bottom: 18px; font-size: 1.65rem; }
    .summary-benefits,
    .summary-recurring { display: none; }
    .summary-product { padding-bottom: 17px; }
    .summary-price-row { padding-top: 18px; }
    .summary-cycle { margin-bottom: 0; }
    .checkout-section { padding: 23px 18px 25px; }
    .checkout-fields { grid-template-columns: 1fr 1fr; }
    .checkout-field,
    .checkout-field-small { grid-column: span 1; }
    .checkout-field-full { grid-column: 1 / -1; }
    .checkout-payment-head { align-items: flex-start; }
    .checkout-success { margin: 20px auto; padding: 38px 24px; }
}

@media (max-width: 420px) {
    .checkout-fields { grid-template-columns: 1fr; }
    .checkout-field,
    .checkout-field-small,
    .checkout-field-full { grid-column: 1; }
}
