/* nimiq.express, nimiq-ui rebrand. @nimiq/style sets html{font-size:8px} so 1rem=8px.
   All custom CSS is written in px to stay correct under that root. */

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

body {
  font-family: 'Mulish', 'Muli', system-ui, sans-serif !important;
  background: #F8F8F8;
  color: #1F2348;
  margin: 0;
  padding: 24px 16px 48px;
  overflow-x: hidden;
}

a { color: #0582CA; }

.stage {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background-image: radial-gradient(100% 100% at bottom right, #260133, #1F2348);
  border-radius: 999px;
  padding: 10px 22px;
}
.brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.card {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.111);
  padding: 32px;
}

.title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1F2348;
}
.subtitle {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #1F2348;
}
.lede {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(31, 35, 72, 0.6);
  margin: 0 0 20px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(31, 35, 72, 0.5);
  margin: 16px 0 6px;
}

/* Inputs use the inset box-shadow border, never border:. */
.nq-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  color: #1F2348;
  background: #fff;
  border: none;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgba(31, 35, 72, 0.1);
  transition: box-shadow 0.2s var(--nimiq-ease, ease);
}
.nq-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #0582CA;
}
select.nq-input {
  appearance: none;
  cursor: pointer;
}

.amount-row {
  position: relative;
  display: flex;
  align-items: center;
}
.amount-row .nq-input { padding-right: 56px; }
.ticker {
  position: absolute;
  right: 14px;
  font-weight: 700;
  font-size: 16px;
  color: rgba(31, 35, 72, 0.4);
  pointer-events: none;
}

.nq-button,
.nq-button-s {
  margin-top: 20px;
}
/* Full-width primary CTA; allow long labels to wrap instead of force-widening. */
.nq-button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}
.nq-button-s {
  max-width: 100%;
  white-space: normal;
}

.quote-box {
  margin-top: 20px;
  border-radius: 8px;
  background: rgba(31, 35, 72, 0.04);
  padding: 8px 16px;
}
.info-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(31, 35, 72, 0.07);
}
.info-line:last-child { border-bottom: none; }
.info-line > span:first-child { color: rgba(31, 35, 72, 0.6); }
.info-line > span:last-child { font-weight: 600; text-align: right; }
.info-line.emphasis > span:last-child { font-size: 18px; font-weight: 700; }
.info-line.positive > span:last-child { color: #21BCA5; }
.info-line.mono > span:last-child {
  font-family: 'Fira Mono', monospace;
  font-size: 12px;
  word-break: break-all;
}

.fine-print {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(31, 35, 72, 0.5);
  margin: 16px 0 0;
}

/* Prominent on-brand savings highlight on the quote. Green accent in the Nimiq
   palette, navy text, sentence case. The percent leads; the dollar figure that
   follows is a labeled estimate (see fine print + savings.ts). */
.savings-banner {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(33, 188, 165, 0.1);
  outline: 1.5px solid rgba(33, 188, 165, 0.3);
  outline-offset: -1.5px;
}
.savings-lead {
  font-size: 14px;
  font-weight: 600;
  color: rgba(31, 35, 72, 0.6);
}
.savings-figure {
  font-size: 22px;
  font-weight: 800;
  color: #21BCA5;
  line-height: 1.1;
}
.savings-sub {
  font-size: 14px;
  font-weight: 600;
  color: rgba(31, 35, 72, 0.6);
  width: 100%;
}

/* Claimer-agnostic reassurance on the claim page. Lives inside the green tip
   alert; the rows reuse .info-line semantics. The recipient needs no app, no
   wallet, no crypto knowledge, and pays no fee — defensible for the mock claim,
   which genuinely takes zero recipient input (see docs/adr/0002-relayer-claim.md). */
.reassure { margin-top: 24px; }
.reassure .reassure-rows {
  margin-top: 12px;
  font-weight: 400;
}
.reassure .info-line {
  border-bottom-color: rgba(31, 35, 72, 0.08);
  padding: 8px 0;
}
.reassure .info-line > span:first-child { color: rgba(31, 35, 72, 0.6); }
.reassure .info-line > span:last-child { color: #1F2348; }

/* Savings line on the claim success screen, white on the green gradient. */
.status-screen .ss-savings {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 10px auto 0;
  max-width: 88%;
}

.hero-amount {
  font-size: 40px;
  font-weight: 800;
  color: #1F2348;
  margin: 12px 0 8px;
}

.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.qr-wrap canvas { display: block; }

/* Copyable, light-blue tint + Copied tooltip on .copied (from registry pattern). */
.copyable {
  position: relative;
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  cursor: pointer;
  word-break: break-all;
  font-family: 'Fira Mono', monospace;
  font-size: 13px;
  color: #1F2348;
  transition: background 0.2s ease;
}
.copyable:hover,
.copyable:focus { background: rgba(5, 130, 202, 0.07); outline: none; }
.copyable .tooltip {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translate(-50%, -100%);
  background-image: radial-gradient(100% 100% at bottom right, #260133, #1F2348);
  color: #fff;
  font-family: 'Mulish', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.copyable.copied .tooltip { opacity: 1; }

/* Transfers list, plain rows in the wallet idiom. */
.tx-list { margin-top: 8px; }
.tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(31, 35, 72, 0.07);
}
.tx-row:last-child { border-bottom: none; }
.tx-main, .tx-side { display: flex; flex-direction: column; gap: 3px; }
.tx-side { align-items: flex-end; text-align: right; }
.tx-to { font-weight: 700; font-size: 15px; }
.tx-amount { font-weight: 700; font-size: 15px; }
.tx-meta { font-size: 12px; color: rgba(31, 35, 72, 0.5); }

/* Resumable lifecycle (#60): a funded row is tappable to re-open its full live
   panel; its status meta is a quiet on-brand pill (same tx-meta slot, no chip).
   The re-opened panel reuses the verbatim .lifecycle chrome — this only spaces it
   under its row and lays out the reconstructed re-share affordance. */
.tx-row.is-tappable { cursor: pointer; }
.tx-row.is-tappable:hover .tx-to,
.tx-row.is-open .tx-to { color: #0582CA; }
.tx-row[data-status="funded"] .tx-status { font-weight: 600; color: rgba(31, 35, 72, 0.6); }
.resume-panel { margin: 4px 0 8px; }
.resume-panel .lifecycle { margin-top: 0; }
.resume-panel .resume-share-btn { margin-top: 14px; }
.resume-panel .copyable { margin-top: 10px; }

.brand-footer { margin-top: 4px; }
.brand-footer a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(31, 35, 72, 0.5);
  text-decoration: none;
}
.brand-footer a:hover { color: #1F2348; }

