/* SpaceX Investor Mandate — live SPCX layer */
#spcx-ticker-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #000000;
  border-bottom: 1px solid #3a3a3f;
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.88rem;
  color: #d8d8e0;
}

#spcx-ticker-bar .ticker-time {
  font-size: 0.78rem;
}

#spcx-ticker-bar .ticker-symbol {
  font-weight: 800;
  font-size: 1.05rem;
  color: #f0f0fa;
  letter-spacing: 0.12em;
}

#spcx-ticker-bar .ticker-price {
  font-weight: 700;
  font-size: 1.22rem;
  color: #fff;
}

#spcx-ticker-bar .ticker-change.up { color: #8fbc8f; }
#spcx-ticker-bar .ticker-change.down { color: #c97a7a; }

#spcx-ticker-bar .ticker-price.price-flash {
  animation: price-flash 0.6s ease;
}

@keyframes price-flash {
  0%, 100% { color: #fff; }
  50% { color: #6ee7a0; }
}

#spcx-ticker-bar .ticker-badge {
  background: transparent;
  border: 1px solid rgba(240, 240, 250, 0.35);
  color: #f0f0fa;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

#spcx-ticker-bar .ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #94a3b8;
  font-size: 0.72rem;
}

#spcx-ticker-bar .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fbc8f;
  animation: mandate-pulse 1.5s infinite;
}

@keyframes mandate-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

body.mandate-active nav.fixed,
body.mandate-active .header {
  top: var(--ticker-h, 42px) !important;
}

body.mandate-active {
  padding-top: 0;
}

.mandate-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.mandate-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: center;
}

.mandate-section .mandate-sub {
  text-align: center;
  color: #b4b4be;
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

#spcx-chart-wrap {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 1rem 1rem 0.5rem;
  margin-bottom: 0.75rem;
}

.spcx-chart-canvas-wrap {
  height: 400px;
  position: relative;
  width: 100%;
}

#spcx-chart-wrap canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 768px) {
  #spcx-chart-wrap {
    padding-bottom: 0.25rem;
  }

  .spcx-chart-canvas-wrap {
    height: 320px;
  }

  #spcx-chart-stats {
    gap: 0.5rem;
  }

  .spcx-stat-card .value {
    font-size: 1.2rem !important;
  }

  .spcx-stat-card .label {
    font-size: 0.75rem !important;
  }
}

#spcx-chart-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  #spcx-chart-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  #spcx-chart-stats {
    grid-template-columns: repeat(7, 1fr);
  }
}

.spcx-stat-card {
  background: rgba(12, 12, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spcx-stat-card .value.up {
  color: #6ee7a0;
}

.spcx-stat-card .value.down {
  color: #f0a0a0;
}

.spcx-stat-card .value.live-pulse {
  color: #6ee7a0;
  font-size: 0.82rem !important;
}

.spcx-refresh-log {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  padding: 0.65rem 0.75rem;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #9494a0;
}

.spcx-refresh-log .refresh-entry {
  white-space: nowrap;
}

#mandate-chart-section .spcx-live-meta {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.spcx-stat-card .label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spcx-stat-card .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 0.25rem;
}

.mandate-elon-box {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25), rgba(8, 51, 68, 0.35));
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 1rem;
  padding: 1.75rem;
  margin: 2rem 0;
}

.mandate-elon-box blockquote {
  font-style: italic;
  color: #cbd5e1;
  line-height: 1.7;
  border-left: 3px solid #22d3ee;
  padding-left: 1rem;
  margin: 0 0 1rem;
}

.mandate-elon-box .attribution {
  color: #22d3ee;
  font-weight: 600;
  font-size: 0.9rem;
}

.tweet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.tweet-card {
  background: #000;
  border: 1px solid #2f3336;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tweet-card .tweet-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.tweet-card .tweet-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.tweet-card .tweet-name {
  font-weight: 700;
  color: #e7e9ea;
  font-size: 0.9rem;
}

.tweet-card .tweet-handle {
  color: #71767b;
  font-size: 0.8rem;
}

.tweet-card .tweet-body {
  color: #e7e9ea;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tweet-card .tweet-body .highlight {
  color: #1d9bf0;
}

.doge-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.doge-ai-step {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 0.85rem;
  padding: 1.25rem;
}

.doge-ai-step .step-num {
  color: #22d3ee;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.doge-ai-step h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.doge-ai-step p {
  color: #9ca3af;
  font-size: 0.85rem;
  line-height: 1.55;
}

.btn-buy-spcx {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 32px;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.42);
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-buy-spcx:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: none;
  box-shadow: none;
}

.legal-page,
.mandate-legal-page {
  min-height: 100vh;
  background: #0a0a0a;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 5rem 1.5rem 3rem;
}

.mandate-legal-page .legal-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.mandate-legal-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.mandate-legal-page .updated {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.mandate-legal-page h2 {
  font-size: 1.2rem;
  color: #22d3ee;
  margin: 1.75rem 0 0.75rem;
}

.mandate-legal-page p,
.mandate-legal-page li {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.mandate-legal-page a {
  color: #38bdf8;
}

.legal-back,
.mandate-legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  color: #22d3ee;
  text-decoration: none;
}

.subscribe-mailto-prompt {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(15, 23, 42, 0.85);
  text-align: center;
}

.subscribe-mailto-prompt h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.subscribe-mailto-prompt p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.subscribe-mailto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: linear-gradient(90deg, #2563eb, #0891b2);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  margin-bottom: 0.75rem;
}

.subscribe-mailto-meta {
  font-size: 0.75rem !important;
  color: #64748b !important;
}
