/* VTuberManager — y2k chrome metallic dashboard styles */
/* Fonts: "Poppins" (Google Fonts), "Space Mono" (Google Fonts), "Fredoka" (Google Fonts) */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Poppins:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ── Custom Properties ── */
:root {
  --void:       #0d0015;
  --chrome:     #c0c0e0;
  --chrome-mid: #a0a0c0;
  --chrome-lt:  #e0e0f0;
  --pink:       #ff69b4;
  --blue:       #00ccff;
  --purple:     #9b59b6;
  --sparkle:    #ffffff;
  --surface:    rgba(192, 192, 224, 0.07);
  --surface2:   rgba(224, 224, 240, 0.10);
  --border:     rgba(160, 160, 192, 0.20);
  --border-pink:rgba(255, 105, 180, 0.3);
  --holo:       linear-gradient(135deg, #ff69b4, #9b59b6, #00ccff);
  --font-display: 'Fredoka', sans-serif;
  --font-body:    "Poppins", sans-serif;
  --font-mono:    "Space Mono", monospace;
  --radius:     12px;
  --radius-sm:  8px;
  --gap:        1.5rem;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--chrome);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }
em { font-style: normal; }

.mono { font-family: var(--font-mono); }

/* ── Keyframes ── */
@keyframes holo-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%       { opacity: 1; transform: scale(1); }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(255,105,180,0.4); }
  50%       { box-shadow: 0 0 18px rgba(255,105,180,0.9); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes bar-grow {
  from { width: 0; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .holo-bg { animation: none !important; }
  .sparkle-dot { animation: none !important; }
}

/* ── Sparkle Field ── */
.sparkle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sparkle-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sparkle);
  animation: twinkle 2s ease infinite;
}

/* ── Header / Dashboard Hero ── */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 2.5rem;
  z-index: 10;
}

.holo-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff69b4, #9b59b6, #00ccff);
  background-size: 200% 200%;
  animation: holo-shift 4s ease infinite;
  opacity: 0.18;
  z-index: 0;
}

/* ── Topbar ── */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2rem;
  background: rgba(13, 0, 21, 0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--holo);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--sparkle);
}

.brand-text em {
  background: var(--holo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--chrome);
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface2);
  color: var(--sparkle);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--chrome);
  font-size: 0.8rem;
  font-weight: 500;
  transition: border-color 0.2s;
}

.chip:hover { border-color: var(--pink); }

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse-glow 2s ease infinite;
}

/* ── Buttons ── */
.btn-primary {
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  background: var(--pink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--chrome);
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.link-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}

.link-btn:hover { color: var(--sparkle); }

/* ── Hero Inner ── */
.hero-inner {
  position: relative;
  z-index: 5;
  padding: 3rem 2rem 1.5rem;
  max-width: 900px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border-pink);
  background: rgba(255,105,180,0.08);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--pink);
  margin-bottom: 1.2rem;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse-glow 2s ease infinite;
}

.tag-time { color: var(--chrome); opacity: 0.7; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  margin-bottom: 1rem;
  color: var(--sparkle);
}

.title-shine {
  background: linear-gradient(90deg, #ff69b4, #9b59b6, #00ccff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holo-shift 3s ease infinite;
}

.title-sparkle {
  color: var(--pink);
  -webkit-text-fill-color: var(--pink);
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--chrome);
  opacity: 0.8;
  max-width: 580px;
  margin-bottom: 2rem;
}

/* ── Hero Stats ── */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-pod {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 120px;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sparkle);
  animation: count-up 0.5s ease both;
}

/* ── Main Dashboard ── */
.dash-main {
  position: relative;
  z-index: 5;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ── Panels ── */
.panel {
  background: rgba(13, 0, 21, 0.8);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.panel-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--gap);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--sparkle);
}

.panel-sub {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--chrome);
  opacity: 0.65;
  margin-top: 0.2rem;
}

/* ── Talent Grid ── */
.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
}

/* Talent Card — injected by JS */
.talent-card {
  background: rgba(13, 0, 21, 0.85);
  border: 1px solid rgba(255, 105, 180, 0.2);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
  cursor: pointer;
}

.talent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--pink));
}

.talent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 20px rgba(255,105,180,0.15);
}

.talent-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.9rem;
  position: relative;
  /* Gradient border via double background-clip */
  background:
    linear-gradient(var(--void), var(--void)) padding-box,
    var(--avatar-ring, var(--holo)) border-box;
  border: 3px solid transparent;
}

.talent-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sparkle);
  margin-bottom: 0.2rem;
}

.talent-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 10px;
  background: rgba(255,105,180,0.12);
  border: 1px solid rgba(255,105,180,0.25);
  color: var(--pink);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
}

.talent-stats {
  display: flex;
  gap: 1rem;
}

.talent-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.talent-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.55;
}

.talent-stat-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sparkle);
}

.talent-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.talent-status.live {
  background: var(--pink);
  animation: pulse-glow 2s ease infinite;
}

.talent-status.offline { background: var(--chrome); opacity: 0.4; }

/* ── Filter Pills ── */
.filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--chrome);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-pill:hover { border-color: var(--pink); color: var(--pink); }

.filter-pill.is-on {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

/* ── Analytics Panel ── */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sparkle);
}

.metric-delta {
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.metric-delta.up   { color: #4dff91; }
.metric-delta.down { color: var(--pink); }

/* ── Seg Toggle ── */
.seg-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.seg-opt {
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--chrome);
  transition: background 0.2s, color 0.2s;
}

.seg-opt:hover { background: var(--surface2); }

.seg-opt.is-on {
  background: var(--purple);
  color: #fff;
}

/* ── Chart ── */
.chart-wrap {
  margin-top: 0.5rem;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.chart-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--chrome);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--chrome);
  opacity: 0.7;
}

.legend {
  display: inline-block;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  vertical-align: middle;
}

.legend.pink   { background: var(--pink); }
.legend.blue   { background: var(--blue); }
.legend.purple { background: var(--purple); }
.legend.chrome { background: var(--chrome); opacity: 0.5; }

.pulse-chart {
  width: 100%;
  height: 160px;
  display: block;
  overflow: visible;
}

/* ── Asset Panel ── */
.assets-panel {
  display: flex;
  flex-direction: column;
}

.asset-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex: 1;
}

.asset-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.asset-row:hover { border-color: var(--pink); }

.asset-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.asset-icon[data-icon="model"]   { background: rgba(255,105,180,0.15); color: var(--pink); }
.asset-icon[data-icon="overlay"] { background: rgba(0,204,255,0.12);   color: var(--blue); }
.asset-icon[data-icon="bgm"]     { background: rgba(155,89,182,0.15);  color: var(--purple); }

.asset-icon[data-icon="model"]::after   { content: '🎭'; }
.asset-icon[data-icon="overlay"]::after { content: '🌟'; }
.asset-icon[data-icon="bgm"]::after     { content: '🎵'; }

.asset-name {
  flex: 1;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--chrome);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-meta {
  font-size: 0.7rem;
  opacity: 0.55;
}

.asset-state {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  text-transform: lowercase;
}

.asset-state.on   { background: rgba(77,255,145,0.1); color: #4dff91; border: 1px solid rgba(77,255,145,0.3); }
.asset-state.warn { background: rgba(255,215,106,0.1); color: #ffd76a; border: 1px solid rgba(255,215,106,0.3); }

.vault-meter {
  margin-top: auto;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-bottom: 0.4rem;
  opacity: 0.7;
}

.meter-bar {
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 3px;
  animation: bar-grow 1s ease both;
}

/* ── Schedule Panel ── */
.schedule-grid {
  display: grid;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.sched-row {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
}

.sched-cell {
  padding: 0.5rem 0.4rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sched-cell:last-child { border-right: none; }
.sched-row:last-child .sched-cell { border-bottom: none; }

.sched-header .sched-cell {
  background: var(--surface2);
  color: var(--chrome);
  font-weight: 700;
  justify-content: center;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.sched-label {
  color: var(--chrome);
  opacity: 0.55;
  justify-content: flex-end;
  padding-right: 0.6rem;
}

.sched-slot {
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  font-size: 0.68rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  width: 100%;
  line-height: 1.3;
}

.sched-slot:hover { opacity: 0.8; transform: scale(1.03); }

.sched-slot.live    { background: rgba(255,105,180,0.2);  color: var(--pink);   border: 1px solid rgba(255,105,180,0.4); }
.sched-slot.collab  { background: rgba(0,204,255,0.15);   color: var(--blue);   border: 1px solid rgba(0,204,255,0.35); }
.sched-slot.members { background: rgba(155,89,182,0.18);  color: var(--purple); border: 1px solid rgba(155,89,182,0.4); }
.sched-slot.off     { background: rgba(192,192,224,0.06); color: var(--chrome); border: 1px solid var(--border); }

.schedule-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.week-label { font-size: 0.8rem; opacity: 0.7; }

.schedule-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--chrome);
  opacity: 0.65;
  flex-wrap: wrap;
}

/* ── Comm Panel ── */
.comm-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  height: 400px;
}

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.thread-list::-webkit-scrollbar { width: 4px; }
.thread-list::-webkit-scrollbar-track { background: transparent; }
.thread-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.thread-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.thread-item:hover,
.thread-item.is-on {
  background: var(--surface2);
  border-color: var(--border-pink);
}

.thread-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
  /* Gradient border avatar */
  background:
    linear-gradient(var(--void), var(--void)) padding-box,
    linear-gradient(135deg, var(--ring, var(--pink)), transparent) border-box;
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--void), var(--void)),
    linear-gradient(135deg, var(--ring, var(--pink)), color-mix(in srgb, var(--ring, var(--pink)) 40%, var(--purple)));
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
}

.thread-avatar.lg {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}

.thread-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.thread-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sparkle);
}

.thread-snip {
  font-size: 0.73rem;
  color: var(--chrome);
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-time {
  font-size: 0.65rem;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── Thread View ── */
.thread-view {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.thread-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}

.thread-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--sparkle);
}

.thread-meta {
  font-size: 0.7rem;
  opacity: 0.55;
}

.thread-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.thread-body::-webkit-scrollbar { width: 4px; }
.thread-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Messages ── */
.msg {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  animation: slide-in 0.2s ease both;
}

.msg.outbound { align-items: flex-end; }

.msg-bubble {
  max-width: 75%;
  padding: 0.5rem 0.85rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.msg.inbound .msg-bubble {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--chrome);
  border-bottom-left-radius: 4px;
}

.msg.outbound .msg-bubble {
  background: rgba(255,105,180,0.18);
  border: 1px solid rgba(255,105,180,0.35);
  color: var(--sparkle);
  border-bottom-right-radius: 4px;
}

.msg-time {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  opacity: 0.45;
  padding: 0 0.3rem;
}

/* ── Thread Compose ── */
.thread-compose {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface2);
}

#threadInput {
  flex: 1;
  background: rgba(13,0,21,0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.45rem 1rem;
  color: var(--chrome);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}

#threadInput:focus { border-color: var(--pink); }
#threadInput::placeholder { opacity: 0.45; }

/* ── Footer ── */
.dash-foot {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--border);
  background: rgba(13,0,21,0.8);
  padding: 1rem 2rem;
  margin-top: 1rem;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  font-size: 0.75rem;
}

.foot-brand {
  font-family: var(--font-display);
  color: var(--chrome);
  opacity: 0.6;
}

.foot-brand em {
  background: var(--holo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.foot-meta {
  font-size: 0.68rem;
  opacity: 0.4;
}

/* ── Scrollbar global ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .panel-row { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { padding: 0.85rem 1rem; }
  .nav-links { display: none; }
  .hero-inner { padding: 2rem 1rem 1rem; }
  .dash-main { padding: 1rem; }
  .analytics-grid { grid-template-columns: repeat(2, 1fr); }
  .comm-grid { grid-template-columns: 1fr; height: auto; }
  .thread-view { height: 300px; }
  .sched-row { grid-template-columns: 60px repeat(7, 1fr); }
  .sched-cell { font-size: 0.62rem; padding: 0.3rem 0.2rem; min-height: 36px; }
  .hero-stats { gap: 0.75rem; }
}
