/* Final visual repair: readable admin controls and simple vertical product pages. */
html,body{background:#fff!important;color:#14211d!important}
.dashboard,.admin,.builder{background:#fff!important}

/* Notifications must never inherit the decorative dark dashboard style. */
.alert,.alert.bad{background:#effaf6!important;color:#14211d!important;border:1px solid #cfe5dc!important;border-left:4px solid #087f5b!important;border-radius:8px!important;box-shadow:none!important}
.alert.bad{background:#fff2f3!important;color:#8b1e2d!important;border-color:#f1c1c7!important;border-left-color:#dc3d4b!important}

/* Every admin action remains legible, including outline buttons. */
.builder .btn,.admin .btn,.dashboard .btn,.builder button,.admin button,.dashboard button{background:#087f5b!important;color:#fff!important;border-color:#087f5b!important;text-shadow:none!important;opacity:1!important}
.builder .btn.alt,.admin .btn.alt,.dashboard .btn.alt,.builder .btn.ghost,.admin .btn.ghost,.dashboard .btn.ghost{background:#fff!important;color:#075f47!important;border:1px solid #087f5b!important}
.builder .btn.danger,.admin .btn.danger{background:#fff!important;color:#a32131!important;border-color:#a32131!important}
.admin-toolbar>.btn.alt{background:#fff!important;color:#075f47!important}

/* Product header: image first, then product name, description, price and button. */
.product-hero{display:block!important;width:min(1040px,calc(100% - 40px))!important;padding:44px 0 30px!important}
.product-hero>.gallery{width:100%!important;margin:0 0 34px!important;display:block!important}
.product-hero>.gallery img:first-child{display:block!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;border-radius:12px!important;background:#fff!important}
.product-hero>div:last-child{width:100%!important;max-width:900px!important;margin:0 auto!important}
.product-hero h1{font-size:clamp(2.5rem,6vw,5rem)!important;margin:10px 0 18px!important}
.product-hero .lead{max-width:800px!important}
.product-hero .plans{margin-top:24px!important}

/* Detailed sections: image on top and its writing immediately underneath. */
.story-section{padding:34px 0!important}
.story-block,.story-block.reverse{display:block!important;width:min(1040px,calc(100% - 40px))!important}
.story-block.reverse .story-media{order:initial!important}
.story-media{width:100%!important;margin:0 0 24px!important}
.story-media img{width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;border-radius:12px!important;background:#fff!important}
.story-copy{width:100%!important;max-width:900px!important;margin:0 auto!important}
.story-copy h2{font-size:clamp(1.8rem,4vw,3rem)!important;margin:0 0 12px!important}
.story-copy .prose{max-width:none!important}

/* Remove oversized blank gaps around the legacy description. */
.product-hero+section{padding:28px 0!important}

@media(max-width:620px){.product-hero,.story-block,.story-block.reverse{width:calc(100% - 22px)!important}.product-hero{padding-top:28px!important}.product-hero>.gallery{margin-bottom:22px!important}.story-section{padding:24px 0!important}}

/* Partner wallet */
.affiliate-wallet{display:grid;grid-template-columns:1fr 1fr;gap:14px}.affiliate-wallet .sheet,.affiliate-wallet input,.affiliate-wallet select,.affiliate-wallet textarea,.affiliate-wallet button,.affiliate-wallet .btn,.affiliate-hero .btn,.benefit-card,.profile-card{border-radius:0!important}.method-mark{display:inline-grid;place-items:center;width:28px;height:28px;background:#06131d;color:#28e7a0;border:1px solid #245044;font-size:8px;font-weight:900;margin-right:7px;vertical-align:middle}.affiliate-join .sheet{border-radius:0!important}.affiliate-join .table{table-layout:fixed;width:100%}.affiliate-join .table td,.affiliate-join .table th{overflow-wrap:anywhere}
@media(max-width:720px){.affiliate-wallet{grid-template-columns:1fr}.affiliate-join .profile-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.affiliate-join .profile-card{padding:9px}.affiliate-join .profile-card span{font-size:9px}.affiliate-join .profile-card b{font-size:17px}.affiliate-join .table th,.affiliate-join .table td{font-size:8px;padding:4px}.affiliate-join .form{grid-template-columns:1fr}}
