@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600&display=swap');

/* ------------------------------------------------------------------
   NIVA — editorial refinement
   A quieter, airier reading of the dark interface.
   ------------------------------------------------------------------ */

.niva-home {
  --nh-bg: #070807;
  --nh-surface: #0b0e0b;
  --nh-surface-2: #111510;
  --nh-ink: #edf1e8;
  --nh-muted: #8d968a;
  --nh-line: rgba(237, 241, 232, 0.09);
  --nh-sage: #b9c9ad;
  --nh-sage-deep: #8fa483;
  position: relative;
  background:
    radial-gradient(80% 55% at 78% 0%, rgba(95, 118, 82, 0.16), transparent 62%),
    radial-gradient(60% 40% at 0% 30%, rgba(80, 100, 70, 0.08), transparent 60%),
    var(--nh-bg);
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  letter-spacing: -0.008em;
}

.niva-home ::selection {
  background: #c7d6ba;
  color: #10140e;
}

.niva-home :focus-visible {
  outline: 1px solid var(--nh-sage);
  outline-offset: 4px;
}

/* Navigation ------------------------------------------------------- */

.nh-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 104px;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--nh-line);
  background: rgba(7, 8, 7, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.niva-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -0.085em;
}

.nh-nav nav {
  gap: 38px;
  margin-right: 42px;
}

.nh-nav nav a {
  position: relative;
  color: #a5aea1;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nh-nav nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--nh-sage);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nh-nav nav a:hover {
  color: var(--nh-ink);
}

.nh-nav nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nh-login {
  color: #b9c1b6;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nh-login:hover {
  color: #ffffff;
}

.nh-button {
  border: 1px solid rgba(226, 235, 216, 0.92);
  border-radius: 999px;
  padding: 17px 26px;
  background: #e4ead9;
  color: #1b2118;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.nh-button:hover {
  background: #f0f4e8;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.nh-button.small {
  padding: 12px 19px;
  font-size: 9px;
  gap: 18px;
}

/* Cover ------------------------------------------------------------ */

.nh-cover {
  max-width: 1480px;
  min-height: 750px;
  padding: clamp(36px, 4.4vw, 70px) clamp(24px, 5vw, 80px) clamp(50px, 6vw, 90px);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3.4vw, 58px);
}

.nh-cover-copy {
  padding: 20px 0;
  animation: nh-rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nh-kicker {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: #a9b8a0;
}

.nh-cover .nh-kicker {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nh-cover .nh-kicker::before {
  content: '';
  width: 38px;
  height: 1px;
  background: #63705d;
}

.nh-cover h1 {
  margin: 34px 0 30px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(54px, 6.1vw, 96px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.nh-cover h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: -0.02em;
  color: var(--nh-sage);
}

.nh-cover-copy > p {
  max-width: 430px;
  margin-bottom: 38px;
  color: #919b8d;
  font-size: 15px;
  line-height: 1.9;
}

.nh-cover-actions {
  gap: 34px;
}

.nh-cover-actions > a {
  position: relative;
  color: #c1cbb9;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 5px;
}

.nh-cover-actions > a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(193, 203, 185, 0.35);
  transition: background 0.25s ease;
}

.nh-cover-actions > a:hover::after {
  background: var(--nh-sage);
}

.nh-hero-note {
  display: block;
  margin-top: 30px;
  color: #6f7a6b;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nh-cover-art {
  min-height: 620px;
  margin-right: calc(-1 * clamp(24px, 5vw, 80px));
  margin-left: -30px;
  overflow: hidden;
}

.nh-cover-art > img {
  filter: saturate(0.78) contrast(1.05) brightness(0.92);
  animation: nh-image-in 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nh-cover-art::after {
  background:
    linear-gradient(90deg, var(--nh-bg) 0%, rgba(7, 8, 7, 0) 26%),
    linear-gradient(0deg, var(--nh-bg) 0%, transparent 16%, transparent 88%, var(--nh-bg) 100%);
}

.nh-material-note {
  bottom: 42px;
  right: clamp(24px, 5vw, 80px);
  color: #899583;
}

/* Company strip ---------------------------------------------------- */

.nh-brand-strip {
  max-width: 1400px;
  margin-bottom: clamp(90px, 11vw, 150px);
  padding: 34px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--nh-line);
  border-bottom: 1px solid var(--nh-line);
}

.nh-brand-strip > span {
  color: #778172;
  font-size: 9px;
  letter-spacing: 0.15em;
  line-height: 1.9;
  text-transform: uppercase;
}

.nh-brand-strip > div {
  gap: clamp(26px, 4.5vw, 68px);
}

.nh-brand-strip img {
  width: 42px;
  height: 32px;
  opacity: 0.38;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nh-brand-strip img:hover {
  opacity: 0.9;
  transform: translateY(-3px);
}

/* Product ---------------------------------------------------------- */

.nh-product {
  max-width: 1320px;
  margin-bottom: clamp(100px, 12vw, 160px);
  padding: 0 clamp(24px, 5vw, 80px);
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(40px, 7vw, 112px);
}

.nh-section-copy h2,
.nh-start h2,
.nh-final h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin: 26px 0 30px;
}

.nh-section-copy h2 > em,
.nh-start h2 > em,
.nh-final h2 > em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--nh-sage);
}

.nh-section-copy > p {
  max-width: 350px;
  color: #8b9586;
  font-size: 14px;
  line-height: 2;
}

.nh-text-button {
  margin-top: 26px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(185, 201, 173, 0.32);
  color: #b6c5aa;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nh-text-button:hover {
  color: #f2f6ec;
  border-color: var(--nh-sage);
}

.nh-product-visual {
  padding: 44px 24px 0;
}

.nh-product-visual::before {
  inset: 10% -10%;
  background: radial-gradient(ellipse, rgba(123, 146, 108, 0.18), transparent 66%);
}

.nh-mini-app {
  max-width: 392px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  background: linear-gradient(160deg, #f8faf3, #e8ece0);
  box-shadow:
    0 50px 130px rgba(0, 0, 0, 0.75),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: rotate(1.6deg);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.nh-product-visual:hover .nh-mini-app {
  transform: rotate(0.4deg) translateY(-6px);
}

.nh-product-caption {
  margin-top: 28px;
  color: #616c5d;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Steps ------------------------------------------------------------ */

.nh-steps {
  max-width: 1320px;
  margin: 0 auto clamp(100px, 12vw, 155px);
  padding: 0;
  gap: 0;
  border-top: 1px solid var(--nh-line);
  border-bottom: 1px solid var(--nh-line);
}

.nh-steps > div {
  padding: 38px clamp(20px, 2.6vw, 36px) 46px;
  border-right: 1px solid var(--nh-line);
}

.nh-steps > div:last-child {
  border-right: 0;
}

.nh-steps > div > span {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #7f9075;
}

.nh-steps h3 {
  margin: 28px 0 15px;
  color: #dde5d5;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nh-steps p {
  max-width: 270px;
  color: #7d877a;
  font-size: 11px;
  line-height: 1.95;
}

/* Start ------------------------------------------------------------ */

.nh-start {
  max-width: 1320px;
  margin-bottom: clamp(110px, 13vw, 170px);
  padding: 0 clamp(24px, 5vw, 80px);
}

.nh-start > div:first-child {
  margin-bottom: 58px;
}

.nh-start > div:first-child > p {
  color: #8b9586;
  font-size: 12px;
  line-height: 1.8;
}

.nh-amounts {
  gap: 1px;
  border: 1px solid var(--nh-line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--nh-line);
}

.nh-amounts article {
  min-height: 360px;
  padding: 34px 30px;
  border: 0;
  border-radius: 0;
  background: #0a0d0a;
  transition: background 0.35s ease;
}

.nh-amounts article:hover {
  background: #0f130e;
}

.nh-amounts article.featured {
  background: linear-gradient(150deg, #222c1f 0%, #0d120c 78%);
}

.nh-amounts article.featured:hover {
  background: linear-gradient(150deg, #293526 0%, #10160f 78%);
}

.nh-amounts article > div {
  align-items: center;
}

.nh-amounts article img {
  width: 26px;
  height: 26px;
  opacity: 0.55;
}

.nh-amounts article > div > span {
  padding: 5px 8px;
  border: 1px solid rgba(185, 201, 173, 0.2);
  border-radius: 999px;
  color: #9bad90;
  font-family: 'Manrope', sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.nh-amounts h3 {
  margin: 38px 0 14px;
  color: #aebc9f;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nh-amounts strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 3.2vw, 45px);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.nh-amounts small {
  color: #849179;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.nh-amounts article > p {
  margin: 24px 0 34px;
  color: #7c8777;
  font-size: 10px;
  line-height: 1.95;
}

.nh-amounts button {
  margin-top: auto;
  padding: 14px 16px;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.nh-outline {
  border: 1px solid rgba(185, 201, 173, 0.25);
  border-radius: 999px;
  background: transparent;
  color: #b0bfa4;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nh-outline:hover {
  border-color: rgba(185, 201, 173, 0.6);
  background: rgba(185, 201, 173, 0.05);
}

.nh-start > small {
  margin-top: 26px;
  color: #6d7868;
  font-size: 8px;
  letter-spacing: 0.05em;
}

/* Final + footer --------------------------------------------------- */

.nh-final {
  max-width: 1320px;
  margin: auto;
  padding: clamp(60px, 8vw, 110px) clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--nh-line);
}

.nh-final > div > span {
  color: #7f9075;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: -0.05em;
}

.nh-final h2 {
  font-size: clamp(46px, 6.4vw, 96px);
  margin-top: 20px;
}

.nh-footer {
  max-width: 1320px;
  margin: auto;
  padding: 38px clamp(24px, 5vw, 80px) 48px;
  border-top: 1px solid var(--nh-line);
}

.nh-footer p {
  max-width: 540px;
  color: #677162;
  font-size: 9px;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.nh-footer > span {
  color: #677162;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Motion ----------------------------------------------------------- */

@keyframes nh-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .niva-home *,
  .reference-dashboard * {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------------
   Dashboard — deep contrast, same editorial language
   ------------------------------------------------------------------ */

.reference-dashboard {
  --dash-bg: #080a08;
  --dash-surface: #0d110d;
  --dash-surface-2: #121711;
  --dash-ink: #e8eee2;
  --dash-muted: #87927f;
  --dash-line: rgba(232, 238, 226, 0.09);
  --dash-sage: #b9c9ad;
  background:
    radial-gradient(70% 45% at 88% 0%, rgba(95, 118, 82, 0.13), transparent 60%),
    var(--dash-bg);
  color: var(--dash-ink);
  font-family: 'Manrope', sans-serif;
}

.reference-dashboard .cycles-sidebar {
  padding: 34px 20px;
  background: #0a0d0a;
  border-right: 1px solid var(--dash-line);
}

.reference-dashboard .cycles-sidebar .cycles-logo,
.reference-dashboard .cycles-top > .cycles-logo,
.reference-dashboard .cycles-intro h1,
.reference-dashboard .ref-block-title h2,
.reference-dashboard .cycles-section-heading h2,
.reference-dashboard .offer-card h3,
.reference-dashboard .cycle-confirm h2 {
  color: var(--dash-ink);
  font-family: 'Space Grotesk', sans-serif;
}

.reference-dashboard .cycles-sidebar > span {
  color: #5f6c5a;
  letter-spacing: 0.16em;
}

.reference-dashboard .cycles-sidebar > button {
  color: #7d8a77;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.reference-dashboard .cycles-sidebar > button.active {
  background: #192217;
  color: #d2e0c7;
}

.reference-dashboard .cycles-sidebar-bottom {
  color: #5f6c5a;
  line-height: 1.9;
}

.reference-dashboard .cycles-sidebar-bottom button {
  color: #9bb18d;
}

.reference-dashboard .cycles-content {
  max-width: 1180px;
  padding: 34px clamp(24px, 4vw, 56px) 58px;
  column-gap: clamp(28px, 3.4vw, 46px);
}

.reference-dashboard .cycles-top {
  min-height: 96px;
  padding: 22px clamp(24px, 4vw, 56px);
  background: transparent;
  border-bottom: 1px solid var(--dash-line);
}

.ref-profile-avatar {
  width: 46px;
  height: 46px;
  background: #1c2719;
  border: 1px solid #33402e;
  outline: 3px solid #0a0d0a;
  color: #c4d5b7;
  font-family: 'Space Grotesk', sans-serif;
}

.ref-profile-copy strong {
  color: #edf2e7;
  font-weight: 500;
}

.ref-profile-copy span {
  color: #7c8876;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-dashboard .cycles-top > button {
  border: 1px solid rgba(232, 238, 226, 0.14);
  background: transparent;
  color: #bac7af;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.reference-dashboard .cycles-top > button:hover {
  background: #141a12;
  border-color: rgba(185, 201, 173, 0.35);
}

.reference-dashboard .cycles-note {
  padding: 12px clamp(24px, 4vw, 56px);
  background: #0b0f0b;
  border-bottom: 1px solid var(--dash-line);
  color: #7f8c78;
  font-size: 9px;
  letter-spacing: 0.03em;
}

.reference-dashboard .cycles-note > span {
  color: #a9bb9d;
  letter-spacing: 0.14em;
}

.reference-dashboard .cycles-intro {
  margin: 8px 0 28px;
}

.reference-dashboard .cycles-intro h1 {
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.055em;
}

.ref-period {
  color: #778371;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reference-dashboard .cycles-overview {
  gap: 14px;
}

.reference-dashboard .cycles-overview article {
  height: 204px;
  border: 1px solid var(--dash-line);
  border-radius: 20px;
  padding: 22px;
}

.ref-stat-lavender {
  background: linear-gradient(145deg, #1c2518, #0e130d);
}

.ref-stat-mint {
  background: linear-gradient(145deg, #15211a, #0b100c);
}

.reference-dashboard .cycles-overview article > span:first-child {
  color: #9ba895;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.reference-dashboard .cycles-overview strong {
  color: #eef3e8;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.reference-dashboard .cycles-overview strong small {
  color: #8fa086;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.reference-dashboard .cycles-overview article > small,
.reference-dashboard .cycles-overview article > span:nth-last-child(2) {
  color: #82907a;
  font-size: 9px;
}

.reference-dashboard .cycles-overview article > img {
  opacity: 0.6;
  filter: saturate(0.7);
}

.reference-dashboard .ref-stat-mint > span:first-child {
  color: #9ba895 !important;
}

.ref-block-title {
  margin-bottom: 18px;
}

.ref-block-title h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ref-block-title > span,
.ref-block-title > button {
  color: #7b8775;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.ref-block-title > button {
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ref-block-title > button:hover {
  color: #c4d3b8;
  border-color: rgba(185, 201, 173, 0.4);
}

.ref-categories {
  margin-top: 34px;
}

.ref-categories > div:last-child {
  gap: 12px;
}

.ref-category-icon {
  height: 80px;
  border: 1px solid var(--dash-line);
  border-radius: 16px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.ref-category-icon.lilac {
  background: linear-gradient(145deg, #201b28, #121016);
}

.ref-category-icon.mint {
  background: linear-gradient(145deg, #16251b, #0c120d);
}

.ref-category-icon.peach {
  background: linear-gradient(145deg, #251c15, #130f0b);
}

.ref-category-icon img {
  opacity: 0.72;
}

.ref-categories button:hover .ref-category-icon {
  transform: translateY(-3px);
  border-color: rgba(185, 201, 173, 0.3);
}

.ref-categories button.selected .ref-category-icon {
  outline: 1px solid rgba(185, 201, 173, 0.55);
  outline-offset: 3px;
}

.ref-categories strong {
  color: #c9d3c2;
  font-size: 9px;
  font-weight: 500;
}

.ref-categories small {
  color: #6f7a69;
}

.ref-recent {
  margin-top: 36px;
}

.ref-recent-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--dash-line);
}

.ref-recent-row > img {
  background: #141a12;
  border: 1px solid var(--dash-line);
}

.ref-recent-row strong {
  color: #dbe3d5;
}

.ref-recent-row span {
  color: #768170;
}

.ref-recent-amount {
  margin-left: auto;
  color: #b9c9ad;
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.ref-recent-amount small {
  color: #768170;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.ref-no-activity {
  background: #0d110d;
  border: 1px solid var(--dash-line);
  color: #778371;
}

.ref-no-activity p {
  color: #66715f;
}

.reference-dashboard .cycles-tabs {
  border-bottom: 1px solid var(--dash-line);
  padding-bottom: 12px;
}

.reference-dashboard .cycles-tabs button {
  color: #778371;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.reference-dashboard .cycles-tabs button.active {
  color: #e2eadb;
}

.reference-dashboard .cycles-tabs button.active::after {
  background: var(--dash-sage);
}

.reference-dashboard .cycles-section-heading > span {
  color: #6f7a69;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.reference-dashboard .offer-card {
  background: #0d110d;
  border: 1px solid var(--dash-line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.reference-dashboard .offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 201, 173, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.reference-dashboard .real-brand {
  border: 1px solid rgba(255, 255, 255, 0.05);
  filter: saturate(0.85);
}

.reference-dashboard .offer-card h3 {
  color: #e8eee2;
  font-weight: 500;
}

.reference-dashboard .offer-subtitle {
  color: #6f7a69;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reference-dashboard .offer-card dt {
  color: #768170;
}

.reference-dashboard .offer-card dd {
  color: #dfe7d8;
}

.reference-dashboard .offer-top > span {
  background: #141a12;
  color: #9bb18d;
  border: 1px solid var(--dash-line);
}

.reference-dashboard .offer-card > button {
  background: #1a2417;
  color: #c1d3b4;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.reference-dashboard .offer-card > button:hover {
  background: #253121;
  color: #f0f5ea;
}

.reference-dashboard .offer-card > button:disabled {
  background: #11150f;
  color: #768170;
}

.reference-dashboard .offer-lock {
  color: #66715f;
}

.reference-dashboard .cycles-rule {
  margin-top: 34px;
  background: #0d110d;
  border: 1px solid var(--dash-line);
}

.reference-dashboard .cycles-rule > span {
  color: #a9bb9d;
  letter-spacing: 0.05em;
}

.reference-dashboard .cycles-rule p {
  color: #7d8877;
  line-height: 1.95;
}

.reference-dashboard .cycles-footer {
  color: #606b5b;
  line-height: 2;
}

.reference-dashboard .cycle-activity > article {
  background: #0d110d;
  border: 1px solid var(--dash-line);
}

.reference-dashboard .cycle-activity strong {
  color: #dfe7d8;
}

.reference-dashboard .cycle-activity > article span {
  color: #778371;
}

.reference-dashboard .cycle-activity-end b {
  color: #b9c9ad;
}

.reference-dashboard .cycle-empty {
  background: #0d110d;
  border: 1px solid var(--dash-line);
  color: #778371;
}

.reference-dashboard .cycle-confirm {
  background: #0e130e;
  border: 1px solid #293427;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.reference-dashboard .cycle-confirm > span {
  color: #8fa483;
  letter-spacing: 0.16em;
}

.reference-dashboard .cycle-confirm dl > div {
  background: #141a12;
  border: 1px solid var(--dash-line);
}

.reference-dashboard .cycle-confirm dt {
  color: #788473;
}

.reference-dashboard .cycle-confirm dd {
  color: #dce7d3;
}

.reference-dashboard .cycle-confirm p {
  color: #7d8877;
}

.reference-dashboard .cycle-confirm-submit {
  background: #dbe7cf;
  color: #182014;
  border-radius: 999px;
}

.reference-dashboard .cycle-confirm-submit:hover {
  background: #eaf2e1;
}

.reference-dashboard .cycle-close {
  color: #8fa483;
}

/* Modals & feedback on the dashboard ------------------------------ */

.reference-dashboard .modal-backdrop {
  background: rgba(3, 5, 3, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.reference-dashboard .modal {
  background: #0e130e;
  border: 1px solid #293427;
  color: #e8eee2;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.reference-dashboard .modal h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: #edf2e7;
}

.reference-dashboard .modal > p:not(.eyebrow),
.reference-dashboard .modal label,
.reference-dashboard .modal .eyebrow {
  color: #8b9785;
}

.reference-dashboard .modal input {
  background: #141a12;
  border-color: #2b3728;
  color: #eef3e8;
}

.reference-dashboard .modal .button-dark {
  background: #dbe7cf;
  border-color: #dbe7cf;
  color: #182014;
}

.reference-dashboard .modal-switch {
  color: #a9bb9d;
}

.reference-dashboard .modal-close {
  color: #a9bb9d;
}

.reference-dashboard .toast {
  background: #182014;
  border: 1px solid #2f3d2b;
  color: #dfe9d7;
}

.reference-dashboard .cycles-sidebar-bottom,
.reference-dashboard .cycles-footer,
.reference-dashboard .ref-no-activity,
.reference-dashboard .cycle-empty {
  font-size: 9px;
}

/* Mobile refinements ---------------------------------------------- */

@media (max-width: 1100px) {
  .nh-cover {
    min-height: 620px;
  }

  .nh-cover h1 {
    font-size: clamp(50px, 6.6vw, 72px);
  }

  .nh-product {
    gap: 5vw;
  }

  .nh-steps {
    margin-left: clamp(24px, 5vw, 80px);
    margin-right: clamp(24px, 5vw, 80px);
  }
}

@media (max-width: 760px) {
  .nh-nav {
    min-height: 80px;
    padding: 0 22px;
  }

  .niva-word {
    font-size: 30px;
  }

  .nh-cover {
    min-height: 0;
    padding: 32px 22px 0;
    gap: 0;
    grid-template-columns: 1fr;
  }

  .nh-cover-copy {
    padding: 20px 0 0;
  }

  .nh-cover h1 {
    font-size: clamp(42px, 11vw, 56px);
    margin: 26px 0 24px;
  }

  .nh-cover-copy > p {
    font-size: 13px;
    line-height: 1.85;
    margin-bottom: 30px;
  }

  .nh-cover-actions {
    flex-wrap: wrap;
    gap: 24px;
  }

  .nh-hero-note {
    margin-top: 24px;
    font-size: 7px;
  }

  .nh-cover-art {
    min-height: 380px;
    margin: -28px -22px 0;
  }

  .nh-brand-strip {
    margin-bottom: 78px;
    padding: 26px 22px 30px;
  }

  .nh-brand-strip > div {
    gap: 26px;
  }

  .nh-brand-strip img {
    width: 30px;
    height: 26px;
  }

  .nh-product {
    padding: 0 22px;
    gap: 34px;
    margin-bottom: 82px;
    grid-template-columns: 1fr;
  }

  .nh-section-copy h2,
  .nh-start h2 {
    font-size: clamp(40px, 11vw, 50px);
  }

  .nh-section-copy > p {
    font-size: 12px;
  }

  .nh-path {
    max-width: 340px;
  }

  .nh-steps {
    grid-template-columns: 1fr;
    margin: 0 22px 80px;
    padding: 0;
  }

  .nh-steps > div {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0 14px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--nh-line);
  }

  .nh-steps > div:last-child {
    border-bottom: 0;
  }

  .nh-steps > div > span {
    padding-top: 4px;
  }

  .nh-steps h3 {
    margin: 0;
    font-size: 14px;
  }

  .nh-steps p {
    grid-column: 2;
    max-width: none;
    margin-top: 10px;
    font-size: 10px;
  }

  .nh-start {
    padding: 0 22px;
    margin-bottom: 88px;
  }

  .nh-amounts {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .nh-amounts article {
    min-height: 0;
    padding: 28px 24px;
  }

  .nh-amounts h3 {
    margin-top: 28px;
  }

  .nh-amounts strong {
    font-size: 42px;
  }

  .nh-start > small {
    font-size: 8px;
    line-height: 1.7;
  }

  .nh-final {
    padding: 52px 22px 62px;
    gap: 30px;
  }

  .nh-final h2 {
    font-size: clamp(48px, 13vw, 62px);
  }

  .nh-footer {
    padding: 26px 22px 38px;
  }

  .reference-dashboard .cycles-top {
    padding: 20px 22px;
  }

  .reference-dashboard .cycles-note {
    padding: 11px 22px;
  }

  .reference-dashboard .cycles-content {
    padding: 28px 20px 100px;
  }

  .reference-dashboard .cycles-overview article {
    height: 190px;
    padding: 20px;
  }

  .reference-dashboard .offer-grid {
    gap: 12px;
  }

  .reference-dashboard .offer-card {
    padding: 18px;
    border-radius: 18px;
  }

  .reference-dashboard .ref-bottom-nav {
    background: rgba(12, 16, 11, 0.92);
    border: 1px solid var(--dash-line);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }

  .reference-dashboard .ref-bottom-nav button {
    color: #7d8a77;
  }

  .reference-dashboard .ref-bottom-nav button:first-child {
    background: #233020;
    color: #dce8d3;
  }
}

@media (min-width: 521px) and (max-width: 760px) {
  .nh-cover {
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
  }

  .nh-cover h1 {
    font-size: 48px;
  }

  .nh-cover-art {
    align-self: stretch;
    min-height: 480px;
    margin: -10px -22px -10px -60px;
  }
}

/* ------------------------------------------------------------------
   Dashboard � cohesive dark surface, living details
   ------------------------------------------------------------------ */

.reference-dashboard .cycles-main,
.reference-dashboard .cycles-content {
  background-color: transparent;
}

.reference-dashboard .cycles-main {
  position: relative;
  background: transparent;
}

.reference-dashboard {
  background-size: 160% 160%;
  animation: dash-drift 26s ease-in-out infinite alternate;
}

@keyframes dash-drift {
  from { background-position: 0% 0%; }
  to { background-position: 100% 55%; }
}

@keyframes dash-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dash-spin {
  to { transform: rotate(360deg); }
}

.reference-dashboard .cycles-top,
.reference-dashboard .cycles-intro,
.reference-dashboard .cycles-overview,
.reference-dashboard .cycles-tabs,
.reference-dashboard .cycle-catalogue,
.reference-dashboard .cycle-activity,
.reference-dashboard .ref-categories,
.reference-dashboard .ref-recent,
.reference-dashboard .cycles-rule {
  animation: dash-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reference-dashboard .cycles-intro { animation-delay: 0.05s; }
.reference-dashboard .cycles-overview { animation-delay: 0.1s; }
.reference-dashboard .cycles-tabs { animation-delay: 0.16s; }
.reference-dashboard .cycle-catalogue,
.reference-dashboard .cycle-activity { animation-delay: 0.2s; }
.reference-dashboard .ref-categories { animation-delay: 0.22s; }
.reference-dashboard .ref-recent { animation-delay: 0.28s; }
.reference-dashboard .cycles-rule { animation-delay: 0.32s; }

.reference-dashboard .cycles-overview article {
  position: relative;
  isolation: isolate;
  background-clip: padding-box;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.reference-dashboard .cycles-overview article:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 201, 173, 0.3);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.reference-dashboard .cycles-overview article::before {
  content: '05';
  position: absolute;
  right: 10px;
  bottom: -28px;
  z-index: 0;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 122px;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: rgba(185, 201, 173, 0.075);
  pointer-events: none;
}

.reference-dashboard .cycles-overview article > span:not(.ref-card-orbit),
.reference-dashboard .cycles-overview article > strong,
.reference-dashboard .cycles-overview article > small {
  position: relative;
  z-index: 1;
}

.ref-card-orbit {
  position: absolute;
  right: -40px;
  bottom: -46px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(185, 201, 173, 0.12);
  pointer-events: none;
  z-index: 0;
}

.ref-card-orbit::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  border: 1px dashed rgba(185, 201, 173, 0.12);
}

.ref-card-orbit::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(185, 201, 173, 0.42) 84%, transparent 94%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.4px), #000 calc(100% - 1.4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.4px), #000 calc(100% - 1.4px));
  animation: dash-spin 20s linear infinite;
}

.reference-dashboard .ref-stat-mint .ref-card-orbit::after {
  animation-duration: 26s;
  animation-direction: reverse;
}

.reference-dashboard .cycles-overview strong [data-ref-count] {
  font-variant-numeric: tabular-nums;
}

/* Dashboard mobile: no light seams, no clipped edges ---------------- */

@media (max-width: 700px) {
  .reference-dashboard {
    background-color: var(--dash-bg);
  }

  .reference-dashboard .cycles-main,
  .reference-dashboard .cycles-content {
    background: transparent;
  }

  .reference-dashboard .cycles-app {
    background: var(--dash-bg);
  }

  .reference-dashboard .cycles-top {
    background: transparent;
    border-bottom: 1px solid var(--dash-line);
  }

  .reference-dashboard .cycles-note {
    background: #0b0f0b;
  }

  .reference-dashboard .cycles-overview article {
    height: 186px;
  }

  .reference-dashboard .cycles-overview article::before {
    font-size: 102px;
    right: 4px;
    bottom: -22px;
  }

  .ref-card-orbit {
    right: -48px;
    bottom: -52px;
    width: 138px;
    height: 138px;
  }

  .reference-dashboard .ref-categories > div:last-child {
    gap: 9px;
  }

  .reference-dashboard .ref-categories strong {
    font-size: 8px;
  }

  .reference-dashboard .ref-categories small {
    font-size: 7px;
  }
}

/* ------------------------------------------------------------------
   Mini dashboard on the landing page � same dark language
   ------------------------------------------------------------------ */

.niva-home .nh-mini-app {
  background: linear-gradient(160deg, #1b2318, #0b0e0a);
  border-color: #2b3627;
  color: #dfe7d8;
  box-shadow:
    0 55px 140px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.niva-home .nh-mini-head strong { color: #e8eee2; }
.niva-home .nh-mini-head > div > span { color: #7f8b79; }
.niva-home .nh-mini-head > b { color: #8fa483; }
.niva-home .nh-mini-avatar {
  background: #1d2819;
  border: 1px solid rgba(185, 201, 173, 0.2);
  color: #b9c9ad;
}

.niva-home .nh-mini-title { color: #e8eee2; }
.niva-home .nh-mini-title > span { color: #7f8b79; }

.niva-home .nh-mini-stats > div {
  background: linear-gradient(145deg, #1a2316, #0f140d);
  border: 1px solid rgba(232, 238, 226, 0.07);
}

.niva-home .nh-mini-stats > div:last-child {
  background: linear-gradient(145deg, #15211a, #0b100c);
}

.niva-home .nh-mini-stats > div > span:first-child { color: #8a9782; }
.niva-home .nh-mini-stats strong {
  color: #eef3e8;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}
.niva-home .nh-mini-stats strong small { color: #8fa086; }

.nh-mini-orbit {
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px solid rgba(185, 201, 173, 0.16);
  pointer-events: none;
}

.nh-mini-orbit::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(185, 201, 173, 0.4) 86%, transparent 96%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.2px), #000 calc(100% - 1.2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.2px), #000 calc(100% - 1.2px));
  animation: dash-spin 18s linear infinite;
}

.niva-home .nh-mini-list-title { color: #dfe7d8; }
.niva-home .nh-mini-list-title > span { color: #7f8b79; }
.niva-home .nh-mini-asset { border-bottom-color: rgba(232, 238, 226, 0.07); }
.niva-home .nh-mini-asset > img {
  background: #141a12;
  border: 1px solid rgba(232, 238, 226, 0.06);
}
.niva-home .nh-mini-asset > span { color: #dfe7d8; }
.niva-home .nh-mini-asset > span small { color: #7f8b79; }
.niva-home .nh-mini-asset > b { color: #b9c9ad; }
.niva-home .nh-mini-nav { color: #7f8b79; }
.niva-home .nh-mini-nav > span:first-child {
  background: #c4d3b8;
  color: #182014;
}
.niva-home .nh-product-caption { color: #6f7a69; }

/* ------------------------------------------------------------------
   Signature section � the five-hour orbit
   ------------------------------------------------------------------ */

@keyframes nh-spin { to { transform: rotate(360deg); } }
@keyframes nh-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.nh-cycle {
  position: relative;
  max-width: 1320px;
  margin: 0 auto clamp(100px, 12vw, 160px);
  padding: clamp(54px, 7vw, 96px) clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  border-top: 1px solid var(--nh-line);
  border-bottom: 1px solid var(--nh-line);
  isolation: isolate;
  overflow: hidden;
}

.nh-cycle::before {
  content: '';
  position: absolute;
  inset: -30% -20%;
  z-index: -1;
  background: radial-gradient(45% 55% at 70% 50%, rgba(118, 145, 100, 0.16), transparent 70%);
  pointer-events: none;
}

.nh-cycle-copy h2 {
  margin: 26px 0 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.nh-cycle-copy h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--nh-sage);
}

.nh-cycle-copy > p {
  max-width: 360px;
  color: #8b9586;
  font-size: 14px;
  line-height: 2;
}

.nh-cycle-art {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 34px;
  min-width: 0;
}

.nh-cycle-ghost {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: -1;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(180px, 27vw, 380px);
  line-height: 0.7;
  letter-spacing: -0.08em;
  color: rgba(185, 201, 173, 0.05);
  pointer-events: none;
  user-select: none;
}

.nh-orbit {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
}

.nh-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(185, 201, 173, 0.12);
  pointer-events: none;
}

.nh-orbit-ring.ring-1 {
  inset: 0;
  border-color: rgba(185, 201, 173, 0.2);
  animation: nh-spin 30s linear infinite;
}

.nh-orbit-ring.ring-2 {
  inset: 13%;
  border-style: dashed;
  border-color: rgba(185, 201, 173, 0.14);
  animation: nh-spin 44s linear infinite reverse;
}

.nh-orbit-ring.ring-3 {
  inset: 27%;
  border-color: rgba(185, 201, 173, 0.1);
}

.nh-orbit-ring b {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: #d9e5cc;
  box-shadow:
    0 0 0 4px rgba(185, 201, 173, 0.08),
    0 0 18px rgba(185, 201, 173, 0.6);
}

.nh-orbit-ring.ring-2 b {
  top: auto;
  bottom: -3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: #93a487;
  box-shadow: 0 0 0 4px rgba(185, 201, 173, 0.05);
}

.nh-orbit-ring.ring-1::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from 10deg, transparent 0 62%, rgba(185, 201, 173, 0.5) 78%, rgba(185, 201, 173, 0.08) 86%, transparent 90%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
}

.nh-orbit-axis {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(185, 201, 173, 0.16), transparent);
  pointer-events: none;
}

.nh-orbit-axis.axis-x {
  left: -7%;
  right: -7%;
  top: 50%;
  height: 1px;
}

.nh-orbit-axis.axis-y {
  top: -7%;
  bottom: -7%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(185, 201, 173, 0.16), transparent);
}

.nh-orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  justify-items: center;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(185, 201, 173, 0.22);
  background: radial-gradient(circle at 34% 20%, #1e2a1a, #0a0e09 72%);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.62),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
}

.nh-orbit-core strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.07em;
  color: #eef3e8;
}

.nh-orbit-core > span {
  margin-top: 8px;
  color: #b9c9ad;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nh-orbit-core small {
  margin-top: 9px;
  color: #6f7a69;
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nh-orbit-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  color: #778371;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nh-orbit-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nh-orbit-legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b9c9ad;
  box-shadow: 0 0 10px rgba(185, 201, 173, 0.6);
  animation: nh-pulse 3s ease-in-out infinite;
}

.nh-orbit-legend span:nth-child(2) i { animation-delay: 0.8s; }
.nh-orbit-legend span:nth-child(3) i { animation-delay: 1.6s; }

@media (max-width: 900px) {
  .nh-cycle {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .nh-orbit {
    width: min(78vw, 380px);
  }
}

@media (max-width: 760px) {
  .nh-cycle {
    margin-bottom: 80px;
    padding: 46px 22px 52px;
  }

  .nh-cycle-copy h2 {
    font-size: clamp(38px, 10vw, 50px);
  }

  .nh-cycle-copy > p {
    font-size: 12px;
  }

  .nh-cycle-art {
    gap: 26px;
  }

  .nh-orbit {
    width: min(82vw, 340px);
  }

  .nh-orbit-legend {
    gap: 15px;
    font-size: 7px;
  }
}

/* ------------------------------------------------------------------
   Wallet � the capital is the centre of the interface
   ------------------------------------------------------------------ */

.reference-dashboard .cycles-overview.wallet-stage {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: clamp(18px, 3.5vw, 56px);
  padding: 20px 6px 44px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--dash-line);
}

.wallet-core {
  position: relative;
  width: clamp(258px, 29vw, 348px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  isolation: isolate;
}

.wallet-core::before {
  content: '';
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 201, 173, 0.18), transparent 64%);
  filter: blur(12px);
  animation: wallet-breathe 6.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes wallet-breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.96); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

.wallet-dial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.wallet-track {
  fill: none;
  stroke: rgba(232, 238, 226, 0.08);
  stroke-width: 1.1;
}

.wallet-ticks {
  fill: none;
  stroke: rgba(185, 201, 173, 0.22);
  stroke-width: 1;
}

.wallet-progress {
  fill: none;
  stroke: #c4d3b8;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.35s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 6px rgba(196, 211, 184, 0.45));
}

.wallet-ring {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(185, 201, 173, 0.1);
  animation: wallet-spin 34s linear infinite;
  pointer-events: none;
}

.wallet-ring::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #d9e5cc;
  box-shadow: 0 0 12px rgba(217, 229, 204, 0.7);
}

.wallet-ring.ring-b {
  inset: 20%;
  border-style: dashed;
  border-color: rgba(185, 201, 173, 0.12);
  animation-direction: reverse;
  animation-duration: 48s;
}

@keyframes wallet-spin {
  to { transform: rotate(360deg); }
}

.wallet-center {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  padding: 0 18px;
}

.wallet-label {
  color: #8b9785;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wallet-center strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.07em;
  color: #f0f5e9;
}

.wallet-center strong small {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #8fa086;
}

.wallet-center em {
  margin-top: 4px;
  padding: 5px 9px;
  border: 1px solid rgba(185, 201, 173, 0.16);
  border-radius: 999px;
  color: #9bb18d;
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wallet-readout {
  display: grid;
  align-content: center;
  gap: 26px;
  min-width: 0;
  position: relative;
}

.wallet-readout > div {
  display: grid;
  gap: 5px;
}

.wallet-readout span:not(.wallet-label) {
  color: #6f7a69;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wallet-readout strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #e8eee2;
  font-variant-numeric: tabular-nums;
}

.wallet-readout strong small {
  font-size: 7px;
  letter-spacing: 0.1em;
  color: #7f8b79;
}

.wallet-readout p {
  margin: 2px 0 0;
  color: #778371;
  font-size: 9px;
  line-height: 1.5;
}

.wallet-readout.right {
  justify-items: end;
  text-align: right;
}

.wallet-readout.right strong {
  justify-content: flex-end;
}

.wallet-countdown b {
  font: inherit;
  letter-spacing: -0.03em;
  color: #c4d3b8;
}

.wallet-readout.left::after,
.wallet-readout.right::before {
  content: '';
  position: absolute;
  top: 50%;
  width: clamp(10px, 2vw, 34px);
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 201, 173, 0.32), transparent);
  pointer-events: none;
}

.wallet-readout.left::after {
  right: calc(-1 * clamp(9px, 1.75vw, 28px));
}

.wallet-readout.right::before {
  left: calc(-1 * clamp(9px, 1.75vw, 28px));
  transform: rotate(180deg);
}

@media (min-width: 1101px) {
  .reference-dashboard .ref-dashboard-home {
    grid-column: 1;
    grid-row: 3;
  }

  .reference-dashboard .ref-catalogue-column {
    grid-column: 2;
    grid-row: 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .reference-dashboard .ref-catalogue-column .cycles-tabs {
    margin-top: 0;
  }

  .reference-dashboard .ref-catalogue-column .cycle-catalogue,
  .reference-dashboard .ref-catalogue-column .cycle-activity {
    margin-top: 28px;
  }

  .wallet-readout.left {
    grid-column: 1;
    grid-row: 1;
  }

  .wallet-core {
    grid-column: 2;
    grid-row: 1;
  }

  .wallet-readout.right {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 1100px) {
  .reference-dashboard .cycles-overview.wallet-stage {
    grid-template-columns: 1fr 1fr;
    gap: 24px 30px;
    padding: 8px 0 34px;
  }

  .wallet-core {
    grid-column: 1 / -1;
    width: min(68vw, 320px);
    margin: 0 auto 4px;
  }

  .wallet-readout {
    gap: 18px;
  }

  .wallet-readout.right {
    justify-items: start;
    text-align: left;
  }

  .wallet-readout.right strong {
    justify-content: flex-start;
  }

  .wallet-readout.left::after,
  .wallet-readout.right::before {
    display: none;
  }
}

@media (max-width: 700px) {
  .reference-dashboard .cycles-overview.wallet-stage {
    gap: 22px 20px;
  }

  .wallet-core {
    width: min(78vw, 290px);
  }

  .wallet-center strong {
    font-size: 46px;
  }

  .wallet-readout strong {
    font-size: 18px;
  }

  .wallet-readout p {
    font-size: 8px;
  }
}
