/* NBY wallet — matches the NUURBY type stack. */

:root {
  --wl-bg: #0B0F14;
  --wl-panel: #121821;
  --wl-line: #1E2733;
  --wl-text: #E6EDF5;
  --wl-dim: #8B9AAC;
  --wl-accent: #35D07F;
  --wl-warn: #E0B341;
  --wl-mono: "IBM Plex Mono", ui-monospace, monospace;
  --wl-sans: "IBM Plex Sans", -apple-system, sans-serif;
  --wl-display: "Orbitron", var(--wl-sans);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--wl-bg);
  color: var(--wl-text);
  font-family: var(--wl-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wl-wrap { width: min(920px, 100% - 2.5rem); margin-inline: auto; }

/* Header */

.wl-head { border-bottom: 1px solid var(--wl-line); }
.wl-head__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.wl-brand { font-family: var(--wl-display); font-weight: 800; letter-spacing: 0.08em; color: var(--wl-text); text-decoration: none; }
.wl-head nav { display: flex; gap: 1.4rem; }
.wl-head nav a { color: var(--wl-dim); text-decoration: none; font-size: 0.88rem; }
.wl-head nav a:hover, .wl-head nav a.is-active { color: var(--wl-text); }

.wl-main { padding-block: 2.5rem 5rem; }

/* Balance */

.wl-balance { text-align: center; padding-block: 2rem 2.5rem; }
.wl-balance__label {
  display: block; font-family: var(--wl-mono); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--wl-dim); margin-bottom: 0.6rem;
}
.wl-balance__amount {
  font-family: var(--wl-display); font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 800; line-height: 1; color: var(--wl-accent);
}
.wl-balance__unit {
  font-family: var(--wl-mono); font-size: 1.1rem; color: var(--wl-dim); margin-left: 0.5rem;
}
.wl-balance__caption { font-family: var(--wl-mono); font-size: 0.74rem; color: var(--wl-dim); margin-top: 0.8rem; }

/* Plain statement */

.wl-plain {
  background: var(--wl-panel); border: 1px solid var(--wl-line);
  border-radius: 6px; padding: 1.4rem 1.6rem; margin-bottom: 2.5rem;
}
.wl-plain h2 { font-size: 1rem; margin: 0 0 0.7rem; }
.wl-plain p { font-size: 0.88rem; color: var(--wl-dim); margin: 0 0 0.7rem; }
.wl-plain__not { border-left: 2px solid var(--wl-warn); padding-left: 0.9rem; margin-bottom: 0 !important; }
.wl-plain strong { color: var(--wl-text); }

/* Sections */

.wl-section { margin-bottom: 2.6rem; }
.wl-section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.6rem; margin-bottom: 1rem; border-bottom: 1px solid var(--wl-line);
}
.wl-section__head h2 { font-size: 1.05rem; margin: 0; }
.wl-section__head span { font-family: var(--wl-mono); font-size: 0.72rem; color: var(--wl-dim); }

.wl-note { font-size: 0.8rem; color: var(--wl-dim); margin-top: 0.9rem; }

/* Earning */

.wl-earn__row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--wl-line);
}
.wl-earn__row b { display: block; font-size: 0.92rem; }
.wl-earn__row span { display: block; font-size: 0.8rem; color: var(--wl-dim); margin-top: 0.15rem; }
.wl-earn__rate {
  font-family: var(--wl-display); font-size: 1.5rem; font-weight: 700;
  color: var(--wl-accent); white-space: nowrap;
}
.wl-earn__rate em { font-family: var(--wl-mono); font-size: 0.68rem; font-style: normal; color: var(--wl-dim); }

.wl-cta {
  display: inline-block; margin-top: 1.2rem; padding: 0.7rem 1.3rem;
  background: var(--wl-accent); color: #06110A; border-radius: 4px;
  font-weight: 600; font-size: 0.88rem; text-decoration: none;
}

/* Referral */

.wl-referral { display: flex; gap: 0.6rem; align-items: stretch; }
.wl-referral code {
  flex: 1; background: var(--wl-panel); border: 1px solid var(--wl-line);
  border-radius: 4px; padding: 0.7rem 0.9rem;
  font-family: var(--wl-mono); font-size: 0.8rem; color: var(--wl-accent);
  overflow-x: auto; white-space: nowrap;
}

.wl-btn {
  background: transparent; border: 1px solid var(--wl-line); color: var(--wl-text);
  border-radius: 4px; padding: 0.55rem 1.1rem; font-size: 0.82rem;
  font-family: var(--wl-sans); cursor: pointer; white-space: nowrap;
}
.wl-btn:hover:not(.is-disabled) { border-color: var(--wl-accent); color: var(--wl-accent); }
.wl-btn.is-disabled { opacity: 0.35; cursor: not-allowed; }

/* Redeem */

.wl-redeem__row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--wl-line);
}
.wl-redeem__row.is-short { opacity: 0.5; }
.wl-redeem__row b { display: block; font-size: 0.9rem; }
.wl-redeem__row span { font-size: 0.76rem; color: var(--wl-dim); }
.wl-redeem__act { display: flex; align-items: center; gap: 0.9rem; }
.wl-redeem__cost { font-family: var(--wl-mono); font-size: 0.84rem; color: var(--wl-accent); white-space: nowrap; }

/* Supply */

.wl-pool { margin-bottom: 1.1rem; }
.wl-pool__head { display: flex; justify-content: space-between; font-size: 0.84rem; margin-bottom: 0.35rem; }
.wl-pool__head span { font-family: var(--wl-mono); font-size: 0.74rem; color: var(--wl-dim); }
.wl-pool__bar { height: 4px; background: var(--wl-line); border-radius: 2px; overflow: hidden; }
.wl-pool__fill { height: 100%; background: var(--wl-accent); min-width: 2px; }
.wl-pool__pct { font-family: var(--wl-mono); font-size: 0.68rem; color: var(--wl-dim); }

/* History */

.wl-hist {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px solid var(--wl-line);
}
.wl-hist b { display: block; font-size: 0.86rem; font-weight: 500; }
.wl-hist span { font-family: var(--wl-mono); font-size: 0.72rem; color: var(--wl-dim); }
.wl-hist__amt { font-family: var(--wl-mono); font-size: 0.94rem; }
.wl-hist__amt.is-plus { color: var(--wl-accent); }
.wl-hist__amt.is-minus { color: var(--wl-dim); }

/* Locked */

.wl-locked-section { opacity: 0.75; }
.wl-locked { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--wl-line); border: 1px solid var(--wl-line); border-radius: 6px; overflow: hidden; }

.wl-lock { background: var(--wl-panel); padding: 1.1rem 1.2rem; }
.wl-lock__title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.wl-lock__title b { font-size: 0.88rem; color: var(--wl-dim); }
.wl-lock__icon { font-size: 0.8rem; filter: grayscale(1); opacity: 0.6; }
.wl-lock p { font-size: 0.78rem; color: var(--wl-dim); margin: 0; opacity: 0.85; }

/* Footer */

.wl-foot { border-top: 1px solid var(--wl-line); padding-block: 1.8rem; }
.wl-foot p { font-size: 0.74rem; color: var(--wl-dim); margin: 0; max-width: 80ch; }
.wl-foot a { color: var(--wl-dim); }
