/* forge-buy-assist.css — Forge look for the BMIC /buy assist layer.
   Obsidian surfaces, amber accents, hairline borders, mono labels.
   Every rule is scoped to forge-* ids/classes except the cautious
   mobile toast reposition at the bottom (harmless if unmatched). */

#forge-rescue {
  position: relative;
  background: #141821;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 3px solid #e8a33d;
  border-radius: 10px;
  padding: 16px 18px 14px;
  margin: 12px 0;
  color: #e6e9ef;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: left;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  z-index: 10;
}

#forge-rescue.forge-rescue-fixed {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0 auto;
  max-width: 560px;
  z-index: 2147483000;
}

.forge-rescue-title {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  color: #e8a33d;
  letter-spacing: 0.01em;
  margin: 0 22px 8px 0;
}

.forge-rescue-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(230, 233, 239, 0.85);
  margin: 0 0 12px;
}

.forge-btn-amber {
  display: inline-block;
  background: #e8a33d;
  color: #14100a;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.forge-btn-amber:hover {
  background: #f0b356;
}

.forge-btn-amber:active {
  transform: translateY(1px);
}

.forge-rescue-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
}

.forge-rescue-close:hover {
  color: #e6e9ef;
}

.forge-rescue-help {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 10px;
}

.forge-rescue-help summary {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: #e8a33d;
  cursor: pointer;
  outline: none;
}

.forge-rescue-help ol {
  margin: 10px 0 2px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(230, 233, 239, 0.85);
}

.forge-rescue-help li {
  margin-bottom: 4px;
}

#forge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.forge-chip {
  background: #0b0d10;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: #e8a33d;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.forge-chip:hover {
  border-color: #e8a33d;
  background: #141821;
}

.forge-chip:active {
  background: #e8a33d;
  color: #14100a;
}

#forge-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: #0b0d10;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(230, 233, 239, 0.75);
  text-align: left;
}

#forge-trust a {
  color: #e8a33d;
  text-decoration: none;
  border-bottom: 1px dotted rgba(232, 163, 61, 0.6);
}

#forge-trust a:hover {
  border-bottom-style: solid;
}

/* Mobile: move react-hot-toast off the Connect Wallet button (top right)
   down to the bottom of the viewport. Selectors are intentionally cautious
   and harmless if they match nothing. */
@media (max-width: 768px) {
  #_rht_toaster,
  [id*="toaster"],
  div[class^="go"][style*="position: fixed"] {
    top: auto !important;
    bottom: 84px !important;
  }

  #forge-rescue {
    padding: 14px 14px 12px;
  }

  .forge-btn-amber {
    width: 100%;
    text-align: center;
  }
}

/* ---- express walletless card lane ---- */
#forge-express-entry{display:block;width:100%;margin-top:10px;padding:12px 14px;background:none;border:1px dashed rgba(232,163,61,.45);color:#e8a33d;font:500 12px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em;cursor:pointer;text-transform:uppercase}
#forge-express-entry:hover{background:rgba(232,163,61,.08)}
#forge-express{margin-top:12px;padding:16px;background:#141821;border:1px solid rgba(232,163,61,.3);box-shadow:0 24px 70px -34px rgba(0,0,0,.85)}
.forge-express-title{color:#e8a33d;font:600 13.5px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em;text-transform:uppercase}
.forge-express-body{margin:8px 0 12px;color:#9aa5b4;font:400 12.5px/1.55 ui-sans-serif,system-ui,sans-serif}
.forge-express-row{display:flex;gap:8px;flex-wrap:wrap}
#forge-express-email{flex:1;min-width:180px;min-height:46px;padding:0 12px;background:#0b0d10;border:1px solid rgba(255,255,255,.14);color:#e7edf6;font:400 14px/1 ui-sans-serif,system-ui,sans-serif;outline:none}
#forge-express-email:focus{border-color:rgba(232,163,61,.6)}
#forge-express .forge-btn-amber{min-height:46px;white-space:nowrap}
.forge-express-msg{margin-top:8px;color:#e8a33d;font:400 12px/1.4 ui-sans-serif,system-ui,sans-serif;min-height:14px}
.forge-btn-ghost{display:block;width:100%;margin-top:8px;padding:11px 14px;background:none;border:1px solid rgba(255,255,255,.16);color:#e7edf6;font:500 12px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.05em;cursor:pointer;text-transform:uppercase}
.forge-btn-ghost:hover{border-color:rgba(232,163,61,.5);color:#e8a33d}
