/* public/css/money.css — the money pages of Genesis (Ledger, Cards, Market). Owner: the Money chat.
   One token sheet; the brand: deep green-black, bone ink, ONE acid-lime for "now", amber-gold for the jackpot. */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');
:root {
  --bg0: #040a07; --bg1: #07120d; --bg2: #0a1811; --bg3: #0f2118; --bg4: #152c20;
  --line: rgba(214, 255, 190, .07); --line2: rgba(214, 255, 190, .14); --line3: rgba(214, 255, 190, .26);
  --ink: #e6efe1; --ink2: #a7b8a5; --ink3: #6a7d6c; --ink4: #46584a;
  --lime: #b8ff3a; --lime2: rgba(184, 255, 58, .14); --lime3: rgba(184, 255, 58, .32);
  --gold: #e8b45a; --gold2: rgba(232, 180, 90, .14); --red: #ff6a4f; --red2: rgba(255, 106, 79, .14); --sky: #7fe3ff;
  --serif: 'Instrument Serif', 'Times New Roman', serif; --sans: 'Inter Tight', 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --r1: 6px; --r2: 12px; --r3: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr: 60px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg0); color: var(--ink); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
html { height: 100%; }
body { min-height: 100%; overflow-x: clip; }      /* clip, not hidden, and no fixed height: the sticky header and the phone tab row hold all the way down */
::selection { background: var(--lime); color: #071006; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lbl { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.muted { color: var(--ink3); }
/* atmosphere: one radial wash + a faint specimen grid */
.atmo { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(1200px 520px at 18% -8%, rgba(184, 255, 58, .075), transparent 60%), radial-gradient(900px 600px at 100% 0%, rgba(127, 227, 255, .045), transparent 60%),
    linear-gradient(var(--bg1), var(--bg0) 70%); }
.atmo::after { content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(1100px 700px at 30% 0%, #000 0%, transparent 75%); }

/* header (same chrome on every money page) */
.hdr { position: sticky; top: 0; z-index: 20; height: var(--hdr); display: flex; align-items: center; gap: 22px; padding: 0 26px;
  background: linear-gradient(180deg, #060d09, #050b08); border-bottom: 1px solid var(--line); }      /* opaque, no backdrop blur: it costs the whole frame budget under a live card */
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #0d2016; border: 1px solid var(--line2); color: var(--lime); overflow: hidden; }
.brand .mark svg { width: 22px; height: 22px; }
.brand .mark img { width: 100%; height: 100%; object-fit: cover; }
.brand .word { font: 800 16px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.brand .tk { font: 600 11px/1 var(--mono); color: var(--lime); background: rgba(184, 255, 58, .08); border: 1px solid var(--line2); padding: 5px 7px; border-radius: 6px; }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a { padding: 8px 13px; border-radius: 999px; color: var(--ink2); font-weight: 500; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.nav a.on { color: var(--ink); background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line2); }
.hdr .sp { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .02); color: var(--ink2); font: 500 12px/1 var(--mono); cursor: pointer; transition: border-color .15s, color .15s, background .15s; white-space: nowrap; }
.pill:hover { border-color: var(--line3); color: var(--ink); }
.pill.lime { background: var(--lime); border-color: var(--lime); color: #071006; font-weight: 700; }
.pill.lime:hover { filter: brightness(1.06); }
.pill svg { width: 14px; height: 14px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(184, 255, 58, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(184, 255, 58, .55); } 70% { box-shadow: 0 0 0 8px rgba(184, 255, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 255, 58, 0); } }
[hidden] { display: none !important; }

/* phones: the pages as a tab row under the header (the header's nav does not fit) */
.mnav { display: none; }
@media (max-width: 860px) {
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: sticky; top: var(--hdr); z-index: 19; height: 46px; padding: 5px 10px 6px; gap: 4px;
    background: #050b08; border-bottom: 1px solid var(--line); }
  .mnav a { display: grid; place-items: center; border-radius: 10px; color: var(--ink2); font: 600 12.5px/1 var(--sans); }
  .mnav a.on { color: var(--ink); background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line2); }
  .wd { top: calc(var(--hdr) + 52px); }
}

/* your wallet (the header's wallet button) */
.wd { position: fixed; z-index: 40; top: calc(var(--hdr) + 8px); right: 16px; width: min(420px, calc(100vw - 24px)); max-height: calc(100vh - var(--hdr) - 24px); overflow: auto; padding: 16px; border-radius: 16px;
  background: rgba(9, 20, 14, .97); border: 1px solid var(--line2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .18s, transform .18s var(--ease); scrollbar-width: thin; }
.wd.on { opacity: 1; transform: none; pointer-events: auto; }
.wd-h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.wd-h b { display: block; margin-top: 6px; font-size: 15px; }
.wd-h .sp, .wd-s .sp { flex: 1; }
.wd-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 12px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wd-k > div { padding: 10px 12px; background: var(--bg1); }
.wd-k b { display: block; margin-top: 7px; font-size: 15px; white-space: nowrap; }
.wd-k b small { font-size: .6em; color: var(--ink3); margin-left: 3px; }
.wd-k b.lime, .wd-r b.lime { color: var(--lime); }
.wd-wd { width: 100%; justify-content: center; margin-top: 10px; height: 38px; }
.wd-s { display: flex; align-items: center; margin: 16px 0 4px; }
.wd-s a.lbl:hover { color: var(--lime); }
.wd-r { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.wd-r:last-child { border-bottom: 0; }
.wd-r .an { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wd-r .an b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-r .an span { font: 400 10.5px/1.2 var(--mono); color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill.sm { height: 28px; padding: 0 10px; font-size: 11px; }

/* panels */
.panel { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, .006)); border: 1px solid var(--line); border-radius: var(--r2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 30px 60px -30px rgba(0, 0, 0, .6); min-width: 0; }
.ph { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.ph h3 { margin: 0; font: 600 13px/1 var(--sans); letter-spacing: .01em; }
.ph .n { font: 500 11px/1 var(--mono); color: var(--ink3); }
.ph .sp { flex: 1; }
.rows { overflow: auto; scrollbar-width: thin; scrollbar-color: var(--bg4) transparent; }
.row { display: grid; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; min-height: 40px; }
.row:last-child { border-bottom: 0; }
.row.new { animation: wash 2.4s var(--ease); }
@keyframes wash { 0% { background: var(--lime2); } 100% { background: transparent; } }
.row .w { font: 500 12px/1 var(--mono); color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .amt { font: 600 12.5px/1 var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.row .t { font: 400 11px/1 var(--mono); color: var(--ink4); text-align: right; white-space: nowrap; }
.tx { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line2); color: var(--ink3); transition: all .15s; }
.tx:hover { color: var(--lime); border-color: var(--lime3); background: var(--lime2); }
.tx svg { width: 12px; height: 12px; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font: 600 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .05); color: var(--ink2); white-space: nowrap; }
.tag.lime { background: var(--lime2); color: var(--lime); }
.tag.gold { background: var(--gold2); color: var(--gold); }
.tag.red { background: var(--red2); color: var(--red); }
.tag.sky { background: rgba(127, 227, 255, .12); color: var(--sky); }
.empty { padding: 26px 18px; color: var(--ink3); font-size: 12.5px; line-height: 1.6; }
.empty b { color: var(--ink2); font-weight: 500; }
.empty::after { content: ''; display: block; height: 150px; margin-top: 18px; opacity: .55;
  background: linear-gradient(90deg, transparent, rgba(214, 255, 190, .05) 50%, transparent) 0 0 / 200% 100%, repeating-linear-gradient(180deg, rgba(214, 255, 190, .045) 0 26px, transparent 26px 40px);
  -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); animation: skel 2.6s linear infinite; }
@keyframes skel { to { background-position: -200% 0, 0 0; } }
.grid .empty::after, .mk-grid .empty::after { display: none; }
.flash-up { animation: fup .9s var(--ease); }
@keyframes fup { 0% { color: var(--lime); text-shadow: 0 0 18px rgba(184, 255, 58, .6); } 100% { } }
.reveal { opacity: 0; transform: translateY(10px); animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 50; padding: 12px 18px; border-radius: 12px; background: #0f2118f2; border: 1px solid var(--line2); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); font-size: 13px; transition: all .3s var(--ease); pointer-events: none; max-width: min(560px, 92vw); }
.toast.on { opacity: 1; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hdr { padding: 0 14px; gap: 10px; }
  .nav { display: none; }
  .brand .tk, .brand .word { display: none; }
  .hdr .x-pill span, .hdr .ca-pill span { display: none; }
  .hdr .pill:not(.lime):not(.ca-pill):not(.x-pill) { display: none; }
  .hdr .pill { padding: 0 11px; }
}
