/* =============================================================
   bridge.css — 브릿지 페이지 전용. 공용 토큰/헤더는 ../style.css
   ============================================================= */

.bridge-page a.brand { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--fm); }

.inapp-bar { background: #2a1a08; border-bottom: 1px solid var(--gb); padding: 12px 16px; text-align: center;
  font-size: 13px; color: var(--gold-b); }
.inapp-bar button { margin-left: 10px; font-family: var(--fn); font-weight: 700; font-size: 12.5px; cursor: pointer;
  border: none; border-radius: 6px; padding: 6px 12px; background: var(--gold); color: var(--ink); }

.hero-sm { padding: 40px 0 26px; }
.wl { font-size: 13px; color: var(--txt-2); }

/* ---- header network menu ---- */
.netmenu { position: relative; }
.netbtn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--fn); font-size: 12px; font-weight: 600;
  color: var(--txt); background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  cursor: pointer; white-space: nowrap; }
.netbtn:hover { border-color: var(--gb); }
.netbtn.bad { border-color: rgba(217,64,64,.5); color: #E88; }
.netbtn .caret { color: var(--txt-3); font-size: 10px; }
.netpop { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; z-index: 60;
  background: var(--ink-2); border: 1px solid var(--gb); border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.netpop.on { display: block; }
.netpop .ttl { font-family: var(--fm); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--txt-3); padding: 8px 10px 6px; }

.cdot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--txt-3);
  box-shadow: 0 0 0 2px rgba(255,255,255,.06); }

/* 체인 행 (헤더 메뉴 + 모달 공용) */
.copt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font-family: var(--fn);
  font-size: 13.5px; color: var(--txt); background: transparent; border: 1px solid transparent; border-radius: 8px;
  padding: 9px 10px; cursor: pointer; }
.copt:hover { background: var(--ink-3); }
.copt.cur { border-color: var(--gb); background: var(--gp); }
.copt:disabled { opacity: .35; cursor: not-allowed; }
.copt .cn { flex: 1; }
.copt .cb { font-family: var(--fm); font-size: 11.5px; color: var(--txt-2); }
.copt .ck { color: var(--gold); font-size: 12px; }
.chainbadge { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--fm); font-size: 9px; font-weight: 700; color: #fff; flex: none; letter-spacing: -.02em; }

/* ---- bridge card ---- */
.bcard { margin-top: 18px; border: 1px solid var(--gb); border-radius: 18px; padding: 18px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: 0 0 0 1px var(--gp), 0 20px 50px rgba(0,0,0,.35); }
.bside { background: rgba(0,0,0,.28); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; }
.bside-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.blabel { font-family: var(--fm); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-2); }
.bbal { font-size: 12px; color: var(--txt-3); text-align: right; }
.bbal b { color: var(--txt-2); font-weight: 600; font-family: var(--fm); }
.brow { display: flex; align-items: center; gap: 10px; }
.chainbtn { display: inline-flex; align-items: center; gap: 8px; flex: none; font-family: var(--fn); font-size: 14px; font-weight: 600;
  color: var(--txt); background: var(--ink-3); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px 7px 7px; cursor: pointer; }
.chainbtn:hover { border-color: var(--gb); }
.chainbtn .caret { color: var(--txt-3); font-size: 10px; }
.amt { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--txt); text-align: right;
  font-family: var(--fn); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.amt::placeholder { color: var(--txt-3); }
.amt.bad { color: #E88; }
.maxbtn { flex: none; font-family: var(--fm); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; cursor: pointer;
  border: 1px solid var(--gb); background: var(--gp); color: var(--gold-b); border-radius: 6px; padding: 5px 8px; }
.recv { flex: 1; min-width: 0; text-align: right; }
.recv-l { display: block; font-size: 11px; color: var(--txt-3); }
.recv-v { display: block; font-size: 20px; font-weight: 600; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.swapwrap { display: flex; justify-content: center; margin: -8px 0; position: relative; z-index: 2; }
.swapbtn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--gb); background: var(--ink-2);
  color: var(--gold); font-size: 17px; cursor: pointer; transition: transform .2s; }
.swapbtn:hover { transform: rotate(180deg); }

.rcpt { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; }
.rcpt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.rcpt-self { font-size: 13px; color: var(--txt-2); }
.rcpt-self .mono { color: var(--txt); font-size: 12px; }
.rcpt-in { width: 100%; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px;
  color: var(--txt); font-size: 12.5px; outline: none; }
.rcpt-in:focus { border-color: var(--gb); }
.rcpt-err { margin-top: 6px; font-size: 12px; color: #E88; }
.linkbtn { background: none; border: none; color: var(--gold-b); font-family: var(--fn); font-size: 12px; font-weight: 600;
  cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }

.feebox { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--gp); border: 1px solid var(--line); }
.frow { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--txt-2); padding: 3px 0; }
.frow span:last-child { font-family: var(--fm); color: var(--txt); text-align: right; }
.frow.tot { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; font-weight: 600; color: var(--txt); }
.frow.tot span:last-child { color: var(--gold); }
.fnote { font-size: 11.5px; color: var(--txt-3); margin-top: 6px; line-height: 1.5; }

.steps { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--fm); font-size: 11px; color: var(--txt-3); }
.steps .sline { flex: 1; height: 1px; background: var(--line); }
.steps .on { color: var(--gold); }
.steps .done { color: var(--green); }

.actbtn { width: 100%; margin-top: 14px; }

/* ---- sections ---- */
.bsec { margin-top: 34px; }
.bsec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 10px; }
.bsec-h .t { font-family: var(--fm); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--txt-2); }
.bsec-h .r { display: inline-flex; gap: 12px; align-items: baseline; }
.bsec-h .tot { font-family: var(--fm); font-size: 12px; color: var(--gold); }

.balgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.baltile { display: flex; align-items: center; gap: 10px; text-align: left; font-family: var(--fn); color: var(--txt);
  border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); padding: 11px 12px; cursor: pointer; min-width: 0; }
.baltile:hover { border-color: var(--gb); }
.baltile.sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gm); }
.baltile .bt { min-width: 0; }
.baltile .bn { display: block; font-size: 11.5px; color: var(--txt-2); }
.baltile .bv { display: block; font-family: var(--fm); font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.baltile .bv.zero { color: var(--txt-3); font-weight: 400; }

.hist { display: flex; flex-direction: column; gap: 8px; }
.hempty { font-size: 13px; color: var(--txt-3); padding: 14px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.hitem { border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); padding: 12px 14px; }
.hitem-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hitem .route { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.hitem .amtv { font-family: var(--fm); font-size: 13px; color: var(--gold); margin-left: auto; }
.hitem-bot { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 11.5px; color: var(--txt-3); }
.hitem-bot a { color: var(--gold-b); text-decoration: none; }
.hitem-bot a:hover { text-decoration: underline; }
.pill { font-family: var(--fm); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; }
.pill.sent { background: rgba(212,168,67,.12); color: var(--gold-b); border: 1px solid var(--gb); }
.pill.done { background: rgba(31,168,106,.12); color: #6D9; border: 1px solid rgba(31,168,106,.35); }
.pill.fail { background: rgba(217,64,64,.1); color: #E88; border: 1px solid rgba(217,64,64,.3); }
.pill.sent::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  margin-right: 5px; vertical-align: 1px; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.bfoot { margin: 44px 0 40px; text-align: center; font-size: 11.5px; color: var(--txt-3); line-height: 1.8; }
.bfoot a { color: var(--txt-2); }
.bfoot-c { word-break: break-all; }

.clist { display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  /* 좁은 화면: 네트워크 버튼은 색 점 + ▾ 만, 언어 버튼은 줄바꿈 금지 */
  .netbtn { padding: 6px 8px; gap: 5px; }
  .netbtn #netName { display: none; }
  .lang button { padding: 5px 6px; white-space: nowrap; }
  .brand { font-size: 16px; }
  .bcard { padding: 12px; }
  .amt { font-size: 22px; }
  .chainbtn { font-size: 13px; }
  .chainbtn .cl { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
