:root {
    --color-background: #f7f4ed;
    --color-surface: #ffffff;
    --color-text: #1d2a27;
    --color-muted: #66706c;
    --color-primary: #2f6f5e;
    --color-border: #e2ddd2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header,
.site-footer {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container,
.site-footer .container {
    padding: 18px 0;
}

.site-header-inner {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.site-brand {
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.site-nav a {
    color: var(--color-text);
    text-decoration: none;
}

.site-footer {
    border-top: 1px solid var(--color-border);
    border-bottom: 0;
}

.site-main {
    min-height: calc(100vh - 124px);
}

.home-hero {
    padding: 96px 0;
}

.home-kicker {
    margin: 0 0 12px;
    color: var(--color-primary);
    font-weight: 700;
}

.home-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.05;
}

.home-description {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--color-muted);
    font-size: 1.125rem;
}

.store-button {
    background: var(--color-primary);
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    margin-top: 24px;
    min-height: 42px;
    padding: 9px 16px;
    text-decoration: none;
}

.store-section {
    padding: 40px 0;
}

.store-section-title {
    align-items: flex-end;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.store-section-title h1,
.store-section-title h2 {
    margin: 0;
}

.store-section-title p {
    color: var(--color-muted);
    margin: 6px 0 0;
}

.store-section-title a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.ebook-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.ebook-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.ebook-card img {
    aspect-ratio: 3 / 4;
    background: #e7e2d8;
    display: block;
    object-fit: cover;
    width: 100%;
}

.ebook-card div {
    padding: 16px;
}

.ebook-card h2,
.ebook-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0 0 8px;
}

.ebook-card p {
    color: var(--color-muted);
    margin: 0 0 8px;
}

.ebook-card strong,
.ebook-detail-price {
    display: block;
    font-size: 1.2rem;
    margin: 12px 0;
}

.ebook-card strong span,
.ebook-detail-price span {
    color: var(--color-muted);
    font-size: 0.95rem;
    font-weight: 400;
    margin-left: 8px;
    text-decoration: line-through;
}

.ebook-card a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-list a {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    padding: 8px 14px;
    text-decoration: none;
}

.ebook-detail {
    padding: 48px 0;
}

.ebook-detail-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
}

.ebook-detail-cover img {
    border-radius: 8px;
    display: block;
    width: 100%;
}

.ebook-detail-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    margin: 0 0 12px;
}

.ebook-subtitle,
.ebook-description {
    color: var(--color-muted);
}

.ebook-description-box {
    position: relative;
    margin-bottom: 22px;
}

.ebook-description-content {
    color: #5f6862;
    font-size: 1rem;
    line-height: 1.7;
    transition: max-height 0.25s ease;
}

.ebook-description-content.is-collapsed {
    max-height: 6.8em;
    overflow: hidden;
    position: relative;
}

.ebook-description-content.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.4em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

.ebook-description-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: #9b7325;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
}

.ebook-description-toggle:hover,
.ebook-description-toggle:focus-visible {
    color: #7f5f1d;
    text-decoration: underline;
}

.ebook-meta {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin: 24px 0;
}

.ebook-meta div {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px;
}

.ebook-meta dt {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.ebook-meta dd {
    margin: 4px 0 0;
}

.checkout-section {
    padding: 48px 0;
}

.checkout-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
}

.checkout-cover img {
    border-radius: 8px;
    display: block;
    width: 100%;
}

.checkout-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
}

.checkout-panel h1 {
    margin: 0 0 12px;
}

.checkout-panel h2 {
    font-size: 1.2rem;
    margin: 24px 0 10px;
}

.checkout-price strong {
    display: inline-block;
    font-size: 1.5rem;
}

.checkout-price span {
    color: var(--color-muted);
    margin-left: 8px;
    text-decoration: line-through;
}

.order-item {
    border-bottom: 1px solid var(--color-border);
    display: grid;
    gap: 4px;
    padding: 10px 0;
}

.pix-box {
    border-top: 1px solid var(--color-border);
    margin-top: 20px;
    padding-top: 18px;
}

.pix-qrcode {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: block;
    margin: 14px 0;
    max-width: 260px;
    padding: 10px;
    width: 100%;
}

.pix-box label {
    display: grid;
    gap: 8px;
    font-weight: 700;
    margin-top: 14px;
}

.pix-box textarea {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font: inherit;
    max-width: 720px;
    padding: 10px;
    width: 100%;
}

.reader-page {
    background: #202624;
    color: #ffffff;
    min-height: calc(100vh - 124px);
    user-select: none;
}

.reader-toolbar {
    align-items: center;
    background: #14211d;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 20px;
}

.reader-toolbar a {
    color: #ffffff;
    text-decoration: none;
}

.reader-warning {
    background: #2f6f5e;
    padding: 10px 20px;
    text-align: center;
}

.reader-preview-banner {
    background: #8f5f1e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff8e8;
}

.reader-preview-banner strong,
.reader-preview-banner span {
    color: inherit;
}

.reader-license {
    background: rgba(20, 33, 29, 0.88);
    bottom: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    left: 0;
    padding: 6px 12px;
    pointer-events: none;
    position: fixed;
    right: 0;
    text-align: center;
    z-index: 10;
}

.reader-pages {
    display: grid;
    gap: 24px;
    margin: 0 auto;
    max-width: 980px;
    padding: 28px 16px 52px;
}

.reader-empty {
    background: #ffffff;
    border-radius: 8px;
    color: var(--color-text);
    margin: 28px auto;
    max-width: 760px;
    padding: 24px;
    text-align: center;
}

.reader-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: 260px minmax(0, 1fr);
    margin: 0 auto;
    max-width: 1180px;
    padding: 28px 16px 58px;
}

.reader-chapters {
    align-self: start;
    background: #14211d;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 16px;
    position: sticky;
    top: 16px;
}

.reader-chapters h2 {
    font-size: 1rem;
    margin: 0 0 8px;
}

.reader-chapters a {
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.82);
    padding: 8px 10px;
    text-decoration: none;
}

.reader-chapters a.active,
.reader-chapters a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.reader-chapter-content {
    background: #fbfaf7;
    border-radius: 8px;
    color: var(--color-text);
    margin: 0 auto;
    max-width: 820px;
    padding: 36px;
    width: 100%;
}

.reader-chapter-content h1 {
    margin: 0 0 24px;
}

.reader-html {
    font-size: 1.08rem;
    line-height: 1.8;
}

.capitulo-ebook {
    max-width: 860px;
    margin: 0 auto;
    padding: 50px 24px;
    font-family: Georgia, "Times New Roman", serif;
    color: #2f3433;
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

.reader-watermark {
    pointer-events: none;
    z-index: 1;
}

.capitulo-conteudo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    color: #2f3433;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.capitulo-conteudo p {
    display: block;
    visibility: visible;
    opacity: 1;
    font-size: 20px;
    margin-bottom: 24px;
    color: #2f3433;
}

.capitulo-conteudo.is-loaded {
    display: block;
}

.reader-html img {
    display: block;
    height: auto;
    margin: 20px auto;
    max-width: 100%;
}

.reader-text-navigation {
    align-items: center;
    border-top: 1px solid #e7dfd1;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 18px;
}

.reader-text-nav-link {
    align-items: center;
    color: #315f55 !important;
    display: inline-flex;
    font-size: 0.9rem;
    gap: 6px;
    line-height: 1.3;
    max-width: 42%;
    min-width: 0;
    text-decoration: none !important;
}

.reader-text-nav-next {
    justify-content: flex-end;
    margin-left: auto;
    text-align: right;
}

.reader-text-nav-title {
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-text-nav-group {
    color: #8a7754;
    flex: 0 1 auto;
    font-size: 0.82rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-text-nav-arrow {
    color: #b58a2e;
    flex: 0 0 auto;
    font-size: 1.1rem;
}

.reader-text-nav-link:hover,
.reader-text-nav-link:focus-visible {
    color: #8f5f1e !important;
    text-decoration: underline !important;
}

@media (max-width: 640px) {
    .reader-text-navigation {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .reader-text-nav-link {
        max-width: 100%;
        width: 100%;
    }

    .reader-text-nav-next {
        justify-content: flex-end;
        margin-left: 0;
        text-align: right;
    }
}

.reader-page-image {
    margin: 0;
}

.reader-page-image img {
    background: #ffffff;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    pointer-events: none;
}

.reader-page-image figcaption {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
}

.admin-body {
    background: #f5f6f8;
}

.admin-header {
    min-height: 64px;
    padding: 0 28px;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: calc(100vh - 64px);
}

.admin-menu {
    background: #243b35;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
}

.admin-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.admin-main {
    padding: 32px;
}

.admin-page-title h1 {
    margin: 0;
    font-size: 2rem;
}

.admin-page-title p {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.dashboard-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
}

.dashboard-card span {
    display: block;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.dashboard-card strong {
    display: block;
    margin-top: 8px;
    color: var(--color-text);
    font-size: 2rem;
    line-height: 1.1;
}

.admin-detail-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-section-gap {
    margin-top: 24px;
}

.admin-page-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-button,
.admin-form button,
.admin-actions button {
    border: 0;
    border-radius: 6px;
    background: var(--color-primary);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    text-decoration: none;
}

.admin-button-secondary {
    background: #52605c;
}

.admin-filter-form {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px;
}

.admin-filter-form input,
.admin-filter-form select {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font: inherit;
    min-height: 38px;
    padding: 8px 10px;
}

.admin-filter-form button {
    background: var(--color-primary);
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    min-height: 38px;
    padding: 8px 14px;
}

.admin-filter-form a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.admin-pre {
    background: #f5f6f8;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    max-height: 320px;
    overflow: auto;
    padding: 12px;
    white-space: pre-wrap;
}

.alert {
    border-radius: 6px;
    margin: 0 0 16px;
    padding: 12px 14px;
}

.alert-success {
    background: #e4f4eb;
    color: #1f5a38;
}

.alert-error {
    background: #fde9e6;
    color: #9a2f22;
}

.admin-table-wrap {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow-x: auto;
}

.admin-table {
    border-collapse: collapse;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--color-border);
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background: #f7f8f8;
    font-weight: 700;
}

.admin-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-actions a,
.admin-action-pill {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.admin-page-actions .admin-actions {
    justify-content: flex-end;
}

.admin-actions .admin-button,
.admin-review-actions .admin-button {
    color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.admin-actions .admin-button:hover,
.admin-actions .admin-button:focus-visible,
.admin-review-actions .admin-button:hover,
.admin-review-actions .admin-button:focus-visible {
    color: #ffffff !important;
}

.admin-action-pill {
    align-items: center;
    background: #f5efe0;
    border: 1px solid rgba(207, 166, 82, 0.45);
    border-radius: 999px;
    display: inline-flex;
    min-height: 32px;
    padding: 6px 11px;
    white-space: nowrap;
}

.admin-action-pill-primary,
.admin-actions a.admin-action-pill-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff !important;
    min-width: 78px;
    overflow: visible;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
}

.admin-action-pill:hover,
.admin-action-pill:focus-visible {
    background: #eadbb9;
    color: #1f2a26;
}

.admin-action-pill-primary:hover,
.admin-action-pill-primary:focus-visible,
.admin-actions a.admin-action-pill-primary:hover,
.admin-actions a.admin-action-pill-primary:focus-visible {
    background: #7b5b1d;
    color: #ffffff !important;
}

.admin-ebook-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f5efe0;
    color: #74531e;
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
}

.admin-ebook-status.is-pronto_publicacao {
    background: #fff7df;
    color: #8a641d;
}

.admin-ebook-status.is-publicado {
    background: #edf7f2;
    color: #1f5b47;
}

.admin-ebook-status.is-inativo {
    background: #f0eeee;
    color: #6b6b6b;
}

.admin-ebook-status.is-rascunho {
    background: #eef2f6;
    color: #425466;
}

.admin-actions form {
    margin: 0;
}

.admin-actions button {
    background: #9a2f22;
    min-height: 34px;
}

.admin-form {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    max-width: 720px;
    padding: 20px;
}

.admin-form-wide {
    max-width: 980px;
}

.admin-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font: inherit;
    padding: 10px 12px;
    width: 100%;
}

.admin-form small {
    color: var(--color-muted);
    font-weight: 400;
}

.ebook-cover-thumb {
    aspect-ratio: 3 / 4;
    border-radius: 4px;
    display: block;
    object-fit: cover;
    width: 46px;
}

.admin-review-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: 220px minmax(0, 1fr);
}

.admin-review-cover-card,
.admin-review-panel,
.admin-review-section,
.admin-editorial-decision {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 18px;
}

.admin-review-cover-card img,
.admin-review-cover-empty {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.admin-review-cover-empty {
    align-items: center;
    background: #f4f0e7;
    color: var(--color-muted);
    display: flex;
    justify-content: center;
}

.admin-review-header {
    margin-bottom: 18px;
}

.admin-review-kicker {
    color: var(--color-primary);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.admin-review-header h2,
.admin-review-section h2,
.admin-editorial-decision h2 {
    color: var(--color-text);
    margin: 0 0 8px;
}

.admin-review-details {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.admin-review-details div {
    background: #f8f8f6;
    border: 1px solid rgba(226, 221, 210, 0.75);
    border-radius: 8px;
    padding: 12px;
}

.admin-review-details dt {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.admin-review-details dd {
    color: var(--color-text);
    font-weight: 700;
    margin: 0;
}

.admin-review-contract {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.84rem;
    padding: 5px 9px;
}

.admin-review-contract.is-aprovado {
    background: #e4f4eb;
    color: #1f5a38;
}

.admin-review-contract.is-nao_localizado,
.admin-review-contract {
    background: #f6ead8;
    color: #79541a;
}

.admin-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-review-actions-inline {
    margin-top: 18px;
}

.admin-review-section,
.admin-editorial-decision {
    margin-top: 22px;
}

.admin-editorial-decision {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.admin-editorial-decision p {
    color: var(--color-muted);
    margin: 0;
}

.admin-editorial-decision button {
    background: #e6e0d5;
    border: 0;
    border-radius: 6px;
    color: #80786b;
    cursor: not-allowed;
    min-height: 40px;
    padding: 8px 14px;
}

.admin-summary-groups,
.author-summary-groups {
    display: grid;
    gap: 18px;
}

.admin-summary-form,
.author-summary-form,
.admin-summary-group-card,
.author-summary-card,
.admin-summary-empty {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 16px;
}

.author-summary-form,
.author-summary-card {
    background: #fffdf8;
    border-color: rgba(182, 139, 55, 0.22);
    border-radius: 12px;
}

.admin-summary-form label,
.admin-summary-group-card label,
.author-summary-form label,
.author-summary-card label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.admin-summary-form input,
.admin-summary-group-card input {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font: inherit;
    min-height: 40px;
    padding: 8px 10px;
}

.admin-summary-list,
.author-summary-list {
    display: grid;
    gap: 14px;
}

.admin-summary-group-meta,
.admin-summary-group-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-summary-group-meta,
.author-summary-card .author-book-panel-meta {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.admin-summary-group-actions form,
.author-summary-card form {
    margin: 0;
}

.admin-summary-group-actions button,
.admin-summary-group-card button {
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    min-height: 36px;
    padding: 7px 12px;
}

.admin-summary-group-card button {
    background: var(--color-primary);
    color: #ffffff;
}

.admin-summary-group-actions button {
    background: #52605c;
    color: #ffffff;
}

.admin-summary-group-actions button.is-danger,
.admin-summary-group-actions .is-danger {
    background: #9a2f22;
}

.admin-summary-group-actions button:disabled,
.author-summary-card button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.admin-reader-preview .reader-layout {
    padding-bottom: 38px;
}

.editorial-review-banner {
    background: #f6ead8;
    border: 1px solid rgba(207, 166, 82, 0.4);
    color: #5a4218;
    font-weight: 800;
    text-align: center;
}

.site-header {
    background: rgba(8, 17, 15, 0.96);
    border-bottom: 1px solid rgba(207, 166, 82, 0.22);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(12px);
    min-height: 82px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-brand {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    gap: 12px;
}

.site-brand-logo {
    align-items: center;
    background: #050505;
    border-radius: 8px;
    display: inline-flex;
    height: auto;
    justify-content: center;
    padding: 8px 10px;
}

.site-logo,
.site-brand-logo img {
    display: block;
    height: auto;
    object-fit: contain;
    width: 140px;
}

.header-logo,
.navbar-brand,
.brand {
    align-items: center;
    display: flex;
    gap: 12px;
}

.site-nav {
    align-items: center;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    padding: 7px 9px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover,
.site-nav-cta {
    background: rgba(207, 166, 82, 0.16);
    color: #ffffff;
}

.site-nav a:hover {
    transform: translateY(-1px);
}

.site-nav-cta {
    border: 1px solid rgba(207, 166, 82, 0.45);
}

.site-footer-inner {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.site-footer {
    background: #08110f;
    border-top: 1px solid rgba(207, 166, 82, 0.2);
    color: rgba(255, 255, 255, 0.76);
}

.site-footer-inner div {
    display: grid;
    gap: 4px;
}

.site-footer-inner strong {
    color: #ffffff;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-footer-links a:hover {
    color: #cfa652;
}

.landing-hero {
    background:
        radial-gradient(circle at 82% 16%, rgba(207, 166, 82, 0.18), transparent 28%),
        linear-gradient(135deg, #08110f 0%, #13231f 52%, #0b1513 100%);
    color: #ffffff;
    overflow: hidden;
    padding: 84px 0 72px;
}

.landing-hero-grid {
    align-items: center;
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.landing-kicker {
    color: #cfa652;
    font-weight: 700;
    margin: 0 0 12px;
}

.landing-hero h1 {
    font-size: 3.7rem;
    line-height: 1.04;
    margin: 0;
    max-width: 860px;
}

.landing-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.12rem;
    margin: 22px 0 0;
    max-width: 660px;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.landing-button {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    text-decoration: none;
}

.landing-button-primary {
    background: #cfa652;
    color: #15100a;
}

.landing-button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.landing-hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 28px;
}

.landing-hero-panel img {
    background: #000000;
    border-radius: 8px;
    display: block;
    margin-bottom: 22px;
    max-width: 260px;
    padding: 16px;
    width: 100%;
}

.landing-section {
    padding: 74px 0;
}

.landing-section-soft {
    background: #fdfbf6;
}

.landing-section-heading {
    margin-bottom: 28px;
    max-width: 720px;
}

.landing-section-heading h2,
.landing-soon h2,
.landing-final h2 {
    font-size: 2.35rem;
    line-height: 1.14;
    margin: 0;
}

.featured-book {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    padding: 28px;
}

.featured-book-cover img,
.featured-book-placeholder {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.featured-book-placeholder {
    align-items: center;
    background: #121d19;
    color: #cfa652;
    display: flex;
    font-weight: 700;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.featured-book-content h2 {
    font-size: 2.15rem;
    line-height: 1.18;
    margin: 0 0 10px;
}

.featured-book-content p {
    color: var(--color-muted);
    margin: 0 0 14px;
}

.featured-book-author {
    color: var(--color-primary);
    font-weight: 700;
}

.featured-book-price {
    display: block;
    font-size: 1.45rem;
    margin: 18px 0 4px;
}

.featured-book-price span {
    color: var(--color-muted);
    font-size: 1rem;
    margin-left: 8px;
    text-decoration: line-through;
}

.landing-empty {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 28px;
}

.landing-card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-card,
.landing-steps article {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
}

.landing-card h3,
.landing-steps strong {
    display: block;
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.landing-card p,
.landing-steps p,
.landing-soon p {
    color: var(--color-muted);
    margin: 0;
}

.landing-steps {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-steps span {
    align-items: center;
    background: #13231f;
    border-radius: 50%;
    color: #cfa652;
    display: inline-flex;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    margin-bottom: 14px;
    width: 38px;
}

.landing-soon {
    background: #13231f;
    color: #ffffff;
    padding: 72px 0;
}

.landing-soon p {
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.1rem;
    max-width: 780px;
}

.landing-final {
    background: #f3ead6;
    padding: 72px 0;
    text-align: center;
}

.landing-final h2 {
    margin: 0 auto 24px;
    max-width: 760px;
}

.page-hero {
    background:
        radial-gradient(circle at 84% 12%, rgba(207, 166, 82, 0.14), transparent 28%),
        linear-gradient(135deg, #091210 0%, #14241f 100%);
    color: #ffffff;
    padding: 72px 0 54px;
}

.page-hero h1 {
    font-size: 2.8rem;
    line-height: 1.08;
    margin: 0;
    max-width: 840px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.08rem;
    margin: 16px 0 0;
    max-width: 680px;
}

.page-container {
    padding: 56px 0;
}

.page-card,
.soft-card,
.form-card,
.reader-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(16, 24, 21, 0.08);
}

.page-card,
.form-card {
    padding: 28px;
}

.soft-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.soft-card:hover {
    border-color: rgba(207, 166, 82, 0.45);
    box-shadow: 0 22px 60px rgba(16, 24, 21, 0.12);
    transform: translateY(-3px);
}

.page-card,
.form-card,
.landing-card,
.landing-steps article,
.ebook-card,
.checkout-panel {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.page-card:hover,
.form-card:hover,
.landing-card:hover,
.landing-steps article:hover,
.checkout-panel:hover {
    border-color: rgba(207, 166, 82, 0.38);
    box-shadow: 0 24px 70px rgba(16, 24, 21, 0.11);
    transform: translateY(-2px);
}

.section-title {
    margin-bottom: 24px;
    max-width: 720px;
}

.section-title h2 {
    font-size: 2rem;
    line-height: 1.15;
    margin: 0 0 8px;
}

.section-title p {
    color: var(--color-muted);
    margin: 0;
}

.btn-primary-gold,
.btn-outline-light,
.btn-outline-dark {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.btn-primary-gold {
    background: #cfa652;
    border: 1px solid #cfa652;
    color: #15100a;
    cursor: pointer;
}

.btn-primary-gold:hover,
.btn-outline-light:hover,
.btn-outline-dark:hover {
    transform: translateY(-2px);
}

.btn-primary-gold:hover,
.landing-button-primary:hover,
.store-button:hover {
    box-shadow: 0 12px 28px rgba(207, 166, 82, 0.28);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.34);
    color: #ffffff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline-dark:hover {
    border-color: #cfa652;
    color: #7b5a18;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.fade-in {
    animation: fadeIn 0.55s ease both;
}

.slide-up {
    animation: slideUp 0.55s ease both;
}

.reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal-up {
    transform: translateY(28px);
}

.reveal-left {
    transform: translateX(-32px);
}

.reveal-right {
    transform: translateX(32px);
}

.reveal.active {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 {
    transition-delay: 0.12s;
}

.reveal-delay-2 {
    transition-delay: 0.24s;
}

.reveal-delay-3 {
    transition-delay: 0.36s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-page-wrap {
    display: grid;
    justify-items: center;
}

.form-card {
    max-width: 680px;
    width: 100%;
}

.site-form {
    display: grid;
    gap: 16px;
}

.site-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.site-form input,
.site-form textarea,
.site-form select {
    background: #fffdf9;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.site-form input:focus,
.site-form textarea:focus,
.site-form select:focus {
    border-color: #cfa652;
    box-shadow: 0 0 0 3px rgba(207, 166, 82, 0.15);
    outline: 0;
}

.password-field {
    align-items: center;
    display: flex;
    position: relative;
    width: 100%;
}

.site-form .password-field input {
    padding-right: 52px;
}

.password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #122018;
    cursor: pointer;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    width: 38px;
}

.password-toggle:hover {
    background: rgba(214, 173, 75, 0.16);
    color: #b8892f;
    transform: scale(1.04);
}

.password-toggle.is-visible {
    background: rgba(214, 173, 75, 0.18);
    color: #d6ad4b;
}

.password-toggle svg {
    display: block;
}

.forgot-password-link {
    color: #8a6821;
    font-weight: 800;
    justify-self: start;
    margin-top: -4px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #122018;
    text-decoration: underline;
}

.checkbox-field {
    align-items: flex-start;
    display: flex !important;
    gap: 10px;
}

.checkbox-field input {
    min-height: auto;
    margin-top: 5px;
    width: auto;
}

.form-full {
    grid-column: 1 / -1;
}

.form-note {
    color: var(--color-muted);
    margin: 18px 0 0;
    text-align: center;
}

.form-note a,
.checkbox-field a {
    color: var(--color-primary);
    font-weight: 700;
}

.modern-ebook-grid .ebook-card {
    overflow: hidden;
}

.modern-ebook-grid .ebook-card .btn-primary-gold,
.modern-ebook-grid .ebook-card .btn-outline-dark {
    margin-top: 10px;
}

.premium-detail {
    align-items: start;
}

.premium-detail .ebook-detail-cover img {
    box-shadow: 0 24px 70px rgba(16, 24, 21, 0.18);
}

.order-summary {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.order-summary div {
    background: #fdfbf6;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 14px;
}

.order-summary span {
    color: var(--color-muted);
    display: block;
    font-size: 0.9rem;
}

.order-summary strong {
    display: block;
    font-size: 1.25rem;
    margin-top: 4px;
}

.account-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 760px);
}

.legal-card {
    max-width: 860px;
}

.legal-card h2 {
    margin: 24px 0 8px;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.modern-reader {
    background: #111b18;
}

.modern-reader .reader-toolbar {
    background: #08110f;
    border-bottom: 1px solid rgba(207, 166, 82, 0.22);
}

.reader-card.reader-chapters {
    background: #ffffff;
}

.reader-card.reader-chapters h2 {
    color: var(--color-text);
}

.reader-card.reader-chapters a {
    color: var(--color-text);
}

.reader-card.reader-chapters a.active,
.reader-card.reader-chapters a:hover {
    background: #f3ead6;
    color: #1f2a26;
}

.reader-chapter-content.reader-card {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.library-page {
    background: linear-gradient(180deg, #f7f4ed 0%, #fffdf8 100%);
}

.library-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.compact-library-grid {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    justify-content: center;
}

.library-card {
    background: #ffffff;
    border: 1px solid rgba(226, 221, 210, 0.9);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.compact-library-card {
    max-width: 320px;
    padding: 24px;
    width: 100%;
}

.library-card:hover {
    border-color: rgba(207, 166, 82, 0.45);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.library-cover-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.library-cover {
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    height: 250px;
    max-width: 170px;
    object-fit: cover;
    width: 100%;
}

.library-cover-placeholder {
    align-items: center;
    background: #13231f;
    color: #cfa652;
    display: flex;
    font-weight: 700;
    justify-content: center;
    padding: 18px;
    text-align: center;
}

.library-info {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.library-title {
    font-size: 1.15rem;
    line-height: 1.28;
    margin: 0 0 10px;
}

.library-meta {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin: 0 0 7px;
}

.library-status {
    align-self: flex-start;
    background: #edf7f1;
    border: 1px solid #cfe8da;
    border-radius: 999px;
    color: #1f5a38;
    font-size: 0.86rem;
    font-weight: 700;
    margin-top: 6px;
    padding: 5px 10px;
}

.library-actions {
    margin-top: auto;
    padding-top: 18px;
}

.library-actions .btn-primary-gold {
    width: 100%;
}

.library-empty {
    margin: 0 auto;
    max-width: 680px;
    text-align: center;
}

.library-empty h2 {
    margin: 0 0 8px;
}

.library-empty p {
    color: var(--color-muted);
    margin: 0 0 18px;
}

.account-page {
    background: linear-gradient(180deg, #f7f4ed 0%, #fffdf8 100%);
    margin: 0 auto;
    max-width: 1180px;
    padding: 48px 20px 80px;
}

.account-hero {
    background: linear-gradient(135deg, #07120d 0%, #15251b 60%, #0b0f0c 100%);
    border-radius: 32px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
    color: #fff;
    margin-bottom: 28px;
    overflow: hidden;
    padding: 42px;
    position: relative;
}

.account-hero::after {
    background: radial-gradient(circle, rgba(214, 173, 75, 0.28), transparent 68%);
    content: "";
    height: 320px;
    position: absolute;
    right: -110px;
    top: -120px;
    width: 320px;
}

.account-hero-content {
    position: relative;
    z-index: 2;
}

.account-hero span {
    color: #f1d58a;
    font-weight: 800;
    letter-spacing: 0;
}

.account-hero h1 {
    color: #f1d58a;
    font-size: clamp(2rem, 4vw, 3.6rem);
    margin: 8px 0 12px;
}

.account-hero p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    margin: 0;
}

.account-user-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.account-user-info strong,
.account-user-info span {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(241, 213, 138, 0.18);
    border-radius: 999px;
    color: #fff;
    padding: 8px 12px;
}

.account-summary-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-bottom: 26px;
}

.account-summary-card {
    background: #fff;
    border: 1px solid rgba(18, 32, 24, 0.08);
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.06);
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.account-summary-card:hover {
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.account-summary-card strong {
    color: #122018;
    display: block;
    font-size: 2rem;
    margin-bottom: 4px;
}

.account-summary-card span {
    color: #526158;
    font-weight: 700;
}

.account-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0;
}

.account-dashboard-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.account-panel {
    background: #fff;
    border: 1px solid rgba(18, 32, 24, 0.08);
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
    padding: 26px;
}

.account-panel h2 {
    color: #122018;
    font-size: 1.35rem;
    margin: 0 0 18px;
}

.account-panel h3 {
    color: #122018;
    margin: 0 0 6px;
}

.account-panel p,
.account-panel span,
.account-panel small {
    color: #526158;
    line-height: 1.55;
}

.account-book-feature {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 110px 1fr;
}

.account-book-cover {
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    height: 160px;
    object-fit: cover;
    width: 110px;
}

.account-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.account-reading-list {
    display: grid;
    gap: 14px;
}

.account-reading-item {
    background: #fbf7ee;
    border: 1px solid rgba(214, 173, 75, 0.2);
    border-radius: 18px;
    padding: 16px;
}

.account-reading-item strong {
    color: #122018;
    display: block;
    margin-bottom: 4px;
}

.account-reading-item .btn-outline-dark {
    margin-top: 12px;
}

.account-progress {
    background: #eee6d8;
    border-radius: 999px;
    height: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.account-progress-bar {
    background: linear-gradient(90deg, #d6ad4b, #f1d58a);
    border-radius: 999px;
    height: 100%;
}

.account-orders-list {
    display: grid;
    gap: 12px;
}

.account-order-item {
    background: #fbf7ee;
    border: 1px solid rgba(214, 173, 75, 0.2);
    border-radius: 16px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 14px;
}

.account-order-item strong {
    color: #122018;
    display: block;
}

.account-order-item a {
    color: #7b5a18;
    display: inline-block;
    font-weight: 800;
    margin-top: 8px;
    text-decoration: none;
}

.status-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 6px;
    padding: 6px 10px;
}

.status-pago {
    background: #e4f7ec;
    color: #17643a;
}

.status-pendente {
    background: #fff4d8;
    color: #8a6214;
}

.status-cancelado {
    background: #fde6e6;
    color: #8d2424;
}

.status-analise {
    background: #e7efff;
    color: #234a91;
}

.user-form-page {
    background: linear-gradient(180deg, #f7f4ed 0%, #fffdf8 100%);
    margin: 0 auto;
    max-width: 860px;
    padding: 48px 20px 80px;
}

.user-form-header {
    background: linear-gradient(135deg, #07120d 0%, #15251b 60%, #0b0f0c 100%);
    border-radius: 30px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
    color: #fff;
    margin-bottom: 24px;
    padding: 38px;
}

.user-form-header span {
    color: #f1d58a;
    font-weight: 800;
}

.user-form-header h1 {
    color: #f1d58a;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 8px 0 12px;
}

.user-form-header p {
    color: rgba(255, 255, 255, 0.84);
    margin: 0;
}

.user-form-card {
    background: #fff;
    border: 1px solid rgba(18, 32, 24, 0.08);
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
    padding: 28px;
}

.user-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.readonly-field {
    background: #f3efe7 !important;
    color: #526158 !important;
    cursor: not-allowed;
}

.security-note {
    background: #fbf7ee;
    border: 1px solid rgba(214, 173, 75, 0.24);
    border-radius: 16px;
    color: #6d5b31;
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 18px;
    padding: 14px 16px;
}

.admin-author-thumb,
.admin-current-photo img {
    border-radius: 50%;
    height: 54px;
    object-fit: cover;
    width: 54px;
}

.admin-author-placeholder {
    align-items: center;
    background: #122018;
    border-radius: 50%;
    color: #f1d58a;
    display: inline-flex;
    font-weight: 800;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.admin-current-photo {
    align-items: center;
    display: flex;
    gap: 12px;
}

.author-page {
    background: linear-gradient(180deg, #f7f4ed 0%, #fffdf8 100%);
    margin: 0 auto;
    max-width: 1180px;
    padding: 48px 20px 80px;
}

.author-hero {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(18, 32, 24, 0.08);
    border-radius: 32px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 38px;
    grid-template-columns: 260px 1fr;
    margin-bottom: 34px;
    padding: 38px;
}

.author-photo-wrap {
    display: flex;
    justify-content: center;
}

.author-photo,
.author-placeholder {
    border-radius: 50%;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.16);
    height: 230px;
    width: 230px;
}

.author-photo {
    border: 6px solid #f6efe0;
    object-fit: cover;
}

.author-placeholder {
    align-items: center;
    background: linear-gradient(135deg, #122018, #26392d);
    color: #f1d58a;
    display: flex;
    font-size: 4rem;
    font-weight: 800;
    justify-content: center;
}

.author-breadcrumb {
    color: #7a6b4a;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.author-breadcrumb a,
.featured-book-author a,
.store-book-author a,
.library-meta a,
.landing-kicker a,
.account-panel a {
    color: #b8892f;
    font-weight: 800;
    text-decoration: none;
}

.author-breadcrumb a:hover,
.featured-book-author a:hover,
.store-book-author a:hover,
.library-meta a:hover,
.landing-kicker a:hover,
.account-panel a:hover {
    color: #8f6722;
}

.author-name {
    color: #122018;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.05;
    margin: 0 0 14px;
}

.author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.author-meta span {
    background: #f6efe0;
    border: 1px solid rgba(214, 173, 75, 0.28);
    border-radius: 999px;
    color: #122018;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 12px;
}

.author-layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 330px;
}

.author-bio-card,
.author-side-card,
.author-books-section {
    background: #fff;
    border: 1px solid rgba(18, 32, 24, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    padding: 30px;
}

.author-bio-card h2,
.author-side-card h2,
.author-books-section h2 {
    color: #122018;
    margin-top: 0;
}

.author-bio-card p {
    color: #4f5c55;
    line-height: 1.8;
    font-size: 1.02rem;
    text-align: justify;
    text-justify: inter-word;
}

.author-links-list {
    display: grid;
    gap: 12px;
}

.author-link-item {
    align-items: center;
    background: #fbf7ee;
    border: 1px solid rgba(214, 173, 75, 0.18);
    border-radius: 16px;
    color: #122018;
    display: grid;
    gap: 4px;
    padding: 14px;
    text-decoration: none;
}

.author-link-item:hover {
    background: #f6ead0;
}

.author-link-item span {
    color: #b8892f;
    overflow-wrap: anywhere;
}

.author-link-item:hover span {
    color: #8f6722;
}

.author-books-section {
    margin-top: 28px;
}

.author-books-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
}

.author-book-card {
    background: #fbf7ee;
    border: 1px solid rgba(214, 173, 75, 0.18);
    border-radius: 20px;
    padding: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.author-book-card:hover {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.author-book-cover {
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    display: block;
    height: 175px;
    margin: 0 auto 14px;
    object-fit: cover;
    width: 120px;
}

.author-book-info {
    display: grid;
    gap: 10px;
    text-align: center;
}

.author-book-info h3 {
    color: #122018;
    font-size: 1rem;
    margin: 0;
}
.author-bio-text {
    color: #4f5c55;
    line-height: 1.85;
    font-size: 1.02rem;
    text-align: justify;
    text-justify: inter-word;
    width: 100%;
    max-width: none;
}

.author-bio-text p {
    color: #4f5c55;
    line-height: 1.85;
    font-size: 1.02rem;
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 16px;
}

.author-bio-text br {
    display: block;
    content: "";
    margin-bottom: 8px;
}

.account-reading-actions,
.comment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.comment-modal {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 9999;
}

.comment-modal.is-open {
    display: flex;
}

.comment-modal-backdrop {
    background: rgba(0, 0, 0, 0.68);
    inset: 0;
    position: absolute;
}

.comment-modal-card {
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    max-width: 560px;
    padding: 30px;
    position: relative;
    width: 100%;
    z-index: 2;
}

.comment-modal-card h2 {
    color: #122018;
    margin: 0 0 8px;
}

.comment-modal-card p {
    color: #526158;
    margin: 0 0 18px;
}

.comment-modal-close {
    align-items: center;
    background: #d6ad4b;
    border: 0;
    border-radius: 50%;
    color: #111;
    cursor: pointer;
    display: inline-flex;
    font-size: 28px;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: -14px;
    top: -14px;
    width: 42px;
}

.comment-stars {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
}

.comment-star {
    background: transparent;
    border: 0;
    color: #d5d0c6;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.comment-star.is-active,
.comment-star:hover {
    color: #d6ad4b;
    transform: translateY(-1px);
}

.comment-textarea {
    background: #fffdf9;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    font: inherit;
    margin-top: 7px;
    min-height: 130px;
    padding: 12px;
    resize: vertical;
    width: 100%;
}

.book-comments-section {
    background: #fffdf8;
    padding-bottom: 70px;
}

.book-comments-section h2 {
    color: #122018;
    margin: 0 0 20px;
}

.comments-summary {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(18, 32, 24, 0.08);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 18px;
}

.rating-stars {
    color: #d6ad4b;
    font-size: 1.25rem;
    letter-spacing: 0;
}

.comment-list {
    display: grid;
    gap: 16px;
}

.comment-card {
    background: #fff;
    border: 1px solid rgba(18, 32, 24, 0.08);
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.06);
    padding: 20px;
}

.comment-header {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.comment-user {
    color: #122018;
    display: block;
}

.comment-date {
    color: #526158;
    font-size: 0.9rem;
}

.comment-text {
    color: #4f5c55;
    line-height: 1.7;
    margin: 0;
}

.compact-page-hero {
    padding: 62px 0 46px;
}

.eyebrow {
    color: #cfa652;
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.ebooks-showcase {
    background: linear-gradient(180deg, #f7f4ed 0%, #fffdf8 100%);
}

.ebooks-grid,
.compact-ebooks-grid {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    justify-content: center;
}

.compact-ebook-card {
    background: #ffffff;
    border: 1px solid rgba(226, 221, 210, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    max-width: 320px;
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    width: 100%;
}

.compact-ebook-card:hover {
    border-color: rgba(207, 166, 82, 0.45);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.13);
    transform: translateY(-6px);
}

.ebook-cover-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.ebook-cover {
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    display: block;
    height: 250px;
    margin: 0 auto;
    max-width: 170px;
    object-fit: cover;
    width: 100%;
}

.ebook-cover-placeholder {
    align-items: center;
    background: #13231f;
    color: #cfa652;
    display: flex;
    font-weight: 700;
    justify-content: center;
    padding: 18px;
    text-align: center;
}

.ebook-info {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.ebook-title {
    font-size: 1.15rem;
    line-height: 1.28;
    margin: 0 0 8px;
}

.ebook-author {
    color: var(--color-primary);
    font-weight: 700;
    margin: 0 0 8px;
}

.ebook-description {
    color: var(--color-muted);
    display: -webkit-box;
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0 0 12px;
    overflow: hidden;
}

.ebook-price {
    display: block;
    font-size: 1.2rem;
    margin: auto 0 14px;
}

.ebook-price span {
    color: var(--color-muted);
    font-size: 0.92rem;
    margin-left: 8px;
    text-decoration: line-through;
}

.ebook-actions {
    margin-top: auto;
}

.ebook-actions .btn-primary-gold {
    width: 100%;
}

.ebooks-empty {
    margin: 0 auto;
    max-width: 680px;
    text-align: center;
}

.ebooks-empty h2 {
    margin: 0 0 8px;
}

.ebooks-empty p {
    color: var(--color-muted);
    margin: 0;
}

.store-hero {
    background: linear-gradient(135deg, #07120d 0%, #15251b 64%, #0b0f0c 100%);
    color: #ffffff;
    padding: 62px 0 44px;
}

.store-hero h1 {
    font-size: 3rem;
    line-height: 1.08;
    margin: 0 0 14px;
}

.store-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    margin: 0;
    max-width: 680px;
}

.store-page {
    background: #fbf8ef;
    padding: 56px 0 72px;
}

.store-grid {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(255px, 290px));
    justify-content: center;
}

.store-book-card {
    background: #ffffff;
    border: 1px solid rgba(18, 32, 24, 0.08);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 560px;
    padding: 16px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.store-book-card:hover {
    border-color: rgba(214, 173, 75, 0.32);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.11);
    transform: translateY(-6px);
}

.store-book-top {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-height: 26px;
}

.store-book-type {
    color: #415169;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.store-book-discount {
    background: #122018;
    border-radius: 4px;
    color: #f1d58a;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 8px;
    text-transform: uppercase;
}

.store-book-cover-area {
    align-items: center;
    display: flex;
    height: 220px;
    justify-content: center;
    margin: 12px 0 14px;
}

.store-book-cover {
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    height: 210px;
    max-width: 145px;
    object-fit: cover;
    width: 100%;
}

.store-book-cover-placeholder {
    align-items: center;
    background: #122018;
    color: #f1d58a;
    display: flex;
    font-weight: 800;
    justify-content: center;
    padding: 14px;
    text-align: center;
}

.store-book-badges {
    display: grid;
    gap: 7px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 14px;
}

.store-book-badges span {
    background: #f5ead1;
    border-radius: 4px;
    color: #122018;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 7px 6px;
    text-align: center;
    text-transform: uppercase;
}

.store-book-body {
    flex: 1;
}

.store-book-body h2 {
    color: #1b2821;
    display: -webkit-box;
    font-size: 1rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.35;
    margin: 0 0 8px;
    overflow: hidden;
}

.store-book-author {
    color: #69736d;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.store-book-description {
    color: #6c746f;
    display: -webkit-box;
    font-size: 0.86rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.45;
    margin: 0;
    overflow: hidden;
}

.store-book-price {
    margin: 14px 0 12px;
}

.price-old {
    color: #888888;
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
    text-decoration: line-through;
}

.price-label {
    color: #555555;
    display: block;
    font-size: 0.85rem;
}

.store-book-price strong {
    color: #111111;
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
}

.store-book-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 82px;
    margin-top: auto;
}

.btn-details,
.btn-buy {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-details {
    background: #ffffff;
    border: 1px solid rgba(18, 32, 24, 0.18);
    color: #314238;
}

.btn-buy {
    background: #d6ad4b;
    color: #111111;
}

.btn-details:hover,
.btn-buy:hover {
    filter: brightness(1.03);
    transform: translateY(-2px);
}

.about-page {
    background: #fbf8ef;
}

.about-hero {
    background: linear-gradient(135deg, #07120d 0%, #15251b 55%, #0b0f0c 100%);
    color: #ffffff;
    overflow: hidden;
    padding: 90px 20px;
    position: relative;
}

.about-hero::after {
    background: radial-gradient(circle, rgba(214, 173, 75, 0.28), transparent 65%);
    content: "";
    height: 420px;
    position: absolute;
    right: -120px;
    top: -140px;
    width: 420px;
}

.about-hero-content {
    margin: 0 auto;
    max-width: 980px;
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-size: 4.2rem;
    line-height: 1.05;
    margin: 12px 0 18px;
}

.about-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.2rem;
    max-width: 760px;
}

.about-section {
    margin: 0 auto;
    max-width: 1120px;
    padding: 70px 20px;
}

.about-section-soft {
    background: #fffdf8;
    max-width: none;
}

.about-section-soft > * {
    margin-left: auto;
    margin-right: auto;
    max-width: 1120px;
}

.about-grid {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.about-grid-reverse {
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
}

.about-card {
    background: #ffffff;
    border: 1px solid rgba(214, 173, 75, 0.18);
    border-radius: 28px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.08);
    padding: 38px;
}

.about-card h2,
.about-final h2,
.about-cta h2 {
    font-size: 2.25rem;
    line-height: 1.16;
    margin: 0 0 16px;
}

.about-card p,
.about-final p,
.about-cta p {
    color: var(--color-muted);
    font-size: 1.05rem;
    margin: 0 0 16px;
}

.about-card p:last-child,
.about-final p:last-child {
    margin-bottom: 0;
}

.about-highlight {
    background: linear-gradient(135deg, #fff8e6, #ffffff);
    border-left: 5px solid #d6ad4b;
    border-radius: 20px;
    color: #1c2a22;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    padding: 26px;
}

.about-quote {
    color: #f1d58a;
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 24px;
    max-width: 820px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.about-tag {
    background: #f6efe0;
    border: 1px solid rgba(214, 173, 75, 0.35);
    border-radius: 999px;
    color: #1d2a22;
    font-weight: 600;
    padding: 10px 16px;
}

.about-mission-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 28px;
}

.about-mission-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 22px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.07);
    padding: 26px;
}

.about-mission-card strong {
    display: block;
    margin-bottom: 8px;
}

.about-mission-card span {
    color: var(--color-muted);
}

.about-final {
    background: #0d1812;
    border-radius: 32px;
    color: #ffffff;
    overflow: hidden;
    padding: 46px;
    position: relative;
}

.about-final::after {
    background: radial-gradient(circle, rgba(214, 173, 75, 0.22), transparent 68%);
    content: "";
    height: 360px;
    position: absolute;
    right: -120px;
    top: -140px;
    width: 360px;
}

.about-final > * {
    position: relative;
    z-index: 2;
}

.about-final h2,
.about-final strong {
    color: #f1d58a;
}

.about-final p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 860px;
}

.about-cta {
    background: linear-gradient(180deg, #fbf7ee 0%, #f4ecdd 100%);
    padding: 80px 20px 95px;
}

.about-cta-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 173, 75, 0.28);
    border-radius: 34px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    max-width: 1120px;
    padding: 46px;
}

.about-cta-content {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.about-cta-text-block {
    min-width: 0;
}

.about-cta-title {
    color: #122018;
    font-size: 3.15rem;
    line-height: 1.08;
    margin: 0 0 16px;
}

.about-cta-text {
    color: #4c5a51;
    font-size: 1.1rem;
    line-height: 1.75;
    margin: 0;
    max-width: 690px;
}

.about-cta-note {
    color: #6d5b31;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.7;
    margin: 14px 0 0;
    max-width: 690px;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.about-cta-secondary {
    border-color: rgba(18, 32, 24, 0.22);
    color: #122018;
}

.about-cta-side {
    display: grid;
    gap: 14px;
}

.about-cta-mini-card {
    background: #ffffff;
    border: 1px solid rgba(18, 32, 24, 0.08);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    padding: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-cta-mini-card:hover {
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.10);
    transform: translateY(-4px);
}

.about-cta-mini-card h3 {
    color: #122018;
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.about-cta-mini-card p {
    color: #526158;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

.btn-whatsapp {
    align-items: center;
    background: #25d366;
    border-radius: 999px;
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.25);
    color: #092014;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 13px 22px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-whatsapp:hover {
    box-shadow: 0 18px 42px rgba(37, 211, 102, 0.35);
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.cover-modal {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 9999;
}

.cover-modal.is-open {
    display: flex;
}

.cover-modal-backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    inset: 0;
    position: absolute;
}

.cover-modal-content {
    display: flex;
    justify-content: center;
    max-width: 420px;
    position: relative;
    width: 100%;
    z-index: 2;
}

.cover-modal-content img {
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    max-height: 86vh;
    max-width: 100%;
}

.cover-modal-close {
    background: #d6ad4b;
    border: 0;
    border-radius: 50%;
    color: #111111;
    cursor: pointer;
    font-size: 28px;
    height: 42px;
    line-height: 1;
    position: absolute;
    right: -18px;
    top: -18px;
    width: 42px;
}

@media (max-width: 760px) {
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-menu {
        flex-direction: row;
        overflow-x: auto;
    }

    .admin-menu a {
        white-space: nowrap;
    }

    .admin-main {
        padding: 20px 16px;
    }

    .admin-page-actions,
    .admin-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-review-layout,
    .admin-review-details {
        grid-template-columns: 1fr;
    }

    .admin-review-cover-card {
        max-width: 240px;
    }

    .admin-editorial-decision {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header-inner,
    .store-section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .ebook-detail-grid {
        grid-template-columns: 1fr;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .reader-layout {
        grid-template-columns: 1fr;
    }

    .reader-chapters {
        position: static;
    }

    .reader-chapter-content {
        padding: 24px 18px;
    }

    .site-brand span:last-child {
        display: none;
    }

    .site-logo {
        width: 115px;
    }

    .site-header {
        min-height: 72px;
    }

    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-hero {
        padding: 58px 0 48px;
    }

    .landing-hero-grid,
    .featured-book,
    .landing-card-grid,
    .landing-steps {
        grid-template-columns: 1fr;
    }

    .landing-hero h1 {
        font-size: 2.35rem;
    }

    .landing-section-heading h2,
    .landing-soon h2,
    .landing-final h2 {
        font-size: 1.8rem;
    }

    .landing-section,
    .landing-soon,
    .landing-final {
        padding: 52px 0;
    }

    .featured-book {
        padding: 18px;
    }

    .landing-button {
        width: 100%;
    }

    .page-hero {
        padding: 52px 0 42px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-card,
    .form-card {
        padding: 20px;
    }

    .site-form-grid {
        grid-template-columns: 1fr;
    }

    .button-row,
    .button-row a,
    .button-row button,
    .btn-primary-gold,
    .btn-outline-dark {
        width: 100%;
    }

    .account-page {
        padding: 34px 16px 60px;
    }

    .account-hero {
        border-radius: 26px;
        padding: 30px 24px;
    }

    .account-dashboard-grid,
    .account-book-feature {
        grid-template-columns: 1fr;
    }

    .account-book-cover {
        margin: 0 auto;
    }

    .account-order-item {
        flex-direction: column;
    }

    .account-panel-actions a,
    .account-quick-actions a,
    .account-reading-item a,
    .account-reading-actions button,
    .user-form-actions a,
    .user-form-actions button {
        justify-content: center;
        width: 100%;
    }

    .user-form-page {
        padding: 34px 16px 60px;
    }

    .user-form-header,
    .user-form-card {
        border-radius: 24px;
        padding: 24px;
    }

    .author-page {
        padding: 34px 16px 60px;
    }

    .author-hero,
    .author-layout {
        grid-template-columns: 1fr;
    }

    .author-hero {
        border-radius: 26px;
        padding: 28px 20px;
        text-align: center;
    }

    .author-meta {
        justify-content: center;
    }

    .author-photo,
    .author-placeholder {
        height: 180px;
        width: 180px;
    }

    .author-placeholder {
        font-size: 3rem;
    }

    .author-books-grid {
        grid-template-columns: 1fr;
    }

    .comment-modal {
        padding: 18px;
    }

    .comment-modal-card {
        border-radius: 22px;
        padding: 24px;
    }

    .comment-header,
    .comments-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .library-grid {
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .compact-library-grid {
        grid-template-columns: minmax(0, 320px);
    }

    .compact-ebooks-grid {
        grid-template-columns: minmax(0, 320px);
    }

    .store-grid {
        grid-template-columns: minmax(0, 290px);
    }

    .store-hero h1 {
        font-size: 2.1rem;
    }

    .store-book-actions {
        grid-template-columns: 1fr;
    }

    .library-card {
        padding: 18px;
    }

    .library-cover,
    .ebook-cover {
        height: 240px;
        max-width: 165px;
    }

    .cover-modal {
        padding: 18px;
    }

    .cover-modal-close {
        right: -8px;
        top: -16px;
    }

    .about-hero {
        padding: 70px 18px;
    }

    .about-hero h1 {
        font-size: 2.45rem;
    }

    .about-section {
        padding: 48px 18px;
    }

    .about-grid,
    .about-grid-reverse {
        grid-template-columns: 1fr;
    }

    .about-card,
    .about-final {
        border-radius: 24px;
        padding: 28px;
    }

    .about-card h2,
    .about-final h2,
    .about-cta h2 {
        font-size: 1.75rem;
    }

    .about-quote {
        font-size: 1.45rem;
    }

    .about-cta {
        padding: 58px 18px 76px;
    }

    .about-cta-card {
        border-radius: 26px;
        padding: 30px 24px;
    }

    .about-cta-content {
        grid-template-columns: 1fr;
    }

    .about-cta-title {
        font-size: 2rem;
    }

    .about-cta-actions a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .fade-in,
    .slide-up {
        animation: none !important;
    }
}

.home-flash-wrap {
    padding-top: 18px;
}

.publish-cta-section {
    padding: 72px 20px;
}

.publish-cta-card {
    align-items: center;
    background: linear-gradient(135deg, #0b1510 0%, #17251c 55%, #0d0f0d 100%);
    border: 1px solid rgba(214, 173, 75, 0.25);
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
    color: #ffffff;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 auto;
    max-width: 1120px;
    padding: 46px;
}

.publish-cta-title {
    color: #f1d58a;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin: 0 0 14px;
}

.publish-cta-text {
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    max-width: 740px;
}

.publish-cta-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-publish-email {
    align-items: center;
    background: #d6ad4b;
    border-radius: 999px;
    box-shadow: 0 14px 32px rgba(214, 173, 75, 0.24);
    color: #111;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    padding: 14px 24px;
    text-decoration: none;
    transition: filter 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.btn-publish-email:hover {
    box-shadow: 0 18px 42px rgba(214, 173, 75, 0.32);
    color: #111;
    filter: brightness(1.04);
    text-decoration: none;
    transform: translateY(-2px);
}

.newsletter-section {
    background: linear-gradient(180deg, #fbf7ee 0%, #fffdf8 100%);
    padding: 76px 20px;
}

.newsletter-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(214, 173, 75, 0.24);
    border-radius: 34px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) 420px;
    margin: 0 auto;
    max-width: 1120px;
    padding: 44px;
}

.newsletter-content h2 {
    color: #122018;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin: 0 0 16px;
}

.newsletter-content p {
    color: #526158;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.newsletter-benefits {
    color: #122018;
    display: grid;
    font-weight: 700;
    gap: 10px;
    margin-top: 22px;
}

.newsletter-benefits span::before {
    color: #d6ad4b;
    content: "•";
    margin-right: 8px;
}

.newsletter-form {
    background: #fbf7ee;
    border: 1px solid rgba(214, 173, 75, 0.2);
    border-radius: 26px;
    padding: 26px;
}

.newsletter-form .form-group {
    margin-bottom: 14px;
}

.newsletter-form label {
    color: #122018;
    display: block;
    font-weight: 800;
    margin-bottom: 6px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"],
.newsletter-form input[type="tel"] {
    border: 1px solid rgba(18, 32, 24, 0.14);
    border-radius: 14px;
    font-size: 1rem;
    min-height: 46px;
    padding: 0 14px;
    width: 100%;
}

.newsletter-consent {
    align-items: flex-start;
    color: #526158;
    display: flex !important;
    font-size: 0.92rem;
    font-weight: 400 !important;
    gap: 10px;
    line-height: 1.45;
    margin: 14px 0 18px !important;
}

.newsletter-consent input {
    margin-top: 4px;
}

.newsletter-submit {
    background: #d6ad4b;
    border: 0;
    border-radius: 999px;
    color: #111111;
    cursor: pointer;
    font-weight: 900;
    min-height: 48px;
    transition: filter 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.newsletter-submit:hover {
    filter: brightness(1.04);
    transform: translateY(-2px);
}

.store-book-actions,
.ebook-actions,
.book-actions,
.featured-book-actions,
.library-book-actions,
.account-book-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.library-unavailable {
    color: #526158;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 700;
    min-height: 42px;
    align-items: center;
}

.site-footer {
    background: #07120d;
    border: 0;
    color: rgba(255, 255, 255, 0.82);
    padding: 64px 20px 28px;
}

.footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr);
    margin: 0 auto;
    max-width: 1180px;
    align-items: start;
}

.footer-logo {
    display: block;
    height: auto;
    margin-bottom: 22px;
    max-width: 190px;
}

.footer-about {
    line-height: 1.75;
    margin: 0 0 12px;
    max-width: 620px;
}

.footer-links-title {
    color: #f1d58a;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-author-link:hover {
    color: #f1d58a;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
    margin: 38px auto 0;
    max-width: 1180px;
    padding-top: 22px;
}

@media (max-width: 900px) {
    .publish-cta-card,
    .newsletter-card {
        border-radius: 28px;
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .publish-cta-actions {
        justify-content: flex-start;
    }

    .publish-cta-actions a {
        width: 100%;
    }
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }


    .footer-logo {
        max-width: 170px;
    }
}
@media (min-width: 861px) {
    .footer-links-column {
        justify-self: end;
        min-width: 220px;
    }
}
.flash-message {
    transition: opacity .4s ease, transform .4s ease;
}

.flash-message.flash-hide {
    opacity: 0;
    transform: translateY(-8px);
}
.alert {
    transition: opacity .4s ease, transform .4s ease;
}
.flash-container:empty,
.alert-container:empty,
.messages:empty,
.site-messages:empty {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
}
.footer-credit {
    display: inline-block;
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-credit a {
    color: #f1d58a;
    font-weight: 800;
    text-decoration: none;
}

.footer-credit a:hover {
    color: #d6ad4b;
    text-decoration: underline;
}
.book-share-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.book-share-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: 1px solid #25d366;
}

.book-share-icon svg {
    display: block;
    width: 17px;
    height: 17px;
}

.book-share-icon:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.25);
}

/* Responsive public navigation: desktop preserved, mobile isolated */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
}

.site-logo img {
    height: 48px;
    width: auto;
    max-width: 150px;
    display: block;
    object-fit: contain;
}

.site-logo span {
    color: #ffffff;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.mobile-menu-toggle,
.mobile-nav,
.mobile-bottom-nav {
    display: none;
}

@media (min-width: 1025px) {
    .site-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 78px;
    }

    .site-logo {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        line-height: 1;
    }

    .site-logo img {
        display: block;
        height: 52px;
        width: auto;
    }

    .site-nav {
        display: flex;
        align-items: center;
        gap: 26px;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .site-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        line-height: 1;
        margin: 0;
        padding-top: 0;
        padding-bottom: 0;
        transform: none;
    }

    .site-nav a:hover {
        transform: none;
    }

    .site-nav .btn,
    .site-nav .nav-button,
    .site-nav .btn-outline,
    .site-nav .site-nav-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        line-height: 1;
    }
}

@media (max-width: 1024px) {
    .site-header-inner {
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
    }

    .site-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        width: 44px;
        height: 44px;
        position: relative;
        z-index: 1002;
        border: 1px solid rgba(214, 173, 75, 0.24);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        background: #f1d58a;
        border-radius: 999px;
        transition: transform .25s ease, opacity .25s ease;
    }

    .site-logo {
        width: auto;
    }

    .site-logo img {
        height: 42px;
        max-width: 132px;
    }

    .mobile-nav {
        position: relative;
        z-index: 1001;
        display: grid;
        gap: 4px;
        max-height: 0;
        overflow: hidden;
        background: #0b1510;
        border-top: 1px solid rgba(214, 173, 75, 0.16);
        transition: max-height .3s ease;
    }

    .mobile-nav.is-open {
        max-height: 600px;
    }

    .mobile-nav a {
        color: rgba(255, 255, 255, 0.88);
        text-decoration: none;
        padding: 15px 22px;
        font-weight: 800;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mobile-nav a:hover {
        color: #f1d58a;
        background: rgba(255, 255, 255, 0.04);
    }

    .site-header.is-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.is-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .landing-hero-grid,
    .featured-book,
    .ebook-detail-grid,
    .author-hero,
    .account-book-feature,
    .newsletter-card,
    .publish-cta-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 78px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    h1 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .btn,
    button,
    input,
    select,
    textarea {
        max-width: 100%;
    }

    .site-logo span {
        display: none;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 999;
        background: rgba(7, 18, 13, 0.96);
        border: 1px solid rgba(214, 173, 75, 0.24);
        border-radius: 22px;
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: hidden;
        backdrop-filter: blur(12px);
    }

    .mobile-bottom-nav a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: .76rem;
        font-weight: 800;
        display: grid;
        place-items: center;
        gap: 2px;
        min-width: 0;
        padding: 10px 4px;
        text-align: center;
        white-space: nowrap;
    }

    .mobile-bottom-nav a span {
        color: #f1d58a;
        font-size: .7rem;
        line-height: 1;
        text-transform: uppercase;
        letter-spacing: 0;
    }

    .mobile-bottom-nav a:hover,
    .mobile-bottom-nav a.is-active {
        color: #f1d58a;
        background: rgba(255, 255, 255, 0.05);
    }

    .landing-card-grid,
    .landing-steps,
    .account-summary-grid,
    .library-grid,
    .store-grid,
    .author-books-grid {
        grid-template-columns: 1fr;
    }

    .page-container,
    .landing-section,
    .newsletter-section,
    .publish-cta-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-card,
    .form-card,
    .account-panel,
    .library-card,
    .store-book-card,
    .about-card,
    .author-bio-card,
    .author-side-card {
        max-width: 100%;
    }

    .admin-table-wrap,
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 720px;
    }

    .reader-layout {
        grid-template-columns: 1fr;
        padding: 20px 12px 90px;
    }

    .reader-chapters {
        position: static;
    }

    .reader-chapter-content {
        padding: 20px 14px;
    }

    .capitulo-ebook {
        padding: 28px 12px;
    }

    .capitulo-conteudo p {
        font-size: 18px;
    }
}
.category-explorer {
    margin: 0 0 34px;
}

.category-explorer .section-kicker {
    display: block;
    margin-bottom: 12px;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #b58a2e;
}

.category-filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.category-filter-chip,
.category-filter-bar .category-filter-chip,
a.category-filter-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(181, 138, 46, .45);
    border-radius: 999px;
    background: #fffdf8;
    color: #203128 !important;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: .2s ease;
}

.category-filter-chip:hover,
.category-filter-chip:focus-visible,
.category-filter-bar .category-filter-chip:hover,
.category-filter-bar .category-filter-chip:focus-visible,
a.category-filter-chip:hover,
a.category-filter-chip:focus-visible {
    border-color: #b58a2e;
    background: #f8efd9;
    color: #122018 !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    outline: none;
}

.category-filter-chip.is-active,
.category-filter-bar .category-filter-chip.is-active,
a.category-filter-chip.is-active {
    border-color: #b58a2e;
    background: #b58a2e;
    color: #fff !important;
    text-decoration: none !important;
}

.book-category-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 14px 0 0;
}

.book-category-label {
    color: #68736d;
    font-size: .78rem;
    font-weight: 700;
}

.book-category-tag,
.book-category-meta .book-category-tag,
a.book-category-tag {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border: 1px solid rgba(181, 138, 46, .55);
    border-radius: 999px;
    background: #f8efd9;
    color: #6c4c0d !important;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: .2s ease;
}

.book-category-tag:hover,
.book-category-tag:focus-visible,
.book-category-meta .book-category-tag:hover,
.book-category-meta .book-category-tag:focus-visible,
a.book-category-tag:hover,
a.book-category-tag:focus-visible {
    border-color: #b58a2e;
    background: #b58a2e;
    color: #fff !important;
    text-decoration: none !important;
    outline: none;
}

.category-back-link,
a.category-back-link {
    display: inline-flex;
    margin-top: 14px;
    color: #d6ad4b !important;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none !important;
}

.category-back-link:hover,
.category-back-link:focus-visible,
a.category-back-link:hover,
a.category-back-link:focus-visible {
    color: #f1d58a !important;
    text-decoration: underline !important;
    outline: none;
}

@media (max-width: 768px) {
    .category-filter-bar {
        margin-right: -16px;
        padding-right: 16px;
    }
}
.category-hero-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #f1d58a;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.authors-hero {
    background: linear-gradient(135deg, #15251f 0%, #243b31 58%, #4c3b18 100%);
}

.authors-page {
    background: #fbf7ed;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.author-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    border: 1px solid rgba(181, 138, 46, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    padding: 24px;
    box-shadow: 0 18px 40px rgba(31, 41, 33, .08);
}

.author-card-photo-wrap {
    margin-bottom: 18px;
}

.author-card-photo,
.author-card-placeholder,
.ebook-author-avatar,
.ebook-author-avatar img,
.ebook-author-avatar span {
    width: 82px;
    height: 82px;
    border-radius: 50%;
}

.author-card-photo {
    display: block;
    object-fit: cover;
    border: 3px solid rgba(181, 138, 46, .28);
}

.author-card-placeholder,
.ebook-author-avatar span {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #203128, #b58a2e);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
}

.author-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.author-card-name {
    margin: 0 0 6px;
    color: #1d2d25;
    font-size: 1.2rem;
    line-height: 1.25;
}

.author-card-ministry {
    margin: 0 0 12px;
    color: #7a6330;
    font-size: .9rem;
    font-weight: 700;
}

.author-card-bio,
.ebook-author-bio {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #5f675f;
    line-height: 1.6;
}

.author-card-bio {
    -webkit-line-clamp: 3;
    min-height: 4.8em;
    margin: 0 0 14px;
}

.author-card-count {
    margin: auto 0 16px;
    color: #365244;
    font-size: .88rem;
    font-weight: 800;
}

.author-card-link,
.author-detail-link,
.ebook-author-cta,
.ebook-author-name a {
    color: #6c4c0d !important;
    text-decoration: none !important;
}

.author-card-link,
.ebook-author-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    border: 1px solid rgba(181, 138, 46, .55);
    border-radius: 999px;
    background: #b58a2e;
    padding: 0 16px;
    color: #fff !important;
    font-size: .9rem;
    font-weight: 800;
}

.author-card-link:hover,
.author-card-link:focus-visible,
.author-detail-link:hover,
.author-detail-link:focus-visible,
.ebook-author-cta:hover,
.ebook-author-cta:focus-visible,
.ebook-author-name a:hover,
.ebook-author-name a:focus-visible {
    color: #203128 !important;
    text-decoration: none !important;
    outline: none;
}

.author-card-link:hover,
.author-card-link:focus-visible,
.ebook-author-cta:hover,
.ebook-author-cta:focus-visible {
    border-color: #203128;
    background: #f1d58a;
}

.author-detail-link {
    display: inline-flex;
    margin: 0 0 12px;
    color: #b58a2e !important;
    font-size: .92rem;
    font-weight: 800;
}

.store-book-author .author-detail-link,
.featured-book-author .author-detail-link,
.landing-kicker .author-detail-link {
    color: #7a5817 !important;
    text-decoration: none !important;
}

.store-book-author .author-detail-link:hover,
.featured-book-author .author-detail-link:hover,
.landing-kicker .author-detail-link:hover {
    color: #203128 !important;
    text-decoration: none !important;
}

.ebook-author-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    margin: 24px 0 18px;
    border: 1px solid rgba(181, 138, 46, .22);
    border-radius: 8px;
    background: #fffdf8;
    padding: 18px;
    box-shadow: 0 14px 32px rgba(31, 41, 33, .07);
}

.ebook-author-avatar {
    overflow: hidden;
    border: 3px solid rgba(181, 138, 46, .28);
}

.ebook-author-avatar img {
    display: block;
    object-fit: cover;
}

.ebook-author-content {
    min-width: 0;
}

.ebook-author-kicker {
    display: block;
    margin-bottom: 4px;
    color: #b58a2e;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ebook-author-name {
    margin: 0 0 6px;
    font-size: 1.1rem;
    line-height: 1.25;
}

.ebook-author-bio {
    -webkit-line-clamp: 3;
    margin: 8px 0 12px;
}

@media (max-width: 980px) {
    .authors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .authors-grid,
    .ebook-author-card {
        grid-template-columns: 1fr;
    }

    .author-card {
        padding: 20px;
    }

    .ebook-author-card {
        text-align: left;
    }
}

.publish-form-section {
    padding: 48px 0 72px;
    background: #f7f3ea;
}

.publish-form-card {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px;
    background: #fffdf8;
    border: 1px solid rgba(182, 139, 55, .24);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(18, 32, 24, .08);
}

.publish-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.publish-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 18px;
    color: #1b2a22;
    font-size: .92rem;
    font-weight: 700;
}

.publish-form-field input,
.publish-form-field select,
.publish-form-field textarea {
    width: 100%;
    border: 1px solid #ddd2bd;
    border-radius: 8px;
    background: #fff;
    color: #17241d;
    font: inherit;
    font-weight: 500;
    padding: 13px 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.publish-form-field textarea {
    resize: vertical;
    min-height: 130px;
}

.publish-form-field input:focus,
.publish-form-field select:focus,
.publish-form-field textarea:focus {
    border-color: #b68b37;
    box-shadow: 0 0 0 3px rgba(214, 173, 75, .2);
}

.publish-form-help {
    color: #6f786f;
    font-size: .84rem;
    font-weight: 500;
    line-height: 1.5;
}

.publish-lgpd {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0 24px;
    color: #4d584f;
    font-size: .92rem;
    line-height: 1.5;
}

.publish-lgpd input {
    margin-top: 4px;
    accent-color: #b68b37;
}

.publish-success {
    max-width: 960px;
    margin: 0 auto 20px;
    padding: 16px 18px;
    border: 1px solid rgba(47, 111, 94, .28);
    border-radius: 8px;
    background: #edf7f2;
    color: #1f5b47;
    font-weight: 700;
}

.publish-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.publish-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 220px;
    padding: 0 28px;
}

.admin-request-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f5eddc;
    color: #74531e;
    font-size: .82rem;
    font-weight: 700;
}

.admin-request-detail {
    max-width: 1180px;
}

.admin-request-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
    gap: 22px;
}

.admin-request-panel {
    background: #fff;
    border: 1px solid #e8e1d4;
    border-radius: 8px;
    padding: 22px;
}

.admin-request-panel h2 {
    margin: 0 0 18px;
    color: #122018;
    font-size: 1.1rem;
}

.admin-request-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.admin-request-list div {
    padding-bottom: 14px;
    border-bottom: 1px solid #f0ebe2;
}

.admin-request-list dt {
    margin: 0 0 4px;
    color: #6f786f;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-request-list dd {
    margin: 0;
    color: #1d2a27;
    line-height: 1.6;
}

.admin-request-meta {
    margin-top: 20px;
    font-size: .9rem;
}

@media (max-width: 860px) {
    .publish-form-card {
        padding: 24px;
    }

    .publish-form-grid,
    .admin-request-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .publish-form-section {
        padding: 32px 0 52px;
    }

    .publish-form-card {
        padding: 20px;
    }
}

.author-panel-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: #f7f3ea;
    color: #17241d;
}

.author-panel-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 28px 22px;
    background: #132019;
    color: #f8f0dc;
}

.author-panel-sidebar-top {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 26px;
}

.author-panel-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    min-height: auto;
    margin-bottom: 0;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
}

.author-panel-sidebar .author-panel-brand:hover,
.author-panel-sidebar .author-panel-brand:focus-visible {
    background: transparent;
    color: inherit;
}

.author-panel-brand-mark {
    align-items: center;
    background: #fffdf8;
    border: 1px solid rgba(245, 213, 138, .45);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    display: inline-flex;
    flex: 0 0 58px;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.author-panel-brand-mark img {
    display: block;
    height: auto;
    margin: 0;
    max-width: 44px;
}

.author-panel-brand-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.author-panel-brand-copy strong {
    color: #fff8e8;
    font-size: 1rem;
    line-height: 1.15;
}

.author-panel-brand-copy small {
    color: rgba(245, 213, 138, .78);
    font-size: .78rem;
    font-weight: 700;
}

.author-panel-menu-toggle {
    align-items: center;
    background: rgba(245, 213, 138, .12);
    border: 1px solid rgba(245, 213, 138, .32);
    border-radius: 999px;
    color: #fff8e8;
    cursor: pointer;
    display: none;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    min-height: 36px;
    padding: 0 14px;
}

.author-panel-sidebar a {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-bottom: 0;
    padding: 9px 11px;
    border-radius: 8px;
    color: #f8f0dc;
    text-decoration: none;
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
}

.author-panel-sidebar .author-panel-brand {
    min-height: auto;
    margin-bottom: 0;
    padding: 0;
    border-radius: 0;
}

.author-panel-sidebar a:hover,
.author-panel-sidebar a:focus-visible {
    background: rgba(245, 213, 138, .12);
    color: #f5d58a;
    outline: none;
}

.author-panel-sidebar a.is-active {
    background: rgba(245, 213, 138, .2);
    color: #fff8e8;
    box-shadow: inset 3px 0 0 #f5d58a;
}

.author-panel-main {
    width: min(1120px, 100%);
    padding: 36px;
}

.author-panel-card,
.contract-status-card,
.contract-upload-card {
    padding: 24px;
    border: 1px solid rgba(182, 139, 55, .22);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 16px 38px rgba(18, 32, 24, .08);
}

.author-panel-card h1,
.author-panel-card h2,
.contract-status-card h1,
.contract-status-card h2,
.contract-upload-card h2 {
    margin: 0 0 10px;
    color: #122018;
}

.author-panel-card p,
.contract-status-card p,
.contract-upload-card p {
    color: #58655c;
    line-height: 1.6;
}

.author-panel-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #f5eddc;
    color: #74531e;
    font-size: .82rem;
    font-weight: 800;
}

.author-panel-empty {
    padding: 22px;
    border: 1px dashed rgba(182, 139, 55, .35);
    border-radius: 8px;
    background: rgba(255, 253, 248, .7);
    color: #667268;
}

.contract-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #edf7f2;
    color: #1f5b47;
    font-weight: 700;
}

.contract-alert.is-warning {
    background: #fff6df;
    color: #7a571f;
}

.contract-alert.is-error {
    background: #fff0ed;
    color: #8b2d1e;
}

.contract-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #b68b37;
    color: #fffdf8;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.contract-action-button:hover,
.contract-action-button:focus-visible {
    background: #9f7628;
    color: #fffdf8;
    outline: 3px solid rgba(214, 173, 75, .24);
    outline-offset: 2px;
    transform: translateY(-1px);
}

.contract-upload-card form {
    display: grid;
    gap: 14px;
}

.contract-upload-card input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd2bd;
    border-radius: 8px;
    background: #fff;
}

.author-panel-menu {
    display: grid;
    gap: 18px;
}

.author-panel-menu-group {
    display: grid;
    gap: 6px;
}

.author-panel-menu-label {
    color: rgba(245, 213, 138, .72);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    padding: 0 11px 2px;
    text-transform: uppercase;
}

.author-panel-header {
    margin-bottom: 24px;
}

.author-panel-header span,
.contract-status-card > span,
.author-panel-card > span {
    display: block;
    margin-bottom: 8px;
    color: #9a742c;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.author-panel-header h1 {
    margin: 0 0 10px;
    color: #122018;
    font-size: clamp(2rem, 4vw, 3rem);
}

.author-panel-header p {
    max-width: 760px;
    margin: 0;
    color: #58655c;
    line-height: 1.7;
}

.author-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.author-panel-card strong,
.contract-status-card strong {
    display: block;
    margin-bottom: 14px;
    color: #122018;
    font-size: 1.65rem;
}

.contract-alert-success {
    background: #edf7f2;
    color: #1f5b47;
}

.contract-alert-error {
    background: #fff0ed;
    color: #8b2d1e;
}

@media (max-width: 860px) {
    .author-panel-layout {
        display: block;
        grid-template-columns: 1fr;
    }

    .author-panel-sidebar {
        position: sticky;
        top: 0;
        z-index: 100;
        min-height: auto;
        padding: 12px 14px;
    }

    .author-panel-sidebar-top {
        margin-bottom: 0;
    }

    .author-panel-brand-mark {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    .author-panel-brand-mark img {
        max-width: 35px;
    }

    .author-panel-brand-copy strong {
        font-size: .95rem;
    }

    .author-panel-brand-copy small {
        font-size: .72rem;
    }

    .author-panel-menu-toggle {
        display: inline-flex;
    }

    .author-panel-menu {
        max-height: 0;
        margin-top: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .25s ease, margin-top .2s ease, opacity .2s ease;
    }

    .author-panel-menu.is-open {
        max-height: 760px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(245, 213, 138, .18);
        opacity: 1;
    }

    .author-panel-menu-group {
        gap: 4px;
    }

    .author-panel-sidebar a {
        min-height: 38px;
        padding: 8px 10px;
    }

    .author-panel-main {
        padding: 22px 16px;
    }

    .author-panel-grid {
        grid-template-columns: 1fr;
    }
}

.author-profile-card,
.author-security-card,
.author-book-panel-card,
.author-contract-required,
.author-book-empty {
    border: 1px solid rgba(182, 139, 55, .22);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 16px 38px rgba(18, 32, 24, .08);
}

.author-profile-card,
.author-security-card,
.author-contract-required,
.author-book-empty {
    padding: 24px;
}

.author-profile-photo {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(182, 139, 55, .18);
}

.author-profile-photo img,
.author-profile-photo > span {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    object-fit: cover;
    background: #efe4cb;
}

.author-profile-photo > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #74531e;
    font-size: 2rem;
    font-weight: 900;
}

.author-profile-photo strong,
.author-contract-required strong,
.author-book-empty strong {
    display: block;
    color: #122018;
    font-size: 1.1rem;
}

.author-profile-photo small {
    display: block;
    margin-top: 4px;
    color: #667268;
}

.author-profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.author-profile-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #1b2a22;
    font-size: .92rem;
    font-weight: 800;
}

.author-profile-form input,
.author-profile-form select,
.author-profile-form textarea {
    width: 100%;
    border: 1px solid #ddd2bd;
    border-radius: 8px;
    background: #fff;
    color: #17241d;
    font: inherit;
    font-weight: 500;
    padding: 13px 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.author-profile-form input:focus,
.author-profile-form select:focus,
.author-profile-form textarea:focus {
    border-color: #b68b37;
    box-shadow: 0 0 0 3px rgba(214, 173, 75, .2);
}

.author-profile-form input:disabled,
.author-profile-form select:disabled,
.author-profile-form textarea:disabled {
    background: #f4efe6;
    color: #6d756f;
}

.author-profile-form small {
    color: #6f786f;
    font-size: .82rem;
    font-weight: 500;
}

.author-form-wide,
.author-profile-readonly,
.author-panel-action {
    grid-column: 1 / -1;
}

.author-profile-readonly {
    padding: 14px 16px;
    border: 1px dashed rgba(182, 139, 55, .35);
    border-radius: 8px;
    background: rgba(245, 237, 220, .55);
}

.author-profile-readonly span,
.author-books-header span {
    display: block;
    margin-bottom: 6px;
    color: #9a742c;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.author-profile-readonly p,
.author-contract-required p,
.author-book-empty p {
    margin: 0;
    color: #58655c;
    line-height: 1.6;
}

.author-panel-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #b68b37;
    color: #fffdf8;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, outline-color .2s ease;
}

.author-panel-action:hover,
.author-panel-action:focus-visible {
    background: #9f7628;
    color: #fffdf8;
    outline: 3px solid rgba(214, 173, 75, .24);
    outline-offset: 2px;
    transform: translateY(-1px);
}

.author-books-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.author-books-header h1 {
    margin: 0 0 8px;
    color: #122018;
    font-size: clamp(2rem, 4vw, 3rem);
}

.author-books-header p {
    max-width: 740px;
    margin: 0;
    color: #58655c;
    line-height: 1.7;
}

.author-panel-main .author-books-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
}

.author-panel-main .author-book-panel-card {
    width: 100%;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid #eadfca;
    border-radius: 16px;
    background: #fffdf8;
    box-shadow: 0 16px 38px rgba(18, 32, 24, .08);
}

.author-panel-main .author-book-cover {
    width: 150px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: #f1e6ca;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-panel-main .author-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-panel-main .author-book-cover span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px;
    color: #74531e;
    font-size: .82rem;
    font-weight: 800;
    text-align: center;
}

.author-book-panel-content {
    min-width: 0;
}

.author-book-panel-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.author-book-panel-title {
    margin: 10px 0 12px;
    color: #122018;
    font-size: 1.25rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.author-book-panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #68736d;
    font-size: .9rem;
    line-height: 1.5;
}

.author-book-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f5eddc;
    color: #74531e;
    font-size: .78rem;
    font-weight: 900;
}

.author-book-status.is-publicado {
    background: #edf7f2;
    color: #1f5b47;
}

.author-book-status.is-inativo {
    background: #f0eeee;
    color: #6b6b6b;
}

.author-book-status.is-rascunho {
    background: #eef2f6;
    color: #425466;
}

.author-book-status.is-pronto_publicacao {
    background: #fff7df;
    color: #8a641d;
}

.author-book-panel-actions,
.author-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.author-book-publish-form {
    display: inline-flex;
    margin: 0;
}

.author-book-publish-form .author-panel-action {
    width: 100%;
}

.author-book-panel-actions {
    flex-direction: column;
    align-items: stretch;
    min-width: 170px;
    margin-top: 0;
}

.author-book-panel-actions .author-panel-action {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    white-space: nowrap;
}

.author-book-panel-actions .author-book-publish-form {
    flex: 1 1 100%;
}

.author-book-panel-actions .author-panel-action.is-disabled {
    background: #f2ead8;
    color: #8a6a26 !important;
    cursor: default;
    white-space: normal;
    text-align: center;
}

.author-book-panel-actions .author-panel-action.is-disabled:hover,
.author-book-panel-actions .author-panel-action.is-disabled:focus-visible {
    background: #f2ead8;
    color: #8a6a26 !important;
    outline: none;
    transform: none;
}

.author-book-panel-actions .author-panel-action.is-disabled small {
    display: block;
    margin-left: 4px;
    font-size: .72rem;
    font-weight: 700;
}

.author-book-actions a,
.author-book-actions span,
.author-contract-required a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: #f5eddc;
    color: #74531e;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 800;
}

.author-book-actions a:hover,
.author-book-actions a:focus-visible,
.author-contract-required a:hover,
.author-contract-required a:focus-visible {
    background: #ead9b7;
    color: #5d4119;
    outline: none;
}

.author-book-actions small {
    margin-left: 6px;
    color: #8d744b;
}

.author-book-form-card {
    width: 100%;
    padding: 24px;
    border: 1px solid rgba(182, 139, 55, .22);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: 0 16px 38px rgba(18, 32, 24, .08);
}

.author-book-form {
    width: 100%;
}

.author-book-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.author-book-form-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    color: #1b2a22;
    font-size: .92rem;
    font-weight: 800;
}

.author-book-form-field-full {
    grid-column: 1 / -1;
}

.author-book-form-input,
.author-book-form-select,
.author-book-form-textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    border: 1px solid #ddd2bd;
    border-radius: 10px;
    background: #fff;
    color: #17241d;
    font: inherit;
    font-weight: 500;
    padding: 13px 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.author-book-form-textarea {
    min-height: 150px;
    resize: vertical;
}

.author-book-form-textarea-large {
    min-height: 220px;
}

.author-book-form-input:focus,
.author-book-form-select:focus,
.author-book-form-textarea:focus {
    border-color: #b68b37;
    box-shadow: 0 0 0 3px rgba(214, 173, 75, .2);
}

.author-book-form-input:disabled,
.author-book-form-select:disabled,
.author-book-form-textarea:disabled {
    background: #f4efe6;
    color: #6d756f;
}

.author-book-form-field small {
    color: #6f786f;
    font-size: .82rem;
    font-weight: 500;
}

.author-form-help {
    display: block;
    margin-top: 8px;
    color: #667268;
    font-size: .88rem;
    line-height: 1.45;
}

.author-form-help a {
    color: #8f5f1e;
    font-weight: 800;
    text-decoration: none;
}

.author-form-help a:hover,
.author-form-help a:focus-visible {
    color: #1f5b47;
    text-decoration: underline;
}

.author-book-currency-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    border: 1px solid #ddd2bd;
    border-radius: 10px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.author-book-currency-field:focus-within {
    border-color: #b68b37;
    box-shadow: 0 0 0 3px rgba(214, 173, 75, .2);
}

.author-book-currency-prefix {
    padding-left: 14px;
    color: #74531e;
    font-weight: 900;
}

.author-book-currency-field .author-book-currency-input {
    border: 0;
    border-radius: 0 10px 10px 0;
    box-shadow: none;
    padding-left: 8px;
}

.author-book-currency-field .author-book-currency-input:focus {
    border-color: transparent;
    box-shadow: none;
}

.author-book-cover-upload {
    display: grid;
    grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
    gap: 18px;
    align-items: end;
}

.author-book-cover-upload label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.author-panel-main .author-book-cover-preview {
    width: 100%;
    max-width: 150px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 8px;
    background: #efe4cb;
}

.author-panel-main .author-book-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-book-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(182, 139, 55, .18);
}

.author-panel-action-secondary {
    background: #f5eddc;
    color: #74531e;
}

.author-panel-action-secondary:hover,
.author-panel-action-secondary:focus-visible {
    background: #ead9b7;
    color: #5d4119;
}

.author-panel-action-danger {
    background: #f8e7e3;
    color: #963b2f;
}

.author-panel-action-danger:hover,
.author-panel-action-danger:focus-visible {
    background: #d95344;
    color: #fff;
}

.author-panel-action:disabled {
    background: #f2ead8;
    color: #9b8356;
    cursor: not-allowed;
    opacity: .72;
    transform: none;
}

.author-chapter-header-actions,
.author-chapter-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.author-chapter-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(182, 139, 55, .22);
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: 0 12px 28px rgba(18, 32, 24, .06);
}

.author-chapter-tools strong {
    display: block;
    margin-bottom: 5px;
    color: #122018;
    font-size: 1rem;
}

.author-chapter-tools p {
    margin: 0;
    color: #58655c;
    line-height: 1.5;
}

.author-chapter-tools-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.author-chapter-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.author-chapter-summary > div {
    padding: 18px;
    border: 1px solid rgba(182, 139, 55, .22);
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: 0 12px 28px rgba(18, 32, 24, .06);
}

.author-chapter-summary span,
.author-chapter-order span {
    display: block;
    margin-bottom: 6px;
    color: #9a742c;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.author-chapter-summary strong,
.author-chapter-order strong {
    color: #122018;
    font-size: 1.35rem;
}

.author-chapters-list {
    display: grid;
    gap: 16px;
}

.author-chapter-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(182, 139, 55, .22);
    border-radius: 14px;
    background: #fffdf8;
    box-shadow: 0 14px 34px rgba(18, 32, 24, .07);
}

.author-chapter-order {
    min-height: 78px;
    padding: 14px;
    border-radius: 12px;
    background: #f5eddc;
    text-align: center;
}

.author-chapter-info {
    min-width: 0;
}

.author-chapter-info h2 {
    margin: 10px 0;
    color: #122018;
    font-size: 1.15rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.author-chapter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px;
    min-width: 260px;
}

.author-chapter-actions form {
    margin: 0;
}

.author-chapter-actions .author-panel-action,
.author-chapter-actions button.author-panel-action {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.author-chapter-form-card {
    overflow: hidden;
}

.author-chapter-editor-card {
    width: 100%;
    border: 1px solid #ddd2bd;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.author-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid rgba(182, 139, 55, .18);
    background: #fbf7ee;
}

.author-editor-button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(182, 139, 55, .28);
    border-radius: 8px;
    background: #fffdf8;
    color: #74531e;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.author-editor-button:hover,
.author-editor-button:focus-visible,
.author-editor-button.is-active {
    background: #b68b37;
    color: #fffdf8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 173, 75, .18);
}

.author-editor-canvas,
.author-editor-html-mode,
.author-editor-preview {
    width: 100%;
    min-height: 360px;
    box-sizing: border-box;
    padding: 22px;
    color: #1b2a22;
    font: inherit;
    font-weight: 500;
    line-height: 1.75;
    outline: none;
}

.author-editor-canvas:focus,
.author-editor-html-mode:focus {
    box-shadow: inset 0 0 0 3px rgba(214, 173, 75, .18);
}

.author-editor-canvas h2,
.author-editor-preview h2 {
    margin: 1.2em 0 .5em;
    color: #122018;
    font-size: 1.45rem;
}

.author-editor-canvas h3,
.author-editor-preview h3 {
    margin: 1em 0 .45em;
    color: #122018;
    font-size: 1.15rem;
}

.author-editor-canvas p,
.author-editor-preview p {
    margin: 0 0 1em;
}

.author-editor-canvas blockquote,
.author-editor-preview blockquote {
    margin: 1em 0;
    padding: 12px 16px;
    border-left: 4px solid #b68b37;
    background: #fbf7ee;
    color: #405147;
}

.author-editor-html-mode {
    display: block;
    min-height: 360px;
    border: 0;
    resize: vertical;
    font-family: Consolas, Monaco, monospace;
}

.author-editor-preview {
    border-top: 1px solid rgba(182, 139, 55, .18);
    background: #fffdf8;
}

.author-editor-hidden {
    display: none;
}

.author-editor-help {
    margin-top: 6px;
}

.author-chapter-editor-card [hidden] {
    display: none !important;
}

.author-financial-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.author-financial-card,
.author-payment-details-card,
.author-receipt-request-card,
.author-receipt-history,
.admin-bank-data-card {
    padding: 22px;
    border: 1px solid rgba(182, 139, 55, .22);
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: 0 14px 34px rgba(18, 32, 24, .07);
}

.author-financial-card span {
    display: block;
    margin-bottom: 8px;
    color: #9a742c;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.author-financial-card strong {
    color: #122018;
    font-size: 1.55rem;
}

.author-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(182, 139, 55, .2);
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: 0 14px 34px rgba(18, 32, 24, .06);
}

.author-sales-table,
.author-royalty-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.author-sales-table th,
.author-sales-table td,
.author-royalty-table th,
.author-royalty-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(182, 139, 55, .16);
    color: #24352b;
    text-align: left;
    vertical-align: middle;
}

.author-sales-table th,
.author-royalty-table th {
    background: #f7efd9;
    color: #5d4119;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.author-sales-table td:nth-child(n+2),
.author-royalty-table td:nth-child(5),
.author-royalty-table td:nth-child(6) {
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.author-royalty-status,
.admin-receipt-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f5eddc;
    color: #74531e;
    font-size: .76rem;
    font-weight: 900;
    text-decoration: none;
}

.author-royalty-status.is-disponivel,
.admin-receipt-status.is-ativo,
.admin-receipt-status.is-aprovado,
.admin-receipt-status.is-pago {
    background: #edf7f2;
    color: #1f5b47;
}

.author-royalty-status.is-pendente,
.admin-receipt-status.is-em_analise,
.admin-receipt-status.is-solicitado {
    background: #fff7df;
    color: #8a641d;
}

.author-royalty-status.is-reservado {
    background: #eef2f6;
    color: #425466;
}

.author-royalty-status.is-estornado,
.author-royalty-status.is-cancelado,
.admin-receipt-status.is-recusado,
.admin-receipt-status.is-cancelado,
.admin-receipt-status.is-inativo {
    background: #f5e6e2;
    color: #963b2f;
}

.author-payment-details-card,
.author-receipt-request-card,
.author-receipt-history {
    margin-bottom: 22px;
}

.author-receipt-history {
    display: grid;
    gap: 14px;
}

.author-receipt-history h2,
.admin-bank-data-card h2 {
    margin: 0 0 12px;
    color: #122018;
}

.admin-royalty-filters {
    margin-bottom: 18px;
}

.admin-bank-data-card {
    margin-bottom: 18px;
}

.admin-bank-data-card p {
    margin: 0 0 10px;
    color: #405147;
    line-height: 1.6;
}

.admin-bank-data-card a,
.admin-bank-data-card button,
.author-receipt-history a,
.author-receipt-history button {
    text-decoration: none;
}

.author-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.author-service-card,
.author-service-request-card,
.author-service-history,
.admin-service-card {
    padding: 22px;
    border: 1px solid rgba(182, 139, 55, .22);
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: 0 14px 34px rgba(18, 32, 24, .07);
}

.author-service-card {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.author-service-card h2,
.author-service-request-card h2,
.author-service-history h2,
.admin-service-card h2 {
    margin: 10px 0 8px;
    color: #122018;
    line-height: 1.25;
}

.author-service-card p,
.author-service-request-card p,
.author-service-history p,
.admin-service-card p {
    color: #58655c;
    line-height: 1.65;
}

.author-service-badge,
.author-service-status,
.admin-service-request-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f5eddc;
    color: #74531e;
    font-size: .76rem;
    font-weight: 900;
    text-decoration: none;
}

.author-service-price {
    display: block;
    margin: 4px 0 12px;
    color: #122018;
    font-size: 1.15rem;
}

.author-service-card-footer {
    display: grid;
    gap: 6px;
}

.author-service-card-footer > span {
    color: #66736b;
    font-size: .88rem;
}

.author-service-request-card,
.author-service-history,
.admin-service-card {
    margin-bottom: 20px;
}

.author-service-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
    gap: 22px;
}

.author-service-history {
    display: grid;
    gap: 12px;
}

.author-service-history article {
    padding: 16px;
    border: 1px solid rgba(182, 139, 55, .16);
    border-radius: 10px;
    background: #fff;
}

.author-service-history span,
.author-service-history small {
    display: block;
    color: #68736d;
    font-size: .82rem;
}

.author-service-history strong {
    display: block;
    margin-top: 6px;
    color: #122018;
}

.author-service-status.is-concluido,
.author-service-status.is-aprovado_autor,
.admin-service-request-status.is-concluido,
.admin-service-request-status.is-aprovado_autor,
.admin-service-request-status.is-ativo {
    background: #edf7f2;
    color: #1f5b47;
}

.author-service-status.is-em_analise,
.author-service-status.is-orcamento_enviado,
.author-service-status.is-aguardando_aprovacao_autor,
.author-service-status.is-em_andamento,
.admin-service-request-status.is-em_analise,
.admin-service-request-status.is-orcamento_enviado,
.admin-service-request-status.is-aguardando_aprovacao_autor,
.admin-service-request-status.is-em_andamento {
    background: #fff7df;
    color: #8a641d;
}

.author-service-status.is-recusado,
.author-service-status.is-cancelado,
.admin-service-request-status.is-recusado,
.admin-service-request-status.is-cancelado,
.admin-service-request-status.is-inativo {
    background: #f5e6e2;
    color: #963b2f;
}

.admin-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #24352b;
    font-weight: 800;
}

@media (max-width: 900px) {
    .author-panel-main .author-book-panel-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .author-panel-main .author-book-cover {
        width: 120px;
    }

    .author-book-panel-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        min-width: 0;
    }

    .author-book-panel-actions .author-panel-action {
        flex: 1;
    }
}

@media (max-width: 760px) {
    .author-profile-form,
    .author-panel-main .author-book-panel-card,
    .author-book-form-card {
        grid-template-columns: 1fr;
    }

    .author-book-form-grid {
        grid-template-columns: 1fr;
    }

    .author-book-form-field-full {
        grid-column: auto;
    }

    .author-book-cover-upload {
        grid-template-columns: 1fr;
    }

    .author-book-form-actions {
        justify-content: stretch;
    }

    .author-books-header {
        display: grid;
    }

    .author-panel-action {
        width: 100%;
    }

    .author-panel-main .author-book-cover {
        width: 120px;
        margin: 0 auto;
    }

    .author-book-panel-actions {
        flex-direction: column;
    }

    .author-chapter-summary,
    .author-chapter-card,
    .author-chapter-actions {
        grid-template-columns: 1fr;
    }

    .author-chapter-actions {
        min-width: 0;
    }

    .author-chapter-header-actions,
    .author-chapter-form-actions {
        justify-content: stretch;
    }

    .author-chapter-tools,
    .author-chapter-tools-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .author-editor-toolbar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .author-service-detail-grid {
        grid-template-columns: 1fr;
    }

    .author-profile-photo {
        align-items: flex-start;
    }
}

.site-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.site-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #d5ad47;
    color: #173729;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}

.site-nav-primary {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.site-nav-account {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.account-dropdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 7px 12px;
    border: 1px solid rgba(213, 173, 71, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.9);
    font: inherit;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.account-dropdown::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.site-nav-account:hover .account-dropdown,
.site-nav-account:focus-within .account-dropdown {
    background: rgba(213, 173, 71, 0.14);
    border-color: rgba(213, 173, 71, 0.52);
    color: #ffffff;
}

.account-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1200;
    min-width: 210px;
    padding: 8px;
    border: 1px solid rgba(213, 173, 71, 0.24);
    border-radius: 14px;
    background: #0b1510;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.site-nav-account:hover .account-dropdown-menu,
.site-nav-account:focus-within .account-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown-menu a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    white-space: nowrap;
}

.account-dropdown-menu a:hover,
.account-dropdown-menu a:focus-visible {
    background: rgba(213, 173, 71, 0.14);
    color: #f1d58a;
    outline: none;
}

@media (min-width: 1025px) {
    .site-header-inner {
        gap: 22px;
    }

    .site-nav-primary {
        gap: 16px;
        flex: 0 1 auto;
        min-width: 0;
    }

    .site-nav-primary > a,
    .site-cart-link,
    .account-dropdown {
        flex: 0 0 auto;
    }
}

@media (max-width: 1024px) {
    .mobile-nav.is-open {
        max-height: 1200px;
    }

    .account-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }
}

.site-nav-categories {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.categories-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease;
}

.categories-menu-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.categories-menu-toggle:hover,
.categories-menu-toggle:focus-visible,
.site-nav-categories.is-open .categories-menu-toggle {
    background: rgba(207, 166, 82, 0.16);
    color: #ffffff;
    outline: none;
}

.categories-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1250;
    display: grid;
    min-width: 250px;
    max-width: min(340px, 86vw);
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(213, 173, 71, 0.24);
    border-radius: 14px;
    background: #0b1510;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    text-align: left;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.site-nav-categories.is-open .categories-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    padding: 12px 18px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    white-space: normal;
}

.categories-dropdown-item:hover,
.categories-dropdown-item:focus-visible {
    background: rgba(213, 173, 71, 0.14);
    color: #f1d58a;
    text-align: left;
    text-decoration: none;
    outline: none;
}

.mobile-categories-toggle {
    display: none;
}

.mobile-categories-submenu {
    display: none;
}

@media (min-width: 1025px) {
    .site-nav-primary > .site-nav-categories {
        flex: 0 0 auto;
    }
}

@media (max-width: 1024px) {
    .site-nav-categories {
        display: none;
    }

    .mobile-categories-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: transparent;
        color: rgba(255, 255, 255, 0.88);
        padding: 15px 22px;
        font: inherit;
        font-weight: 800;
        text-align: left;
        cursor: pointer;
    }

    .mobile-categories-toggle::after {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.18s ease;
    }

    .mobile-categories-toggle.is-open::after {
        transform: rotate(225deg);
    }

    .mobile-categories-toggle:hover,
    .mobile-categories-toggle:focus-visible {
        color: #f1d58a;
        background: rgba(255, 255, 255, 0.04);
        outline: none;
    }

    .mobile-categories-submenu {
        display: none;
        padding: 4px 0 8px;
        background: rgba(255, 255, 255, 0.03);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mobile-categories-submenu.is-open {
        display: grid;
    }

    .mobile-categories-submenu a {
        padding: 12px 22px 12px 38px;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.92rem;
        font-weight: 750;
        text-align: left;
        text-decoration: none;
    }

    .mobile-categories-submenu a:hover,
    .mobile-categories-submenu a:focus-visible {
        color: #f1d58a;
        background: rgba(255, 255, 255, 0.04);
        outline: none;
    }
}

.add-to-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 16px;
    border: 1px solid rgba(184, 139, 50, 0.42);
    border-radius: 999px;
    background: #fff8e7;
    color: #244636;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.add-to-cart-button:hover,
.add-to-cart-button:focus-visible {
    background: #d5ad47;
    color: #173729;
    box-shadow: 0 12px 28px rgba(42, 63, 45, 0.16);
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

.add-to-cart-button.is-in-cart {
    background: #244636;
    border-color: #244636;
    color: #fff8e7;
}

.add-to-cart-button.is-disabled {
    background: #f3efe5;
    border-color: rgba(36, 70, 54, 0.12);
    color: #6d756f;
    cursor: default;
    box-shadow: none;
}

.store-book-actions form,
.featured-book-actions form,
.ebook-purchase-actions form {
    margin: 0;
}

.ebook-purchase-actions,
.featured-book-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.cart-page {
    padding: 54px 0 78px;
    background: #fbf8ef;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 26px;
    align-items: start;
}

.cart-list {
    display: grid;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(36, 70, 54, 0.1);
    border-radius: 16px;
    background: #fffdf8;
    box-shadow: 0 14px 34px rgba(33, 47, 38, 0.08);
}

.cart-item-cover {
    width: 96px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(145deg, #244636, #173729);
    color: #f5df9c;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
}

.cart-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-category {
    display: inline-flex;
    margin-bottom: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff5d8;
    color: #7b5c18;
    font-size: 0.76rem;
    font-weight: 800;
}

.cart-item-info h2 {
    margin: 0 0 6px;
    color: #173729;
    font-size: 1.08rem;
    line-height: 1.25;
}

.cart-item-info p {
    margin: 0;
    color: #68766e;
}

.cart-item-price {
    display: grid;
    gap: 10px;
    justify-items: end;
    min-width: 140px;
}

.cart-item-price strong {
    color: #173729;
    font-size: 1.05rem;
}

.cart-item-price button,
.cart-clear-button {
    border: 0;
    background: transparent;
    color: #8c6b18;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.cart-item-price button:hover,
.cart-item-price button:focus-visible,
.cart-clear-button:hover,
.cart-clear-button:focus-visible {
    color: #244636;
    outline: none;
}

.cart-summary {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 92px;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #59665e;
}

.cart-summary-row strong {
    color: #173729;
}

.cart-summary-total {
    padding-top: 14px;
    border-top: 1px solid rgba(36, 70, 54, 0.12);
}

.cart-summary-total strong {
    font-size: 1.45rem;
}

.cart-summary p {
    margin: 0;
    color: #657269;
    line-height: 1.6;
}

.cart-checkout-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #d5ad47, #f0d889);
    color: #173729;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(143, 105, 30, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-checkout-button:hover,
.cart-checkout-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(143, 105, 30, 0.3);
    outline: none;
}

.cart-empty {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.cart-empty h2 {
    margin-top: 0;
    color: #173729;
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .cart-page {
        padding: 34px 0 110px;
    }

    .cart-item {
        grid-template-columns: 74px minmax(0, 1fr);
        align-items: start;
    }

    .cart-item-cover {
        width: 74px;
    }

    .cart-item-price {
        grid-column: 1 / -1;
        justify-items: stretch;
        min-width: 0;
    }

    .cart-item-price button {
        text-align: left;
    }

    .store-book-actions {
        align-items: stretch;
    }

    .store-book-actions .add-to-cart-button,
    .store-book-actions form,
    .store-book-actions form button,
    .ebook-purchase-actions .add-to-cart-button,
    .ebook-purchase-actions form,
    .ebook-purchase-actions form button {
        width: 100%;
    }
}

.book-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    margin-top: 14px;
}

.book-card-cart-form {
    display: contents;
    margin: 0;
}

.book-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.book-card-action:hover,
.book-card-action:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

.book-card-action-secondary {
    background: rgba(36, 70, 54, 0.06);
    border-color: rgba(36, 70, 54, 0.13);
    color: #244636;
}

.book-card-action-secondary:hover,
.book-card-action-secondary:focus-visible {
    background: rgba(36, 70, 54, 0.1);
    color: #173729;
}

.book-card-action-primary {
    background: linear-gradient(135deg, #d5ad47, #f0d889);
    border-color: rgba(143, 105, 30, 0.18);
    color: #173729;
    box-shadow: 0 12px 24px rgba(143, 105, 30, 0.18);
}

.book-card-action-primary:hover,
.book-card-action-primary:focus-visible {
    color: #173729;
    box-shadow: 0 16px 30px rgba(143, 105, 30, 0.25);
}

.book-card-action-cart {
    grid-column: 1 / -1;
    background: #fff8e7;
    border-color: rgba(184, 139, 50, 0.42);
    color: #244636;
}

.book-card-action-cart:hover,
.book-card-action-cart:focus-visible {
    background: #fbf0cf;
    color: #173729;
    border-color: rgba(184, 139, 50, 0.65);
}

.book-card-action-cart.is-in-cart {
    background: #244636;
    border-color: #244636;
    color: #fff8e7;
}

.book-card-action-cart.is-disabled {
    background: #f3efe5;
    border-color: rgba(36, 70, 54, 0.12);
    color: #6d756f;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.featured-book-actions.book-card-actions {
    display: flex;
    flex-wrap: wrap;
    max-width: 720px;
}

.featured-book-actions .book-card-action,
.featured-book-actions .book-card-cart-form {
    flex: 0 1 auto;
    min-width: 170px;
}

.ebook-share-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    min-height: 40px;
    margin-top: 14px;
    padding: 9px 14px;
    border: 1px solid rgba(184, 139, 50, 0.32);
    border-radius: 999px;
    background: rgba(255, 248, 231, 0.72);
    color: #244636;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ebook-share-action span {
    color: #8c6b18;
    font-size: 1rem;
    line-height: 1;
}

.ebook-share-action:hover,
.ebook-share-action:focus-visible {
    background: #fbf0cf;
    border-color: rgba(184, 139, 50, 0.58);
    color: #173729;
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 900px) {
    .book-card-actions {
        grid-template-columns: 1fr;
    }

    .book-card-action-cart {
        grid-column: auto;
    }

    .featured-book-actions.book-card-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .book-card-actions,
    .featured-book-actions.book-card-actions {
        grid-template-columns: 1fr;
    }

    .book-card-action,
    .featured-book-actions .book-card-action,
    .featured-book-actions .book-card-cart-form,
    .ebook-share-action {
        width: 100%;
    }
}

.featured-books-section {
    padding: 66px 0 74px;
    background: #fbf8ef;
}

.featured-books-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.featured-books-header p {
    max-width: 560px;
    margin: 8px 0 0;
    color: #5f6e64;
    line-height: 1.65;
}

.featured-books-header .landing-kicker {
    color: #8c6b18;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.featured-books-title {
    margin: 0;
    color: #173729;
    font-size: 2rem;
    line-height: 1.12;
}

.featured-books-link {
    flex: 0 0 auto;
    color: #8c6b18;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.featured-books-link:hover,
.featured-books-link:focus-visible {
    color: #244636;
    text-decoration: none;
    outline: none;
}

.featured-books-shell {
    position: relative;
}

.featured-books-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 6px 2px 18px;
}

.featured-books-viewport::-webkit-scrollbar {
    display: none;
}

.featured-books-viewport:focus-visible {
    outline: 3px solid rgba(213, 173, 71, 0.42);
    outline-offset: 6px;
    border-radius: 18px;
}

.featured-books-track {
    display: flex;
    gap: 18px;
}

.featured-book-card {
    flex: 0 0 250px;
    width: 250px;
    scroll-snap-align: start;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 14px;
    border: 1px solid rgba(36, 70, 54, 0.1);
    border-radius: 16px;
    background: #fffdf8;
    box-shadow: 0 14px 34px rgba(33, 47, 38, 0.08);
    overflow: hidden;
}

.featured-book-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, #244636, #173729);
    color: #f5df9c;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
}

.featured-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-book-card-body {
    display: grid;
    gap: 9px;
    padding: 14px 0 0;
}

.featured-book-category {
    width: fit-content;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff5d8;
    color: #7b5c18;
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-book-category:hover,
.featured-book-category:focus-visible {
    background: #f8e6ad;
    color: #244636;
    text-decoration: none;
    outline: none;
}

.featured-book-title {
    margin: 0;
    min-height: 2.7em;
    font-size: 1rem;
    line-height: 1.34;
    color: #173729;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-book-title a {
    color: inherit;
    text-decoration: none;
}

.featured-book-title a:hover,
.featured-book-title a:focus-visible {
    color: #8c6b18;
    outline: none;
}

.featured-book-author {
    margin: 0;
    min-height: 1.35em;
    color: #657269;
    font-size: 0.88rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-book-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.featured-book-price span {
    color: #9a9f98;
    font-size: 0.82rem;
    text-decoration: line-through;
}

.featured-book-price strong {
    color: #173729;
    font-size: 1.02rem;
}

.featured-book-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 2px;
    padding: 9px 12px;
    border: 1px solid rgba(184, 139, 50, 0.36);
    border-radius: 999px;
    background: #fff8e7;
    color: #244636;
    font-size: 0.84rem;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.featured-book-action:hover,
.featured-book-action:focus-visible {
    background: #fbf0cf;
    border-color: rgba(184, 139, 50, 0.62);
    color: #173729;
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

.featured-books-arrow {
    position: absolute;
    top: 42%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(184, 139, 50, 0.32);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.96);
    color: #244636;
    font-size: 1.85rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(33, 47, 38, 0.14);
    transform: translateY(-50%);
    transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.featured-books-arrow:hover,
.featured-books-arrow:focus-visible {
    background: #f1d58a;
    color: #173729;
    outline: none;
}

.featured-books-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.featured-books-arrow-prev {
    left: -28px;
}

.featured-books-arrow-next {
    right: -28px;
}

@media (prefers-reduced-motion: reduce) {
    .featured-books-viewport {
        scroll-behavior: auto;
    }
}

@media (max-width: 1100px) {
    .featured-book-card {
        flex-basis: 220px;
        width: 220px;
    }
}

@media (max-width: 900px) {
    .featured-books-section {
        padding: 54px 0 62px;
    }

    .featured-books-header {
        align-items: start;
        flex-direction: column;
    }

    .featured-books-title {
        font-size: 1.75rem;
    }

    .featured-book-card {
        flex-basis: 220px;
        width: 220px;
    }
}

@media (max-width: 640px) {
    .featured-books-section {
        padding: 42px 0 52px;
    }

    .featured-book-card {
        flex-basis: 185px;
        width: 185px;
    }

    .featured-books-title {
        font-size: 1.45rem;
    }

    .featured-books-arrow {
        display: none;
    }
}

.author-promo-header {
    align-items: center;
}

.author-promo-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.author-promo-preview-card,
.author-promo-tools-card {
    background: #fff;
    border: 1px solid rgba(18, 32, 24, 0.08);
    border-radius: 28px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.07);
    padding: 24px;
}

.author-promo-art {
    max-width: 540px;
    margin: 0 auto;
    background: linear-gradient(180deg, #fbf7ee 0%, #ffffff 100%);
    border: 1px solid rgba(214, 173, 75, 0.28);
    border-radius: 30px;
    padding: 34px 28px;
    text-align: center;
    color: #122018;
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.55);
}

.author-promo-logo img {
    max-width: 168px;
    height: auto;
    display: block;
    margin: 0 auto 24px;
}

.author-promo-book {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    text-align: left;
    margin-bottom: 28px;
}

.author-promo-cover {
    min-height: 225px;
    border-radius: 18px;
    background: #122018;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #f1d58a;
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.author-promo-cover img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
}

.author-promo-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f5ead1;
    color: #6d501c;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.author-promo-copy h2 {
    margin: 0 0 10px;
    color: #122018;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.author-promo-copy p {
    margin: 0;
    color: #526158;
    font-weight: 700;
}

.author-promo-qrcode {
    width: 230px;
    height: 230px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.10);
}

.author-promo-qrcode svg {
    width: 100%;
    height: 100%;
    display: block;
}

.author-promo-call {
    margin: 0 0 10px;
    color: #122018;
    font-size: 1.15rem;
    font-weight: 900;
}

.author-promo-url {
    margin: 0;
    color: #6a716c;
    font-size: 0.86rem;
    line-height: 1.5;
    word-break: break-word;
}

.author-promo-url a {
    color: #8f6722;
    font-weight: 800;
    text-decoration: none;
}

.author-promo-url a:hover,
.author-promo-url a:focus-visible {
    color: #6d501c;
    text-decoration: underline;
}

.author-promo-tools-card h2 {
    margin: 0 0 10px;
    color: #122018;
}

.author-promo-tools-card p {
    color: #526158;
    line-height: 1.65;
}

.author-promo-tools-card label {
    display: block;
    margin: 18px 0 8px;
    color: #122018;
    font-weight: 900;
}

.author-promo-tools-card input {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(18, 32, 24, 0.14);
    padding: 0 12px;
    color: #122018;
    background: #fbf7ee;
}

.author-promo-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.author-promo-actions .author-panel-action {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.author-promo-actions .author-promo-download-qr {
    background: #122018;
    color: #f1d58a;
    border-color: #122018;
}

.author-promo-actions .author-promo-download-qr:hover,
.author-promo-actions .author-promo-download-qr:focus-visible {
    background: #0b1510;
    color: #fff;
    border-color: #0b1510;
}

.author-promo-note {
    margin-top: 18px;
    font-size: 0.92rem;
}

.author-copy-feedback {
    margin-top: 10px;
    color: #17643a;
    font-size: 0.9rem;
    font-weight: 800;
}

@media (max-width: 980px) {
    .author-promo-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .author-promo-preview-card,
    .author-promo-tools-card {
        padding: 18px;
        border-radius: 24px;
    }

    .author-promo-art {
        padding: 28px 18px;
        border-radius: 24px;
    }

    .author-promo-book {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .author-promo-cover {
        width: 150px;
        min-height: 215px;
        margin: 0 auto;
    }

    .author-promo-cover img {
        height: 215px;
    }

    .author-promo-qrcode {
        width: 210px;
        height: 210px;
    }
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    background: #122018;
    color: #fffdf8 !important;
    border: 1px solid rgba(214, 173, 75, .65);
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    background: #1f5b57;
    transform: translateY(-2px);
    color: #fffdf8 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .32);
}

.whatsapp-float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #d6ad4b;
    color: #122018;
    flex: 0 0 auto;
    line-height: 1;
}

.whatsapp-float-icon svg {
    display: block;
    width: 15px;
    height: 15px;
}

.whatsapp-float-text {
    font-size: .92rem;
    letter-spacing: .01em;
    white-space: nowrap;
}

.whatsapp-float-author {
    z-index: 1100;
}

@media (max-width: 768px) {
    .whatsapp-float {
        right: 16px;
        bottom: 84px;
        width: 52px;
        height: 52px;
        min-width: 52px;
        padding: 0;
        border-radius: 50%;
    }

    .whatsapp-float-text {
        display: none;
    }

    .whatsapp-float-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-float-icon svg {
        width: 17px;
        height: 17px;
    }
}

.whatsapp-float {
    display: none !important;
}

.whatsapp-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.whatsapp-widget-author {
    z-index: 1100;
}

.whatsapp-widget-bubble {
    position: relative;
    width: min(320px, calc(100vw - 48px));
    background: #fffdf8;
    color: #122018;
    border: 1px solid rgba(214, 173, 75, .34);
    border-radius: 16px;
    padding: 16px 42px 16px 18px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .20);
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.5;
}

.whatsapp-widget-bubble.is-hidden {
    display: none !important;
}

.whatsapp-widget-bubble strong,
.whatsapp-widget-bubble b {
    font-weight: 400;
}

.whatsapp-widget-bubble::after {
    content: "";
    position: absolute;
    right: 24px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: #fffdf8;
    border-right: 1px solid rgba(214, 173, 75, .34);
    border-bottom: 1px solid rgba(214, 173, 75, .34);
    transform: rotate(45deg);
}

.whatsapp-widget-wave {
    margin-right: 4px;
}

.whatsapp-widget-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #f0eadf;
    color: #122018;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    line-height: 1;
    z-index: 2;
    transition: background .2s ease, transform .2s ease;
}

.whatsapp-widget-close:hover,
.whatsapp-widget-close:focus-visible {
    background: #d6ad4b;
    transform: scale(1.04);
}

.whatsapp-widget-button {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #07120d;
    color: #d6ad4b !important;
    border: 1px solid rgba(214, 173, 75, .75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.whatsapp-widget-button:hover,
.whatsapp-widget-button:focus-visible {
    background: #122018;
    color: #f3d37a !important;
    border-color: #f3d37a;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .32);
}

.whatsapp-widget-button svg {
    display: block;
    width: 25px;
    height: 25px;
    color: #d6ad4b !important;
    fill: #d6ad4b !important;
}

.whatsapp-widget-button:hover svg,
.whatsapp-widget-button:focus-visible svg {
    color: #f3d37a !important;
    fill: #f3d37a !important;
}

@media (max-width: 768px) {
    .whatsapp-widget {
        right: 16px;
        bottom: 84px;
    }

    .whatsapp-widget-bubble {
        width: min(300px, calc(100vw - 32px));
        font-size: .9rem;
        padding: 15px 40px 15px 16px;
    }

    .whatsapp-widget-button {
        width: 54px;
        height: 54px;
    }
}
