/* =========================================================
   A Market — XenForo-style dark theme
   ========================================================= */
:root {
  --bg: #0e0f13;
  --bg-2: #121318;
  --panel: #15161c;
  --panel-2: #1a1c23;
  --panel-3: #20222b;
  --line: #24262f;
  --line-2: #2e313c;
  --text: #e6e8ef;
  --text-2: #a3a8b8;
  --muted: #6c7184;
  --accent: #2f6bff;
  --accent-2: #4f9bff;
  --accent-glow: rgba(47, 107, 255, .45);
  --accent-soft: rgba(47, 107, 255, .12);
  --good: #2fd38a;
  --bad: #ff4d6d;
  --warn: #ffb547;

  /* user groups */
  --g-admin: #ff4d6d;
  --g-mod: #2fd38a;
  --g-vendor: #ffb547;
  --g-premium: #a77bff;
  --g-member: #8d93a6;
  --g-bot: #4f9bff;

  --radius: 4px;
  --nav-h: 64px;
  --wrap: 1420px;
  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-display: "Michroma", "Jost", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
[data-lucide], svg.lucide { width: 16px; height: 16px; stroke-width: 2; flex: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- Top nav ---------------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 23, 29, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1d1f26;
}
.topnav-inner {
  max-width: var(--wrap); margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 18px; padding: 0 24px;
}
.nav-brand { display: none; }
.nav-brand img { height: 30px; }
.nav-burger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-links { display: flex; align-items: stretch; height: 100%; gap: 6px; }
.nav-item { position: relative; display: flex; }
.nav-item > a {
  display: flex; align-items: center; gap: 7px; padding: 0 12px;
  text-transform: uppercase; letter-spacing: .04em; font-size: 15px; font-weight: 500;
  color: var(--muted); position: relative; transition: color .15s;
}
.nav-item > a svg { width: 14px; height: 14px; }
.nav-item > a .caret { width: 12px; height: 12px; margin-left: -3px; }
.nav-item > a:hover { color: var(--text); }
.nav-item.active > a { color: var(--text); font-weight: 600; }
.nav-item.active > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 14px; height: 2px;
  background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
}
.nav-item > a.nav-store { color: var(--accent-2); font-weight: 600; }
.nav-drop {
  position: absolute; top: calc(100% - 6px); left: 6px; min-width: 190px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 6px; display: none; box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.nav-drop a { display: block; padding: 8px 10px; border-radius: 3px; color: var(--text-2); font-size: 14px; }
.nav-drop a:hover { background: var(--panel-3); color: var(--text); }
.has-drop:hover .nav-drop, .has-drop:focus-within .nav-drop { display: block; }

.nav-user { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-me { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; }
.nav-me .uid-chip { margin-left: 2px; }
.nav-icon {
  position: relative; color: var(--muted); background: none; border: 0; cursor: pointer;
  display: flex; padding: 4px;
}
.nav-icon:hover { color: var(--text); }
.nav-icon .dot {
  position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
}
.nav-search svg { width: 20px; height: 20px; color: var(--text); }
.searchbar {
  max-height: 0; overflow: hidden; transition: max-height .2s;
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
}
.searchbar.open { max-height: 70px; padding-bottom: 14px; }
.searchbar input { width: 100%; }

/* ---------------- Ticker ---------------- */
.ticker {
  background: #0b0c10; border-bottom: 1px solid #191b22; overflow: hidden;
  height: 30px; display: flex; align-items: center; font-size: 13px;
}
.ticker-track { display: flex; gap: 34px; white-space: nowrap; padding-left: 100%; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { color: var(--text-2); display: inline-flex; gap: 6px; text-decoration: none; border-radius: 6px; padding: 0 4px; transition: background .15s, color .15s; }
.tick:hover { color: var(--text); background: rgba(90,162,255,.12); text-decoration: none; }
.tick b { color: var(--text); font-weight: 600; }
.tick .up { color: var(--good); }
.tick .down { color: var(--bad); }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------------- Hero / wordmark ---------------- */
.hero {
  position: relative; display: flex; justify-content: center; align-items: center;
  height: 260px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 180px at 50% 55%, rgba(47,107,255,.16), transparent 70%),
    radial-gradient(900px 300px at 50% 120%, rgba(47,107,255,.08), transparent 70%);
}
.hero::after { /* orbit swoosh */
  content: ""; position: absolute; width: 900px; height: 170px; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  border-radius: 50%; border: 2px solid rgba(79,155,255,.10);
  border-top-color: transparent; border-left-color: rgba(79,155,255,.04);
}
.hero.compact { height: 150px; }
.wordmark { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; }
.wordmark-mark { height: 112px; filter: drop-shadow(0 0 18px rgba(47,107,255,.55)); transition: transform .4s; }
.hero.compact .wordmark-mark { height: 76px; }
.wordmark:hover .wordmark-mark { transform: rotate(-6deg) scale(1.04); }
.wordmark-text {
  font-family: var(--font-display); font-size: 78px; letter-spacing: .02em; color: #fff; line-height: 1;
  text-shadow: 3px 0 0 var(--accent), -2px 0 0 rgba(79,155,255,.6), 0 0 26px rgba(47,107,255,.6);
}
.hero.compact .wordmark-text { font-size: 52px; }
.wordmark:hover .wordmark-text { color: #fff; }

/* ---------------- Page layout ---------------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: 8px 24px 60px; min-height: 50vh; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 342px; gap: 24px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin: 4px 0 14px; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent-2); }
.crumbs svg { width: 12px; height: 12px; }
.page-title { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin: 0 0 18px; flex-wrap: wrap; }
.page-title h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: .01em; }
.page-title p { margin: 4px 0 0; color: var(--text-2); }

/* Fieldset-style blocks (title sits on the border, like the reference) */
.block { position: relative; }
.block-head {
  display: flex; align-items: center; gap: 8px; height: 26px; margin-bottom: -13px; padding: 0 16px;
  position: relative; z-index: 2;
}
.block-head h2 {
  margin: 0; font-size: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em;
  background: var(--bg); padding: 0 6px; display: flex; align-items: center; gap: 7px;
}
.block-head h2 svg { width: 15px; height: 15px; }
.block-head .tools { margin-left: auto; display: flex; gap: 4px; background: var(--bg); padding: 0 6px; }
.block-head .tools button { background: none; border: 0; color: var(--text-2); cursor: pointer; padding: 2px; display: flex; }
.block-head .tools button:hover { color: var(--text); }
.block-body {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  padding: 22px 16px 16px;
}
.block-body.flush { padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.block.collapsed .block-body { display: none; }
.block.collapsed .block-head { margin-bottom: 0; }

/* ---------------- Buttons & inputs ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--panel-3); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { background: #272a35; color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #3c77ff; box-shadow: 0 0 18px var(--accent-glow); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.block-w { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 15px; height: 15px; }

input[type=text], input[type=search], input[type=number], textarea, select {
  background: var(--panel); border: 1px solid var(--line-2); color: var(--text);
  border-radius: var(--radius); padding: 10px 12px; font: inherit; font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 90px; width: 100%; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }

/* ---------------- Avatars, names, UID ---------------- */
.avatar {
  --s: 32px; width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; color: #fff; font-size: calc(var(--s) * .42); text-transform: uppercase;
  background: var(--av, #333); overflow: hidden; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.avatar img { width: 100%; height: 100%; object-fit: contain; padding: 18%; background: #0b1630; }
.avatar.xs { --s: 22px; }
.avatar.sm { --s: 28px; }
.avatar.md { --s: 40px; }
.avatar.lg { --s: 56px; }
.avatar.xl { --s: 96px; }
.avatar.xxl { --s: 190px; }
.avatar .online {
  position: absolute; right: 4%; bottom: 4%; width: 22%; height: 22%; border-radius: 50%;
  background: var(--good); border: 2px solid var(--bg-2);
}

.uname { font-weight: 600; cursor: pointer; }
.uname.g-admin { color: var(--g-admin); text-shadow: 0 0 10px rgba(255,77,109,.45); }
.uname.g-mod { color: var(--g-mod); }
.uname.g-vendor { color: var(--g-vendor); }
.uname.g-premium { color: var(--g-premium); }
.uname.g-member { color: var(--g-member); }
.uname.g-bot { color: var(--g-bot); text-shadow: 0 0 8px rgba(79,155,255,.5); }
.uname.g-admin::before { content: "★ "; font-size: .8em; }

.uid-chip {
  display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600;
  padding: 1px 6px; border-radius: 3px; background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid rgba(47,107,255,.28); letter-spacing: .03em; vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.uid-chip.big { font-size: 13px; padding: 3px 9px; }

.badge {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 3px; background: var(--panel-3); color: var(--text-2);
}
.badge.g-admin { background: rgba(255,77,109,.14); color: var(--g-admin); }
.badge.g-mod { background: rgba(47,211,138,.12); color: var(--g-mod); }
.badge.g-vendor { background: rgba(255,181,71,.13); color: var(--g-vendor); }
.badge.g-premium { background: rgba(167,123,255,.14); color: var(--g-premium); }
.badge.g-bot { background: var(--accent-soft); color: var(--g-bot); }
.badge.good { background: rgba(47,211,138,.12); color: var(--good); }
.badge.bad { background: rgba(255,77,109,.12); color: var(--bad); }
.badge.warn { background: rgba(255,181,71,.12); color: var(--warn); }
.badge.blue { background: var(--accent-soft); color: var(--accent-2); }

.meta { color: var(--muted); font-size: 13px; }
.meta a { color: var(--text-2); }

/* Member hover card */
.hovercard {
  position: fixed; z-index: 80; width: 300px; background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.6); padding: 14px; display: none;
}
.hovercard.show { display: block; }
.hovercard .hc-top { display: flex; gap: 12px; align-items: center; }
.hovercard .hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; text-align: center; }
.hovercard .hc-stats div { background: var(--panel); border-radius: 3px; padding: 6px 4px; }
.hovercard .hc-stats b { display: block; font-size: 15px; }
.hovercard .hc-stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; }

/* ---------------- Shoutbox ---------------- */
.shout-list { height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding-right: 6px; }
.shout { display: flex; align-items: center; gap: 8px; font-size: 15.5px; line-height: 1.35; }
.shout .at { color: var(--accent); font-weight: 500; opacity: .8; }
.shout .msg { display: inline; max-width: none; word-break: break-word; }   /* not the PM chat-bubble .msg */
.shout > span:last-child { min-width: 0; flex: 1; }
.shout .time { color: var(--muted); font-size: 12.5px; margin-left: 6px; white-space: nowrap; }
.shout.sys .sys-ic { width: 22px; display: flex; justify-content: center; color: var(--accent); }
.shout.sys .sys-ic svg { width: 17px; height: 17px; }
.shout-form { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.shout-form input { flex: 1; }
.shout-form .icon-btn { background: none; border: 0; color: var(--accent-2); cursor: pointer; display: flex; padding: 2px; }
.shout-form .icon-btn svg { width: 24px; height: 24px; }
.emoji-pop {
  display: none; position: absolute; right: 50px; bottom: 60px; background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 6px; padding: 8px; gap: 4px; flex-wrap: wrap; width: 230px; z-index: 5;
}
.emoji-pop.open { display: flex; }
.emoji-pop button { background: none; border: 0; font-size: 20px; cursor: pointer; padding: 3px; border-radius: 3px; }
.emoji-pop button:hover { background: var(--panel-3); }

/* ---------------- Node list (categories) ---------------- */
.node {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 110px 290px; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
  transition: border-color .15s, background .15s;
}
.node:hover { border-color: var(--line-2); background: #17181f; }
.node-ic { color: var(--text); display: flex; justify-content: center; }
.node-ic svg { width: 30px; height: 30px; stroke-width: 1.6; }
.node.unread .node-ic { color: var(--accent-2); filter: drop-shadow(0 0 6px var(--accent-glow)); }
.node-main h3 { margin: 0; font-size: 17px; font-weight: 600; }
.node-main p { margin: 3px 0 0; color: var(--text-2); font-size: 13.5px; }
.node-main .subs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13px; }
.node-main .subs a { color: var(--text-2); display: inline-flex; gap: 4px; align-items: center; }
.node-main .subs a::before { content: "•"; color: var(--accent); }
.node-stat { text-align: center; }
.node-stat b { display: block; font-size: 19px; font-weight: 500; }
.node-stat span { font-size: 12px; color: var(--muted); }
.node-last { display: flex; gap: 10px; align-items: center; min-width: 0; }
.node-last .t { min-width: 0; }
.node-last .t a.title { display: block; color: var(--accent-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node-last .t .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node.locked .node-ic { color: var(--muted); }

/* ---------------- Sidebar widgets ---------------- */
.side-list { display: flex; flex-direction: column; gap: 14px; }
.side-item { display: flex; gap: 10px; align-items: flex-start; }
.side-item .t { min-width: 0; }
.side-item a.title { color: var(--accent-2); font-weight: 500; display: block; line-height: 1.3; }
.side-item a.title:hover { color: #fff; }
.side-item .sub { color: var(--text-2); font-size: 14px; }
.stat-rows { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.stat-rows div { display: flex; justify-content: space-between; gap: 10px; }
.stat-rows dt, .stat-rows span:first-child { color: var(--text-2); }
.online-list { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 14px; line-height: 1.6; }
.online-list .uname::after { content: ","; color: var(--muted); font-weight: 400; }
.online-list .uname:last-child::after { content: ""; }
.status-form textarea { min-height: 42px; height: 42px; }
.status-form.open textarea { height: 80px; }
.status-form .actions { display: none; justify-content: flex-end; margin-top: 8px; }
.status-form.open .actions { display: flex; }

/* ---------------- Thread list ---------------- */
.thread-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 120px 200px; gap: 14px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.thread-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.thread-row:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.thread-row:hover { background: #17181f; }
.thread-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.thread-row .title { font-weight: 600; font-size: 15.5px; }
.thread-row .title .badge { margin-right: 6px; vertical-align: 1px; }
.thread-row .counts { font-size: 13px; color: var(--text-2); display: grid; grid-template-columns: auto auto; gap: 0 8px; }
.thread-row .counts b { color: var(--text); font-weight: 500; text-align: right; }
.thread-row .last { text-align: right; font-size: 13px; }
.thread-row.sticky { background: #161a26; }
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tabs button { background: none; border: 1px solid transparent; color: var(--text-2); padding: 6px 12px; border-radius: 3px; cursor: pointer; font-size: 14px; }
.filter-tabs button.active { border-color: var(--line-2); background: var(--panel-2); color: var(--text); }

/* ---------------- Posts (thread view) ---------------- */
.post { display: grid; grid-template-columns: 190px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.postbit { padding: 18px 14px; border-right: 1px solid var(--line); background: #131419; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: var(--radius) 0 0 var(--radius); }
.postbit .uname { font-size: 16px; }
.postbit .title-line { font-size: 12.5px; color: var(--text-2); }
.postbit dl { width: 100%; margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; font-size: 12.5px; gap: 3px 6px; text-align: left; }
.postbit dt { color: var(--muted); }
.postbit dd { margin: 0; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.post-main { padding: 14px 18px; display: flex; flex-direction: column; min-width: 0; }
.post-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.post-body { flex: 1; font-size: 15.5px; line-height: 1.6; word-break: break-word; }
.post-body p { margin: 0 0 10px; }
.post-body blockquote { margin: 0 0 12px; border-left: 3px solid var(--accent); background: var(--panel-2); padding: 8px 12px; color: var(--text-2); border-radius: 0 3px 3px 0; }
.post-body code { background: #0b0c10; padding: 2px 6px; border-radius: 3px; font-size: 13.5px; }
.post-body pre { background: #0b0c10; padding: 12px; border-radius: 4px; overflow-x: auto; border: 1px solid var(--line); }
.post-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.post-foot .acts { display: flex; gap: 14px; color: var(--accent-2); }
.post-foot .acts a, .post-foot .acts button { color: var(--accent-2); background: none; border: 0; cursor: pointer; font: inherit; display: inline-flex; gap: 5px; align-items: center; padding: 0; }
.post-foot .acts .liked { color: var(--g-premium); }
.post-foot .acts svg { width: 14px; height: 14px; }
.reactions { color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.signature { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; }
.reply-box { display: grid; grid-template-columns: 190px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.reply-box .postbit { justify-content: center; }
.reply-box .reply-main { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.reply-box .reply-main .row { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------------- Profile ---------------- */
.profile-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.profile-banner { height: 120px; background: linear-gradient(120deg, #0b2a78, #1856e8 45%, #0d1b44); position: relative; overflow: hidden; }
.profile-banner::after { content: ""; position: absolute; width: 700px; height: 140px; right: -100px; top: 10px; border-radius: 50%; border: 18px solid rgba(255,255,255,.07); transform: rotate(-8deg); }
.profile-top { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 4px; padding: 0 20px; }
.profile-top .avatar.xxl { margin-top: -80px; border: 5px solid var(--bg-2); }
.profile-info { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.profile-info .row1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-info .uname { font-size: 26px; font-weight: 500; }
.profile-info .uname.g-admin::before { font-size: .6em; }
.profile-info .line { font-size: 15px; }
.profile-info .line .lbl { color: var(--accent-2); }
.profile-actions { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
.profile-actions a { color: var(--accent-2); }
.profile-stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0 0; }
.profile-stats > div { text-align: center; padding: 12px 6px; }
.profile-stats b { display: block; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.profile-stats b.uidnum { color: var(--accent-2); text-shadow: 0 0 12px var(--accent-glow); font-family: var(--font-display); font-size: 17px; letter-spacing: .04em; padding: 2px 0; }
.profile-stats span { font-size: 12px; color: var(--muted); text-transform: lowercase; }
.profile-links { display: flex; gap: 22px; padding: 12px 0 12px 220px; font-size: 14px; }
.profile-links a { color: var(--accent-2); display: inline-flex; gap: 4px; align-items: center; }
.tabs { display: flex; gap: 2px; background: #121318; border-top: 1px solid var(--line); padding: 0 10px; overflow-x: auto; }
.tabs a { padding: 12px 12px; color: var(--muted); font-size: 15.5px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs a:hover { color: var(--text); }

.ppost { display: grid; grid-template-columns: 82px minmax(0, 1fr); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.ppost > .av { display: flex; justify-content: center; padding: 16px 0; border-right: 1px solid var(--line); }
.ppost .body { padding: 14px 18px; min-width: 0; }
.ppost .body .content { margin: 6px 0 10px; white-space: pre-wrap; word-break: break-word; }
.ppost .acts { display: flex; gap: 16px; font-size: 13.5px; }
.ppost .acts button { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.ppost .comments { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ppost .comment { display: flex; gap: 10px; background: var(--panel); padding: 8px 10px; border-radius: 3px; font-size: 14px; }
.ppost .comment-form { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.ppost .comment-form input { flex: 1; padding: 8px 10px; }

.about-grid { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; font-size: 15px; }
.about-grid dt { color: var(--text-2); }
.about-grid dd { margin: 0; }

/* ---------------- Store ---------------- */
.store-hero {
  position: relative; border-radius: 6px; overflow: hidden; border: 1px solid #1d3f9e;
  background: #0a1638; min-height: 220px;
  display: flex; align-items: flex-end;
}
.store-hero::before { /* banner sits on the right half, fading into the text panel */
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 58%;
  background: url("../../images/banner.png") center/cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
@media (max-width: 960px) {
  .store-hero::before { width: 100%; opacity: .22; -webkit-mask-image: none; mask-image: none; }
}
.store-hero .inner { position: relative; padding: 26px 30px; max-width: 560px; }
.store-hero h1 { margin: 0 0 6px; font-size: 30px; font-weight: 600; }
.store-hero p { margin: 0 0 16px; color: #c8d3f2; }
.store-hero .row { display: flex; gap: 10px; flex-wrap: wrap; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.product {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.product:hover { transform: translateY(-2px); border-color: rgba(47,107,255,.5); box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 0 1px rgba(47,107,255,.15); }
.product .thumb { height: 130px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product .thumb svg { width: 52px; height: 52px; color: #fff; stroke-width: 1.5; position: relative; z-index: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.product .thumb::after { content: ""; position: absolute; width: 140%; height: 80px; border-radius: 50%; border: 10px solid rgba(255,255,255,.08); transform: rotate(-10deg); }
.product .thumb .badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(4px); }
.product .body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product h3 { margin: 0; font-size: 17px; font-weight: 600; }
.product p { margin: 0; color: var(--text-2); font-size: 13.5px; flex: 1; }
.product .seller { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.product .foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); }
.price { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.stars { color: var(--warn); font-size: 13px; letter-spacing: 1px; }

.store-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.store-cats { display: flex; flex-direction: column; gap: 2px; }
.store-cats button { text-align: left; background: none; border: 0; color: var(--text-2); padding: 9px 12px; border-radius: 3px; cursor: pointer; font-size: 15px; display: flex; justify-content: space-between; }
.store-cats button:hover { background: var(--panel); color: var(--text); }
.store-cats button.active { background: var(--accent-soft); color: var(--accent-2); }
.store-cats button span { color: var(--muted); font-size: 13px; }

.product-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.product-page .cover { height: 260px; border-radius: 6px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-page .cover svg { width: 90px; height: 90px; color: #fff; stroke-width: 1.3; }
.buy-card { position: sticky; top: calc(var(--nav-h) + 16px); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.plan-opts { display: flex; flex-direction: column; gap: 8px; }
.plan-opt { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line-2); border-radius: 4px; padding: 10px 12px; cursor: pointer; }
.plan-opt input { display: none; }
.plan-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); }
.feature-list li svg { color: var(--good); margin-top: 3px; }
.review { border-top: 1px solid var(--line); padding: 12px 0; display: flex; gap: 12px; }

/* ---------------- Wallet ---------------- */
.wallet-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wcard { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.wcard .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.wcard .val { font-size: 26px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.wcard.main { background: linear-gradient(135deg, #1446d6, #0d2a85); border-color: #2d5cf0; position: relative; overflow: hidden; }
.wcard.main::after { content: ""; position: absolute; width: 360px; height: 90px; right: -110px; bottom: -20px; border-radius: 50%; border: 10px solid rgba(255,255,255,.1); transform: rotate(-12deg); }
.wcard.main .lbl { color: #b9cbff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: rgba(255,255,255,.015); }
.amt-pos { color: var(--good); font-variant-numeric: tabular-nums; }
.amt-neg { color: var(--bad); font-variant-numeric: tabular-nums; }
.coin-row { display: flex; gap: 8px; flex-wrap: wrap; }
.coin-row button { flex: 1; min-width: 70px; }
.coin-row button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.addr { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: #0b0c10; border: 1px solid var(--line); border-radius: 4px; padding: 10px; word-break: break-all; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.license { font-family: ui-monospace, Consolas, monospace; letter-spacing: .05em; color: var(--accent-2); }

/* ---------------- Bot dashboard ---------------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chart-box { height: 240px; position: relative; }
.chart-box svg { width: 100%; height: 100%; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--panel-3); }
.pill .d { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.switch { width: 40px; height: 22px; border-radius: 99px; background: var(--panel-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: left .15s, background .15s; }
.switch.on { background: var(--accent); border-color: var(--accent); }
.switch.on::after { left: 20px; background: #fff; }

/* ---------------- Members ---------------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.member-card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.member-card .t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }

/* ---------------- Discord ---------------- */
.discord-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.discord-card .left { background: linear-gradient(135deg, #2f6bff, #5865f2); padding: 34px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.discord-card .left h2 { margin: 0; font-size: 28px; }
.discord-card .right { background: var(--panel); padding: 24px; }

/* ---------------- Modal & toast ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,5,8,.75); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal-card h3 { margin: 0 0 14px; font-size: 20px; }
.modal-x { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--text-2); cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: var(--panel-3); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); padding: 10px 16px; border-radius: 4px; z-index: 120; transition: all .25s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid #1c1e25; background: #0b0c10; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 26px 24px; display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { height: 34px; }
.footer-brand div { display: flex; flex-direction: column; font-size: 14px; }
.footer-brand span { color: var(--muted); }
.footer-links { display: flex; gap: 18px; font-size: 14px; color: var(--text-2); flex-wrap: wrap; }
.footer-note { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; border-top: 1px solid #191b22; padding-top: 14px; }

/* ---------------- Auth, forms, editor, pager ---------------- */
.auth-wrap { max-width: 440px; margin: 10px auto 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack input[type=text], .stack input[type=email], .stack input[type=password], .stack select { width: 100%; }
input[type=email], input[type=password] {
  background: var(--panel); border: 1px solid var(--line-2); color: var(--text);
  border-radius: var(--radius); padding: 10px 12px; font: inherit; font-size: 14px; outline: none;
}
.form-error { color: var(--bad); font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
label.check input { margin-top: 3px; accent-color: var(--accent); }
.editor { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); }   /* no overflow:hidden, so the emote/colour pickers aren't cut off */
.editor > .editor-bar { border-radius: var(--radius) var(--radius) 0 0; }
.editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.editor-bar { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.editor-bar button { background: none; border: 0; color: var(--text-2); padding: 6px 8px; border-radius: 3px; cursor: pointer; display: flex; }
.editor-bar button:hover { background: var(--panel-3); color: var(--text); }
.editor-bar svg { width: 15px; height: 15px; }
.editor textarea { border: 0; border-radius: 0; box-shadow: none !important; background: transparent; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px 0; }
.pager a { min-width: 34px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--panel); color: var(--text-2); font-size: 14px; }
.pager a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .gap { color: var(--muted); padding: 6px 2px; }
.login-prompt { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin: 12px 0; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-2); font-size: 14px; }
.login-prompt a { color: var(--accent-2); font-weight: 500; }
.login-prompt svg { color: var(--muted); }
.shout-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 0 4px; opacity: 0; }
.shout:hover .shout-del { opacity: 1; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; padding: 0; }
.link-btn:hover { color: var(--bad); }
.nav-user .btn.sm { padding: 6px 12px; }
.nav-user .me-drop > a::after { display: none; }
.nav-user .me-drop > a { text-transform: none; letter-spacing: 0; color: var(--text); font-size: 16px; font-weight: 600; padding: 0; }
.nav-drop.right { left: auto; right: 0; top: 100%; }
.me-drop { height: var(--nav-h); align-items: center; }
.loading { padding: 60px 0; }
@media (max-width: 960px) {
  .nav-user .me-drop .nav-drop { display: none; position: absolute; background: var(--panel-2); border: 1px solid var(--line-2); padding: 6px; }
  .nav-user .me-drop:hover .nav-drop, .nav-user .me-drop:focus-within .nav-drop { display: block; }
}

/* ---------------- Roles: Founder & Support ---------------- */
:root { --g-founder: #7cc4ff; --g-support: #38d4e0; }
.uname.g-founder {
  background: linear-gradient(90deg, #ffffff, #7cc4ff 40%, #2f6bff 70%, #ffffff);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: founderShine 4s linear infinite; filter: drop-shadow(0 0 6px rgba(79,155,255,.55));
}
.uname.g-founder::before { content: "♛ "; color: #7cc4ff; -webkit-text-fill-color: #7cc4ff; }
@keyframes founderShine { to { background-position: 200% center; } }
.uname.g-support { color: var(--g-support); }
.badge.g-founder { background: linear-gradient(90deg, rgba(47,107,255,.35), rgba(124,196,255,.25)); color: #dff0ff; box-shadow: inset 0 0 0 1px rgba(124,196,255,.45); }
.badge.g-support { background: rgba(56,212,224,.12); color: var(--g-support); }
.badge.g-member { background: var(--panel-3); color: var(--text-2); }

/* ---------------- Admin & moderation ---------------- */
.nav-item > a.nav-admin { color: var(--g-admin); }
.notice { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.notice.bad { background: rgba(255,77,109,.1); border: 1px solid rgba(255,77,109,.35); color: #ffc2cd; }
.notice svg { flex: none; }
.mod-note { margin-top: 6px; font-size: 13.5px; color: #ffc2cd; background: rgba(255,77,109,.08); border: 1px solid rgba(255,77,109,.25); border-radius: 4px; padding: 6px 10px; }
.mod-status { margin: -4px 0 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mod-status .meta { width: 100%; }
.mod-sec { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.mod-sec h4 { margin: 0; font-size: 15px; display: flex; gap: 6px; align-items: center; font-weight: 600; }
.mod-sec h4 svg { width: 15px; height: 15px; color: var(--accent-2); }
.mod-sec h4 .meta { font-weight: 400; }
.mod-sec select, .mod-sec input { padding: 8px 10px; }
.mod-sec .btn { align-self: flex-start; }
.btn.warn-btn { background: rgba(255,181,71,.15); border-color: rgba(255,181,71,.4); color: var(--warn); }
.btn.danger-btn { background: rgba(255,77,109,.15); border-color: rgba(255,77,109,.45); color: var(--bad); }
.modal-card { max-width: 540px; }
.admin-tabs { margin-bottom: 18px; }
.admin-tabs a { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border: 1px solid transparent; border-radius: 3px; color: var(--text-2); font-size: 14px; }
.admin-tabs a.active { border-color: var(--line-2); background: var(--panel-2); color: var(--text); }
.admin-tabs a svg { width: 15px; height: 15px; }
.admin-tbl { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.admin-tbl .tbl td { white-space: nowrap; }
.admin-tbl .avatar { vertical-align: middle; margin-right: 4px; }
.perm-tbl td:not(:first-child), .perm-tbl th { text-align: center; }
.shout-del + .shout-del { margin-left: -4px; }

/* ---------------- Profile customization ---------------- */
.avatar.has-img { background: #0b0c10; }
.avatar.has-img img { padding: 0; object-fit: cover; background: none; width: 100%; height: 100%; border-radius: 50%; }
.profile-banner { height: clamp(120px, 20vw, 250px); background-size: cover; background-position: center; }
.profile-banner.has-img::after { display: none; }
.banner-edit {
  position: absolute; z-index: 2; right: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center;
  background: rgba(8,10,16,.65); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); color: #fff;
  padding: 7px 12px; border-radius: 99px; font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.banner-edit:hover { background: rgba(8,10,16,.85); color: #fff; }
.banner-edit svg { width: 15px; height: 15px; }
.banner-rm { right: auto; left: 12px; padding: 7px 9px; }
.editor-card { overflow: visible; }
.editor-head { display: flex; gap: 18px; align-items: flex-start; padding: 0 20px 16px; margin-top: -48px; position: relative; flex-wrap: wrap; }
.editor-head > div { margin-top: 56px; }
.editor-head .up-status { margin-top: 60px; }
.editor-head .uname { font-size: 22px; }
.avatar-edit { position: relative; cursor: pointer; border-radius: 50%; border: 5px solid var(--bg-2); display: block; }
.avatar-edit > span:last-of-type {
  position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5); color: #fff; opacity: 0; transition: opacity .15s;
}
.avatar-edit:hover > span:last-of-type { opacity: 1; }
.avatar-edit > span:last-of-type svg { width: 26px; height: 26px; }
.up-status { margin-left: auto; color: var(--text-2); font-size: 14px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.swatches input[type=color] { width: 34px; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); cursor: pointer; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; cursor: pointer; font-family: inherit; }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip svg { width: 13px; height: 13px; }
.signature { max-height: 7.5em; overflow: hidden; }
.signature img { display: none; }
a.mention { color: var(--accent-2); background: var(--accent-soft); padding: 0 4px; border-radius: 3px; font-weight: 500; }
.post.flash { animation: flash 2s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 2px var(--accent), 0 0 24px var(--accent-glow); } 100% { box-shadow: none; } }
.hovercard { padding: 0; overflow: hidden; }
.hovercard .hc-banner { height: 64px; background-size: cover; background-position: center; }
.hovercard .hc-top { padding: 0 14px; margin-top: -24px; align-items: flex-end; }
.hovercard .hc-top .avatar { border: 3px solid var(--panel-2); box-sizing: content-box; }
.hovercard .hc-stats { padding: 0 14px 14px; }
.mod-mini { display: inline; }

/* ---------------- Alerts ---------------- */
.nav-icon.bell { position: relative; }
.bell-count {
  position: absolute; top: -4px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: var(--bad); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #16171d;
}
.alert-list { display: flex; flex-direction: column; }
.alert-item { display: flex; gap: 12px; align-items: center; padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 4px; position: relative; color: var(--text); font-size: 15px; }
.alert-item:last-child { border-bottom: 0; }
.alert-item:hover { background: var(--panel); color: var(--text); }
.alert-item.unread { background: var(--accent-soft); }
.alert-item.unread::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); }
.alert-ic { position: absolute; left: 38px; top: 36px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--bg-2); }
.alert-ic svg { width: 11px; height: 11px; }

@media (max-width: 720px) {
  .editor-head { margin-top: -36px; padding: 0 14px 14px; }
  .editor-head > div { margin-top: 42px; }
  .editor-head .avatar.xl { --s: 76px; }
}

/* ---------------- Round 3: announcements, badges, reactions, PMs, reports, About page ---------------- */
.announce { background: var(--accent-soft); border-bottom: 1px solid rgba(47,107,255,.35); }
.announce.warn { background: rgba(255,181,71,.1); border-color: rgba(255,181,71,.35); }
.announce.good { background: rgba(47,211,138,.1); border-color: rgba(47,211,138,.35); }
.announce-inner { max-width: var(--wrap); margin: 0 auto; padding: 9px 24px; display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.announce-inner svg { color: var(--accent-2); flex: none; }
.announce.warn svg { color: var(--warn); } .announce.good svg { color: var(--good); }
.announce-inner > span { flex: 1; }
.announce-inner a { color: var(--accent-2); text-decoration: underline; }
.announce-inner button { background: none; border: 0; color: var(--text-2); font-size: 20px; cursor: pointer; line-height: 1; }
.count-pill { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 600; align-items: center; justify-content: center; }
.sub-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; text-transform: none; }
.sub-badge.premium { background: linear-gradient(90deg, rgba(124,58,237,.3), rgba(47,107,255,.3)); color: #e3dcff; box-shadow: inset 0 0 0 1px rgba(167,123,255,.45); }
.sub-badge.basic { background: rgba(47,211,138,.12); color: var(--good); box-shadow: inset 0 0 0 1px rgba(47,211,138,.35); }
.postbit .sub-badge { margin-top: 2px; }
.node.locked .node-main h3 a { color: var(--text-2); }
.notice.info { background: var(--accent-soft); border: 1px solid rgba(47,107,255,.35); color: #cfe0ff; }
.notice.warn { background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.35); color: #ffe1b0; }
.notice.good { background: rgba(47,211,138,.08); border: 1px solid rgba(47,211,138,.35); color: #bff3da; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts-box:empty { display: none; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.btn.discord-btn { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord-btn:hover { background: #4752c4; color: #fff; }
.btn.on-btn { border-color: var(--accent); color: var(--accent-2); }
select.btn { appearance: auto; padding-right: 8px; }

/* intro card for guests */
.intro-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 6px; background: linear-gradient(110deg, rgba(47,107,255,.18), rgba(91,33,182,.14)); border: 1px solid rgba(47,107,255,.35); color: var(--text); }
.intro-card:hover { color: var(--text); border-color: var(--accent); }
.intro-card b { display: block; font-size: 17px; margin-bottom: 2px; }
.intro-card span { color: var(--text-2); font-size: 14.5px; }
.intro-card .btn { flex: none; color: #fff; }

/* thread list unread + tags */
.thread-row.unread .title a { color: #fff; }
.unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); margin-right: 7px; vertical-align: 2px; }
.title-row { align-items: flex-end; }
.title-row select { width: 100%; }

/* solution */
.solution-box { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; margin-bottom: 14px; border-radius: 4px; background: rgba(47,211,138,.08); border: 1px solid rgba(47,211,138,.35); color: var(--text-2); font-size: 14.5px; }
.solution-box b { color: var(--good); display: flex; gap: 6px; align-items: center; }
.solution-box b svg { width: 16px; height: 16px; }
.post.is-solution { border-color: rgba(47,211,138,.5); box-shadow: 0 0 0 1px rgba(47,211,138,.2); }

/* reactions */
.react-sum { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 2px 8px; font-size: 14px; }
.react-sum small { font-size: 11px; color: var(--text-2); margin-left: 1px; }
.react-sum em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.react-wrap { position: relative; display: inline-flex; }
.react-pop { display: none; position: absolute; bottom: calc(100% + 6px); right: -8px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 4px 6px; gap: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 5; white-space: nowrap; }
.react-wrap:hover .react-pop, .react-wrap:focus-within .react-pop { display: flex; }
.react-pop button { font-size: 20px !important; padding: 3px 5px !important; border-radius: 50%; transition: transform .1s; }
.react-pop button:hover { transform: scale(1.25); }
.react-pop button.on { background: var(--accent-soft); }
.post-img { display: inline-block; margin: 6px 0; }
.post-img img { max-width: 100%; max-height: 520px; border-radius: 6px; border: 1px solid var(--line-2); }
.editor-status { margin-left: auto; color: var(--text-2); font-size: 13px; align-self: center; padding-right: 6px; }

/* trophies */
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.trophy { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; opacity: .45; position: relative; }
.trophy.got { opacity: 1; border-color: rgba(255,181,71,.35); }
.trophy b { display: block; font-size: 15px; }
.trophy span { font-size: 13px; color: var(--text-2); }
.t-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--panel-3); color: var(--muted); }
.trophy.got .t-ic { background: linear-gradient(135deg, #ffb547, #c2410c); color: #fff; }
.t-check { position: absolute; top: 8px; right: 8px; width: 14px; height: 14px; color: var(--good); }

/* private messages */
.convo-list { display: flex; flex-direction: column; }
.convo { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 4px; color: var(--text); border-bottom: 1px solid var(--line); min-width: 0; }
.convo:last-child { border-bottom: 0; }
.convo:hover, .convo.on { background: var(--panel); color: var(--text); }
.convo.unread { background: var(--accent-soft); }
.convo .grow { min-width: 0; display: flex; flex-direction: column; }
.convo-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.chat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; height: min(70vh, 680px); }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg .bubble { background: var(--panel-2); border: 1px solid var(--line-2); padding: 8px 12px; border-radius: 14px 14px 14px 4px; word-break: break-word; font-size: 15px; }
.msg.mine .bubble { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg.mine .bubble a { color: #fff; text-decoration: underline; }
.msg .meta { font-size: 11.5px; margin-top: 2px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.chat-form textarea { flex: 1; min-height: 44px; resize: none; }
.chat-form .form-error { width: 100%; }

/* reports */
.report-list { display: flex; flex-direction: column; gap: 12px; }
.report-card { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--bad); border-radius: 4px; padding: 12px 14px; font-size: 14.5px; }
.report-excerpt { margin: 8px 0; border-left: 3px solid var(--line-2); background: var(--bg-2); padding: 8px 12px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }

/* track record */
.tr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.tr-grid > div { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 10px; }
.tr-grid span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tr-grid b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tr-grid.compact { grid-template-columns: 1fr 1fr; }
.tr-grid.compact b { font-size: 17px; }
.tr-grid b.up, .year-bars b.up { color: var(--good); }
.tr-grid b.down, .year-bars b.down { color: var(--bad); }
.tr-empty { background: var(--panel); border: 1px dashed var(--line-2); border-radius: 4px; padding: 12px; font-size: 14px; color: var(--text-2); }
.tr-empty b { color: var(--text); }
.tr-label { font-size: 12px; margin: 8px 0 4px; }

/* About A Bot page */
.abot-hero { padding: 26px 28px; border-radius: 8px; margin-bottom: 22px; background: radial-gradient(600px 220px at 85% 10%, rgba(47,107,255,.28), transparent 70%), linear-gradient(135deg, #10172e, #0d0f16); border: 1px solid rgba(47,107,255,.3); }
.abot-hero h1 { margin: 12px 0 8px; font-size: clamp(26px, 4vw, 38px); font-weight: 600; line-height: 1.15; }
.abot-hero .lead { color: var(--text-2); font-size: 17px; max-width: 760px; margin: 0 0 18px; }
.abot-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-bottom: 22px; }
.how { display: flex; flex-direction: column; gap: 14px; }
.how-step { display: flex; gap: 14px; }
.how-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); display: flex; align-items: center; justify-content: center; }
.how-step b { font-size: 16px; }
.how-step p { margin: 2px 0 0; color: var(--text-2); font-size: 14.5px; }
.year-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.yb { display: grid; grid-template-columns: 90px 1fr 70px; gap: 10px; align-items: center; font-size: 14px; }
.yb b { text-align: right; font-variant-numeric: tabular-nums; }
.bar-track { height: 10px; background: var(--panel); border-radius: 99px; overflow: hidden; }
.bar { height: 100%; background: linear-gradient(90deg, #1f9d68, var(--good)); border-radius: 99px; }
.bar.neg { background: linear-gradient(90deg, #b3263f, var(--bad)); }
.feature-list.honest li svg { color: var(--warn); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 10px 0; font-weight: 500; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 12px; color: var(--text-2); }
.disclaimer { display: flex; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }
.disclaimer svg { flex: none; color: var(--warn); margin-top: 2px; }
.disclaimer b { color: var(--text); }
.locked-page { text-align: center; padding: 60px 16px; max-width: 520px; margin: 0 auto; }
.locked-page h2 { margin: 12px 0 6px; }
.locked-page p { color: var(--text-2); margin: 0 0 18px; }
.lock-ic { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(124,58,237,.35), rgba(47,107,255,.35)); color: #fff; }
.lock-ic svg { width: 28px; height: 28px; }

@media (max-width: 1180px) {
  .abot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .inbox-layout { grid-template-columns: 1fr; }
  .inbox-side { display: none; }
  .chat { height: 72vh; }
}
@media (max-width: 720px) {
  .intro-card { flex-direction: column; align-items: flex-start; }
  .abot-hero { padding: 20px 16px; }
  .yb { grid-template-columns: 74px 1fr 58px; }
  .announce-inner { padding: 8px 16px; }
  .msg { max-width: 90%; }
  .react-pop { right: auto; left: -40px; }
}

/* live stats */
.live-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 13.5px; }
.live-meta .pill { font-size: 13px; }
.fresh, .stale { display: inline-flex; align-items: center; gap: 5px; }
.fresh { color: var(--good); }
.stale { color: var(--warn); }
.fresh svg, .stale svg { width: 14px; height: 14px; }
.tr-label .fresh, .tr-label .stale { font-size: 12px; }
.live-kpis .val.up { color: var(--good); }
.live-kpis .val.down { color: var(--bad); }
.eq-chart { width: 100%; height: auto; display: block; }
.eq-chart text { fill: var(--text-2); font-size: 13px; font-family: var(--font); }
.eq-chart line.grid { stroke: var(--line); stroke-dasharray: 3 5; }
.eq-chart line.zero { stroke: var(--line-2); }
.eq-chart circle { cursor: pointer; }
.eq-chart circle:hover { r: 6; }
@media (max-width: 720px) {
  .live-meta { align-items: flex-start; }
  .live-kpis { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .live-kpis .wcard { padding: 12px; }
  .live-kpis .val { font-size: 21px; }
}

/* avatar online dot: sits on the rim instead of being clipped by the circle */
.avatar { overflow: visible; }
.avatar img { border-radius: 50%; }
.avatar .online {
  width: 22%; height: 22%; min-width: 9px; min-height: 9px; max-width: 26px; max-height: 26px;
  right: 3%; bottom: 3%; border: 3px solid var(--bg-2); box-sizing: border-box; box-shadow: 0 0 6px rgba(47,211,138,.55);
}
.avatar.xxl .online { right: 8%; bottom: 8%; border-width: 4px; }
.avatar.sm .online, .avatar.xs .online { border-width: 2px; }
.avatar-edit .online, .hovercard .online { display: none; }

/* image cropper */
.crop-stage { position: relative; margin: 0 auto; overflow: hidden; background: #0b0c10; touch-action: none; cursor: grab; user-select: none; }
.crop-stage.dragging { cursor: grabbing; }
.crop-stage.round { width: min(280px, 72vw); aspect-ratio: 1; }
.crop-stage.round::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.6); outline: 2px solid rgba(255,255,255,.6); outline-offset: -2px; pointer-events: none; }
.crop-stage.wide { width: 100%; aspect-ratio: 15 / 4; border-radius: 6px; outline: 2px solid rgba(255,255,255,.35); outline-offset: -2px; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-tools { display: flex; align-items: center; gap: 10px; max-width: 320px; margin: 14px auto 0; color: var(--text-2); }
.crop-tools input[type=range] { flex: 1; accent-color: var(--accent); }

/* ================= Cosmetics ================= */
/* Avatar frames: a ring drawn around the avatar (masked so the middle stays clear) */
.avatar.framed::after {
  --t: max(2px, calc(var(--s) * .075));
  content: ""; position: absolute; inset: calc(var(--t) * -1.35); border-radius: 50%; padding: var(--t);
  background: var(--ring, #4f9bff); pointer-events: none; z-index: 1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.avatar.framed .online { z-index: 2; }
.fr-f_blue::after   { --ring: #4f9bff; filter: drop-shadow(0 0 4px rgba(79,155,255,.8)); }
.fr-f_green::after  { --ring: linear-gradient(135deg, #2fd38a, #0f8f5a); filter: drop-shadow(0 0 4px rgba(47,211,138,.6)); }
.fr-f_red::after    { --ring: linear-gradient(135deg, #ff4d6d, #a3142f); filter: drop-shadow(0 0 4px rgba(255,77,109,.6)); }
.fr-f_gold::after   { --ring: conic-gradient(#ffe08a, #c98b16, #fff3c4, #b8730a, #ffe08a); filter: drop-shadow(0 0 4px rgba(255,200,80,.55)); }
.fr-f_early::after  { --ring: repeating-conic-gradient(#ffd166 0 12deg, #fff6d5 12deg 24deg); filter: drop-shadow(0 0 4px rgba(255,209,102,.6)); }
.fr-f_solver::after { --ring: conic-gradient(#2fd38a, #38d4e0, #2fd38a); }
.fr-f_orbit::after  { --ring: conic-gradient(transparent 0 12%, #4f9bff 28%, #fff 33%, transparent 46% 62%, #2f6bff 78%, #fff 83%, transparent 96%); animation: cosSpin 3.5s linear infinite; filter: drop-shadow(0 0 5px rgba(79,155,255,.9)); }
.fr-f_fire::after   { --ring: conic-gradient(#ff3d00, #ff9100, #ffea00, #ff9100, #ff3d00, #ff9100, #ff3d00); animation: cosSpin 2.2s linear infinite, cosFlicker 1.1s ease-in-out infinite alternate; }
.fr-f_glitch::after { --ring: conic-gradient(#ff00e1 0 25%, #00e5ff 0 50%, #ff00e1 0 75%, #00e5ff 0); animation: cosGlitch 1.6s steps(2, jump-none) infinite; }
.fr-f_veteran::after{ --ring: conic-gradient(#a77bff, #2f6bff, #38d4e0, #a77bff); animation: cosSpin 7s linear infinite; filter: drop-shadow(0 0 4px rgba(167,123,255,.7)); }
@keyframes cosSpin { to { transform: rotate(360deg); } }
@keyframes cosFlicker { from { filter: drop-shadow(0 0 3px rgba(255,120,0,.6)); } to { filter: drop-shadow(0 0 9px rgba(255,170,0,.95)); } }
@keyframes cosGlitch { 0% { transform: rotate(0) translate(0); } 25% { transform: rotate(8deg) translate(1px,-1px); } 50% { transform: rotate(-6deg) translate(-1px,1px); } 75% { transform: rotate(4deg); } 100% { transform: rotate(0); } }

/* Name styles (override the group colour) */
.uname[class*="ns-"] { background: none; -webkit-background-clip: border-box; background-clip: border-box; animation: none; filter: none; text-shadow: none; }
.uname.ns-n_ice    { color: #9be7ff; -webkit-text-fill-color: #9be7ff; }
.uname.ns-n_mint   { color: #6ff0c2; -webkit-text-fill-color: #6ff0c2; }
.uname.ns-n_violet { color: #b69cff; -webkit-text-fill-color: #b69cff; }
.uname.ns-n_gold, .uname.ns-n_sunset, .uname.ns-n_aurora, .uname.ns-n_streak { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.uname.ns-n_gold   { background-image: linear-gradient(90deg, #fff1b8, #f5b829 45%, #ffe08a 70%, #c98b16); }
.uname.ns-n_sunset { background-image: linear-gradient(90deg, #ffb347, #ff5e62 55%, #ff3cac); }
.uname.ns-n_aurora { background-image: linear-gradient(90deg, #2fd38a, #38d4e0, #7c5cff, #ff3cac, #2fd38a); background-size: 300% auto; animation: cosShine 5s linear infinite; }
.uname.ns-n_streak { background-image: linear-gradient(90deg, #ff3d00, #ffb300, #ff3d00); background-size: 200% auto; animation: cosShine 2s linear infinite; }
.uname.ns-n_neon   { color: #fff; -webkit-text-fill-color: #fff; text-shadow: 0 0 6px #4f9bff, 0 0 14px #2f6bff; }
@keyframes cosShine { to { background-position: 300% center; } }
.flair { margin-left: 4px; font-size: .95em; line-height: 1; display: inline-block; vertical-align: baseline; }
@media (prefers-reduced-motion: reduce) {
  .avatar.framed::after, .uname[class*="ns-"] { animation: none !important; }
}

/* Shop */
.points-box { display: flex; flex-direction: column; align-items: flex-end; background: linear-gradient(135deg, rgba(47,107,255,.18), rgba(124,58,237,.14)); border: 1px solid rgba(47,107,255,.35); border-radius: 8px; padding: 10px 16px; }
.points-box span { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.points-box b { font-size: 26px; font-variant-numeric: tabular-nums; }
.points-box em { font-style: normal; font-size: 13px; color: var(--warn); }
.cos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cos-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; }
.cos-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cos-card.equipped { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.cos-card.locked .cos-prev { opacity: .55; }
.cos-prev { height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: radial-gradient(circle at 50% 40%, #1b2140, #101219 70%); }
.prev-name { font-size: 20px; }
.cos-info b { font-size: 15.5px; }
.cos-tags { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 2px; min-height: 4px; }
.sub-badge.unlock { background: rgba(255,181,71,.13); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(255,181,71,.35); }
.sub-badge.anim { background: rgba(56,212,224,.12); color: #8be9f0; box-shadow: inset 0 0 0 1px rgba(56,212,224,.35); }
.cos-card .btn { margin-top: auto; }
.earn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.earn-list li { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); }
.earn-list b { color: var(--good); white-space: nowrap; text-align: right; }
.earn-list small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.pts-hist { display: flex; flex-direction: column; font-size: 13.5px; }
.pts-hist > div { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pts-hist > div:last-child { border-bottom: 0; }
.pts-hist em { grid-column: 1 / -1; font-style: normal; color: var(--muted); font-size: 12px; }
.drop-points { display: flex !important; justify-content: space-between; gap: 10px; background: var(--accent-soft); color: var(--text) !important; margin-bottom: 4px; }
.drop-points b { color: var(--accent-2); }

/* Leaderboards */
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.lb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lb li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); border-radius: 4px; }
.lb li:last-child { border-bottom: 0; }
.lb li.me { background: var(--accent-soft); }
.lb li .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb small { color: var(--muted); font-size: 11.5px; width: 62px; }
.lb-pos { width: 24px; height: 24px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--panel-3); color: var(--text-2); }
.lb-pos.top1 { background: linear-gradient(135deg, #ffe08a, #c98b16); color: #2a1d00; }
.lb-pos.top2 { background: linear-gradient(135deg, #f1f4f9, #9aa4b5); color: #1b1f27; }
.lb-pos.top3 { background: linear-gradient(135deg, #f0b27a, #a0522d); color: #2a1206; }

/* keep the top menu on one line with the extra items */
@media (max-width: 1340px) and (min-width: 961px) {
  .nav-links { gap: 0; }
  .nav-item > a { padding: 0 8px; font-size: 13.5px; gap: 5px; }
  .nav-item > a svg { display: none; }
  .nav-item > a .caret { display: inline; }
  .topnav-inner { gap: 10px; }
  .nav-me .uid-chip { display: none; }
}

/* register steps */
.steps { display: flex; gap: 6px; font-size: 13px; }
.steps span { flex: 1; text-align: center; padding: 6px 8px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.steps span.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.steps span.done { border-color: rgba(47,211,138,.4); color: var(--good); }
.notice a { color: inherit; text-decoration: underline; }

/* utility */
.row-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.text2 { color: var(--text-2); }
.mt0 { margin-top: 0; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hide { display: none !important; }
[hidden] { display: none !important; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 1fr; }
  .node { grid-template-columns: 40px minmax(0, 1fr) 90px; }
  .node-last { display: none; }
  .wallet-cards, .kpis { grid-template-columns: repeat(2, 1fr); }
  .product-page { grid-template-columns: 1fr; }
  .buy-card { position: static; }
}
@media (max-width: 960px) {
  .nav-burger, .nav-brand { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; height: auto;
    background: var(--panel-2); border-bottom: 1px solid var(--line-2); padding: 8px; gap: 0; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-item { flex-direction: column; }
  .nav-item > a { padding: 12px; }
  .nav-item.active > a::after { bottom: 6px; right: auto; width: 40px; }
  .nav-drop { position: static; display: block; border: 0; box-shadow: none; background: transparent; padding: 0 0 6px 30px; }
  .store-layout { grid-template-columns: 1fr; }
  .store-cats { flex-direction: row; overflow-x: auto; }
  .store-cats button { white-space: nowrap; }
  .store-cats button span { margin-left: 8px; }
  .discord-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topnav-inner, .page, .searchbar { padding-left: 16px; padding-right: 16px; }
  .nav-me span.n, .nav-me .uid-chip { display: none; }
  .hero { height: 170px; }
  .wordmark { gap: 12px; }
  .wordmark-mark { height: 56px; }
  .wordmark-text { font-size: 33px; }   /* "A MARKET" must fit a 360px phone */
  .hero.compact { height: 110px; }
  .hero.compact .wordmark-mark { height: 44px; }
  .hero.compact .wordmark-text { font-size: 27px; }
  .node { grid-template-columns: 34px minmax(0, 1fr); padding: 14px; }
  .node-stat { display: none; }
  .thread-row { grid-template-columns: 36px minmax(0, 1fr); }
  .thread-row .counts, .thread-row .last { display: none; }
  .post, .reply-box { grid-template-columns: minmax(0, 1fr); }
  .reply-main, .editor, .post-main { min-width: 0; }
  .postbit { flex-direction: row; flex-wrap: wrap; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; padding: 12px; }
  .postbit .avatar.lg { --s: 40px; }
  .postbit dl { display: none; }
  .reply-box .postbit { display: none; }
  .profile-top { grid-template-columns: 1fr; padding: 0 16px; }
  .profile-top .avatar.xxl { --s: 120px; margin-top: -60px; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
  .profile-links { padding-left: 16px; flex-wrap: wrap; gap: 12px; }
  .profile-actions { margin-left: 0; }
  .wallet-cards, .kpis, .grid-2 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2px; }
  .about-grid dd { margin-bottom: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
  .shout { font-size: 14.5px; flex-wrap: wrap; }
  .tbl-wrap { overflow-x: auto; }
  .store-hero .inner { padding: 20px; }
  .store-hero h1 { font-size: 24px; }
}

/* =========================================================
   Round 5: emotes, preview, drafts, quests, checklist, showcase,
   bookmarks, blocking, security pages, seasonal items, light theme
   ========================================================= */
/* Emotes */
.emote { display: inline-block; vertical-align: -3px; font-size: 1.15em; line-height: 1; }
img.emote { width: 20px; height: 20px; object-fit: contain; vertical-align: -4px; }
.emote-badge { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .06em; vertical-align: 1px; line-height: 1.5; }
.emote-badge.gm { background: rgba(255,181,71,.16); color: var(--warn); }
.emote-badge.wagmi, .emote-badge.lfg { background: rgba(47,211,138,.15); color: var(--good); }
.emote-badge.ngmi, .emote-badge.stop { background: rgba(255,77,109,.15); color: var(--bad); }
.emote-badge.exit { background: var(--accent-soft); color: var(--accent-2); }
.emote-wrap { position: relative; display: inline-flex; }
.emote-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: none; flex-wrap: wrap; gap: 2px; width: 252px; padding: 6px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.emote-pop.open { display: flex; }
.emote-pop button { background: none; border: 0; padding: 5px 6px; border-radius: 3px; cursor: pointer; color: var(--text); min-width: 36px; }
.emote-pop button:hover { background: var(--panel-3); }
.emoji-pop .emote-pop { display: flex; position: static; width: 100%; padding: 0; border: 0; box-shadow: none; background: none; }
.emoji-pop .emote-pop button { font-size: 15px; }
.emoji-sep { width: 100%; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 4px 2px; border-top: 1px solid var(--line); margin-top: 4px; }

/* Editor preview + drafts */
.editor-bar .preview-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; width: auto !important; padding: 0 8px !important; }
.editor-bar .preview-btn + .editor-status { margin-left: 8px; }
.editor-preview { min-height: 120px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.editor.previewing .editor-bar .preview-btn { color: var(--accent-2); }
.editor-status .link-btn { font-size: 12px; color: var(--accent-2); text-decoration: underline; }

/* Progress bars */
.prog { height: 8px; background: var(--panel-3); border-radius: 99px; overflow: hidden; }
.prog.sm { height: 5px; margin-top: 5px; }
.prog span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; transition: width .4s; }

/* Getting-started checklist */
.checklist-block { border-color: rgba(47,107,255,.4); background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--panel); }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.check-step { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--text-2); font-size: 14px; }
.check-step svg { color: var(--muted); }
.check-step.done { color: var(--muted); text-decoration: line-through; }
.check-step.done svg { color: var(--good); }
.check-step:not(.done):hover { border-color: var(--accent); color: var(--text); }

/* Weekly quests */
.quests { display: flex; flex-direction: column; gap: 10px; }
.quest { display: flex; align-items: center; gap: 10px; }
.quest > svg { width: 18px; height: 18px; color: var(--accent-2); }
.quest .q-main { flex: 1; min-width: 0; }
.quest .q-name { font-size: 14px; }
.quest .q-main .meta { font-size: 11.5px; }
.quest.ready .prog span, .quest.claimed .prog span { background: var(--good); }
.quest.claimed { opacity: .6; }
.q-reward { font-size: 13px; font-weight: 600; color: var(--warn); white-space: nowrap; }
.q-reward.done { color: var(--good); }

/* Profile showcase */
.showcase { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); align-items: stretch; }
.showcase.empty-sc a { color: var(--accent-2); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.sc-trophy { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 13.5px; }
.sc-trophy .t-ic { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ffb547, #c2410c); color: #fff; }
.sc-trophy .t-ic svg { width: 14px; height: 14px; }
.sc-post { flex: 1 1 280px; display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); min-width: 0; }
.sc-post .meta svg { width: 12px; height: 12px; vertical-align: -1px; }
.sc-post .sc-body { font-size: 14px; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sc-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sc-opt span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 99px; cursor: pointer; font-size: 13.5px; color: var(--text-2); }
.sc-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.sc-opt input:focus-visible + span { outline: 2px solid var(--accent); }

/* Blocked content, bookmarks */
.blocked-post .post-main { padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.blocked-post { grid-template-columns: 1fr !important; opacity: .75; }
.blocked-post .link-btn { color: var(--accent-2); font-size: 13px; }
.blocked-post svg { width: 14px; height: 14px; vertical-align: -2px; }
.shout.blocked-shout { opacity: .55; font-size: 13px; }
.bm-item { align-items: flex-start; }
.bm-item > a { min-width: 0; }
.bm-excerpt { display: block; margin-top: 4px; font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Security pages */
.warn-note { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px; color: #ffe1b0; background: rgba(255,181,71,.08); border-color: rgba(255,181,71,.35); }
.warn-note a { color: var(--warn); text-decoration: underline; }
.tf-steps { margin: 0 0 12px; padding-left: 20px; line-height: 1.8; color: var(--text-2); }
.qr-box { width: 196px; height: 196px; padding: 8px; background: #fff; border-radius: 6px; margin: 8px 0; display: flex; align-items: center; justify-content: center; }
.qr-box img, .qr-box canvas { width: 180px; height: 180px; }
.tf-secret { font-size: 13px; padding: 2px 6px; background: var(--bg-2); border-radius: 3px; word-break: break-all; user-select: all; }
.code-input { font-size: 22px !important; letter-spacing: .25em; text-align: center; font-family: ui-monospace, Consolas, monospace; max-width: 260px; }
.rec-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.rec-codes code { padding: 8px; text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; font-size: 15px; letter-spacing: .05em; user-select: all; }
.sess-list { display: flex; flex-direction: column; gap: 8px; }
.sess { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.sess > svg { width: 22px; height: 22px; color: var(--muted); }
.sess.current { border-color: rgba(47,211,138,.4); }
.sess .meta { font-size: 12.5px; }

/* Seasonal cosmetics */
.sub-badge.season { background: rgba(255,120,30,.14); color: #ffb067; box-shadow: inset 0 0 0 1px rgba(255,140,40,.35); }
.sub-badge.season.off { background: var(--panel-3); color: var(--muted); box-shadow: none; }
.fr-f_pumpkin::after { --ring: repeating-conic-gradient(#ff7a00 0 30deg, #1b1b1b 30deg 45deg); filter: drop-shadow(0 0 5px rgba(255,122,0,.7)); animation: cosSpin 9s linear infinite; }
.fr-f_candy::after   { --ring: repeating-conic-gradient(#ff2e4c 0 15deg, #ffffff 15deg 30deg); filter: drop-shadow(0 0 4px rgba(255,46,76,.55)); animation: cosSpin 6s linear infinite; }
.uname.ns-n_spooky { color: #ff8a1f; -webkit-text-fill-color: #ff8a1f; text-shadow: 0 0 6px rgba(255,122,0,.65), 0 0 14px rgba(140,40,255,.45); }
.uname.ns-n_frost  { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, #e6f7ff, #8fd3ff 40%, #ffffff 55%, #8fd3ff 70%, #e6f7ff); background-size: 250% auto; animation: cosShine 4s linear infinite; }

/* Post text colours ([color=…]) */
:root { --tc-red: #ff5c78; --tc-orange: #ff9a4d; --tc-yellow: #ffd166; --tc-green: #3ddc97; --tc-teal: #38d4e0; --tc-blue: #5ea8ff; --tc-purple: #b18cff; --tc-pink: #ff6fbf; --tc-gray: #9aa1b4; }
.tc-red { color: var(--tc-red); } .tc-orange { color: var(--tc-orange); } .tc-yellow { color: var(--tc-yellow); } .tc-green { color: var(--tc-green); } .tc-teal { color: var(--tc-teal); }
.tc-blue { color: var(--tc-blue); } .tc-purple { color: var(--tc-purple); } .tc-pink { color: var(--tc-pink); } .tc-gray { color: var(--tc-gray); }
.tc-bg-red { background: var(--tc-red) !important; } .tc-bg-orange { background: var(--tc-orange) !important; } .tc-bg-yellow { background: var(--tc-yellow) !important; }
.tc-bg-green { background: var(--tc-green) !important; } .tc-bg-teal { background: var(--tc-teal) !important; } .tc-bg-blue { background: var(--tc-blue) !important; }
.tc-bg-purple { background: var(--tc-purple) !important; } .tc-bg-pink { background: var(--tc-pink) !important; } .tc-bg-gray { background: var(--tc-gray) !important; }
/* Gradient styles */
.ts { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-weight: 600; }
.ts-gold    { background-image: linear-gradient(90deg, #fff1b8, #f5b829 45%, #ffe08a 70%, #c98b16); }
.ts-sunset  { background-image: linear-gradient(90deg, #ffb347, #ff5e62 55%, #ff3cac); }
.ts-ocean   { background-image: linear-gradient(90deg, #38d4e0, #4f9bff 50%, #7c5cff); }
.ts-aurora  { background-image: linear-gradient(90deg, #2fd38a, #38d4e0, #7c5cff, #ff3cac, #2fd38a); background-size: 300% auto; animation: cosShine 5s linear infinite; }
.ts-fire    { background-image: linear-gradient(90deg, #ff3d00, #ffb300, #ff3d00); background-size: 200% auto; animation: cosShine 2s linear infinite; }
.ts-rainbow { background-image: linear-gradient(90deg, #ff4d6d, #ffb547, #ffd166, #2fd38a, #4f9bff, #a77bff, #ff4d6d); background-size: 300% auto; animation: cosShine 6s linear infinite; }
.ts-neon    { color: #fff; -webkit-text-fill-color: #fff; text-shadow: 0 0 6px #4f9bff, 0 0 14px #2f6bff; }
.ts-ice     { background-image: linear-gradient(90deg, #e6f7ff, #8fd3ff 40%, #ffffff 55%, #8fd3ff 70%, #e6f7ff); background-size: 250% auto; animation: cosShine 4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .ts { animation: none !important; } }
/* Colour picker in the editor toolbar */
.color-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: none; width: 300px; max-width: calc(100vw - 40px); padding: 10px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.color-pop.open { display: block; }
.cp-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.cp-label + * { margin-bottom: 10px; }
.cp-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-swatches button { width: 22px !important; height: 22px; padding: 0 !important; border-radius: 50% !important; border: 2px solid transparent !important; }
.cp-swatches button:hover { border-color: var(--text) !important; transform: scale(1.1); }
.cp-custom { position: relative; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: conic-gradient(#ff4d6d, #ffd166, #2fd38a, #38d4e0, #4f9bff, #a77bff, #ff4d6d); color: #fff; }
.cp-custom svg { width: 12px; height: 12px; filter: drop-shadow(0 0 2px #000); }
.cp-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0; border: 0; }
.cp-styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-bottom: 0 !important; }
.cp-styles button { justify-content: center; padding: 6px !important; border: 1px solid var(--line) !important; font-size: 14px; }
.cp-styles button:hover { border-color: var(--line-2) !important; }

/* ---------------- Light theme ---------------- */
:root[data-theme="light"] {
  --bg: #f3f5f9; --bg-2: #eef1f6; --panel: #ffffff; --panel-2: #f7f8fb; --panel-3: #e8ebf2;
  --line: #dde1ea; --line-2: #ccd2de; --text: #161a24; --text-2: #4a5265; --muted: #7a8194;
  --accent: #2563eb; --accent-2: #1d4ed8; --accent-soft: rgba(37,99,235,.09); --accent-glow: rgba(37,99,235,.28);
  --good: #0f9f62; --bad: #dc2847; --warn: #b7700b;
  --g-founder: #1d6fd8; --g-admin: #dc2847; --g-mod: #0f9f62; --g-vendor: #b7700b; --g-premium: #7c3aed; --g-member: #5d6578; --g-support: #0e8f9a; --g-bot: #1d4ed8;
  color-scheme: light;
}
[data-theme="light"] .topnav { background: rgba(255,255,255,.95); border-bottom-color: var(--line); }
[data-theme="light"] .ticker { background: #ffffff; border-bottom-color: var(--line); }
[data-theme="light"] .footer { background: #ffffff; border-top-color: var(--line); }
[data-theme="light"] .hero { background: #0e0f13; }   /* keep the glowing wordmark on its dark band */
[data-theme="light"] .postbit, [data-theme="light"] .tabs { background: var(--panel-2); }
[data-theme="light"] .post-body code, [data-theme="light"] .post-body pre, [data-theme="light"] .addr, [data-theme="light"] .crop-stage { background: #eef1f6; }
[data-theme="light"] .avatar.has-img { background: #e8ebf2; }
[data-theme="light"] .btn:hover { background: var(--panel-3); }
[data-theme="light"] .btn.primary:hover { background: #3b74f0; }
[data-theme="light"] .node:hover, [data-theme="light"] .thread-row:hover { background: #f7f9fd; }
[data-theme="light"] .thread-row.sticky { background: #eef3ff; }
[data-theme="light"] .thread-row.unread .title a, [data-theme="light"] .side-item a.title:hover { color: var(--text); }
[data-theme="light"] table.tbl tr:hover td { background: rgba(0,0,0,.02); }
[data-theme="light"] .notice.bad, [data-theme="light"] .mod-note { color: #9b1c33; }
[data-theme="light"] .notice.warn, [data-theme="light"] .warn-note { color: #7a4a06; }
[data-theme="light"] .badge.g-founder { color: #0d4fa8; }
[data-theme="light"] .sub-badge.premium { color: #5b21b6; }
[data-theme="light"] .abot-hero { background: radial-gradient(600px 220px at 85% 10%, rgba(37,99,235,.14), transparent 70%), linear-gradient(135deg, #eef3ff, #ffffff); }
[data-theme="light"] .uname.ns-n_neon { color: #1d4ed8; -webkit-text-fill-color: #1d4ed8; text-shadow: 0 0 6px rgba(37,99,235,.35); }
[data-theme="light"] .uname.ns-n_ice { color: #0284c7; -webkit-text-fill-color: #0284c7; }
[data-theme="light"] .uname.ns-n_mint { color: #059669; -webkit-text-fill-color: #059669; }
[data-theme="light"] .uname.ns-n_frost { background-image: linear-gradient(90deg, #0369a1, #38bdf8 45%, #0369a1); }
[data-theme="light"] .nav-drop, [data-theme="light"] .emote-pop, [data-theme="light"] .hovercard { box-shadow: 0 10px 28px rgba(20,30,60,.14); }
[data-theme="light"] .sub-badge.season { color: #b45309; }
[data-theme="light"] { --tc-red: #d6213f; --tc-orange: #d9620b; --tc-yellow: #a77a00; --tc-green: #0b8a55; --tc-teal: #0b8d97; --tc-blue: #1d5fd8; --tc-purple: #6d3ae0; --tc-pink: #c81e83; --tc-gray: #646b7d; }
[data-theme="light"] .ts-gold { background-image: linear-gradient(90deg, #a16207, #d99a06 45%, #b77905 70%, #8a5a00); }
[data-theme="light"] .ts-ice { background-image: linear-gradient(90deg, #0369a1, #38bdf8 45%, #0369a1); }
[data-theme="light"] .ts-neon { color: #1d4ed8; -webkit-text-fill-color: #1d4ed8; text-shadow: 0 0 6px rgba(37,99,235,.35); }
[data-theme="light"] .color-pop { box-shadow: 0 10px 28px rgba(20,30,60,.14); }
[data-theme="light"] .uname.g-founder { background-image: linear-gradient(90deg, #0b3fae, #2f8bff 40%, #1d4ed8 70%, #0b3fae); filter: none; }
[data-theme="light"] .uname.g-founder::before { color: #1d6fd8; -webkit-text-fill-color: #1d6fd8; }
[data-theme="light"] .uname.g-admin, [data-theme="light"] .uname.g-bot { text-shadow: none; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c4cad6; }

/* =========================================================
   Round 6: coins, calculator, badges, edit history, admin
   dashboard, mod queue, warnings, themes, signatures, mobile
   ========================================================= */
/* Coin tags & pages */
a.coin-tag { color: var(--warn); font-weight: 600; font-variant-numeric: tabular-nums; }
a.coin-tag:hover { text-decoration: underline; color: var(--warn); }
.coin-chip { color: var(--warn); }
.coin-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coin-title img { border-radius: 50%; }
.coin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.coin-stats > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.coin-stats span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.coin-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.coin-stats .up, .coin-stats b.up { color: var(--good); } .coin-stats .down, .coin-stats b.down { color: var(--bad); }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.coin-card { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.coin-card b { color: var(--warn); font-size: 18px; }
.coin-card:hover { border-color: var(--warn); }
.flush-list .thread-row:first-child { border-top: 0; }

/* Charts (single series, one accent hue) */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.chart-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart-grid .block { margin: 0; }
.bar-chart, .price-chart { position: relative; }
.bc-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
.bc-head b { font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.bc-plot { position: relative; padding-bottom: 18px; }
.bc-plot svg, .price-chart svg { display: block; width: 100%; height: 150px; overflow: visible; }
.price-chart svg { height: 200px; }
.bc-bar path { fill: var(--accent); }
.bc-bar.on path { fill: var(--accent-2); }
.bc-hit { fill: transparent; }
.bc-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.bc-base { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pc-cross { stroke: var(--line-2); stroke-width: 1; }
.bc-y { position: absolute; left: 0; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.price-chart .bc-y { left: 6px; background: var(--panel); padding: 0 4px; border-radius: 3px; }
.bc-x { position: absolute; bottom: 0; font-size: 11px; color: var(--muted); }
.bc-tip { position: absolute; top: -6px; width: 120px; padding: 6px 8px; border-radius: 6px; background: var(--panel-3); border: 1px solid var(--line-2); font-size: 12.5px; text-align: center; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.35); z-index: 3; }
.bc-tip span { color: var(--muted); }
.bc-table { margin-top: 6px; font-size: 13px; }
.bc-table summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.bc-table .tbl-wrap { max-height: 220px; overflow-y: auto; margin-top: 6px; }

/* Admin dashboard, queue, tools */
a.wcard:hover { border-color: var(--accent); }
.todo-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.todo { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.35); color: var(--text); font-size: 14px; }
.todo svg { color: var(--warn); }
a.todo:hover { border-color: var(--warn); color: var(--text); }
.queue-card { display: flex; flex-direction: column; gap: 8px; }
.queue-body { white-space: pre-wrap; word-break: break-word; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 14px; max-height: 240px; overflow-y: auto; color: var(--text-2); }
.tool-list { display: flex; flex-direction: column; gap: 4px; }
.tool-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tool-row:last-child { border-bottom: 0; }
.tool-row > svg { width: 20px; height: 20px; color: var(--accent-2); }
.scroll-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-tabs::-webkit-scrollbar { display: none; }
.scroll-tabs a { white-space: nowrap; flex: none; }

/* Moderation modal */
.mod-tabs { margin: 12px 0 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.mod-tabs button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: none; border: 1px solid transparent; border-radius: 3px; padding: 6px 10px; color: var(--text-2); cursor: pointer; font: inherit; font-size: 13.5px; }
.mod-tabs button.active { border-color: var(--line-2); background: var(--panel-3); color: var(--text); }
.mod-tabs svg { width: 14px; height: 14px; }
.mod-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.mod-li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); font-size: 14px; }
.mod-li.faded { opacity: .5; }
.mod-li .link-btn { flex: none; }
.mb0 { margin-bottom: 0; }

/* Edit history */
.edited-link { font-size: inherit !important; color: var(--muted) !important; text-decoration: underline dotted; }
.edited-link:hover { color: var(--accent-2) !important; }
.rev-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.rev { border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); }
.rev summary { cursor: pointer; padding: 8px 12px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.rev-diff { padding: 4px 12px 12px; font-size: 14px; word-break: break-word; line-height: 1.6; }
del { background: rgba(255,77,109,.18); color: var(--bad); text-decoration: line-through; border-radius: 2px; }
ins { background: rgba(47,211,138,.18); color: var(--good); text-decoration: none; border-radius: 2px; }

/* Position size calculator */
.calc-hero { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.calc-hero span { color: var(--text-2); }
.calc-hero b { font-size: 34px; font-variant-numeric: tabular-nums; color: var(--accent-2); }
#calcMode { margin-bottom: 4px; }
#calcMode button { background: none; border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 14px; color: var(--text-2); cursor: pointer; font: inherit; font-size: 14px; }
#calcMode button.active { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }

/* Badge collection */
.badge-card { opacity: .55; }
.badge-card.got { opacity: 1; }
.rarity { display: flex !important; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px !important; color: var(--muted) !important; }
.r-tag { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 99px; background: var(--panel-3); color: var(--text-2); }
.r-tag.common { color: var(--tc-gray); } .r-tag.uncommon { color: var(--tc-green); background: rgba(47,211,138,.12); }
.r-tag.rare { color: var(--tc-blue); background: rgba(79,155,255,.14); } .r-tag.epic { color: var(--tc-purple); background: rgba(167,123,255,.15); }
.r-tag.legendary { color: #ffb547; background: rgba(255,181,71,.15); box-shadow: inset 0 0 0 1px rgba(255,181,71,.4); }
.r-tag.premium { color: var(--g-premium); background: rgba(167,123,255,.14); } .r-tag.unlock { color: var(--warn); background: rgba(255,181,71,.12); }
.badge-card.r-legendary.got { border-color: rgba(255,181,71,.7); box-shadow: 0 0 14px rgba(255,181,71,.18); }
.badge-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.badge-item { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); opacity: .6; }
.badge-item.got { opacity: 1; border-color: var(--accent); }
.badge-item .r-tag { align-self: flex-start; }
.badge-item .t-check { position: absolute; top: 10px; right: 10px; color: var(--good); }

/* New name styles */
.uname.ns-n_pulse { color: #8fc1ff; -webkit-text-fill-color: #8fc1ff; animation: nsPulse 2.4s ease-in-out infinite; }
@keyframes nsPulse { 0%, 100% { text-shadow: 0 0 2px rgba(79,155,255,.3); } 50% { text-shadow: 0 0 8px #4f9bff, 0 0 18px rgba(47,107,255,.8); } }
.uname.ns-n_wave { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, #ff4d6d, #ffb547, #ffd166, #2fd38a, #4f9bff, #a77bff, #ff4d6d); background-size: 300% auto; animation: cosShine 3s linear infinite; }
.uname.ns-n_electric { color: #e8f6ff; -webkit-text-fill-color: #e8f6ff; animation: nsElectric 3.2s steps(1) infinite; }
@keyframes nsElectric { 0%, 100% { text-shadow: 0 0 4px #38d4e0, 0 0 12px #2f6bff; } 6% { text-shadow: none; opacity: .75; } 8% { text-shadow: 0 0 6px #fff, 0 0 18px #38d4e0; opacity: 1; } 50% { text-shadow: 0 0 5px #38d4e0, 0 0 14px #7c5cff; } 53% { text-shadow: none; } 55% { text-shadow: 0 0 8px #fff, 0 0 16px #38d4e0; } }
.uname.ns-n_glitch { color: var(--text); -webkit-text-fill-color: currentColor; position: relative; animation: nsGlitch 2.6s steps(1) infinite; }
@keyframes nsGlitch { 0%, 100% { text-shadow: 1px 0 #ff00e1, -1px 0 #00e5ff; } 20% { text-shadow: -2px 0 #ff00e1, 2px 0 #00e5ff; } 21% { text-shadow: 2px 1px #ff00e1, -2px -1px #00e5ff; } 60% { text-shadow: 1px 0 #ff00e1, -1px 0 #00e5ff; } 61% { text-shadow: -3px 0 #ff00e1, 3px 0 #00e5ff; } }
[data-theme="light"] .uname.ns-n_pulse { color: #1d5fd8; -webkit-text-fill-color: #1d5fd8; }
[data-theme="light"] .uname.ns-n_electric { color: #0b6fa8; -webkit-text-fill-color: #0b6fa8; }

/* Signature styles */
.signature[class*="sig-"] { border-top: 0; padding: 8px 12px; border-radius: 8px; color: var(--text-2); margin-top: 14px; }
.sig-glass { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12) !important; backdrop-filter: blur(4px); }
.sig-blue { background: var(--accent-soft); border-left: 3px solid var(--accent) !important; border-radius: 0 8px 8px 0 !important; }
.sig-terminal { background: #050a07; border: 1px solid #134d2d !important; color: #3ddc97 !important; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.sig-terminal::before { content: "> "; opacity: .7; }
.sig-gold { background: linear-gradient(135deg, rgba(255,209,102,.10), transparent 60%); border: 1px solid rgba(201,139,22,.7) !important; box-shadow: inset 0 0 12px rgba(255,209,102,.08); }
.sig-neon { border: 1px solid #4f9bff !important; animation: sigNeon 2.4s ease-in-out infinite; }
@keyframes sigNeon { 0%, 100% { box-shadow: 0 0 4px rgba(79,155,255,.35); } 50% { box-shadow: 0 0 14px rgba(79,155,255,.7), inset 0 0 8px rgba(79,155,255,.2); } }
.sig-rainbow { border: 2px solid transparent !important; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(90deg, #ff4d6d, #ffb547, #2fd38a, #4f9bff, #a77bff, #ff4d6d) border-box; background-size: 100% 100%, 300% 100%; animation: sigRainbow 4s linear infinite; }
@keyframes sigRainbow { to { background-position: 0 0, 300% 0; } }
.sig-helper { border-left: 3px solid var(--good) !important; background: rgba(47,211,138,.06); border-radius: 0 8px 8px 0 !important; }
.sig-helper::before { content: "✅ Helper · "; color: var(--good); font-weight: 600; font-size: 12px; }
.sig-prev { width: 100%; margin: 0 !important; max-height: none; font-size: 13px; }
.cos-grid.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (prefers-reduced-motion: reduce) { .sig-neon, .sig-rainbow, .uname.ns-n_pulse, .uname.ns-n_wave, .uname.ns-n_electric, .uname.ns-n_glitch, .ptheme, .theme-prev { animation: none !important; } }

/* Profile themes: each theme re-defines the colour tokens inside the profile area */
.pt-midnight, .pt-ocean, .pt-forest, .pt-sunset, .pt-bull, .pt-gold, .pt-aurora, .pt-galaxy, .pt-veteran {
  --text: #eef0f8; --text-2: #b8bed0; --muted: #858ca2; color: var(--text); }
.pt-midnight { --pt-page: linear-gradient(180deg, #0a0d1f, #070915); --bg-2: #0e1228; --panel: #11152b; --panel-2: #161b36; --panel-3: #1d2344; --line: #232a4e; --line-2: #2f3765; --accent: #6d7dff; --accent-2: #9aa6ff; --accent-soft: rgba(109,125,255,.14); }
.pt-ocean    { --pt-page: linear-gradient(180deg, #032033, #021420); --bg-2: #052538; --panel: #062a40; --panel-2: #08324c; --panel-3: #0b3b59; --line: #0d4262; --line-2: #145377; --accent: #12b5d6; --accent-2: #5fd8f0; --accent-soft: rgba(18,181,214,.14); }
.pt-forest   { --pt-page: linear-gradient(180deg, #08190f, #050f09); --bg-2: #0b1f14; --panel: #0d2418; --panel-2: #112c1e; --panel-3: #163625; --line: #1b3d2b; --line-2: #245038; --accent: #2fbf71; --accent-2: #6ee7a8; --accent-soft: rgba(47,191,113,.14); }
.pt-sunset   { --pt-page: linear-gradient(160deg, #2b0f20, #1a0b24 60%, #120818); --bg-2: #261023; --panel: #2a1226; --panel-2: #33162e; --panel-3: #3d1b37; --line: #48203e; --line-2: #5c2a50; --accent: #ff6b4a; --accent-2: #ffb26b; --accent-soft: rgba(255,107,74,.15); }
.pt-bull     { --pt-page: repeating-linear-gradient(90deg, transparent 0 22px, rgba(47,211,138,.05) 22px 26px, transparent 26px 48px, rgba(255,77,109,.04) 48px 52px), linear-gradient(180deg, #071510, #050c09); --bg-2: #0a1a12; --panel: #0c1f16; --panel-2: #10271c; --panel-3: #153122; --line: #1a3a29; --line-2: #224c35; --accent: #22c55e; --accent-2: #4ade80; --accent-soft: rgba(34,197,94,.14); }
.pt-gold     { --pt-page: radial-gradient(800px 300px at 80% 0%, rgba(255,209,102,.12), transparent 70%), linear-gradient(180deg, #17120a, #0e0b06); --bg-2: #1a140b; --panel: #1d170c; --panel-2: #241c0f; --panel-3: #2d2313; --line: #3a2e14; --line-2: #4d3c1a; --accent: #e0a922; --accent-2: #ffd66b; --accent-soft: rgba(224,169,34,.14); }
.pt-aurora   { --pt-page: linear-gradient(120deg, #06231d, #0b1636, #2a0b33, #06231d); --bg-2: #0c1a26; --panel: #0e1d2b; --panel-2: #122436; --panel-3: #172c42; --line: #1d3550; --line-2: #284466; --accent: #2fd38a; --accent-2: #7c5cff; --accent-soft: rgba(47,211,138,.14); }
.pt-galaxy   { --pt-page: radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #cfd8ff, transparent), radial-gradient(1.5px 1.5px at 60% 30%, #fff, transparent), radial-gradient(1px 1px at 80% 80%, #e0d0ff, transparent), radial-gradient(1px 1px at 90% 10%, #fff, transparent), radial-gradient(600px 300px at 70% 20%, rgba(124,92,255,.25), transparent 70%), radial-gradient(500px 260px at 20% 90%, rgba(47,107,255,.2), transparent 70%), #07051a;
  --bg-2: #0d0a26; --panel: #110d2e; --panel-2: #161238; --panel-3: #1d1846; --line: #251f52; --line-2: #322a6a; --accent: #a77bff; --accent-2: #c9b0ff; --accent-soft: rgba(167,123,255,.15); }
.pt-veteran  { --pt-page: linear-gradient(180deg, #140c26, #0c0818); --bg-2: #170f2c; --panel: #1a1131; --panel-2: #20153c; --panel-3: #281a48; --line: #2e2054; --line-2: #3d2b6c; --accent: #a77bff; --accent-2: #38d4e0; --accent-soft: rgba(167,123,255,.14); }
.ptheme[class*="pt-"] { background: var(--pt-page); border-radius: 12px; padding: 14px; border: 1px solid var(--line); }
.ptheme.pt-aurora, .theme-prev.pt-aurora { background-size: 300% 300%; animation: ptShift 14s ease-in-out infinite; }
.ptheme.pt-galaxy, .theme-prev.pt-galaxy { animation: ptTwinkle 6s ease-in-out infinite alternate; }
@keyframes ptShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes ptTwinkle { from { filter: brightness(1); } to { filter: brightness(1.15) saturate(1.1); } }
.ptheme[class*="pt-"] .block-head h2, .ptheme[class*="pt-"] .block-head .tools { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; }
.ptheme[class*="pt-"] .tabs { background: var(--panel-2); }
.ptheme[class*="pt-"] .profile-card { box-shadow: 0 0 0 1px var(--line-2), 0 10px 40px rgba(0,0,0,.35); }
.ptheme[class*="pt-"] .profile-banner:not(.has-img) { background-image: linear-gradient(120deg, var(--accent-soft), var(--accent) 45%, var(--panel)) !important; }
.theme-prev { width: 100%; height: 100%; border-radius: 6px; overflow: hidden; background: var(--pt-page); display: flex; flex-direction: column; }
.tp-banner { height: 42px; background: linear-gradient(120deg, var(--accent-soft), var(--accent) 50%, var(--accent-2)); }
.tp-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: var(--panel); flex: 1; border-top: 1px solid var(--line); }
.tp-row b { color: var(--text); font-size: 14px; }
.tp-tabs { display: flex; gap: 8px; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tp-tabs .on { color: var(--text); box-shadow: inset 0 -2px var(--accent); }
.cos-card .cos-prev:has(.theme-prev), .cos-card .cos-prev:has(.sig-prev) { padding: 0; background: none; }
.cos-card .cos-prev:has(.sig-prev) { padding: 10px; background: var(--bg-2); align-items: center; }

/* =========================================================
   Round 7: polls, mentions, chart embeds, journal, status, recruiter
   ========================================================= */
/* Chart embeds */
.chart-embed { display: flex; align-items: center; gap: 12px; margin: 8px 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); max-width: 560px; }
.chart-embed .ce-ic { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-2); flex: none; }
.chart-embed .ce-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chart-embed .ce-txt .meta { font-size: 12px; }
.chart-embed.loaded { display: block; padding: 0; max-width: none; overflow: hidden; }
.chart-embed iframe { display: block; width: 100%; height: 420px; border: 0; }
.chart-embed .ce-link { display: block; padding: 6px 10px; font-size: 12px; text-align: right; }
@media (max-width: 760px) { .chart-embed iframe { height: 320px; } }

/* Mention autocomplete */
.mention-pop { position: fixed; z-index: 130; width: 260px; max-height: 320px; overflow-y: auto; padding: 5px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.mention-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; background: none; border: 0; border-radius: 5px; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.mention-pop button .meta { margin-left: auto; font-size: 11px; }
.mention-pop button.on, .mention-pop button:hover { background: var(--accent-soft); }
[data-theme="light"] .mention-pop { box-shadow: 0 12px 30px rgba(20,30,60,.15); }

/* Polls */
.poll-builder { border: 1px dashed var(--line-2); border-radius: 8px; padding: 10px 14px; }
.poll-builder summary { cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; }
.poll-builder[open] summary { color: var(--text); }
.poll-opts { display: flex; flex-direction: column; gap: 6px; }
.poll-box { margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 8px; background: linear-gradient(135deg, var(--accent-soft), transparent 55%), var(--panel); }
.poll-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.poll-head svg { color: var(--accent-2); width: 20px; height: 20px; }
.poll-head h3 { margin: 0; font-size: 18px; }
.poll-res { margin-bottom: 10px; }
.pr-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; margin-bottom: 4px; }
.pr-top span { display: inline-flex; align-items: center; gap: 6px; }
.pr-top svg { width: 15px; height: 15px; color: var(--good); }
.poll-res .meta { font-size: 12px; }
.poll-res.mine .prog span { background: linear-gradient(90deg, var(--good), #6ee7a8); }
.poll-form { display: flex; flex-direction: column; gap: 6px; }
.poll-choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); cursor: pointer; font-size: 14.5px; }
.poll-choice:hover { border-color: var(--accent); }
.poll-choice input { width: 18px; height: 18px; accent-color: var(--accent); }
.poll-form .row-flex { margin-top: 6px; }
.poll-foot { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.poll-foot .link-btn { color: var(--accent-2); font-size: 12.5px; }

/* Trade journal */
.jtbl td { vertical-align: middle; }
.jtbl .icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
.jtbl .icon-btn:hover { color: var(--text); }
.jnote { width: 13px !important; height: 13px !important; color: var(--muted); vertical-align: -2px; cursor: help; }

/* Recruiter of the month */
.recruiter-win { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding: 14px 18px; border-radius: 10px; border: 1px solid rgba(255,181,71,.45);
  background: radial-gradient(500px 120px at 0% 50%, rgba(255,181,71,.16), transparent 70%), var(--panel); }
.recruiter-win b { font-size: 16px; }
.fr-f_recruiter::after { --ring: conic-gradient(#ffd166, #ff9a4d, #ffb547, #fff3c4, #ffd166); animation: cosSpin 5s linear infinite; filter: drop-shadow(0 0 6px rgba(255,181,71,.75)); }

/* Admin status */
.health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.health { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.health > svg { width: 22px; height: 22px; color: var(--accent-2); flex: none; margin-top: 2px; }
.health .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.health b { font-size: 18px; }
.health .h-dot { position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.health.warn { border-color: rgba(255,181,71,.4); } .health.warn .h-dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.health.bad { border-color: rgba(255,77,109,.5); } .health.bad .h-dot { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.chip-ok { color: var(--good); border-color: rgba(47,211,138,.35); }
.chip-bad { color: var(--bad); border-color: rgba(255,77,109,.4); }
.sys-stats { margin-bottom: 10px; }
@media (max-width: 960px) { .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .health-grid { grid-template-columns: 1fr; } }

/* Pre-rendered pages (read.php) shown for a moment before the app takes over */
.seo-page { max-width: 860px; }
.seo-page h1 { font-size: 26px; margin: 10px 0 14px; }
.seo-page .crumbs { font-size: 14px; color: var(--muted); }
.seo-post { padding: 14px 16px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.seo-list { padding-left: 18px; line-height: 1.9; }
.seo-page a { color: var(--accent-2); }

/* =========================================================
   Round 8: marketplace, reviews, tickets, image drop, tour
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.editor.drop-over { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.editor.drop-over textarea { background: var(--accent-soft); }
.market-safety { margin-bottom: 14px; }

/* Listing grid */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 14px; }
.listing-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); transition: border-color .15s, transform .15s; color: var(--text); }
.listing-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.listing-card.is-sold, .listing-card.is-closed { opacity: .6; }
.lc-img { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, var(--panel-3), var(--bg-2) 70%); display: flex; align-items: center; justify-content: center; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; }
.lc-img > svg { width: 40px; height: 40px; color: var(--muted); }
.lc-flag { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; background: rgba(0,0,0,.7); color: #fff; }
.lc-flag.sold { background: var(--bad); }
.lc-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.lc-body .badge { align-self: flex-start; }
.lc-title { font-size: 15px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lc-price { font-size: 19px; font-weight: 700; color: var(--good); font-variant-numeric: tabular-nums; }
.lc-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin-top: auto; }

/* Listing panel on the thread */
.listing-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; padding: 16px; margin-bottom: 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); }
.listing-panel:not(:has(.lp-gallery)) { grid-template-columns: 1fr; }
.lp-main { display: block; border-radius: 8px; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; }
.lp-main img { width: 100%; height: 100%; object-fit: contain; }
.lp-thumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.lp-thumbs button { width: 58px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--bg-2); }
.lp-thumbs button.on { border-color: var(--accent); }
.lp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lp-info { display: flex; flex-direction: column; gap: 12px; }
.lp-price { font-size: 30px; font-weight: 700; color: var(--good); font-variant-numeric: tabular-nums; }
.lp-seller { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.lp-actions { flex-wrap: wrap; }

/* Photo picker */
.photo-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.photo-picker.busy { opacity: .6; pointer-events: none; }
.pp-item, .pp-add { position: relative; width: 92px; height: 92px; border-radius: 8px; overflow: hidden; }
.pp-item img { width: 100%; height: 100%; object-fit: cover; }
.pp-item button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; line-height: 1; }
.pp-item em { position: absolute; left: 4px; bottom: 4px; font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 3px; background: var(--accent); color: #fff; }
.pp-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 12px; cursor: pointer; }
.pp-add:hover { border-color: var(--accent); color: var(--accent-2); }

/* Stars & vendor badge */
.stars { display: inline-flex; gap: 1px; color: var(--line-2); font-size: 14px; letter-spacing: 0; vertical-align: -1px; }
.stars i { font-style: normal; }
.stars i.on { color: #ffb547; }
.stars i.half { background: linear-gradient(90deg, #ffb547 50%, var(--line-2) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars.lg { font-size: 22px; }
.vendor-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(255,181,71,.12); color: #ffb547; white-space: nowrap; }
.vendor-badge small { font-weight: 400; opacity: .8; }
.vendor-badge.trusted { background: rgba(47,211,138,.14); color: var(--good); box-shadow: inset 0 0 0 1px rgba(47,211,138,.4); }
.postbit .vendor-badge { margin-top: 2px; }
.star-pick { display: flex; align-items: center; gap: 4px; }
.star-pick button { background: none; border: 0; font-size: 32px; line-height: 1; color: var(--line-2); cursor: pointer; padding: 0 2px; transition: transform .1s; }
.star-pick button:hover { transform: scale(1.15); }
.star-pick button.on { color: #ffb547; }
.star-pick .meta { margin-left: 8px; }

/* Reviews */
.review-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.rs-score { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 130px; }
.rs-score b { font-size: 40px; line-height: 1; }
.rs-dist { display: flex; flex-direction: column; gap: 4px; }
.rs-dist > div { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 8px; align-items: center; font-size: 13px; }
.rs-dist .prog span { background: #ffb547; }
.review-list { display: flex; flex-direction: column; gap: 10px; }
.review { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.rv-head { display: flex; gap: 10px; align-items: center; }
.rv-body { margin-top: 8px; font-size: 14.5px; word-break: break-word; }
.rv-reply { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 6px 6px 0; font-size: 14px; }
.rv-reply-form { display: flex; gap: 8px; margin-top: 8px; }
.rv-reply-form input { flex: 1; min-width: 0; }

/* Tickets */
.ticket-list { display: flex; flex-direction: column; gap: 6px; }
.ticket-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); }
.ticket-row:hover { border-color: var(--accent); color: var(--text); }
.ticket-row.unread { border-left: 3px solid var(--accent); }
.ticket-row .grow { display: flex; flex-direction: column; min-width: 0; }
.ticket-row .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-id { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 36px; }
.ticket-staff { flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 8px; }
.ticket-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.tmsg { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); max-width: 88%; }
.tmsg.from-staff { align-self: flex-end; border-color: rgba(47,107,255,.35); background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--panel); }
.tmsg.internal { border-style: dashed; border-color: rgba(255,181,71,.5); background: rgba(255,181,71,.05); }
.tm-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 6px; }
.tm-head .meta { margin-left: auto; }
.tm-body { font-size: 14.5px; word-break: break-word; }
.ticket-reply { grid-template-columns: 1fr !important; }
.drop-count { display: flex !important; justify-content: space-between; align-items: center; }

/* Tour */
.tour-spot { position: fixed; z-index: 140; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(5,7,14,.66); pointer-events: none; transition: all .25s ease; }
.tour-tip { position: fixed; z-index: 141; width: 320px; padding: 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--accent); box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: top .25s, left .25s; }
.tour-tip.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 24px)) !important; }
.tour-tip h4 { margin: 2px 0 6px; font-size: 17px; }
.tour-tip p { margin: 0 0 14px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.tt-step { font-size: 11.5px; color: var(--accent-2); font-weight: 600; letter-spacing: .05em; }
.tour-tip .link-btn { font-size: 13px; }
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > :first-child { grid-column: 1 / -1; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lc-price { font-size: 16px; }
  .listing-panel { grid-template-columns: 1fr; padding: 12px; }
  .lp-price { font-size: 24px; }
  .review-summary { grid-template-columns: 1fr; gap: 12px; }
  .tmsg { max-width: 100%; }
}

/* =========================================================
   Round 9: notification settings, Discord feed, thread tools
   ========================================================= */
.toggle { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; vertical-align: middle; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: var(--panel-3); border: 1px solid var(--line-2); transition: background .15s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: left .15s, background .15s; }
.toggle input:checked + span { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + span::after { left: 21px; background: #fff; }
.toggle input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.notify-tbl td { padding-top: 12px; padding-bottom: 12px; }
.df-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 14px; margin-top: 6px; }

.thread-tools { position: relative; display: inline-flex; }
.tt-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; display: none; min-width: 250px; padding: 6px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.tt-menu.open { display: flex; flex-direction: column; }
.tt-menu button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: 5px; background: none; color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.tt-menu button:hover { background: var(--panel-3); color: var(--text); }
.split-mode .post { position: relative; }
.split-check { position: absolute; top: 10px; left: -4px; z-index: 5; transform: translateX(-100%); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--accent-2); cursor: pointer; }
.split-check input { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.split-mode .post:has(.split-check input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.split-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 96; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--accent); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
@media (max-width: 1100px) { .split-check { position: static; transform: none; flex-direction: row; padding: 8px 12px 0; } }
@media (max-width: 760px) {
  .split-bar { bottom: calc(76px + env(safe-area-inset-bottom)); width: calc(100% - 24px); justify-content: space-between; }
  .tt-menu { position: fixed; top: auto; left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); min-width: 0; z-index: 95; }
  .tt-menu button { padding: 12px; font-size: 15px; }
}

/* ---------------- Mobile ---------------- */
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .nav-user .nav-item { flex-direction: row; }
  .nav-user .nav-drop { position: absolute; top: calc(100% + 4px); right: 0; left: auto; display: none; min-width: 220px; padding: 6px;
    background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.5); z-index: 60; }
  .nav-user .has-drop:hover .nav-drop, .nav-user .has-drop:focus-within .nav-drop { display: none; }
  .nav-user .me-drop.open .nav-drop { display: block; }
  .nav-user .nav-drop a { padding: 11px 12px; font-size: 15px; }
  .nav-user { gap: 10px; }
}
.react-wrap.open .react-pop { display: flex; }
@media (max-width: 960px) {
  .chart-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(18,19,24,.97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-2); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .mobile-bar a, .mobile-bar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: 11px; background: none; border: 0; font-family: inherit; cursor: pointer; min-height: 50px; justify-content: center; }
  .mobile-bar a.on { color: var(--accent-2); }
  .mobile-bar .mb-ic { position: relative; display: flex; }
  .mobile-bar svg { width: 22px; height: 22px; }
  .mb-count { position: absolute; top: -5px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .nav-links { max-height: calc(100vh - var(--nav-h) - 70px); overflow-y: auto; }
  /* inputs at 16px so iPhones don't zoom in when typing */
  input, select, textarea { font-size: 16px !important; }
  .chart-grid { grid-template-columns: 1fr; }
  .coin-stats { grid-template-columns: repeat(2, 1fr); }
  .kpis.admin-kpis { grid-template-columns: repeat(2, 1fr); }
  .wcard { padding: 12px; } .wcard .val { font-size: 22px; }
  .page-title { flex-wrap: wrap; gap: 10px; }
  .page-title h1 { font-size: 24px; }
  .block-body { padding: 20px 12px 12px; }
  /* bigger tap targets under posts */
  .post-foot { flex-wrap: wrap; gap: 8px; }
  .post-foot .acts { gap: 4px; flex-wrap: wrap; }
  .post-foot .acts > button, .post-foot .acts > .react-wrap > button { padding: 8px 8px; min-height: 36px; }
  .post-main { padding: 12px 14px; }
  .react-pop { position: fixed; left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); justify-content: space-around; border-radius: 14px; padding: 8px; z-index: 95; }
  .react-pop button { font-size: 26px !important; }
  /* editor: toolbar scrolls sideways, pickers open as a sheet */
  .editor-bar { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .editor-bar::-webkit-scrollbar { display: none; }
  .editor-bar button { flex: none; padding: 8px 10px; }
  .emote-pop, .color-pop { position: fixed; left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); top: auto; width: auto; max-width: none; z-index: 95; }
  .emote-pop button { min-width: 44px; padding: 8px; }
  .cp-swatches button { width: 32px !important; height: 32px; }
  .cp-custom { width: 32px; height: 32px; }
  /* modals become bottom sheets */
  .modal { align-items: flex-end; padding: 0; }
  .modal-card { max-width: none !important; border-radius: 14px 14px 0 0; max-height: 88vh; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .admin-tabs { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .filter-tabs:not(.scroll-tabs):not(#calcMode) { flex-wrap: wrap; }
  .list-tools { flex-direction: column; align-items: stretch; }
  .list-tools input[type=search] { min-width: 0 !important; width: 100%; }
  .queue-card .row-flex { flex-wrap: wrap; }
  .queue-card .row-flex input { flex-basis: 100%; }
  .tbl { font-size: 13.5px; }
  .ptheme[class*="pt-"] { padding: 8px; margin: 0 -8px; border-radius: 10px; }
  .calc-hero b { font-size: 28px; }
  .shout-form input { min-width: 0; }
}
[data-theme="light"] .mobile-bar { background: rgba(255,255,255,.97); }

/* =====================================================================
   REDESIGN 2026-10 — "sleek": deep night, frosted glass, one electric
   accent, aurora light and purposeful motion. Layered on top of the
   rules above; switches off with prefers-reduced-motion or the
   "Turn animations off" menu item (html[data-motion="off"]).
   ===================================================================== */
:root {
  --bg: #07080d; --bg-2: #0b0d14; --panel: #10121b; --panel-2: #151824; --panel-3: #1c2030;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12);
  --text: #eef1f8; --text-2: #b0b7c9; --muted: #7d859a;
  --accent: #2f6bff; --accent-2: #5aa2ff; --accent-glow: rgba(47,107,255,.55); --accent-soft: rgba(47,107,255,.14);
  --radius: 10px;
  --glass: rgba(16,18,27,.62); --glass-strong: rgba(18,20,30,.86); --glass-line: rgba(255,255,255,.08);
  --ease-out: cubic-bezier(.2,.8,.2,1);
}
:root[data-theme="light"] { --glass: rgba(255,255,255,.72); --glass-strong: rgba(255,255,255,.94); --glass-line: rgba(20,30,60,.09); }
::selection { background: rgba(47,107,255,.35); color: #fff; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: rgba(127,140,170,.28); border-radius: 8px; }

/* ---- Motion vocabulary ---- */
@keyframes amRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes amSlide { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes amDrift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8vw, -6vh) scale(1.15); } }
@keyframes amDrift2 { 0%, 100% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(-9vw, 5vh) scale(.92); } }
@keyframes amTwinkle { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
@keyframes amSpin { to { transform: rotate(360deg); } }
@keyframes amFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes amShimmer { to { background-position: -200% center; } }
@keyframes amDraw { to { stroke-dashoffset: 0; } }
@keyframes amFill { from { width: 0; } }
@keyframes amGrow { from { transform: scaleY(0); } }
@keyframes amPop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes amPulse { 0% { box-shadow: 0 0 0 0 rgba(47,211,138,.55); } 70% { box-shadow: 0 0 0 8px rgba(47,211,138,0); } 100% { box-shadow: 0 0 0 0 rgba(47,211,138,0); } }
@keyframes amSolution { 0%, 100% { box-shadow: 0 0 0 1px rgba(47,211,138,.35), 0 0 26px -8px rgba(47,211,138,.35); } 50% { box-shadow: 0 0 0 1px rgba(47,211,138,.6), 0 0 42px -6px rgba(47,211,138,.55); } }
@keyframes amSweep { to { --am-ang: 360deg; } }
@property --am-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ---- Aurora background (fixed behind everything) ---- */
body { background: var(--bg); }
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora .au { position: absolute; border-radius: 50%; filter: blur(40px); }
.aurora .au1 { width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; left: -16vw; top: -28vw; background: radial-gradient(circle, rgba(47,107,255,.34), transparent 62%); animation: amDrift1 22s ease-in-out infinite; }
.aurora .au2 { width: 52vw; height: 52vw; max-width: 780px; max-height: 780px; right: -14vw; top: 8vh; background: radial-gradient(circle, rgba(139,108,255,.22), transparent 62%); animation: amDrift2 26s ease-in-out infinite; }
.aurora .au3 { width: 44vw; height: 44vw; max-width: 640px; max-height: 640px; left: 30vw; top: 55vh; background: radial-gradient(circle, rgba(56,212,224,.12), transparent 62%); animation: amDrift1 30s ease-in-out infinite reverse; }
.aurora .stars { position: absolute; inset: 0; animation: amTwinkle 5s ease-in-out infinite;
  background-image: radial-gradient(1.4px 1.4px at 12% 18%, #cfe0ff, transparent), radial-gradient(1px 1px at 27% 62%, #cfe0ff, transparent), radial-gradient(1.4px 1.4px at 44% 12%, #fff, transparent),
    radial-gradient(1px 1px at 63% 38%, #cfe0ff, transparent), radial-gradient(1.2px 1.2px at 78% 8%, #fff, transparent), radial-gradient(1px 1px at 88% 52%, #e0d4ff, transparent),
    radial-gradient(1.2px 1.2px at 6% 78%, #cfe0ff, transparent), radial-gradient(1px 1px at 52% 84%, #fff, transparent), radial-gradient(1.3px 1.3px at 94% 88%, #cfe0ff, transparent); }
[data-theme="light"] .aurora .au1 { background: radial-gradient(circle, rgba(47,107,255,.14), transparent 62%); }
[data-theme="light"] .aurora .au2 { background: radial-gradient(circle, rgba(139,108,255,.1), transparent 62%); }
[data-theme="light"] .aurora .au3, [data-theme="light"] .aurora .stars { display: none; }
.ticker, .hero, .page, .footer { position: relative; z-index: 1; }

/* ---- Top bar & ticker: frosted glass ---- */
.topnav { background: rgba(9,10,16,.62); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid var(--glass-line); }
[data-theme="light"] .topnav { background: rgba(255,255,255,.72); }
.nav-item > a { transition: color .2s; }
.nav-item.active > a::after { left: 12px; right: 12px; border-radius: 2px; }
.nav-item:not(.active) > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 14px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease-out); }
.nav-item:not(.active) > a:hover::after { transform: scaleX(1); }
.ticker { background: rgba(5,6,10,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-line); }
[data-theme="light"] .ticker { background: rgba(255,255,255,.7); }

/* ---- Hero: floating logo, spinning orbit, shimmering wordmark ---- */
.hero { background: transparent; }
.wm-mark { position: relative; display: flex; align-items: center; justify-content: center; }
/* Orbit: a fixed oval tilted like the logo's swoosh; only a light travels along it */
.wm-orbit { position: absolute; width: 150%; height: 44%; left: -25%; top: 33%; transform: rotate(-17deg); pointer-events: none; }
.wm-orbit span { position: absolute; inset: 0; border-radius: 50%; padding: 1.5px;
  background: conic-gradient(from var(--am-ang), rgba(90,162,255,.10) 0 62%, rgba(90,162,255,.85) 80%, #e8f2ff 86%, rgba(90,162,255,.10) 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 6px rgba(90,162,255,.8)); animation: amSweep 4.5s linear infinite; }
.wordmark-mark { position: relative; animation: amFloat 6s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(47,107,255,.75)) drop-shadow(0 0 60px rgba(47,107,255,.35)); }
.wordmark:hover .wordmark-mark { transform: none; }
.wordmark-text { text-shadow: none; color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(100deg, #ffffff 20%, #9cc6ff 40%, #ffffff 55%, #7fb6ff 75%, #ffffff 90%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 18px rgba(47,107,255,.55)); animation: amShimmer 7s linear infinite; }
.wordmark:hover .wordmark-text { color: transparent; }

/* ---- Section boxes: title above a frosted card (no more title-on-the-border patches) ---- */
.block-head { height: auto; margin-bottom: 10px; padding: 0 4px; }
.block-head h2 { background: none; padding: 0; font-family: var(--font-display); font-size: 13px; font-weight: 400; letter-spacing: .04em; text-transform: none; }
.block-head h2 svg { color: var(--accent-2); }
.block-head .tools { background: none; padding: 0; }
.block-body { background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border: 1px solid var(--glass-line); border-radius: 16px; padding: 16px; box-shadow: 0 24px 60px -36px rgba(0,0,0,.7); }
.block-body.flush { padding: 12px; gap: 10px; }
[data-theme="light"] .block-body { box-shadow: 0 18px 40px -30px rgba(20,30,60,.25); }

.footer { background: rgba(5,6,10,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--glass-line); }
[data-theme="light"] .footer { background: rgba(255,255,255,.75); }
.checklist-block { background: none; }
.checklist-block .block-body { background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--glass); border-color: rgba(90,162,255,.3); }

/* Featured card: a light travels around its border */
.glow-card .block-body { position: relative; isolation: isolate; }
.glow-card .block-body::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: conic-gradient(from var(--am-ang), transparent 0 64%, var(--accent) 78%, #38d4e0 86%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: amSweep 5s linear infinite; }

/* ---- Cards: glass, softer corners, lift + glow on hover ---- */
.node, .member-card, .wcard, .cos-card, .listing-card, .coin-card, .ticket-row, .review, .health, .badge-item, .trophy, .mod-li, .sess, .tool-row, .report-card, .queue-card {
  border-radius: 14px; }
.node, .member-card, .wcard, .cos-card, .listing-card, .coin-card, .ticket-row, .review, .badge-item, .trophy, .report-card {
  background: rgba(255,255,255,.028); border-color: var(--glass-line); }
[data-theme="light"] .node, [data-theme="light"] .member-card, [data-theme="light"] .wcard, [data-theme="light"] .cos-card, [data-theme="light"] .listing-card,
[data-theme="light"] .coin-card, [data-theme="light"] .ticket-row, [data-theme="light"] .review, [data-theme="light"] .badge-item, [data-theme="light"] .trophy { background: rgba(255,255,255,.7); }
.node, .member-card, .cos-card, .listing-card, .coin-card, .ticket-row, .badge-item, .wcard { transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s, background .35s; }
.node:hover, .member-card:hover, .cos-card:hover, .listing-card:hover, .coin-card:hover, .ticket-row:hover, a.wcard:hover {
  transform: translateY(-3px); background: rgba(255,255,255,.045); border-color: rgba(127,182,255,.32); box-shadow: 0 22px 50px -24px var(--accent-glow); }
.node .node-ic { border-radius: 12px; }
.thread-list { border-color: var(--glass-line); border-radius: 16px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.thread-row { border-color: var(--glass-line); background: transparent; transition: background .25s; }
.thread-row:hover { background: rgba(255,255,255,.035); }
.thread-row.sticky { background: rgba(47,107,255,.07); }
[data-theme="light"] .thread-row:hover { background: rgba(47,107,255,.04); }

/* ---- Posts ---- */
.post, .reply-box, .poll-box, .listing-panel, .solution-box { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--glass-line); border-radius: 16px; }
.solution-box { border-color: rgba(47,211,138,.4); }
.reply-box .postbit { background: transparent; }
.postbit { background: rgba(255,255,255,.02); border-color: var(--glass-line); border-radius: 16px 0 0 16px; }
.post.is-solution { border-color: rgba(47,211,138,.55); animation: amSolution 3.2s ease-in-out infinite; }
.react-sum, .post-foot .acts button { transition: transform .15s, color .2s; }
.popped { animation: amPop .4s cubic-bezier(.3,1.6,.5,1) !important; }
@media (max-width: 720px) { .postbit { border-radius: 16px 16px 0 0; } }

/* ---- Buttons & fields ---- */
.btn { border-radius: 10px; transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #5a8dff); border-color: transparent; }
.btn.primary:hover { background: linear-gradient(135deg, #3d76ff, #6f9cff); box-shadow: 0 12px 32px -10px var(--accent-glow); }
:root:not([data-theme="light"]) .btn:not(.primary):not(.discord-btn):not(.danger-btn):not(.warn-btn) { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1); }
:root:not([data-theme="light"]) .btn:not(.primary):not(.discord-btn):not(.danger-btn):not(.warn-btn):hover { background: rgba(255,255,255,.08); }
:root:not([data-theme="light"]) input[type=text], :root:not([data-theme="light"]) input[type=search], :root:not([data-theme="light"]) input[type=number],
:root:not([data-theme="light"]) input[type=email], :root:not([data-theme="light"]) input[type=password], :root:not([data-theme="light"]) input[type=date],
:root:not([data-theme="light"]) textarea, :root:not([data-theme="light"]) select { background: rgba(5,6,10,.55); border-color: rgba(255,255,255,.1); }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 22px -8px var(--accent-glow); }
.editor { border-radius: 14px; border-color: rgba(255,255,255,.1); }
.editor > .editor-bar { border-radius: 14px 14px 0 0; background: rgba(255,255,255,.03); }
.editor textarea { background: transparent !important; }

/* ---- Floating layers: menus, pickers, modals, toasts ---- */
.nav-drop, .tt-menu, .emote-pop, .color-pop, .mention-pop, .react-pop, .hovercard { background: var(--glass-strong); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border-color: var(--glass-line); border-radius: 14px; }
.react-pop { border-radius: 99px; }
.modal-backdrop { background: rgba(3,4,8,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card { background: var(--glass-strong); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); border-color: var(--glass-line); border-radius: 20px; }
.modal:not([hidden]) .modal-card { animation: amRise .35s var(--ease-out) backwards; }
.toast { background: var(--glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--glass-line); border-radius: 12px; }

/* ---- Entrance & live motion ---- */
#app .block, #app .node, #app .thread-row, #app .post:not(.flash):not(.no-rise), #app .listing-card, #app .cos-card, #app .wcard, #app .member-card,
#app .trophy, #app .badge-item, #app .coin-card, #app .ticket-row, #app .review, #app .health, #app .quest, #app .side-item, #app .alert-item, #app .page-title {
  animation: amRise .6s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
.shout { animation: amSlide .45s var(--ease-out) backwards; }
.draw-line { stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: amDraw 2.4s .2s ease-out forwards; }
.bc-bar path { transform-box: fill-box; transform-origin: 50% 100%; animation: amGrow .9s var(--ease-out) backwards; }
.prog span, .bar { animation: amFill 1.3s .2s var(--ease-out) backwards; }
.avatar .online, .live-meta .pill .d { animation: amPulse 2.2s infinite; }
#app .post.is-solution:not(.flash):not(.no-rise) { animation: amRise .6s var(--ease-out) backwards, amSolution 3.2s .6s ease-in-out infinite; }
#app .post.is-solution.no-rise { animation: amSolution 3.2s ease-in-out infinite; }
.avatar .online { box-shadow: none; }

/* ---- Phone: floating glass tab bar ---- */
@media (max-width: 760px) {
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .mobile-bar { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 4px; border-radius: 20px; border: 1px solid var(--glass-line);
    background: rgba(12,13,20,.72); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); }
  [data-theme="light"] .mobile-bar { background: rgba(255,255,255,.82); }
  .mobile-bar a.on .mb-ic::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
  .emote-pop, .color-pop, .react-pop, .tt-menu { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .block-body { padding: 14px 12px; }
  .wm-orbit { width: 160%; left: -30%; }
}

/* ---- Calm mode: device asks for reduced motion, or the member turned animations off ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .draw-line { stroke-dashoffset: 0; }
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
html[data-motion="off"] .draw-line { stroke-dashoffset: 0; }
