
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Mono:wght@400;700&family=Barlow:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #e8f5f7;
  --surface:    #f2fafb;
  --surface2:   #ddf0f3;
  --border:     rgba(0, 130, 155, 0.10);
  --border2:    rgba(0, 130, 155, 0.22);
  --text:       #1a3a42;
  --muted:      #4e7d89;
  --hint:       #8eb8c2;
  --accent:     #0097b2;
  --accent2:    #007a94;
  --accent3:    #005f74;
  --danger-bg:  rgba(200, 50, 50, 0.06);
  --danger-b:   rgba(200, 50, 50, 0.20);
  --danger-t:   #b03535;
  --warn-bg:    rgba(180, 110, 0, 0.06);
  --warn-b:     rgba(180, 110, 0, 0.18);
  --warn-t:     #8a6000;
  --success:    #008f78;
  --mono:       'Space Mono', monospace;
  --sans:       'Barlow', sans-serif;
  --display:    'Bebas Neue', sans-serif;
  --r:          10px;
  --r-sm:       6px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  padding: 2rem 1rem 5rem;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(0, 180, 210, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 30% 20% at 95% 90%, rgba(0, 150, 180, 0.05) 0%, transparent 50%);
}

.page { max-width: 520px; margin: 0 auto; }
.page-wide { max-width: 760px; margin: 0 auto; }

.display {
  font-family: var(--display);
  letter-spacing: 1px;
  line-height: 1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  margin-bottom: 10px;
  animation: fadeUp 0.25s ease both;
  box-shadow: 0 1px 3px rgba(0, 130, 155, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.card-label {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card:nth-child(1) { animation-delay: 0.04s; }
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.16s; }
.card:nth-child(5) { animation-delay: 0.20s; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.14s;
  text-decoration: none;
}
.btn:hover  { border-color: var(--accent); color: var(--accent); background: rgba(0, 151, 178, 0.06); }
.btn:active { border-color: var(--accent2); color: var(--accent2); background: rgba(0, 151, 178, 0.12); transform: scale(0.97); }
.btn.copied, .btn.success { border-color: var(--success); color: var(--success); background: rgba(0, 143, 120, 0.07); }
.btn.danger  { border-color: var(--danger-b); color: var(--danger-t); }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}
.btn-accent:hover  { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.btn-accent:active { background: var(--accent3); border-color: var(--accent3); color: #fff; transform: scale(0.98); }
.btn-accent:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.btn-full { width: 100%; justify-content: center; padding: 11px; font-size: 12px; }
.btn-row  { display: flex; gap: 8px; flex-wrap: wrap; }

.mono     { font-family: var(--mono); }
.muted    { color: var(--muted); }
.accent   { color: var(--accent); }
.text-sm  { font-size: 13px; }
.text-xs  { font-size: 11px; }

.input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  outline: none;
  transition: border-color 0.14s, box-shadow 0.14s;
}
.input:focus     { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.08); }
.input::placeholder { color: var(--hint); }

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234e7d89' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.warn-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-b);
  border-radius: var(--r);
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.warn-box p { font-size: 12px; color: var(--warn-t); line-height: 1.6; }
.warn-icon  { font-size: 14px; flex-shrink: 0; margin-top: 1px; color: var(--warn-t); }

.danger-box {
  background: var(--danger-bg);
  border: 1px solid var(--danger-b);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--danger-t);
  margin-bottom: 10px;
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 13px;
}
.field-row + .field-row { border-top: 1px solid var(--border); }
.field-key { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
.field-val { font-weight: 500; text-align: right; }

.net-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--muted);
}
.net-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 5px rgba(0, 151, 178, 0.35);
}

.wallet-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.wallet-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hint);
  flex-shrink: 0;
  transition: all 0.3s;
}
.wallet-dot.connected { background: var(--success); box-shadow: 0 0 6px rgba(0, 143, 120, 0.4); }

.steps { display: flex; flex-direction: column; gap: 10px; }
.step  { display: flex; gap: 12px; align-items: flex-start; }
.step-n {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  font-size: 11px; font-family: var(--mono);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
  background: rgba(0, 151, 178, 0.07);
}
.step-t { font-size: 13px; color: var(--muted); line-height: 1.6; padding-top: 2px; }
.step-t strong { color: var(--text); font-weight: 600; }

.amount-big {
  font-family: var(--display);
  font-size: 52px;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--accent3);
}
.amount-token { font-size: 22px; font-weight: 300; color: var(--muted); letter-spacing: 2px; }
.amount-note  { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 6px; }

.qr-box {
  width: 124px; height: 124px;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; flex-shrink: 0;
  background: var(--surface2);
  color: var(--hint);
}
.qr-label { font-size: 10px; font-family: var(--mono); letter-spacing: 0.06em; }

.sep { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

.flex         { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.mt-8         { margin-top: 8px; }
.mt-12        { margin-top: 12px; }
.mb-0         { margin-bottom: 0; }
.w-full       { width: 100%; }
.word-break   { word-break: break-all; }