/* AUREA Portal — /treasury (the public treasury wallet & every burn).
   Page-specific styles only; shell/cards/tables come from styles.css /
   rewards.css / ai-local.css / transparency.css (tp-* classes). Every
   number on the page is read live from BNB Smart Chain public RPC in
   the visitor's browser (see treasury.js); nothing is baked in.
   Design upgrade 2026-12-05: neon gold/purple frames, character spot
   imagery and WorkMarket-style big-number stat cards. Text contrast
   floor stays --muted #A7ACC2 / border #39415F; neon is frame-only. */

/* ---------- Intro: headline + vault guardian visual ---------- */
.tr-intro {
  display: grid; grid-template-columns: 1fr 290px;
  gap: 30px; align-items: center;
}
.tr-intro-img {
  width: 100%; max-width: 290px; aspect-ratio: 1; object-fit: cover;
  justify-self: end; border-radius: 22px;
  border: 1px solid rgba(255,215,0,.5);
  box-shadow: 0 0 34px rgba(255,215,0,.16), 0 0 64px rgba(124,77,255,.15);
}
@media (max-width: 760px) {
  .tr-intro { grid-template-columns: 1fr; }
  .tr-intro-img { justify-self: center; max-width: 225px; }
}

/* ---------- Section titles: spot image + gradient underline ---------- */
.tr-hrow { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; }
.tr-hrow .section-title { margin: 0; }
main .section-title { position: relative; padding-bottom: 10px; }
main .section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #FFD700, #B388FF);
  box-shadow: 0 0 10px rgba(255,215,0,.5);
}

/* ---------- Big-number stat cards (overview) ---------- */
.tr-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 6px;
}
@media (max-width: 1000px) { .tr-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tr-stats { grid-template-columns: 1fr; } }
.tr-stats .tp-stat {
  position: relative; overflow: hidden; padding: 22px 16px 18px;
  border-radius: 18px; text-align: center;
  background: linear-gradient(170deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
}
.tr-stats .tp-stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--tr-accent, linear-gradient(90deg, #FFD700, #B388FF));
}
.tr-stats .tp-stat:nth-child(1) {
  border: 1px solid rgba(255,215,0,.55);
  box-shadow: 0 0 20px rgba(255,215,0,.1);
  --tr-accent: linear-gradient(90deg, #FFB300, #FFD700);
}
.tr-stats .tp-stat:nth-child(2) {
  border: 1px solid rgba(255,112,67,.55);
  box-shadow: 0 0 20px rgba(255,112,67,.1);
  --tr-accent: linear-gradient(90deg, #FF7043, #FFB300);
}
.tr-stats .tp-stat:nth-child(2) .tp-stat-num { color: #FFC4A3; }
.tr-stats .tp-stat:nth-child(3) {
  border: 1px solid rgba(43,217,169,.5);
  box-shadow: 0 0 20px rgba(43,217,169,.09);
  --tr-accent: linear-gradient(90deg, #2BD9A9, #69F0AE);
}
.tr-stats .tp-stat:nth-child(3) .tp-stat-num { color: #8CF7CE; }
.tr-stats .tp-stat:nth-child(4) {
  border: 1px solid rgba(179,136,255,.55);
  box-shadow: 0 0 20px rgba(179,136,255,.11);
  --tr-accent: linear-gradient(90deg, #7C4DFF, #B388FF);
}
.tr-stats .tp-stat:nth-child(4) .tp-stat-num { color: #D6BCFF; }
.tr-stat-ic {
  display: block; width: 46px; height: 46px; margin: 0 auto 10px;
  border-radius: 13px; object-fit: cover;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 0 14px rgba(0,0,0,.35);
}
.tr-stats .tp-stat-num { font-size: 1.9rem; word-break: break-word; }
@media (max-width: 480px) { .tr-stats .tp-stat-num { font-size: 1.6rem; } }
@media (hover: hover) {
  .tr-stats .tp-stat { transition: transform .18s ease, box-shadow .18s ease; }
  .tr-stats .tp-stat:hover { transform: translateY(-3px); }
}

/* Contract-section stat pair gets the same neon treatment. */
.tp-stats .tp-stat {
  border: 1px solid rgba(255,215,0,.4);
  background: linear-gradient(170deg, rgba(255,215,0,.05), rgba(255,255,255,.02));
  box-shadow: 0 0 16px rgba(255,215,0,.06);
}

/* ---------- Address cards: purple neon frame ---------- */
.tp-addr-card {
  border: 1px solid rgba(179,136,255,.5);
  background: linear-gradient(165deg, rgba(124,77,255,.09), rgba(255,255,255,.02) 60%);
  box-shadow: 0 0 22px rgba(124,77,255,.12);
}
.tp-coin-sm { width: 18px; height: 18px; vertical-align: -3px; margin-right: 7px; }
.tp-addr-label {
  margin: 0 0 6px; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted, #A7ACC2); font-weight: 700;
}

/* ---------- Burn hero card: flame glow ---------- */
.tp-hero-card {
  border: 1px solid rgba(255,140,0,.6);
  background: radial-gradient(120% 140% at 50% 0%, rgba(255,110,0,.16), rgba(179,136,255,.06) 55%, rgba(10,15,30,.5));
  box-shadow: 0 0 36px rgba(255,120,0,.18), inset 0 0 44px rgba(255,140,0,.05);
}
.tp-hero-card .tp-coin { width: 38px; height: 38px; vertical-align: -8px; }

/* ---------- Policy cards: gold frame + gradient top bar ---------- */
.tp-card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,215,0,.45);
  background: linear-gradient(170deg, rgba(255,215,0,.05), rgba(255,255,255,.02));
  box-shadow: 0 0 16px rgba(255,215,0,.06);
}
.tp-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #FFD700, #B388FF);
}
.tp-card h3 { color: #FFE97A; }

/* ---------- Tables: framed wrap, tinted header, zebra rows ---------- */
.tp-table-wrap {
  border: 1px solid #39415F; border-radius: 16px;
  background: rgba(255,255,255,.02);
  box-shadow: 0 0 18px rgba(124,77,255,.06);
}
.tp-table th { background: rgba(255,215,0,.06); }
.tp-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.015); }

/* ---------- Tokenomics: taller colour bar + share chips ---------- */
.tk-bar {
  height: 36px; border-radius: 12px;
  border: 1px solid rgba(255,215,0,.6);
  box-shadow: 0 0 24px rgba(255,215,0,.12);
}
.tk-seg { box-shadow: inset -2px 0 0 rgba(10,15,30,.55); }
.tk-seg:last-child { box-shadow: none; }
.tk-dot { margin-right: 8px; vertical-align: -1px; }
.tk-share {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  border: 1px solid rgba(255,215,0,.4); background: rgba(255,215,0,.07);
  color: #FFE97A; font-weight: 800;
}

.tr-link-row { margin-top: 16px; }

/* ---------- Next-page cards ---------- */
.tr-next-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-top: 16px;
}
@media (max-width: 700px) { .tr-next-grid { grid-template-columns: 1fr; } }
.tr-next-card {
  display: block; padding: 18px; border-radius: 16px; text-decoration: none;
  border: 1px solid rgba(179,136,255,.45);
  background: linear-gradient(165deg, rgba(179,136,255,.08), rgba(255,255,255,.02) 60%);
  box-shadow: 0 0 18px rgba(179,136,255,.07);
}
.tr-next-ic {
  display: block; width: 52px; height: 52px; margin-bottom: 12px;
  border-radius: 14px; object-fit: cover;
  border: 1px solid rgba(240,185,11,.45);
  box-shadow: 0 0 12px rgba(168,85,247,.3);
}
.tr-next-card strong { display: block; font-size: 1.05rem; color: var(--text, #EDEFF7); margin-bottom: 6px; }
.tr-next-card span { color: var(--muted, #A7ACC2); line-height: 1.6; font-size: .94rem; }
.tr-next-card:hover { border-color: rgba(255,215,0,.6); }
@media (hover: hover) {
  .tr-next-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
  .tr-next-card:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(255,215,0,.14); }
}

.tr-back { margin-top: 22px; }
