/* Member storefront only; financial and account pages keep their existing layout. */
#ov-buy .member-context-help { color: #93c5fd; }
.member-key-summary { padding: 24px; margin: 24px 0; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 16px; color: #172033; }
.member-key-summary[hidden] { display: none; }
.member-key-summary h2 { font-size: 22px; margin-bottom: 12px; }
.member-key-summary p, .member-key-summary li { line-height: 1.7; }
.member-key-summary ul { padding-left: 20px; margin: 12px 0; }
.member-summary-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.member-summary-actions button { min-height: 44px; padding: 10px 14px; border: 1px solid #2563eb; border-radius: 9px; background: #fff; color: #1d4ed8; font: inherit; cursor: pointer; }
.member-summary-actions button:first-child { background: #2563eb; color: #fff; }
#pg-home :is(.member-saving, .member-promo-label, [style*="font-size:10px"], [style*="font-size:11px"]) { font-size: 12px !important; }
@media(max-width:768px) {
  body.storefront-guest:has(#pg-home.active) .ai-fab-container { display: none !important; }
  body:not(.storefront-guest) .ai-fab-container { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
  .member-key-summary { padding: 18px; }
}
#pg-home { max-width:1200px; margin-inline:auto; }
#pg-home .cards { max-width:1200px; gap:20px; grid-template-columns:repeat(3,minmax(0,1fr)); }
#pg-home .page-header { margin:24px 0 20px; }
#pg-home .page-header h2 { font-size:28px; line-height:1.25; }
#pg-home .page-header p { color:#a1a1aa; line-height:1.6; }
#pg-home .filters { justify-content:center; margin-bottom:28px; }
#pg-home .flt { min-height:44px; font-size:14px; }
#pg-home .product { border-color:#27272a; display:flex; flex-direction:column; }
#pg-home .product.card-combo { border:2px solid #3b82f6 !important; box-shadow:0 0 0 3px rgb(59 130 246 / 12%); }
#pg-home .prod-thumb { height:170px !important; aspect-ratio:auto; }
#pg-home .prod-body { padding:18px 18px 0; flex:1; }
#pg-home .prod-body > div:first-child { flex-wrap:wrap; gap:8px; }
#pg-home .prod-name, #pg-home .combo-glow-title { font-size:20px; font-weight:700; color:#f8fafc; line-height:1.35; }
#pg-home .prod-body > div:first-child > .prod-name[style] { font-size:20px !important; font-weight:700 !important; color:#f8fafc !important; background:none !important; }
#pg-home .prod-body > div:first-child > div[style]:not(.prod-name) { font-size:12px !important; }
#pg-home .prod-thumb > span { font-size:12px !important; }
#pg-home .product > div:last-child[style] { display:none !important; }
/* Unverified review counts and savings claims are not decision-making evidence. */
#pg-home .prod-body > div:first-child > div[style]:not(.prod-name),
#pg-home .card-combo > div:first-child[style] { display:none !important; }
#pg-home .prod-tag { font-size:12px; }
#pg-home .prod-body > div:nth-child(2) { font-size:14px !important; line-height:1.55 !important; min-height:0; }
#pg-home .price-list { border:0; overflow:visible; display:grid; gap:8px; }
#pg-home .price-row { cursor:pointer; border:1px solid #3f3f46; border-radius:10px; min-height:48px; padding:10px 12px; gap:8px; }
#pg-home .price-row[aria-checked="true"] { border-color:#60a5fa; background:rgb(59 130 246 / 13%); box-shadow:inset 3px 0 #3b82f6; }
#pg-home .pr-dur { color:#d4d4d8; text-transform:none; font-size:14px; letter-spacing:0; }
#pg-home .pr-val, #pg-home .pr-val.hot { color:#fff !important; font-size:17px; white-space:nowrap; }
#pg-home .pr-val .old, #pg-home .pr-val .stag { display:none; }
#pg-home .pr-val { text-align:right; white-space:normal; }
.member-saving { display:block; font-size:11px; line-height:1.5; color:#86efac; font-weight:400; }
.member-promo-price { display:block; color:#94a3b8; font-size:12px; font-weight:400; }
.member-promo-label { display:block; color:#fbbf24; font-size:11px; line-height:1.5; font-weight:400; }
#buy-price-breakdown { margin:12px 0; padding:12px; border:1px solid #334155; border-radius:8px; color:#cbd5e1; line-height:1.65; font-size:14px; }
#buy-plans .plan-card { width:100%; text-align:left; font-family:inherit; color:#e2e8f0; background:#151d2d; flex-wrap:wrap; gap:6px 12px; min-height:48px; cursor:pointer; }
#buy-plans .plan-card.on { border-color:#60a5fa; background:#172b4d; }
#buy-plans .member-saving, #buy-plans .member-promo-price, #buy-plans .member-promo-label { flex-basis:100%; white-space:normal; overflow-wrap:anywhere; }
#buy-plans .plan-card:focus-visible { outline:3px solid #93c5fd; outline-offset:2px; }
#pg-home .prod-actions { flex-direction:column; margin-top:auto; }
#pg-home .btn-mua { flex:0 0 auto; width:100%; background:#2563eb !important; color:#fff; min-height:48px; font-size:14px !important; text-transform:none; letter-spacing:0; box-shadow:none !important; line-height:1.5; }
#pg-home .btn-mua:hover { background:#1d4ed8; }
#pg-home .btn-detail { flex:0 0 auto; width:100%; justify-content:center; color:#bfdbfe; background:#17243a; border:1px solid #3b5275; min-height:44px; font-size:14px; }
#pg-home .member-security { display:flex; align-items:flex-start; gap:12px; padding:10px 14px; border:1px solid #3f3f46; background:#18181b; color:#b4b4bd; border-radius:10px; font-size:13px; line-height:1.6; animation:none; box-shadow:none; }
.member-security p { margin:0; flex:1; }
.member-security button { background:none; border:0; color:#fecaca; min-width:44px; min-height:44px; cursor:pointer; font-size:20px; }
.member-referral { margin:16px 0; border:1px solid #3f3f46; border-radius:10px; padding:12px; }
.member-referral summary { cursor:pointer; color:#93c5fd; font-size:14px; min-height:44px; line-height:44px; }
.member-referral .ref-apply-banner { margin:12px 0 0; padding:12px; animation:none; box-shadow:none; border:0; background:none; }
.member-referral .ref-apply-glow, .member-referral .ref-apply-left { display:none; }
.member-referral .ref-apply-content, .member-referral .ref-apply-right { width:100%; display:block; }
.member-referral .ref-form-wrapper { max-width:none; }
.member-referral input { min-width:0; font-size:14px; }
.member-referral .ref-input-box { min-width:0; }
#pg-home button:focus-visible, #pg-home [role="radio"]:focus-visible, .member-referral summary:focus-visible { outline:3px solid #93c5fd; outline-offset:3px; }
body.member-refresh .sp-toast { display:none !important; }
#pg-home .mascot-robot-banner { padding:20px; border:1px solid #334155; background:#111827; box-shadow:none; gap:18px; }
#pg-home .mascot-robot-banner::after { display:none; }
#pg-home .robot-avatar-wrap { display:none; }
#pg-home .robot-bubble { display:block; width:100%; }
#pg-home .robot-online-status { display:none; }
#pg-home .robot-bubble-text { color:#cbd5e1; font-size:14px; line-height:1.65; }
#pg-home .robot-bubble-actions { display:flex; flex-wrap:wrap; gap:10px; }
#pg-home .trust-badges-container { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:stretch; }
#pg-home .trust-badge { padding:18px; align-items:flex-start; gap:12px; }
#pg-home .trust-title { font-size:15px; line-height:1.4; }
#pg-home .trust-desc { font-size:13px; line-height:1.65; }
body.member-refresh .ai-fab { width:56px; height:56px; }
@media(max-width:1100px) { #pg-home .cards { grid-template-columns:minmax(0,1fr); max-width:640px; margin-inline:auto; gap:24px; } #pg-home .page-header h2 { font-size:24px; } .member-referral .ref-form-wrapper { flex-direction:column; align-items:stretch; } }
@media(max-width:700px) { #pg-home .trust-badges-container { grid-template-columns:minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { #pg-home *, .ai-fab-container * { animation:none !important; transition:none !important; } }

/* Light catalogue. Account pages use member-account-light.css.
   Dialogs are light too — see the final section of this file. */
body:has(#pg-home.active) { background:#f5f7fb !important; }
#pg-home { color:#172033; }
.storefront-hero { padding:40px; margin:24px 0; background:#fff; border:1px solid #dbe3ef; border-radius:20px; }
.storefront-eyebrow { color:#2563eb; font-size:12px; font-weight:700; letter-spacing:.08em; }
.storefront-hero h1 { color:#14213a; font-size:clamp(30px,4vw,46px); line-height:1.2; margin:16px 0; letter-spacing:-.03em; }
.storefront-hero > p { max-width:740px; line-height:1.75; }
.storefront-cta { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin:24px 0 16px; }
.storefront-cta button, .storefront-info button { background:#2563eb; color:#fff; border:1px solid #2563eb; border-radius:9px; padding:12px 16px; min-height:44px; font:inherit; cursor:pointer; }
.storefront-cta button:nth-child(2) { background:#eff6ff; color:#1d4ed8; }
#pg-home a { color:#1d4ed8; text-decoration:underline; text-underline-offset:3px; }
.storefront-fineprint { color:#526075; font-size:13px; }
#pg-home .guest-login { display:none; }
.storefront-guest #pg-home .guest-login { display:inline-flex; margin-top:16px; }
.storefront-guest #sidebar, .storefront-guest .sb-overlay, .storefront-guest .mobile-bottom-nav,
.storefront-guest .topbar .menu-btn, .storefront-guest .mobile-topbar-bal,
.storefront-guest .usr-avatar-wrap, .storefront-guest .topbar .icon-btn { display:none !important; }
body.storefront-guest .main { margin-left:0 !important; }
body.storefront-guest .content { padding-bottom:32px; }
#pg-home .page-header h2, #pg-home .page-header h2 em { color:#172033 !important; }
#pg-home .page-header p { color:#526075; }
#pg-home .product { background:#fff !important; border-color:#d4deec !important; box-shadow:0 4px 18px #17203308 !important; }
#pg-home .prod-name, #pg-home .combo-glow-title, #pg-home .prod-body > div:first-child > .prod-name[style] { color:#172033 !important; }
#pg-home .prod-body > div:nth-child(2) { color:#475569 !important; }
#pg-home .price-row { background:#fff; border-color:#d4deec; }
#pg-home .price-row[aria-checked="true"] { background:#eff6ff; border-color:#2563eb; }
#pg-home .pr-dur { color:#475569; }
#pg-home .pr-val, #pg-home .pr-val.hot { color:#172033 !important; }
#pg-home .member-saving { color:#15803d; }
#pg-home .member-promo-label { color:#92400e; }
#pg-home .btn-detail { background:#f8fafc !important; color:#1d4ed8 !important; border-color:#cbd5e1; }
#pg-home .flt { background:#fff !important; color:#475569 !important; border-color:#cbd5e1 !important; }
#pg-home .flt.active { background:#dbeafe !important; color:#1d4ed8 !important; border-color:#2563eb !important; }
#pg-home .member-security, #pg-home .trust-badge, #pg-home .mascot-robot-banner { background:#fff !important; border:1px solid #dbe3ef !important; color:#526075; box-shadow:none !important; }
#pg-home .trust-title, #pg-home .robot-bubble-text { color:#172033 !important; }
#pg-home .trust-desc { color:#526075 !important; }
/* Residue from the former dark theme: filter bar, tags and inline bold text. */
#pg-home .filters { background:#fff; border:1px solid #dbe3ef; }
#pg-home .flt { background:transparent !important; color:#475569 !important; border-color:transparent !important; }
#pg-home .flt:hover { color:#1d4ed8 !important; background:#f1f5f9 !important; }
#pg-home .flt.active { background:#eff6ff !important; color:#1d4ed8 !important; border-color:#bfdbfe !important; }
#pg-home .prod-tag { background:#eff6ff !important; color:#1d4ed8 !important; border:1px solid #bfdbfe !important; }
#pg-home .prod-tag.tag-c { background:#f5f3ff !important; color:#6d28d9 !important; border-color:#ddd6fe !important; }
#pg-home .prod-body b, #pg-home .prod-body strong { color:#172033 !important; }
#pg-home .product i { color:#2563eb !important; }
#pg-home .price-row { border-color:#dbe3ef; }
#pg-home .member-referral { border-color:#dbe3ef; }
#pg-home .member-referral summary { color:#1d4ed8; }
#pg-home .storefront-detail-list { color:#334155 !important; }
#pg-home .storefront-detail-note { color:#526075 !important; }
.storefront-info { padding:28px; margin-top:24px; border:1px solid #dbe3ef; border-radius:16px; background:#fff; line-height:1.75; }
.storefront-info h2 { font-size:23px; margin-bottom:16px; }
.storefront-info h3 { font-size:17px; margin-bottom:10px; }
.storefront-info p { color:#526075; margin:10px 0 16px; }
.storefront-info-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.storefront-info details { border-top:1px solid #e2e8f0; padding:14px 0; }
.storefront-info summary { cursor:pointer; font-weight:600; min-height:44px; padding:8px 0; }
.storefront-detail-list { padding-left:22px; line-height:1.8; }
.storefront-detail-note { margin:20px 0; color:#aab9ce; line-height:1.75; }
#det-body .btn-full { margin-top:12px; }
/* Catalogue / workspace boundary. */
body:has(#pg-home.active) .topbar { background:#fff; border-bottom:1px solid #dbe3ef; box-shadow:none; }
body:has(#pg-home.active) #starfieldCanvas { visibility:hidden; }
#pg-home { overflow-wrap:anywhere; }
#pg-home [id] { scroll-margin-top:100px; }
#pg-home .member-security button { color:#9f1239; }
#pg-home .trust-desc strong, #pg-home .robot-bubble-text strong { color:#172033 !important; }
#pg-home .robot-badge { color:#1d4ed8 !important; background:#eff6ff !important; border:1px solid #bfdbfe !important; -webkit-text-fill-color:#1d4ed8 !important; }
#pg-home .btn-robot-zalo, #pg-home .btn-robot-faq { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:12px 16px; color:#fff; background:#1d4ed8; border:1px solid #1d4ed8; text-decoration:none; }
#pg-home .btn-robot-faq { color:#172033; background:#f1f5f9; border-color:#cbd5e1; }
.storefront-detail-list { color:#e2e8f0; }
#pg-home .member-promo-price { color:#526075; }
#pg-home .pr-val { font-size:16px; }
#pg-home .member-saving, #pg-home .member-promo-label { font-size:12px; }
#pg-home .prod-thumb { overflow:hidden; }
#pg-home .prod-thumb img { opacity:1; }
#pg-home .storefront-cta a, #pg-home .storefront-info article > a { display:inline-flex; align-items:center; min-height:44px; }
#pg-home .guest-login { align-items:center; min-height:44px; }
#pg-home .storefront-info a:focus-visible, .guest-nav a:focus-visible, .storefront-mobile-trial a:focus-visible { outline:3px solid #2563eb; outline-offset:3px; }
#pg-home .storefront-hero > p:not(.storefront-eyebrow) { color:#526075; }
.guest-nav { display:none; }
.storefront-guest .guest-nav { display:flex; width:100%; align-items:center; gap:20px; justify-content:space-between; }
.storefront-guest .topbar { padding:12px 28px; height:auto; min-height:72px; }
.storefront-guest .mobile-topbar-brand, .storefront-guest .topbar > div[style] { display:none !important; }
.guest-nav a { display:inline-flex; align-items:center; min-height:44px; color:#172033; text-decoration:none; font-size:14px; }
.guest-brand { font-size:20px !important; font-weight:700; gap:6px; white-space:nowrap; }
.guest-brand span { color:#2563eb; }
.guest-brand img { display:block; flex-shrink:0; object-fit:contain; border:1px solid #dbe3ef; border-radius:10px; background:#fff; margin-right:4px; }
.guest-nav-links { display:flex; gap:24px; }
.guest-nav .guest-account { padding:0 16px; background:#2563eb; color:#fff; border-radius:9px; }
.storefront-product-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
.storefront-product-grid article { padding:24px; border:1px solid #dbe3ef; border-radius:12px; background:#f8fafc; }
.storefront-product-label { display:block; margin-bottom:12px; color:#1d4ed8; font-size:12px; font-weight:700; letter-spacing:.04em; }
.product-post { color:#6d28d9; }
.storefront-media-pending { margin-top:24px; padding:20px; background:#f5f7fb; border:1px dashed #94a3b8; border-radius:12px; }
.storefront-media-pending p { margin-bottom:0; }
.storefront-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px; padding-left:24px; }
.storefront-steps li::marker { color:#1d4ed8; font-weight:700; }
.storefront-table-wrap { overflow-x:auto; }
.storefront-comparison { width:100%; border-collapse:collapse; min-width:540px; font-size:14px; }
.storefront-comparison caption { text-align:left; color:#526075; margin-bottom:12px; }
.storefront-comparison th, .storefront-comparison td { padding:14px 12px; border-bottom:1px solid #dbe3ef; text-align:left; color:#172033; }
.storefront-comparison thead { background:#eff6ff; }
.storefront-mobile-trial { display:none; }
@media(max-width:900px) { .storefront-steps { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
  .guest-nav-links { display:none; }
  .storefront-guest .topbar { padding:8px 16px; }
  .guest-brand { font-size:17px !important; }
  .storefront-product-grid, .storefront-steps { grid-template-columns:minmax(0,1fr); }
  .storefront-product-grid article { padding:18px; }
  .storefront-guest .content { padding-bottom:100px; }
  .storefront-guest #pg-home.active .storefront-mobile-trial { display:flex; position:fixed; bottom:0; left:0; right:0; z-index:200; gap:12px; padding:12px 16px calc(12px + env(safe-area-inset-bottom)); background:#fff; border-top:1px solid #dbe3ef; }
  #pg-home .storefront-mobile-trial a { display:flex; align-items:center; justify-content:center; min-height:44px; flex:1; border-radius:9px; background:#2563eb; color:#fff; text-decoration:none; font-size:13px; }
  #pg-home .storefront-mobile-trial a:last-child { background:#eff6ff; color:#1d4ed8; flex:0 0 88px; }
  body.storefront-guest .ai-fab-container { bottom:100px !important; }
  .storefront-hero { padding:24px 18px; }
  .storefront-cta { align-items:stretch; flex-direction:column; }
  .storefront-info { padding:20px 18px; }
  .storefront-info-grid { grid-template-columns:minmax(0,1fr); }
}

/* -------------------------------------------------------------
   Light dialogs. Every dialog now matches the light catalogue.
   Tokens are re-declared inside .overlay so inline var(--text) /
   var(--cyan) / var(--muted) usage written for the old dark theme
   resolves to readable light-theme values without touching JS.
   ------------------------------------------------------------- */
.overlay, .tos-overlay {
  color-scheme: light;
  --text:#172033; --muted:#526075; --card:#fff; --border:#dbe3ef;
  --cyan:#0e7490; --purple:#6d28d9; --pink:#be185d;
  --green:#15803d; --orange:#b45309;
}
.overlay { background:rgb(15 23 42 / 55%); }

/* Dialog surfaces */
.overlay :is(.modal, .modal-detail-pro, .modal-earn, .modal-dep-success),
.tos-overlay .tos-modal {
  background:#fff !important;
  border:1px solid #dbe3ef !important;
  box-shadow:0 24px 64px rgb(23 32 51 / 18%) !important;
  color:#172033;
}
.overlay :is(.modal-head, .modal-body, .tos-header, .tos-footer, .dep-suc-bal-row) { border-color:#e2e8f0 !important; }
.overlay :is(.modal-title, .tos-header h2, .dep-suc-title, .det-hero-title, .earn-heading) {
  color:#172033 !important; -webkit-text-fill-color:#172033 !important; text-shadow:none !important;
}
.overlay :is(.modal-sub, .dep-suc-sub, .earn-desc, .tos-intro) { color:#526075 !important; }
.overlay :is(.modal-x, .earn-x, .dep-suc-x) {
  background:#f1f5f9 !important; border-color:#dbe3ef !important; color:#526075 !important;
}
.overlay :is(.modal-x, .earn-x, .dep-suc-x):hover {
  background:#fee2e2 !important; border-color:#fecaca !important; color:#b91c1c !important;
}

/* Inputs and inline dark-on-dark text written for the old theme */
.overlay :is(.field, .modal .field, input:not([type=checkbox]), select, textarea) {
  background:#fff !important; border:1px solid #cbd5e1 !important; color:#172033 !important;
}
.overlay :is(.field, input, textarea)::placeholder { color:#64748b !important; }
.overlay [style*="color:#fff"], .overlay [style*="color: #fff"] { color:#172033 !important; }
.overlay [style*="rgba(255,255,255,0.05)"], .overlay [style*="rgba(255,255,255,0.06)"] {
  background:#f8fafc !important; border-color:#cbd5e1 !important;
}

/* Primary actions share the single brand blue */
.overlay :is(.btn-full.btn-purple, .btn-full.btn-cyan, .btn-full.btn-green, .btn-dep, .btn-earn-start) {
  background:#2563eb !important; color:#fff !important; border:1px solid #2563eb !important;
  box-shadow:none !important; border-radius:9px;
}
.overlay :is(.btn-full.btn-purple, .btn-full.btn-cyan, .btn-full.btn-green, .btn-earn-start):hover {
  background:#1d4ed8 !important; transform:none !important; filter:none !important;
}
.overlay .btn-full[style*="rgba(255,255,255"] { background:#f8fafc !important; color:#1d4ed8 !important; border:1px solid #cbd5e1 !important; }

/* Buy dialog */
.overlay .plan-card { background:#f8fafc !important; border:1px solid #dbe3ef !important; color:#172033 !important; }
.overlay .plan-card:hover, .overlay .plan-card.on { background:#eff6ff !important; border-color:#2563eb !important; }
.overlay .plan-name { color:#172033 !important; }
.overlay .plan-old-price { color:#64748b !important; }
.overlay .plan-price { color:#1d4ed8 !important; }
.overlay .bal-bar { background:#eff6ff !important; border:1px solid #bfdbfe !important; }
.overlay .bal-bar-val { color:#172033 !important; }
.overlay #buy-ref-notice { background:#f0fdf4 !important; border-color:#bbf7d0 !important; color:#15803d !important; }
.overlay .msg.ok { background:#f0fdf4 !important; border-color:#bbf7d0 !important; color:#15803d !important; }
.overlay .msg.err { background:#fef2f2 !important; border-color:#fecaca !important; color:#b91c1c !important; }

/* Product detail */
.overlay .storefront-detail-list { color:#334155 !important; }
.overlay .storefront-detail-note { color:#526075 !important; }

/* Deposit dialog � the QR itself must stay on white for bank scanners */
.overlay .dep-opt { background:#f8fafc !important; border:1px solid #dbe3ef !important; color:#334155 !important; }
.overlay .dep-opt:hover, .overlay .dep-opt.on { background:#eff6ff !important; border-color:#2563eb !important; color:#1d4ed8 !important; }
.overlay .qr-wrap > div[style*="rgba(0,242,255"] { background:#eff6ff !important; border-color:#bfdbfe !important; }
.overlay #dep-countdown-wrap { background:#fffbeb !important; border-color:#fde68a !important; color:#92400e !important; }
.overlay #dep-countdown-wrap strong { background:#b45309 !important; color:#fff !important; }
.overlay #dep-expired-alert { background:#fef2f2 !important; border-color:#fecaca !important; color:#b91c1c !important; }
.overlay .qr-img { background:#fff !important; border:1px solid #dbe3ef !important; }
.overlay .bank-info { background:#f8fafc !important; border:1px solid #dbe3ef !important; }
.overlay .bi-row { border-bottom-color:#e2e8f0 !important; }
.overlay .bi-l { color:#526075 !important; }
.overlay .bi-r { color:#172033 !important; }
.overlay .copy-btn { background:#eff6ff !important; border:1px solid #bfdbfe !important; color:#1d4ed8 !important; }
.overlay .qr-note { color:#526075 !important; }

/* Partner dialog */
.overlay :is(.earn-icon-badge, .earn-brand-badge, .earn-ribbon) {
  background:#eff6ff !important; border:1px solid #bfdbfe !important; color:#1d4ed8 !important; box-shadow:none !important;
}
.overlay .earn-gradient-text { color:#1d4ed8 !important; -webkit-text-fill-color:#1d4ed8 !important; }
.overlay .badge-fire { background:#fff7ed !important; border:1px solid #fed7aa !important; color:#b45309 !important; box-shadow:none !important; }
.overlay .earn-bcard { background:#f8fafc !important; border:1px solid #dbe3ef !important; box-shadow:none !important; }
.overlay .earn-desc strong { color:#1d4ed8 !important; }
.overlay .earn-bcard:hover { background:#eff6ff !important; border-color:#bfdbfe !important; transform:none !important; }
.overlay .earn-bcard-head { color:#172033 !important; }
.overlay .earn-bcard-sub, .overlay .earn-footer { color:#526075 !important; }
.overlay .earn-footer i { color:#15803d !important; }
.overlay .live-pulse-dot { background:#15803d !important; box-shadow:none !important; animation:none !important; }
.overlay :is(.modal-earn, .modal-dep-success) { max-height:90vh; overflow-y:auto !important; }
.overlay .modal-handle-bar { background:#94a3b8; }
#ov-buy .member-context-help, #ov-buy .member-referral summary { color:#1d4ed8; }
.overlay .dep-suc-bal-row { color:#526075; }

/* Deposit-success dialog */
.overlay .dep-suc-icon-wrap { background:#f0fdf4 !important; border:2px solid #15803d !important; color:#15803d !important; box-shadow:none !important; animation:none !important; }
.overlay .dep-suc-badge { background:#f0fdf4 !important; border:1px solid #bbf7d0 !important; color:#15803d !important; box-shadow:none !important; }
.overlay .dep-suc-amount-card { background:#f8fafc !important; border:1px dashed #cbd5e1 !important; }
.overlay .dep-suc-amount-lbl { color:#526075 !important; }
.overlay .dep-suc-amount-val { color:#15803d !important; text-shadow:none !important; }
.overlay .dep-suc-bal-row strong { color:#172033 !important; }

/* Affiliate terms dialog (inline styles in dashboard.html need !important) */
.tos-overlay { background:rgb(15 23 42 / 55%) !important; }
.tos-overlay .tos-header, .tos-overlay .tos-footer { border-color:#e2e8f0 !important; }
.tos-overlay .tos-header h2 { color:#172033 !important; }
.tos-overlay :is(.tos-intro, .tos-checkbox-label) { color:#526075 !important; }
.tos-overlay .tos-terms { color:#334155 !important; }
.tos-overlay .tos-terms li strong { color:#172033 !important; }
.tos-overlay .tos-icon { font-size:0 !important; }
.tos-overlay .tos-icon::after {
  content:''; display:block; width:32px; height:32px; margin:0 auto 8px;
  background:#1d4ed8; mask:var(--icon-file) center/contain no-repeat;
}
.tos-overlay #tos-accept-btn {
  background:#2563eb !important; color:#fff !important; border:1px solid #2563eb !important;
  box-shadow:none !important; opacity:1;
}
.tos-overlay #tos-accept-btn[disabled] { background:#cbd5e1 !important; border-color:#cbd5e1 !important; color:#64748b !important; cursor:not-allowed; }
.tos-overlay #tos-accept-btn:not([disabled]):hover { transform:none !important; box-shadow:none !important; }
.tos-overlay .tos-checkbox-label input[type=checkbox] { accent-color:#2563eb !important; }
