/* ============================================================
   LUMINACAST DASHBOARD — style.css
   Design system: Inter font, dark navy palette, cyan accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ────────────────────────────────────────── */
:root {
  --bg-page:       #0B1120;
  --bg-sidebar:    #0F172A;
  --bg-card:       #1E293B;
  --bg-card-hover: #243347;
  --border-card:   rgba(255,255,255,0.06);
  --border-subtle: rgba(255,255,255,0.08);
  --border-medium: rgba(255,255,255,0.15);

  --accent:        #06B6D4;
  --accent-dim:    rgba(6,182,212,0.12);
  --accent-glow:   rgba(6,182,212,0.25);
  --green:         #10B981;
  --green-dim:     rgba(16,185,129,0.15);
  --red:           #EF4444;
  --red-dim:       rgba(239,68,68,0.12);
  --amber:         #F59E0B;
  --amber-dim:     rgba(245,158,11,0.15);
  --purple:        #8B5CF6;
  --purple-dim:    rgba(139,92,246,0.15);

  --text-primary:  #F1F5F9;
  --text-secondary:#94A3B8;
  --text-muted:    #64748B;

  --sidebar-width: 240px;
  --header-height: 72px;
  --radius-card:   12px;
  --radius-sm:     8px;
  --radius-xs:     6px;
  --radius-pill:   999px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 150ms ease;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

/* ─── Layout Shell ───────────────────────────────────────────── */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-card);
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 36px; height: 36px; }
.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 20px 4px;
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  cursor: pointer;
  position: relative;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: background var(--transition), color var(--transition);
}
.nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}
.nav-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-dim);
}
.nav-item .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-item .nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item .nav-label {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.sidebar-user {
  border-top: 1px solid var(--border-card);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4, #0E7490);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.user-info { overflow: hidden; }
.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Main Content ───────────────────────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.page-view {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}
.page-view::-webkit-scrollbar { width: 6px; }
.page-view::-webkit-scrollbar-track { background: transparent; }
.page-view::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }
.page-view.active { display: block; }
#live-control.active { display: flex; flex-direction: column; }

/* Page transitions */
.page-view.entering {
  animation: pageEnter 200ms ease forwards;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Page Header ─────────────────────────────────────────────── */
.page-header { margin-bottom: 28px; }
.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.page-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 4px;
}
.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* ─── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 24px;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #0891B2; box-shadow: 0 0 16px rgba(6,182,212,0.3); }

.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-medium); }
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); }

.btn-danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-danger:hover { background: var(--red-dim); }

.btn-ghost { background: transparent; color: var(--text-secondary); border: none; padding: 7px 12px; }
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.btn-icon { padding: 7px; border-radius: var(--radius-xs); background: transparent; color: var(--text-secondary); border: 1px solid transparent; }
.btn-icon:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); border-color: var(--border-subtle); }
.btn-icon svg { width: 15px; height: 15px; }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 8px; font-size: 11px; border-radius: 5px; }

/* ─── Status Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-green  { background: var(--green-dim); color: var(--green); }
.badge-cyan   { background: var(--accent-dim); color: var(--accent); }
.badge-red    { background: var(--red-dim); color: var(--red); }
.badge-amber  { background: var(--amber-dim); color: var(--amber); }
.badge-purple { background: var(--purple-dim); color: var(--purple); }
.badge-grey   { background: rgba(100,116,139,0.2); color: var(--text-muted); }

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-dot.pulse {
  animation: pulseDot 1.5s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─── Stat Cards Row ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  opacity: 0;
  transition: opacity var(--transition);
}
.stat-card:hover::after { opacity: 1; }

.stat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-trend {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 3px;
}
.stat-trend svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ─── Chart Grid ─────────────────────────────────────────────────── */
.chart-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.chart-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.chart-grid-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.chart-container {
  position: relative;
  width: 100%;
}
.chart-wrapper { position: relative; }

/* ─── Tables ────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0 16px 12px;
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-card);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.td-name { font-weight: 500; }
.td-muted { color: var(--text-secondary); font-size: 13px; }

/* ─── Platform Tags / Pills ──────────────────────────────────────── */
.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}
.platform-tiktok  { background: rgba(255,0,80,0.15); color: #FF5070; }
.platform-youtube { background: rgba(255,50,50,0.15); color: #FF4444; }
.platform-whatnot { background: rgba(255,120,0,0.15); color: #FF8C00; }
.platform-instagram { background: rgba(225,48,108,0.15); color: #E1306C; }
.platform-facebook  { background: rgba(24,119,242,0.15); color: #1877F2; }
.platform-twitch    { background: rgba(145,71,255,0.15); color: #9147FF; }

.platform-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}
.pi-tiktok   { background: rgba(255,0,80,0.2); color: #FF5070; }
.pi-youtube  { background: rgba(255,50,50,0.2); color: #FF4444; }
.pi-whatnot  { background: rgba(255,120,0,0.2); color: #FF8C00; }
.pi-instagram{ background: rgba(225,48,108,0.2); color: #E1306C; }
.pi-facebook { background: rgba(24,119,242,0.2); color: #1877F2; }
.pi-twitch   { background: rgba(145,71,255,0.2); color: #9147FF; }

/* ─── Avatar Circles ───────────────────────────────────────────── */
.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.av-maya { background: linear-gradient(135deg, #EC4899, #F97316); color: white; }
.av-alex { background: linear-gradient(135deg, #3B82F6, #06B6D4); color: white; }
.av-luna { background: linear-gradient(135deg, #8B5CF6, #EC4899); color: white; }
.av-kai  { background: linear-gradient(135deg, #10B981, #F59E0B); color: white; }

/* ─── PAGE 1: Dashboard ─────────────────────────────────────────── */
.action-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.action-card-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.action-card-info p { font-size: 13px; color: var(--text-secondary); }
.action-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-card-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ─── PAGE 2: Avatars ───────────────────────────────────────────── */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.avatar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.avatar-card:hover { border-color: rgba(6,182,212,0.25); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.avatar-card-image {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-image-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,182,212,0.25), rgba(16,185,129,0.15));
}
.avatar-image-bg.maya { background: linear-gradient(135deg, rgba(236,72,153,0.3), rgba(249,115,22,0.2)); }
.avatar-image-bg.alex { background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(6,182,212,0.2)); }
.avatar-image-bg.luna { background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(236,72,153,0.2)); }
.avatar-image-bg.kai  { background: linear-gradient(135deg, rgba(16,185,129,0.3), rgba(245,158,11,0.2)); }
.avatar-silhouette {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.avatar-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.avatar-card-body { padding: 16px; }
.avatar-card-name { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.avatar-card-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
.avatar-platforms { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px; }
.avatar-stats-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border-card);
  padding-top: 12px;
  margin-bottom: 12px;
}
.avatar-stat { flex: 1; text-align: center; }
.avatar-stat:not(:last-child) { border-right: 1px solid var(--border-card); }
.avatar-stat-val { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.avatar-stat-lbl { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.avatar-card-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ─── PAGE 3: Scripts ───────────────────────────────────────────── */
.filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  border-radius: var(--radius-xs);
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.filter-select:focus { outline: none; border-color: var(--accent); }
option { background: #1E293B; }

.star-icon { color: var(--amber); font-size: 14px; margin-right: 4px; }
.type-badge { display: inline-flex; padding: 2px 10px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 600; }
.type-opening   { background: rgba(6,182,212,0.15); color: var(--accent); }
.type-urgency   { background: rgba(239,68,68,0.15); color: var(--red); }
.type-demo      { background: rgba(16,185,129,0.15); color: var(--green); }
.type-interactive{ background: rgba(139,92,246,0.15); color: var(--purple); }

/* ─── PAGE 5: Live Control ─────────────────────────────────────── */
#live-control { padding: 0; }
.live-top-bar {
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-card);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.stream-tabs { display: flex; gap: 8px; align-items: center; overflow-x: auto; }
.stream-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.stream-tab.active { border-color: var(--accent); background: var(--accent-dim); }
.stream-tab:hover:not(.active) { border-color: var(--border-medium); }
.stream-tab-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stream-tab-info { display: flex; flex-direction: column; gap: 1px; }
.stream-tab-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.stream-tab-meta { font-size: 10.5px; color: var(--text-secondary); }
.live-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
}
.live-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}
.live-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.live-meta-item svg { width: 14px; height: 14px; stroke: var(--text-secondary); fill: none; stroke-width: 2; }

.live-columns {
  display: grid;
  grid-template-columns: 320px 1fr 300px;
  gap: 0;
  flex: 1;
  overflow: hidden;
}
.live-col {
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid var(--border-card);
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}
.live-col:last-child { border-right: none; }
.live-col::-webkit-scrollbar { width: 4px; }
.live-col::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 2px; }

.live-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.stream-preview {
  background: linear-gradient(135deg, #0B1B2E, #0D2240);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
}
.stream-preview-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(6,182,212,0.1) 0%, transparent 70%);
}
.stream-preview-avatar {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6,182,212,0.4), rgba(16,185,129,0.3));
  border: 2px solid rgba(255,255,255,0.15);
  animation: avatarFloat 3s ease-in-out infinite;
}
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.stream-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
}
.stream-timer {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  border-radius: 5px;
}
.stream-timer.ticking { font-family: 'Inter', monospace; }

.status-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.controls-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.controls-group .btn { justify-content: center; width: 100%; }

.segment-block {
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.segment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.segment-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.segment-time { font-size: 11px; color: var(--text-secondary); }
.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 2px;
  transition: width 1s linear;
}

/* Chat */
.chat-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 14px;
}
.chat-tab {
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}
.chat-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.chat-tab:hover:not(.active) { color: var(--text-secondary); }
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: none;
}
.chat-messages::-webkit-scrollbar { display: none; }
.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: chatSlide 0.25s ease;
}
@keyframes chatSlide {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-msg-body { flex: 1; }
.chat-msg-header { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.chat-msg-user { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.chat-msg-badge { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: var(--radius-pill); }
.badge-question { background: rgba(6,182,212,0.15); color: var(--accent); }
.badge-purchase { background: rgba(16,185,129,0.15); color: var(--green); }
.chat-msg-text { font-size: 12.5px; color: var(--text-secondary); line-height: 1.4; }
.chat-actions { display: flex; gap: 8px; margin-top: 4px; }

/* AI Suggestions */
.ai-suggestion {
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  transition: border-color var(--transition);
}
.ai-suggestion:hover { border-color: var(--accent-glow); }
.ai-suggestion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ai-suggestion-type { font-size: 10.5px; color: var(--text-muted); }
.ai-confidence {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.ai-suggestion-text { font-size: 12.5px; color: var(--text-primary); line-height: 1.5; margin-bottom: 10px; }
.ai-suggestion-actions { display: flex; gap: 6px; }
.ai-suggestion-actions .btn { font-size: 11px; padding: 4px 10px; }

.sentiment-block { margin-top: 16px; }
.sentiment-bar-wrap { position: relative; margin: 12px 0; }
.sentiment-gradient-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--amber) 50%, var(--green));
  position: relative;
}
.sentiment-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--green);
  transition: left 0.5s ease;
}
.sentiment-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 5px;
}
.sentiment-stats { display: flex; gap: 16px; margin-top: 12px; }
.sentiment-stat { flex: 1; }
.sentiment-stat-val { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.sentiment-stat-lbl { font-size: 11px; color: var(--text-muted); }
.sentiment-stat-trend { font-size: 11px; font-weight: 600; color: var(--green); }

/* ─── PAGE 6: Analytics ─────────────────────────────────────────── */
.analytics-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}
.date-input {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  border-radius: var(--radius-xs);
  padding: 7px 12px;
  font-size: 13px;
  color-scheme: dark;
}
.date-input:focus { outline: none; border-color: var(--accent); }

/* ─── PAGE 7: AI Reports ─────────────────────────────────────────── */
.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.report-card:hover { border-color: rgba(6,182,212,0.2); transform: translateY(-2px); }
.report-card-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.score-circle {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  position: relative;
}
.score-circle svg { transform: rotate(-90deg); }
.score-circle-bg { fill: none; stroke: var(--border-card); stroke-width: 4; }
.score-circle-fill { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.score-value {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: var(--text-primary);
}
.report-meta { flex: 1; }
.report-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.report-date { font-size: 12px; color: var(--text-muted); }
.report-summary { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 16px; }
.report-tags { display: flex; gap: 8px; margin-bottom: 16px; }
.report-tag {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.report-tag-green { background: var(--green-dim); color: var(--green); }
.report-tag-amber { background: var(--amber-dim); color: var(--amber); }
.report-card-footer { border-top: 1px solid var(--border-card); padding-top: 14px; }

/* ─── PAGE 8: Settings ─────────────────────────────────────────── */
.settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  min-height: 500px;
}
.settings-subnav {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 8px;
  height: fit-content;
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.settings-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.settings-nav-item.active { background: var(--accent-dim); color: var(--accent); }
.settings-nav-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.settings-content { display: flex; flex-direction: column; gap: 16px; }
.settings-panel { display: none; }
.settings-panel.active { display: flex; flex-direction: column; gap: 16px; }
.settings-section-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }

.channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-card);
}
.channel-card:last-child { border-bottom: none; }
.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.channel-info { flex: 1; }
.channel-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.channel-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.channel-actions { display: flex; gap: 8px; align-items: center; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-card);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 13.5px; font-weight: 500; color: var(--text-primary); }
.toggle-desc { font-size: 12px; color: var(--text-muted); }
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
input:checked + .toggle-slider { background: var(--accent); }
input:checked + .toggle-slider::before { transform: translateX(18px); }

.api-key-input {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.input-field {
  flex: 1;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
}
.input-field:focus { outline: none; border-color: var(--accent); }
.input-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }

.textarea-field {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 12px;
  font-size: 13.5px;
  color: var(--text-primary);
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
  margin-top: 8px;
}
.textarea-field:focus { outline: none; border-color: var(--accent); }

.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-card);
}
.team-member:last-child { border-bottom: none; }
.team-member-info { flex: 1; }
.team-member-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.team-member-email { font-size: 12px; color: var(--text-muted); }
.role-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); }
.role-owner { background: var(--accent-dim); color: var(--accent); }
.role-admin { background: var(--purple-dim); color: var(--purple); }
.role-viewer { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

/* ─── Misc utilities ─────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11.5px; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.divider { border: none; border-top: 1px solid var(--border-card); margin: 16px 0; }
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
}


/* ═══════════════════════════════════════════════════════
   PAGE 9: Scouting
   ═══════════════════════════════════════════════════════ */

/* ─── Status Bar ─────────────────────────────────────────── */
.scouting-status-bar {
  display: flex;
  align-items: center;
  padding: 14px 20px;
}
.scouting-status-idle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.scouting-idle-dot {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1;
}
.scouting-status-active {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.scouting-status-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}
.scouting-status-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

/* ─── Recording Dot ─────────────────────────────────────── */
.recording-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: recording-pulse 1.5s ease-in-out infinite;
}
@keyframes recording-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  60% { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ─── Config grid ───────────────────────────────────────── */
.scouting-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── Credential sections ───────────────────────────────── */
.credential-section {
  border-top: 1px solid var(--border-card);
  padding-top: 16px;
  margin-top: 16px;
}
.credential-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.credential-section-header {
  margin-bottom: 8px;
}
.credential-platform-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.credential-status {
  font-size: 12px;
  color: var(--text-muted);
}
.credential-status.connected {
  color: var(--green);
}

/* ─── Scout input fields ─────────────────────────────────── */
.scout-input {
  width: 100%;
  background: #0F172A;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xs);
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--text-primary);
  font-family: inherit;
  margin-top: 6px;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.scout-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}
.scout-input option {
  background: #1E293B;
  color: var(--text-primary);
}

.scout-textarea {
  width: 100%;
  background: #0F172A;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xs);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
  margin-top: 6px;
  transition: border-color var(--transition);
}
.scout-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}

/* ─── Scout config 2-col sub-grid ───────────────────────── */
.scout-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ─── Category checkboxes ───────────────────────────────── */
.scout-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.scout-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  user-select: none;
}
.scout-checkbox-label:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}
.scout-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 13px;
  height: 13px;
  cursor: pointer;
}

/* ─── Stream Feed Table ─────────────────────────────────── */
.stream-feed-table th:first-child,
.stream-feed-table td:first-child {
  min-width: 110px;
}
.scout-recording-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
}
.scout-completed-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ─── Scouting Tabs ─────────────────────────────────────── */
.scouting-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 0;
}
.scouting-tab {
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.scouting-tab:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}
.scouting-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(6,182,212,0.04);
}

/* ─── Scout panels ───────────────────────────────────────── */
.scout-panel { display: none; }
.scout-panel.active { display: block; }

/* ─── Transcript entries ────────────────────────────────── */
.transcript-entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-card);
}
.transcript-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.transcript-entry-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.transcript-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.transcript-word-count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}
.transcript-preview {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 12px;
}
.transcript-entry-actions {
  display: flex;
  gap: 8px;
}

/* ─── Golden Moment cards ───────────────────────────────── */
.golden-moment-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-card);
}
.golden-moment-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.golden-score-circle {
  position: relative;
  flex-shrink: 0;
}
.golden-score-circle svg { transform: rotate(-90deg); }
.golden-moment-meta { flex: 1; }
.golden-moment-type {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.golden-moment-source {
  font-size: 12px;
  color: var(--text-muted);
}
.golden-moment-quote {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--accent);
  padding: 10px 16px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  margin-bottom: 12px;
  font-style: italic;
}
.golden-moment-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.golden-metric-divider {
  color: var(--border-medium);
}
.golden-moment-actions {
  display: flex;
  gap: 8px;
}

/* ─── Summary mini-stats ────────────────────────────────── */
.scouting-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 4px 0;
}
.scouting-stat-mini {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  text-align: center;
}
.scouting-stat-mini-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.scouting-stat-mini-lbl {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ─── btn-danger disabled state ────────────────────────── */
.btn-danger:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Products & Finance Page ─────────────────────────── */
.stats-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 1200px) {
  .stats-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .stats-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

.products-tabs {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--border-card);
  width: fit-content;
}
.products-tab {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}
.products-tab:hover { color: var(--text-secondary); }
.products-tab.active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.products-panel { display: none; }
.products-panel.active { display: block; }

/* P&L Table */
.pnl-table td, .pnl-table th {
  padding: 10px 16px;
}
.pnl-section-header td {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-top: 18px !important;
  border-bottom: 1px solid var(--border-subtle);
}
.pnl-indent {
  padding-left: 32px !important;
  color: var(--text-secondary);
}
.pnl-total-row td {
  border-top: 1px solid var(--border-subtle);
  font-weight: 600;
}
.pnl-gross-profit td {
  border-top: 2px solid var(--border-medium);
  border-bottom: 2px solid var(--border-medium);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 16px !important;
}
.pnl-net-profit td {
  border-top: 2px solid var(--green);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 16px !important;
}
.text-right { text-align: right; }

/* Cost Breakdown List */
.cost-breakdown-list {
  padding: 4px 0;
}
.cost-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-card);
}
.cost-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cost-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cost-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}
.cost-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.cost-item-amount {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  flex-shrink: 0;
}
.cost-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 0;
  margin-top: 8px;
  border-top: 2px solid var(--border-medium);
  color: var(--text-primary);
}

/* Finance Quick View (Dashboard) */
.finance-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .finance-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
.finance-quick-item {
  text-align: center;
  padding: 8px 0;
}
.finance-quick-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.finance-quick-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.finance-quick-trend {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Badge amber/red for product status */
.badge-amber {
  background: var(--amber-dim);
  color: var(--amber);
}
.badge-red {
  background: var(--red-dim);
  color: var(--red);
}


/* ============================================================
   MODAL SYSTEM
   ============================================================ */
.lc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lc-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.lc-modal {
  background: #1E293B;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lc-modal-backdrop.open .lc-modal {
  transform: translateY(0) scale(1);
}
.lc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.lc-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #F1F5F9;
}
.lc-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748B;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.lc-modal-close:hover { color: #F1F5F9; }
.lc-modal-body {
  padding: 20px;
}
.lc-modal-footer {
  padding: 14px 20px 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.lc-modal-footer:empty { display: none; }

/* Form elements inside modals */
.lc-form-group {
  margin-bottom: 16px;
}
.lc-form-group:last-child { margin-bottom: 0; }
.lc-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #94A3B8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lc-input,
.lc-select,
.lc-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: #F1F5F9;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}
.lc-input:focus,
.lc-select:focus,
.lc-textarea:focus {
  border-color: #06B6D4;
}
.lc-select option { background: #1E293B; }
.lc-textarea { resize: vertical; min-height: 90px; }
.lc-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.lc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #94A3B8;
  cursor: pointer;
}
.lc-checkbox-label input { accent-color: #06B6D4; }

/* Report modal sections */
.lc-report-section { margin-bottom: 18px; }
.lc-report-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #06B6D4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.lc-report-item {
  font-size: 13px;
  color: #94A3B8;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.lc-report-item:last-child { border-bottom: none; }

/* Product detail layout */
.lc-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lc-product-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 12px;
}
.lc-product-stat-label {
  font-size: 11px;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.lc-product-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: #F1F5F9;
}

/* Calendar grid */
.lc-calendar {
  background: #1E293B;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
}
.lc-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.lc-calendar-title {
  font-size: 16px;
  font-weight: 600;
  color: #F1F5F9;
}
.lc-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.lc-cal-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  padding: 6px 0;
}
.lc-cal-day {
  min-height: 64px;
  border-radius: 6px;
  padding: 4px;
  border: 1px solid transparent;
  transition: background 0.15s;
}
.lc-cal-day:not(.empty):hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
}
.lc-cal-day-num {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 4px;
}
.lc-cal-day.today .lc-cal-day-num {
  color: #06B6D4;
}
.lc-cal-event {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-cal-event.running { background: rgba(16,185,129,0.18); color: #10B981; }
.lc-cal-event.scheduled { background: rgba(6,182,212,0.15); color: #06B6D4; }
.lc-cal-event.completed { background: rgba(100,116,139,0.2); color: #94A3B8; }
.lc-cal-day.empty .lc-cal-day-num { color: rgba(100,116,139,0.3); }

/* ============================================================
   TOAST SYSTEM
   ============================================================ */
.lc-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.lc-toast {
  background: #1E293B;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #F1F5F9;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 340px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  pointer-events: all;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.lc-toast.show {
  transform: translateX(0);
  opacity: 1;
}
.lc-toast.hide {
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.lc-toast-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.lc-toast.success .lc-toast-icon { background: rgba(16,185,129,0.2); color: #10B981; }
.lc-toast.info    .lc-toast-icon { background: rgba(6,182,212,0.2);  color: #06B6D4; }
.lc-toast.warning .lc-toast-icon { background: rgba(245,158,11,0.2); color: #F59E0B; }
.lc-toast.error   .lc-toast-icon { background: rgba(239,68,68,0.2);  color: #EF4444; }
.lc-toast.success { border-left: 3px solid #10B981; }
.lc-toast.info    { border-left: 3px solid #06B6D4; }
.lc-toast.warning { border-left: 3px solid #F59E0B; }
.lc-toast.error   { border-left: 3px solid #EF4444; }
.lc-toast-msg { flex: 1; line-height: 1.4; }

/* Spin animation for refresh button */
@keyframes lc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.lc-spinning { animation: lc-spin 1s linear; }

/* ─── Empty States ────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: #64748B;
}
.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: #94A3B8;
  margin-bottom: 6px;
}
.empty-state-text {
  font-size: 13px;
  color: #64748B;
  max-width: 320px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.empty-state .btn {
  margin-top: 4px;
}
.empty-state-cell {
  padding: 0 !important;
  border: none !important;
}


/* ═══════════════════════════════════════════════════════════
   SCENE COMPOSER — Fabric.js scene layout editor
   ═══════════════════════════════════════════════════════════ */

/* Full-screen overlay panel */
.scene-composer-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0B1120;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

/* Header bar */
.scene-composer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #0f172a;
  flex-shrink: 0;
}
.scene-composer-header .page-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary, #F1F5F9);
}
.scene-composer-header .page-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted, #64748B);
}

/* Three-column body */
.scene-composer-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ── Left Toolbar ──────────────────────────────────────── */
.scene-toolbar {
  width: 190px;
  flex-shrink: 0;
  padding: 14px 12px;
  border-right: 1px solid rgba(255,255,255,0.07);
  overflow-y: auto;
  background: #0f172a;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.scene-toolbar-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  margin-bottom: 6px;
  font-weight: 600;
  padding: 0 2px;
}
.scene-toolbar-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}
.scene-tool-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #94A3B8;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}
.scene-tool-btn:hover {
  background: rgba(255,255,255,0.06);
  color: #F1F5F9;
  border-color: rgba(255,255,255,0.09);
}
.scene-tool-btn svg { flex-shrink: 0; stroke: currentColor; }
.scene-preset-btn { color: var(--accent, #06B6D4); }
.scene-preset-btn:hover { color: #F1F5F9; }
.scene-toolbar-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 8px 0;
}

/* Legend */
.scene-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #64748B;
  padding: 3px 2px;
}
.scene-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Canvas Area ────────────────────────────────────────── */
.scene-canvas-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #070d1a;
  overflow: auto;
  padding: 20px;
  min-width: 0;
}
.scene-canvas-label {
  font-size: 10px;
  color: #334155;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}
/* The Fabric canvas itself */
.scene-canvas-container canvas,
.scene-canvas-container .canvas-container canvas {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
/* Fabric wraps canvas in a div.canvas-container */
.scene-canvas-container .canvas-container {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.10);
}

/* ── Right Properties Panel ─────────────────────────────── */
.scene-properties {
  width: 220px;
  flex-shrink: 0;
  padding: 16px;
  border-left: 1px solid rgba(255,255,255,0.07);
  background: #0f172a;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.scene-prop-title {
  font-size: 12px;
  font-weight: 700;
  color: #F1F5F9;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.scene-prop-empty {
  font-size: 12px;
  color: #475569;
  text-align: center;
  padding: 32px 8px;
  line-height: 1.5;
}
.scene-prop-group {
  margin-bottom: 14px;
}
.scene-prop-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  margin-bottom: 6px;
  font-weight: 600;
}
.scene-prop-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 6px;
  color: #F1F5F9;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.scene-prop-input:focus {
  border-color: var(--accent, #06B6D4);
  background: rgba(6,182,212,0.05);
}
.scene-prop-row {
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
}
.scene-prop-row .scene-prop-input { flex: 1; }

/* ─── Scouting Chat ───────────────────────────────────────── */
.scouting-chat {
  height: 400px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
  margin-bottom: 12px;
}
.scout-chat-msg {
  display: flex;
  gap: 10px;
  max-width: 85%;
}
.scout-chat-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.scout-chat-assistant, .scout-chat-system {
  align-self: flex-start;
}
.scout-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scout-chat-system .scout-chat-avatar {
  background: rgba(6,182,212,0.15);
  color: #06B6D4;
}
.scout-chat-assistant .scout-chat-avatar {
  background: rgba(16,185,129,0.15);
  color: #10B981;
}
.scout-chat-user .scout-chat-avatar {
  background: rgba(139,92,246,0.15);
  color: #8B5CF6;
}
.scout-chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.scout-chat-system .scout-chat-bubble {
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.15);
  color: #94A3B8;
}
.scout-chat-assistant .scout-chat-bubble {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #E2E8F0;
}
.scout-chat-user .scout-chat-bubble {
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.2);
  color: #F1F5F9;
}
.scout-chat-text strong {
  color: #06B6D4;
}
.scouting-chat-input {
  display: flex;
  gap: 8px;
}
.scouting-chat-input .scout-input {
  flex: 1;
}
.scouting-chat-input .btn {
  flex-shrink: 0;
  padding: 8px 16px;
}

/* ─── Auto-Suggest ────────────────────────────────────────── */
.auto-suggest-dropdown {
  position: fixed;
  z-index: 500;
  background: #1E293B;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
}
.auto-suggest-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #06B6D4;
  font-weight: 600;
}
.auto-suggest-option {
  padding: 8px 12px;
  font-size: 13px;
  color: #E2E8F0;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s;
}
.auto-suggest-option:hover {
  background: rgba(6,182,212,0.12);
  color: #F1F5F9;
}

/* ─── Setup Progress Banner ──────────────────────────────────── */
.setup-steps-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.setup-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  transition: background 0.15s;
}
.setup-step:hover {
  background: rgba(255,255,255,0.04);
}
.setup-step-done {
  opacity: 0.55;
}
.setup-step-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.setup-step-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.setup-step-label {
  font-size: 13px;
  font-weight: 500;
}
.setup-step-sub {
  font-size: 11px;
  color: var(--text-muted);
}
.setup-step-arrow {
  flex-shrink: 0;
}

/* ─── Avatar card (dynamic new style) ───────────────────────────── */
.avatar-card-visual {
  background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(16,185,129,0.08));
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-card);
}

/* ─── Settings API Integrations ──────────────────────────────────── */
.api-key-input {
  display: flex;
  gap: 8px;
  align-items: center;
}
.api-key-input .input-field,
.api-key-input .lc-input {
  flex: 1;
}

/* ─── Live stream selector in top bar ───────────────────────────── */
#live-stream-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}
#live-stream-selector-wrap .filter-select {
  height: 34px;
  font-size: 13px;
}

/* ─── Channel badge-grey override ────────────────────────────────── */
.badge-grey {
  background: rgba(100,116,139,0.18);
  color: var(--text-muted);
}

/* ─── Search term chips ──────────────────────────────────────────── */
.search-term-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34,211,238,0.12);
  color: #22D3EE;
  border: 1px solid rgba(34,211,238,0.25);
  border-radius: 20px;
  padding: 3px 10px 3px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: default;
}
.search-term-chip .chip-remove {
  background: none;
  border: none;
  color: #64748B;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.search-term-chip .chip-remove:hover { color: #EF4444; }
.search-term-history-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(100,116,139,0.1);
  color: #94A3B8;
  border: 1px solid rgba(100,116,139,0.2);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.search-term-history-tag:hover {
  background: rgba(34,211,238,0.08);
  color: #22D3EE;
  border-color: rgba(34,211,238,0.2);
}

/* ─── Stream discovery cards ─────────────────────────────────────── */
.stream-discovery-card {
  background: rgba(15,23,42,0.6);
  border: 1px solid #1E293B;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}
.stream-discovery-card:hover {
  border-color: rgba(34,211,238,0.3);
  transform: translateY(-1px);
}
.stream-discovery-card .card-thumb {
  width: 100%;
  height: 140px;
  background: #0F172A;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stream-discovery-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stream-discovery-card .card-thumb .thumb-fallback {
  color: #334155;
}
.stream-discovery-card .card-body {
  padding: 14px;
}
.stream-discovery-card .card-title-row {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.stream-discovery-card .card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 12px;
}
.stream-discovery-card .card-stats {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #64748B;
  margin-bottom: 12px;
}
.stream-discovery-card .card-actions {
  display: flex;
  gap: 6px;
}

/* ─── Script style buttons ───────────────────────────────────────── */
.script-style-btn {
  background: rgba(30,41,59,0.8);
  border: 1px solid #1E293B;
  border-radius: 8px;
  color: #94A3B8;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
  text-align: center;
}
.script-style-btn:hover {
  border-color: rgba(34,211,238,0.3);
  color: #E2E8F0;
}
.script-style-btn.active {
  background: rgba(34,211,238,0.1);
  border-color: #22D3EE;
  color: #22D3EE;
  font-weight: 600;
}
