
:root{
  --bg:#0b0c10;
  --card:#12141a;
  --text:#e9eef7;
  --muted:#9aa3b2;
  --border:#232833;
  --accent:#6ee7ff;
  --danger:#ff5c7a;
  --success:#46ffaa;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 600px at 50% -200px, rgba(110,231,255,.18), transparent 55%) , var(--bg);
  color:var(--text);
}
a{color:inherit}
.topbar{
  position:sticky; top:0;
  display:flex; align-items:center; justify-content:space-between;
  padding: max(14px, env(safe-area-inset-top)) 14px 12px;
  background: rgba(11,12,16,.72);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(35,40,51,.55);
  z-index:5;
}
.title{font-weight:800; letter-spacing:.2px}
.iconbtn{
  width:40px; height:40px; border-radius:12px;
  border:1px solid rgba(35,40,51,.75);
  background: rgba(18,20,26,.55);
  color:var(--text);
  display:grid; place-items:center;
}
.iconbtn svg{width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; opacity:.95}
.container{padding:18px 14px 40px; max-width:520px; margin:0 auto}
.card{
  background: linear-gradient(180deg, rgba(18,20,26,.92), rgba(12,13,17,.92));
  border:1px solid rgba(35,40,51,.85);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.balanceLabel{color:var(--muted); font-size:13px}
.balanceAmount{font-size:44px; font-weight:900; margin-top:8px; letter-spacing:-.8px}
.balanceSub{color:var(--muted); margin-top:-6px; font-weight:700}
.btnRow{display:flex; gap:12px; margin-top:16px}
.primaryBtn,.ghostBtn{
  flex:1;
  border-radius:14px;
  padding:14px 16px;
  font-weight:900;
  text-decoration:none;
  display:inline-block;
  text-align:center;
}
.primaryBtn{
  border:none;
  color:#061015;
  background: linear-gradient(90deg, var(--accent), #b7ffde);
  box-shadow: 0 10px 20px rgba(110,231,255,.18);
}
.ghostBtn{
  border:1px solid rgba(35,40,51,.85);
  background: rgba(18,20,26,.6);
  color:var(--text);
}
.section{margin-top:18px}
.sectionTitle{color:var(--muted); font-size:13px; margin:6px 4px 10px}
.txRow{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:14px 14px;
  border-radius: var(--radius);
  border:1px solid rgba(35,40,51,.85);
  background: rgba(18,20,26,.65);
  text-decoration:none;
}
.txRow.static{cursor:default}
.txLeft{display:flex; align-items:center; gap:12px}
.txBadge{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(35,40,51,.85);
  background: rgba(15,17,22,.75);
}
.txBadge.success{border-color: rgba(70,255,170,.28); color: rgba(70,255,170,.92)}
.txBadge.neutral{border-color: rgba(154,163,178,.28); color: rgba(154,163,178,.92)}
.txMeta{display:flex; flex-direction:column}
.txName{font-weight:900}
.txTime{color:var(--muted); font-size:12px; margin-top:2px}
.txRight{display:flex; align-items:center; gap:10px}
.txAmount{font-weight:900}
.txChevron{color:var(--muted); font-size:22px; margin-top:-2px}

.fieldLabel{color:var(--muted); font-size:12px; margin:6px 4px}
.assetPill{
  display:inline-flex; align-items:center; gap:10px;
  border-radius:999px;
  border:1px solid rgba(35,40,51,.85);
  padding:10px 12px;
  background: rgba(15,17,22,.75);
  font-weight:900;
}
.dot{width:10px; height:10px; border-radius:999px; background: var(--accent); box-shadow: 0 0 0 4px rgba(110,231,255,.15)}
.addressBox{
  display:flex; gap:10px; align-items:center; justify-content:space-between;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(35,40,51,.85);
  background: rgba(15,17,22,.75);
}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size:12.5px; word-break:break-all}
.secondaryBtn{
  border:1px solid rgba(35,40,51,.85);
  background: rgba(18,20,26,.9);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
}
.hint{color:var(--muted); font-size:12px; margin:10px 2px 0; line-height:1.35}
.linkBtn{
  display:block;
  margin-top:14px;
  text-align:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(35,40,51,.85);
  color:var(--text);
  text-decoration:none;
  background: rgba(15,17,22,.55);
}
.kv{
  display:grid;
  grid-template-columns: 1fr 1.35fr;
  gap:10px 12px;
  padding: 10px 2px 0;
}
.k{color:var(--muted); font-size:12px}
.v{font-weight:800; font-size:13px}
.pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(35,40,51,.85);
  background: rgba(15,17,22,.75);
  font-weight:900;
  font-size:12px;
}
.pill.success{border-color: rgba(70,255,170,.28); color: rgba(70,255,170,.92)}
.footerPad{padding-bottom: max(20px, env(safe-area-inset-bottom));}
.toast{
  position:fixed;
  left:50%;
  transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom));
  background: rgba(18,20,26,.95);
  border:1px solid rgba(35,40,51,.85);
  border-radius:999px;
  padding:10px 14px;
  box-shadow: var(--shadow);
  color:var(--text);
  font-weight:800;
  z-index:10;
}
button{cursor:pointer}
button:active, a:active{transform: translateY(1px)}
