/* Dedicated wallet modal overlay styles */
#walletModal{
  display:none;
  position:fixed;
  inset:0;
  z-index:10000;
  align-items:center;
  justify-content:center;
  padding:24px;
}
#walletModal.is-open{
  display:flex !important;
}
#walletModal .wallet-modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.78);
}
#walletModal .wallet-modal-dialog{
  position:relative;
  z-index:1;
  width:min(980px, calc(100vw - 32px));
  max-height:calc(100vh - 48px);
  overflow:auto;
  border-radius:20px;
  border:1px solid rgba(166,224,15,.35);
  background:rgb(17,17,19);
  color:#fff;
  padding:18px;
  box-shadow:0 18px 48px rgba(0,0,0,.45);
  font-family:monospace;
}
#walletModal .wallet-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
#walletModal .wallet-modal-header h2{
  margin:0;
  color:#a6e00f;
  font-size:20px;
}
#walletModal .wallet-modal-close{
  appearance:none;
  border:1px solid rgba(166,224,15,.35);
  background:#141418;
  color:#a6e00f;
  border-radius:12px;
  width:40px;
  height:40px;
  cursor:pointer;
  font-size:24px;
  line-height:1;
}
#walletModal .wallet-hub-copy{
  margin-bottom:12px;
  color:rgba(255,255,255,.72);
  font-size:13px;
  line-height:1.5;
}
#walletModal .wallet-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
#walletModal .wallet-option{
  appearance:none;
  border:1px solid rgba(255,255,255,.16);
  background:#141418;
  color:#fff;
  border-radius:14px;
  padding:14px 12px;
  text-align:left;
  cursor:pointer;
  font-family:monospace;
}
#walletModal .wallet-option:hover,
#walletModal .wallet-option:focus-visible,
#walletModal .wallet-option.is-active{
  outline:none;
  border-color:#a6e00f;
  color:#a6e00f;
}
#walletModal .wallet-connector-card{
  min-height:280px;
  border:1px solid rgba(166,224,15,.25);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(166,224,15,.06), rgba(255,255,255,.01));
  padding:16px;
}
#walletModal .wallet-connector-placeholder{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:rgba(255,255,255,.75);
}
#walletModal .wallet-connector-title{
  color:#fff;
  font-size:18px;
}
#walletModal .wallet-connector-subtitle,
#walletModal .wallet-connector-muted{
  color:rgba(255,255,255,.7);
  font-size:13px;
  line-height:1.5;
}
#walletModal .wallet-connector-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(166,224,15,.25);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  color:#a6e00f;
  background:rgba(166,224,15,.08);
  margin-bottom:10px;
}
#walletModal .wallet-connector-address{
  font-size:15px;
  color:#fff;
  word-break:break-all;
  margin:8px 0 14px;
}
#walletModal .wallet-connector-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
#walletModal .wallet-connector-btn{
  appearance:none;
  border:1px solid rgba(166,224,15,.35);
  background:#141418;
  color:#fff;
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  font-family:monospace;
}
#walletModal .wallet-connector-btn:hover,
#walletModal .wallet-connector-btn:focus{
  outline:none;
  border-color:#a6e00f;
  color:#a6e00f;
}
#walletModal .wallet-connector-btn.primary{
  background:#a6e00f;
  color:#111;
  border-color:#a6e00f;
}
#walletModal .wallet-connector-btn.linklike{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
}
#walletModal .wallet-connector-status{
  margin-top:10px;
  min-height:20px;
  font-size:13px;
}
#walletModal .wallet-connector-status.is-waiting{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#d9ff65;
}
#walletModal .wallet-connector-status.is-waiting::before{
  content:'';
  width:13px;
  height:13px;
  border:2px solid rgba(166,224,15,.25);
  border-top-color:#a6e00f;
  border-radius:999px;
  animation:walletStatusSpin .75s linear infinite;
  flex:0 0 auto;
}
@keyframes walletStatusSpin{to{transform:rotate(360deg)}}
body.wallet-modal-open{
  overflow:hidden;
}
@media (max-width:640px){
  #walletModal .wallet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

#walletModal .wallet-option{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
#walletModal .wallet-option.is-loading{opacity:.92}
#walletModal .wallet-option-label{display:block;line-height:1.2}
#walletModal .wallet-connector-status.ok{color:#a6e00f}
#walletModal .wallet-connector-status.error{color:#ff8080}

/* v129: wallet option icons */
#walletModal .wallet-option{
  gap:12px;
  min-height:62px;
}
#walletModal .wallet-option-main{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1 1 auto;
}
#walletModal .wallet-option-icon{
  width:32px;
  height:32px;
  flex:0 0 32px;
  object-fit:contain;
  border-radius:9px;
  display:block;
}
#walletModal .wallet-option-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media (max-width:640px){
  #walletModal .wallet-option{padding:12px 10px;gap:8px}
  #walletModal .wallet-option-main{gap:8px}
  #walletModal .wallet-option-icon{width:26px;height:26px;flex-basis:26px;border-radius:7px}
  #walletModal .wallet-option-badge{font-size:10px;padding:3px 6px}
}


/* v133: preferred badge inside wallet label row */
#walletModal .wallet-option-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  padding:4px 9px;
  border-radius:999px;
  border:1px solid rgba(166,224,15,.35);
  background:rgba(166,224,15,.12);
  color:#a6e00f;
  font-size:11px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
}


/* v137: compact wallet option rows */
#walletModal .wallet-option {
    min-height: auto;
    padding: 11px 15px;
}


/* v142: requested wallet icon size */
#walletModal .wallet-option-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
    border-radius: 9px;
    display: block;
}

/* v209: installed wallet detection badge */
#walletModal .wallet-option{
  position:relative;
}
#walletModal .wallet-detected-badge{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  padding:5px 11px;
  border-radius:999px;
  border:1px solid rgba(166, 224, 15, .35);
  background:rgba(166, 224, 15, .12);
  color:#a6e00f;
  font-size:12px;
  font-weight:700;
  line-height:1;
  letter-spacing:.01em;
  text-transform:uppercase;
  white-space:nowrap;
}
#walletModal .wallet-detected-badge::before{
  content:'';
  width:6px;
  height:6px;
  border-radius:999px;
  background:currentColor;
  margin-right:6px;
  box-shadow:0 0 10px rgba(166,224,15,.55);
}
@media (max-width:640px){
  #walletModal .wallet-detected-badge{font-size:10px;padding:4px 8px}
}


/* v215: wallet modal footer trust text */
#walletModal .wallet-modal-footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
}
#walletModal .wallet-modal-encryption{
  color:#aed91d;
  opacity:1;
  display:inline-flex;
  align-items:center;
  gap:2px;
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
}
#walletModal .wallet-modal-encryption svg{
  display:inline-block;
  font-size:inherit;
  height:1em;
  overflow:visible;
  vertical-align:-0.125em;
  margin-right:2px;
  flex:0 0 auto;
}
#walletModal .wallet-modal-footer-row .wallet-modal-actions{
  margin-top:0;
}
@media (max-width:640px){
  #walletModal .wallet-modal-footer-row{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* v216: requested wallet modal footer spacing and empty status removal */
#walletModal .wallet-connector-status[hidden],
#walletModal .wallet-connector-status:empty {
    display: none !important;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
}
#walletModal .wallet-modal-footer-row {
    margin-top: 17px;
    margin-bottom: 10px;
}
#walletModal .wallet-modal-encryption {
    padding-left: 2px;
}
#walletModal .wallet-modal-encryption svg {
    position: relative;
    top: -0.5px;
    margin-right: 5px;
}

/* v550.7: keep WalletConnect/Reown QR above Launchpad chooser and lower chooser during QR handoff */
wcm-modal,
w3m-modal,
reown-appkit-modal,
.walletconnect-modal,
.walletconnect-qrcode__base,
.wcm-modal,
.wcm-overlay,
.wcm-container,
.w3m-modal,
.w3m-overlay,
.w3m-container {
  z-index: 2147483647 !important;
}


#walletModal.is-walletconnect-qr-handoff {
  z-index: 9998 !important;
}
#walletModal.is-walletconnect-qr-handoff .wallet-modal-dialog {
  pointer-events: none;
}

/* v571: mobile wallet modal app layout polish */
@media (max-width: 760px) {
  #walletModal {
    align-items: center !important;
    justify-content: center !important;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
  }
  #walletModal .wallet-modal-dialog {
    width: min(100%, calc(100vw - 24px)) !important;
    max-width: 520px !important;
    max-height: min(88vh, calc(100dvh - 24px)) !important;
    margin: auto !important;
    padding: 16px !important;
    border-radius: 22px !important;
    overflow: auto !important;
  }
  #walletModal .wallet-modal-header {
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    padding-right: 50px !important;
    margin-bottom: 12px !important;
  }
  #walletModal .wallet-modal-header h2 {
    font-size: 24px !important;
    line-height: 1.08 !important;
    margin: 0 !important;
  }
  #walletModal .wallet-modal-close {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    font-size: 28px !important;
    line-height: 1 !important;
    text-align: center !important;
  }
  #walletModal .wallet-hub-copy {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
  }
  #walletModal .wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }
  #walletModal .wallet-option {
    min-height: 64px !important;
    padding: 10px 8px !important;
    border-radius: 15px !important;
  }
  #walletModal .wallet-option-main {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-align: center !important;
    width: 100% !important;
  }
  #walletModal .wallet-option-icon {
    width: 31px !important;
    height: 31px !important;
    flex: 0 0 31px !important;
  }
  #walletModal .wallet-option-label {
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }
  #walletModal .wallet-option-badge,
  #walletModal .wallet-detected-badge {
    display: none !important;
  }
  #walletModal .wallet-modal-footer-row {
    margin-top: 12px !important;
    margin-bottom: 4px !important;
  }
}

/* v572: requested mobile wallet modal spacing/footer polish */
@media (max-width: 760px) {
    #walletModal .wallet-hub-copy {
        margin-right: 75px;
    }
    #walletModal .wallet-option-label {
        margin-top: 1px;
    }
    #walletModal .wallet-modal-footer-row .wallet-modal-actions {
        margin-top: 0;
        display: none;
    }
    #walletModal .wallet-modal-footer-row {
        flex-direction: row;
    }
    #walletModal .wallet-modal-encryption {
        margin-top: 11px;
    }
}

/* v573: mobile wallet readiness - app-prioritized chooser */
@media (max-width: 760px) {
  #walletModal.is-mobile-wallet-browser .wallet-modal-dialog {
    max-width: min(520px, calc(100vw - 20px)) !important;
    max-height: min(90dvh, calc(100dvh - 20px)) !important;
  }
  #walletModal.is-mobile-wallet-browser .wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #walletModal.is-mobile-wallet-browser .wallet-option[data-mobile-hidden="1"] {
    display: none !important;
  }
  #walletModal.is-mobile-wallet-browser .wallet-option {
    min-height: 72px !important;
    padding: 11px 8px !important;
    justify-content: center !important;
    touch-action: manipulation !important;
  }
  #walletModal.is-mobile-wallet-browser:not(.is-walletconnect-qr-handoff) .wallet-option {
    pointer-events: auto !important;
  }
  #walletModal.is-mobile-wallet-browser .wallet-option-main {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
  }
  #walletModal.is-mobile-wallet-browser .wallet-option-icon {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
  }
  #walletModal.is-mobile-wallet-browser .wallet-option-label {
    font-size: 12px !important;
    line-height: 1.1 !important;
    max-width: 100% !important;
  }
  #walletModal.is-mobile-wallet-browser .wallet-option.is-mobile-primary-wallet:not(.is-active) {
    border-color: rgba(255, 255, 255, .16) !important;
    background: #141418 !important;
    color: #fff !important;
  }
  #walletModal.is-mobile-wallet-browser .wallet-option.is-mobile-first-wallet:not(.is-active) {
    border-color: rgba(166, 224, 15, .72) !important;
    background: linear-gradient(180deg, rgba(166, 224, 15, .11), rgba(20, 20, 24, .96)) !important;
    color: #fff !important;
  }
  #walletModal.is-mobile-wallet-browser .wallet-option.is-active {
    border-color: #a6e00f !important;
    background: linear-gradient(180deg, rgba(166, 224, 15, .11), rgba(20, 20, 24, .96)) !important;
    color: #a6e00f !important;
  }
  #walletModal.is-mobile-wallet-browser .wallet-option[data-wallet="walletconnect"] {
    grid-column: span 2 !important;
    min-height: 58px !important;
  }
  #walletModal.is-mobile-wallet-browser .wallet-option[data-wallet="walletconnect"] .wallet-option-main {
    flex-direction: row !important;
  }
  #walletModal.is-mobile-wallet-browser .wallet-connector-status {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-top: 9px !important;
  }
}

/* v1776f: mobile wallet close/footer/order failsafes for Android TWA. */
#walletModal .wallet-modal-close {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:43px!important;
  height:43px!important;
  min-width:43px!important;
  min-height:43px!important;
  padding:0!important;
  line-height:1!important;
  font-size:0!important;
  text-align:center!important;
}
#walletModal .wallet-modal-close::before {
  content:"×";
  display:block;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:26px!important;
  line-height:1!important;
  transform:translateY(-1px)!important;
}
@media (max-width:760px) {
  #walletModal .wallet-modal-close,
  #walletModal.is-mobile-wallet-browser .wallet-modal-close {
    top:20px!important;
    right:20px!important;
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    min-height:50px!important;
    padding:0!important;
    transform:none!important;
  }
  #walletModal .wallet-modal-close::before,
  #walletModal.is-mobile-wallet-browser .wallet-modal-close::before {
    font-size:29px!important;
    transform:translateY(-1px)!important;
  }
  #walletModal .wallet-modal-footer-row.wallet-premium-footer-row,
  #walletModal.is-mobile-wallet-browser .wallet-modal-footer-row.wallet-premium-footer-row {
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    width:100%!important;
    text-align:left!important;
  }
  #walletModal .wallet-modal-encryption,
  #walletModal .wallet-modal-trusted,
  #walletModal.is-mobile-wallet-browser .wallet-modal-encryption,
  #walletModal.is-mobile-wallet-browser .wallet-modal-trusted {
    margin:0!important;
    font-size:11px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
  }
  #walletModal .wallet-modal-trusted,
  #walletModal.is-mobile-wallet-browser .wallet-modal-trusted { text-align:right!important; }
  #walletModal.is-mobile-wallet-browser:not([data-wallet-more-expanded="1"])[data-active-wallet-chain="solana"] .wallet-option:not([data-wallet="solflare"]):not([data-wallet="phantom"]):not([data-wallet="backpack"]),
  #walletModal:not([data-wallet-more-expanded="1"])[data-active-wallet-chain="solana"] .wallet-option:not([data-wallet="solflare"]):not([data-wallet="phantom"]):not([data-wallet="backpack"]),
  #walletModal.is-mobile-wallet-browser:not([data-wallet-more-expanded="1"])[data-active-wallet-chain="robinhood"] .wallet-option:not([data-wallet="metamask"]):not([data-wallet="trust"]):not([data-wallet="rabby"]):not([data-wallet="backpack"]):not([data-wallet="coinbase"]):not([data-wallet="walletconnect"]),
  #walletModal:not([data-wallet-more-expanded="1"])[data-active-wallet-chain="robinhood"] .wallet-option:not([data-wallet="metamask"]):not([data-wallet="trust"]):not([data-wallet="rabby"]):not([data-wallet="backpack"]):not([data-wallet="coinbase"]):not([data-wallet="walletconnect"]),
  #walletModal.is-mobile-wallet-browser:not([data-wallet-more-expanded="1"])[data-active-wallet-chain="stable"] .wallet-option:not([data-wallet="metamask"]):not([data-wallet="trust"]):not([data-wallet="rabby"]):not([data-wallet="backpack"]):not([data-wallet="coinbase"]):not([data-wallet="walletconnect"]),
  #walletModal:not([data-wallet-more-expanded="1"])[data-active-wallet-chain="stable"] .wallet-option:not([data-wallet="metamask"]):not([data-wallet="trust"]):not([data-wallet="rabby"]):not([data-wallet="backpack"]):not([data-wallet="coinbase"]):not([data-wallet="walletconnect"]),
  #walletModal.is-mobile-wallet-browser:not([data-wallet-more-expanded="1"])[data-active-wallet-chain="base"] .wallet-option:not([data-wallet="metamask"]):not([data-wallet="trust"]):not([data-wallet="rabby"]):not([data-wallet="backpack"]):not([data-wallet="coinbase"]):not([data-wallet="walletconnect"]),
  #walletModal:not([data-wallet-more-expanded="1"])[data-active-wallet-chain="base"] .wallet-option:not([data-wallet="metamask"]):not([data-wallet="trust"]):not([data-wallet="rabby"]):not([data-wallet="backpack"]):not([data-wallet="coinbase"]):not([data-wallet="walletconnect"]),
  #walletModal.is-mobile-wallet-browser:not([data-wallet-more-expanded="1"])[data-active-wallet-chain="hype"] .wallet-option:not([data-wallet="metamask"]):not([data-wallet="trust"]):not([data-wallet="rabby"]):not([data-wallet="backpack"]):not([data-wallet="coinbase"]):not([data-wallet="walletconnect"]),
  #walletModal:not([data-wallet-more-expanded="1"])[data-active-wallet-chain="hype"] .wallet-option:not([data-wallet="metamask"]):not([data-wallet="trust"]):not([data-wallet="rabby"]):not([data-wallet="backpack"]):not([data-wallet="coinbase"]):not([data-wallet="walletconnect"]),
  #walletModal.is-mobile-wallet-browser:not([data-wallet-more-expanded="1"])[data-active-wallet-chain="bnb"] .wallet-option:not([data-wallet="metamask"]):not([data-wallet="trust"]):not([data-wallet="rabby"]):not([data-wallet="binance"]):not([data-wallet="backpack"]):not([data-wallet="walletconnect"]),
  #walletModal:not([data-wallet-more-expanded="1"])[data-active-wallet-chain="bnb"] .wallet-option:not([data-wallet="metamask"]):not([data-wallet="trust"]):not([data-wallet="rabby"]):not([data-wallet="binance"]):not([data-wallet="backpack"]):not([data-wallet="walletconnect"]) {
    display:none!important;
  }
}

/* v1776h: final Android/mobile wallet footer one-row enforcement. */
@media (max-width: 820px), (pointer: coarse) {
  html body #walletModal .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-footer-row.wallet-premium-footer-row,
  html body #walletModal.is-mobile-wallet-browser .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-footer-row.wallet-premium-footer-row,
  html body #walletModal .wallet-modal-footer-row.wallet-premium-footer-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: center !important;
    justify-content: stretch !important;
    column-gap: 6px !important;
    row-gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 14px !important;
    margin-bottom: 6px !important;
  }
  html body #walletModal .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-encryption,
  html body #walletModal.is-mobile-wallet-browser .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-encryption,
  html body #walletModal .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-trusted,
  html body #walletModal.is-mobile-wallet-browser .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-trusted {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    font-size: clamp(9px, 2.55vw, 11px) !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    overflow: visible !important;
  }
  html body #walletModal .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-encryption,
  html body #walletModal.is-mobile-wallet-browser .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-encryption {
    justify-self: start !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  html body #walletModal .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-trusted,
  html body #walletModal.is-mobile-wallet-browser .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-trusted {
    justify-self: end !important;
    justify-content: flex-end !important;
    text-align: right !important;
  }
}

/* v1776i: mobile trust footer requested right alignment and one-line protection. */
@media (max-width: 760px) {
  #walletModal .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-encryption,
  #walletModal.is-mobile-wallet-browser .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-encryption,
  #walletModal .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-trusted,
  #walletModal.is-mobile-wallet-browser .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-trusted,
  .wallet-modal-trusted {
    justify-content: right !important;
  }
  #walletModal .wallet-modal-trusted-count,
  #walletModal.is-mobile-wallet-browser .wallet-modal-trusted-count {
    margin-left: 6px !important;
  }
  #walletModal .wallet-modal-footer-row.wallet-premium-footer-row,
  #walletModal.is-mobile-wallet-browser .wallet-modal-footer-row.wallet-premium-footer-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }
}

/* v1776j: requested mobile wallet footer alignment: encryption left, trusted right. */
@media (max-width: 760px) {
  #walletModal .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-encryption,
  #walletModal.is-mobile-wallet-browser .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-encryption,
  #walletModal .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-encryption,
  #walletModal.is-mobile-wallet-browser .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-encryption {
    justify-content: left !important;
    justify-self: start !important;
    text-align: left !important;
  }
  #walletModal .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-trusted,
  #walletModal.is-mobile-wallet-browser .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-trusted,
  #walletModal .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-trusted,
  #walletModal.is-mobile-wallet-browser .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-trusted,
  .wallet-modal-trusted {
    justify-content: right !important;
    justify-self: end !important;
    text-align: right !important;
  }
}


/* v1776k: Android TWA/mobile-app live menu gate + mobile wallet/search cleanup. */
html.is-android-app.android-app-live-disabled [data-android-app-live-menu] {
  display: none !important;
}
@media (max-width: 760px) {
  #walletModal .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-trusted,
  #walletModal.is-mobile-wallet-browser .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-trusted,
  #walletModal .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-trusted,
  #walletModal.is-mobile-wallet-browser .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-trusted,
  .wallet-modal-trusted {
    display: none !important;
  }
  #walletModal .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-encryption,
  #walletModal.is-mobile-wallet-browser .wallet-modal-dialog.wallet-hub.wallet-hub-premium .wallet-modal-encryption,
  #walletModal .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-encryption,
  #walletModal.is-mobile-wallet-browser .wallet-modal-footer-row.wallet-premium-footer-row .wallet-modal-encryption {
    justify-content: left !important;
    justify-self: start !important;
    text-align: left !important;
  }
}
.token-graduation-pill:not(a) {
  cursor: default !important;
  text-decoration: none !important;
}


/* v1776n: Android app package rename + hard livestream menu hide fallback when admin disables it. */
html.is-android-app.android-app-live-disabled [data-android-app-live-menu],
html.is-android-device.android-app-live-disabled [data-android-app-live-menu],
html.is-android-app.android-app-live-disabled [data-header-create-action="go-live"],
html.is-android-device.android-app-live-disabled [data-header-create-action="go-live"],
html.is-android-app.android-app-live-disabled a[href="/live"],
html.is-android-device.android-app-live-disabled a[href="/live"],
html.is-android-app.android-app-live-disabled a[href^="/live?"],
html.is-android-device.android-app-live-disabled a[href^="/live?"],
html.is-android-app.android-app-live-disabled [data-mobile-nav="live"],
html.is-android-device.android-app-live-disabled [data-mobile-nav="live"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* v1776wm: final six-chain desktop wallet hub sizing. Loaded after style.css. */
@media (min-width: 761px) {
  html body #walletModal .wallet-modal-dialog.wallet-hub.wallet-hub-premium,
  html body #walletModal.is-mobile-wallet-browser .wallet-modal-dialog.wallet-hub.wallet-hub-premium {
    width: min(830px, calc(100vw - 28px)) !important;
    max-width: min(830px, calc(100vw - 28px)) !important;
  }

  html body #walletModal .wallet-chain-tabs,
  html body #walletModal.is-mobile-wallet-browser .wallet-chain-tabs {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  html body #walletModal .wallet-chain-tabs,
  html body #walletModal.is-mobile-wallet-browser .wallet-chain-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* PUBLIC_FRONTEND_LIGHT_THEME_FINAL_V1801 */
/*
 * Public frontend light theme.
 * Loaded only by includes/meta.php; /admin uses admin.css and never loads this file.
 * Dark remains the default. The active preference is set on <html data-theme>.
 */

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f2;
  --primary: #8fca00;
  --card: #ffffff;
  --muted: #667085;
  --text: #171a17;
  --border: #d7ddd2;
  --lp-surface: #ffffff;
  --lp-surface-soft: #f0f3ed;
  --lp-surface-strong: #e6ebe2;
  --lp-text: #171a17;
  --lp-text-soft: #5e695d;
  --lp-line: #d7ddd2;
  --lp-shadow: 0 12px 32px rgba(29, 43, 25, .08);
}

html[data-theme="light"],
html[data-theme="light"] body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

html[data-theme="light"] body::before,
html[data-theme="light"] body::after {
  border-color: var(--lp-line) !important;
}

html[data-theme="light"] body a {
  color: inherit;
}

html[data-theme="light"] body :is(h1, h2, h3, h4, h5, h6, label, legend),
html[data-theme="light"] body :is(.section-title, .pump-token-title, .token-title, .token-name, .profile-name, .community-name) {
  color: var(--lp-text) !important;
}

html[data-theme="light"] body :is(.muted, .helper-text, .section-subtitle, .stat-label, .token-symbol, .token-age, .pump-token-age, .pump-token-subtitle, .pump-token-footer) {
  color: var(--lp-text-soft) !important;
}

/* Main shell: public sidebar, header, footer and mobile navigation. */
html[data-theme="light"] body :is(.sidebar, .topbar, .footer, .mobile-app-nav) {
  background: #ffffff !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
  box-shadow: none;
}

html[data-theme="light"] body .main,
html[data-theme="light"] body .content,
html[data-theme="light"] body .page-wrap,
html[data-theme="light"] body .layout {
  background-color: transparent !important;
}

html[data-theme="light"] body .sidebar .nav a,
html[data-theme="light"] body .sidebar .nav button {
  color: #3f493e !important;
  background: transparent !important;
  border-color: transparent !important;
}

html[data-theme="light"] body .sidebar .nav a:hover,
html[data-theme="light"] body .sidebar .nav a.active,
html[data-theme="light"] body .sidebar .nav button:hover,
html[data-theme="light"] body .sidebar .nav button:focus-visible {
  color: #233014 !important;
  background: #edf5de !important;
  border-color: #d7e8b7 !important;
}

html[data-theme="light"] body .sidebar .create-btn,
html[data-theme="light"] body :is(.btn-primary, .filter-chip.active, .filter-chip.is-active, .trade-tab.active, .trade-tab.is-active) {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #10140c !important;
}

html[data-theme="light"] body .sidebar-theme-toggle {
  width: 100%;
  appearance: none;
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 12px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

html[data-theme="light"] body .sidebar-theme-toggle i,
html[data-theme="dark"] body .sidebar-theme-toggle i {
  width: 19px;
  min-width: 19px;
  text-align: center;
}

html[data-theme="dark"] body .sidebar-theme-toggle {
  width: 100%;
  appearance: none;
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding: 12px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 12px;
  background: transparent;
  color: #dddddd;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

html[data-theme="dark"] body .sidebar-theme-toggle:hover,
html[data-theme="dark"] body .sidebar-theme-toggle:focus-visible {
  background: #1c1c20 !important;
  color: #ffffff !important;
}

@media (min-width: 761px) {
  html.sidebar-rail-collapsed body .sidebar-theme-toggle {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  html.sidebar-rail-collapsed body .sidebar-theme-toggle span {
    display: none !important;
  }
}

/* Header controls and menus. */
html[data-theme="light"] body :is(
  .search,
  .search-trigger,
  .mobile-menu-btn,
  .sidebar-rail-toggle,
  .header-balance,
  .connect-btn,
  .wallet-trigger,
  .btn:not(.btn-primary),
  .filter-chip:not(.active):not(.is-active),
  .home-view-toggle,
  .home-view-btn:not(.is-active),
  .home-filter-toggle-btn,
  .home-compact-view-btn
) {
  background: var(--lp-surface-soft) !important;
  border-color: var(--lp-line) !important;
  color: #263024 !important;
}

html[data-theme="light"] body :is(
  .wallet-dropdown-menu,
  .wallet-balance-menu,
  .header-create-dropdown,
  .search-modal-dialog,
  .search-results,
  .search-results-panel,
  .home-filter-popover,
  .home-sort-more-menu,
  .sidebar-language-menu,
  .sidebar-list-popover
) {
  background: #ffffff !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
  box-shadow: var(--lp-shadow) !important;
}

html[data-theme="light"] body :is(
  .wallet-dropdown-item,
  .header-create-option,
  .search-item,
  .sidebar-language-option,
  .sidebar-list-item
) {
  color: #283127 !important;
  background: transparent !important;
}

html[data-theme="light"] body :is(
  .wallet-dropdown-item,
  .header-create-option,
  .search-item,
  .sidebar-language-option,
  .sidebar-list-item
):hover {
  background: var(--lp-surface-soft) !important;
  color: #11170f !important;
}

/* Forms and editable controls. */
html[data-theme="light"] body :is(
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  .input,
  .textarea,
  .select,
  [contenteditable="true"]
) {
  background: #ffffff !important;
  border-color: #cfd7ca !important;
  color: #171a17 !important;
  box-shadow: none !important;
}

html[data-theme="light"] body :is(input, textarea)::placeholder {
  color: #879184 !important;
  opacity: 1;
}

html[data-theme="light"] body :is(input, textarea, select, button):focus-visible {
  outline-color: rgba(143, 202, 0, .62) !important;
}

/* Shared cards, panels, boxes and dialogs. */
html[data-theme="light"] body :is(
  .card,
  [class$="-card"],
  [class*="-card "],
  [class$="-panel"],
  [class*="-panel "],
  [class$="-dialog"],
  [class*="-dialog "],
  [class$="-box"],
  [class*="-box "]
) {
  background: #ffffff !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
  box-shadow: var(--lp-shadow) !important;
}

html[data-theme="light"] body :is(
  .inline-status,
  .notice,
  .alert,
  .status-message,
  .helper-banner
) {
  border-color: var(--lp-line) !important;
}

/* Homepage discovery, compact/grid cards and table mode. */
html[data-theme="light"] body :is(
  .home-discovery-shell,
  .home-discovery-main,
  .home-section,
  .home-content
) {
  background-color: transparent !important;
}

html[data-theme="light"] body :is(
  .home-sort-toggle,
  .home-view-toggle,
  .home-discovery-table,
  .home-discovery-table-head,
  .home-discovery-table-row,
  .home-trenches-card,
  .home-token-tile.pump-token-tile
) {
  background: #ffffff !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
}

html[data-theme="light"] body #trending-grid.home-trending-list .home-token-tile.pump-token-tile,
html[data-theme="light"].home-view-pref-compact body #trending-grid.home-trending-list .home-token-tile.pump-token-tile {
  box-shadow: 0 9px 24px rgba(29, 43, 25, .07) !important;
}

html[data-theme="light"] body :is(.pump-token-tile-media, .home-token-tile-media, .token-thumb, .token-card-thumb) {
  background: #e9eee5 !important;
  border-color: #d7ddd2 !important;
}

html[data-theme="light"] body :is(
  .pump-token-title,
  .pump-token-mc,
  .pump-token-mc strong,
  .pump-token-footer,
  .home-discovery-table-row strong,
  .home-discovery-table-cell
) {
  color: #172016 !important;
}

html[data-theme="light"] body :is(.pump-token-creator-link, .pump-token-age, .pump-token-subtitle) {
  color: #687466 !important;
}

html[data-theme="light"] body :is(.pump-token-progress, .token-market-progress, .bonding-progress-track) {
  background: #dfe6da !important;
}

html[data-theme="light"] body .home-filter-row-rich .home-sort-toggle,
html[data-theme="light"] body .home-filter-row-rich .home-view-toggle {
  background: #ffffff !important;
  border: 1px solid var(--lp-line) !important;
  box-shadow: 0 8px 22px rgba(29, 43, 25, .07) !important;
}

html[data-theme="light"] body .home-filter-row-rich .filter-chip:not(.active):not(.is-active),
html[data-theme="light"] body .home-filter-row-rich .home-sort-more-trigger {
  background: var(--lp-surface-soft) !important;
  border-color: var(--lp-line) !important;
  color: #2e382d !important;
}

/* Token page, chart shell, swap and activity surfaces. */
html[data-theme="light"] body :is(
  .token-page-shell,
  .token-pump-layout,
  .token-main-column,
  .token-side-column-pump
) {
  background-color: transparent !important;
}

html[data-theme="light"] body :is(
  .chart-frame-pump,
  .chart-embed-pump,
  .chart-shell,
  #tradingview-widget,
  .tradingview-widget-container,
  .token-chart-wrap
) {
  background: #ffffff !important;
  border-color: var(--lp-line) !important;
}

html[data-theme="light"] body :is(
  .swap-input-card,
  .swap-input-card-pump,
  .swap-meta-item,
  .token-stat,
  .token-stat-item,
  .token-market-mini,
  .trade-feed-row,
  .token-holder-row,
  .token-comment-item,
  .comment-thread-item
) {
  background: var(--lp-surface-soft) !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
}

html[data-theme="light"] body :is(
  .swap-tab,
  .trade-tab,
  .token-discussion-tab,
  .token-mobile-action,
  .preset-btn,
  .swap-preset-btn
):not(.is-active):not(.active) {
  background: #edf1ea !important;
  border-color: var(--lp-line) !important;
  color: #3e493d !important;
}

html[data-theme="light"] body .token-discussion-tab.is-active {
  background: transparent !important;
  color: #182213 !important;
  border-bottom-color: var(--primary) !important;
}

html[data-theme="light"] body .token-mobile-bar {
  background: rgba(255,255,255,.96) !important;
  border-color: var(--lp-line) !important;
  box-shadow: 0 -10px 30px rgba(29,43,25,.10) !important;
}

html[data-theme="light"] body :is(.trade-modal-panel, .share-modal-card, .token-logo-modal-card, .wallet-profile-modal-dialog) {
  background: #ffffff !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
}

/* Profile, communities, docs, legal, integrations and support pages. */
html[data-theme="light"] body :is(
  .profile-page,
  .communities-page,
  .community-page,
  .about-page,
  .docs-page,
  .integrations-page,
  .learn-page,
  .support-page,
  .legal-page,
  .seo-landing-page
) {
  color: var(--lp-text) !important;
}

html[data-theme="light"] body :is(
  .community-card,
  .community-post-card,
  .community-comments,
  .community-member-row,
  .community-command-tile,
  .community-edit-panel,
  .profile-referrals-panel,
  .seo-landing-mini-card,
  .seo-faq-item,
  .integrations-card
) {
  background: #ffffff !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
}

html[data-theme="light"] body :is(
  .community-card-body p,
  .community-profile-copy p,
  .community-post-head,
  .community-post-foot,
  .community-comment-head span,
  .integrations-page p,
  .integration-spec span,
  .integration-api-list span,
  .seo-landing-mini-card span,
  .seo-faq-item p
) {
  color: var(--lp-text-soft) !important;
}

html[data-theme="light"] body :is(.community-card-avatar, .community-avatar-lg) {
  border-color: #ffffff !important;
  background: #ffffff !important;
}

html[data-theme="light"] body :is(.integration-spec, .integrations-facts div, .integration-api-list div) {
  background: var(--lp-surface-soft) !important;
  border-color: var(--lp-line) !important;
}

html[data-theme="light"] body :is(.integration-spec code, .integrations-btn:not(.primary)) {
  color: #253023 !important;
}

html[data-theme="light"] body :is(.legal-tab, .docs-nav a, .api-docs-nav a):not(.is-active):not(.active) {
  color: #4f5b4d !important;
  background: var(--lp-surface-soft) !important;
  border-color: var(--lp-line) !important;
}

/* Wallet modal and global overlays. */
html[data-theme="light"] body #walletModal .wallet-modal-overlay,
html[data-theme="light"] body :is(.search-modal-backdrop, .trade-modal-backdrop, .share-modal-backdrop, .community-edit-backdrop) {
  background: rgba(24, 31, 22, .48) !important;
}

html[data-theme="light"] body #walletModal .wallet-modal-dialog {
  background: #ffffff !important;
  color: var(--lp-text) !important;
  border-color: #cfe3a7 !important;
  box-shadow: 0 22px 60px rgba(29, 43, 25, .18) !important;
}

html[data-theme="light"] body #walletModal :is(
  .wallet-option,
  .wallet-modal-close,
  .wallet-connector-btn,
  .wallet-connector-card
) {
  background: var(--lp-surface-soft) !important;
  border-color: #cdd9c1 !important;
  color: #20291f !important;
}

html[data-theme="light"] body #walletModal :is(
  .wallet-hub-copy,
  .wallet-connector-placeholder,
  .wallet-connector-subtitle,
  .wallet-connector-muted
) {
  color: var(--lp-text-soft) !important;
}

html[data-theme="light"] body #walletModal :is(.wallet-connector-title, .wallet-connector-address) {
  color: var(--lp-text) !important;
}

html[data-theme="light"] body #walletModal .wallet-connector-btn.primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #10140c !important;
}

/* Toasts, tooltips and code blocks. */
html[data-theme="light"] body :is(.toast, .launchpad-toast, .launchpad-trade-toast, [role="tooltip"], .tooltip, .popover) {
  background: #ffffff !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
  box-shadow: var(--lp-shadow) !important;
}

html[data-theme="light"] body :is(code, pre, .code-block, .api-instant-key-copy code) {
  background: #edf1ea !important;
  border-color: var(--lp-line) !important;
  color: #243020 !important;
}

/* Preserve semantic green/red states with contrast suitable for white surfaces. */
html[data-theme="light"] body :is(.gain, .is-up, .positive, .status-ok, .success) {
  color: #397900 !important;
}

html[data-theme="light"] body :is(.loss, .is-down, .negative, .status-error, .error) {
  color: #c3313d !important;
}

html[data-theme="light"] body :is(.btn-primary, .create-btn, .filter-chip.active, .filter-chip.is-active) :is(span, strong, i) {
  color: #10140c !important;
}

/* Browser-native widgets and selection. */
html[data-theme="light"] body ::selection {
  background: rgba(143, 202, 0, .30);
  color: #11170f;
}

html[data-theme="light"] body {
  scrollbar-color: #b7c2b0 #edf1ea;
}

/*
 * Full-white public theme completion.
 * This block is intentionally public-only and is also loaded once at the end
 * of the public body so it wins over page-level inline dark styles.
 */
html[data-theme="light"] {
  --bg: #ffffff;
  --card: #ffffff;
  --muted: #667085;
  --text: #171a17;
  --border: #d8ded4;
  --lp-surface: #ffffff;
  --lp-surface-soft: #f3f5f1;
  --lp-surface-strong: #e8ece5;
  --lp-text: #171a17;
  --lp-text-soft: #667085;
  --lp-line: #d8ded4;
  --lp-shadow: 0 10px 28px rgba(31, 45, 27, .08);
}

/* The public canvas is fully white, including page-specific wrappers. */
html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] body .main,
html[data-theme="light"] body main,
html[data-theme="light"] body .content,
html[data-theme="light"] body .page-wrap,
html[data-theme="light"] body .page,
html[data-theme="light"] body .site-content,
html[data-theme="light"] body .live-page-main,
html[data-theme="light"] body .live-page-shell,
html[data-theme="light"] body .token-page-shell,
html[data-theme="light"] body .token-pump-layout,
html[data-theme="light"] body .profile-page,
html[data-theme="light"] body .communities-page,
html[data-theme="light"] body .community-page,
html[data-theme="light"] body .create-page,
html[data-theme="light"] body .docs-page,
html[data-theme="light"] body .integrations-page,
html[data-theme="light"] body .legal-page,
html[data-theme="light"] body .seo-landing-page {
  background-color: #ffffff !important;
  color: var(--lp-text) !important;
}

/* Public shell and every sidebar sub-surface. */
html[data-theme="light"] body :is(
  .sidebar,
  .topbar,
  .footer,
  .mobile-app-nav,
  .sidebar-language-current,
  .sidebar-language-menu,
  .sidebar-list-dock,
  .sidebar-list-panel,
  .sidebar-list-trigger,
  .sidebar-list-trigger-main,
  .sidebar-list-popover,
  .sidebar-social-links,
  .sidebar-social-link,
  .sidebar-creator-rewards
) {
  background: #ffffff !important;
  background-image: none !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
  box-shadow: none !important;
}

html[data-theme="light"] body :is(
  .sidebar-language-current,
  .sidebar-list-trigger-main,
  .sidebar-social-link,
  .sidebar-rail-toggle,
  .sidebar-support-trigger,
  .sidebar-theme-toggle
) {
  color: #3f493e !important;
}

html[data-theme="light"] body .sidebar-language-option,
html[data-theme="light"] body .sidebar-list-item,
html[data-theme="light"] body .footer a,
html[data-theme="light"] body .mobile-app-nav-item {
  color: #3f493e !important;
}

html[data-theme="light"] body .footer,
html[data-theme="light"] body .footer-company,
html[data-theme="light"] body .footer-links > span {
  color: #707a6d !important;
}

/* Common controls, badges, chips and inactive actions. */
html[data-theme="light"] body :is(
  .btn,
  .btn-ghost,
  .btn-secondary,
  .search-trigger,
  .search,
  .mobile-menu-btn,
  .sidebar-rail-toggle,
  .header-balance,
  .balance-trigger,
  .connect-btn,
  .wallet-trigger,
  .pill,
  .filter-chip,
  .home-sort-more-trigger,
  .home-view-btn,
  .home-filter-toggle-btn,
  .home-compact-view-btn,
  .chain-chip,
  .chain-badge,
  .token-stage-pill,
  .token-network-chip,
  .token-creator-chip,
  .swap-tab,
  .trade-tab,
  .preset-btn,
  .swap-preset-btn,
  .token-mobile-action,
  .token-direct-v3-market-link,
  .live-hero-arrow
):not(.btn-primary):not(.primary):not(.active):not(.is-active) {
  background: var(--lp-surface-soft) !important;
  background-image: none !important;
  border-color: var(--lp-line) !important;
  color: #303a2f !important;
  box-shadow: none !important;
}

html[data-theme="light"] body :is(
  .btn-primary,
  .primary,
  .create-btn,
  .filter-chip.active,
  .filter-chip.is-active,
  .chain-chip.active,
  .chain-chip.is-active,
  .swap-tab.active,
  .swap-tab.is-active,
  .trade-tab.active,
  .trade-tab.is-active,
  .mobile-app-nav-item-primary
) {
  background: var(--primary) !important;
  background-image: none !important;
  border-color: var(--primary) !important;
  color: #11170f !important;
}

html[data-theme="light"] body :is(
  .btn-primary,
  .primary,
  .create-btn,
  .filter-chip.active,
  .filter-chip.is-active,
  .chain-chip.active,
  .chain-chip.is-active,
  .swap-tab.active,
  .swap-tab.is-active,
  .trade-tab.active,
  .trade-tab.is-active,
  .mobile-app-nav-item-primary
) :is(span, strong, i) {
  color: #11170f !important;
}

/* All standard public surfaces found in style.css and page-level inline CSS. */
html[data-theme="light"] body :is(
  .card,
  .prose-card,
  .stat-box,
  .table-wrap,
  .profile-metric,
  .profile-hero,
  .profile-tabs-card,
  .profile-referrals-panel,
  .create-form-card,
  .create-submit-card,
  .create-confidence-item,
  .communities-search-wrap,
  .communities-top-panel,
  .community-card,
  .community-coin-card,
  .community-post-card,
  .community-comments,
  .community-member-row,
  .community-command-tile,
  .community-edit-panel,
  .docs-card,
  .docs-chain-card,
  .api-docs-card,
  .robin-api-card,
  .integrations-card,
  .seo-landing-hero,
  .seo-referral-share-card,
  .seo-landing-grid-card,
  .seo-landing-index-links,
  .seo-landing-faq,
  .seo-landing-links,
  .live-hero-card,
  .live-thumb-card,
  .token-pump-header,
  .token-market-card-pump,
  .token-action-strip-card,
  .token-discussion-card,
  .swap-box,
  .token-swap-box,
  .token-mini-card,
  .token-metric-card,
  .token-holder-card-compact,
  .token-graduation-card,
  .trade-modal-panel,
  .share-modal-card,
  .token-logo-modal-card,
  .wallet-profile-modal-dialog,
  .token-report-modal-panel,
  .modal-card,
  .modal-dialog,
  .dialog,
  .drawer,
  .popover,
  .dropdown-menu
) {
  background: #ffffff !important;
  background-image: none !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
  box-shadow: var(--lp-shadow) !important;
}

/* Attribute-pattern fallback for legacy and dynamically generated public UI. */
html[data-theme="light"] body :is(
  [class$="-card"],
  [class*="-card "],
  [class$="-panel"],
  [class*="-panel "],
  [class$="-dialog"],
  [class*="-dialog "],
  [class$="-modal"],
  [class*="-modal "],
  [class$="-menu"],
  [class*="-menu "],
  [class$="-popover"],
  [class*="-popover "],
  [class$="-dropdown"],
  [class*="-dropdown "],
  [class$="-drawer"],
  [class*="-drawer "]
) {
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
}

/* Inputs, upload targets and form helpers on every create/contact/profile flow. */
html[data-theme="light"] body :is(
  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select,
  option,
  .input,
  .textarea,
  .select,
  .upload-box,
  .swap-single-input,
  .swap-input-card,
  .swap-input-card-pump,
  [contenteditable="true"]
) {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #cfd7ca !important;
  color: #171a17 !important;
  box-shadow: none !important;
}

html[data-theme="light"] body :is(input, textarea)::placeholder {
  color: #899386 !important;
  opacity: 1 !important;
}

html[data-theme="light"] body :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--primary);
}

/* Homepage: compact, grid, table, trenches, filters and prepaint rules. */
html[data-theme="light"] body :is(
  .home-discovery-shell,
  .home-discovery-main,
  .home-section,
  .home-content,
  .home-trending-list,
  #trending-grid
) {
  background: #ffffff !important;
  background-image: none !important;
}

html[data-theme="light"] body :is(
  .home-token-tile.pump-token-tile,
  .home-trenches-card,
  .home-discovery-table,
  .home-discovery-table-head,
  .home-discovery-table-row,
  .home-sort-toggle,
  .home-view-toggle,
  .home-filter-popover,
  .home-sort-more-menu
) {
  background: #ffffff !important;
  background-image: none !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
}

html[data-theme="light"].home-view-pref-compact body #trending-grid.home-trending-list:not(.home-discovery-table-mode):not(.home-discovery-trenches-mode) .home-token-tile-media,
html[data-theme="light"].home-view-pref-compact body #trending-grid.home-trending-list:not(.home-discovery-table-mode):not(.home-discovery-trenches-mode) .pump-token-tile-media,
html[data-theme="light"] body :is(.home-token-tile-media, .pump-token-tile-media, .token-thumb, .token-card-thumb) {
  background: #eef1ec !important;
  background-image: none !important;
  border-color: var(--lp-line) !important;
  box-shadow: 0 8px 22px rgba(31,45,27,.08) !important;
}

html[data-theme="light"] body :is(
  .home-token-tile-copy,
  .pump-token-tile-copy,
  .home-discovery-table-cell,
  .pump-token-title,
  .pump-token-mc,
  .pump-token-footer
) {
  color: var(--lp-text) !important;
}

html[data-theme="light"] body :is(
  .home-trade-flash-avatar,
  .home-trade-flash-logo,
  .home-supported-chains-pill
) {
  background: var(--lp-surface-soft) !important;
  border-color: var(--lp-line) !important;
  color: #3d493b !important;
}

/* Keep media overlay controls readable over token artwork. */
html[data-theme="light"] body .lp-token-save-tile-star {
  background: rgba(18, 22, 18, .72) !important;
  border-color: rgba(255,255,255,.5) !important;
  color: #ffffff !important;
}

/* Tables and data rows throughout fees, docs, holders and activity. */
html[data-theme="light"] body :is(table, thead, tbody, tr, th, td, .table-wrap) {
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
}

html[data-theme="light"] body :is(table, thead, th, .table-wrap) {
  background: #ffffff !important;
  background-image: none !important;
}

html[data-theme="light"] body tbody tr:nth-child(even),
html[data-theme="light"] body :is(.trade-feed-row, .token-holder-row, .token-comment-item, .comment-thread-item, .swap-meta-item, .token-stat, .token-stat-item) {
  background: var(--lp-surface-soft) !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
}

/* Token page and all chain variants. */
html[data-theme="light"] body :is(
  .chart-frame,
  .chart-frame-pump,
  .chart-embed-pump,
  .chart-shell,
  .launchpad-tv-stage,
  #tradingview-widget,
  .tradingview-widget-container,
  .token-chart-wrap
) {
  background: #ffffff !important;
  background-image: none !important;
  border-color: var(--lp-line) !important;
}

html[data-theme="light"] body :is(
  .stat-box,
  .swap-single-input,
  .token-market-mini,
  .creator-studio-public-grid > div,
  .creator-studio-public-sales > div,
  .profile-rewards-chart
) {
  background: var(--lp-surface-soft) !important;
  background-image: none !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
}

html[data-theme="light"] body :is(
  .token-contract-copy-btn,
  .token-favorite-btn,
  .token-report-icon-btn,
  .swap-switch-btn,
  .token-direct-v3-market-link
) {
  background: var(--lp-surface-soft) !important;
  border-color: var(--lp-line) !important;
  color: #303a2f !important;
}

html[data-theme="light"] body :is(
  .token-market-progress,
  .bonding-progress,
  .bonding-progress-track,
  .bonding-progress-compact,
  .token-graduation-progress,
  .pump-token-progress
) {
  background-color: #dfe5da !important;
  border-color: #cfd7ca !important;
}

html[data-theme="light"] body :is(.bonding-info-tooltip, .profile-display-verified-tooltip) {
  background: #ffffff !important;
  border: 1px solid var(--lp-line) !important;
  color: #4e594c !important;
  box-shadow: var(--lp-shadow) !important;
}

html[data-theme="light"] body :is(#token-logo, #profile-avatar, .avatar, .avatar-xl) {
  background-color: #eef1ec !important;
  border-color: var(--lp-line) !important;
}

/* Docs, integrations and API reference details that were hard-coded dark inline. */
html[data-theme="light"] body :is(
  .docs-summary > div,
  .docs-spec-row,
  .docs-endpoints > div,
  .api-endpoint-list > div,
  .robin-api-endpoints > div,
  .robin-api-flow > div,
  .integrations-facts > div,
  .integration-spec,
  .integration-api-list > div
) {
  background: var(--lp-surface-soft) !important;
  background-image: none !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
}

html[data-theme="light"] body :is(
  .docs-nav a,
  .docs-top-link,
  .docs-spec-row code,
  .docs-endpoints code,
  .api-docs-links a,
  .api-docs-pill,
  .api-endpoint-list code,
  .robin-api-links a,
  .robin-api-pill,
  .robin-api-endpoints code,
  .integrations-btn:not(.primary),
  .integration-spec code,
  .integration-api-list code
) {
  color: #344231 !important;
}

html[data-theme="light"] body :is(
  .docs-eyebrow,
  .integrations-eyebrow,
  .api-docs-eyebrow,
  .robin-api-eyebrow,
  .integration-chain-market
) {
  color: #477f00 !important;
}

html[data-theme="light"] body :is(
  pre,
  code,
  .code-block,
  .api-docs-card pre,
  .robin-api-card pre
) {
  background: #f3f5f1 !important;
  border-color: var(--lp-line) !important;
  color: #273424 !important;
}

/* Contact, support and human-verification surfaces. */
html[data-theme="light"] body :is(
  .contact-social-btn,
  .contact-live-chat-btn
) {
  background: var(--lp-surface-soft) !important;
  border-color: var(--lp-line) !important;
  color: #303a2f !important;
}

html[data-theme="light"] body .contact-live-chat-divider {
  color: var(--lp-text-soft) !important;
}

html[data-theme="light"] body .contact-live-chat-divider::before,
html[data-theme="light"] body .contact-live-chat-divider::after {
  background: var(--lp-line) !important;
}

html[data-theme="light"] body :is(.alert.success, .status-success, .success) {
  background: #eef8dd !important;
  border-color: #c8e79a !important;
  color: #376d00 !important;
}

html[data-theme="light"] body :is(.alert.error, .status-error, .error, .contact-inline-toast-error) {
  background: #fff0f1 !important;
  border-color: #f1b8bd !important;
  color: #b4232f !important;
}

/* Livestream discovery and setup. */
html[data-theme="light"] body :is(
  .live-hero-card,
  .live-thumb-card,
  .live-card,
  .live-card-media,
  .live-skeleton-card,
  .live-skeleton-pulse,
  .live-viewers-pill,
  .live-card-viewers
) {
  background: #f3f5f1 !important;
  background-image: none !important;
  border-color: var(--lp-line) !important;
  color: #303a2f !important;
}

/* Wallet modal, search, dialogs, toasts and overlays. */
html[data-theme="light"] body :is(
  .wallet-dropdown-menu,
  .wallet-balance-menu,
  .header-create-dropdown,
  .search-modal-dialog,
  .search-results,
  .search-results-panel,
  .home-filter-popover,
  .home-sort-more-menu,
  .toast,
  .launchpad-toast,
  .launchpad-trade-toast,
  .popover,
  [role="tooltip"]
) {
  background: #ffffff !important;
  background-image: none !important;
  border-color: var(--lp-line) !important;
  color: var(--lp-text) !important;
  box-shadow: var(--lp-shadow) !important;
}

html[data-theme="light"] body :is(
  .wallet-dropdown-item,
  .header-create-option,
  .search-item,
  .sidebar-language-option,
  .sidebar-list-item
):hover {
  background: var(--lp-surface-soft) !important;
  color: #11170f !important;
}

html[data-theme="light"] body :is(
  .search-modal-backdrop,
  .trade-modal-backdrop,
  .share-modal-backdrop,
  .community-edit-backdrop,
  .modal-backdrop,
  .sidebar-backdrop.is-open
) {
  background: rgba(31, 42, 29, .42) !important;
}

/* Muted/supporting copy across every audited frontend page. */
html[data-theme="light"] body :is(
  .muted,
  .helper-text,
  .section-subtitle,
  .stat-label,
  .token-symbol,
  .token-age,
  .pump-token-age,
  .pump-token-subtitle,
  .pump-token-creator-link,
  .community-card-body p,
  .community-profile-copy p,
  .community-post-head,
  .community-post-foot,
  .integrations-page p,
  .docs-page p,
  .api-docs-card p,
  .robin-api-card p,
  .robin-api-card li,
  .docs-summary span,
  .docs-spec-row span,
  .docs-endpoints span,
  .api-endpoint-list span,
  .robin-api-endpoints span,
  .integrations-facts span,
  .integration-spec span,
  .integration-api-list span
) {
  color: var(--lp-text-soft) !important;
}

/* Final full-white coverage for public media shells and controls. */
html[data-theme="light"] body .lp-token-save-tile-star {
  background: #f1f4ef !important;
  border-color: #d8ded4 !important;
  color: #52604f !important;
  box-shadow: none !important;
}
html[data-theme="light"] body .lp-token-save-tile-star:hover,
html[data-theme="light"] body .lp-token-save-tile-star.is-active,
html[data-theme="light"] body .lp-token-save-tile-star[aria-pressed="true"] {
  background: #e8f4cf !important;
  border-color: #9fc94a !important;
  color: #4d690d !important;
}
html[data-theme="light"] body .create-check-dot.create-check-dot {
  background: #d8ded4 !important;
  border-color: #c6cec1 !important;
}
html[data-theme="light"] body .preview-media.preview-media,
html[data-theme="light"] body .preview-avatar.preview-avatar,
html[data-theme="light"] body .launchpad-video-frame-wrap.launchpad-video-frame-wrap {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #d8ded4 !important;
}
html[data-theme="light"] body #tradingview-widget.chart-frame-pump,
html[data-theme="light"] body #tradingview-widget.chart-frame-pump .launchpad-tv-stage,
html[data-theme="light"] body #tradingview-widget.chart-frame-pump .launchpad-tv-stage iframe {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #d8ded4 !important;
}
html[data-theme="light"] body .communities-feed-post-community img,
html[data-theme="light"] body .home-trade-flash-avatar img,
html[data-theme="light"] body .home-trade-flash-logo img,
html[data-theme="light"] body .search-item-thumb,
html[data-theme="light"] body .wallet-header-avatar,
html[data-theme="light"] body #share-token-image,
html[data-theme="light"] body #swap-asset-icon,
html[data-theme="light"] body #bsc-swap-asset-icon {
  background: #f1f4ef !important;
  background-color: #f1f4ef !important;
}
html[data-theme="light"] body #token-graduation-card .bonding-progress,
html[data-theme="light"] body #token-graduation-card .bonding-progress-track,
html[data-theme="light"] body #token-graduation-card .token-graduation-progress {
  background: #e5eadf !important;
  background-color: #e5eadf !important;
}

/* High-specificity public overrides for compact save controls and trade avatars. */
html[data-theme="light"] body .home-discovery-compact-mode .home-token-tile.pump-token-tile > .lp-token-save-tile-star,
html[data-theme="light"] body .home-token-tile.pump-token-tile > .lp-token-save-tile-star,
html[data-theme="light"] body .home-trenches-card[data-href] > .lp-token-save-tile-star {
  background: #f1f4ef !important;
  border-color: #d8ded4 !important;
  color: #52604f !important;
  box-shadow: none !important;
}
html[data-theme="light"] body .pump-trade-account img {
  background: #f1f4ef !important;
  background-color: #f1f4ef !important;
}

/* ID-anchored fallbacks for legacy high-specificity dark rules. */
html[data-theme="light"] body #trending-grid.home-discovery-compact-mode > .home-token-tile.pump-token-tile > button.lp-token-save-tile-star,
html[data-theme="light"] body #trending-grid.home-discovery-compact-mode > .home-trenches-card[data-href] > button.lp-token-save-tile-star {
  background: #f1f4ef !important;
  background-color: #f1f4ef !important;
  border-color: #d8ded4 !important;
  color: #52604f !important;
  box-shadow: none !important;
}
html[data-theme="light"] body #trade-feed table.pump-trades-table td.pump-trade-account img {
  background: #f1f4ef !important;
  background-color: #f1f4ef !important;
}

/* Contact: transparent green live-chat action. */
html body .contact-live-chat-btn {
  background: transparent !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}
html body .contact-live-chat-btn:hover,
html body .contact-live-chat-btn:focus-visible {
  background: rgba(166, 224, 15, .08) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

/* Restore semantic states after the broad surface rules. */
html[data-theme="light"] body :is(
  .gain,
  .is-up,
  .positive,
  .status-ok,
  .success,
  .buy,
  .trade-buy
) {
  color: #397900 !important;
}

html[data-theme="light"] body :is(
  .loss,
  .is-down,
  .negative,
  .status-error,
  .error,
  .sell,
  .trade-sell
) {
  color: #c3313d !important;
}

html[data-theme="light"] body ::selection {
  background: rgba(143, 202, 0, .30);
  color: #11170f;
}
