/* ── HoodStream design system ─────────────────────────────── */
:root {
  --bg:        #0c0e07;
  --panel:     #0a0c05;
  --card:      #0e1108;
  --input:     #12150b;
  --stroke:    #232812;
  --stroke-2:  #2b301b;
  --stroke-3:  #1c2110;
  --stroke-lt: #3a4122;
  --accent:    #d5f919;
  --accent-hi: #e7fb63;
  --accent-sh: #4d5b09;
  --text:      #f2f4e9;
  --text-2:    #c9cfba;
  --muted:     #9aa088;
  --dim:       #6b7158;
  --live:      #ff4b4b;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--stroke-2); }
::-webkit-scrollbar-track { background: transparent; }
input::placeholder { color: var(--dim); }

@keyframes livePulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.brand img { width: 36px; height: 36px; display: block; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
}
.brand-text span { color: var(--accent); }

.nav-tabs { display: flex; gap: 2px; }
.nav-tab {
  padding: 8px 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-tab:hover { color: var(--text); }
.nav-tab.is-active { color: var(--text); border-bottom-color: var(--accent); }

.header-search {
  flex: 1 1 120px;
  min-width: 90px;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--input);
  border: 1px solid var(--stroke-2);
  padding: 9px 12px;
}
.header-search:focus-within { border-color: var(--accent); }
.header-search span { color: var(--dim); font-size: 14px; }
.header-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--input);
  border: 1px solid var(--stroke-2);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}
.balance-pill .dot { width: 8px; height: 8px; background: var(--accent); display: inline-block; }
.balance-pill b { color: var(--text); font-weight: 700; }
.balance-pill span { color: var(--muted); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary {
  background: var(--accent);
  color: var(--panel);
  padding: 10px 20px;
  box-shadow: 3px 3px 0 var(--accent-sh);
}
.btn-primary:hover {
  background: var(--accent-hi);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--accent-sh);
}
.btn-primary:disabled {
  background: var(--input);
  color: var(--dim);
  border: 1px solid var(--stroke-2);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke-lt);
  padding: 10px 20px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-locked {
  background: var(--input);
  color: var(--dim);
  border: 1px solid var(--stroke-2);
  padding: 10px 20px;
  cursor: not-allowed;
}

.btn-wallet {
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--stroke-lt);
  padding: 10px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-wallet:hover { border-color: var(--accent); color: var(--accent); }
.btn-wallet.is-connected {
  font-family: var(--font-mono);
  color: var(--accent);
  border-color: var(--accent);
  background: #1c2210;
}

/* ── LIVE badge / pulse ───────────────────────────────────── */
.pulse-dot {
  width: 7px; height: 7px;
  background: var(--live);
  display: inline-block;
  animation: livePulse 1.6s infinite;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--live);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.08em;
}
.live-badge .pulse-dot { background: #fff; }

/* ── Home layout ──────────────────────────────────────────── */
.home-layout { display: flex; flex: 1; min-height: 0; }

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--stroke-3);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 12px;
}
.sidebar-head .sq { width: 8px; height: 8px; background: var(--accent); display: inline-block; }
.sidebar-head span:last-child {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.sidebar-list { display: flex; flex-direction: column; gap: 2px; }
.side-ch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}
.side-ch:hover { background: var(--input); border-color: var(--stroke-2); }
.side-ch .avatar {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  color: var(--panel);
  flex-shrink: 0;
}
.side-ch .info { flex: 1; min-width: 0; }
.side-ch .name { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-ch .cat  { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-ch .meta { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.side-ch .meta .n { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.side-ch .meta .pulse-dot { width: 6px; height: 6px; }
.sidebar-empty { padding: 8px; font-size: 12px; color: var(--dim); }

.hold-note { margin-top: auto; border: 1px solid var(--stroke-2); background: var(--card); }
.hold-note .bar { height: 4px; background: var(--accent); }
.hold-note .body { padding: 16px; }
.hold-note .title { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; margin-bottom: 8px; }
.hold-note .text { font-size: 12px; color: var(--muted); line-height: 1.6; }
.hold-note .text b { color: var(--accent); font-family: var(--font-mono); font-weight: 700; }

.home-main { flex: 1; min-width: 0; padding: 28px 32px 56px; overflow: auto; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  border: 1px solid var(--stroke-2);
  margin-bottom: 36px;
  min-height: 280px;
}
.hero-left {
  background: var(--panel);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-right: 1px solid var(--stroke-2);
  border-bottom: 1px solid var(--stroke-2);
}
.hero-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-tag-solid {
  background: var(--accent);
  color: var(--panel);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  letter-spacing: 0.08em;
}
.hero-tag-dim { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
.hero-title span { color: var(--accent); }
.hero-sub { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 38ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 6px; }
.hero-right {
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  min-height: 220px;
  background-color: var(--card);
}
.hero-right .live-badge { position: absolute; top: 16px; right: 16px; padding: 5px 12px; font-size: 12px; }
.hero-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--panel);
  border-top: 1px solid var(--stroke-2);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-strip .avatar {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--panel);
  flex-shrink: 0;
}
.hero-strip .info { flex: 1; min-width: 0; }
.hero-strip .t { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-strip .s { font-size: 12px; color: var(--muted); }
.hero-strip .v { font-family: var(--font-mono); font-size: 12px; color: var(--accent); white-space: nowrap; flex-shrink: 0; }

/* category chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  padding: 8px 18px;
  background: var(--input);
  border: 1px solid var(--stroke-2);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--panel);
  font-weight: 700;
}

/* section head */
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-head .pulse-dot { width: 10px; height: 10px; }
.section-head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.section-head .note { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }

/* stream grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.card { cursor: pointer; border: 1px solid var(--stroke); background: var(--card); }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-media {
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--stroke);
  overflow: hidden;
  background: #0f1209;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media .initials {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 56px;
  opacity: 0.9;
  letter-spacing: 0.02em;
}
.card-media .live-badge { position: absolute; top: 10px; left: 10px; }
.card-media .viewers {
  position: absolute;
  bottom: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--panel);
  padding: 4px 9px;
  color: var(--text);
}
.card-media .cat-tag {
  position: absolute;
  bottom: 10px; right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--panel);
  padding: 4px 9px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.card-body { display: flex; gap: 12px; padding: 14px; }
.card-body .avatar {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--panel);
  flex-shrink: 0;
}
.card-body .txt { min-width: 0; }
.card-body .title {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-body .name { font-size: 13px; color: var(--accent); font-weight: 700; margin-top: 3px; }
.card-body .addr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  margin-top: 3px;
  cursor: copy;
}
.card-body .addr:hover { color: var(--muted); }

.no-streams {
  grid-column: 1 / -1;
  border: 1px solid var(--stroke-2);
  background: var(--card);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.no-streams b { color: var(--text); display: block; margin-top: 6px; font-family: var(--font-head); }

/* ── Stream page ──────────────────────────────────────────── */
.stream-layout { display: flex; flex: 1; min-height: 0; height: calc(100vh - 64px); }
.player-col { flex: 1; min-width: 0; overflow: auto; display: flex; flex-direction: column; }

.player-wrap {
  position: relative;
  aspect-ratio: 16/9;
  max-height: 66vh;
  background: var(--panel);
  border-bottom: 1px solid var(--stroke);
  flex-shrink: 0;
}
.player-video { width: 100%; height: 100%; display: block; background: #000; }
.player-wrap .live-badge { position: absolute; top: 16px; left: 16px; padding: 5px 12px; font-size: 12px; z-index: 3; }

.player-offline {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  z-index: 2;
}
.player-offline .t { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--text); margin-bottom: 6px; }

.player-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 52px;
  background: linear-gradient(transparent, rgba(8,10,4,0.95));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  z-index: 4;
}
.pc-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.pc-btn:hover { color: var(--accent); }
.pc-spacer { flex: 1; }
.pc-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.pc-live {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--live);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.08em;
}

.mute-wrap { position: relative; display: flex; align-items: center; }
.vol-pop {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--stroke-2);
  padding: 12px 10px;
}
.vol-range {
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  width: 24px;
  height: 90px;
  accent-color: #d5f919;
}

/* stream info */
.stream-info { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 20px; }
.stream-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.stream-head .avatar {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--panel);
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.stream-head .main { flex: 1; min-width: 240px; }
.stream-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}
.stream-meta { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.stream-meta .name { font-weight: 800; font-size: 14px; color: var(--accent); }
.stream-meta .cat  { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.stream-meta .addr { font-family: var(--font-mono); font-size: 12px; color: var(--dim); cursor: copy; }
.stream-meta .addr:hover { color: var(--muted); }
.stream-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.viewers-live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--live);
  font-weight: 700;
  white-space: nowrap;
}
.viewers-live .pulse-dot { width: 8px; height: 8px; }
.btn-follow {
  background: var(--accent);
  color: var(--panel);
  border: none;
  padding: 10px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--accent-sh);
}
.btn-follow:hover { background: var(--accent-hi); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--accent-sh); }
.btn-follow.is-following {
  background: var(--input);
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
  transform: none;
}

.desc-box { border: 1px solid var(--stroke); background: var(--card); }
.desc-box .bar { height: 3px; background: var(--accent); }
.desc-box .body { padding: 18px 20px; }
.desc-box .label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-bottom: 10px;
}
.desc-box .text { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.desc-stats { display: flex; gap: 32px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--stroke); flex-wrap: wrap; }
.desc-stat .k { font-family: var(--font-head); font-size: 10px; color: var(--dim); font-weight: 700; letter-spacing: 0.12em; }
.desc-stat .v { font-family: var(--font-mono); font-size: 15px; font-weight: 700; margin-top: 4px; }
.desc-stat .v.hl { color: var(--accent); }

/* chat */
.chat-col {
  width: 350px;
  flex-shrink: 0;
  background: var(--panel);
  border-left: 1px solid var(--stroke-3);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--stroke-3);
  flex-shrink: 0;
}
.chat-header .t {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-2);
}
.chat-header .v { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 0;
}
.chat-msg { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg .u { font-weight: 800; }
.chat-msg .sep { color: var(--dim); }
.chat-msg .m { color: #dde1d2; }
.chat-msg.is-donation {
  background: #1c2210;
  border: 1px solid var(--accent-sh);
  padding: 8px 10px;
}
.chat-input-wrap {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--stroke-3);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-form { display: flex; gap: 8px; }
.chat-form input {
  flex: 1;
  min-width: 0;
  background: var(--input);
  border: 1px solid var(--stroke-2);
  padding: 11px 12px;
  color: var(--text);
  outline: none;
  font-family: var(--font-body);
  font-size: 13px;
}
.chat-form input:focus { border-color: var(--accent); }
.chat-form input:disabled { opacity: 0.5; }
.chat-form button {
  background: var(--accent);
  color: var(--panel);
  border: none;
  padding: 0 16px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.chat-form button:hover { background: var(--accent-hi); }
.chat-form button:disabled { background: var(--input); color: var(--dim); cursor: not-allowed; }
.chat-hint { font-family: var(--font-mono); font-size: 10px; color: var(--dim); letter-spacing: 0.04em; }

/* ── Go Live page ─────────────────────────────────────────── */
.golive-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 36px 24px 72px; }
.golive-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.golive-title span { color: var(--accent); }
.golive-sub { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 28px; }

.panel { border: 1px solid var(--stroke-2); background: var(--card); margin-bottom: 24px; }
.panel .bar { height: 4px; background: var(--accent); }
.panel .body { padding: 20px 22px; }
.panel h3 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 14px;
}

.gate-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gate-stat { font-family: var(--font-mono); font-size: 14px; }
.gate-stat b { color: var(--accent); }
.gate-ok  { color: var(--accent); font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.gate-bad { color: var(--live);   font-family: var(--font-mono); font-size: 13px; font-weight: 700; }

.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-field input, .form-field select {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--stroke-2);
  padding: 11px 12px;
  color: var(--text);
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
}
.form-field input:focus, .form-field select:focus { border-color: var(--accent); }

.key-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--input);
  border: 1px solid var(--stroke-2);
  padding: 12px 14px;
  margin-top: 10px;
}
.key-box code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.obs-steps { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14px; line-height: 2; }
.code-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--input);
  border: 1px solid var(--stroke-2);
  padding: 2px 8px;
  color: var(--accent);
}
.check-status { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.check-status.err { color: var(--live); }

.spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--stroke-lt);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Wallet modal / popover ───────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5,6,2,0.8); }
.modal__card {
  position: relative;
  width: min(400px, calc(100vw - 32px));
  margin: 15vh auto 0;
  background: var(--card);
  border: 1px solid var(--stroke-2);
  box-shadow: 6px 6px 0 rgba(77,91,9,0.35);
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--stroke);
}
.modal__title { margin: 0; font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
.modal__close { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
.modal__close:hover { color: var(--text); }
.modal__body { padding: 18px; }
.modal__hint { font-size: 12px; color: var(--dim); margin: 14px 0 0; line-height: 1.5; }
.modal__error { font-size: 12px; color: var(--live); margin: 12px 0 0; }

.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--input);
  border: 1px solid var(--stroke-2);
  padding: 13px 14px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
}
.wallet-item:hover { border-color: var(--accent); }
.wallet-item:disabled { opacity: 0.6; cursor: wait; }
.wallet-item__icon { width: 24px; height: 24px; display: flex; flex-shrink: 0; }
.wallet-item__icon img { width: 24px; height: 24px; }

.wallet-pop {
  position: absolute;
  z-index: 90;
  display: none;
  background: var(--card);
  border: 1px solid var(--stroke-2);
  padding: 12px 14px;
  min-width: 200px;
  box-shadow: 4px 4px 0 rgba(77,91,9,0.35);
}
.wallet-pop.is-open { display: block; }
.wallet-pop__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 10px;
}
.wallet-pop__row strong { color: var(--text); font-family: var(--font-head); }
.btn-disconnect {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--stroke-lt);
  color: var(--text);
  padding: 8px 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.btn-disconnect:hover { border-color: var(--live); color: var(--live); }

/* donate modal reuses .modal */
.donate-amount { display: flex; gap: 8px; margin-top: 4px; }
.donate-amount input {
  flex: 1;
  min-width: 0;
  background: var(--input);
  border: 1px solid var(--stroke-2);
  padding: 11px 12px;
  color: var(--text);
  outline: none;
  font-family: var(--font-mono);
  font-size: 14px;
}
.donate-amount input:focus { border-color: var(--accent); }
.donate-quick { display: flex; gap: 8px; margin-top: 10px; }
.donate-quick button {
  flex: 1;
  background: var(--input);
  border: 1px solid var(--stroke-2);
  color: var(--text-2);
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}
.donate-quick button:hover { border-color: var(--accent); color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--stroke-3);
  background: var(--panel);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
}
.site-footer img { width: 16px; height: 16px; opacity: 0.6; }
.site-footer a:hover img { opacity: 1; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .sidebar { display: none; }
  .stream-layout { flex-direction: column; height: auto; }
  .chat-col { width: 100%; border-left: none; border-top: 1px solid var(--stroke-3); height: 60vh; }
  .header-search { display: none; }
  .balance-pill { display: none; }
}
