/* Hora Ebooks - contraste e conversão (14/10/2026)
   Carregado por último: corrige restos do tema claro sem interferir nos 5 cards. */
:root{color-scheme:dark;--hw-surface:#111417;--hw-deep:#0b0d10;--hw-stroke:#30333a;--hw-text:#f3f6fa;--hw-muted:#aab4c2;--hw-orange:#ff7a27;}
html,body{background:#08090b!important;color:var(--hw-text)!important}
/* Categoria: remove explicitamente o gradiente branco da antiga .page-hero. */
.page-hero,.catalog-hero,.catalog-head{background:radial-gradient(ellipse at 5% 0%,rgba(255,107,26,.13),transparent 60%),linear-gradient(120deg,#17191d,#0a0c0f)!important;border-color:var(--hw-stroke)!important;color:var(--hw-text)!important}
.page-hero h1,.page-hero h2,.page-hero strong,.page-hero .eyebrow,.catalog-hero h1{color:#fff!important}
.page-hero p,.page-hero .text-secondary,.page-hero .small,.page-hero .small.text-secondary{color:#b3bdca!important}
.page-hero .eyebrow i{color:var(--hw-orange)!important}
/* Componentes antigos ainda claros na loja. */
.checkout-card,.content-card,.empty-state,.account-book,.order-card,.account-card,.auth-card,
.filter-card,.catalog-toolbar,.feature-card,.testimonial,.metric-card,.payment-note,
.secure-box,.card-data-box,.checkout-shell,.newsletter,.home-search-card,.category-card,.filter-list,
.account-book,.account-summary{background:#14171b!important;color:#f1f5f9!important;border-color:var(--hw-stroke)!important}
.checkout-card h1,.checkout-card h2,.checkout-card h3,.checkout-card h4,
.content-card h1,.content-card h2,.content-card h3,.content-card h4,
.account-book strong,.account-card h1,.account-card h2,.empty-state h4,
.order-card strong,.checkout-card strong,.checkout-card .fw-bold,
.content-card strong,.content-card .fw-bold{color:#fff!important}
.checkout-card p,.content-card p,.empty-state p,.account-book small,.checkout-card small,
.checkout-card .text-secondary,.content-card .text-secondary,.account-book .text-secondary,
.card-data-box .small,.checkout-card .form-text,.content-card .form-text{color:var(--hw-muted)!important}
/* Labels nunca claros sobre superfícies claras e seleção de pagamento em alto contraste. */
.checkout-card label.form-label,.checkout-card .form-label,.content-card .form-label,
.auth-card .form-label,.account-card .form-label,.card-data-box label{color:#e9edf5!important}
.payment-choice-grid .payment-choice{background:#20242a!important;color:#fff!important;border:1px solid #424852!important;box-shadow:none!important;transition:background .2s,border-color .2s!important}
.payment-choice-grid .payment-choice strong{color:#fff!important}
.payment-choice-grid .payment-choice small{color:#c3cbd6!important}
.payment-choice-grid .payment-choice.active,.payment-choice-grid .payment-choice:has(input:checked){background:#322014!important;border-color:var(--hw-orange)!important;box-shadow:0 0 0 2px rgba(255,122,39,.23)!important}
.payment-choice-grid .payment-choice:focus-within{outline:2px solid var(--hw-orange)!important;outline-offset:2px}
.payment-choice-grid .payment-icon{background:#3b281d!important;color:#ff9b5a!important}
/* Campos têm fundo escuro, texto claro e placeholder visível. */
body:not(.admin-dark) .form-control,body:not(.admin-dark) .form-select,
body:not(.admin-dark) .input-group-text,body:not(.admin-dark) textarea{
 background:#20252b!important;color:#fff!important;border:1px solid #48505c!important;caret-color:#ff8b41!important}
body:not(.admin-dark) .form-control::placeholder,body:not(.admin-dark) textarea::placeholder{color:#a6b2bf!important;opacity:1!important}
body:not(.admin-dark) .form-control:focus,body:not(.admin-dark) .form-select:focus,
body:not(.admin-dark) textarea:focus{background:#272c33!important;color:#fff!important;border-color:#ff873a!important;box-shadow:0 0 0 3px rgba(255,107,26,.17)!important}
body:not(.admin-dark) .form-control[readonly],body:not(.admin-dark) .form-control:disabled{background:#272d35!important;color:#e0e6ed!important;opacity:1!important}
body:not(.admin-dark) select.form-select option{background:#20252b!important;color:#fff!important}
/* Alertas com prioridade de legibilidade, sem pintar a interface toda de branco. */
.alert-success{background:#103928!important;color:#dcffea!important;border-color:#236747!important}
.alert-warning{background:#3c2b0e!important;color:#ffedbb!important;border-color:#74541e!important}
.alert-danger{background:#411d23!important;color:#ffe2e8!important;border-color:#88434e!important}
.alert-primary,.alert-info{background:#142b44!important;color:#e0f1ff!important;border-color:#2a5c85!important}
/* Pedidos e área do leitor. */
.account-book{display:flex!important;gap:14px!important;align-items:center!important;border-radius:13px!important}
.account-book .flex-grow-1{min-width:0}
.content-card .border-top,.content-card .border-bottom,.account-book{border-color:var(--hw-stroke)!important}
.order-status.status-paid{background:#143d2b!important;color:#bffad6!important}
.order-status.status-pending{background:#463510!important;color:#ffde87!important}
.order-status.status-cancelled,.order-status.status-refunded{background:#4d2126!important;color:#ffb6bf!important}
.content-card .input-group{min-width:0}
#pix-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;font-size:.82rem!important;min-width:0!important}
.content-card .input-group button,.checkout-card button,.content-card .btn-primary{white-space:nowrap!important}
/* Botões de compra e links preservam laranja do tema. */
body:not(.admin-dark) .btn-primary,body:not(.admin-dark) .elite-buy-btn{color:#fff!important;background:linear-gradient(135deg,#ff7b25,#e35208)!important;border-color:#e8681b!important}
body:not(.admin-dark) .btn-primary:hover,body:not(.admin-dark) .elite-buy-btn:hover{color:#fff!important;background:linear-gradient(135deg,#ff944c,#ff6814)!important}
body:not(.admin-dark) .btn-outline-primary{color:#ffa568!important;border-color:#cf662b!important}
body:not(.admin-dark) .btn-outline-primary:hover{background:#f87929!important;color:#090a0c!important}
/* Tabelas/menus e componentes legados */
body:not(.admin-dark) .table{--bs-table-bg:#14171b!important;--bs-table-color:#e8edf4!important;--bs-table-border-color:#383d45!important;--bs-table-striped-bg:#1a1d22!important;--bs-table-hover-bg:#222830!important}
body:not(.admin-dark) .list-group-item{background:#15191e!important;color:#eef1f7!important;border-color:var(--hw-stroke)!important}
body:not(.admin-dark) .dropdown-menu:not(.elite-dropdown){background:#181c21!important;color:#fff!important;border-color:var(--hw-stroke)!important}
body:not(.admin-dark) .dropdown-item{color:#eef0f5!important}
body:not(.admin-dark) .dropdown-item:hover{background:#2b2f34!important;color:#fff!important}
body:not(.admin-dark) .modal-content{background:#15191e!important;color:#fff!important;border:1px solid var(--hw-stroke)!important}
body:not(.admin-dark) .modal-content .btn-close{filter:invert(1)!important}
/* Visibilidade em celular; não desloca o menu fixo. */
@media(max-width:575px){.page-hero{padding:32px 0!important}.checkout-card,.content-card{padding:17px!important}.account-book{align-items:flex-start!important;flex-wrap:wrap!important}.account-book>div:last-child{margin-left:auto!important}.content-card .input-group{flex-wrap:wrap!important}.content-card .input-group input{flex:1 1 180px!important}.content-card .input-group button{flex:0 0 auto!important}}

/* Casos residuais do Bootstrap/tema claro em páginas auxiliares. */
body:not(.admin-dark) .section-soft{background:#0d0f12!important;color:#eef2f8!important}
body:not(.admin-dark) .category-card{background:#14171b!important;color:#eef2f8!important;border-color:var(--hw-stroke)!important}
body:not(.admin-dark) .category-card h3{color:#fff!important}
body:not(.admin-dark) .category-card span,body:not(.admin-dark) .filter-list a,body:not(.admin-dark) .feature-card p,body:not(.admin-dark) .testimonial p{color:#b2bdca!important}
body:not(.admin-dark) :is(.bg-white,.bg-light):not(.brand-mark):not(.payment-icon){background:#1a1e23!important;color:#ecf1f7!important}
body:not(.admin-dark) :is(.bg-white,.bg-light):not(.brand-mark) :is(h1,h2,h3,h4,h5,strong){color:#f8fafc!important}
/* Não escurecer a superfície do QR Code: precisa ser legível para câmeras. */
body:not(.admin-dark) .content-card img[alt="QR Code Pix"]{background:#fff!important;padding:10px!important}
