:root{
  --bg0:#070a12;
  --bg1:#0b1020;
  --card:#0f1733;
  --card2:#0c132a;
  --text:#e9ecff;
  --muted:#aab2d8;
  --line:rgba(255,255,255,0.10);
  --accent:#8bf0ff;
  --accent2:#a78bfa;
  --danger:#ff6b7a;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --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, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 12% 8%, rgba(139,240,255,.20), transparent 55%),
    radial-gradient(900px 500px at 92% 18%, rgba(167,139,250,.22), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.page{ min-height:100svh; display:flex; flex-direction:column; }

.topbar{
  padding: 28px 18px 10px;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}

.brand{ display:flex; align-items:center; gap:14px; }
.logo{
  width:44px; height:44px;
  display:grid; place-items:center;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 22px;
}
.brand-title{ font-weight:800; letter-spacing:0.2px; font-size:18px; }
.brand-subtitle{ color:var(--muted); font-size:13px; margin-top:2px; }

.main{
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 18px 28px;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.card{
  width: 100%;
  max-width: 720px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
}

.card.secondary{
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.card.error{
  border-color: rgba(255,107,122,0.55);
  box-shadow: 0 20px 60px rgba(255,107,122,0.14);
}

.card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.label{
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.headline{
  font-size: 22px;
  font-weight: 850;
  margin-top: 6px;
}

.chip{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(139,240,255,0.14);
  border: 1px solid rgba(139,240,255,0.34);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.divider{
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
}

.field .value{
  margin-top: 6px;
  font-size: 14px;
  color: var(--text);
}

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.section-title{
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}

.muted{ color: var(--muted); }

.items{ display:flex; flex-direction:column; gap:10px; }
.item-row{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
}
.item-title{ font-weight: 750; }
.item-sub{ margin-top: 6px; color: var(--muted); font-size: 13px; }

.total-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
}
.total-value{
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tx-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.tx-hash{
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.20);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor:pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}
.btn:active{ transform: translateY(1px); }
.btn.primary{
  background: rgba(139,240,255,0.14);
  border-color: rgba(139,240,255,0.34);
}

.actions{ display:flex; gap:10px; flex-wrap: wrap; margin-top: 12px; }

.link{
  display:inline-block;
  margin-top: 10px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.link:hover{ text-decoration: underline; }

.raw{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  overflow:auto;
  max-height: 260px;
  font-size: 12px;
}

.error-text{
  color: var(--danger);
  font-weight: 700;
}

.footer{
  margin-top: auto;
  padding: 18px;
  text-align:center;
  font-size: 12px;
}
