.bridge-page { max-width:640px; margin:0 auto; padding:48px 20px 60px; }

.bridge-hero { position:relative; text-align:center; margin-bottom:28px; }
.bridge-hero h1 { font-size:2rem; font-weight:800; margin-bottom:10px; }
.bridge-hero .create-sub { max-width:520px; margin-left:auto; margin-right:auto; }

.bridge-card {
  background:var(--bg-card); border:1px solid var(--border); border-radius:16px;
  overflow:hidden; height:640px;
}
.bridge-card iframe { width:100%; height:100%; border:none; display:block; }

.bridge-note { text-align:center; color:var(--text-dim); font-size:0.75rem; font-style:italic; margin-top:14px; }

@media (max-width:700px) {
  .bridge-card { height:560px; }
}

/* --- native Gateway bridge card ------------------------------------ */
.bridge-card-native { height:auto; padding:22px 22px 18px; display:flex; flex-direction:column; gap:4px; }

.bg-cctp-status {
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin-bottom:14px; font-size:0.8rem; font-weight:700; color:var(--text-dim);
}
.bg-cctp-dot { width:9px; height:9px; border-radius:50%; background:var(--text-dim); flex-shrink:0; }
.bg-cctp-status.online .bg-cctp-dot { background:var(--green); box-shadow:0 0 6px var(--green); }
.bg-cctp-status.online { color:var(--green); }
.bg-cctp-status.offline .bg-cctp-dot { background:#e0554f; }
.bg-cctp-status.offline { color:#e0554f; }

.bg-tabs { display:flex; gap:8px; margin-bottom:14px; }
.bg-tab {
  font-size:0.78rem; font-weight:800; padding:6px 14px; border-radius:8px;
  background:rgba(228,128,157,0.14); color:var(--pink); border:1px solid transparent;
}

.bg-field-head { display:flex; justify-content:space-between; align-items:center; margin-top:12px; margin-bottom:6px; }
.field-label-sm { font-size:0.68rem; font-weight:800; letter-spacing:0.04em; color:var(--text-dim); text-transform:uppercase; }
.bg-wallet-bal { font-size:0.75rem; color:var(--text-dim); font-weight:600; }

.bg-source-row {
  display:flex; align-items:center; gap:10px; border:1px solid var(--border); border-radius:10px;
  padding:10px 14px; background:var(--bg);
}
.bg-source-icon { width:22px; height:22px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.bg-inline-icon { width:15px; height:15px; border-radius:50%; object-fit:cover; vertical-align:-3px; margin-right:4px; }
.bg-to-arc { display:inline-flex; align-items:center; }

/* Custom FROM-chain dropdown, replacing a raw <select> — a native select's
   options popup can't be restyled cross-browser and rendered with default
   OS light styling in the middle of an otherwise fully dark-themed card.
   Reuses the same .network-dropdown/.network-option classes as the nav's
   Arc/Stable switcher for visual consistency. */
.bg-source-select-wrap { position:relative; flex:1; }
.bg-source-btn {
  display:flex; align-items:center; gap:10px; width:100%; border:none; background:none;
  color:var(--text); font-weight:700; font-size:0.92rem; font-family:inherit; cursor:pointer; padding:2px 0;
}
.bg-source-btn span:first-of-type { flex:1; text-align:left; }
.bg-source-select-wrap .network-dropdown { left:0; right:auto; width:100%; min-width:0; }

.bg-amount-input {
  width:100%; border:1px solid var(--border); border-radius:10px; background:var(--bg);
  color:var(--text); font-size:1.3rem; font-weight:700; padding:12px 14px; font-family:inherit;
}
.bg-amount-input::placeholder { color:var(--text-dim); opacity:0.6; }

.bg-max-btn {
  border:1px solid var(--border); border-radius:6px; background:none; color:var(--pink);
  font-size:0.68rem; font-weight:800; padding:2px 8px; cursor:pointer;
}
.bg-max-btn:hover { border-color:var(--pink); }

.bg-to-row {
  margin-top:14px; border:1px solid var(--border); border-radius:10px; padding:12px 14px;
  background:var(--bg); display:flex; flex-direction:column; gap:6px;
}
.bg-to-line { display:flex; justify-content:space-between; align-items:center; font-size:0.85rem; }
.bg-receive { font-weight:800; color:var(--pink); }
.bg-fee-line { font-size:0.72rem; color:var(--text-dim); justify-content:flex-start; }

.bg-safety-note {
  font-size:0.75rem; line-height:1.5; color:var(--text-dim); background:var(--bg);
  border:1px solid var(--border); border-radius:10px; padding:10px 12px; margin:14px 0 0;
}

.bg-bridge-btn { width:100%; margin-top:14px; padding:13px; font-size:0.95rem; }

.bg-steps { margin-top:16px; border:1px solid var(--border); border-radius:10px; padding:12px 14px; display:flex; flex-direction:column; gap:8px; }
.bg-step { display:flex; align-items:center; gap:10px; font-size:0.83rem; color:var(--text-dim); }
.bg-step-mark {
  width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:0.68rem; font-weight:800; border:1px solid var(--border); flex-shrink:0;
}
.bg-step-done { color:var(--text); }
.bg-step-done .bg-step-mark { background:var(--green); border-color:var(--green); color:#fff; }
.bg-step-active { color:var(--text); font-weight:700; }
.bg-step-active .bg-step-mark { border-color:var(--pink); color:var(--pink); animation:bgPulse 1.2s ease-in-out infinite; }
.bg-step-error { color:#e0554f; font-weight:700; }
.bg-step-error .bg-step-mark { border-color:#e0554f; color:#e0554f; }
@keyframes bgPulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.bg-step-status { font-size:0.78rem; color:var(--text-dim); font-style:italic; margin-top:2px; }
.bg-step-error-text { color:#e0554f; font-style:normal; }

.bg-timer {
  margin-top:10px; text-align:center; font-size:0.78rem; color:var(--text-dim);
  border:1px dashed var(--border); border-radius:10px; padding:8px 10px;
}

.bg-balances { margin-top:18px; padding-top:14px; border-top:1px solid var(--border); }
.bg-balances-row { display:flex; flex-wrap:wrap; gap:14px; margin-top:8px; font-size:0.8rem; color:var(--text-dim); }
.bg-balances-row span span { color:var(--text); font-weight:700; }

.bg-contracts-note { text-align:center; color:var(--text-dim); font-size:0.62rem; margin-top:16px; opacity:0.7; }

@media (max-width:700px) {
  .bg-balances-row { gap:10px 16px; }
}
