/* BTCTreasuryBot tab (page.html#btctreasury). Black / white / #F7931A / Montserrat. */
.app[data-view="btctreasury"] .main {
  max-width: none;
  padding: 0;
}
.app[data-view="btctreasury"] .sidebar {
  display: none;
}
.app[data-view="btctreasury"] .shell {
  grid-template-columns: 1fr;
  grid-column: 1 / -1;
}
.app[data-view="btctreasury"] #avatarPanel,
.app[data-view="btctreasury"] .avatar-panel {
  display: none;
}

.btct-tab {
  --btct-orange: #F7931A;
  --btct-orange-hover: #ffb14a;
  --btct-bg: #000000;
  --btct-card: #111111;
  --btct-line: #2a2a2a;
  --btct-muted: #a3a3a3;
  color: #ffffff;
  background: #000000;
  font-family: Montserrat, Helvetica, sans-serif;
  padding-bottom: 88px;
}

.btct-disclaimer {
  margin: 0;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid #2a2a2a;
}
.btct-disclaimer a { color: #F7931A; }

.btct-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 16px;
  border-bottom: 1px solid #2a2a2a;
  background: #0a0a0a;
  font-size: 14px;
}
.btct-status-live { color: #a3a3a3; }
.btct-status.is-stopped {
  background: #1a1004;
  border-color: #F7931A;
}
.btct-status.ring {
  box-shadow: inset 0 0 0 2px #F7931A;
}

.btct-stop {
  margin-left: auto;
  min-height: 48px;
  min-width: 96px;
  padding: 10px 18px;
  background: transparent;
  color: #ffffff;
  border: 2px solid #F7931A;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.btct-stop:hover { background: #1a1004; }

.btct-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  align-items: start;
}

.btct-stage {
  position: sticky;
  top: 88px;
  padding: 16px;
  border-right: 1px solid #2a2a2a;
  background: #000;
  min-height: 280px;
}
.btct-stage-inner { position: relative; }

.btct-avatar {
  width: 220px;
  height: 220px;
  margin: 0 auto 12px;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.btct-avatar img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
  transform-origin: 50% 91.8%;
}
.btct-avatar[data-state="talking"] img,
.btct-avatar[data-state="pointing"] img { animation: btct-talk 0.9s ease-in-out infinite; }
.btct-avatar[data-state="celebrate"] img,
.btct-avatar[data-state="celebrating"] img { animation: btct-pulse 0.6s ease-in-out 3; }
@keyframes btct-talk {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes btct-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.btct-captions {
  min-height: 72px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.45;
}
.btct-captions[hidden] { display: none; }

.btct-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.btct-controls button,
.btct-ghost {
  min-height: 40px;
  padding: 8px 12px;
  background: transparent;
  color: #fff;
  border: 1px solid #444;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btct-controls button:hover,
.btct-ghost:hover { border-color: #F7931A; color: #F7931A; }

.btct-chat { display: flex; gap: 8px; }
.btct-chat input {
  flex: 1;
  min-height: 48px;
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px;
}
.btct-chat button {
  min-height: 48px;
  min-width: 48px;
  background: #F7931A;
  color: #000;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btct-chat button.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #444;
}

.btct-hear {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
}
.btct-hear[hidden] { display: none; }
.btct-hear-btn {
  min-height: 56px;
  padding: 14px 22px;
  background: #F7931A;
  color: #000;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.btct-main { padding: 16px; min-width: 0; }

.btct-subs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  -webkit-overflow-scrolling: touch;
}
.btct-subs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  background: #101010;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btct-subs button.active,
.btct-subs button:hover {
  border-color: #F7931A;
  color: #F7931A;
}

.btct-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #2a1a00;
  border: 1px solid #F7931A;
  border-radius: 10px;
  font-weight: 600;
}
.btct-banner[hidden] { display: none; }

.btct-toprow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 12px;
}

.btct-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 12px;
}
.btct-card h2, .btct-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: none;
}
.btct-card.ring {
  outline: 2px solid #F7931A;
  outline-offset: 2px;
}
.btct-btc-count {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #F7931A;
}
.btct-usd { margin: 4px 0 8px; font-size: 1.1rem; }
.btct-muted, .btct-card .sub { color: #a3a3a3; font-size: 14px; }

.btct-track { position: relative; height: 48px; margin: 16px 0 8px; }
.btct-track-bar {
  position: absolute;
  left: 0; right: 0; top: 20px;
  height: 6px;
  background: #2a2a2a;
  border-radius: 99px;
}
.btct-track-fill {
  height: 6px;
  background: #F7931A;
  border-radius: 99px;
  width: 0;
}
.btct-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 11px;
  color: #a3a3a3;
}
.btct-you {
  position: absolute;
  top: 28px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: #F7931A;
  white-space: nowrap;
}

.btct-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
.btct-choice button,
.btct-btn {
  min-height: 52px;
  padding: 12px 16px;
  background: #F7931A;
  color: #000;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.btct-choice button.ghost,
.btct-btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.btct-choice button:hover,
.btct-btn:hover { background: #ffb14a; color: #000; }
.btct-choice button.ghost:hover,
.btct-btn.ghost:hover { background: transparent; border-color: #F7931A; color: #F7931A; }
.btct-choice-note { grid-column: 1 / -1; margin: 0; color: #a3a3a3; font-size: 14px; }

.btct-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}
.btct-pill.buy { background: #F7931A; color: #000; }
.btct-pill.sell { background: transparent; color: #fff; border: 1px solid #fff; }
.btct-pill.research { background: transparent; color: #a3a3a3; border: 1px solid #666; }

.btct-idea { margin: 0 0 14px; }
.btct-idea-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
}
.btct-factor {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  gap: 8px;
  align-items: center;
  margin: 4px 0;
  font-size: 13px;
}
.btct-bar {
  height: 8px;
  background: #2a2a2a;
  border-radius: 99px;
  overflow: hidden;
}
.btct-bar > span {
  display: block;
  height: 8px;
  background: #F7931A;
}
.btct-actions { display: flex; gap: 8px; margin-top: 12px; }
.btct-credit { margin: 10px 0 0; font-size: 13px; }
.btct-credit a { color: #F7931A; }
details.btct-details { margin-top: 8px; color: #a3a3a3; font-size: 13px; }
details.btct-details summary { cursor: pointer; color: #fff; }

.btct-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.btct-table th, .btct-table td {
  text-align: left;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid #222;
  vertical-align: top;
}
.btct-table th { color: #a3a3a3; font-weight: 600; font-size: 12px; }

.btct-chart { width: 100%; height: 180px; background: #0a0a0a; border-radius: 12px; }

.btct-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.btct-cal button {
  min-height: 40px;
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  font-family: inherit;
  cursor: pointer;
}
.btct-cal button.filled { background: #F7931A; color: #000; }
.btct-cal button.ideas { box-shadow: inset 0 0 0 2px #fff; }

.btct-pairs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.btct-pairs label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #fff;
  font-size: 14px;
}
.btct-pairs input { width: auto; margin: 0; }
.btct-pair-research { color: #a3a3a3; }
.btct-sms {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #2a2a2a;
}
.btct-sms-consent { display: block; line-height: 1.45; }
.btct-quiet {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 8px 10px;
  align-items: center;
}
.btct-quiet input[type="time"] { width: 100%; }
.btct-agree-scroll {
  max-height: 50vh;
  min-height: 200px;
  overflow: auto;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background: #0a0a0a;
}
.btct-agree-scroll p { margin: 0 0 1em; font-size: 14px; line-height: 1.5; }
.btct-agree-box { display: block; margin: 10px 0; line-height: 1.45; }
.btct-agreement .err { color: #ffb14a; min-height: 1.2em; }

.btct-video {
  width: 100%;
  max-height: 70vh;
  background: #000;
  border-radius: 12px;
  display: block;
}
.btct-video-desk { aspect-ratio: 16 / 9; }
.btct-video-phone {
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
}
.btct-tap-sound {
  display: inline-flex;
  margin-top: 8px;
  min-height: 48px;
  padding: 10px 14px;
  background: #F7931A;
  color: #000;
  border: 0;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btct-venues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.btct-venues button.is-picked {
  border-color: #F7931A;
  color: #F7931A;
}

.btct-locked, .btct-onboard, .btct-agreement { max-width: 640px; }
.btct-price { font-size: 32px; font-weight: 700; color: #F7931A; }

.btct-foot {
  margin: 24px 0 0;
  padding: 16px 0 8px;
  border-top: 1px solid #2a2a2a;
  color: #777;
  font-size: 13px;
  text-align: center;
}
.btct-foot p { margin: 0 0 8px; }
.btct-foot a { color: #F7931A; }

.btct-phone-action {
  display: none;
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 12;
  min-height: 48px;
  padding: 12px 16px;
  background: #F7931A;
  color: #000;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
}

.btct-follow {
  position: fixed;
  right: 12px;
  bottom: 72px;
  z-index: 12;
  min-height: 40px;
  padding: 8px 12px;
  background: #111;
  color: #F7931A;
  border: 1px solid #F7931A;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
}
.btct-follow[hidden] { display: none; }

.btct-bubble {
  display: none;
  position: fixed;
  right: 12px;
  top: auto;
  bottom: 72px;
  z-index: 13;
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 50%;
  background: #111;
  color: #F7931A;
  border: 2px solid #F7931A;
  overflow: hidden;
  cursor: pointer;
}
.btct-bubble img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
}
.btct-bubble[hidden] { display: none !important; }

.btct-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 20;
  background: #111;
  color: #fff;
  border: 1px solid #F7931A;
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 240px;
}
.btct-toast[hidden] { display: none; }

.btct-todo {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #F7931A;
  background: #1a1204;
  color: #e6d3a8;
  font-size: 13px;
}

@media (max-width: 1023px) {
  .btct-layout { grid-template-columns: 1fr; }
  .btct-stage {
    position: relative;
    top: 0;
    border-right: 0;
    border-bottom: 1px solid #2a2a2a;
    min-height: 0;
  }
  .btct-stage.is-lead { min-height: 36vh; }
  .btct-stage.is-collapsed { display: none; }
  .btct-toprow, .btct-choice { grid-template-columns: 1fr; }
  .btct-factor { grid-template-columns: 1fr; }
  .btct-phone-action { display: none !important; }
  .btct-status .btct-stop {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 12;
    margin-left: 0;
  }
  .btct-bubble:not([hidden]) { display: none !important; }
  .btct-toast,
  .btct-follow,
  .btct-controls,
  .btct-hear { display: none !important; }
}

@media (min-width: 1024px) {
  .btct-tab { padding-bottom: 24px; }
}

.btct-powerup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btct-powerup-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.btct-powerup-scene {
  position: relative;
  z-index: 1;
  width: min(96vw, 960px);
}
.btct-powerup-art {
  display: block;
  width: 100%;
  height: auto;
}
.btct-powerup-skip {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  min-height: 40px;
  padding: 8px 14px;
  background: #F7931A;
  color: #000;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
