/* Maybach Gamble Calls — Signal Desk chrome (messaging client, not landing) */
:root {
  --bg: #0e0e10;
  --panel: #1a1a1f;
  --panel-2: #222228;
  --border: #2a2a32;
  --border-soft: #33333c;
  --text: #e8e8ed;
  --text-dim: #9a9aa3;
  --text-mute: #6e6e78;
  --accent: #5b8def;
  --accent-soft: rgba(91, 141, 239, 0.14);
  --green: #3ecf8e;
  --amber: #e6b84d;
  --red: #e86a6a;
  --sol: #9945ff;
  --bsc: #f0b90b;
  --rh: #00c805;
  --radius: 8px;
  --sidebar-w: 240px;
  --rail-w: 280px;
  --topbar-h: 48px;
  --font: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.app {
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* —— Top bar —— */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  z-index: 30;
}

.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  border: 1px solid transparent;
}
.menu-btn:hover { background: var(--panel-2); border-color: var(--border); }

.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; }

.wordmark-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
}

.live-pill {
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-mute);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(62, 207, 142, 0.25);
}

.topbar-spacer { flex: 1; }

.topbar-cta {
  display: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.topbar-cta:hover { text-decoration: none; filter: brightness(1.08); }

/* —— Body grid —— */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--rail-w);
  min-height: 0;
  height: 100%;
  position: relative;
}

/* —— Sidebar —— */
.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  z-index: 20;
}

.sidebar-head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-head h2 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mute);
}
.sidebar-head p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-dim);
}

.chan-list {
  list-style: none;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.chan-group-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-mute);
  padding: 10px 8px 4px;
}

.chan {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-dim);
  text-align: left;
  font-size: 13px;
  border: 1px solid transparent;
}
.chan:hover { background: var(--panel-2); color: var(--text); }
.chan.active {
  background: var(--accent-soft);
  color: var(--text);
  border-color: rgba(91, 141, 239, 0.25);
}

.chan-hash {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.chan[data-chain="all"] .chan-hash { color: var(--accent); }
.chan[data-chain="sol"] .chan-hash { color: var(--sol); border-color: rgba(153, 69, 255, 0.35); }
.chan[data-chain="bsc"] .chan-hash { color: var(--bsc); border-color: rgba(240, 185, 11, 0.35); }
.chan[data-chain="robinhood"] .chan-hash { color: var(--rh); border-color: rgba(0, 200, 5, 0.35); }

.chan-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chan-name { font-weight: 560; color: inherit; }
.chan-sub { font-size: 11px; color: var(--text-mute); }

.desk-links {
  padding: 8px;
  border-top: 1px solid var(--border);
}
.desk-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 12px;
  text-decoration: none;
}
.desk-links a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }

.sidebar-foot {
  padding: 10px 12px 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-mute);
}
.sidebar-foot a { color: var(--text-dim); }
.sidebar-foot a:hover { color: var(--accent); }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.social-row a {
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 10px;
  color: var(--text-dim);
  text-decoration: none;
}
.social-row a:hover { border-color: var(--border-soft); color: var(--text); text-decoration: none; }

/* —— Main stream —— */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
}

.channel-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  flex-shrink: 0;
}
.channel-bar h1 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.channel-bar .status {
  font-size: 12px;
  color: var(--text-mute);
}
.channel-bar .status strong { color: var(--text-dim); font-weight: 500; }

.stream {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scroll-behavior: smooth;
}

.day-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 8px;
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 500;
}
.day-sep::before,
.day-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.msg:hover {
  background: var(--panel);
  border-color: var(--border);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  flex-shrink: 0;
  user-select: none;
}
.avatar.sol { background: #5a3d8a; }
.avatar.bsc { background: #7a6210; }
.avatar.robinhood { background: #1a6b2a; }
.avatar.other { background: #3a3a48; }

.msg-body { min-width: 0; }

.msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 3px;
}
.msg-author {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.msg-topic {
  font-size: 12px;
  color: var(--text-dim);
}
.msg-time {
  font-size: 11px;
  color: var(--text-mute);
  margin-left: auto;
}

.bubble {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px 10px 10px 10px;
  padding: 10px 12px;
}

.token-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.token-sym {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.token-name {
  color: var(--text-dim);
  font-size: 12px;
}
.chain-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-mute);
}
.chain-tag.sol { color: #c4a8ff; border-color: rgba(153, 69, 255, 0.35); }
.chain-tag.bsc { color: #f0d78c; border-color: rgba(240, 185, 11, 0.35); }
.chain-tag.robinhood { color: #7dff9a; border-color: rgba(0, 200, 5, 0.35); }

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}
.metrics span b {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.up { color: var(--green); }
.down { color: var(--red); }

.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.msg-actions a {
  font-size: 11px;
  font-weight: 560;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-dim);
  text-decoration: none;
}
.msg-actions a:hover {
  color: var(--text);
  border-color: var(--border-soft);
  text-decoration: none;
}
.msg-actions a.primary {
  background: var(--accent-soft);
  border-color: rgba(91, 141, 239, 0.35);
  color: #a8c4f5;
}

.contract {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 6px;
  word-break: break-all;
}

.stream-empty,
.stream-error,
.stream-loading {
  margin: 40px auto;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  max-width: 280px;
}
.stream-loading { color: var(--text-dim); }

/* —— Right rail —— */
.rail {
  background: var(--panel);
  border-left: 1px solid var(--border);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rail-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.rail-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.rail-card p {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.5;
}

.cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
}
.cta-btn:hover { text-decoration: none; filter: brightness(1.07); }

.cta-btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  margin-top: 8px;
}
.cta-btn.ghost:hover { background: var(--panel-2); }

.sticky-cta {
  position: sticky;
  top: 0;
}

.contact-list {
  list-style: none;
  font-size: 12px;
}
.contact-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mute);
}

.join-stack { display: flex; flex-direction: column; gap: 8px; }

.disclaimer {
  font-size: 10px;
  color: var(--text-mute);
  line-height: 1.45;
  margin-top: auto;
}

/* —— Overlay for mobile sidebar —— */
.scrim {
  display: none;
  position: fixed;
  inset: var(--topbar-h) 0 0 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 15;
}
.scrim.open { display: block; }

/* —— Responsive —— */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .topbar-cta { display: inline-block; }

  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: inline-flex; }
}

@media (min-width: 961px) and (max-width: 1180px) {
  :root { --rail-w: 240px; --sidebar-w: 210px; }
}


/* === kit: reviews + video + locked footer === */
.kit-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.kit-reviews { padding: 2.5rem 0 1.5rem; }
.kit-reviews-title, .kit-video-title { font-size: 1.35rem; margin: 0 0 0.35rem; }
.kit-reviews-lead { opacity: 0.75; margin: 0 0 1.25rem; font-size: 0.95rem; }
.reviews-grid { display: grid; gap: 1rem; }
.reviews-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reviews-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .reviews-grid-2, .reviews-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .reviews-grid-3 { grid-template-columns: 1fr; }
}
.reviews-stacked { display: flex; flex-direction: column; gap: 1rem; max-width: 420px; margin: 0 auto; }
.reviews-carousel { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.reviews-track { display: flex; gap: 1rem; padding-bottom: 0.5rem; }
.reviews-track .review-card { flex: 0 0 min(280px, 75vw); scroll-snap-align: start; }
.review-card { margin: 0; border-radius: 8px; overflow: hidden; background: rgba(0,0,0,0.08); }
.review-card img { display: block; width: 100%; height: auto; }
.kit-video-sec { padding: 1.5rem 0 2.5rem; }
.kit-video { width: 100%; max-width: 900px; display: block; margin: 0 auto; border-radius: 10px; background: #000; aspect-ratio: 16/9; }
.kit-locked-foot { text-align: center; padding: 1.25rem 1rem 1.75rem; font-size: 0.9rem; line-height: 1.55; opacity: 0.9; }
.kit-locked-foot p { margin: 0; }
.kit-thick { padding: 1.5rem 0; }
.kit-thick .kit-pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.kit-thick .kit-pill { display: inline-block; padding: 0.35rem 0.7rem; border: 1px solid currentColor; border-radius: 999px; font-size: 0.8rem; text-decoration: none; }
