/* CRE membership v46: scoped day/dark theme fixes and no global forced white text */
:root{--cre-hot:#ef2f63;--cre-orange:#ff5a2c;--cre-gold:#d6b44c;--cre-ink:#101827;--cre-muted:#475569;--cre-cream:#f7f1e8;--cre-dark:#07050b;}
body.route-membership,body.route-membership-wallet{background:var(--cre-cream)!important;color:#111827!important;}
html[data-theme="dark"] body.route-membership,html[data-theme="dark"] body.route-membership-wallet,body.dark.route-membership,body.dark.route-membership-wallet,body.theme-dark.route-membership,body.theme-dark.route-membership-wallet{background:var(--cre-dark)!important;color:#fff!important;}
.creMemberV30Hero,.creWalletHero{background:radial-gradient(circle at 70% 0%,rgba(239,47,99,.26),transparent 34%),linear-gradient(135deg,#07050b 0%,#170817 42%,#4a061d 100%)!important;color:#fff!important;padding:76px 0 62px!important;}
.creMemberV30Grid,.creWalletGrid{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(320px,.75fr)!important;gap:42px!important;align-items:center!important;}
.creBadge{display:inline-flex!important;border:1px solid rgba(239,47,99,.55)!important;background:rgba(239,47,99,.10)!important;color:#ff6f9a!important;border-radius:999px!important;padding:8px 14px!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.16em!important;font-weight:950!important;}
.creMemberV30Hero h1,.creWalletHero h1{font-family:Anton,Impact,"Arial Narrow",sans-serif!important;text-transform:uppercase!important;font-size:clamp(52px,7vw,108px)!important;line-height:.88!important;letter-spacing:-.02em!important;margin:16px 0!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:0 18px 50px rgba(0,0,0,.42)!important;max-width:920px!important;}
.creMemberV30Hero p,.creWalletHero p{max-width:820px!important;color:rgba(255,255,255,.92)!important;-webkit-text-fill-color:rgba(255,255,255,.92)!important;font-size:20px!important;line-height:1.55!important;}
.creMemberV30Panel,.creWalletPanel{background:#10131d!important;border:1px solid rgba(255,255,255,.16)!important;color:#fff!important;border-radius:30px!important;padding:28px!important;box-shadow:0 26px 70px rgba(0,0,0,.28)!important;}
.creMemberV30Panel *,.creWalletPanel *{color:#fff!important;-webkit-text-fill-color:#fff!important;}
.creMembershipBody,.creWalletBody,.creMemberV30Hero + .section,.creWalletHero + .section{background:var(--cre-cream)!important;color:#111827!important;padding:34px 0 60px!important;}
html[data-theme="dark"] .creMembershipBody,html[data-theme="dark"] .creWalletBody,html[data-theme="dark"] .creMemberV30Hero + .section,html[data-theme="dark"] .creWalletHero + .section,body.dark .creMembershipBody,body.dark .creWalletBody{background:var(--cre-dark)!important;color:#fff!important;}
.creMemberV30Layout{display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr)!important;gap:24px!important;align-items:start!important;}
.creMemberV30Card,.creMemberV30Side,.creWalletCard,.memberWalletTicket,.certLandingCard,.creAdminV32,.creAdminPanel{background:#10131d!important;border:1px solid rgba(255,255,255,.14)!important;color:#fff!important;border-radius:28px!important;padding:28px!important;box-shadow:0 24px 70px rgba(0,0,0,.18)!important;}
.creMemberV30Card h1,.creMemberV30Card h2,.creMemberV30Card h3,.creMemberV30Card p,.creMemberV30Card label,.creMemberV30Card li,.creMemberV30Side h1,.creMemberV30Side h2,.creMemberV30Side h3,.creMemberV30Side p,.creMemberV30Side li,.creWalletCard h1,.creWalletCard h2,.creWalletCard h3,.creWalletCard p,.creWalletCard label,.memberWalletTicket h1,.memberWalletTicket h2,.memberWalletTicket h3,.memberWalletTicket p,.memberWalletTicket b,.memberWalletTicket span,.memberWalletTicket li{color:#fff!important;-webkit-text-fill-color:#fff!important;}
.creMemberV30Card .muted,.creMemberV30Side .muted,.creWalletCard .muted,.memberWalletTicket .muted{color:rgba(255,255,255,.78)!important;-webkit-text-fill-color:rgba(255,255,255,.78)!important;}
.creMemberV30Form label,.creWalletForm label{display:grid!important;gap:8px!important;color:#ff6f9a!important;-webkit-text-fill-color:#ff6f9a!important;text-transform:uppercase!important;letter-spacing:.13em!important;font-size:12px!important;font-weight:950!important;}
.creMemberV30Form input,.creMemberV30Form textarea,.creMemberV30Form select,.creWalletForm input,.creWalletForm textarea,.creWalletForm select{width:100%!important;background:#fff!important;color:#111827!important;-webkit-text-fill-color:#111827!important;border:1px solid rgba(15,23,42,.18)!important;border-radius:16px!important;min-height:52px!important;padding:13px 15px!important;font-weight:800!important;box-sizing:border-box!important;}
.creMemberV30Form textarea{min-height:112px!important;resize:vertical!important;}
.creMemberV30Form .grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;}
.btn,.creMemberV30Actions .btn,.creWalletForm .btn,.creMemberV30Form .btn,.creAdminSearch .btn,.creAdminPanel .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:48px!important;padding:0 22px!important;border-radius:999px!important;background:linear-gradient(135deg,var(--cre-hot),var(--cre-orange))!important;border:0!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none!important;font-weight:950!important;box-shadow:0 16px 36px rgba(255,49,95,.18)!important;cursor:pointer!important;}
.btn.ghost,.creMemberV30Actions .btn.ghost,.creWalletForm .btn.ghost{background:rgba(15,18,28,.88)!important;border:1px solid rgba(255,255,255,.22)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:none!important;}
.creMemberV30Actions,.creWalletActions{display:flex!important;gap:12px!important;flex-wrap:wrap!important;margin-top:22px!important;}
.creSuccess{background:#e6f7ed!important;border:1px solid #10b981!important;color:#064e3b!important;-webkit-text-fill-color:#064e3b!important;border-radius:16px!important;padding:13px 16px!important;margin:14px 0!important;font-weight:800!important;}
.creError{background:#fee2e2!important;border:1px solid #ef4444!important;color:#7f1d1d!important;-webkit-text-fill-color:#7f1d1d!important;border-radius:16px!important;padding:13px 16px!important;margin:14px 0!important;font-weight:800!important;}
.creNotice{background:#fff7ed!important;border:1px solid #fb923c!important;color:#7c2d12!important;-webkit-text-fill-color:#7c2d12!important;border-radius:16px!important;padding:13px 16px!important;margin:14px 0!important;font-weight:800!important;}
.creWalletTop h2,.creWalletBody h1,.creWalletBody h2{color:#111827!important;-webkit-text-fill-color:#111827!important;text-shadow:none!important;}
.creWalletTop p,.creWalletBody > .container > p,.creWalletBody .muted{color:#334155!important;-webkit-text-fill-color:#334155!important;}
html[data-theme="dark"] .creWalletTop h2,html[data-theme="dark"] .creWalletBody h1,html[data-theme="dark"] .creWalletBody h2,body.dark .creWalletTop h2,body.dark .creWalletBody h1,body.dark .creWalletBody h2{color:#fff!important;-webkit-text-fill-color:#fff!important;}
html[data-theme="dark"] .creWalletTop p,html[data-theme="dark"] .creWalletBody > .container > p,html[data-theme="dark"] .creWalletBody .muted,body.dark .creWalletTop p,body.dark .creWalletBody .muted{color:rgba(255,255,255,.78)!important;-webkit-text-fill-color:rgba(255,255,255,.78)!important;}
.memberWalletTicket{display:grid!important;grid-template-columns:170px minmax(0,1fr)!important;gap:26px!important;align-items:center!important;margin:18px 0!important;}
.memberWalletTicket .qr img{background:#fff!important;border-radius:18px!important;padding:12px!important;max-width:150px!important;height:auto!important;}
.memberWalletTicket .detailsGrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:16px 0!important;}
.memberWalletTicket .detailsGrid div{background:#050508!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:14px!important;padding:12px!important;color:#fff!important;}
.memberWalletTicket .detailsGrid span{display:block!important;color:#ff6f9a!important;-webkit-text-fill-color:#ff6f9a!important;font-size:11px!important;letter-spacing:.12em!important;text-transform:uppercase!important;font-weight:950!important;}
.memberWalletTicket .detailsGrid b{display:block!important;color:#fff!important;-webkit-text-fill-color:#fff!important;margin-top:6px!important;font-size:16px!important;}
@media(max-width:900px){.creMemberV30Grid,.creWalletGrid,.creMemberV30Layout{grid-template-columns:1fr!important}.creMemberV30Hero,.creWalletHero{padding:50px 0 42px!important}.creMemberV30Form .grid,.memberWalletTicket,.memberWalletTicket .detailsGrid{grid-template-columns:1fr!important}.creMemberV30Hero h1,.creWalletHero h1{font-size:clamp(44px,16vw,72px)!important}.creMemberV30Hero p,.creWalletHero p{font-size:17px!important}.creWalletPanel,.creMemberV30Panel{padding:22px!important}}

.creCertLandingV33,.creVerifyPage,.creCancelPage{background:var(--cre-cream)!important;color:#111827!important;padding:60px 0!important;min-height:65vh!important;}
html[data-theme="dark"] .creCertLandingV33,html[data-theme="dark"] .creVerifyPage,html[data-theme="dark"] .creCancelPage,body.dark .creCertLandingV33,body.dark .creVerifyPage,body.dark .creCancelPage{background:#07050b!important;color:#fff!important;}
.certLandingCard,.verifyCard,.cancelCard{max-width:980px;margin:auto;background:#10131d!important;border:1px solid rgba(255,255,255,.14)!important;color:#fff!important;border-radius:28px!important;padding:30px!important;box-shadow:0 24px 70px rgba(0,0,0,.18)!important;}
.certLandingCard *,.verifyCard *,.cancelCard *{color:inherit}.certLandingCard h1,.verifyCard h1,.cancelCard h1{font-family:Anton,Impact,"Arial Narrow",sans-serif!important;font-size:clamp(42px,7vw,86px)!important;line-height:.9!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-transform:uppercase!important;margin:18px 0!important}.certLandingCard p,.verifyCard p,.cancelCard p{color:rgba(255,255,255,.84)!important;-webkit-text-fill-color:rgba(255,255,255,.84)!important}.certLandingGrid,.verifyGrid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:20px 0!important}.certLandingGrid div,.verifyGrid div{background:#050508!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:14px!important;padding:14px!important}.certLandingGrid span,.verifyGrid span{display:block!important;color:#ff6f9a!important;-webkit-text-fill-color:#ff6f9a!important;text-transform:uppercase!important;letter-spacing:.12em!important;font-size:11px!important;font-weight:950!important}.certLandingGrid b,.verifyGrid b{display:block!important;color:#fff!important;-webkit-text-fill-color:#fff!important;margin-top:6px!important}@media(max-width:760px){.certLandingGrid,.verifyGrid{grid-template-columns:1fr!important}}

/* v46: ticket-style mail rollback build; theme variables remain scoped. */


/* CRE v47 hard readability correction. This sets the variables the inline wallet headings already reference. */
body.route-membership,body.route-membership-wallet{
  --cre-page-bg:#f7f1e8!important;
  --cre-page-text:#111827!important;
  --cre-page-muted:#334155!important;
}
html[data-theme="dark"] body.route-membership,html[data-theme="dark"] body.route-membership-wallet,
body.dark.route-membership,body.dark.route-membership-wallet,body.theme-dark.route-membership,body.theme-dark.route-membership-wallet{
  --cre-page-bg:#07050b!important;
  --cre-page-text:#ffffff!important;
  --cre-page-muted:rgba(255,255,255,.78)!important;
}
.creMembershipBody,.creWalletBody{background:var(--cre-page-bg)!important;color:var(--cre-page-text)!important;}
.creWalletTop h2,.creWalletTop p,.creWalletBody h1,.creWalletBody h2,.creWalletBody p,
.creMembershipBody h1,.creMembershipBody h2,.creMembershipBody p{color:var(--cre-page-text)!important;-webkit-text-fill-color:var(--cre-page-text)!important;text-shadow:none!important;}
.creWalletTop p,.creWalletBody .muted,.creMembershipBody .muted{color:var(--cre-page-muted)!important;-webkit-text-fill-color:var(--cre-page-muted)!important;}
.creMemberV30Card,.creMemberV30Side,.creWalletCard,.memberWalletTicket{background:#10131d!important;color:#fff!important;}
.creMemberV30Card h1,.creMemberV30Card h2,.creMemberV30Card h3,.creMemberV30Card p,.creMemberV30Card label,.creMemberV30Card li,
.creMemberV30Side h1,.creMemberV30Side h2,.creMemberV30Side h3,.creMemberV30Side p,.creMemberV30Side li,
.creWalletCard h1,.creWalletCard h2,.creWalletCard h3,.creWalletCard p,.creWalletCard label,.creWalletCard li,
.memberWalletTicket h1,.memberWalletTicket h2,.memberWalletTicket h3,.memberWalletTicket p,.memberWalletTicket b,.memberWalletTicket span,.memberWalletTicket li{color:#fff!important;-webkit-text-fill-color:#fff!important;}
.creSuccess{background:#e6f7ed!important;color:#064e3b!important;-webkit-text-fill-color:#064e3b!important;border-color:#10b981!important;}
.creError{background:#fee2e2!important;color:#7f1d1d!important;-webkit-text-fill-color:#7f1d1d!important;border-color:#ef4444!important;}
body.route-membership .site-footer,body.route-membership-wallet .site-footer{clear:both!important;}
