:root{
  --bg:#0f1720;
  --card:#262832;
  --muted:#9aa0ab;
  --accent:#16a34a; /* green */
  --glass:#1b2128;
  --text:#e6eef7;
  --radius:14px;
  --card-padding:20px;
  --mobile-gap:14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:linear-gradient(180deg,var(--bg), #07101a 120%);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  align-items:stretch;
  justify-content:center;
  padding:20px;
  font-size:15px;
  line-height:1.2;
}

.app{
  width:100%;
  max-width:420px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* Top bar */
.topbar{
  height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:0 6px;
}
.icon-btn{
  background:transparent;
  color:var(--muted);
  border:0;
  font-size:20px;
  padding:8px;
  border-radius:8px;
}
.logo{
  font-weight:700;
  color:#fff;
  background:linear-gradient(90deg,#fff,#d1eaff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-size:16px;
}

/* card */
.container{display:flex;flex-direction:column;gap:16px}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:16px;
  padding:22px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  border:1px solid rgba(255,255,255,0.03);
}

.success-circle{
  width:66px;
  height:66px;
  border-radius:50%;
  background:linear-gradient(180deg,#2ad16a,#0ea34a);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  margin:0 auto;
  color:#04210c;
  box-shadow:0 8px 20px rgba(12,54,24,0.25);
}

.card-title{
  text-align:center;
  margin:12px 0 6px;
  font-size:20px;
}
.amount{
  text-align:center;
  font-weight:700;
  font-size:22px;
  color:#dbeefe;
  margin-bottom:14px;
}

/* details */
.details{
  background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005));
  border-radius:12px;
  padding:14px;
}

.details-header{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  margin-bottom:10px;
}
.file-emoji{font-size:18px}

.row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:10px 6px;
  border-bottom:1px dashed rgba(255,255,255,0.02);
}
.row:last-of-type{border-bottom:0}

.label{
  color:var(--muted);
  font-size:13px;
  min-width:86px;
}

.value{
  text-align:right;
  max-width:100%;
  word-break:break-all;
  font-weight:600;
}

/* muted subtext */
.muted{
  display:block;
  font-weight:400;
  color:var(--muted);
  font-size:12px;
}

/* address row layout */
.addr-row{align-items:center}
.txhash-row{align-items:center}

.copy-btn{
  margin-left:10px;
  background:transparent;
  border:0;
  color:#ffcb45;
  font-weight:700;
  cursor:pointer;
  padding:6px;
  border-radius:8px;
}

.status{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.dot.green{background:var(--accent)}
.dot.yellow{background:#ffc107}
.dot.red{background:#f44336}

/* view link */
.view-link{text-align:right;margin-top:6px}
.view-link a{color:#ffcc70;text-decoration:none;font-size:13px}

/* controls */
.controls{
  background:transparent;
  padding:10px 6px 0 6px;
}
.controls h2{margin:6px 0 10px;font-size:16px}
.form-grid{
  display:grid;
  gap:10px;
  grid-template-columns:1fr;
}
label{display:block;font-size:13px;color:var(--muted)}
input[type="text"]{
  width:100%;
  padding:12px 10px;
  margin-top:6px;
  border-radius:10px;
  background:var(--glass);
  border:1px solid rgba(255,255,255,0.03);
  color:var(--text);
  font-weight:600;
}

/* buttons */
.controls-row{display:flex;gap:10px;margin-top:12px}
.action-btn{
  flex:1;
  background:linear-gradient(180deg,#2ad16a,#0ea34a);
  color:#04210c;
  border:0;padding:12px;border-radius:10px;font-weight:700;cursor:pointer;
}
.outline-btn{
  flex:1;
  background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--text);padding:12px;border-radius:10px;cursor:pointer;
}

/* footer */
.footer{text-align:center;color:var(--muted);font-size:12px;padding:8px 0}

/* responsiveness */
@media (max-width:420px){
  body{padding:12px}
  .app{max-width:100%}
  .success-circle{width:64px;height:64px;font-size:32px}
  .card{padding:18px}
}
