:root {
  /* Blue and brown theme */
  --bg: #17110c;       /* deep brown */
  --bg2: #1e1610;
  --card: #251b13;     /* brown cards */
  --card2: #2f2318;
  --line: #45331f;
  --text: #f4ede5;     /* warm white */
  --muted: #b8a38c;    /* tan */
  --accent: #2563eb;   /* blue */
  --accent2: #60a5fa;  /* light blue */
  --good: #34d399;     /* profit numbers stay green, losses red, so results are easy to read */
  --warn: #f59e0b;
  --bad: #ef4444;
  --info: #38bdf8;
  --radius: 12px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 Inter, system-ui, sans-serif; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.pos { color: var(--good); }
.neg { color: var(--bad); }
.small { font-size: 12px; }
[hidden] { display: none !important; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 10px 20px; background: rgba(23,17,12,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 800; }
#nav { display: flex; gap: 4px; flex: 1; }
#nav a { white-space: nowrap; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; }
#nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
#nav a.active { color: var(--text); background: var(--card2); }
.top-right { display: flex; align-items: center; gap: 10px; }
.live { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.live.on i { background: var(--accent); box-shadow: 0 0 0 0 rgba(37,99,235,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }
.chip { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 12px; }
.btn.menu-btn { display: none; }

main { max-width: 1320px; margin: 0 auto; padding: 22px 20px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }

/* cards & grid */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 22px; font-family: var(--mono); }
.stat span { color: var(--muted); font-size: 12px; }

/* form */
label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 5px; font-weight: 500; }
.field { margin-bottom: 12px; }
input, select, textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 9px 11px; font: inherit; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 140px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filters .field { margin: 0; min-width: 150px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.check input { width: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #6b4f33; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.tabs { display: flex; gap: 4px; background: var(--bg2); padding: 4px; border-radius: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); padding: 8px 10px; border-radius: 7px; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--card2); color: var(--text); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg2); position: sticky; top: 0; }
tbody tr:hover { background: var(--card2); }
tr.click { cursor: pointer; }
td.num { font-family: var(--mono); text-align: right; }
.table-wrap.wrap td, .table-wrap.wrap th { white-space: normal; vertical-align: top; }
.grid > * { min-width: 0; }
.pnl-tabs button { flex: none; white-space: nowrap; }
@media (max-width: 760px) { .pnl-tabs { width: 100%; } .pnl-tabs button { flex: 1; padding: 8px 4px; } }
.pnl-tip { position: absolute; z-index: 5; background: var(--card2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.5; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.4); white-space: nowrap; }
th.num { text-align: right; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); margin-right: 4px; }
.badge.auto { color: var(--accent2); border-color: rgba(37,99,235,.4); }
.badge.onchain { color: var(--info); border-color: rgba(56,189,248,.4); }
.badge.view { color: var(--warn); border-color: rgba(245,158,11,.4); }
.badge.bad { color: var(--bad); border-color: rgba(239,68,68,.4); }

/* opportunities */
.opp-list { display: grid; gap: 10px; }
.opp { display: grid; grid-template-columns: 1.3fr 2.2fr .9fr 1.6fr; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.opp:hover { border-color: #6b4f33; }
.opp .sym { font-weight: 700; font-size: 15px; }
.opp .legs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.leg { background: var(--bg2); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.leg .v { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leg .p { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.arrow { color: var(--muted); }
.net { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--accent2); text-align: right; }
.net small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.opp .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }

/* modal & toasts */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-card { position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.modal-card.wide { width: min(900px, 100%); }
.modal-x { position: absolute; right: 12px; top: 8px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; }
#toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--card2); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 8px; max-width: 380px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.toast.err { border-left-color: var(--bad); }

.note { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.note.warn { border-color: rgba(245,158,11,.4); color: #fcd34d; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); text-align: right; }
.addr { font-family: var(--mono); word-break: break-all; background: var(--bg2); padding: 10px; border-radius: 8px; border: 1px solid var(--line); }
.qr { background: #fff; padding: 10px; border-radius: 8px; width: max-content; margin: 10px 0; }
.search-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; }
.search-list button { display: flex; width: 100%; justify-content: space-between; gap: 10px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); padding: 8px 10px; text-align: left; cursor: pointer; font: inherit; }
.search-list button:hover, .search-list button.sel { background: var(--card2); }
.multi { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--bg2); columns: 2; }
.multi .check { margin: 4px 0; break-inside: avoid; }
.bot-state { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--accent); }
.foot { max-width: 1320px; margin: 0 auto; padding: 18px 20px 30px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

@media (max-width: 1000px) {
  .opp { grid-template-columns: 1fr; }
  .net, .opp .acts { text-align: left; justify-content: flex-start; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .btn.menu-btn { display: inline-flex; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px; }
  #nav.open { display: flex; }
  .live span { display: none; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat b { font-size: 18px; }
  .filters .field { min-width: calc(50% - 5px); flex: 1; }
  .filters select, .filters input { width: 100%; }
  main { padding: 16px; }
  .multi { columns: 1; }
  .topbar { gap: 10px; padding: 10px 16px; }
}

/* guide */
.guide-toc { columns: 2; column-gap: 28px; padding-left: 20px; margin: 0; line-height: 1.9; }
@media (max-width: 640px) { .guide-toc { columns: 1; } }
.card ol, .card ul { padding-left: 20px; line-height: 1.6; }
.faq dt { font-weight: 600; margin-top: 12px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
[id^="g-"] { scroll-margin-top: 80px; }
/* nav: switch to the menu button before the links run out of room */
@media (max-width: 1440px) {
  .top-right { margin-left: auto; }
  .btn.menu-btn { display: inline-flex; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px; z-index: 40; }
  #nav.open { display: flex; }
}
.chip { white-space: nowrap; }
/* total profits paid out to users (Opportunities page) */
.paid-banner { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(37,99,235,.35); background: linear-gradient(90deg, rgba(37,99,235,.12), rgba(37,99,235,.03)); }
.paid-banner .paid-label { color: var(--muted); font-weight: 500; }
.paid-banner b { font-size: 24px; color: var(--accent2); font-variant-numeric: tabular-nums; }
/* "Arbitrage Made Simple" tagline under the site name */
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.tagline { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--accent2); white-space: nowrap; }
@media (max-width: 480px) {
  .tagline { white-space: normal; font-size: 10px; max-width: 78px; line-height: 1.2; }
  .topbar { gap: 8px; }
  .top-right { gap: 6px; }
}
@media (max-width: 374px) { #balance-chip { display: none !important; } } /* very small phones: balance stays on the Wallet page */
/* "Arbitrage Made Simple" headline at the top of the Opportunities page */
.hero { text-align: center; padding: 18px 0 26px; }
.hero-title { display: inline-block; font-size: clamp(32px, 6vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0;
  background: linear-gradient(90deg, var(--text) 0%, var(--accent2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-title { font-size: 22px; margin: 0 0 4px; }

/* area titles */
.section-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 8px; }
/* bot dashboards have fewer links, so they only need the menu button on phones */
@media (min-width: 761px) {
  body.bot-ui .btn.menu-btn { display: none; }
  body.bot-ui #nav { display: flex; position: static; flex-direction: row; padding: 0; border: 0; background: none; }
  body.bot-ui .top-right { margin-left: 0; }
}
.nowrap { white-space: nowrap; }
.table-wrap.wrap td.nowrap, .table-wrap.wrap th.nowrap { white-space: nowrap; }
/* admin-only banner: a wallet needs a top-up */
.admin-banner.freeze-banner { border-color: rgba(239,68,68,.55); background: rgba(239,68,68,.12); color: #fecaca; }
.admin-banner .freeze-banner { color: #fecaca; }
.freeze-banner .fz { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.freeze-banner .fz + .fz { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(239,68,68,.25); }
.freeze-banner .fz-text { flex: 1 1 320px; }
.freeze-banner .fz-said { display: block; color: #fca5a5; opacity: .85; font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.disclaimer-box { border: 1px solid rgba(239,68,68,.45); background: rgba(239,68,68,.07); border-radius: 10px; padding: 12px 14px; }
.admin-banner { max-width: 1320px; margin: 12px auto 0; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(245,158,11,.45); background: rgba(245,158,11,.1); color: #fcd34d; font-size: 13px; }
@media (max-width: 1360px) { .admin-banner { margin: 12px 20px 0; } }

/* ---------------- music bar (bottom of every page) ---------------- */
body.has-music { padding-bottom: 72px; }
.music-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: rgba(30,22,16,.97); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.music-bar[hidden] { display: none; }
.mb-btn { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; min-width: 36px; height: 36px; cursor: pointer; font-size: 15px; }
.mb-btn:hover { border-color: var(--accent2); }
.mb-play { background: var(--accent); border-color: var(--accent); color: #fff; }
.mb-info { flex: 1; min-width: 0; }
.mb-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mb-vol { width: 110px; accent-color: var(--accent2); }
.mb-embed { position: absolute; right: 16px; bottom: 64px; width: 356px; height: 200px; /* YouTube asks for at least 200x200 */ border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.mb-embed iframe { width: 100%; height: 100%; border: 0; }
.mb-list { position: absolute; right: 16px; bottom: 64px; width: 340px; max-height: 50vh; overflow: auto; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.5); z-index: 2; }
.mb-item { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 8px 10px; border-radius: 6px; cursor: pointer; font: inherit; }
.mb-item:hover, .mb-item.on { background: var(--card); }
.music-bar.min { padding: 6px 12px; }
.music-bar.min .mb-info, .music-bar.min .mb-vol, .music-bar.min [data-mb="prev"], .music-bar.min [data-mb="next"], .music-bar.min [data-mb="list"] { display: none; }
.music-bar.min { left: auto; right: 12px; bottom: 12px; border: 1px solid var(--line); border-radius: 12px; }
body.has-music:has(.music-bar.min) { padding-bottom: 0; }
@media (max-width: 640px) {
  .mb-vol { display: none; }
  .mb-embed, .mb-list { left: 8px; right: 8px; width: auto; }
}

/* ---------------- Media page ---------------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.music-list { display: flex; flex-direction: column; }
.music-row { display: flex; gap: 12px; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); padding: 10px 6px; text-align: left; cursor: pointer; font: inherit; }
.music-row:last-child { border-bottom: 0; }
.music-row:hover { background: var(--card2); }
.mb-play-icon { color: var(--accent2); width: 18px; }

/* ---------------- Chat ---------------- */
.chat-layout { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.chat-card { display: flex; flex-direction: column; gap: 10px; }
.chat-msgs { height: min(60vh, 560px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; }
.chat-msg { max-width: 80%; padding: 8px 12px; border-radius: 12px; background: var(--card2); align-self: flex-start; }
.chat-msg.mine { align-self: flex-end; background: rgba(37,99,235,.18); border: 1px solid rgba(37,99,235,.35); }
.chat-meta { font-size: 12px; margin-bottom: 2px; }
.chat-admin { color: var(--accent2); }
.chat-text { white-space: pre-wrap; word-break: break-word; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 4px; text-decoration: underline; }
.video-room { margin-top: 10px; aspect-ratio: 16 / 10; min-height: 360px; border-radius: 10px; overflow: hidden; background: #000; }
.video-room iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .chat-msg { max-width: 92%; } .video-room { min-height: 300px; aspect-ratio: 3 / 4; } }
body.has-music #toasts { bottom: 84px; }
.kv dd { min-width: 0; overflow-wrap: anywhere; }

/* Admin: feature on/off switches */
.feature-switch { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); cursor: pointer; }
.feature-switch > span:nth-of-type(2) { flex: 1; min-width: 0; }
.feature-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: none; width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; transition: background .15s; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.feature-switch input:checked + .switch-ui { background: var(--accent); }
.feature-switch input:checked + .switch-ui::after { transform: translateX(18px); }
.feature-switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent2); outline-offset: 2px; }

/* YouTube search (Media page) */
.yt-form { display: flex; gap: 8px; flex-wrap: wrap; }
.yt-form input { flex: 1 1 260px; min-width: 0; }
.yt-form select { flex: 0 0 auto; width: auto; }
.yt-player { margin-top: 14px; }
.yt-now { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.yt-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.yt-results > p, .yt-results > .note { grid-column: 1 / -1; }
.yt-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.yt-thumb { position: relative; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; background: #000; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-playicon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; color: #fff; opacity: 0; background: rgba(0,0,0,.35); transition: opacity .15s; }
.yt-thumb:hover .yt-playicon, .yt-thumb:focus-visible .yt-playicon { opacity: 1; }
.yt-live { position: absolute; top: 6px; left: 6px; }
.yt-title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------- "Welcome To Da Bay and Da May" sign (home page) ---------------- */
.welcome-wrap { text-align: center; padding: 18px 0 0; }
.welcome-sign { --sign: #ff2bd6; display: inline-block; margin: 0; font-family: 'Tilt Neon', 'Inter', system-ui, sans-serif; font-weight: 400;
  font-size: clamp(26px, 5.2vw, 52px); line-height: 1.15; letter-spacing: .02em; color: var(--sign); }
.welcome-sign.plain { font-family: Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -0.01em; text-shadow: none; }
.welcome-sign.neon { color: #fff8fd;
  text-shadow: 0 0 2px #fff, 0 0 6px var(--sign), 0 0 12px var(--sign), 0 0 24px var(--sign), 0 0 42px var(--sign), 0 0 72px var(--sign); }
/* real-sign flicker: a few quick dips, then a long steady glow (well under 3 flashes per second) */
.welcome-sign.neon.flashing { animation: neon-flicker 4s infinite; }
@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; text-shadow: 0 0 2px #fff, 0 0 6px var(--sign), 0 0 12px var(--sign), 0 0 24px var(--sign), 0 0 42px var(--sign), 0 0 72px var(--sign); }
  20%, 24%, 55% { opacity: .55; text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .welcome-sign.neon.flashing { animation: none; } }
.welcome-wrap + .hero { padding-top: 8px; }

/* admin controls for the sign */
.welcome-preview { text-align: center; padding: 22px 12px; background: #0d0907; border: 1px solid var(--line); border-radius: 10px; }
.welcome-preview .welcome-sign { font-size: clamp(20px, 3.4vw, 34px); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--c); cursor: pointer; box-shadow: 0 0 8px var(--c); }
.swatch.on { outline: 2px solid #fff; outline-offset: 2px; }
.color-input { width: 72px; height: 38px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; }
.feature-switch.disabled { opacity: .5; cursor: not-allowed; }
.welcome-edit { margin-top: 6px; opacity: .75; } .welcome-edit:hover { opacity: 1; }

/* Trade buttons that show the opportunity and its profit */
.trade-go { white-space: normal; text-align: left; line-height: 1.3; }
.opp .acts .trade-go { max-width: 100%; }
