/* MetaBantrix shared storefront theme: near-black, cream and gold. Presentation only. */
:root{
  --mbx-bg:#010102; --mbx-surface:#0b0c11; --mbx-raised:#12141b; --mbx-line:rgba(255,255,255,.09);
  --mbx-gold:#d3ab52; --mbx-gold-bright:#ecc974; --mbx-gold-dim:#8f7436;
  --mbx-cream:#efe7d4; --mbx-muted:#b9b09b; --mbx-ink:#14100a;
  --mbx-sans:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mbx-display:'Cormorant Garamond','Cinzel',Georgia,serif;
}
html{background:var(--mbx-bg)!important;color-scheme:dark}
html body{
  background:var(--mbx-bg)!important;
  background-image:radial-gradient(ellipse 80% 40% at 50% -8%,rgba(211,171,82,.13),transparent 70%)!important;
  background-attachment:scroll!important;
  color:var(--mbx-cream)!important;font-family:var(--mbx-sans)!important;line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
html body:not(:has(.gateway-shell)) h1,html body:not(:has(.gateway-shell)) h2,html body:not(:has(.gateway-shell)) h3{font-family:var(--mbx-display)!important;font-weight:500!important;color:var(--mbx-cream)!important;letter-spacing:.005em}
html body:not(:has(.gateway-shell)) h1{font-size:clamp(2.3rem,5.4vw,4.2rem)!important;line-height:1.08!important}
html body:not(:has(.gateway-shell)) h2{font-size:clamp(1.6rem,3.4vw,2.4rem)!important}
html body:not(:has(.gateway-shell)) p,html body:not(:has(.gateway-shell)) li{color:var(--mbx-muted)}
html body:not(:has(.gateway-shell)) a{color:var(--mbx-gold-bright)}
html body:not(:has(.gateway-shell)) a:hover{color:#fff1c8}
::selection{background:var(--mbx-gold);color:var(--mbx-ink)}

/* Buy / primary actions: always prominent */
html body:not(:has(.gateway-shell)) a.buy,html body:not(:has(.gateway-shell)) a.btn,html body:not(:has(.gateway-shell)) a.cta,html body:not(:has(.gateway-shell)) a.action:not(.secondary),html body:not(:has(.gateway-shell)) a.sale-buy,html body:not(:has(.gateway-shell)) .quick-buy a,
html body:not(:has(.gateway-shell)) a.quick-buy,html body:not(:has(.gateway-shell)) a[href*="/buy/kindle/"].mbx-primary,html body:not(:has(.gateway-shell)) button.plan-checkout,html body:not(:has(.gateway-shell)) .book-actions a:last-child,
html body:not(:has(.gateway-shell)) a.primary,html body:not(:has(.gateway-shell)) button[type=submit]:not([disabled]){
  background:linear-gradient(180deg,var(--mbx-gold-bright),var(--mbx-gold))!important;color:var(--mbx-ink)!important;
  border:1px solid rgba(255,230,160,.5)!important;border-radius:10px!important;font-family:var(--mbx-sans)!important;
  font-weight:700!important;letter-spacing:.04em;text-decoration:none!important;box-shadow:0 6px 24px rgba(211,171,82,.18);
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;
}
html body:not(:has(.gateway-shell)) a.buy:hover,html body:not(:has(.gateway-shell)) a.btn:hover,html body:not(:has(.gateway-shell)) a.cta:hover,html body:not(:has(.gateway-shell)) a.action:not(.secondary):hover,html body:not(:has(.gateway-shell)) a.sale-buy:hover,
html body:not(:has(.gateway-shell)) .quick-buy a:hover,html body:not(:has(.gateway-shell)) button.plan-checkout:hover,html body:not(:has(.gateway-shell)) .book-actions a:last-child:hover{
  filter:brightness(1.07);transform:translateY(-1px);box-shadow:0 10px 30px rgba(211,171,82,.28);color:var(--mbx-ink)!important}
/* Secondary links */
html body:not(:has(.gateway-shell)) a.detail,html body:not(:has(.gateway-shell)) a.action.secondary,html body:not(:has(.gateway-shell)) .book-actions a:first-child{
  background:transparent!important;color:var(--mbx-gold-bright)!important;border:1px solid var(--mbx-gold-dim)!important;border-radius:10px!important;text-decoration:none!important}

/* Cards: cover, title, price, buy */
html body:not(:has(.gateway-shell)) article,html body:not(:has(.gateway-shell)) .sale-card,html body:not(:has(.gateway-shell)) .book,html body:not(:has(.gateway-shell)) .book-card,html body:not(:has(.gateway-shell)) .tile,html body:not(:has(.gateway-shell)) .card,html body:not(:has(.gateway-shell)) .plan-card{
  background:var(--mbx-surface)!important;border:1px solid var(--mbx-line)!important;border-radius:16px!important;color:var(--mbx-cream)!important}
html body:not(:has(.gateway-shell)) .sale-meta,html body:not(:has(.gateway-shell)) .book-format{color:var(--mbx-gold)!important;letter-spacing:.14em;font-size:.7rem!important;text-transform:uppercase}
html body:not(:has(.gateway-shell)) .sale-card img,html body:not(:has(.gateway-shell)) .book img,html body:not(:has(.gateway-shell)) .book-card img{border-radius:8px;box-shadow:0 14px 40px rgba(0,0,0,.6)}
html body:not(:has(.gateway-shell)) details{background:var(--mbx-surface)!important;border:1px solid var(--mbx-line)!important;border-radius:14px!important}
html body:not(:has(.gateway-shell)) summary{color:var(--mbx-gold-bright)!important;letter-spacing:.1em}
html body:not(:has(.gateway-shell)) input,html body:not(:has(.gateway-shell)) select,html body:not(:has(.gateway-shell)) textarea{background:var(--mbx-raised)!important;color:var(--mbx-cream)!important;border:1px solid var(--mbx-line)!important;border-radius:10px!important;font-family:var(--mbx-sans)!important}
html body:not(:has(.gateway-shell)) header{border-color:var(--mbx-line)!important}
html body:not(:has(.gateway-shell)) .brand,html body:not(:has(.gateway-shell)) .brand-name{color:var(--mbx-gold)!important;font-family:var(--mbx-display)!important;letter-spacing:.2em!important;font-weight:600!important}
html body:not(:has(.gateway-shell)) hr{border-color:var(--mbx-line)}

/* SPA store cards and buy buttons */
html body .gateway-shell .book-card,html body .gateway-shell .plan-card{background:var(--mbx-surface)!important;border:1px solid var(--mbx-line)!important;border-radius:16px!important}
html body .gateway-shell .book-actions a:last-child,html body .gateway-shell button.plan-checkout{background:linear-gradient(180deg,var(--mbx-gold-bright),var(--mbx-gold))!important;color:var(--mbx-ink)!important;border:1px solid rgba(255,230,160,.5)!important;border-radius:10px!important;font-weight:700!important;text-decoration:none!important}
html body .gateway-shell .book-actions a:first-child{background:transparent!important;color:var(--mbx-gold-bright)!important;border:1px solid var(--mbx-gold-dim)!important;border-radius:10px!important}
html body .gateway-shell .book-format{color:var(--mbx-gold)!important;letter-spacing:.14em;font-size:.7rem!important}

/* React storefront shell */
html body .gateway-shell{background:transparent!important}
html body .gateway-header{position:sticky;top:0;z-index:30;background:rgba(1,1,2,.82)!important;backdrop-filter:blur(14px);border-bottom:1px solid var(--mbx-line)!important;padding:12px clamp(14px,4vw,40px)!important;gap:18px}
html body .brand-name{font-size:1.15rem!important}
html body .brand-subline{font-family:var(--mbx-display)!important;font-style:italic;letter-spacing:.02em!important;text-transform:none!important;color:var(--mbx-muted)!important;font-size:.98rem!important}
html body .surface-status{display:none!important}
html body .module-context{visibility:hidden!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;border:0!important}
html body .module-switcher{gap:4px!important}
html body .module-button{background:transparent!important;border:1px solid transparent!important;color:var(--mbx-muted)!important;font-family:var(--mbx-sans)!important;letter-spacing:.14em;font-size:.74rem!important;border-radius:999px!important;padding:9px 16px!important;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
html body .module-button.active,html body .module-button:hover{color:var(--mbx-ink)!important;background:var(--mbx-gold)!important;border-color:var(--mbx-gold)!important}
html body .civilization-aura{opacity:.28!important}
html body .engine-stage{background:transparent!important}
html body .store-panel{display:flex!important;flex-direction:column;max-width:1240px;margin:0 auto;padding:0 clamp(14px,4vw,40px) 80px!important}
html body .store-panel>*{order:10}
html body .store-panel>.store-language{order:0;display:flex;justify-content:flex-end;opacity:.8}
html body .store-panel>.store-language>span{display:none}
html body .store-panel>.store-hero{order:1;text-align:center;padding:clamp(48px,9vw,110px) 0 clamp(28px,5vw,56px)!important;background:none!important;border:0!important}
html body .store-hero h1{margin:.2em auto .25em!important;max-width:16ch}
html body .store-hero p{max-width:56ch;margin:0 auto 1.2rem;font-size:1.08rem}
html body .store-kicker{display:none!important}
html body .mbx-tagline{font-family:var(--mbx-display);font-style:italic;font-size:clamp(1.25rem,2.6vw,1.9rem);color:var(--mbx-gold-bright);margin:0 0 10px;letter-spacing:.01em}
html body .store-panel>section[aria-label="MetaBantrix membership tiers and pricing"]{order:40;background:var(--mbx-surface)!important;border:1px solid var(--mbx-line)!important}
html body .store-panel>section[aria-label="MetaBantrix membership tiers and pricing"] h2{color:var(--mbx-cream)!important;font-family:var(--mbx-display)!important}
html body .store-panel>section[aria-label="MetaBantrix membership tiers and pricing"] button{background:var(--mbx-raised)!important;border:1px solid var(--mbx-line)!important;color:var(--mbx-cream)!important;border-radius:12px!important}
html body .store-panel section,html body .store-panel details{background-image:none!important}
html body .store-panel section[style]{background:var(--mbx-surface)!important;border-color:var(--mbx-line)!important}
html body .store-panel h2,html body .store-panel h3{color:var(--mbx-cream)!important}
html body .store-section-head span{color:var(--mbx-gold)!important;letter-spacing:.16em}
html body .mbx-digital-book-art small,html body .book-card .mbx-digital-book-art small{display:none!important}
html body .book-grid{gap:20px!important}
html body .gateway-footer{border-top:1px solid var(--mbx-line)!important;background:transparent!important;color:var(--mbx-muted)!important;font-family:var(--mbx-sans)}
html body .gateway-footer .footer-quote{font-family:var(--mbx-display);font-style:italic;color:var(--mbx-gold-bright)}

/* Static page chrome */
html body:not(:has(.gateway-shell)) main{max-width:1180px}
html body:not(:has(.gateway-shell)) header{background:transparent!important}
@media (max-width:760px){html body .brand-subline{display:none}html body .module-switcher{overflow-x:auto}}

/* Layout wrappers that must not look like cards */
html body:not(:has(.gateway-shell)) article.layout,html body:not(:has(.gateway-shell)) article.hero,html body:not(:has(.gateway-shell)) main>article:only-child{background:transparent!important;border:0!important;border-radius:0!important}
html body:not(:has(.gateway-shell)) section{background-color:rgba(11,12,17,.55)!important;border-color:var(--mbx-line)!important}
html body:not(:has(.gateway-shell)) section.hero,html body:not(:has(.gateway-shell)) section.hero-section{background:transparent!important}
html body:not(:has(.gateway-shell)) details>summary{background:transparent!important}
html body:not(:has(.gateway-shell)) a[href*="/buy/"]:not(.sale-buy):not(.cta):not(.buy):not(.btn):not(.action){color:var(--mbx-gold-bright)}

/* World pages: Intelligence, Markets, Orchestration (SPA sections) */
.gateway-shell .mbx-world{max-width:1120px;margin:0 auto;padding:34px 22px 90px;color:#efe7d4;font-family:'DM Sans',system-ui,sans-serif}
.gateway-shell .mbx-world-return a{display:inline-block;color:#d3ab52;font-size:12px;letter-spacing:.14em;text-decoration:none;padding:8px 0}
.gateway-shell .mbx-world-return a:hover{color:#ecc974}
.gateway-shell .mbx-world-hero{text-align:center;padding:44px 0 30px}
.gateway-shell .mbx-world-eyebrow{color:#d3ab52;font-size:12px;letter-spacing:.3em}
.gateway-shell .mbx-world-hero h1{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:clamp(40px,6vw,76px);line-height:1.05;color:#efe7d4;margin:14px 0}
.gateway-shell .mbx-world-lead{max-width:62ch;margin:0 auto;font-size:clamp(16px,1.6vw,20px);line-height:1.6;color:#cfc6b2}
.gateway-shell .mbx-world-section{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:clamp(26px,3vw,38px);color:#ecc974;margin:44px 0 8px}
.gateway-shell .mbx-world-note{color:#b9b09c;margin:0 0 18px}
.gateway-shell .mbx-world-grid,.gateway-shell .mbx-world-books{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px;margin-top:20px}
.gateway-shell .mbx-world-card,.gateway-shell .mbx-world-book{background:#0b0c11;border:1px solid rgba(211,171,82,.35);border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:10px}
.gateway-shell .mbx-world-card h2,.gateway-shell .mbx-world-book h3{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:24px;line-height:1.2;color:#efe7d4;margin:0}
.gateway-shell .mbx-world-card p{margin:0;color:#cfc6b2;line-height:1.55;flex:1}
.gateway-shell .mbx-world-tag{color:#d3ab52;font-size:11px;letter-spacing:.2em}
.gateway-shell .mbx-world-price{color:#ecc974;letter-spacing:.08em}
.gateway-shell .mbx-world-book img{width:100%;height:210px;object-fit:contain}
.gateway-shell .mbx-world-paths{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:6px 0 10px}
.gateway-shell .mbx-world-cta{display:inline-block;text-align:center;padding:12px 16px;border-radius:9px;background:linear-gradient(135deg,#ecc974,#d3ab52);color:#0b0c11;font-weight:700;font-size:13px;letter-spacing:.06em;text-decoration:none}
.gateway-shell .mbx-world-cta:hover{filter:brightness(1.08)}
.gateway-shell .mbx-world-link{color:#ecc974;text-align:center;font-size:12px;letter-spacing:.1em}
.gateway-shell .mbx-world a:focus-visible{outline:2px solid #ecc974;outline-offset:3px}

/* Planet-aware recommendations */
.gateway-shell .mbx-rec{max-width:1120px;margin:0 auto;padding:22px 22px 8px;color:#efe7d4;font-family:'DM Sans',system-ui,sans-serif}
.gateway-shell .mbx-rec .mbx-world-section{margin-top:8px}
.gateway-shell .mbx-rec-card{background:#0b0c11;border:1px solid rgba(211,171,82,.35);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:9px}
.gateway-shell .mbx-rec-card h3{font-family:'Cormorant Garamond',Georgia,serif;font-weight:500;font-size:22px;line-height:1.2;color:#efe7d4;margin:0}
.gateway-shell .mbx-rec-text{margin:0;color:#cfc6b2;font-size:14px;line-height:1.5;flex:1}
.gateway-shell .mbx-rec-price{color:#ecc974;letter-spacing:.06em;font-size:15px}
.gateway-shell .mbx-rec-note{color:#a89f8a;font-size:12px;line-height:1.5}
.gateway-shell .mbx-rec-note a{color:#d3ab52;text-decoration:underline}
