.token-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 50% -220px, rgba(200, 255, 69, 0.09), transparent 64%),
    var(--bg);
  color: var(--text);
}

.token-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 7, 0.9);
  backdrop-filter: blur(16px);
}

.token-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.token-brand-mark {
  display: grid; width: 29px; height: 29px; place-items: center;
  border: 1px solid rgba(200,255,69,.4); border-radius: 7px;
  color: var(--lime); font-family: var(--mono); font-size: 14px; font-weight: 700;
}
.token-brand b { display: block; font-size: 13px; letter-spacing: -.02em; }
.token-brand small { display: block; margin-top: 1px; color: #778579; font-family: var(--mono); font-size: 7px; letter-spacing: .12em; }
.token-header-actions { display: flex; align-items: center; gap: 13px; }
.token-header-actions { gap: 12px; }
.token-back { color: #a3b2a4; text-decoration: none; font-size: 14px; }
.token-back:hover { color: var(--lime); }
.token-header-actions .header-x { width: 34px; height: 34px; font-size: 13px; }
.token-header-actions .lang-switch-group { height: 34px; }
.token-header-actions .lang-switch-group button { font-size: 11px; min-width: 38px; height: 28px; }

.token-main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 28px; }
.token-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: end; padding-bottom: 24px; }
.token-kicker { color: var(--lime); font-family: var(--mono); font-size: 9px; letter-spacing: .16em; }
.token-hero h1 { max-width: 760px; margin: 13px 0 14px; font-family: 'Space Grotesk', var(--sans); font-size: clamp(34px, 4.1vw, 58px); line-height: .94; letter-spacing: -.055em; font-weight: 550; }
.token-hero h1 em { color: #6d7c70; font-style: normal; }
.token-hero p { max-width: 730px; margin: 0; color: #91a092; font-size: 13px; line-height: 1.7; }
.token-hero-actions { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.token-primary,
.token-secondary {
  min-height: 36px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px; font-size: 9px; text-decoration: none;
}
.token-primary { border: 1px solid var(--lime); background: var(--lime); color: #071008; font-weight: 600; }
.token-primary[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.token-secondary { border: 1px solid var(--line); color: #a6b4a5; }
.token-secondary:hover { border-color: rgba(200,255,69,.4); color: var(--lime); }

.token-status-card { padding: 15px; border: 1px solid rgba(200,255,69,.2); border-radius: 8px; background: rgba(200,255,69,.035); }
.token-status-head { display: flex; align-items: center; gap: 7px; }
.token-status-head b { color: var(--lime); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.token-status-card p { margin: 10px 0 13px; color: #8d9d8f; font-size: 10px; line-height: 1.6; }
.token-status-card dl { display: grid; gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--line); }
.token-status-card dl div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 8px; background: #0a110b; }
.token-status-card dt { color: #718073; font-size: 7px; }
.token-status-card dd { margin: 0; color: #c5d3c1; font-family: var(--mono); font-size: 8px; }

.token-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.token-stats > div { display: grid; gap: 5px; padding: 13px 15px; background: #0a0e0b; }
.token-stats span { color: #758478; font-size: 8px; }
.token-stats b { color: #d1dfcd; font-family: var(--mono); font-size: 19px; font-weight: 400; }

.token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.token-panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(10, 14, 11, .72); overflow: hidden; }
.token-wide { grid-column: 1 / -1; }
.token-panel-head { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.token-panel-head span { color: #6e7d70; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; }
.token-panel-head b { color: #cbd8c8; font-size: 11px; font-weight: 500; }
.token-panel-head small { margin-left: auto; color: #718073; font-family: var(--mono); font-size: 7px; }
.token-contract-body,
.token-tax-body,
.token-credit-body { padding: 14px; }
.token-contract-body > p,
.token-tax-body > p,
.token-credit-body > p { margin: 0 0 11px; color: #8b9a8c; font-size: 9.5px; line-height: 1.6; }
.token-ca-row { display: flex; gap: 6px; align-items: stretch; }
.token-ca-row code { flex: 1; overflow: hidden; padding: 9px; border: 1px solid var(--line); border-radius: 4px; background: #071008; color: #c8ff45; font-family: var(--mono); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.token-copy { min-width: 58px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: #a3b1a2; font-size: 8px; cursor: pointer; }
.token-copy:disabled { opacity: .35; cursor: not-allowed; }
.token-copy:not(:disabled):hover { border-color: rgba(200,255,69,.4); color: var(--lime); }
.token-fineprint { color: #69766b !important; font-size: 8px !important; }
.token-warning { margin-top: 12px; padding: 9px 10px; border: 1px solid rgba(255,99,119,.22); border-radius: 5px; background: rgba(255,99,119,.035); color: #b78488; font-size: 8px; line-height: 1.55; }

.token-tax-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; align-items: center; margin-bottom: 12px; }
.token-tax-row span { color: #9baa9c; font-size: 9px; }
.token-tax-row b { color: #d4e2d0; font-family: var(--mono); font-size: 10px; }
.token-tax-row i { grid-column: 1 / -1; display: block; width: 100%; height: 4px; border-radius: 3px; background: #101711; overflow: hidden; }
.token-tax-row i::after { content: ''; display: block; width: var(--w); height: 100%; background: linear-gradient(90deg, #6f8d2d, var(--lime)); }
.token-tax-row:last-of-type i::after { background: linear-gradient(90deg, #335d73, #67e8dd); }

.token-utility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.token-utility-grid article { padding: 14px; background: #0a100b; }
.token-utility-grid span { color: #617064; font-family: var(--mono); font-size: 7px; }
.token-utility-grid h3 { margin: 8px 0 6px; color: #d0ddcd; font-size: 12px; font-weight: 500; }
.token-utility-grid p { margin: 0; color: #829184; font-size: 8.5px; line-height: 1.55; }

.token-budget-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); }
.token-budget-grid > div { display: grid; gap: 4px; padding: 10px 11px; background: #0a100b; }
.token-budget-grid span { color: #7d8c7f; font-size: 7.5px; }
.token-budget-grid b { color: #c8ff45; font-family: var(--mono); font-size: 14px; font-weight: 400; }

.token-credit-body > p b { color: #d4e1d0; }
.token-credit-flow { display: flex; align-items: center; gap: 9px; margin: 13px 0; padding: 10px 12px; border: 1px solid rgba(200,255,69,.16); border-radius: 5px; background: rgba(200,255,69,.03); color: #a9b9a5; font-family: var(--mono); font-size: 8px; }
.token-credit-flow i { color: #5f7062; font-style: normal; }

.token-guardrails { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; padding: 14px; list-style: none; }
.token-guardrails li { position: relative; padding-left: 12px; color: #91a092; font-size: 8.5px; line-height: 1.4; }
.token-guardrails li::before { content: '×'; position: absolute; left: 0; color: #ff8f95; font-family: var(--mono); }
.token-status-list { display: grid; gap: 1px; margin: 0; padding: 14px; list-style: none; background: transparent; }
.token-status-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(235,255,228,.06); }
.token-status-list span { color: #7c8b7e; font-size: 8px; }
.token-status-list b { color: #b9c7b6; font-family: var(--mono); font-size: 8px; font-weight: 400; }

.token-treasury-panel { margin-bottom: 14px; }
.token-treasury-body { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 16px; padding: 15px; }
.token-treasury-total { display: grid; align-content: start; gap: 5px; }
.token-treasury-total span { color: #7c8b7e; font-size: 9px; }
.token-treasury-total b { color: var(--lime); font-family: var(--mono); font-size: 34px; font-weight: 400; line-height: 1; }
.token-treasury-total small { color: #68776b; font-size: 8px; line-height: 1.45; }
.token-treasury-split { display: grid; gap: 7px; align-content: start; }
.token-treasury-split > div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 9px; border: 1px solid rgba(235,255,228,.08); border-radius: 4px; }
.token-treasury-split span { color: #7c8b7e; font-size: 8px; }
.token-treasury-split b { color: #c9d8c6; font-family: var(--mono); font-size: 10px; font-weight: 400; }
.token-treasury-calc { display: grid; gap: 8px; align-content: start; }
.token-treasury-calc label { display: grid; gap: 4px; color: #8b9a8c; font-size: 8px; }
.token-treasury-calc label small { color: #667569; font-size: 7px; }
.token-treasury-calc input { width: 100%; height: 32px; padding: 0 9px; border: 1px solid rgba(235,255,228,.14); border-radius: 4px; background: #071008; color: var(--lime); font-family: var(--mono); font-size: 12px; outline: none; }
.token-treasury-calc input:focus { border-color: rgba(200,255,69,.45); }
.token-treasury-note { color: #6f7d70; font-size: 8px; line-height: 1.45; }
.token-treasury-note b { color: #aebdaa; font-family: var(--mono); font-weight: 400; }
.token-treasury-allocations { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(235,255,228,.08); border-radius: 5px; background: rgba(235,255,228,.08); }
.token-treasury-allocations > div { display: grid; gap: 3px; padding: 8px 9px; background: #0a100b; }
.token-treasury-allocations span { color: #718073; font-size: 7.5px; }
.token-treasury-allocations b { color: #c8ff45; font-family: var(--mono); font-size: 11px; font-weight: 400; }

.token-footer { display: flex; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); color: #68756a; font-family: var(--mono); font-size: 7px; letter-spacing: .05em; }

/* Readability pass: this page is information-dense; keep body copy at 10px+. */
.token-main { width: min(1360px, calc(100% - 48px)); }
.token-brand b { font-size: 15px; }
.token-brand small { font-size: 9px; }
.token-back { font-size: 12px; }
.token-kicker { font-size: 11px; }
.token-hero p { font-size: 14px; line-height: 1.6; }
.token-primary, .token-secondary { min-height: 40px; padding: 0 15px; font-size: 11px; }
.token-status-card p { font-size: 11px; }
.token-status-card dt { font-size: 9px; }
.token-status-card dd { font-size: 10px; }
.token-stats span { font-size: 10px; }
.token-stats b { font-size: 26px; }
.token-panel-head span { font-size: 9px; }
.token-panel-head b { font-size: 15px; }
.token-panel-head small { font-size: 9px; }
.token-contract-body > p, .token-tax-body > p, .token-credit-body > p { font-size: 13px; }
.token-ca-row code { font-size: 11px; }
.token-copy { font-size: 10px; }
.token-warning { font-size: 11px; }
.token-tax-row span { font-size: 11px; }
.token-tax-row b { font-size: 13px; }
.token-utility-grid span { font-size: 8.5px; }
.token-utility-grid h3 { font-size: 16px; }
.token-utility-grid p { font-size: 11.5px; }
.token-budget-grid span { font-size: 10px; }
.token-budget-grid b { font-size: 20px; }
.token-credit-body > p { font-size: 13px; }
.token-credit-flow { font-size: 10px; }
.token-guardrails li { font-size: 11.5px; }
.token-status-list span, .token-status-list b { font-size: 11px; }
.token-fineprint { font-size: 10px !important; }
.token-footer { font-size: 9px; }
.token-treasury-total span { font-size: 10px; }
.token-treasury-total small { font-size: 9px; }
.token-treasury-split span { font-size: 9px; }
.token-treasury-split b { font-size: 11px; }
.token-treasury-calc label { font-size: 9px; }
.token-treasury-calc label small { font-size: 8px; }
.token-treasury-note { font-size: 9px; }
.token-treasury-allocations span { font-size: 8.5px; }
.token-treasury-allocations b { font-size: 12px; }
.token-footer a { color: #8e9d90; text-decoration: none; }
.token-footer a:hover { color: var(--lime); }

@media (max-width: 900px) {
  .token-hero { grid-template-columns: 1fr; align-items: start; }
  .token-status-card { max-width: 390px; }
  .token-utility-grid { grid-template-columns: 1fr 1fr; }
  .token-budget-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .token-header { padding: 0 14px; }
  .token-header-actions { gap: 7px; }
  .token-header-actions .token-back { display: none; }
  .token-main { width: calc(100% - 28px); padding-top: 30px; }
  .token-hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .token-stats { grid-template-columns: 1fr 1fr; }
  .token-treasury-body { grid-template-columns: 1fr; }
  .token-treasury-allocations { grid-template-columns: 1fr 1fr; }
  .token-grid { grid-template-columns: 1fr; }
  .token-wide { grid-column: auto; }
  .token-utility-grid { grid-template-columns: 1fr; }
  .token-budget-grid { grid-template-columns: 1fr 1fr; }
  .token-footer { display: grid; gap: 5px; }
}
