/* USTX Earn section (sandbox). Styled after the Proof of Smart Memo section (pom-spot / smh2):
   soft corner glows, glass panels, hairline borders, Montserrat 700 labels at .18em tracking.
   --ustx-green is the official USTX lime (#B1FC03, sampled from the official USTX app icon). */
.ustx-earn {
  --ustx-green: #B1FC03;
  --earn-line: rgba(200, 222, 199, 0.14);
  --earn-label: rgba(236, 248, 214, 0.88);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(177, 252, 3, 0.07), transparent 55%),
    radial-gradient(420px 200px at 0% 100%, rgba(0, 225, 255, 0.05), transparent 50%);
}
.ustx-earn .section-lead { margin-bottom: 22px; max-width: 62ch; }
.ustx-earn .section-lead a, .earn-note-box a { color: #F2FFF1; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(177, 252, 3, 0.55); }
.earn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 28px; flex-wrap: wrap; }
.earn-fresh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--earn-line); background: rgba(14, 16, 14, 0.72); }
.earn-fresh p { margin: 0; font-size: 12.5px; color: var(--text-muted); }

/* Label type, same as .smh2-label */
.earn-label, .earn-chart figcaption, .earn-terms-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--earn-label);
  line-height: 1.3;
}
.earn-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.earn-label .tx-token-sm { width: 18px; height: 18px; flex: none; }

/* Stat strip, same as .pom-strip */
.earn-strip {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 18px;
  border: 1px solid var(--earn-line);
  background: rgba(14, 16, 14, 0.72);
}
.earn-strip > li { position: relative; padding: 18px 20px 20px; min-width: 0; }
.earn-strip > li + li::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--earn-line); }
.earn-value { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; color: #F2FFF1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.earn-stat-ustx .earn-value { color: var(--ustx-green); }
.earn-note { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }

/* Charts in the smh2 glass frame */
.earn-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.earn-chart {
  position: relative;
  margin: 0;
  padding: 18px 18px 12px;
  border-radius: 20px;
  overflow: hidden;
  background: #040504;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 80px -30px rgba(198, 244, 50, 0.18), 0 0 0 1px rgba(198, 244, 50, 0.06) inset;
}
.earn-chart::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%); mix-blend-mode: screen; }
.earn-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.earn-chart-last { font: 700 14px/1.2 var(--font-display); letter-spacing: 0; text-transform: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.earn-chart-plot { width: 100%; min-height: 170px; position: relative; z-index: 1; }
.earn-chart-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.ec-grid { stroke: rgba(200, 222, 199, 0.08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ec-axis { fill: rgba(200, 222, 199, 0.6); font: 500 11px var(--font); }
.ec-first { fill: var(--earn-label); font: 700 10px var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; }
.ec-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ec-dot { fill: #040504; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
/* USTX series uses the official USTX green; TX series uses the site cyan */
[data-earn-chart="locked"] .ec-line, [data-earn-chart="locked"] .ec-dot { stroke: var(--ustx-green); }
[data-earn-chart="locked"] .ec-dot { filter: drop-shadow(0 0 6px rgba(177, 252, 3, 0.55)); }
[data-earn-chart="locked"] .ec-area { fill: rgba(177, 252, 3, 0.09); }
[data-earn-chart="locked"] .earn-chart-last { color: var(--ustx-green); }
[data-earn-chart="rewards"] .ec-line, [data-earn-chart="rewards"] .ec-dot { stroke: var(--accent-2); }
[data-earn-chart="rewards"] .ec-dot { filter: drop-shadow(0 0 6px rgba(0, 225, 255, 0.45)); }
[data-earn-chart="rewards"] .ec-area { fill: rgba(0, 225, 255, 0.08); }
[data-earn-chart="rewards"] .earn-chart-last { color: var(--accent-2); }
.earn-history-note { margin: 12px 2px 0; font-size: 13px; color: var(--text-muted); }

/* Terms: strip plus a callout styled like .pom-scam */
.earn-terms { margin-top: 26px; }
.earn-terms-title { margin-bottom: 12px; }
.earn-terms-list { margin-bottom: 16px; }
.earn-terms-list > li { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
.earn-terms-list strong { color: #F2FFF1; font: 700 16px/1.3 var(--font-display); }
.earn-note-box { margin: 0; padding: 14px 16px; border-radius: 16px; border: 1.5px solid rgba(177, 252, 3, 0.4); background: rgba(5, 6, 5, 0.55); }
.earn-note-box p { margin: 0; color: #E6F0E5; font-size: 15px; line-height: 1.5; }

/* Wallet card USTX tile link */
.vf-stat-ustx .vf-stat-s a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
  .earn-strip { grid-template-columns: 1fr; }
  .earn-strip > li + li::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
  .earn-strip > li { padding: 16px 18px; }
  .earn-charts { grid-template-columns: 1fr; }
  .earn-fresh { margin-bottom: 18px; }
}
