/* ======================================================================
   PadQuiver — dark fintech design system
   ====================================================================== */

/* Guard the HTML `hidden` attribute against classes that set display */
[hidden] { display: none !important; }

:root {
  /* surfaces */
  --bg: #070a09;
  --bg-2: #0a0f0c;
  --surface: #0e1411;
  --surface-2: #131b16;
  --surface-3: #18211b;
  --hover: rgba(255, 255, 255, 0.04);

  /* borders */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-focus: rgba(77, 255, 171, 0.55);

  /* text */
  --text: #e9f2ec;
  --text-2: #aab6af;
  --muted: #7c8a82;

  /* brand — PadQuiver lime */
  --green: #C9F800;
  --green-2: #DBFF3D;
  --green-deep: #A6CC00;
  --green-soft: rgba(201, 248, 0, 0.12);
  --green-soft-2: rgba(201, 248, 0, 0.22);
  --green-ring: rgba(201, 248, 0, 0.35);

  /* status */
  --amber: #ffb547;
  --amber-soft: rgba(255, 181, 71, 0.13);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, 0.12);
  --blue: #56b6ff;

  /* shape */
  --r-sm: 9px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 70px -20px rgba(0, 0, 0, 0.85);
  --glow: 0 0 0 1px var(--green-ring), 0 12px 44px -14px rgba(201, 248, 0, 0.5);

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

  --maxw: 1180px;
}

:root { color-scheme: dark; }              /* base is explicit; app.js syncs the meta */

/* ===== Light theme — redefine tokens so the whole site flips.
   --green stays LIME for FILLS (dark glyphs already sit on it); --green-2 / --green-deep
   darken to a WCAG-safe olive for every place green is used as TEXT / BORDER / ICON. ===== */
:root[data-theme="light"] {
  color-scheme: light;

  /* surfaces — warm near-white with a faint brand-green cast, not clinical gray */
  --bg:        #eef2e6;
  --bg-2:      #e4ead9;   /* recessed wells: inputs, .panel, .stat, .form-status, result addr */
  --surface:   #ffffff;   /* raised plane: cards, nav pill, chips, drawer/modal, empty state */
  --surface-2: #f3f7ec;   /* card-top sheen, secondary .btn, .icon-btn, hovers, chips */
  --surface-3: #ffffff;   /* most-elevated: toasts, payout:hover */
  --hover:     rgba(16, 26, 10, 0.05);

  /* borders — dark-on-light instead of white-on-dark */
  --line:       rgba(16, 26, 10, 0.12);
  --line-2:     rgba(16, 26, 10, 0.18);
  --line-focus: rgba(111, 146, 0, 0.65);

  /* text */
  --text:   #16211b;
  --text-2: #4c5a52;
  --muted:  #6b776b;

  /* brand: lime FILL stays vivid; green TEXT/BORDER darkens to olive ink */
  --green:      #C9F800;
  --green-2:    #4f6b00;
  --green-deep: #3c5200;
  --green-soft:   rgba(140, 180, 0, 0.16);
  --green-soft-2: rgba(140, 180, 0, 0.26);
  --green-ring:   rgba(120, 160, 0, 0.42);

  /* status — darkened for contrast on light */
  --amber: #a9701a;  --amber-soft: rgba(184, 121, 26, 0.14);
  --red:   #cf3b3b;  --red-soft:   rgba(207, 59, 59, 0.10);
  --blue:  #2374c4;

  /* elevation — soft grey-green shadows instead of pure black */
  --shadow:    0 10px 40px -14px rgba(30, 45, 15, 0.20);
  --shadow-lg: 0 24px 70px -24px rgba(30, 45, 15, 0.28);
  --glow: 0 0 0 1px var(--green-ring), 0 12px 44px -16px rgba(140, 180, 0, 0.42);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 820px at 50% 118%, transparent 55%, rgba(0, 0, 0, 0.5) 100%),
    radial-gradient(900px 500px at 82% -8%, rgba(201, 248, 0, 0.10), transparent 60%),
    radial-gradient(700px 460px at 8% 4%, rgba(45, 130, 90, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.86em; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.ok { color: var(--green-2); }
.grad-text {
  background:
    linear-gradient(115deg, transparent 20%, rgba(255,255,255,.85) 40%, transparent 60%),
    linear-gradient(96deg, var(--green-2), var(--green-deep), var(--green-2), var(--green));
  background-size: 220% auto, 260% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradFlow 7s ease-in-out infinite;
}
@keyframes gradFlow {
  0%   { background-position: -60% center, 0% center; }
  46%  { background-position: -60% center, 100% center; }
  60%  { background-position: 150% center, 100% center; }
  61%  { background-position: -60% center, 100% center; }
  100% { background-position: -60% center, 0% center; }
}
@media (prefers-reduced-motion: reduce) { .grad-text { animation: none; } }

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico { flex: 0 0 auto; }

/* ========================= TOPBAR ========================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px clamp(14px, 4vw, 26px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { display: block; width: 32px; height: 32px; border-radius: 8px; object-fit: cover; box-shadow: 0 2px 10px rgba(201, 248, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand__accent { color: var(--green-2); }

.nav { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 999px; position: relative; }
.nav__item {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent; color: var(--text-2);
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  transition: color .18s, background .18s;
}
.nav__item:hover { color: var(--text); }
.nav__item.is-active { background: var(--green); color: #0a0f00; }
.nav__item .ico { stroke-width: 1.9; }

.topbar__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ========================= BUTTONS ========================= */
.btn {
  --bg-btn: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 14px; line-height: 1;
  padding: 11px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--bg-btn); color: var(--text);
  cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .18s, border-color .18s, box-shadow .18s, opacity .18s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-focus); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--green-ring); }

.btn--primary {
  background: linear-gradient(180deg, var(--green-2), var(--green));
  color: #0a0f00; border-color: transparent; font-weight: 750;
  box-shadow: 0 8px 26px -10px rgba(201, 248, 0, 0.65);
}
.btn--primary:hover { box-shadow: 0 12px 34px -10px rgba(201, 248, 0, 0.8); border-color: transparent; }
.btn--ghost { background: var(--surface); }
/* Connect Wallet is a prominent lime CTA when disconnected; a subtle address chip once connected. */
.btn--wallet { background: linear-gradient(180deg, var(--green-2), var(--green)); color: #0a0f00; border-color: transparent; font-weight: 750;
  box-shadow: 0 8px 26px -10px rgba(201, 248, 0, 0.6); }
.btn--wallet:hover { box-shadow: 0 12px 34px -10px rgba(201, 248, 0, 0.8); border-color: transparent; }
.btn--wallet.is-connected { background: var(--green-soft); border-color: var(--green-ring); color: var(--green-2); box-shadow: none; font-weight: 650; }
.btn--lg { padding: 14px 22px; font-size: 15px; border-radius: var(--r); }
.btn--sm { padding: 8px 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn.is-busy { pointer-events: none; }
.btn.is-busy .btn__label { visibility: hidden; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 17px; height: 17px;
  border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.btn { position: relative; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.icon-btn:hover { color: var(--green-2); border-color: var(--green-ring); }

/* ========================= CHIPS ========================= */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-weight: 600; font-size: 13px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: border-color .18s, color .18s;
}
.chip--net.is-ok { color: var(--green-2); border-color: var(--green-ring); }
.chip--net.is-wrong { color: var(--amber); border-color: rgba(255, 181, 71, 0.4); background: var(--amber-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px transparent; }
.chip--net.is-ok .dot { background: var(--green); box-shadow: 0 0 10px 1px var(--green); }
.chip--net.is-wrong .dot { background: var(--amber); box-shadow: 0 0 10px 1px var(--amber); }

/* ========================= LAYOUT ========================= */
.main { max-width: var(--maxw); margin: 0 auto; padding: clamp(18px, 3vw, 34px) clamp(14px, 4vw, 26px) 60px; }
.view[hidden] { display: none; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 40px 2px 18px; }
.section-title { font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.section-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ========================= BANNER ========================= */
.banner {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-radius: var(--r); margin-bottom: 22px;
  border: 1px solid var(--line);
}
.banner--warn { background: var(--amber-soft); border-color: rgba(255, 181, 71, 0.35); color: #ffdca8; }
.banner--warn .ico { color: var(--amber); }
.banner__body { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.banner__body strong { color: #ffe6c2; }
.banner code { background: rgba(0, 0, 0, 0.3); padding: 1px 6px; border-radius: 5px; }

/* "new domain" announcement bar */
.movebar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; margin-bottom: 20px; border-radius: var(--r-lg);
  background: linear-gradient(96deg, var(--green-soft-2), var(--green-soft));
  border: 1px solid var(--green-ring);
}
.movebar__mark { border-radius: 6px; flex: 0 0 auto; }
.movebar__txt { flex: 1; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.movebar__txt b { color: var(--green-2); font-weight: 750; }
.movebar__x { flex: 0 0 auto; background: transparent; border: 0; color: var(--text-2); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; transition: color .15s; }
.movebar__x:hover { color: var(--text); }
@media (max-width: 520px) { .movebar__txt { font-size: 12.5px; } }

/* ========================= HERO ========================= */
.masthead {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-bottom: 20px; box-shadow: 0 10px 44px rgba(201, 248, 0, .07);
}

.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 70%);
  padding: clamp(26px, 5vw, 52px);
  box-shadow: var(--shadow);
}
.hero__glow {
  position: absolute; width: 520px; height: 520px; right: -140px; top: -220px;
  background: radial-gradient(circle, rgba(201, 248, 0, 0.22), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.hero__content { position: relative; max-width: 720px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--green-2);
  background: var(--green-soft); border: 1px solid var(--green-ring);
  padding: 6px 12px; border-radius: 999px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: pulse 2s infinite; }
.hero__title { font-size: clamp(28px, 5.5vw, 50px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 850; margin: 18px 0 14px; }
.hero__sub { font-size: clamp(15px, 2vw, 18px); color: var(--text-2); max-width: 600px; margin: 0 0 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prop { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.015); }
.prop__ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--green-soft); color: var(--green-2); flex: 0 0 auto; }
.prop b { display: block; font-size: 14.5px; }
.prop small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }

/* ========================= GRID / CARDS ========================= */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.tcard {
  position: relative; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .16s ease, border-color .18s, box-shadow .18s;
  font: inherit; color: inherit;
}
.tcard:hover { transform: translateY(-3px); border-color: var(--green-ring); box-shadow: var(--glow); }
.tcard:focus-visible { outline: none; border-color: var(--green-ring); box-shadow: 0 0 0 3px var(--green-ring); }
.tcard__top { display: flex; align-items: center; gap: 12px; }
.tcard__logo {
  width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  color: #0a0f00; background: linear-gradient(150deg, var(--green-2), var(--green-deep));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.tcard__id { min-width: 0; }
.tcard__name { font-weight: 750; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard__sym { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.tcard__reward {
  margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 650; color: var(--green-2);
  background: var(--green-soft); border: 1px solid var(--green-ring);
  padding: 5px 9px; border-radius: 999px;
}
.tcard__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 13px; }
.tcard__meta div { min-width: 0; }
.tcard__meta dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.tcard__meta dd { margin: 2px 0 0; font-size: 13px; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard__go { position: absolute; top: 16px; right: 16px; color: var(--muted); opacity: 0; transition: opacity .18s; }
.tcard:hover .tcard__go { opacity: 1; color: var(--green-2); }

/* skeleton */
.skel-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 18px; }
.skel { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%); background-size: 220% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
.skel-row { display: flex; align-items: center; gap: 12px; }
.skel-logo { width: 46px; height: 46px; border-radius: 13px; }
.skel-line { height: 12px; }

/* empty / error */
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
.empty__art { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-2); }
.empty h3 { margin: 0 0 6px; font-size: 19px; }
.empty p { margin: 0 0 20px; color: var(--muted); }

.error-box { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: var(--red-soft); border: 1px solid rgba(255, 107, 107, 0.3); }
.error-box .ico { color: var(--red); flex: 0 0 auto; }
.error-box strong { display: block; }
.error-box span { color: var(--text-2); font-size: 13px; word-break: break-word; }
.error-box .btn { margin-left: auto; flex: 0 0 auto; }

/* ========================= CREATE ========================= */
.create-layout { display: grid; grid-template-columns: 1fr minmax(280px, 340px); gap: 20px; align-items: start; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.form-card { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 20px; }
.card__head { display: flex; flex-direction: column; gap: 4px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13.5px; font-weight: 650; color: var(--text); display: flex; align-items: center; gap: 8px; }
.field__hint { color: var(--muted); font-size: 12px; }
.tag-info { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring); padding: 2px 7px; border-radius: 6px; }

input[type="text"], .prof-input {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 12px 14px; transition: border-color .16s, box-shadow .16s, background .16s;
}
input::placeholder, .prof-input::placeholder { color: #5c6a62; }
input[type="text"]:focus, .prof-input:focus { outline: none; border-color: var(--line-focus); box-shadow: 0 0 0 3px var(--green-ring); background: var(--surface); }
input.is-invalid { border-color: rgba(255, 107, 107, 0.6); box-shadow: 0 0 0 3px var(--red-soft); }

.input-suffix { position: relative; }
.input-suffix input { padding-right: 92px; }
.input-suffix__tag { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring); padding: 4px 9px; border-radius: 7px; pointer-events: none; }

.segmented { display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 4px; }
.segmented__opt { flex: 1; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--text-2); background: transparent; border: 0; border-radius: 7px; padding: 9px 6px; cursor: pointer; transition: background .16s, color .16s; }
.segmented__opt:hover { color: var(--text); }
.segmented__opt.is-active { background: var(--green-soft); color: var(--green-2); box-shadow: inset 0 0 0 1px var(--green-ring); }
.segmented__opt.is-soon { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.segmented__opt:disabled { opacity: .5; cursor: not-allowed; }
.segmented__opt:disabled:hover { color: var(--text-2); }

/* Custom reward token live validation feedback */
.reward-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 9px 11px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); }
.reward-check.is-pending { border-color: rgba(86, 182, 255, 0.4); background: rgba(86, 182, 255, 0.08); color: #b9e0ff; }
.reward-check.is-ok { border-color: var(--green-ring); background: var(--green-soft); color: #cdeedb; }
.reward-check.is-error { border-color: rgba(255, 107, 107, 0.4); background: var(--red-soft); color: #ffc9c9; }
.reward-check__ic { flex: 0 0 auto; font-weight: 800; display: inline-flex; }
.reward-check span:last-child { word-break: break-word; }
.reward-check .spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: 0 0 auto; }

/* "Soon" badge */
.soon-tag {
  font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
  color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(255, 181, 71, 0.35);
  padding: 2px 5px; border-radius: 5px; white-space: nowrap; flex: 0 0 auto;
}

/* Tokenized stocks — display-only "soon" cards */
.stock-soon-wrap { margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.stock-soon-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stock-soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.stock-card {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg-2);
  opacity: .72; cursor: not-allowed; user-select: none;
}
/* Phones: single, full-width column so long names never clip */
@media (max-width: 560px) { .stock-soon { grid-template-columns: 1fr; } }
.stock-card__id { display: flex; flex-direction: column; min-width: 0; }
.stock-card__id b { font-size: 13px; font-weight: 750; }
.stock-card__id span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-card .soon-tag { margin-left: auto; }

/* Live (selectable) tokenized-stock reward chips */
.stock-card.is-live {
  opacity: 1; cursor: pointer; font: inherit; color: var(--text); text-align: left;
  border-color: var(--line-2); transition: border-color .16s, background .16s, box-shadow .16s;
}
.stock-card.is-live:hover { border-color: var(--green-ring); background: var(--bg-3, var(--bg-2)); }
.stock-card.is-live:focus-visible { outline: 2px solid var(--green-ring); outline-offset: 2px; }
.stock-card.is-live.is-active { background: var(--green-soft); border-color: var(--green-ring); box-shadow: inset 0 0 0 1px var(--green-ring); }
.stock-card__meta { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.stock-card__px { font-size: 11.5px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.stock-card.is-active .stock-card__px { color: var(--green-2); }
.stock-card__vf { display: inline-flex; color: var(--green-2); font-weight: 800; font-size: 11px; }
.stock-card.is-soon { opacity: .6; }

/* Collapsible tokenized-stock picker */
.stock-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font: inherit; font-weight: 600; color: var(--text); text-align: left;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 11px 13px; cursor: pointer; transition: border-color .16s, background .16s;
}
.stock-toggle:hover { border-color: var(--green-ring); }
.stock-toggle:focus-visible { outline: 2px solid var(--green-ring); outline-offset: 2px; }
.stock-toggle #stock-toggle-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-toggle__chev { transition: transform .18s; color: var(--muted); flex: 0 0 auto; font-size: 12px; }
.stock-toggle.is-open .stock-toggle__chev { transform: rotate(180deg); }
.stock-panel { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }

/* "Verified" pill (stock section header) */
.verified-pill {
  font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
  color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring);
  padding: 2px 6px; border-radius: 5px; white-space: nowrap;
}

.fee-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fee-opt {
  cursor: pointer; text-align: left; font: inherit; color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2);
  padding: 12px; display: flex; flex-direction: column; gap: 3px; transition: border-color .16s, background .16s, box-shadow .16s;
}
.fee-opt:hover { border-color: var(--line-focus); }
.fee-opt.is-active { border-color: var(--green-ring); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-ring); }
.fee-opt__pct { font-weight: 800; font-size: 17px; }
.fee-opt.is-active .fee-opt__pct { color: var(--green-2); }
.fee-opt__note { font-size: 11px; color: var(--muted); }

.reward-tiers { display: grid; grid-template-columns: 1fr; gap: 10px; }
.reward-opt {
  cursor: pointer; text-align: left; font: inherit; color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; transition: border-color .16s, background .16s, box-shadow .16s;
}
.reward-opt:hover { border-color: var(--line-focus); }
.reward-opt.is-active { border-color: var(--green-ring); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-ring); }
.reward-opt__title { font-weight: 750; font-size: 14.5px; }
.reward-opt.is-active .reward-opt__title { color: var(--green-2); }
.reward-opt__note { font-size: 11.5px; color: var(--muted); }

.note { display: flex; gap: 11px; padding: 14px; border-radius: var(--r); background: var(--green-soft); border: 1px solid var(--green-ring); }
.note .ico { color: var(--green-2); flex: 0 0 auto; margin-top: 1px; }
.note p { margin: 0; font-size: 13px; color: #cdeedb; }
.note code { background: rgba(0, 0, 0, 0.3); padding: 1px 5px; border-radius: 5px; }

.form-status { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-2); }
.form-status[hidden] { display: none; }
.form-status.is-pending { border-color: rgba(86, 182, 255, 0.4); background: rgba(86, 182, 255, 0.08); color: #b9e0ff; }
.form-status.is-error { border-color: rgba(255, 107, 107, 0.4); background: var(--red-soft); color: #ffc9c9; }
.form-status.is-ok { border-color: var(--green-ring); background: var(--green-soft); color: #cdeedb; }
.form-status .spin { width: 15px; height: 15px; border-radius: 50%; border: 2.3px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: 0 0 auto; }

.fee-line { text-align: center; font-size: 12px; color: var(--muted); margin: -6px 0 0; }

/* summary */
/* ===== Live Summary sidebar — vibrant, sticky launch preview ===== */
.summary-card { padding: 20px; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px;
  border-color: var(--green-ring); box-shadow: var(--shadow), inset 0 0 40px -20px var(--green-soft-2); overflow: hidden; }
.summary-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--green-2), transparent); }
.summary__title { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--green-2); }
.summary__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: dotPulse 2s ease-in-out infinite; flex: 0 0 auto; }
.summary__token { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.summary__logo { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #0a0f00; background: linear-gradient(150deg, var(--green-2), var(--green-deep)); box-shadow: 0 8px 22px -8px var(--green-ring); flex: 0 0 auto; }
.summary__token b { font-size: 16px; display: block; }

.summary__list { margin: 0; display: flex; flex-direction: column; gap: 0; }
.summary__list > div { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary__list > div:last-child { border-bottom: 0; }
.summary__list dt { color: var(--muted); font-size: 13px; }
.summary__list dd { margin: 0; font-weight: 700; font-size: 13.5px; }
.summary__list dd.ok { color: var(--green-2); }

/* benefit lines — a lime accent bar instead of an emoji */
.summary-card .why { display: flex; flex-direction: column; padding-top: 6px; border-top: 1px solid var(--line); }
.summary-card .why__i { position: relative; padding: 9px 0 9px 13px; border-bottom: 1px solid var(--line); }
.summary-card .why__i::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: linear-gradient(var(--green), var(--green-deep)); }
.summary-card .why__i:last-child { border-bottom: 0; }
.summary-card .why__i b { display: block; font-size: 13px; }
.summary-card .why__i small { color: var(--muted); font-size: 12px; }
.summary-card .why__i small a { color: var(--green-2); text-decoration: none; border-bottom: 1px dotted var(--green-ring); }
.summary-card .why__i small a:hover { border-bottom-style: solid; }

/* clickable live stats — glowing proof card */
.summary-card .cstats { display: flex; text-decoration: none; border-radius: var(--r); overflow: hidden; background: var(--green-soft); border: 1px solid var(--green-ring); transition: transform .15s, box-shadow .15s; }
.summary-card .cstats:hover { transform: translateY(-1px); box-shadow: var(--glow); }
.summary-card .cstat { flex: 1; text-align: center; padding: 13px 8px; }
.summary-card .cstat + .cstat { border-left: 1px solid var(--green-ring); }
.summary-card .cstat b { display: block; font-size: 20px; font-weight: 800; color: var(--green-2); text-shadow: 0 0 14px var(--green-ring); }
.summary-card .cstat span { font-size: 11px; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .summary__title::before { animation: none; } }

/* result */
.result-card { margin-top: 22px; padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; border-color: var(--green-ring); box-shadow: var(--glow); }
.result__badge { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #0a0f00; background: linear-gradient(150deg, var(--green-2), var(--green)); margin-bottom: 6px; }
.result-card h3 { margin: 0; font-size: 22px; }
.result__addr { display: flex; align-items: center; gap: 8px; margin: 14px 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); max-width: 100%; }
.result__addr code { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ========================= DRAWER (detail) ========================= */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(2, 5, 4, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s ease; }
.drawer-backdrop[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(520px, 100%);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-left: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  animation: slideIn .28s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
}
.drawer[hidden] { display: none; }
.drawer__scroll { overflow-y: auto; padding: 22px clamp(18px, 3vw, 26px) 30px; }

/* full-page token detail — terminal-style dashboard */
#detail-content { max-width: 100%; margin: 0; }
/* on wide screens the token page breaks out past the site's 1180px column for a spread-out terminal feel
   (margin-based, no transform, so it never fights the view's enter animation) */
@media (min-width: 1240px) {
  #view-token { width: min(1500px, calc(100vw - 40px)); margin-left: calc((100% - min(1500px, calc(100vw - 40px))) / 2); }
}
.dp {
  display: grid; gap: 16px; align-items: start;
  grid-template-columns: minmax(0, 1.75fr) minmax(330px, 1fr);
  grid-template-areas: "head head" "chart side" "feed side";
}
.dp-header { grid-area: head; }
.dp-chart { grid-area: chart; min-width: 0; }
.dp-side { grid-area: side; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dp-feed { grid-area: feed; min-width: 0; }
/* Mobile section switcher (Chart / Trade / Activity) — hidden on desktop where all three show at once */
.dp-mtabs { display: none; gap: 4px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.dp-mtab { flex: 1; min-height: 42px; padding: 10px 8px; border: 0; background: none; color: var(--text-2); font: inherit; font-weight: 700; font-size: 13.5px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.dp-mtab.is-active { background: var(--green); color: #0a0f00; }
/* DexScreener-style hover card on a holder's buy/sell marker */
.chart-tip { position: absolute; z-index: 6; pointer-events: none; min-width: 148px; max-width: 240px; background: rgba(14,20,17,0.97); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; box-shadow: 0 12px 34px -12px rgba(0,0,0,.8); font-size: 12px; }
.chart-tip .ct-head { font-family: var(--mono); font-size: 11px; color: var(--text-2); margin-bottom: 6px; }
.chart-tip .ct-row { display: flex; align-items: center; gap: 6px; margin: 3px 0; white-space: nowrap; }
.chart-tip .ct-row b { font-weight: 800; font-variant-numeric: tabular-nums; }
.chart-tip .ct-row i { margin-left: auto; font-style: normal; font-variant-numeric: tabular-nums; color: var(--text); }
.chart-tip .ct-row em { font-style: normal; color: var(--text-2); font-size: 10.5px; }
.chart-tip .ct-ico { font-size: 10px; }
.chart-tip .ct-buy { color: #26c281; } .chart-tip .ct-buy i { color: #26c281; }
.chart-tip .ct-sell { color: #ff5b6e; } .chart-tip .ct-sell i { color: #ff5b6e; }
.chart-tip .ct-time { margin-top: 6px; font-size: 10.5px; color: var(--text-2); }
.dp .panel, .dp .stat-grid { margin: 0; }
.dp-chart .chart-body { height: 360px; }
.dp-feed .tx-list { max-height: 560px; }
.dp .trade-panel { position: sticky; top: 76px; }
@media (max-width: 980px) {
  /* feed (transactions/holders) right under the chart so it's reachable without scrolling past the whole side column */
  .dp { grid-template-columns: 1fr; grid-template-areas: "head" "mtabs" "chart" "feed" "side"; gap: 14px; }
  .dp-chart .chart-body { height: 232px; }
  .dp-feed .tx-list { max-height: 62vh; }
  .dp .trade-panel { position: static; }
  /* Two tabs: "Chart & Txns" keeps the transactions RIGHT UNDER the chart (always visible, DexScreener-style);
     "Trade & Info" holds the buy/sell panel + rewards/liquidity so it doesn't pad the page with a long column. */
  .dp-mtabs { display: flex; grid-area: mtabs; }
  .dp[data-mtab="chart"] .dp-side { display: none; }
  .dp[data-mtab="trade"] .dp-chart, .dp[data-mtab="trade"] .dp-feed { display: none; }
}
.detail-back {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-weight: 650; font-size: 13.5px;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; margin: 2px 0 18px;
  transition: color .15s, border-color .15s, transform .15s;
}
.detail-back:hover { color: var(--text); border-color: var(--green-ring); transform: translateX(-3px); }
.detail-back svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.dh { display: flex; align-items: flex-start; gap: 14px; }
.dh__logo { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 21px; color: #0a0f00; background: linear-gradient(150deg, var(--green-2), var(--green-deep)); flex: 0 0 auto; }
.dh__id { flex: 1; min-width: 0; }
.dh__name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.dh__sym { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.dh__close { margin-left: auto; }
.dh__addr { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; }
.dh__addr a { color: var(--green-2); }

.reward-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring); padding: 6px 11px; border-radius: 999px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.stat { padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); }
.stat--accent { border-color: var(--green-ring); background: var(--green-soft); }
.stat__label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.stat--accent .stat__label { color: var(--green-2); }
.stat__val { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-top: 6px; word-break: break-word; }
.stat__val small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.stat__sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.stat__val .link { color: var(--green-2); cursor: pointer; font-size: 13px; font-weight: 600; }

.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); padding: 16px; margin-bottom: 14px; }
.panel__title { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 12px; }

.trade-tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; margin-bottom: 14px; }
.trade-tab { flex: 1; font: inherit; font-weight: 700; font-size: 14px; color: var(--text-2); background: transparent; border: 0; border-radius: 7px; padding: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .16s, color .16s; }
.trade-tab.is-active[data-side="buy"] { background: var(--green-soft); color: var(--green-2); }
.trade-tab.is-active[data-side="sell"] { background: var(--red-soft); color: var(--red); }

.amount { position: relative; margin-bottom: 12px; }
.amount input { padding-right: 108px; font-size: 17px; font-family: var(--mono); }
.amount__right { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; }
.amount__unit { font-size: 13px; font-weight: 700; color: var(--text-2); }
.amount__max { font-size: 11px; font-weight: 700; color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring); border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.amount__bal { font-size: 12px; color: var(--muted); margin: -4px 2px 12px; display: flex; justify-content: space-between; }
.pct-row { display: flex; gap: 8px; margin: 0 0 12px; }
.pct-btn { flex: 1; padding: 8px 0; font-size: 13px; font-weight: 700; color: var(--text-2); background: var(--surface-2, rgba(255, 255, 255, 0.04)); border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 8px; cursor: pointer; transition: 0.15s ease; }
.pct-btn:hover { color: var(--green-2); background: var(--green-soft); border-color: var(--green-ring); }
.pct-btn:active { transform: translateY(1px); }
.trade-est { font-size: 13px; color: var(--muted); margin: 2px 2px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.trade-est b { color: var(--text); font-family: var(--mono); font-weight: 700; }
.trade-est__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trade-est__min { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 12px; }
.trade-est__min b { color: var(--green-2); }

/* adjustable slippage */
.slip-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 2px 4px; flex-wrap: wrap; }
.slip-label { font-size: 12px; color: var(--text-2); }
.slip-opts { display: flex; gap: 6px; align-items: center; }
.slip-opt { font: inherit; font-size: 12px; font-weight: 700; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; cursor: pointer; transition: .15s; }
.slip-opt:hover { color: var(--text); }
.slip-opt.is-active { background: var(--green); color: #0a0f00; border-color: transparent; }
.slip-custom { width: 54px; font: inherit; font-size: 12px; text-align: center; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 5px 6px; }
.slip-custom.is-active { border-color: var(--green-ring); color: var(--green-2); }
.slip-custom:focus { outline: none; border-color: var(--line-focus); box-shadow: 0 0 0 3px var(--green-ring); }

/* creator/deployer line on the token page */
.dh-creator { margin-top: 8px; font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.dh-creator svg { color: var(--muted); width: 14px; height: 14px; }
.dh-creator a { color: var(--green-2); text-decoration: none; font-family: var(--mono); }
.dh-creator a:hover { text-decoration: underline; }
.chart-panel { padding: 14px 14px 8px; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; gap: 8px; flex-wrap: wrap; }
.chart-price { font-size: 20px; font-weight: 800; font-family: var(--mono); color: var(--text); transition: color .15s; }
.chart-price.flash-up { animation: flashUp .7s ease-out; }
.chart-price.flash-dn { animation: flashDn .7s ease-out; }
@keyframes flashUp { 0%, 12% { color: #26c281; } 100% { color: var(--text); } }
@keyframes flashDn { 0%, 12% { color: #ff5b6e; } 100% { color: var(--text); } }
.chart-sub { font-size: 12px; color: var(--muted); }
/* touch-action:pan-y lets a VERTICAL one-finger swipe scroll the PAGE (no scroll-trap on the token page),
   while horizontal drags + two-finger pinch stay with our pointer handlers for chart pan/zoom. */
.chart-body { height: 232px; position: relative; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: contain; cursor: crosshair; }
.chart-body .spark, .chart-body .candles { width: 100%; height: 100%; display: block; }
/* lightweight-charts fills the body; OHLC legend floats top-left (DexScreener style) */
.chart-body table { width: auto; }
.chart-legend { position: absolute; top: 7px; left: 10px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-family: var(--mono); font-size: 11px; line-height: 1.3; color: var(--muted); pointer-events: none; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.chart-legend span { opacity: .6; }
.chart-legend b { color: var(--text-2); font-weight: 700; }
.chart-legend b.is-up { color: #26c281; }
.chart-legend b.is-dn { color: #ff5b6e; }
.chart-legend .lg-t { opacity: 1; color: var(--text); font-weight: 700; margin-right: 3px; }   /* candle date/time */
.chart-legend b.lg-v { color: #7cc6ff; }                                                        /* volume */

/* "Next reward drop" migration bar — LP fees batch toward the harvest threshold, filling live */
.migrate { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, rgba(201,248,0,.06), rgba(201,248,0,.01)); }
.migrate__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.migrate__lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.migrate__lbl svg { width: 14px; height: 14px; }
.migrate__val { font-size: 14px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.migrate__val i { color: var(--text-2); font-style: normal; font-weight: 700; }
.migrate__bar { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.migrate__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #8fb400, var(--green)); transition: width .6s cubic-bezier(.2,.7,.3,1); box-shadow: 0 0 12px -2px var(--green); }
.migrate__fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: migShine 2.2s linear infinite; }
.migrate__bar.is-ready .migrate__fill { animation: migPulse 1.1s ease-in-out infinite; }
.migrate__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.migrate__note { flex: 1 1 220px; font-size: 11.5px; color: var(--text-2); line-height: 1.45; }
.migrate__total { flex: 0 0 auto; text-align: right; white-space: nowrap; font-size: 11.5px; }
.migrate__total b { display: block; color: var(--green); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.migrate__total i { color: var(--text-2); font-style: normal; text-transform: uppercase; letter-spacing: .03em; font-size: 10px; }
@keyframes migShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes migPulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .migrate__fill::after, .migrate__bar.is-ready .migrate__fill { animation: none; } }
.chart-skel { height: 150px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }

/* professional candlestick + volume chart */
.candles .cg { stroke: rgba(255, 255, 255, 0.045); stroke-width: 1; vector-effect: non-scaling-stroke; }
.candles .cpline { stroke: var(--green-ring); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.candles .cw { stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.candles .cw.cu { stroke: #46d17a; } .candles .cbd.cu { fill: #46d17a; }
.candles .cw.cd { stroke: #ff5b6e; } .candles .cbd.cd { fill: #ff5b6e; }
.candles .cvb.cu { fill: rgba(70, 209, 122, 0.28); }
.candles .cvb.cd { fill: rgba(255, 91, 110, 0.28); }
.candles .mk-live { fill: #eef4ea; stroke: #070a09; stroke-width: 1.5; animation: mkLive 1.5s ease-in-out infinite; }
@keyframes mkLive { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .candles .mk-live { animation: none; } }
/* filtered holder's trade markers — ▲ buy (green) / ▼ sell (red), outlined so they read over candles */
.candles .mk-buy { fill: #46d17a; stroke: #06100b; stroke-width: 1.5; paint-order: stroke; vector-effect: non-scaling-stroke; }
.candles .mk-sell { fill: #ff5b6e; stroke: #180608; stroke-width: 1.5; paint-order: stroke; vector-effect: non-scaling-stroke; }

/* smooth candle entrance (only newly-appended candles carry .cin) */
.chart-canvas { position: absolute; inset: 0; }
.candles .cin { animation: cIn .34s cubic-bezier(.22, .61, .36, 1) both; transform-box: fill-box; transform-origin: center bottom; }
@keyframes cIn { from { opacity: 0; transform: translateY(6px) scaleY(.55); } to { opacity: 1; transform: none; } }

/* DexScreener-style crosshair + OHLC tooltip (HTML overlay over the stretched SVG) */
.cx { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .12s ease; z-index: 4; }
.cx.on { opacity: 1; }
.cx-v { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: rgba(255, 255, 255, .30); will-change: transform; transition: transform .06s linear; }
.cx-h { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .16); will-change: transform; }
.cx-ptag { position: absolute; right: 0; top: 0; padding: 1px 5px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: #070a09; background: var(--green); border-radius: 3px; will-change: transform; }
.cx-tip { position: absolute; top: 0; left: 0; min-width: 132px; padding: 8px 10px; background: rgba(9, 13, 11, .94); border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); font-size: 11.5px; color: #cdd6d0; will-change: transform; transition: transform .05s linear; }
.cx-tip__t { color: #fff; font-weight: 600; margin-bottom: 5px; }
.cx-tip__g { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 2px 8px; }
.cx-tip__g span { color: #787b86; }
.cx-tip__g b { color: #eef4ea; font-weight: 600; font-variant-numeric: tabular-nums; }
.cx-tip__r { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .07); }
.cx-tip__r .is-up { color: #46d17a; } .cx-tip__r .is-dn { color: #ff5b6e; }
.cx-tip__v { color: var(--muted); }

/* chart loading shimmer */
.chart-shimmer { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 6px; padding: 24px 12px 40px; overflow: hidden; }
.chart-shimmer i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, rgba(201, 248, 0, .10), rgba(255, 255, 255, .05)); }
.chart-shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .06) 50%, transparent 80%); transform: translateX(-100%); animation: shim 1.25s ease-in-out infinite; }
@keyframes shim { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .candles .cin { animation: none; } .cx, .cx-v, .cx-tip { transition: none; } .chart-shimmer::after { animation: none; } }

.chart-head__right { display: inline-flex; align-items: center; gap: 10px; }
/* bottom time-range navigator (scrollbar) — drag/click to scrub history at any zoom */
.chart-nav { position: relative; height: 20px; margin: 8px 0 2px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); cursor: ew-resize; touch-action: none; overflow: hidden; }
.chart-nav[hidden] { display: none; }
.chart-nav__thumb { position: absolute; top: 2px; bottom: 2px; min-width: 16px; background: linear-gradient(180deg, rgba(155, 230, 0, .28), rgba(155, 230, 0, .14)); border: 1px solid var(--green-ring); border-radius: 4px; pointer-events: none; }

.iv-tabs { display: flex; gap: 4px; margin: 4px 0 8px; }
.iv-tab { font: inherit; font-size: 11.5px; font-weight: 700; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 4px 10px; cursor: pointer; transition: color .14s, background .14s, border-color .14s; }
.iv-tab:hover { color: var(--text); background: var(--surface); }
.iv-tab.is-active { color: #46d17a; background: var(--surface-2); border-color: var(--line); }
.live-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #9be600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #9be600; box-shadow: 0 0 0 0 rgba(155,230,0,.6); animation: liveDot 1.6s ease-in-out infinite; }
@keyframes liveDot { 0%,100% { box-shadow: 0 0 0 0 rgba(155,230,0,.55); opacity: 1; } 50% { box-shadow: 0 0 0 6px rgba(155,230,0,0); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.chart-change { font-size: 13px; font-weight: 800; font-family: var(--mono); }
.chart-change.is-up { color: #9be600; }
.chart-change.is-dn { color: var(--red); }

/* market stats strip under the chart */
.chart-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 8px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.mstat { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; background: var(--bg-2); }
.mstat__l { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mstat__v { font-size: 13.5px; font-weight: 750; font-family: var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.mstat__v .ms-buy { color: #9be600; }
.mstat__v .ms-sell { color: var(--red); }
.mstat__v i { color: var(--muted); font-style: normal; }

/* live transactions table */
.tx-list { display: flex; flex-direction: column; }
.tx-row { display: grid; grid-template-columns: 52px 1fr 1fr 1fr 64px 46px; align-items: center; gap: 8px; padding: 9px 8px; font-size: 12.5px; font-family: var(--mono); font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line); color: var(--text-2); text-decoration: none; transition: background .12s; }
.tx-row:last-child { border-bottom: 0; }
.tx-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.tx-row:hover { background: var(--surface); }
.tx-row--head { color: var(--muted); font-family: inherit; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; background: var(--bg-2); }
.tx-row .tx-type { font-weight: 800; font-family: inherit; }
.tx-row.is-buy .tx-type { color: #9be600; }
.tx-row.is-sell .tx-type { color: var(--red); }
.tx-row .tx-price, .tx-row .tx-amt, .tx-row .tx-val { text-align: right; }
.tx-row .tx-amt { color: var(--text); }
.tx-row .tx-wallet { color: var(--muted); text-align: right; }
.tx-row .tx-age { color: var(--muted); text-align: right; }
.tx-list { max-height: 440px; overflow-y: auto; }

/* tabs: Transactions / Traders / Holders */
.tx-tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; margin-bottom: 12px; }
.tx-tab { flex: 1; font: inherit; font-weight: 700; font-size: 12.5px; color: var(--text-2); background: transparent; border: 0; border-radius: 7px; padding: 8px 6px; cursor: pointer; transition: background .16s, color .16s; }
.tx-tab:hover { color: var(--text); }
.tx-tab.is-active { background: var(--green); color: #0a0f00; }

/* traders / holders rows reuse .tx-row with their own column templates */
.trd-row { grid-template-columns: 1fr 1fr 1fr 46px; }
.hld-row { grid-template-columns: 26px minmax(0,1.15fr) minmax(0,1fr) 52px 48px; }
.rwd-row { grid-template-columns: 26px minmax(0,1.05fr) minmax(0,0.9fr) minmax(0,0.78fr) minmax(0,0.78fr) 48px; }
.rwd-row .ms-buy { color: #26c281; } .rwd-row .ms-sell { color: var(--red); }
.hld-tag--out { color: var(--red); background: rgba(255,91,110,.12); border-color: rgba(255,91,110,.4); }
.hld-rwd { color: var(--green-2); }
.hld-held { color: var(--muted); text-align: right; }
.tx-wallet2 { color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.hld-rank { color: var(--muted); }
.hld-tag { font-style: normal; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring); padding: 1px 5px; border-radius: 5px; }
.hld-tag--dev { color: #ffcf5b; background: rgba(255, 207, 91, 0.10); border-color: rgba(255, 207, 91, 0.35); }
/* reward-locked position: gold badge + full-width proof strip with a live unlock countdown */
.hld-tag--lock { color: #ffcf5b; background: rgba(255, 207, 91, 0.14); border-color: rgba(255, 207, 91, 0.45); }
.hld-row--lock { background: rgba(255, 207, 91, 0.05); border-bottom: 0; }
.hld-lockstrip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 3px 10px 8px 30px; font-size: 11.5px; color: var(--muted); background: rgba(255, 207, 91, 0.05); border-bottom: 1px solid var(--line); }
.hld-lockstrip__t { color: #ffcf5b; font-weight: 700; }
.hld-lockstrip__cd { font-variant-numeric: tabular-nums; }
.hld-lockstrip__cd b { color: #ffcf5b; }
.hld-lockstrip__p { color: var(--green-2); text-decoration: none; white-space: nowrap; margin-left: auto; }
.hld-lockstrip__p:hover { text-decoration: underline; }
@media (max-width: 560px) { .hld-lockstrip { padding-left: 12px; gap: 2px 8px; font-size: 10.5px; } .hld-lockstrip__p { margin-left: 0; } }
/* clickable holder row -> filters the tx tab to that wallet (DexScreener style) */
.hld-row--btn { cursor: pointer; }
.hld-row--btn:hover { background: var(--surface); }
.hld-row--btn:focus-visible { outline: 2px solid var(--green-ring); outline-offset: -2px; }
.hld-ext { color: var(--muted); text-decoration: none; font-size: 11px; opacity: .55; transition: opacity .12s, color .12s; }
.hld-row--btn:hover .hld-ext { opacity: 1; color: var(--green-2); }
/* filter chip above the filtered transactions */
.tx-filter { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.tx-filter__w { font-weight: 700; color: var(--text); white-space: nowrap; flex: none; }
.tx-filter__s { display: flex; gap: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-filter__s .ms-buy { color: #9be600; }
.tx-filter__s .ms-sell { color: var(--red); }
.tx-filter__x { margin-left: auto; flex: none; cursor: pointer; background: var(--surface); color: var(--text-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; font: inherit; font-size: 11px; transition: background .12s, color .12s, border-color .12s; }
.tx-filter__x:hover { background: var(--red-soft, rgba(255,91,110,.12)); color: var(--red); border-color: var(--red); }

@media (max-width: 520px) {
  .chart-stats { grid-template-columns: repeat(2, 1fr); }
  .tx-row { grid-template-columns: 46px 1fr 1fr 40px; gap: 6px; font-size: 12px; }
  .tx-row .tx-price, .tx-row .tx-wallet { display: none; }
  .trd-row { grid-template-columns: 1fr 1fr 1fr 40px; }
  .hld-row { grid-template-columns: 20px minmax(0,1fr) minmax(0,0.9fr) 40px 38px; gap: 5px; }
  .hld-row .hld-ext { display: none; }
  /* Top Rewards: drop Bought/Sold columns on phones -> #, Earner, Rewards, Held */
  .rwd-row { grid-template-columns: 20px minmax(0,1fr) minmax(0,0.95fr) 42px; gap: 5px; }
  .rwd-row .ms-buy, .rwd-row .ms-sell, .rwd-row .hld-ext { display: none; }
  /* filter chip: two rows so nothing clips — [wallet ··· Clear] / [Bought · Sold] */
  .tx-filter { flex-wrap: wrap; gap: 6px 10px; }
  .tx-filter__w { order: 1; }
  .tx-filter__x { order: 2; }
  .tx-filter__s { order: 3; flex-basis: 100%; }
}

.dual-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.dist-all { margin-top: 12px; }
.harvest-note { display: flex; gap: 9px; font-size: 12px; color: var(--text-2); margin-top: 12px; padding: 11px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.harvest-note .ico { color: var(--green-2); flex: 0 0 auto; }
.harvest-note b { color: var(--green-2); }

.drawer .form-status { margin-top: 12px; }

.dh-skel { display: flex; flex-direction: column; gap: 16px; }

/* ========================= TOASTS ========================= */
.toasts { position: fixed; z-index: 90; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px;
  border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--surface-3); box-shadow: var(--shadow-lg); color: var(--text);
  animation: toastIn .28s cubic-bezier(.2, .8, .2, 1);
}
.toast.is-out { animation: toastOut .25s forwards; }
.toast__ic { flex: 0 0 auto; margin-top: 1px; }
.toast--pending { border-color: rgba(86, 182, 255, 0.4); } .toast--pending .toast__ic { color: var(--blue); }
.toast--ok { border-color: var(--green-ring); } .toast--ok .toast__ic { color: var(--green-2); }
.toast--error { border-color: rgba(255, 107, 107, 0.5); } .toast--error .toast__ic { color: var(--red); }
.toast__body { font-size: 13.5px; min-width: 0; }
.toast__body b { display: block; margin-bottom: 1px; }
.toast__body span { color: var(--text-2); word-break: break-word; }
.toast__body a { color: var(--green-2); }
.toast__spin { width: 16px; height: 16px; border-radius: 50%; border: 2.3px solid var(--blue); border-right-color: transparent; animation: spin .7s linear infinite; }
.toast__x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; flex: 0 0 auto; }
.toast__x:hover { color: var(--text); }

/* ========================= WALLET MODAL ========================= */
.modal-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(2, 5, 4, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s ease; }
.modal-backdrop[hidden] { display: none; }
.wallet-modal {
  position: fixed; z-index: 71; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  animation: modalIn .24s cubic-bezier(.2, .8, .2, 1);
}
.wallet-modal[hidden] { display: none; }
.wallet-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wallet-modal__head h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.wallet-modal__sub { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.wallet-modal__sub[hidden] { display: none; }
.wallet-list { display: flex; flex-direction: column; gap: 10px; }
.wallet-opt {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 13px 14px; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  font: inherit; transition: border-color .16s, background .16s, transform .12s;
}
.wallet-opt:hover { border-color: var(--green-ring); background: var(--surface-2); transform: translateY(-1px); }
.wallet-opt:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--green-ring); }
/* logo tile: white-ish rounded plate so every brand logo reads cleanly on the dark row */
.wallet-opt__tile { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.25); overflow: hidden; }
.wallet-opt__img { width: 30px; height: 30px; border-radius: 7px; object-fit: contain; display: block; }
.wallet-opt__badge { color: #fff; font-weight: 800; font-size: 18px; box-shadow: none; }
.wallet-opt__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.wallet-opt__txt b { font-size: 15px; font-weight: 700; }
.wallet-opt__txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallet-opt__go { color: var(--muted); flex: 0 0 auto; }
.wallet-opt:hover .wallet-opt__go { color: var(--green-2); }
/* trust / status badges */
.wstat { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800;
  padding: 5px 11px; border-radius: 999px; letter-spacing: .01em; white-space: nowrap; }
.wstat--on { color: #0a0f00; background: var(--green); }
.wstat--rec { color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring); }
.wdot { width: 6px; height: 6px; border-radius: 50%; background: #0a0f00; }
.wallet-modal__foot { margin: 4px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.45;
  display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; border-radius: var(--r-sm);
  background: var(--green-soft); border: 1px solid var(--green-ring); }
.wallet-modal__foot svg { flex: 0 0 auto; stroke: var(--green-2); margin-top: 1px; }
.wallet-modal__foot[hidden] { display: none; }
@keyframes modalIn { from { transform: translate(-50%, -46%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }

/* ========================= FOOTER ========================= */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 26px clamp(14px, 4vw, 26px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--text-2); }
.footer__links { display: inline-flex; align-items: center; gap: 18px; }
.footer__link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); transition: color .15s; }
.footer__link:hover { color: var(--green-2); }

/* ========================= ANIM ========================= */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,248,0,.5); } 70% { box-shadow: 0 0 0 8px rgba(201,248,0,0); } 100% { box-shadow: 0 0 0 0 rgba(201,248,0,0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(30px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastIn { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(30px); opacity: 0; } }
@keyframes riseIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.rise { animation: riseIn .4s ease both; }
/* Live value-change pulse — on a token-grid refresh only the changed number ticks (surgical, no re-render/flash) */
@keyframes pcFlash { 0% { color: var(--green-2); text-shadow: 0 0 12px var(--green-ring); } 100% { color: inherit; text-shadow: none; } }
.pc-flash { animation: pcFlash 1s ease; }
@media (prefers-reduced-motion: reduce) { .pc-flash { animation: none; } }

/* ========================= RESPONSIVE ========================= */

/* Tablet: stack the create form + live summary; ease dense grids */
@media (max-width: 900px) {
  .create-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; order: 2; }   /* form first, summary below it */
  .hero__props { grid-template-columns: 1fr; }
}

/* Phone / large phone: bottom pill nav, compact topbar, single-column blocks */
@media (max-width: 720px) {
  /* The topbar's backdrop-filter would create a containing block that traps the
     nav's `position: fixed` inside the header — drop it on mobile so the pill nav
     can dock to the viewport bottom. Use an opaque bg to replace the lost blur. */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-2); }

  /* Bottom-docked labelled tab bar (thumb-reachable, iOS-style) — icon + caption stacked so every
     destination (incl. "My Rewards") is self-explanatory, not a bare unlabeled glyph. */
  .nav { position: fixed; bottom: calc(10px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 55; box-shadow: var(--shadow-lg); gap: 1px; padding: 5px; max-width: calc(100vw - 12px); }
  .nav__item { flex-direction: column; gap: 3px; padding: 7px 7px; min-height: 46px; min-width: 0; align-items: center; justify-content: center; }
  .nav__item span { display: block; font-size: 9px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
  .nav__item .ico { width: 19px; height: 19px; }

  /* Compact topbar so brand + network chip + wallet button fit with no overflow */
  .topbar__inner { gap: 10px; padding: 10px 14px; }
  .topbar__right { gap: 8px; }
  .brand__name { display: none; }
  .btn--wallet { padding: 10px 13px; }
  .chip--net { font-size: 12px; padding: 7px 10px; }

  /* Single-column forms & stats */
  .grid-2 { grid-template-columns: 1fr; }
  .fee-tiers { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }

  /* Section head wraps rather than squeezing the refresh button */
  .section-head { flex-wrap: wrap; align-items: flex-start; margin-top: 32px; }

  /* Footer sits OUTSIDE <main>, so it needs its own clearance from the fixed bottom nav */
  .footer { justify-content: center; text-align: center; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* Token-detail header: drop the identity block onto its own full-width row so the address pill
     + "Created by" line never get squeezed into a broken 2-line wrap by the share/close buttons. */
  .dh { flex-wrap: wrap; }
  .dh__id { flex: 1 1 100%; order: 3; }
  .dh__actions { margin-left: auto; }

  /* Leave room for the fixed bottom nav; keep toasts above it */
  .main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .toasts { left: 16px; right: 16px; bottom: 82px; max-width: none; }
}

/* Small phones (≈390px): tighter spacing, full-width CTAs, comfortable drawer */
@media (max-width: 480px) {
  .masthead { border-radius: var(--r); margin-bottom: 16px; }
  .hero { border-radius: var(--r-lg); }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 100%; }         /* stack hero buttons full-width */
  .hero2__cta .btn { flex: 1 1 100%; }        /* same for the live homepage hero */
  .dual-actions { grid-template-columns: 1fr; }
  .result__actions { flex-direction: column; }
  .result__actions .btn { width: 100%; }
  .stock-soon { grid-template-columns: 1fr; }
  .drawer__scroll { padding: 20px 16px 28px; }
  .dh__logo { width: 46px; height: 46px; font-size: 18px; }
  .dh__name { font-size: 18px; }
  .brand__mark { width: 30px; height: 30px; }
}

/* Very narrow guard (<=360px): final overflow safety */
@media (max-width: 360px) {
  .topbar__inner { gap: 8px; }
  .btn--wallet { padding: 9px 11px; font-size: 13px; }
  .chip--net #net-label { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
.tcard__rewards { color: var(--green-2); font-weight: 700; }
.tcard__logo--img { padding: 0 !important; object-fit: cover; }
/* Create — profile (logo/banner/links) */
.profile-grid { display: flex; gap: 10px; margin: 8px 0; }
.upload { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 8px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--text-2); cursor: pointer; font: inherit; transition: .15s; }
.upload.is-invalid { border-style: solid; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.req { color: var(--red); font-weight: 800; }
.upload:hover { border-color: var(--green-ring); color: var(--green-2); }
.upload.has-file { border-style: solid; border-color: var(--green-ring); color: var(--green-2); }
.upload__label { font-size: 13px; font-weight: 700; }
.upload__hint { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__preview { width: 64px; height: 64px; object-fit: cover; border-radius: 11px; border: 1px solid var(--green-ring); background: var(--bg-2); margin-bottom: 4px; box-shadow: 0 4px 14px -6px rgba(0,0,0,.5); }
.upload__preview--wide { width: 100%; height: 52px; border-radius: 8px; }
.prof-input { display: block; width: 100%; margin-top: 8px; }
textarea.prof-input { resize: vertical; font-family: inherit; }
/* Detail — profile display */
.dh-banner { display: block; width: 100%; max-height: 170px; object-fit: cover; border-radius: var(--r); margin-bottom: 14px; }
.dh__logo--img { padding: 0 !important; object-fit: cover; }
.dh-links { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dh-link { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); transition: .15s; }
.dh-link:hover { border-color: var(--green-ring); color: var(--green-2); }
.dh-desc { color: var(--text-2); font-size: 14px; margin: 0 0 14px; line-height: 1.5; }
/* Homepage: stats bar + controls + card badges/APR (features 2,3,6,7) */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 22px; }
.statbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.statbox__val { display: block; font-size: 20px; font-weight: 800; font-family: var(--mono); color: var(--green-2); }
.statbox__label { font-size: 12px; color: var(--muted); }
.explore-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-wrap { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; color: var(--muted); }
.search-wrap input { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; outline: none; width: 220px; max-width: 46vw; }
.sort-select { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); font: inherit; font-size: 14px; padding: 9px 12px; cursor: pointer; }
.tcard__badges { display: flex; gap: 6px; margin: 8px 0 2px; flex-wrap: wrap; }
.tbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.tbadge--ok { color: var(--green-2); border-color: var(--green-ring); background: var(--green-soft); }
.tbadge svg { width: 12px; height: 12px; }
.tcard__apr { font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.tcard__24h { font-size: 12px; color: var(--green-2); font-weight: 600; margin-top: 6px; }
.dh__actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 640px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } .search-wrap input { width: 140px; } }

/* ============ CREATIVE REDESIGN (v8): arrows bg + kinetic hero + rail + ticker + premium cards ============ */
#arcs { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .9; }
.hero2 { padding: clamp(34px,6vw,74px) 0 clamp(22px,4vw,40px); position: relative; }
.hero2__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green-deep); font-weight: 800; padding: 7px 13px; border: 1px solid var(--green-ring); border-radius: 999px; background: var(--green-soft); }
.hero2__eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero2__title { font-size: clamp(44px,8vw,92px); font-weight: 900; letter-spacing: -.045em; line-height: .96; margin: 22px 0 0; text-wrap: balance; max-width: 15ch; }
.hero2__sub { font-size: clamp(16px,1.9vw,20px); color: var(--text-2); margin-top: 20px; max-width: 54ch; line-height: 1.55; }
.hero2__cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* animated transition when switching views (Explore <-> Create Token) */
.view { animation: viewIn .46s cubic-bezier(.16, .84, .44, 1) both; }
@keyframes viewIn {
  0% { opacity: 0; transform: translateY(26px) scale(.98); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
}

/* scroll-reveal: cards & sections fade + rise into view (JS adds .in), with per-item stagger */
.reveal { opacity: 0; transform: translateY(20px); will-change: opacity, transform; }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .6s cubic-bezier(.16, .84, .44, 1);
  transition-delay: calc(min(var(--i, 0), 8) * 45ms);
}

/* hero entrance — staggered rise on load / view enter */
.hero2__eyebrow, .hero2__title, .hero2__sub, .hero2__cta { animation: heroUp .75s cubic-bezier(.16, .84, .44, 1) both; }
.hero2__eyebrow { animation-delay: .04s; }
.hero2__title { animation-delay: .12s; }
.hero2__sub { animation-delay: .22s; }
.hero2__cta { animation-delay: .32s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* live dot in the eyebrow — soft pulsing glow */
.hero2__eyebrow .pulse { animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--green-ring); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(201, 248, 0, 0); opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero2__eyebrow, .hero2__title, .hero2__sub, .hero2__cta { animation: none; }
  .hero2__eyebrow .pulse { animation: none; }
}
.rail { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 0; margin-top: 42px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); overflow: hidden; }
.rcell { padding: 20px 22px; border-right: 1px solid var(--line); }
.rcell:last-child { border-right: 0; }
.rlabel, .rcell .rlabel { font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rbig { font-family: var(--mono); font-size: clamp(28px,3.6vw,40px); font-weight: 800; letter-spacing: -.02em; margin-top: 8px; color: var(--green-2); font-variant-numeric: tabular-nums; line-height: 1; }
.rval { font-family: var(--mono); font-size: clamp(20px,2.6vw,27px); font-weight: 800; margin-top: 8px; font-variant-numeric: tabular-nums; }
.ticker { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 32px; padding: 13px 0; white-space: nowrap; width: max-content; animation: tickerScroll 30s linear infinite; }
.tk { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 650; color: var(--text-2); }
.tk b { color: var(--green-2); font-family: var(--mono); font-weight: 800; }
.tk__d { width: 5px; height: 5px; border-radius: 50%; background: var(--green-deep); }
@keyframes tickerScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }

/* premium token cards */
.pcard { position: relative; text-align: left; border: 1px solid var(--line); border-radius: 20px; padding: 20px; cursor: pointer;
  background: linear-gradient(180deg, var(--surface), #0a0f0b); color: var(--text); font: inherit; overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s; }
.pcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 120px at 82% -12%, rgba(201,248,0,.10), transparent 70%); pointer-events: none; }
.pcard:hover { transform: translateY(-4px); border-color: var(--green-ring); box-shadow: 0 22px 50px -24px rgba(201,248,0,.4); }
.pcard:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--green-ring); }
.pcard__go { position: absolute; top: 16px; right: 16px; color: var(--muted); opacity: 0; transition: .18s; }
.pcard:hover .pcard__go { opacity: 1; color: var(--green-2); }
.pcard__head { display: flex; align-items: center; gap: 13px; }
.pcard__logo { width: 50px; height: 50px; border-radius: 14px; flex: 0 0 auto; display: grid; place-items: center; font-weight: 900; font-size: 20px;
  color: #0a0f00; background: var(--green); }
.pcard__logo--img { background: #fff; object-fit: cover; padding: 0; }
.pcard__id { min-width: 0; }
.pcard__id b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__id span { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.pcard__badges { margin-left: auto; display: flex; gap: 6px; flex: 0 0 auto; }
/* Tight phones: let the Verified/Rewards badges drop to their own line so the token NAME gets the full
   width and never clips mid-word (e.g. "Doodl…", "Diam…") on 360px. */
@media (max-width: 560px) {
  .pcard__head { flex-wrap: wrap; }
  .pcard__id { flex: 1 1 auto; }
  .pcard__badges { margin-left: 0; order: 3; flex-basis: 100%; }
}
.cb { font-size: 10.5px; font-weight: 800; padding: 4px 8px; border-radius: 999px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.cb--ok { color: var(--green-2); background: var(--green-soft); border-color: var(--green-ring); }
.pcard__hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 18px; }
.pcard__lab { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pcard__lab svg { width: 13px; height: 13px; }
.pcard__big { font-family: var(--mono); font-size: 30px; font-weight: 800; color: var(--green-2); letter-spacing: -.02em; line-height: 1.1; margin-top: 5px; }
.pcard__apr { font-size: 12px; font-weight: 800; color: var(--green); background: var(--green-soft); border: 1px solid var(--green-ring); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.pcard__stats { display: flex; gap: 18px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.pcstat { display: flex; flex-direction: column; gap: 3px; }
.pcstat .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.pcstat .v { font-family: var(--mono); font-size: 15px; font-weight: 800; }
@media (max-width: 920px) { .rail { grid-template-columns: 1fr 1fr; } .rcell { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .rail { grid-template-columns: 1fr; } }

/* Rewards payout proof list (token detail) */
.payout-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.payout { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, background .15s; }
.payout:hover { border-color: var(--green-ring); background: var(--surface-3); }
.payout__amt { font-family: var(--mono); font-weight: 800; color: var(--green-2); font-size: 14px; }
.payout__to { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.payout__tx { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.payout:hover .payout__tx { color: var(--green-2); }

/* Topbar X (Twitter) link */
.topbar__x { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px;
  color: var(--text-2); border: 1px solid var(--line); background: var(--surface); transition: color .15s, border-color .15s, background .15s; }
.topbar__x:hover { color: var(--green-2); border-color: var(--green-ring); background: var(--surface-2); }
@media (max-width: 560px) { .topbar__x { display: none; } }

/* Liquidity locked proof panel (token detail) */
.liq-panel { border-color: var(--green-ring); background: linear-gradient(180deg, var(--green-soft), transparent); }
.liq-head { display: flex; align-items: center; gap: 12px; }
.liq-lock { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); border: 1px solid var(--green-ring); color: var(--green-2); flex: 0 0 auto; }
.liq-title { font-size: 16px; font-weight: 800; display: block; }
.liq-sub { font-size: 12.5px; color: var(--muted); }
.liq-badge { margin-left: auto; font-size: 11px; font-weight: 900; letter-spacing: .08em; color: #0a0f00; background: var(--green); padding: 5px 11px; border-radius: 999px; }
.liq-text { font-size: 13.5px; color: var(--text-2); line-height: 1.55; margin: 13px 0 12px; }
.liq-verify { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--green-2);
  padding: 9px 14px; border-radius: var(--r-sm); border: 1px solid var(--green-ring); background: var(--surface); transition: .15s; }
.liq-verify:hover { background: var(--surface-2); }

/* ============ Profile / My Rewards ============ */
#view-profile { max-width: 1080px; margin: 0 auto; }
.prof-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 70px 20px; }
.prof-empty__ico { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; background: var(--green-soft); border: 1px solid var(--green-ring); color: var(--green-2); }
.prof-empty__ico svg { width: 34px; height: 34px; }
.prof-empty__h { font-size: clamp(30px, 5vw, 46px); font-weight: 900; letter-spacing: -0.02em; margin: 6px 0 2px; }
.prof-empty p { color: var(--text-2); max-width: 520px; font-size: 15.5px; line-height: 1.6; margin: 0 0 8px; }

.prof-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 8px 0 26px; margin-bottom: 6px; border-bottom: 1px solid var(--line); animation: profUp .5s ease both; }
.prof-share { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--green); color: #0a0f00; border: 0; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; order: 3; }
.prof-share svg { width: 15px; height: 15px; }
.prof-share:hover { filter: brightness(1.07); }
/* Share card modal */
.share-back { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.share-modal { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; max-width: 520px; width: 100%; padding: 18px; box-shadow: var(--shadow-lg); }
.share-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.share-modal__head h3 { margin: 0; font-size: 17px; }
.share-preview { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.share-note { font-size: 12.5px; color: var(--text-2); margin: 12px 0 14px; line-height: 1.5; }
.share-actions { display: flex; gap: 10px; }
.share-actions .btn { flex: 1; justify-content: center; }
.prof-id { display: flex; align-items: center; gap: 14px; }
.prof-av { width: 52px; height: 52px; border-radius: 16px; display: block; box-shadow: 0 0 0 1px var(--line), 0 8px 24px -12px rgba(0,0,0,.6); }
.prof-id .pfp { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 8px 24px -12px rgba(0,0,0,.6); }
.prof-addr { font-family: var(--mono); font-size: 20px; font-weight: 800; color: var(--text); }
.prof-subttl { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.prof-stats { display: flex; gap: 28px; }
.prof-stat { display: flex; flex-direction: column; gap: 3px; }
.prof-stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.prof-stat .v { font-size: 26px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }

.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding: 22px 0 12px; }
.prof-card { text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 18px; transition: transform .18s, border-color .18s, box-shadow .18s; animation: profUp .55s cubic-bezier(.16,.84,.44,1) both; animation-delay: calc(var(--i, 0) * 55ms); }
.prof-card:hover { transform: translateY(-4px); border-color: var(--green-ring); box-shadow: 0 20px 44px -24px rgba(201,248,0,.4); }
.prof-card__top { display: flex; align-items: center; gap: 12px; }
.prof-logo { width: 46px; height: 46px; border-radius: 13px; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.prof-logo img { width: 100%; height: 100%; object-fit: cover; }
.prof-badge { font-weight: 800; font-size: 15px; color: #0a0f00; width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(150deg, var(--green-2), var(--green-deep)); }
.prof-card__id b { display: block; font-size: 16px; color: var(--text); letter-spacing: -.01em; }
.prof-card__id small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pc-sold { font-style: normal; color: var(--red); font-weight: 700; }
.prof-earned { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.pe-num { font-size: 40px; font-weight: 900; color: var(--green-2); letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(201,248,0,.25); }
.prof-earned small { font-size: 16px; font-weight: 800; color: var(--green-2); }
.pe-lbl { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: auto; }
.prof-stat--next .v { color: var(--green); }
.prof-stat--next .k { display: inline-flex; align-items: center; gap: 4px; }
.prof-stat--next .k svg { width: 12px; height: 12px; }
.prof-next { display: flex; align-items: center; gap: 7px; margin: 10px 0 2px; padding: 8px 10px; border-radius: 10px; background: linear-gradient(135deg, rgba(201,248,0,.10), rgba(201,248,0,.02)); border: 1px solid rgba(201,248,0,.20); font-size: 13px; color: var(--text-2); }
.prof-next .pn-ico { display: inline-flex; color: var(--green); }
.prof-next .pn-ico svg { width: 15px; height: 15px; }
.prof-next b { color: var(--green); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.prof-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
/* Reward-drop timeline */
.prof-drops { margin-top: 26px; }
.prof-drops__h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--text); margin: 0 0 12px; }
.prof-drops__h svg { width: 17px; height: 17px; color: var(--green); }
.prof-drops__h span { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft, rgba(201,248,0,.12)); border-radius: 999px; padding: 2px 9px; }
.prof-drops__list { display: flex; flex-direction: column; gap: 6px; }
.pd-row { display: grid; grid-template-columns: 30px auto 1fr auto; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font: inherit; color: var(--text); text-align: left; transition: background .13s, border-color .13s; }
.pd-row:hover { background: rgba(255,255,255,.03); border-color: rgba(201,248,0,.25); }
.pd-logo img, .pd-badge { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-2); }
.pd-badge { font-size: 10px; font-weight: 800; color: var(--green); border: 1px solid var(--line); }
.pd-amt { font-size: 15px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-from { font-size: 13px; color: var(--text-2); }
.pd-from b { color: var(--text); font-weight: 700; }
.pd-ago { font-size: 12px; color: var(--muted, var(--text-2)); white-space: nowrap; }
@media (max-width: 560px) { .pd-from { font-size: 12px; } .pd-row { gap: 8px; padding: 9px 10px; } }
.prof-metrics .k { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.prof-metrics b { font-size: 14px; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.prof-none { text-align: center; padding: 48px 20px; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.prof-skel .prof-card--skel { height: 180px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shim 1.3s ease-in-out infinite; }
@keyframes profUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .prof-head { align-items: flex-start; } .prof-stats { gap: 20px; width: 100%; } .prof-stat .v { font-size: 22px; } .prof-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .prof-card, .prof-head { animation: none; } }

/* ============ TOP REWARDS · platform-wide earners leaderboard (own tab) ============ */
#view-rewards { max-width: 860px; }
.lb__head { margin-bottom: 18px; }
.lb__row--skel { height: 60px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2, #131a16) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shim 1.3s ease-in-out infinite; }
.lb__empty { list-style: none; padding: 44px 22px; text-align: center; color: var(--text-2); border: 1px dashed var(--line); border-radius: 14px; line-height: 1.55; }
.lb__cup { font-size: 0.92em; }
.lb__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lb__row { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; animation: lbUp .5s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--i, 0) * 38ms); }
.lb__main { width: 100%; display: grid; grid-template-columns: 26px 40px 1fr auto 18px; align-items: center; gap: 12px; padding: 11px 16px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--text); font: inherit; transition: background .15s; }
.lb__main:hover { background: rgba(255,255,255,.03); }
.pfp { display: block; object-fit: cover; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.lb__row .pfp { width: 40px; height: 40px; border-radius: 12px; }
.lb__caret { color: var(--text-2); justify-self: end; transition: transform .25s; }
.lb__row.is-open .lb__caret { transform: rotate(180deg); }
.lb__rank { font-weight: 800; font-size: 15px; color: var(--text-2); text-align: center; font-variant-numeric: tabular-nums; }
.lb__row[data-rank="1"] .lb__rank { color: #FFD24A; }
.lb__row[data-rank="2"] .lb__rank { color: #CBD5E1; }
.lb__row[data-rank="3"] .lb__rank { color: #E8A06A; }
.lb__row[data-rank="1"] { border-color: rgba(255,210,74,.34); }
.lb__row[data-rank="2"] { border-color: rgba(203,213,225,.24); }
.lb__row[data-rank="3"] { border-color: rgba(232,160,106,.26); }
.lb__id { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lb__addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.lb__sub { font-size: 11.5px; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.lb__chip { font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; }
.lb__chip--hold { background: rgba(201,248,0,.14); color: var(--green); }
.lb__chip--sold { background: rgba(255,255,255,.07); color: var(--text-2); }
.lb__coins { display: flex; align-items: center; }
.lb__clogo { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; margin-left: -7px; border: 2px solid var(--surface); background: var(--bg-2); }
.lb__clogo:first-child { margin-left: 0; }
.lb__clogo--t { display: inline-flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 800; color: var(--green); }
.lb__amt { text-align: right; line-height: 1.05; }
.lb__amt b { display: block; font-size: 17px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.lb__amt small { font-size: 10px; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.lb__break { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.lb__row.is-open .lb__break { max-height: 520px; overflow-y: auto; }
.lb__brk-in { padding: 12px 14px 14px 14px; display: flex; flex-direction: column; gap: 5px; border-top: 1px solid var(--line); }
.lb__brk-h { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, var(--text-2)); margin: 2px 0 4px; }
.lb__brow { width: 100%; display: grid; grid-template-columns: 26px 1fr auto auto 16px; align-items: center; gap: 10px; font-size: 13px; padding: 7px 8px; background: none; border: 1px solid transparent; border-radius: 10px; cursor: pointer; color: var(--text); font-family: inherit; text-align: left; transition: background .13s, border-color .13s; }
.lb__brow:hover { background: rgba(255,255,255,.04); border-color: var(--line); }
.lb__blogo { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.lb__blogo--t { display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: var(--green); border: 1px solid var(--line); }
.lb__bsym { font-weight: 700; color: var(--text); }
.lb__brow b { color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; }
.lb__brow i { font-style: normal; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; }
.lb__b-hold { background: rgba(201,248,0,.14); color: var(--green); }
.lb__b-sold { background: rgba(255,255,255,.06); color: var(--text-2); }
.lb__bgo { color: var(--text-2); display: inline-flex; opacity: .55; }
.lb__brow:hover .lb__bgo { opacity: 1; color: var(--green); }
.lb__ext { display: inline-flex; align-items: center; min-height: 44px; font-size: 12.5px; color: var(--text-2); margin-top: 4px; text-decoration: none; padding: 6px 8px; }
.lb__ext:hover { color: var(--green); }
@keyframes lbUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .lb__main { grid-template-columns: 20px 34px 1fr auto 16px; gap: 9px; padding: 10px 12px; }
  .lb__row .pfp { width: 34px; height: 34px; border-radius: 10px; }
  .lb__coins { display: none; }
  .lb__amt b { font-size: 15px; }
  .lb__addr { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .lb__row { animation: none; } }
/* Silent periodic auto-refresh (live update while sitting on the tab): re-render without replaying entrance animations */
.lb-quiet .lb__row { animation: none; }
#profile-content.pq-quiet .prof-card, #profile-content.pq-quiet .prof-head { animation: none; }

/* ============ "Who earns rewards" — reward eligibility, shown on the coin page + cards ============ */
.reward-rule { margin: 2px 0 14px; padding: 16px 18px; border-radius: 13px; background: linear-gradient(135deg, rgba(201,248,0,.10), rgba(201,248,0,.02)); border: 1px solid rgba(201,248,0,.22); }
.reward-rule--gated { background: linear-gradient(135deg, rgba(255,196,0,.11), rgba(255,196,0,.02)); border-color: rgba(255,196,0,.30); }
.reward-rule__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 9px; }
.reward-rule__eyebrow svg { width: 14px; height: 14px; }
.reward-rule__big { font-size: clamp(20px, 3.2vw, 27px); font-weight: 800; line-height: 1.1; color: var(--text); letter-spacing: -.015em; text-wrap: balance; }
.reward-rule--all .reward-rule__big { color: var(--green); }
.reward-rule--gated .reward-rule__big { color: #FFC400; }
.reward-rule__sub { margin-top: 7px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.reward-rule__sub b { color: var(--text); font-weight: 700; }

.pcard__who { margin-top: 11px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); border-top: 1px solid var(--line); padding-top: 11px; }
.pcard__who.is-gated { color: #FFC400; }
.pcard__who svg { width: 14px; height: 14px; flex: none; }

/* Create-note inline doc links — key terms deep-link to the matching docs section */
#create-note a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(201,248,0,.4); text-underline-offset: 2px; }
#create-note a:hover { text-decoration-color: var(--green); }
#create-note a code { color: var(--green); }
#create-note .cn-more { display: inline-block; margin-left: 4px; font-weight: 700; text-decoration: none; white-space: nowrap; }
#create-note .cn-more:hover { text-decoration: underline; }

/* ============================================================================
   ECCENTRIC MOTION LAYER — "The Payback Reactor" (design-panel synthesis)
   All GPU-only (transform/opacity/filter), idle-cost near zero, reduced-motion safe.
   ============================================================================ */

/* --- Reactor core: the live "Paid to holders" number reads as powered + rings on each arrival --- */
.rcell--hero { position: relative; }
#stat-paid { position: relative; display: inline-block; will-change: filter; animation: coreBreath 6s ease-in-out infinite; }
@keyframes coreBreath {
  0%,100% { filter: brightness(1);    text-shadow: 0 0 18px rgba(201,248,0,.22); }
  50%     { filter: brightness(1.12); text-shadow: 0 0 30px rgba(201,248,0,.42); }
}
#stat-paid::after {
  content:""; position:absolute; left:50%; top:50%; width:40px; height:40px; margin:-20px 0 0 -20px;
  border-radius:50%; border:1.5px solid var(--green); opacity:0; pointer-events:none; transform: translate3d(0,0,0) scale(.4);
}
#stat-paid.is-charged::after { animation: coreRing .9s cubic-bezier(.16,.84,.44,1); }
@keyframes coreRing { 0% { opacity:.8; transform: scale(.4); } 100% { opacity:0; transform: scale(3.2); } }

/* --- Live-Wire: token-card current-trace border + interior ignite + CTA glint + wallet charge (hover/state only) --- */
@property --pq-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pcard::after {
  content:""; position:absolute; inset:0; border-radius:20px; padding:1px; pointer-events:none; opacity:0;
  background: conic-gradient(from var(--pq-ang), transparent 0 300deg, var(--green-2) 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .2s;
}
.pcard:hover::after, .pcard:focus-visible::after { opacity:1; animation: pqBeam 2.4s linear infinite; }
@keyframes pqBeam { to { --pq-ang: 360deg; } }
.pcard__big { transition: transform .18s, text-shadow .18s; }
.pcard:hover .pcard__big { transform: scale(1.045); text-shadow: 0 0 22px rgba(201,248,0,.5); }
.pcard__go { transition: transform .2s; transform: translateX(-4px); }
.pcard:hover .pcard__go { transform: translateX(0); }
.pcard__logo { transition: transform .2s; }
.pcard:hover .pcard__logo { transform: rotate(-4deg) scale(1.04); }
.btn--primary { overflow: hidden; }
.btn--primary::before {
  content:""; position:absolute; top:0; bottom:0; left:0; width:45%; pointer-events:none; opacity:0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translateX(-250%) skewX(-18deg);
}
.btn--primary:hover::before { animation: pqSweep .7s ease-out; }
@keyframes pqSweep { 0% { opacity:0; transform: translateX(-250%) skewX(-18deg); } 15% { opacity:1; } 100% { opacity:0; transform: translateX(400%) skewX(-18deg); } }
.btn--wallet:not(.is-connected)::before { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; animation: pqCharge 2.4s ease-out infinite; }
.btn--wallet.is-connected::before { content:none; }
@keyframes pqCharge { 0% { box-shadow:0 0 0 0 rgba(201,248,0,.5); } 70%,100% { box-shadow:0 0 0 10px rgba(201,248,0,0); } }

/* --- Traveling nav "sight": one lime pill glides under the active tab (interaction-time only) --- */
/* (.nav position:relative lives on the base rule so the mobile @media fixed-bottom bar still wins) */
.nav__item { position: relative; z-index: 1; }
.nav__item.is-active { background: transparent; color: #0a0f00; }
.nav__ink {
  position:absolute; top:4px; bottom:4px; left:0; width: var(--ink-w, 0px); opacity:0; pointer-events:none; z-index:0;
  border-radius:999px; background: var(--green); transform: translateX(var(--ink-x, 0px));
  transition: transform .34s cubic-bezier(.16,.84,.44,1), width .34s cubic-bezier(.16,.84,.44,1), opacity .2s;
}

/* --- Cold-start boot cascade: logo nocks in, nav pills draw, once per hard load --- */
@keyframes pqNock { from { opacity:0; transform: translateY(-6px) rotate(-12deg) scale(.8); } to { opacity:1; transform:none; } }
@keyframes pqDraw { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform:none; } }
.brand__mark { animation: pqNock .6s cubic-bezier(.16,.84,.44,1) both; }
.brand__name { animation: pqDraw .5s ease both .06s; }
.nav .nav__item { animation: pqDraw .5s cubic-bezier(.16,.84,.44,1) both; }
.nav .nav__item:nth-child(1){ animation-delay:.10s } .nav .nav__item:nth-child(2){ animation-delay:.14s }
.nav .nav__item:nth-child(3){ animation-delay:.18s } .nav .nav__item:nth-child(4){ animation-delay:.22s }
.nav .nav__item:nth-child(5){ animation-delay:.26s }
.topbar__right { animation: pqDraw .5s ease both .30s; }

@media (prefers-reduced-motion: reduce) {
  #stat-paid { animation: none; } #stat-paid.is-charged::after { animation: none; }
  .pcard:hover::after, .btn--primary:hover::before, .btn--wallet:not(.is-connected)::before { animation:none; opacity:0; }
  .nav__ink { transition: opacity .2s; }
  .brand__mark, .brand__name, .nav .nav__item, .topbar__right { animation:none; }
}

/* =====================================================================
   Theme toggle button + radial (View-Transition) reveal
   ===================================================================== */
.theme-toggle{
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
  cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover{ color: var(--green-2); border-color: var(--green-ring); }
.theme-toggle:focus-visible{ outline: none; box-shadow: 0 0 0 3px var(--green-ring); }
.theme-toggle__icon{ display: block; }
.theme-toggle__sun{ fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__moon{ fill: currentColor; }
/* default (dark / no attr): sun visible, moon hidden. Flip in light. */
.theme-toggle__moon{ display: none; }
:root[data-theme="light"] .theme-toggle__sun{ display: none; }
:root[data-theme="light"] .theme-toggle__moon{ display: block; }

/* Radial reveal overlay (app.js grows this circle from the toggle via transform:scale — GPU
   composited, so it can't stutter on the main thread; NOT a View-Transition page snapshot). */
.theme-flash{
  position: fixed; border-radius: 50%; z-index: 2147483000;
  pointer-events: none; will-change: transform, opacity;
}

/* =====================================================================
   Light-theme overrides for elements that hardcoded dark-only colors
   (bypassing the token system). Grouped by the audit finding numbers.
   ===================================================================== */
/* #1 ambient bg — drop the black bottom vignette or the corners go dark */
:root[data-theme="light"] body::before{
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(140,180,0,.10), transparent 60%),
    radial-gradient(700px 460px at 8% 4%, rgba(45,130,90,.06), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
/* #2 project cards faded to a black block via a hardcoded 2nd stop */
:root[data-theme="light"] .pcard{ background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
/* #3 re-brighten the finite set of lime tiles (dark glyph sits on top) */
:root[data-theme="light"] .tcard__logo,
:root[data-theme="light"] .summary__logo,
:root[data-theme="light"] .cprev__logo,
:root[data-theme="light"] .dh__logo,
:root[data-theme="light"] .prof-badge{ background: linear-gradient(150deg, #DBFF3D, #A6CC00); }
/* #4 primary / wallet / result CTA gradients — force bright lime under dark label */
:root[data-theme="light"] .btn--primary,
:root[data-theme="light"] .btn--wallet,
:root[data-theme="light"] .result__badge{ background: linear-gradient(180deg, #DBFF3D, #C9F800); }
/* #5 hero grad-text — deep greens + dark sheen (pure lime is unreadable on white).
   The `background` shorthand resets background-clip to border-box at this higher
   specificity, so we MUST re-assert the text-clip here or the words fill as a block. */
:root[data-theme="light"] .grad-text{
  background:
    linear-gradient(115deg, transparent 20%, rgba(0,0,0,.14) 40%, transparent 60%),
    linear-gradient(96deg, var(--green-2), var(--green-deep), #6f9500, var(--green-2));
  background-size: 220% auto, 260% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* #6 lime used as TEXT in migrate values + 'ALL holders' headline */
:root[data-theme="light"] .migrate__val,
:root[data-theme="light"] .migrate__total b,
:root[data-theme="light"] .reward-rule--all .reward-rule__big{ color: var(--green-2); }
/* #7 bright buy/up lime as TEXT + live dot fill */
:root[data-theme="light"] .live-badge,
:root[data-theme="light"] .chart-change.is-up,
:root[data-theme="light"] .mstat__v .ms-buy,
:root[data-theme="light"] .tx-row.is-buy .tx-type,
:root[data-theme="light"] .tx-filter__s .ms-buy{ color:#1f8a44; }
:root[data-theme="light"] .live-dot{ background:#1f8a44; }
/* #8 reward-check + form-status status text (six states) */
:root[data-theme="light"] .reward-check.is-pending,
:root[data-theme="light"] .form-status.is-pending{ color:#1063a8; border-color:rgba(35,116,196,.4); background:rgba(35,116,196,.09); }
:root[data-theme="light"] .reward-check.is-ok,
:root[data-theme="light"] .form-status.is-ok,
:root[data-theme="light"] .note p{ color:#2f6d1f; }
:root[data-theme="light"] .reward-check.is-error,
:root[data-theme="light"] .form-status.is-error{ color:#b42318; }
/* #9 warn-banner */
:root[data-theme="light"] .banner--warn{ color:#7a4a12; }
:root[data-theme="light"] .banner__body strong{ color: var(--text); }
/* #10 gated-reward amber */
:root[data-theme="light"] .reward-rule--gated .reward-rule__big,
:root[data-theme="light"] .pcard__who.is-gated{ color:#8a6a00; }
/* #11 'DEV' holder tag */
:root[data-theme="light"] .hld-tag--dev{ color:#8a6a00; background:rgba(138,106,0,.10); border-color:rgba(138,106,0,.35); }
/* #12 leaderboard medal ranks */
:root[data-theme="light"] .lb__row[data-rank="1"] .lb__rank{ color:#9a7b00; }
:root[data-theme="light"] .lb__row[data-rank="2"] .lb__rank{ color:#64748b; }
:root[data-theme="light"] .lb__row[data-rank="3"] .lb__rank{ color:#9a5a2c; }
/* #13 'SOLD' pill needs a real chip */
:root[data-theme="light"] .lb__chip--sold{ background: rgba(16,26,10,.06); }
/* #14 migrate progress track */
:root[data-theme="light"] .migrate__bar{ background: rgba(16,26,10,.08); }
/* #15 leaderboard row hover feedback */
:root[data-theme="light"] .lb__main:hover{ background: rgba(16,26,10,.035); }
/* #16 chart gridlines + crosshair (re-tint dark; DON'T touch .cx-tip/.chart-tip popovers) */
:root[data-theme="light"] .candles .cg{ stroke: rgba(16,26,10,.09); }
:root[data-theme="light"] .cx-v{ background: rgba(16,26,10,.35); }
:root[data-theme="light"] .cx-h{ background: rgba(16,26,10,.18); }
/* #17 trade %-buttons (inline dark surface/border) */
:root[data-theme="light"] .pct-btn{ background: var(--surface-2); border-color: var(--line-2); }
/* Reactor canvas stopgap so the additive glow doesn't overpower the light page */
:root[data-theme="light"] #arcs{ opacity: .5; }

/* ---- User profiles: username, sections, launched coins, shareable /u/ pages ---- */
.prof-name { font-size: 26px; font-weight: 900; color: var(--text); letter-spacing: -.01em; line-height: 1.05; }
.prof-mono { font-family: var(--mono); font-weight: 700; }
.prof-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.prof-uedit { margin: 16px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); max-width: 520px; }
.prof-uedit__row { display: flex; align-items: center; gap: 8px; }
.prof-uedit__row .prof-input { margin: 0; flex: 1; min-width: 0; }
.prof-uedit__row .btn { flex: 0 0 auto; white-space: nowrap; }
.prof-at { font-family: var(--mono); font-weight: 800; color: var(--muted); font-size: 18px; }
.prof-uedit__hint { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.prof-sec { margin-top: 32px; }
.prof-sec__h { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; color: var(--text); margin: 0 0 14px; }
.prof-sec__h span { font-size: 12px; font-weight: 800; color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring); border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.prof-sec__h svg { width: 17px; height: 17px; }
.prof-card--launch .prof-metrics { margin-top: 12px; }
.lb__prof { display: block; margin-top: 12px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--green-2); font-weight: 700; font-size: 12.5px; }
.lb__prof:hover { text-decoration: underline; }
/* Official platform token — filled lime badge + highlighted card */
.cb--official { background: var(--green); color: #0a0f00; border-color: transparent; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.cb--official svg { display: block; }
.pcard--official { border-color: var(--green-ring); box-shadow: 0 0 0 1px var(--green-ring), 0 18px 46px -22px rgba(201,248,0,.55); }
.pcard--official::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(201,248,0,.07), transparent 40%); pointer-events: none; }

/* ---- On-chain reward proofs: permanent corner feed ---- */
.proofs { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 320px; max-width: calc(100vw - 32px);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--green-ring);
  border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(201,248,0,.14); overflow: hidden; }
.proofs__head { display: flex; align-items: center; gap: 9px; width: 100%; padding: 12px 14px; background: none; border: 0; cursor: pointer; color: var(--text); font: inherit; }
.proofs__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); flex: 0 0 auto; animation: pfPulse 2s ease-in-out infinite; }
@keyframes pfPulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }
.proofs__title { font-size: 13.5px; font-weight: 800; letter-spacing: -.2px; }
.proofs__count { margin-left: auto; font-family: var(--mono); font-weight: 800; font-size: 13px; color: var(--green-2); background: var(--green-soft); border: 1px solid var(--green-ring); border-radius: 999px; padding: 2px 9px; }
.proofs__caret { flex: 0 0 auto; stroke: var(--muted); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.proofs__sub { padding: 0 14px 8px; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .01em; margin-top: -4px; }
.proofs__body { max-height: 320px; overflow-y: auto; padding: 4px 6px 8px; border-top: 1px solid var(--line); }
.proofs.is-collapsed .proofs__body, .proofs.is-collapsed .proofs__sub { display: none; }
.proofs.is-collapsed .proofs__caret { transform: rotate(180deg); }
.pf-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 10px; padding: 8px 8px; border-radius: 10px; }
.pf-row + .pf-row { border-top: 1px solid var(--line); }
.pf-row:hover { background: var(--hover); }
.pf-who { grid-row: 1; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--text-2); text-align: left; }
.pf-who:hover { color: var(--green-2); text-decoration: underline; }
.pf-amt { grid-row: 1; grid-column: 3; font-weight: 800; font-size: 13.5px; color: var(--green-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-meta { grid-row: 2; grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.pf-sym { font-weight: 700; }
.pf-tx { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.pf-tx:hover { color: var(--green-2); }
.pf-tx svg { width: 12px; height: 12px; }
.pf-ago { margin-left: auto; }
.pf-empty { padding: 16px 10px; color: var(--muted); font-size: 12.5px; text-align: center; }
.pf-new { animation: pfIn .5s ease both; }
@keyframes pfIn { from { opacity: 0; transform: translateY(-6px); background: var(--green-soft); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .proofs { display: none; } }   /* mobilde alt navigasyonu örtmesin — masaüstünde sağ köşede kalır */
@media (prefers-reduced-motion: reduce) { .proofs__dot, .pf-new { animation: none; } }
