/* Pearl Miner — visual language aligned with ton.id */

:root {
  --bg: #07080a;
  --fg: #ffffff;
  --muted: #8794a4;
  --muted-rgb: 135, 148, 164;
  --faint: #586472;
  --accent: #30a1f5;
  --accent-rgb: 48, 161, 245;
  --accent-btn: #1d78c2;
  --pos: #4cd07d;
  --warn: #f5a623;
  --danger: #f5564a;
  --live: #ff5b5b;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-pill: 999px;

  --surface-1: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.07);
  --hairline: rgba(255, 255, 255, 0.08);
  --border-1: rgba(255, 255, 255, 0.12);
  --col-card-bg: #1a212b;

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --dur-2: 0.15s;
  --dur-3: 0.22s;
  --dur-4: 0.42s;

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 23px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --page-max: 540px;
  --bar-pad: max(16px, env(safe-area-inset-left));
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}

::selection {
  background: rgba(var(--accent-rgb), 0.26);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.hidden { display: none !important; }

.mark,
.home-mark,
.addr-ident,
.brand-logo {
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.mark {
  width: 28px;
  height: 28px;
  transition: transform var(--dur-3) var(--ease-out);
}

.home-mark {
  height: clamp(32px, 8vw, 44px);
  width: clamp(32px, 8vw, 44px);
  animation: gemIn 0.6s var(--ease-out) both;
}

.addr-ident {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (hover: hover) {
  .brand:hover .mark { transform: translateY(-2px); }
}

/* Backdrop glow (ton.id) */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(46% 34% at 50% 42%, rgba(var(--accent-rgb), 0.11), transparent 70%),
    radial-gradient(125% 90% at 50% 26%, rgba(255, 255, 255, 0.016), transparent 66%);
  transition: opacity 1.1s var(--ease-out);
}

.backdrop.on { opacity: 1; }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  max-width: calc(var(--page-max) + 48px);
  margin: 0 auto;
  padding: max(var(--s-4), env(safe-area-inset-top)) var(--bar-pad) var(--s-3);
  background: linear-gradient(to bottom, rgba(7, 8, 10, 0.94) 70%, rgba(7, 8, 10, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 0;
  color: inherit;
  text-decoration: none;
  padding: 6px;
  margin: -6px;
}

.brand-id {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1;
}

.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
}

.live-auc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

#liveClock {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
  transition: background 0.3s;
}

.live-auc.online .live-dot {
  background: var(--live);
  animation: livePulse 2.2s ease-in-out infinite;
}

.live-auc.error .live-dot { background: var(--danger); animation: none; }

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 91, 91, 0.5); }
  50% { box-shadow: 0 0 0 4px rgba(255, 91, 91, 0); }
}

/* Main layout */
.main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--page-max) + 48px);
  margin: 0 auto;
  padding: 0 var(--bar-pad) max(40px, env(safe-area-inset-bottom));
}

/* Home / login */
.wallet-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(32px, 8vh, 72px);
  padding-bottom: var(--s-7);
  max-width: 560px;
  margin: 0 auto;
}

.wallet-card {
  width: 100%;
  margin-top: var(--s-6);
  padding: var(--s-5);
  background: var(--surface-2);
  border-radius: var(--r-lg);
  text-align: left;
}

.wallet-card h2 {
  margin: 0 0 var(--s-2);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wallet-hint {
  margin: 0 0 var(--s-4);
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.5;
}

.wallet-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.wallet-form input {
  width: 100%;
  background: var(--surface-1);
  border: 0;
  border-radius: var(--r-md);
  color: var(--fg);
  font-family: var(--mono);
  font-size: var(--fs-base);
  padding: 14px 16px;
  outline: none;
}

.wallet-form input::placeholder { color: var(--muted); }
.wallet-form input:focus { background: var(--surface-3); }

.wallet-form .btn-primary {
  width: 100%;
  padding: 14px 20px;
  font-size: var(--fs-base);
}

.view-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(48px, 10vh, 96px);
  padding-bottom: var(--s-7);
}

.home-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
}

.home-mark {
  position: relative;
  top: 1px;
}

@keyframes gemIn {
  from { transform: scale(0.9); filter: blur(2px); }
  to { transform: none; filter: none; }
}

.wordmark {
  font-size: clamp(40px, 11vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.home-tagline {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.search {
  margin-top: var(--s-7);
  width: 100%;
  max-width: 480px;
}

.search input {
  width: 100%;
  background: var(--surface-2);
  border: 0;
  border-radius: var(--r-pill);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 16px;
  padding: 16px 18px;
  outline: none;
  text-align: start;
  -webkit-appearance: none;
  appearance: none;
  transition: background var(--dur-3) var(--ease-out);
}

.search input::placeholder { color: var(--muted); }
.search input:focus { background: var(--surface-3); }

.home-hint {
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--faint);
  max-width: 420px;
}

.home-hint code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--muted);
}

.form-error {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--danger);
}

.form-success {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--pos);
}

/* Rise animation */
.rise {
  animation: rise 0.62s var(--ease-out) backwards;
}

.d1 { animation-delay: 0.06s; }
.d2 { animation-delay: 0.14s; }
.d3 { animation-delay: 0.22s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
}

/* Dashboard */
.dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-top: var(--s-2);
}

.ident-row {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: var(--s-5);
}

.addr-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 7px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  cursor: pointer;
  font: inherit;
  color: inherit;
  max-width: 100%;
  transition: background var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}

.addr-chip:active { transform: translateY(-1px); }

@media (hover: hover) {
  .addr-chip:hover { background: var(--surface-3); }
}

.addr-ident {
  flex: none;
  width: 24px;
  height: 20px;
}

.addr-chip-a {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(72vw, 380px);
}

/* Segmented tabs (ton.id burn-seg) */
.burn-segs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 26px);
  width: 100%;
  margin-bottom: clamp(24px, 4vh, 36px);
}

.burn-seg {
  background: none;
  border: 0;
  padding: 11px 0;
  margin: -11px 0;
  min-height: 44px;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: color var(--dur-2) var(--ease-out);
}

.burn-seg.is-active {
  color: var(--accent);
  font-weight: 800;
}

@media (hover: hover) {
  .burn-seg:hover { color: var(--fg); }
  .burn-seg.is-active:hover { color: var(--accent); }
}

.tab-panel {
  display: none;
  width: 100%;
}

.tab-panel.active { display: block; }

/* Section headers */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  padding: 0 2px;
}

.sec-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.freshness {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.freshness:empty { display: none; }

.block {
  width: 100%;
  margin-bottom: clamp(28px, 4vh, 40px);
}

.block-hint {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--s-4);
}

.muted { color: var(--muted); font-size: var(--fs-sm); }

/* Metrics grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  width: 100%;
  margin-bottom: clamp(24px, 3vh, 32px);
}

.metric-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.metric-grid-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  width: 100%;
  margin-bottom: clamp(24px, 3vh, 32px);
}

.metric {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 72px;
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--surface-1);
  border-radius: var(--r-md);
  overflow: visible;
}

.chart-wrap-lg {
  height: 240px;
}

.chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  transform: translate(-50%, -100%);
  padding: 6px 10px;
  background: rgba(12, 14, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.chart-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

.chart-tooltip-time {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.chart-tooltip-val {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: rgb(var(--accent-rgb));
  font-variant-numeric: tabular-nums;
}

.chart-summary {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: right;
  flex: 1;
  min-width: 0;
}

.sec-head .chart-summary {
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-accent {
  background: rgba(var(--accent-rgb), 0.1);
}

.metric-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-val {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.metric-val-sm { font-size: var(--fs-lg); }

.metric-sub {
  font-size: var(--fs-xs);
  color: var(--faint);
  font-weight: 600;
}

@media (min-width: 520px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .metric-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.overview-metrics {
  margin-bottom: 0;
}

.overview-metrics-paired {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.overview-metrics-paired .metric {
  min-height: 120px;
  height: 100%;
  box-sizing: border-box;
}

.overview-metrics-paired .metric-val-sm {
  font-size: var(--fs-lg);
}

.withdraw-progress {
  width: 100%;
  height: 4px;
  margin-top: var(--s-2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.withdraw-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.overview-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--s-3);
}

.overview-split-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.overview-split-col .metric,
.overview-forecast-card {
  flex: 1;
  min-height: 88px;
}

.overview-forecast-card {
  justify-content: flex-start;
}

.overview-forecast-card .metric-val {
  font-size: clamp(26px, 5vw, 34px);
}

.overview-forecast-hint {
  margin-top: var(--s-2);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  color: var(--faint);
}

@media (max-width: 519px) {
  .overview-split {
    grid-template-columns: 1fr;
  }
}

/* Balance hero (ton.id amount) */
.overview-hero {
  margin-bottom: clamp(28px, 4vh, 40px);
}

.overview-forecast {
  margin: calc(-1 * clamp(16px, 2vh, 24px)) 0 clamp(24px, 3vh, 32px);
  text-align: center;
}

.overview-forecast strong {
  color: var(--accent);
  font-weight: 700;
}

.overview-hero .amount {
  font-size: clamp(44px, 12vw, 72px);
}

.amount-block {
  width: 100%;
  text-align: center;
  margin-bottom: clamp(32px, 5vh, 48px);
}

.amount-block .sec-title {
  display: block;
  margin-bottom: var(--s-4);
}

.amount-line {
  display: flex;
  align-items: center;
  justify-content: center;
}

.amount {
  font-size: clamp(36px, 10vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background-image:
    linear-gradient(180deg, #fff, #e6ecf3),
    linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, 0.65) 50%, transparent 56%);
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 230% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.35s var(--ease-out);
}

.amount.sheen {
  animation: sheen 0.9s var(--ease-out) 0.04s;
}

.amount.balance-up {
  transform: scale(1.03);
}

.amount.balance-down {
  transform: scale(0.98);
}

@keyframes sheen {
  from { background-position: 0 0, 230% 0; }
  to { background-position: 0 0, -130% 0; }
}

.freshness-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.freshness-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: livePulse 2.2s ease-in-out infinite;
}

.data-table tr.share-new td {
  animation: shareFlash 1.2s var(--ease-out);
}

@keyframes shareFlash {
  from { background: rgba(var(--accent-rgb), 0.22); }
  to { background: transparent; }
}

.usd {
  margin-top: var(--s-3);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--muted);
}

.balance-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.chip-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
}

.chip-label { color: var(--muted); font-weight: 600; }
.chip-stat strong { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Earnings row */
.earnings-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.earning-item {
  text-align: center;
  padding: var(--s-3) var(--s-2);
  background: var(--surface-2);
  border-radius: var(--r-sm);
}

.earning-item .period {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.earning-item .earning-val {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.forecast-bar {
  padding: var(--s-3) var(--s-4);
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
}

/* Tables */
.list-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.data-table th {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  background: transparent;
}

.data-table tbody tr:last-child td { border-bottom: none; }

@media (hover: hover) {
  .data-table tbody tr:hover { background: var(--surface-2); }
}

.data-table .mono {
  font-family: var(--mono);
  font-size: var(--fs-xs);
}

.empty-row td {
  text-align: center;
  color: var(--muted);
  padding: 24px !important;
}

/* Buttons & forms */
.btn-primary {
  padding: 12px 20px;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  background: var(--accent-btn);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: opacity var(--dur-2), transform var(--dur-2);
  white-space: nowrap;
}

.btn-primary:active { transform: scale(0.98); }

@media (hover: hover) {
  .btn-primary:hover { opacity: 0.88; }
}

.btn-secondary {
  padding: 12px 16px;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--dur-2), color var(--dur-2);
}

@media (hover: hover) {
  .btn-secondary:hover {
    background: var(--surface-3);
    color: var(--fg);
  }
}

.withdraw-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}

.withdraw-row input {
  flex: 1;
  min-width: 120px;
  background: var(--surface-2);
  border: 0;
  border-radius: var(--r-pill);
  color: var(--fg);
  font-family: var(--mono);
  font-size: var(--fs-base);
  padding: 12px 16px;
  outline: none;
}

.withdraw-row input:focus { background: var(--surface-3); }
.withdraw-row input::placeholder { color: var(--muted); }

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pending { background: rgba(245, 166, 35, 0.15); color: var(--warn); }
.status-paid { background: rgba(76, 208, 125, 0.15); color: var(--pos); }
.status-rejected { background: rgba(245, 86, 74, 0.15); color: var(--danger); }

/* Guide */
.guide-segs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 20px);
  margin-bottom: var(--s-4);
  width: 100%;
}

.guide-segs button {
  background: none;
  border: 0;
  padding: 11px 0;
  margin: -11px 0;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-2);
}

.guide-segs button.active {
  color: var(--accent);
  font-weight: 800;
}

@media (hover: hover) {
  .guide-segs button:hover { color: var(--fg); }
}

.guide-block h4 {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-4);
}

.guide-steps {
  margin: 0 0 var(--s-5);
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.guide-steps li { margin-bottom: var(--s-2); }

.guide-link {
  color: var(--accent);
  font-weight: 600;
  font-size: var(--fs-sm);
}

@media (hover: hover) {
  .guide-link:hover { opacity: 0.75; }
}

.code-block {
  position: relative;
  margin: var(--s-4) 0;
  padding: var(--s-4);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--fg);
  background: var(--surface-2);
  border-radius: var(--r-md);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-btn {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  padding: 6px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-3);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

@media (hover: hover) {
  .copy-btn:hover { color: var(--accent); }
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--s-6) var(--bar-pad);
  color: var(--faint);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.footer p { margin: 0; }

@media (max-width: 480px) {
  .earnings-row { grid-template-columns: repeat(2, 1fr); }
  .burn-segs { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .home-mark, .spark-path, .mark { animation: none !important; }
  .live-dot { animation: none !important; }
}
