:root {
    --azul-escuro: #002b66;
    --azul-claro: #16c5e8;
    --verde: #1aa83a;
    --verde-claro: #dff4e5;
    --amarelo: #fff200;
    --fundo: #f7f9fc;
    --texto: #26384d;
    --texto-suave: #64748b;
    --borda: #e4ebf3;
    --sombra: 0 12px 30px rgba(0, 43, 102, 0.08);
}

* { box-sizing: border-box; }
body { font-family: Arial, Helvetica, sans-serif; background: var(--fundo); color: var(--texto); line-height: 1.6; }
a { text-decoration: none; }

.navbar-site { background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--borda); backdrop-filter: blur(10px); }
.navbar-wrap { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { display: block; width: 190px; max-height: 64px; object-fit: contain; }
.menu { align-items: center; gap: 1.1rem; justify-content: flex-end; display: flex; }
.menu a { color: var(--azul-escuro); font-weight: 700; border-radius: 999px; padding: .55rem .85rem; display: inline-block; }
.menu a:hover, .menu a.active { background: var(--verde); color: #fff; }
.menu-toggle { display: none; border: 1px solid var(--borda); background: #fff; border-radius: 10px; padding: .4rem .7rem; color: var(--azul-escuro); font-weight: 800; }

.hero { padding: 4.8rem 0 4rem; background: radial-gradient(circle at 84% 16%, rgba(22,197,232,.22), transparent 28%), linear-gradient(135deg,#fff 0%,#f3f8fc 52%,#fff 100%); border-bottom: 1px solid var(--borda); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--azul-escuro); font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--amarelo); box-shadow: 14px 8px 0 var(--azul-claro); }
h1,h2,h3,h4 { color: var(--azul-escuro); line-height: 1.2; }
.hero h1 { font-size: clamp(2.4rem,4vw,4.3rem); letter-spacing: -.05em; margin: 1rem 0; }
.hero p, .section-title p, .book-card p, .book-result p, .norm-card p, .contact-side p, .page-header p { color: var(--texto-suave); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

.btn { border-radius: 999px; font-weight: 800; }
.btn-primary { background: var(--verde); border-color: var(--verde); box-shadow: 0 10px 20px rgba(26,168,58,.18); }
.btn-primary:hover { background: #158a31; border-color: #158a31; }
.btn-light { background: #eef3f8; color: var(--azul-escuro); border-color: #eef3f8; }
.btn-outline-primary { color: var(--azul-escuro); border-color: var(--borda); background: #fff; }
.btn-outline-primary:hover { color: #fff; background: var(--azul-escuro); border-color: var(--azul-escuro); }

.hero-book { background: #fff; border: 1px solid var(--borda); border-radius: 30px; box-shadow: var(--sombra); padding: 1.25rem; display: grid; grid-template-columns: 145px 1fr; gap: 1rem; align-items: center; color: inherit; }
.hero-book img { width: 145px; height: 215px; object-fit: cover; border-radius: 8px; box-shadow: 0 14px 26px rgba(0,43,102,.22); }
.hero-book span, .hero-book small { display: block; color: var(--texto-suave); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.hero-book strong { display: block; color: var(--azul-escuro); font-size: 1.35rem; line-height: 1.2; margin: .5rem 0; }
.hero-book .hero-authors { display: block; color: #334155; font-size: .92rem; font-weight: 700; line-height: 1.35; margin: .45rem 0 .55rem; text-transform: none; letter-spacing: 0; }

.section { padding: 4rem 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.6rem; }
.section-title h2 { font-size: clamp(1.7rem,3vw,2.55rem); letter-spacing: -.035em; margin-bottom: .35rem; }
.page-header { padding: 3.5rem 0 2.6rem; background: linear-gradient(135deg,#fff,#eef8fc); border-bottom: 1px solid var(--borda); }
.page-header h1 { font-size: clamp(2rem,3.2vw,3.4rem); margin: .9rem 0 .5rem; }

.book-card, .search-box, .book-result, .content-panel, .norm-card, .contact-card, .admin-card, .obra-cover-panel { background: #fff; border: 1px solid var(--borda); border-radius: 26px; box-shadow: var(--sombra); }
.book-card { overflow: hidden; }
.book-cover-link { display: block; background: linear-gradient(135deg,#e9f6fb,#fff); padding: 1rem; text-align: center; }
.book-cover-img { width: 76%; max-width: 190px; height: 260px; object-fit: cover; border-radius: 8px; box-shadow: 0 14px 26px rgba(0,43,102,.22); }
.book-card-body { padding: 1.2rem; }
.book-card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.book-card h3 a, .book-result h2 a { color: var(--azul-escuro); }
.authors { font-style: italic; color: #334155; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: .32rem .72rem; font-size: .78rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: #057522; background: var(--verde-claro); margin-bottom: .72rem; }
.tag-outline { color: #057522; background: #f6fff8; border: 1px solid var(--verde); }
.book-tags, .result-tags { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }
.book-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.download-count { display: inline-flex; margin-top: .8rem; color: var(--azul-escuro); background: #f1f5f9; border: 1px solid var(--borda); border-radius: 999px; padding: .4rem .75rem; font-size: .86rem; font-weight: 800; }

.search-box { padding: 1.55rem; margin-bottom: 2rem; }
.catalog-search { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: .7rem; background: #f1f4f8; border-radius: 12px; padding: .75rem 1.05rem; margin-bottom: 1.15rem; }
.catalog-search span { font-size: 1.25rem; }
.catalog-search input { border: 0; background: transparent; outline: 0; font: inherit; color: var(--texto); width: 100%; }
.catalog-filters { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: .9rem; align-items: end; margin-top: 1rem; }
.catalog-select-group label { display: block; color: var(--azul-escuro); font-weight: 800; margin: 0 0 .35rem; font-size: .88rem; }
.catalog-select-group select { background: #fff; }
.catalog-filter-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

.filter-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { border: 0; border-radius: 999px; background: #f1f4f8; color: var(--azul-escuro); padding: .6rem 1rem; font-weight: 700; display: inline-flex; }
.chip.active, .chip:hover { background: var(--verde); color: #fff; }
.results-info { color: var(--texto-suave); font-weight: 800; }
.book-result { display: grid; grid-template-columns: 170px 1fr; gap: 1.7rem; padding: 1.6rem; margin-bottom: 1.35rem; }
.cover-mini-wrap img { width: 140px; height: 210px; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 18px rgba(0,0,0,.12); }
.book-meta { border-top: 1px solid var(--borda); padding-top: .8rem; font-size: .88rem; color: #334155; }

.about-layout, .contact-layout, .obra-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem; align-items: start; }
.content-panel, .contact-card, .admin-card { padding: 1.5rem; }
.feature-list { display: grid; gap: .9rem; margin-top: 1rem; }
.feature-item { border: 1px solid var(--borda); background: #f8fbfd; border-radius: 18px; padding: 1rem; }
.feature-item strong { color: var(--azul-escuro); display: block; margin-bottom: .15rem; }
.meta-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .9rem; margin-top: 1rem; }
.norm-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; }
.norm-card { padding: 1.35rem; }
.download-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

.obra-cover-panel { padding: 1.5rem; }
.obra-cover-panel img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 12px; }

.contact-left { display: grid; gap: 1.2rem; }
.support-files { display: grid; gap: .75rem; margin-top: 1rem; }
.support-file { display: flex; align-items: center; justify-content: space-between; gap: .8rem; border: 1px solid var(--borda); background: #f8fbfd; border-radius: 16px; padding: .9rem 1rem; color: var(--azul-escuro); font-weight: 800; }
.support-file span { color: var(--texto-suave); font-weight: 700; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .85rem; }
label { display: block; color: var(--azul-escuro); font-weight: 800; margin: .8rem 0 .32rem; font-size: .88rem; }
input, select, textarea { width: 100%; border: 1px solid var(--borda); border-radius: 14px; padding: .78rem .85rem; background: #fff; color: var(--texto); font: inherit; }
textarea { min-height: 140px; resize: vertical; }
.upload-drop { position: relative; border: 2px dashed #74b9ff; background: #f8fbff; border-radius: 18px; padding: 2rem 1.2rem; text-align: center; cursor: pointer; transition: .18s ease; }
.upload-drop:hover, .upload-drop.drag-over { border-color: var(--verde); background: #f7fff9; }
.upload-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto .8rem; background: #eaf6fc; color: var(--azul-escuro); font-size: 1.7rem; font-weight: 900; }
.upload-drop strong { display: block; color: var(--azul-escuro); margin-bottom: .25rem; }
.upload-drop small { display: block; color: var(--texto-suave); margin-top: .35rem; }

.footer-site { background: #031936; color: #fff; padding: 2.6rem 0; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.footer-logo { width: 200px; border-radius: 10px; background: #fff; padding: .35rem; }
.footer-site h4 { color: #fff; }
.footer-site p, .footer-site a { color: #d9e8f6; margin: .25rem 0; display: block; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #25d366; color: #fff; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 1.65rem; box-shadow: 0 14px 28px rgba(37,211,102,.32); }
.whatsapp-float:after { content: none; display: none; }

.admin-body { background: #f7f9fc; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.login-card { width: min(420px,100%); background: #fff; border: 1px solid var(--borda); border-radius: 28px; padding: 2rem; box-shadow: var(--sombra); }
.login-card img { width: 220px; display: block; margin: 0 auto 1rem; }
.admin-shell { width: min(1280px,calc(100% - 36px)); margin: 2rem auto; display: grid; grid-template-columns: 280px 1fr; gap: 1.2rem; align-items: stretch; }
.admin-sidebar { background: #031936; color: #fff; border-radius: 28px; padding: 1.2rem; box-shadow: var(--sombra); min-height: 760px; }
.admin-brand { display: flex; align-items: center; gap: .75rem; padding: .6rem .4rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 1rem; }
.admin-brand-mark { width: 42px; height: 42px; border-radius: 14px; background: #fff; color: var(--azul-escuro); display: grid; place-items: center; font-weight: 900; }
.admin-brand strong { display: block; color: #fff; line-height: 1.15; }
.admin-brand span { color: #b8c9dd; font-size: .82rem; }
.admin-menu { display: grid; gap: .4rem; }
.admin-menu a { display: flex; align-items: center; gap: .6rem; border-radius: 16px; padding: .85rem .9rem; color: #d9e8f6; font-weight: 800; }
.admin-menu a.active, .admin-menu a:hover { background: var(--verde); color: #fff; }
.admin-main { display: grid; gap: 1.2rem; }
.admin-topbar, .admin-panel, .stat-card { background: #fff; border: 1px solid var(--borda); border-radius: 26px; box-shadow: var(--sombra); }
.admin-topbar { padding: 1.2rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-topbar h1 { font-size: 1.85rem; margin: 0 0 .2rem; letter-spacing: -.03em; }
.admin-topbar p { margin: 0; color: var(--texto-suave); }
.admin-user { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; background: #f8fbfd; border: 1px solid var(--borda); border-radius: 999px; color: var(--azul-escuro); font-weight: 800; white-space: nowrap; }
.admin-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.stat-card { padding: 1.2rem; }
.stat-card span { display: block; color: var(--texto-suave); font-size: .86rem; font-weight: 800; margin-bottom: .35rem; }
.stat-card strong { color: var(--azul-escuro); font-size: 2rem; line-height: 1; }
.admin-content-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.2rem; align-items: start; }
.admin-panel { padding: 1.3rem; overflow-x: auto; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.admin-search { flex: 1; min-width: 220px; background: #f1f4f8; border: 0; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; color: var(--texto); border-radius: 18px; overflow: hidden; font-size: .9rem; }
.admin-table th, .admin-table td { text-align: left; padding: .8rem; border-bottom: 1px solid var(--borda); vertical-align: top; }
.admin-table th { background: #f1f5f9; color: var(--azul-escuro); }
.admin-status { display: inline-flex; border-radius: 999px; padding: .3rem .65rem; font-size: .78rem; font-weight: 900; }
.admin-status.publicado { color: #057522; background: var(--verde-claro); }
.admin-status.rascunho { color: #92400e; background: #fff7ed; }

.admin-status.novo { color: #075985; background: #e0f2fe; }
.admin-status.aguardando, .admin-status.pending, .admin-status.pendente { color: #92400e; background: #fff7ed; }
.admin-status.pago, .admin-status.approved, .admin-status.aprovado { color: #057522; background: var(--verde-claro); }
.admin-status.cancelado, .admin-status.recusado, .admin-status.rejected { color: #991b1b; background: #fee2e2; }
.order-unseen-row { background: #fbfdff; }

.admin-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.message-list, .quick-list { display: grid; gap: .75rem; }
.message-item, .quick-item { border: 1px solid var(--borda); background: #f8fbfd; border-radius: 18px; padding: .9rem; }
.message-item strong, .quick-item strong { display: block; color: var(--azul-escuro); margin-bottom: .2rem; }
.message-item span, .quick-item span { color: var(--texto-suave); font-size: .88rem; }
.admin-cover-upload { border: 2px dashed #74b9ff; background: #f8fbff; border-radius: 18px; min-height: 220px; display: grid; place-items: center; text-align: center; color: var(--texto-suave); padding: 1rem; font-weight: 800; }
.current-cover { width: 100px; height: 140px; object-fit: cover; border-radius: 8px; box-shadow: var(--sombra); }


/* Atalhos da área de usuário */
.account-panel-options {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
    justify-content: flex-start;
    margin-top: 1rem;
}
.account-panel-options .btn {
    white-space: nowrap;
}
.admin-flash {
    border-radius: 18px;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--borda);
    background: #f8fbfd;
    color: var(--azul-escuro);
    font-weight: 700;
}
.admin-flash.success {
    background: var(--verde-claro);
    color: #057522;
}
.admin-flash.error {
    background: #fee2e2;
    color: #991b1b;
}
@media (max-width: 940px) {
    .navbar-wrap { align-items: flex-start; padding: .8rem 0; flex-wrap: wrap; }
    .menu-toggle { display: inline-block; margin-left: auto; }
    .navbar-collapse.menu { width: 100%; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .35rem; padding: .8rem 0 .2rem; }
    .navbar-collapse.menu:not(.show) { display: none !important; }
    .navbar-collapse.menu.show { display: flex !important; }
    .menu a { display: block; width: 100%; border-radius: 14px; padding: .72rem .9rem; }
    .hero-grid, .about-layout, .contact-layout, .obra-layout, .footer-grid, .book-result, .admin-shell, .admin-content-grid { grid-template-columns: 1fr; }
    .form-grid, .stat-grid, .norm-grid, .meta-grid { grid-template-columns: 1fr; }
    .catalog-search { grid-template-columns: 36px 1fr; }
    .catalog-search button { grid-column: 1 / -1; }
    .catalog-filters { grid-template-columns: 1fr; }
    .book-result img, .cover-mini-wrap img { width: 100%; max-width: 180px; }
    .hero-book { grid-template-columns: 1fr; }
}

/* Proteções do formulário de contato */
.form-hp {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.security-note {
    color: var(--texto-suave);
    font-size: .86rem;
    margin: .85rem 0 0;
}
.whatsapp-panel {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* Páginas editoriais adicionais */
.process-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}
.process-step {
    background: #fff;
    border: 1px solid var(--borda);
    border-radius: 24px;
    box-shadow: var(--sombra);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 1rem;
    align-items: start;
}
.process-number {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--verde);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
}
.process-step h3 {
    font-size: 1.05rem;
    margin: 0 0 .35rem;
}
.process-step p {
    margin: 0;
    color: var(--texto-suave);
}
.faq-list {
    display: grid;
    gap: .9rem;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--borda);
    border-radius: 20px;
    box-shadow: var(--sombra);
    padding: 1rem 1.2rem;
}
.faq-item summary {
    cursor: pointer;
    color: var(--azul-escuro);
    font-weight: 900;
}
.faq-item p {
    margin: .8rem 0 0;
    color: var(--texto-suave);
}
.citation-box,
.long-text-box {
    border: 1px solid var(--borda);
    background: #f8fbfd;
    border-radius: 20px;
    padding: 1.1rem;
}
.citation-box p {
    color: var(--texto);
    font-size: .95rem;
}
.long-text-box {
    white-space: pre-line;
    color: var(--texto-suave);
    overflow: visible;
    max-height: none;
}

@media (max-width: 940px) {
    .process-flow {
        grid-template-columns: 1fr;
    }
}

.citation-box a {
    color: var(--azul-escuro);
    text-decoration: underline;
    font-weight: 700;
}
.abnt-reference strong {
    font-weight: 900;
}

/* Ajustes v10 */
.whatsapp-float .whatsapp-icon {
    width: 34px;
    height: 34px;
    display: block;
}
.summary-collapsible {
    max-height: 360px;
    overflow: hidden;
    position: relative;
}
.summary-collapsible.is-open {
    max-height: none;
}
.summary-collapsible:not(.is-open)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(rgba(248,251,253,0), #f8fbfd 82%);
    pointer-events: none;
}
.show-more-wrap {
    margin-top: .75rem;
}
.show-more-button {
    border: 0;
    background: var(--verde);
    color: #fff;
    border-radius: 999px;
    padding: .55rem 1rem;
    font-weight: 800;
    cursor: pointer;
}
.form-help {
    color: var(--texto-suave);
    font-size: .86rem;
    margin-top: .35rem;
}

/* Ajustes v11, área do leitor, validação e sumário */
.auth-layout {
    display: grid;
    grid-template-columns: minmax(320px, 520px) 1fr;
    gap: 1.4rem;
    align-items: start;
}
.auth-card {
    max-width: 560px;
}
.auth-side p {
    color: var(--texto-suave);
}
.validation-message {
    display: block;
    margin-top: .35rem;
    font-size: .84rem;
    font-weight: 700;
}
.validation-message.valid {
    color: #057522;
}
.validation-message.invalid {
    color: #b91c1c;
}
input.is-valid-field {
    border-color: #22c55e;
    box-shadow: 0 0 0 .14rem rgba(34, 197, 94, .12);
}
input.is-invalid-field {
    border-color: #ef4444;
    box-shadow: 0 0 0 .14rem rgba(239, 68, 68, .12);
}
.summary-collapsible {
    max-height: 420px;
}
.summary-list {
    display: grid;
    gap: 0;
    line-height: 1.25;
    color: var(--texto);
}
.summary-line {
    margin: 0;
    padding: .12rem 0;
    border-bottom: 1px solid rgba(228, 235, 243, .55);
    font-size: .95rem;
}
.summary-heading {
    margin-top: 1rem;
    padding: .5rem .75rem;
    border-bottom: 0;
    border-radius: 12px;
    background: #eaf6fc;
    color: var(--azul-escuro);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.summary-heading:first-child {
    margin-top: 0;
}
.long-text-box.summary-collapsible {
    white-space: normal;
}
.reader-note {
    color: var(--texto-suave);
    font-size: .92rem;
    margin-top: .75rem;
}
@media (max-width: 940px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
}

input[readonly] {
    background: #f8fbfd;
    color: #475569;
    cursor: not-allowed;
}

.validation-message.valid {
    color: #057522;
}

.validation-message.invalid {
    color: #b91c1c;
}

/* Ajustes v13, área do leitor, recuperação de senha e textos longos */
.reader-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    align-items: start;
}
.account-book-list {
    display: grid;
    gap: .75rem;
}
.account-book-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: .8rem;
    align-items: center;
    border: 1px solid var(--borda);
    background: #f8fbfd;
    border-radius: 16px;
    padding: .75rem;
    color: var(--texto);
}
.account-book-item:hover {
    background: #eef8fc;
}
.account-book-item img {
    width: 58px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 43, 102, .08);
}
.account-book-item strong {
    display: block;
    color: var(--azul-escuro);
    line-height: 1.22;
}
.account-book-item small {
    display: block;
    color: var(--texto-suave);
    margin-top: .25rem;
}
.author-bio-box {
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
}
.author-bio-text {
    display: grid;
    gap: .85rem;
}
.author-bio-text h3 {
    font-size: 1.02rem;
    margin: .3rem 0 -.35rem;
    color: var(--azul-escuro);
    font-weight: 900;
}
.author-bio-text p {
    margin: 0;
    color: var(--texto);
    line-height: 1.55;
    text-align: justify;
}
.catalog-search.is-loading,
[data-catalog-autofilter].is-loading {
    opacity: .78;
}
@media (max-width: 940px) {
    .reader-account-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajustes v14, verificação de CPF e Minha Conta */
.full-field {
    grid-column: 1 / -1;
}
.cpf-check-message {
    display: block;
    margin-top: .4rem;
    font-size: .88rem;
    font-weight: 700;
}
.cpf-check-message.info {
    color: var(--texto-suave);
}
.cpf-check-message.valid {
    color: #057522;
}
.cpf-check-message.invalid {
    color: #b91c1c;
}
.cpf-check-message a {
    color: var(--azul-escuro);
    text-decoration: underline;
}
.account-header-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.account-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: flex-end;
}

.account-summary-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}
.account-summary-panel h2 span {
    color: var(--texto-suave);
    font-size: 1rem;
    font-weight: 700;
}
.account-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: flex-end;
}
@media (max-width: 760px) {
    .account-header-line,
    .account-summary-panel {
        flex-direction: column;
        align-items: flex-start;
    }
    .account-summary-actions,
    .account-header-actions {
        justify-content: flex-start;
    }
}

/* Ajustes v17: mensagens do painel e leitura do formulário */
.admin-message-preview {
    display: inline-block;
    max-width: 360px;
    color: var(--texto-suave);
    line-height: 1.35;
}
.message-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.message-full-box {
    border: 1px solid var(--borda);
    border-radius: 18px;
    background: #f8fbfd;
    padding: 1.2rem;
    white-space: normal;
    line-height: 1.55;
}
.message-full-box h3 {
    margin-bottom: 0.8rem;
}
@media (max-width: 760px) {
    .message-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajustes v19: estrutura preparada para venda futura */
.tag-sale {
    background: #fff7ed;
    color: #92400e;
    border: 1px solid #fed7aa;
}
.tag-free {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}
.commerce-box {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #92400e;
    border-radius: 999px;
    padding: .55rem .85rem;
    font-size: .9rem;
    font-weight: 800;
}
.commerce-box span {
    color: #7c2d12;
}
.purchase-list {
    display: grid;
    gap: .85rem;
}
.purchase-item {
    display: grid;
    gap: .25rem;
    border: 1px solid var(--borda);
    background: #fff;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--sombra);
}
.purchase-item strong {
    color: var(--azul-escuro);
}
.purchase-item span,
.purchase-item small {
    color: var(--texto-suave);
}
.mini-title {
    margin-bottom: .8rem;
}
.narrow-container {
    max-width: 860px;
}


/* Ajustes v20: compartilhamento, preço e FAQ ampliado */
.share-box {
    margin-top: 1.2rem;
    border: 1px solid var(--borda);
    background: #ffffff;
    border-radius: 22px;
    box-shadow: var(--sombra);
    padding: 1rem;
}
.share-box h2 {
    font-size: 1.05rem;
    margin-bottom: .3rem;
}
.share-box p {
    margin: 0 0 .8rem;
    color: var(--texto-suave);
    font-size: .9rem;
}
.share-actions {
    display: grid;
    gap: .5rem;
}
.share-btn {
    border: 1px solid var(--borda);
    background: #f8fbfd;
    color: var(--azul-escuro);
    border-radius: 999px;
    padding: .58rem .85rem;
    font-weight: 900;
    text-align: center;
    cursor: pointer;
    font-size: .88rem;
}
.share-btn:hover {
    background: var(--azul-escuro);
    color: #ffffff;
}
.share-whatsapp {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}
.share-facebook,
.share-linkedin {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.share-email {
    background: #fff7ed;
    color: #92400e;
    border-color: #fed7aa;
}
.share-copy {
    width: 100%;
}
.faq-item p {
    line-height: 1.55;
}

/* Ajustes v21: botões de compartilhamento apenas com ícones */
.share-actions-icons {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}
.share-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    font-size: 1.05rem;
    line-height: 1;
}
.share-icon.share-facebook,
.share-icon.share-linkedin {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
}
.share-icon.share-copy {
    width: 42px;
}


/* Ajustes v22: ícones reais de compartilhamento e retorno visual ao copiar */
.share-actions-icons {
    align-items: center;
}
.share-icon {
    position: relative;
    overflow: visible;
}
.share-icon svg {
    width: 21px;
    height: 21px;
    display: block;
    fill: currentColor;
}
.share-icon.share-whatsapp {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}
.share-icon.share-instagram {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 18%, #fd5949 42%, #d6249f 62%, #285AEB 100%);
    color: #ffffff;
    border-color: transparent;
}
.share-icon.share-facebook {
    background: #1877f2;
    color: #ffffff;
    border-color: #1877f2;
}
.share-icon.share-linkedin {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
}
.share-icon.share-email {
    background: #f97316;
    color: #ffffff;
    border-color: #f97316;
}
.share-icon.share-copy {
    background: #f8fbfd;
    color: var(--azul-escuro);
    border-color: var(--borda);
}
.share-icon:hover {
    transform: translateY(-1px);
    filter: brightness(.96);
}
.share-icon.copied {
    box-shadow: 0 0 0 4px rgba(26, 168, 58, .14);
}
.share-icon.copied::after {
    content: attr(data-copy-success);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: var(--azul-escuro);
    color: #ffffff;
    border-radius: 999px;
    padding: .35rem .65rem;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    background: #fff;
    border: 1px solid #d9e1ea;
    color: #243044;
    width: auto;
    min-width: 230px;
    max-width: 100%;
    min-height: 42px;
    padding: .58rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: none;
}
.btn-google:hover {
    background: #f7f9fc;
    border-color: #b9c7d8;
    color: #172033;
}
.google-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
    color: #4285f4;
}
.btn-google-link {
    min-width: 250px;
}
.google-account-panel {
    grid-column: 1 / -1;
}
.google-linked-status {
    display: flex;
    align-items: center;
    gap: .85rem;
    border: 1px solid #cfe7d6;
    background: #f2fbf5;
    border-radius: 12px;
    padding: .9rem 1rem;
}
.google-linked-status strong,
.google-linked-status small {
    display: block;
}
.google-linked-status small {
    color: var(--texto-suave);
}
.google-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--borda);
}
.google-status-icon .google-brand-icon {
    width: 24px;
    height: 24px;
    font-size: 22px;
}
.inline-form { display: inline-flex; margin: 0; }
.mini-status-form { display: grid; gap: .45rem; min-width: 220px; margin-top: .5rem; }
.mini-status-form select, .mini-status-form input { width: 100%; }
.newsletter-form { display: grid; gap: .45rem; margin: 1rem 0; }
.newsletter-form label { font-weight: 800; }
.newsletter-form input { border: 1px solid var(--borda); border-radius: 8px; padding: .65rem .75rem; }
.author-index { display: flex; flex-wrap: wrap; gap: .65rem; }
.author-chip { display: inline-flex; align-items: center; border: 1px solid var(--borda); border-radius: 8px; padding: .6rem .8rem; background: #fff; font-weight: 800; color: var(--azul-escuro); }
.author-chip:hover { background: #f4f8fb; }
.authors a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.catalog-select-group input { width: 100%; border: 1px solid var(--borda); border-radius: 8px; padding: .65rem .75rem; }
