/* =============================================================================
   STEAK — Stake. Stack. Repeat.  Refined dashboard (glass + Robinhood green).
   Frosted-glass surfaces, soft layered shadows, crisp line icons (no emoji),
   pixel wordmark kept only for the brand mark.
   ========================================================================== */

:root {
  /* ground */
  --bg:            #eef1ec;
  --bg-tint:      #e7efe6;
  --ink:          #0e1512;
  --text:         #0e1512;
  --text-2:       #566159;
  --text-3:       #8c968e;
  --hair:         rgba(14, 21, 18, 0.09);
  --hair-2:       rgba(14, 21, 18, 0.055);

  /* Robinhood green system */
  --rh:            #00c805;   /* signature */
  --rh-bright:    #12e21a;
  --rh-deep:      #00a406;
  --rh-text:      #0a8f22;    /* readable green on light */
  --rh-tint:      rgba(0, 200, 5, 0.10);
  --rh-tint-2:    rgba(0, 200, 5, 0.16);
  --rh-glow:      rgba(0, 200, 5, 0.32);

  /* mascot lime glow (used sparingly, for the steak) */
  --lime:          #b6f000;
  --lime-glow:    rgba(182, 240, 0, 0.5);

  --ember:        #ff7a2b;
  --ember-text:   #c85410;
  --blue:         #2f6fe0;
  --blue-tint:    rgba(47, 111, 224, 0.12);
  --gold:         #e0a400;

  /* glass */
  --glass:         rgba(255, 255, 255, 0.6);
  --glass-2:      rgba(255, 255, 255, 0.72);
  --glass-brd:    rgba(255, 255, 255, 0.75);
  --glass-line:   rgba(14, 21, 18, 0.07);

  --panel-2:      #f4f7f3;

  --radius:       18px;
  --radius-sm:    13px;
  --sidebar-w:    240px;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;
  --font-pixel:   'Press Start 2P', monospace;

  --sh-sm:        0 1px 2px rgba(14,21,18,0.05), 0 4px 12px -6px rgba(14,21,18,0.10);
  --sh-md:        0 1px 2px rgba(14,21,18,0.05), 0 16px 40px -20px rgba(14,21,18,0.22);
  --sh-glow:      0 8px 30px -8px var(--rh-glow);
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 88% -14%, rgba(0,200,5,0.14), transparent 62%),
    radial-gradient(760px 520px at 6% 108%, rgba(182,240,0,0.10), transparent 60%),
    linear-gradient(180deg, #f2f5f0, var(--bg));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--rh); color: #fff; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.015em; color: var(--ink); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-3); }
svg { display: block; }
.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico.accent path[data-a], .ico .a { stroke: var(--rh); }

/* ---- app shell ------------------------------------------------------------ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 5px; padding: 22px 16px;
  background: var(--glass-2); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-right: 1px solid var(--glass-line); z-index: 30;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; }
.side-brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px var(--lime-glow)); }
.side-brand .word { font-family: var(--font-pixel); font-size: 15px; color: var(--ink); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px;
  color: var(--text-2); font-weight: 550; font-size: 14.5px; transition: all .16s var(--ease); position: relative;
}
.nav-item .ico { width: 18px; height: 18px; color: var(--text-3); transition: color .16s; }
.nav-item:hover { background: rgba(14,21,18,0.04); color: var(--ink); }
.nav-item:hover .ico { color: var(--text-2); }
.nav-item.active { background: var(--rh-tint); color: var(--rh-text); font-weight: 650; }
.nav-item.active .ico { color: var(--rh); }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; border-radius: 3px; background: var(--rh); }
.side-foot { margin-top: auto; padding: 8px; display: flex; flex-direction: column; gap: 10px; }
.side-note { font-size: 10.5px; color: var(--text-3); line-height: 1.5; }

/* ---- main ----------------------------------------------------------------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 68px; flex-shrink: 0;
  display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: rgba(242, 245, 240, 0.72); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--glass-line);
}
.topbar h1 { font-size: 21px; margin-right: auto; letter-spacing: -0.02em; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.side-toggle { display: none; background: var(--glass); border: 1px solid var(--hair); border-radius: 10px; padding: 7px; color: var(--ink); }
.content { padding: 24px 28px 44px; }

.view { display: none; animation: fade .3s var(--ease); }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ---- pill / mode ---------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700;
  border: 1px solid var(--hair); background: var(--glass); color: var(--text-2);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rh); box-shadow: 0 0 9px var(--rh); animation: pulse 1.9s infinite; }
.pill.sim { color: var(--ember-text); border-color: rgba(255,122,43,0.35); background: rgba(255,122,43,0.08); }
.pill.sim .dot { background: var(--ember); box-shadow: 0 0 9px var(--ember); }
.pill.live { color: var(--rh-text); border-color: rgba(0,200,5,0.35); background: var(--rh-tint); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.32} }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 19px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; font-size: 14.5px; letter-spacing: -0.005em;
  transition: transform .16s var(--ease), box-shadow .22s var(--ease), background .2s, border-color .2s;
  white-space: nowrap;
}
.btn .ico { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, var(--rh-bright), var(--rh)); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 8px 20px -8px var(--rh-glow), 0 1px 2px rgba(0,120,3,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 14px 30px -10px var(--rh-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--glass); border-color: var(--hair); color: var(--ink); box-shadow: var(--sh-sm); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(0,200,5,0.4); color: var(--rh-text); background: var(--glass-2); }
.btn-ember { background: linear-gradient(180deg, #ff8a3d, var(--ember)); color: #fff; box-shadow: 0 8px 20px -8px rgba(255,122,43,0.5); }
.btn-ember:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* account chip */
.acct-chip { display: inline-flex; align-items: center; gap: 9px; padding: 6px 8px 6px 8px; border: 1px solid var(--hair); border-radius: 12px; background: var(--glass); backdrop-filter: blur(8px); box-shadow: var(--sh-sm); }
.acct-chip .av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--rh), var(--rh-deep)); color: #fff; font-size: 12px; font-weight: 700; font-family: var(--font-display); letter-spacing: -0.03em; }
.acct-chip .nm { font-weight: 650; font-size: 13px; line-height: 1.1; }
.acct-chip .ad { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.acct-chip .x { border: none; background: transparent; border-radius: 8px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--text-3); }
.acct-chip .x:hover { background: rgba(255,122,43,0.14); color: var(--ember-text); }

/* ---- glass cards ---------------------------------------------------------- */
.card {
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-brd); border-radius: var(--radius);
  box-shadow: var(--sh-md), 0 1px 0 rgba(255,255,255,0.6) inset;
}
.card-pad { padding: 22px; }
.card-title { font-family: var(--font-display); font-weight: 650; font-size: 16px; letter-spacing: -0.01em; }
.card-sub { font-size: 12px; color: var(--text-3); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.statc {
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-brd); border-radius: var(--radius); padding: 17px 19px;
  box-shadow: var(--sh-md), 0 1px 0 rgba(255,255,255,0.6) inset; position: relative; overflow: hidden;
}
.statc::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, var(--rh-tint), transparent 70%); }
.statc.sm { padding: 13px 15px; }
.statc .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.statc .v { font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-top: 6px; color: var(--ink); line-height: 1.08; letter-spacing: -0.02em; }
.statc.sm .v { font-size: 20px; }
.statc .v.green { background: linear-gradient(180deg, var(--rh-text), var(--rh-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statc .v.ember { color: var(--ember-text); } .statc .v.blue { color: var(--blue); }
.statc .sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; font-family: var(--font-mono); font-weight: 700; }

.dash-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.mini-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* reward cycle — glass typography moment */
.cycle-card { display: flex; flex-direction: column; text-align: center; }
.cycle-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 0; }
.cycle-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 700; }
.cycle-time {
  font-family: var(--font-display); font-weight: 700; font-size: 58px; letter-spacing: -0.03em;
  margin: 10px 0 4px; display: flex; align-items: baseline; gap: 6px; line-height: 1;
  background: linear-gradient(180deg, var(--rh-bright), var(--rh-deep)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 16px var(--rh-glow));
}
.cycle-time span { color: var(--text-3); -webkit-text-fill-color: var(--text-3); font-weight: 400; }
.cycle-units { display: flex; gap: 52px; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-3); letter-spacing: .18em; }
.cycle-epoch { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.cycle-epoch b { color: var(--rh-text); }
.cycle-foot { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); text-align: center; padding-top: 12px; border-top: 1px solid var(--hair-2); }

.history-card .right { text-align: right; }
.big-num { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; background: linear-gradient(180deg, var(--rh-text), var(--rh-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- stake panels --------------------------------------------------------- */
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.mini-stat { background: rgba(255,255,255,0.5); border: 1px solid var(--glass-line); border-radius: var(--radius-sm); padding: 13px 10px; text-align: center; }
.mini-stat .mv { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.mini-stat .mv.green { color: var(--rh-text); } .mini-stat .mv.blue { color: var(--blue); }
.mini-stat .mk { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-3); font-weight: 700; margin-top: 4px; }

.amount-box { border: 1px solid var(--hair); border-radius: var(--radius-sm); padding: 13px 15px; background: rgba(255,255,255,0.55); transition: border-color .2s, box-shadow .2s; }
.amount-box:focus-within { border-color: rgba(0,200,5,0.5); box-shadow: 0 0 0 3px var(--rh-tint); }
.amount-box .row { display: flex; align-items: center; gap: 10px; }
.amount-box input { flex: 1; background: none; border: none; outline: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 25px; width: 100%; letter-spacing: -0.02em; }
.amount-box input::placeholder { color: var(--text-3); font-weight: 500; }
.amount-box .max { border: 1px solid var(--hair); background: var(--rh-tint); color: var(--rh-text); border-radius: 8px; padding: 5px 10px; font-family: var(--font-mono); font-weight: 700; font-size: 11px; }
.amount-box .max:hover { background: var(--rh); color: #fff; }
.amount-box .sym { font-family: var(--font-mono); font-weight: 700; color: var(--text-2); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.amount-box .sym img { width: 18px; height: 18px; }
.field-label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 15px 0 7px; }
.field-label a { color: var(--rh-text); }
.field input { width: 100%; background: rgba(255,255,255,0.55); border: 1px solid var(--hair); border-radius: 11px; padding: 11px 13px; color: var(--ink); font-family: var(--font-mono); font-size: 13px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: rgba(0,200,5,0.5); box-shadow: 0 0 0 3px var(--rh-tint); }

.addr-chip { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,0.5); border: 1px solid var(--hair); border-radius: 11px; padding: 10px 12px; }
.addr-chip .mono { font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.icon-btn { background: var(--glass); border: 1px solid var(--hair); border-radius: 9px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--text-2); transition: all .15s; flex-shrink: 0; }
.icon-btn:hover { background: var(--rh-tint); color: var(--rh-text); border-color: rgba(0,200,5,0.4); }
.icon-btn .ico { width: 16px; height: 16px; }
.divider { height: 1px; background: var(--hair-2); margin: 16px 0; }

/* ---- podium / table ------------------------------------------------------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; margin-bottom: 18px; }
.pod { border: 1px solid var(--glass-brd); border-radius: var(--radius); padding: 20px 14px; text-align: center; background: var(--glass); backdrop-filter: blur(16px); box-shadow: var(--sh-md); }
.pod .rank-num { width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; background: rgba(14,21,18,0.05); color: var(--text-2); border: 1px solid var(--hair); }
.pod .name { font-weight: 650; font-family: var(--font-display); margin-top: 2px; font-size: 15px; }
.pod .amt { font-family: var(--font-mono); font-weight: 700; color: var(--rh-text); margin-top: 5px; font-size: 14px; }
.pod .sub { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); margin-top: 3px; }
.pod.p1 { box-shadow: var(--sh-md), 0 0 0 1.5px var(--gold); }
.pod.p1 .rank-num { background: linear-gradient(135deg, #ffd84d, var(--gold)); color: #4a3800; border-color: transparent; }
.pod.p2 .rank-num { background: linear-gradient(135deg, #e8ecef, #b9c2c8); color: #3a4247; border-color: transparent; }
.pod.p3 .rank-num { background: linear-gradient(135deg, #f0b988, #cd7f42); color: #4a2c12; border-color: transparent; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); font-weight: 700; padding: 13px 16px; border-bottom: 1px solid var(--hair); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--hair-2); font-size: 14px; color: var(--ink); }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--rh-tint); }
.table tr.me { background: var(--rh-tint-2); }
.table tr.me td:first-child { box-shadow: inset 3px 0 0 var(--rh); }
.rank-badge { font-family: var(--font-mono); font-weight: 700; color: var(--text-3); }
.rank-badge.top { color: var(--rh-text); }
.staker { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-family: var(--font-display); letter-spacing: -0.03em; background: linear-gradient(135deg, var(--rh), var(--rh-deep)); color: #fff; flex-shrink: 0; }
.tag { font-family: var(--font-mono); font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: var(--rh-tint); color: var(--rh-text); }
.table-scroll { overflow-x: auto; }

/* ---- reward cards / feed --------------------------------------------------- */
.reward-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reward-card { border: 1px solid var(--glass-line); border-radius: var(--radius-sm); padding: 15px; }
.reward-card.steak { background: var(--rh-tint); } .reward-card.eth { background: var(--blue-tint); }
.reward-card .k { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.reward-card .v { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-top: 5px; letter-spacing: -0.02em; }
.reward-card.steak .v { color: var(--rh-text); } .reward-card.eth .v { color: var(--blue); }

.feed { max-height: 420px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.feed-item { display: flex; align-items: center; gap: 11px; padding: 11px 2px; border-bottom: 1px solid var(--hair-2); }
.feed-item .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--rh-tint); color: var(--rh); flex-shrink: 0; }
.feed-item .ic.sim { background: rgba(255,122,43,0.14); color: var(--ember); }
.feed-item .ic .ico { width: 16px; height: 16px; }
.feed-item .body { flex: 1; min-width: 0; }
.feed-item .t { font-size: 13.5px; color: var(--ink); }
.feed-item .t b { color: var(--rh-text); font-family: var(--font-mono); }
.feed-item .t .e { color: var(--blue); font-family: var(--font-mono); }
.feed-item .time { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); font-weight: 600; }

/* ---- pillars (About) ------------------------------------------------------ */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--glass-brd); border-radius: var(--radius); overflow: hidden; background: var(--glass); backdrop-filter: blur(16px); box-shadow: var(--sh-md); }
.pillar { padding: 26px 20px; text-align: center; border-right: 1px solid var(--hair-2); transition: background .2s; }
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--rh-tint); }
.pillar .picon { width: 40px; height: 40px; margin: 0 auto 14px; display: block; stroke: var(--ink); fill: none; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.pillar .picon .accent { stroke: var(--rh); }
.pillar h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.pillar .u { width: 26px; height: 3px; border-radius: 3px; background: var(--rh); margin: 0 auto 9px; }
.pillar p { color: var(--rh-text); font-family: var(--font-mono); font-weight: 700; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.pillar .desc { color: var(--text-2); font-size: 12.5px; margin-top: 7px; line-height: 1.5; }
.about-p { color: var(--text-2); line-height: 1.65; font-size: 14.5px; margin: 0 0 12px; }
.about-p b { color: var(--ink); }
.note-box { margin-top: 6px; padding: 12px 14px; border: 1px solid rgba(255,122,43,0.35); border-radius: 11px; color: var(--ember-text); font-size: 12px; background: rgba(255,122,43,0.07); line-height: 1.5; }

/* faq */
.faq-item { border: 1px solid var(--glass-line); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; background: rgba(255,255,255,0.5); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--ink); padding: 14px 16px; font-size: 14.5px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .chev { color: var(--rh); transition: transform .25s; display: grid; place-items: center; }
.faq-q .chev .ico { width: 16px; height: 16px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 16px 14px; color: var(--text-2); line-height: 1.6; font-size: 13.5px; }
.faq-a-inner b { color: var(--ink); }

/* connect modal helpers */
.or-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-3); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.ack { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; cursor: pointer; }
.ack input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--rh); flex-shrink: 0; }

/* withdraw / amount-box row robustness */
.wd-token .field-label { margin-top: 0; }
.amount-box input { min-width: 0; }
.amount-box .max, .amount-box .btn-sm { flex-shrink: 0; }
.amount-box .btn-sm { box-shadow: none; }
/* keep the account chip from overflowing the topbar with long names */
.acct-chip .nm { display: inline-block; max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* connect prompt */
.connect-prompt { text-align: center; padding: 26px 8px; }
.connect-prompt .big { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--rh-tint); color: var(--rh); }
.connect-prompt .big .ico { width: 28px; height: 28px; stroke-width: 1.6; }
.connect-prompt p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; margin: 0 auto 16px; max-width: 300px; }

/* ---- toasts / modal ------------------------------------------------------- */
#toasts { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.toast { background: var(--glass-2); backdrop-filter: blur(16px); border: 1px solid var(--glass-brd); border-left: 3px solid var(--rh); border-radius: 12px; padding: 13px 15px; box-shadow: var(--sh-md); animation: toastIn .35s var(--ease); }
.toast.err { border-left-color: var(--ember); } .toast.ember { border-left-color: var(--ember); }
.toast .tt { font-weight: 650; font-size: 13.5px; margin-bottom: 2px; }
.toast .tb { font-size: 12.5px; color: var(--text-2); }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } }

.modal-back { position: fixed; inset: 0; z-index: 150; background: rgba(14,21,18,.28); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade2 .2s; }
.modal { width: 100%; max-width: 440px; background: var(--glass-2); backdrop-filter: blur(30px) saturate(1.4); border: 1px solid var(--glass-brd); border-radius: 20px; padding: 26px; box-shadow: 0 30px 80px -30px rgba(14,21,18,0.5), 0 1px 0 rgba(255,255,255,0.7) inset; animation: modalIn .3s var(--ease); }
.modal h3 { font-size: 21px; margin-bottom: 6px; }
.modal .field { margin-top: 12px; }
.modal label { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: 6px; }
@keyframes fade2 { from { opacity: 0; } }
@keyframes modalIn { from { transform: translateY(16px) scale(.97); opacity: 0; } }

.flash { animation: flashPulse 1s var(--ease); }
@keyframes flashPulse { 0% { box-shadow: 0 0 0 0 var(--rh-glow), var(--sh-md); } 100% { box-shadow: 0 0 0 18px rgba(0,200,5,0), var(--sh-md); } }

/* util */
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.mt { margin-top: 14px; } .mt-sm { margin-top: 8px; } .mb { margin-bottom: 14px; }
.grow { flex: 1; }
.hidden { display: none !important; }
.center { text-align: center; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.legend { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); font-weight: 700; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.quick { display: flex; gap: 7px; margin-top: 10px; }
.quick button { flex: 1; padding: 8px; border-radius: 9px; border: 1px solid var(--hair); background: rgba(255,255,255,0.5); color: var(--text-2); font-size: 12px; font-weight: 700; font-family: var(--font-mono); transition: all .15s; }
.quick button:hover { background: var(--rh-tint); color: var(--rh-text); border-color: rgba(0,200,5,0.4); }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 1050px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: none; }
  .pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid var(--hair-2); }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .28s var(--ease); box-shadow: 8px 0 40px -12px rgba(0,0,0,.28); }
  .sidebar.open { transform: none; }
  .side-toggle { display: inline-flex; }
  .dash-2, .reward-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--hair-2); }
  .pillar:last-child { border-bottom: none; }
  .podium { grid-template-columns: 1fr; }
  .content { padding: 18px 16px 40px; }
  .topbar { padding: 0 16px; }
  #buy-link { display: none; }
}
