﻿:root {
  /* Tink Bot Dashboard v2: Dark command center with controlled neon. */
  --bg-page: #0b0c10;
  --bg-panel: #12141a;
  --bg-panel-soft: #171923;
  --border-soft: rgba(35, 38, 52, 0.85);
  --border-strong: rgba(35, 38, 52, 1);

  --text-main: #edf0ff;
  --text-muted: #cfcfe6;
  --text-dim: #9aa3c0;
  --text-soft: var(--text-muted);

  /* Accent roles (strict use). */
  --accent-pink: #ff2d9a;  /* Primary actions */
  --accent-cyan: #00e5ff;  /* Live / active */
  --accent-purple: #7a5cff; /* Secondary glow */
  --accent-green: #41d69d;
  --accent-red: #ff4d4d;
  --accent-yellow: #ffd26b;
  --accent-orange: #ff9b43;

  --neon-purple: var(--accent-purple);
  --neon-pink: var(--accent-pink);
  --neon-cyan: var(--accent-cyan);
  --neon-blue: #4f8cff;
  --neon-orange: var(--accent-orange);
  --border-glow: var(--border-soft);
  --shadow-panel: 0 18px 46px rgba(0, 0, 0, 0.42);
  --blur: blur(10px);

  --glow-soft: 0 0 12px rgba(122, 92, 255, 0.18);
  --glow-medium: 0 0 16px rgba(122, 92, 255, 0.24);
  --glow-strong: 0 0 22px rgba(255, 45, 154, 0.28);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --space-section: 40px;
  --space-card: 18px;
  --space-tight: 10px;

  --transition-fast: 160ms ease;
  --transition-med: 240ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 18% 16%, rgba(122, 92, 255, 0.08), transparent 38%),
    radial-gradient(circle at 80% 12%, rgba(0, 229, 255, 0.06), transparent 40%),
    radial-gradient(circle at 50% 92%, rgba(255, 45, 154, 0.04), transparent 44%),
    linear-gradient(180deg, #0b0c10 0%, #07080e 70%, #06070c 100%);
  color: var(--text-main);
  font-family: "Inter", "Segoe UI", sans-serif;
  position: relative;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(102, 84, 180, 0.08), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(79, 140, 255, 0.09), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(38, 59, 106, 0.05), transparent 40%);
}

body,
p,
span,
div,
label,
li,
td,
th,
input,
select,
textarea,
button {
  color: var(--text-main);
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  opacity: 0.92;
  text-decoration: underline;
}

#root {
  min-height: 100vh;
}

.shell,
.app-shell {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0 72px;
}

.dashboard-page {
  min-height: 100vh;
  color: var(--text-main);
}

/* Product Pages
   Keep setup/configuration controls off the live dashboard.
   Setup page should focus on configuration panels only. */
.dashboard-page[data-product-page="dashboard"] [data-role-section="setup"] {
  display: none !important;
}

.dashboard-page[data-product-page="setup"] .action-cards-panel,
.dashboard-page[data-product-page="setup"] .ops-toolbar {
  display: none !important;
}

.dashboard-page[data-product-page="setup"] .dashboard-grid > section:not([data-role-section="setup"]) {
  display: none !important;
}

/* Top nav */
.top-header {
  background: linear-gradient(
    180deg,
    rgba(12, 14, 30, 0.95),
    rgba(10, 12, 24, 0.92)
  );
  backdrop-filter: blur(10px);
}
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(18, 20, 26, 0.86);
  border: 1px solid var(--border-soft);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(35, 38, 52, 0.95);
  background: rgba(11, 12, 16, 0.55);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(154, 163, 192, 0.7);
  box-shadow: none;
}

body[data-live-state="live"] .live-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.38);
}

body[data-live-state="warning"] .live-dot {
  background: var(--accent-red);
  box-shadow: 0 0 12px rgba(255, 77, 77, 0.32);
}

body[data-live-state="live"] .live-indicator {
  border-color: rgba(0, 229, 255, 0.32);
  color: rgba(237, 240, 255, 0.98);
  animation: livePulse 2.8s infinite ease-in-out;
}

body[data-live-state="warning"] .live-indicator {
  border-color: rgba(255, 77, 77, 0.34);
  color: rgba(237, 240, 255, 0.98);
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 rgba(0, 229, 255, 0.0); }
  50% { box-shadow: 0 0 16px rgba(0, 229, 255, 0.18); }
  100% { box-shadow: 0 0 0 rgba(0, 229, 255, 0.0); }
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-nav-home {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
}

.top-nav-home:hover,
.top-nav-home:focus-visible {
  transform: none;
  box-shadow: none;
  text-decoration: none;
  outline: none;
}

.brand::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(122, 92, 255, 0.18), transparent 64%);
  filter: blur(10px);
  pointer-events: none;
}

.logo {
  position: relative;
  font-size: 1.05rem;
  color: var(--text-main);
  text-shadow: none;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-btn {
  appearance: none;
  border: 1px solid rgba(35, 38, 52, 0.95);
  background: rgba(11, 12, 16, 0.55);
  color: var(--text-main);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(122, 92, 255, 0.55);
  box-shadow: 0 0 12px rgba(122, 92, 255, 0.18);
}

.nav-btn.active {
  background: rgba(122, 92, 255, 0.18);
  border-color: rgba(122, 92, 255, 0.55);
  color: #fff;
  box-shadow: 0 0 14px rgba(122, 92, 255, 0.22);
}

body[data-density="compact"] .panel {
  padding: 14px;
}

body[data-mode="setup"] .mission-control-zone,
body[data-mode="setup"] .stream-experience-zone,
body[data-mode="setup"] .automation-zone {
  opacity: 0.65;
}

/* Hero */

.hero,
.page-header {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
  padding: 18px 18px;
  border-radius: 20px;
  background: rgba(18, 20, 26, 0.78);
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(4, 6, 12, 0.82) 0%,
      rgba(4, 6, 12, 0.58) 40%,
      rgba(4, 6, 12, 0.24) 70%
    ),
    url("/hero-5sT3BiRD.png") center / cover no-repeat;
  opacity: 0.14;
  mix-blend-mode: screen;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 30%;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(102, 84, 180, 0.1),
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: heroGlowMove 6s linear infinite;
}
.hero:hover {
  box-shadow:
    -14px 0 42px rgba(168, 85, 247, 0.16),
    14px 0 42px rgba(79, 140, 255, 0.1),
    inset 0 0 30px rgba(255,255,255,0.04);
}
@keyframes heroGlowMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(460%); }
}

.hero > *,
.page-header > * {
  position: relative;
  z-index: 1;
}

.hero-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 300px;
  min-width: 300px;
  margin-left: 0;
}

.hero-avatar-ring {
  --hero-glow-1: rgba(255, 79, 216, 0.7);
  --hero-glow-2: rgba(52, 215, 255, 0.6);
  --hero-glow-3: rgba(122, 92, 255, 0.55);

  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

.hero-avatar-ring::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--hero-glow-1) 0%, transparent 45%),
    radial-gradient(circle at 70% 30%, var(--hero-glow-2) 0%, transparent 42%),
    radial-gradient(circle at 30% 75%, var(--hero-glow-3) 0%, transparent 40%);
  filter: blur(28px);
  opacity: 0.85;
  z-index: 0;
  animation: heroGlowPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}

.hero-avatar-ring::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.08) 58%,
    transparent 100%
  );
  transform: translateX(-120%);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: heroShimmerSweep 4s ease-in-out infinite;
}

.hero-left {
  margin-right: 40px;
}

.hero-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
  filter:
    drop-shadow(0 0 12px var(--hero-glow-1))
    drop-shadow(0 0 24px var(--hero-glow-2))
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
  animation: heroFloat 5s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.78;
    filter: blur(28px);
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
    filter: blur(34px);
  }
}

@keyframes heroShimmerSweep {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  18% {
    opacity: 0.9;
  }
  55% {
    transform: translateX(120%);
    opacity: 0;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}
@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Synced color states */
.hero-avatar-ring.glow-follow {
  --hero-glow-1: rgba(255, 177, 74, 0.80);
  --hero-glow-2: rgba(255, 79, 216, 0.60);
  --hero-glow-3: rgba(255, 214, 102, 0.55);
}

.hero-avatar-ring.glow-sub {
  --hero-glow-1: rgba(52, 215, 255, 0.85);
  --hero-glow-2: rgba(122, 92, 255, 0.75);
  --hero-glow-3: rgba(255, 79, 216, 0.45);
}

.hero-avatar-ring.glow-gifted_sub {
  --hero-glow-1: rgba(255, 79, 216, 0.85);
  --hero-glow-2: rgba(122, 92, 255, 0.78);
  --hero-glow-3: rgba(52, 215, 255, 0.60);
}

.hero-avatar-ring.glow-donation {
  --hero-glow-1: rgba(57, 255, 138, 0.85);
  --hero-glow-2: rgba(52, 215, 255, 0.65);
  --hero-glow-3: rgba(255, 79, 216, 0.45);
}

.hero-avatar-ring.glow-raid {
  --hero-glow-1: rgba(255, 79, 216, 0.90);
  --hero-glow-2: rgba(255, 177, 74, 0.75);
  --hero-glow-3: rgba(122, 92, 255, 0.60);
}

@media (max-width: 900px) {
  .hero-avatar-ring {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 640px) {
  .hero-avatar-ring {
    width: 220px;
    height: 220px;
  }
}

.hero-main {
  min-width: 0;
  padding-left: 12px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 12px;
  line-height: 0.98;
  font-size: clamp(3.15rem, 5.3vw, 5.2rem);
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #f7fbff, #9de6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 20px rgba(110, 231, 255, 0.25),
    0 0 40px rgba(168, 85, 247, 0.18);
  animation: heroTextFadeIn 620ms ease;
}

.hero-copy,
.hero-links {
  animation: heroTextFadeIn 760ms ease;
}

.view-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 10px;
}

.hero-switch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}

.hero-switch-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-switch-row .nav-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view-badge-row .status-pill {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.74rem;
}

.view-badge-row #dashboardBuildBadge {
  border-color: rgba(110, 231, 255, 0.22);
}

@keyframes heroTextFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header h1,
.panel h2 {
  margin: 0;
  line-height: 1.02;
}

.hero-copy,
.helper-copy,
.muted {
  color: var(--text-soft);
  opacity: 0.84;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-self: center;
  margin-right: 6px;
}

.hero-identity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.hero-identity-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(129, 140, 248, 0.12);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-link-primary {
  min-width: 190px;
  justify-content: center;
}

.hero-menu {
  position: relative;
}

.hero-menu summary {
  list-style: none;
}

.hero-menu summary::-webkit-details-marker {
  display: none;
}

.hero-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(20,20,40,0.94), rgba(10,10,30,0.96));
  border: 1px solid rgba(129, 140, 248, 0.16);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.hero-menu-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(129, 140, 248, 0.08);
  color: var(--text-main);
}

/* General buttons and pills */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 21, 38, 0.85);
  border: 1px solid rgba(129, 140, 248, 0.16);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.05);
}

.status-live {
  background: rgba(30, 64, 49, 0.72);
  color: #d8fff1;
}

.status-offline {
  background: rgba(68, 20, 32, 0.78);
  color: #ffd9e3;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-green {
  background: rgba(89, 209, 195, 0.18);
  color: #dcfffb;
  border: 1px solid rgba(89, 209, 195, 0.2);
}

.badge-gray {
  background: rgba(255, 255, 255, 0.08);
  color: #d9e3ff;
  border: 1px solid rgba(122, 149, 224, 0.14);
}

.hero-link,
.btn,
.ghost-button,
.button-secondary,
.button-primary,
button {
  appearance: none;
  border: 1px solid rgba(35, 38, 52, 0.95);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 700;
  background: rgba(18, 20, 26, 0.72);
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button-primary,
button.button-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 45, 154, 0.28);
}

.button-primary::after,
button.button-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.button-primary:hover::after,
button.button-primary:hover::after {
  opacity: 1;
}

.button-secondary {
  background: rgba(18, 20, 26, 0.78);
  border-color: rgba(35, 38, 52, 0.95);
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.ghost-button {
  background: transparent;
  border-color: rgba(35, 38, 52, 0.85);
  color: var(--text-soft);
}

.ghost-button:hover,
.btn:hover,
.hero-link:hover,
.button-secondary:hover,
.button-primary:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(122, 92, 255, 0.16);
  text-decoration: none;
}

.btn.small,
button.small,
.button-secondary.small,
.ghost-button.small {
  padding: 7px 11px;
  font-size: 0.78rem;
}

/* Toolbar */

.ops-toolbar {
  margin-bottom: 32px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(18, 20, 26, 0.86);
  border: 1px solid rgba(35, 38, 52, 0.9);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.ops-toolbar-main,
.ops-toolbar-links,
.ops-toolbar-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(35, 38, 52, 0.85);
}

.ops-toolbar-links,
.ops-toolbar-stats {
  margin-top: 10px;
}

.ops-toolbar-row .ops-toolbar-links,
.ops-toolbar-row .ops-toolbar-stats {
  margin-top: 0;
}

.platform-live-bar {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 820px) {
  .ops-toolbar-row {
    align-items: stretch;
  }

  .ops-toolbar-row .ops-toolbar-links,
  .ops-toolbar-row .ops-toolbar-stats {
    width: 100%;
  }
}

/* ===================== */
/* MOD DASHBOARD V2 */
/* ===================== */

.dashboard-page[data-dashboard-role="mod"] .mod-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.dashboard-page[data-dashboard-role="mod"] .mod-v2-grid > .panel,
.dashboard-page[data-dashboard-role="mod"] .mod-v2-grid > aside {
  grid-column: auto;
}

.dashboard-page[data-dashboard-role="mod"] .mod-v2-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.dashboard-page[data-dashboard-role="mod"] .mod-v2-stream {
  border-color: rgba(122, 92, 255, 0.22);
}

.dashboard-page[data-dashboard-role="mod"] .mod-v2-stream.panel-scroll {
  height: min(78vh, 920px);
}

.dashboard-page[data-dashboard-role="mod"] .mod-v2-stream-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dashboard-page[data-dashboard-role="mod"] .mod-v2-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.mod-v2-metric {
  border-radius: 18px;
  border: 1px solid rgba(35, 38, 52, 0.9);
  background: rgba(11, 12, 16, 0.55);
  padding: 12px 12px;
}

.mod-v2-metric-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mod-v2-metric-value {
  margin: 8px 0 0;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.mod-v2-metric-warn {
  border-color: rgba(255, 210, 107, 0.22);
  background: rgba(255, 210, 107, 0.05);
}

.mod-v2-metric-good {
  border-color: rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.05);
}

.dashboard-page[data-dashboard-role="mod"] .mod-v2-stream-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
}

.dashboard-page[data-dashboard-role="mod"] .mod-v2-stream-col {
  border-radius: 18px;
  border: 1px solid rgba(35, 38, 52, 0.9);
  background: rgba(11, 12, 16, 0.42);
  padding: 12px;
}

.dashboard-page[data-dashboard-role="mod"] .mod-v2-stream-subhead {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.dashboard-page[data-dashboard-role="mod"] .mod-v2-stream-subhead h3 {
  margin: 0;
  font-size: 1.02rem;
}

.mod-v2-filter-inline {
  width: 100%;
  margin-bottom: 10px;
}

.mod-v2-chat-list .feed-item {
  padding: 12px;
}

.mod-chat-row {
  cursor: pointer;
  border-color: rgba(35, 38, 52, 0.9);
}

.mod-chat-row:hover {
  border-color: rgba(122, 92, 255, 0.55);
  box-shadow: 0 0 12px rgba(122, 92, 255, 0.14);
}

.mod-chat-row.is-selected {
  border-color: rgba(0, 229, 255, 0.34);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.14), 0 0 16px rgba(0, 229, 255, 0.12);
}

.mod-chat-row-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mod-chat-row-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(122, 92, 255, 0.7), rgba(0, 229, 255, 0.55));
  box-shadow: 0 0 16px rgba(255, 45, 154, 0.12);
  flex: 0 0 auto;
}

.mod-chat-row-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.mod-chat-row-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mod-chat-row-user {
  font-weight: 900;
}

.mod-chat-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(35, 38, 52, 0.9);
  background: rgba(18, 20, 26, 0.72);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mod-chat-pill-low {
  border-color: rgba(0, 229, 255, 0.22);
  background: rgba(0, 229, 255, 0.06);
  color: rgba(0, 229, 255, 0.9);
}

.mod-chat-pill-medium {
  border-color: rgba(255, 210, 107, 0.22);
  background: rgba(255, 210, 107, 0.06);
  color: rgba(255, 210, 107, 0.9);
}

.mod-chat-pill-high {
  border-color: rgba(255, 77, 77, 0.26);
  background: rgba(255, 77, 77, 0.08);
  color: rgba(255, 77, 77, 0.95);
}

.mod-chat-row-time {
  font-size: 0.74rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.mod-chat-row-text {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: rgba(237, 240, 255, 0.92);
  line-height: 1.55;
}

.mod-chat-row-footer {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.mod-chat-row-actions {
  opacity: 1;
}

@media (min-width: 900px) {
  .mod-chat-row-actions {
    opacity: 0;
    transition: opacity 160ms ease;
  }

  .mod-chat-row:hover .mod-chat-row-actions,
  .mod-chat-row.is-selected .mod-chat-row-actions {
    opacity: 1;
  }
}

.mod-v2-selected-body {
  display: grid;
  gap: 14px;
}

.mod-v2-selected-identity {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mod-v2-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 45, 154, 0.85), rgba(0, 229, 255, 0.65));
  box-shadow: 0 0 18px rgba(255, 45, 154, 0.18);
  flex: 0 0 auto;
}

.mod-v2-selected-message {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(237, 240, 255, 0.92);
}

.mod-v2-selected-actions .action-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mod-v2-selected-actions .ghost-button {
  width: 100%;
  justify-content: center;
}

.mod-v2-aux-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mod-v2-aux-card {
  border-radius: 20px;
  border: 1px solid rgba(35, 38, 52, 0.9);
  background: rgba(11, 12, 16, 0.42);
  padding: 12px;
}

.mod-v2-aux-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.mod-v2-aux-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  .dashboard-page[data-dashboard-role="mod"] .mod-v2-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page[data-dashboard-role="mod"] .mod-v2-stream.panel-scroll {
    height: auto;
  }

  .dashboard-page[data-dashboard-role="mod"] .mod-v2-stream-grid {
    grid-template-columns: 1fr;
  }

  .mod-v2-aux-grid {
    grid-template-columns: 1fr;
  }
}

.platform-live-group {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(35, 38, 52, 0.85);
}

.platform-live-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.platform-live-group-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.platform-live-group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(35, 38, 52, 0.9);
  background: rgba(11, 12, 16, 0.55);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.platform-live-chip:hover,
.platform-live-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(122, 92, 255, 0.55);
  box-shadow: 0 0 12px rgba(122, 92, 255, 0.14);
  outline: none;
}

.platform-live-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: none;
  flex: 0 0 auto;
}

.platform-live-chip-name {
  font-size: 0.78rem;
  font-weight: 700;
}

.platform-live-chip-status {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.platform-live-chip-online {
  color: var(--accent-cyan);
  animation: heartbeatPulse 2.4s ease-in-out infinite;
}

.platform-live-chip-ready {
  color: var(--accent-green);
  animation: heartbeatPulse 2.6s ease-in-out infinite;
}

.platform-live-chip-warning {
  color: #ffca6b;
  animation: warningGlow 3.2s ease-in-out infinite;
}

.platform-live-chip-offline {
  color: #9aa6d1;
}

.platform-live-chip-group-issues {
  color: #ff8f9d;
  animation: issueFlicker 3.6s ease-in-out infinite;
}

@keyframes heartbeatPulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(125, 249, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(125, 249, 255, 0.22), 0 0 16px rgba(125, 249, 255, 0.16), 0 8px 18px rgba(0, 0, 0, 0.24);
  }
}

@keyframes warningGlow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 202, 107, 0.1), 0 8px 18px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 202, 107, 0.22), 0 0 16px rgba(255, 202, 107, 0.12), 0 8px 18px rgba(0, 0, 0, 0.22);
  }
}

@keyframes issueFlicker {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 143, 157, 0.12), 0 8px 18px rgba(0, 0, 0, 0.2);
  }
  45% {
    box-shadow: 0 0 0 1px rgba(255, 143, 157, 0.22), 0 0 18px rgba(255, 79, 120, 0.12), 0 8px 18px rgba(0, 0, 0, 0.24);
  }
  48% {
    box-shadow: 0 0 0 1px rgba(255, 143, 157, 0.12), 0 8px 18px rgba(0, 0, 0, 0.2);
  }
  55% {
    box-shadow: 0 0 0 1px rgba(255, 143, 157, 0.22), 0 0 14px rgba(255, 79, 120, 0.1), 0 8px 18px rgba(0, 0, 0, 0.24);
  }
}

/* Forms */

input,
select,
textarea {
  background: rgba(6, 12, 24, 0.9);
  color: var(--text-main);
  border: 1px solid rgba(129, 140, 248, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(110, 231, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.08);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

/* Layout */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  align-items: start;
}

.dashboard-grid-streamer {
  gap: 22px;
}

.dashboard-page[data-dashboard-role="mod"] .dashboard-grid {
  gap: 20px;
}

.panel {
  grid-column: span 6;
  background: rgba(23, 25, 35, 0.9);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 16px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.dashboard-page[data-dashboard-role="mod"] .panel {
  border-radius: 20px;
  padding: 14px;
  background: rgba(18, 20, 26, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.panel:hover {
  border-color: rgba(122, 92, 255, 0.45);
  box-shadow: 0 0 12px rgba(122, 92, 255, 0.16);
}

.panel-primary {
  grid-column: span 5;
}

.panel-wide {
  grid-column: span 7;
}

.panel-full {
  grid-column: span 12;
}

@media (max-width: 1100px) {
  .panel-primary,
  .panel-wide {
    grid-column: span 12;
  }
}

.panel-tall {
  min-height: 260px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(35, 38, 52, 0.9);
}

.panel-scroll {
  display: flex;
  flex-direction: column;
}

.panel-scroll-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.panel-scroll-body::-webkit-scrollbar {
  width: 10px;
}

.panel-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.panel-scroll-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.dashboard-grid-streamer #platformHealthPanel.panel-scroll,
.dashboard-grid-streamer #chatPanel.panel-scroll {
  height: min(74vh, 780px);
}

@media (max-width: 1100px) {
  .dashboard-grid-streamer #platformHealthPanel.panel-scroll,
  .dashboard-grid-streamer #chatPanel.panel-scroll {
    height: auto;
  }

  .overlay-links-grid {
    grid-template-columns: 1fr;
  }

  .alert-control-grid {
    grid-template-columns: 1fr;
  }

  .panel-scroll-body {
    overflow: visible;
    padding-right: 0;
  }
}

.dashboard-page[data-dashboard-role="mod"] .panel-heading {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.live-stream-health-panel {
  position: relative;
  border-color: rgba(0, 229, 255, 0.18);
}

.live-stream-health-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.05), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(255, 45, 154, 0.04), transparent 46%);
}

.live-health-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.live-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.metrics.live-health-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.live-health-card {
  display: grid;
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(18, 20, 26, 0.65);
  border: 1px solid rgba(35, 38, 52, 0.9);
}

.live-health-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.live-health-card h3 {
  margin: 0;
  font-size: 0.96rem;
}

.live-health-value {
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(237, 240, 255, 0.98);
}

.live-health-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(7, 8, 14, 0.65);
  border: 1px solid rgba(35, 38, 52, 0.95);
  overflow: hidden;
}

.live-health-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(122, 92, 255, 0.35), rgba(122, 92, 255, 0.95));
  transition: width 260ms ease;
}

.live-health-meter-fill-cyan {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.28), rgba(0, 229, 255, 0.95));
}

.live-health-meter-fill-pink {
  background: linear-gradient(90deg, rgba(255, 45, 154, 0.26), rgba(255, 45, 154, 0.95));
}

@media (max-width: 1100px) {
  .live-health-grid {
    grid-template-columns: 1fr;
  }

  .metrics.live-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .metrics.live-health-grid {
    grid-template-columns: 1fr;
  }
}

.monitoring-panel {
  min-height: 100%;
}

.monitoring-panel .feed-list {
  min-height: 100%;
}

#alertsPanel {
  border-top: 2px solid rgba(255, 45, 154, 0.45);
}

#queuePanel {
  border-top: 2px solid rgba(0, 229, 255, 0.42);
}

#chatPanel {
  border-top: 2px solid rgba(122, 92, 255, 0.42);
}

#actionPanel {
  border-top: 2px solid rgba(65, 214, 157, 0.36);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.asset-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(20,20,40,0.9), rgba(10,10,30,0.95));
}

.asset-card-collapsible {
  padding: 0;
}

.asset-card-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 16px;
}

.asset-card-summary::-webkit-details-marker {
  display: none;
}

.asset-card-summary h3 {
  margin: 0;
}

.asset-card-summary-meta {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.asset-card-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.asset-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.asset-card label {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(129, 140, 248, 0.08);
}

.asset-card label span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
}

.asset-card input[type="range"] {
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 79, 216, 0.64), rgba(110, 231, 255, 0.72));
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.asset-card input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(10, 16, 30, 0.94);
  background: #ffffff;
  box-shadow: 0 0 14px rgba(110, 231, 255, 0.32);
}

.asset-card.is-adjusting input[type="range"] {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 16px rgba(110, 231, 255, 0.18);
}

.asset-card.is-adjusting .asset-status {
  color: #dffcff;
  transform: scale(1.01);
}

.asset-status {
  min-height: 20px;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  align-items: start;
}

.platform-card,
.feed-item,
.owner-card,
.asset-card,
.boss-card {
  position: relative;
  overflow: hidden;
  background: rgba(18, 20, 26, 0.78);
  border: 1px solid rgba(35, 38, 52, 0.9);
  border-radius: 18px;
  padding: 14px;
  color: var(--text-main);
}

.owner-card::before,
.asset-card::before,
.boss-card::before,
.feed-item::before,
.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    transparent 30%,
    transparent 70%,
    rgba(168, 85, 247, 0.08)
  );
  opacity: 0.45;
}

.dashboard-page[data-dashboard-role="mod"] .platform-card::before {
  opacity: 0.22;
}

.platform-grid .platform-card {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dashboard-page[data-dashboard-role="mod"] .platform-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.dashboard-page[data-dashboard-role="mod"] .platform-grid .platform-card {
  min-height: 152px;
  padding: 12px;
}

.platform-title-row,
.platform-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-title-row h3,
.platform-card h3,
.feed-item h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  line-height: 1.3;
  color: #f1f5ff;
}

.dashboard-page[data-dashboard-role="mod"] .platform-card h3 {
  font-size: 0.96rem;
}

.platform-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.dashboard-page[data-dashboard-role="mod"] .platform-meta {
  margin-top: 8px;
  font-size: 0.76rem;
}

.platform-note {
  margin-top: 10px;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.9rem;
}

.dashboard-page[data-dashboard-role="mod"] .platform-note {
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.platform-signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-page[data-dashboard-role="mod"] .platform-signal {
  padding: 4px 7px;
  font-size: 0.66rem;
  letter-spacing: 0.07em;
}

.platform-signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: none;
}

.platform-signal-online {
  background: rgba(65, 214, 157, 0.16);
  color: rgba(237, 240, 255, 0.98);
}

.platform-signal-offline {
  background: rgba(255, 77, 77, 0.14);
  color: rgba(237, 240, 255, 0.98);
}

.dashboard-page[data-dashboard-role="mod"] .platform-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feed-list,
.stack {
  display: grid;
  gap: 10px;
}

.feed-item {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--neon-purple);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  backdrop-filter: blur(6px);
}

.feed-item p,
.platform-card p,
.owner-card p,
.asset-card p,
.helper-copy,
.ops-link,
.origin-chip {
  color: var(--text-soft);
}

.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--text-soft);
  border: 1px dashed rgba(129, 140, 248, 0.2);
  border-radius: 18px;
  background: rgba(19, 25, 40, 0.48);
}

.platform-health-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.dashboard-grid-streamer #platformHealthPanel .platform-health-layout {
  grid-template-columns: 1fr;
}

.overlay-links-panel {
  align-self: start;
}

.overlay-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.overlay-link-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 14px;
  background: rgba(5, 9, 20, 0.56);
}

.overlay-link-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.overlay-link-card h3 {
  margin: 0;
  font-size: 1rem;
}

.overlay-url-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.overlay-url-field > span {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overlay-url-field input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(129, 140, 248, 0.16);
  background: rgba(4, 8, 18, 0.74);
  color: var(--text-main);
  font-size: 0.86rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.overlay-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overlay-link-actions .button-secondary,
.overlay-link-actions .button-primary {
  min-height: 38px;
  padding: 0 14px;
}

.alert-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.alert-toggle-chip {
  justify-content: flex-start;
}

.boss-summary {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(129, 140, 248, 0.16);
  border-radius: 12px;
  background: rgba(4, 8, 18, 0.54);
  color: var(--text-soft);
  line-height: 1.45;
}

.diagnostic-collapse {
  margin-top: 12px;
  border: 1px solid rgba(129, 140, 248, 0.14);
  border-radius: 12px;
  background: rgba(4, 8, 18, 0.42);
  overflow: hidden;
}

.diagnostic-collapse summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  user-select: none;
}

.diagnostic-collapse summary:hover {
  color: var(--text-main);
}

.diagnostic-collapse pre {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(129, 140, 248, 0.12);
  border-radius: 0;
  background: rgba(4, 8, 18, 0.72);
}

.diagnostic-collapse .diagnostic-list {
  padding: 12px;
  border-top: 1px solid rgba(129, 140, 248, 0.12);
}

.mod-secret-panel {
  margin-top: 12px;
}

.mod-secret-panel .row {
  align-items: flex-end;
}

.mod-secret-panel input {
  max-width: 520px;
}

.dashboard-page[data-dashboard-role="mod"] .platform-health-layout {
  gap: 14px;
}

.platform-health-column {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(18, 20, 26, 0.55);
  border: 1px solid rgba(35, 38, 52, 0.9);
}

.platform-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
}

.dashboard-page[data-dashboard-role="mod"] .platform-health-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.platform-issue-feed {
  display: grid;
  gap: 12px;
  align-content: start;
}

.platform-health-grid .platform-health-card,
.platform-issue-feed .platform-issue-item {
  padding: 14px 16px;
  min-height: 0;
}

.dashboard-page[data-dashboard-role="mod"] .platform-health-grid .platform-health-card,
.dashboard-page[data-dashboard-role="mod"] .platform-issue-feed .platform-issue-item {
  padding: 12px 12px;
}

.platform-health-grid .platform-health-card-head,
.platform-issue-feed .feed-origin-row {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.platform-health-grid .platform-health-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.platform-health-grid .platform-health-status,
.platform-issue-feed p {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.platform-health-grid .platform-health-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.platform-health-column-primary {
  border-color: rgba(255, 77, 77, 0.22);
  border-left: 3px solid rgba(255, 77, 77, 0.65);
}

.platform-health-column-head {
  display: grid;
  gap: 4px;
}

.platform-health-column-head h3 {
  margin: 0;
  font-size: 1rem;
}

hr {
  border: 0;
  border-top: 1px solid rgba(122, 149, 224, 0.1);
}
/* ===================== */
/* ACTION CARDS PANEL */
/* ===================== */

.action-cards-panel {
  margin-bottom: 32px;
  padding: 16px;
  border-radius: 26px;
  background: rgba(18, 20, 26, 0.78);
  border: 1px solid rgba(35, 38, 52, 0.9);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

/* ===================== */
/* HEADER */
/* ===================== */

.action-cards-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(35, 38, 52, 0.9);
}

/* ===================== */
/* GRID */
/* ===================== */

.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

/* ===================== */
/* BASE CARD */
/* ===================== */

.action-card {
  position: relative;
  overflow: hidden;
  min-height: 182px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(18, 20, 26, 0.78);
  border: 1px solid rgba(35, 38, 52, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    filter 0.25s ease;

  cursor: pointer;
}

/* Subtle sheen layer */
.action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 42%);
}

/* ===================== */
/* INTERACTIONS */
/* ===================== */

.action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 92, 255, 0.55);
  box-shadow:
    0 0 12px rgba(122, 92, 255, 0.16),
    0 14px 32px rgba(0, 0, 0, 0.38);
}

.action-card:active {
  transform: scale(0.985);
}

.action-card:focus-visible {
  outline: 2px solid rgba(0, 229, 255, 0.7);
  outline-offset: 3px;
}

/* ===================== */
/* CARD CONTENT */
/* ===================== */

.action-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.action-card-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(35, 38, 52, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.action-card h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
}

.action-card p {
  margin: 0 0 16px;
  color: var(--text-soft);
  line-height: 1.45;
  font-size: 0.88rem;
}

.action-card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.action-card-meta strong {
  color: var(--text-main);
}

/* ===================== */
/* STATUS DOT */
/* ===================== */

.action-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(154, 163, 192, 0.72);
  box-shadow: none;
}

/* ===================== */
/* STATE GLOWS */
/* ===================== */

.action-card.is-active {
  border-color: rgba(65, 214, 157, 0.32);
}

.action-card.is-warning {
  border-color: rgba(255, 210, 107, 0.32);
}

.action-card.is-danger {
  border-color: rgba(255, 77, 77, 0.36);
}

.action-card-primary {
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.78), rgba(18, 20, 26, 0.66));
  border-color: rgba(255, 45, 154, 0.34);
}

.action-card-primary:hover {
  border-color: rgba(255, 45, 154, 0.58);
  box-shadow:
    0 0 12px rgba(255, 45, 154, 0.18),
    0 14px 32px rgba(0, 0, 0, 0.38);
}
.action-card.is-active:hover {
  transform: translateY(-5px) scale(1.015);
  filter: brightness(1.05);
}

.action-card.is-active .action-card-dot {
  background: rgba(65, 214, 157, 0.85);
}

.action-card.is-warning .action-card-dot {
  background: rgba(255, 210, 107, 0.88);
}

.action-card.is-danger .action-card-dot {
  background: rgba(255, 77, 77, 0.88);
}
/* ===================== */
/* PLATFORM GLOWS */
/* ===================== */

.glow-twitch {
  box-shadow:
    0 0 28px rgba(145, 70, 255, 0.35),
    0 0 60px rgba(145, 70, 255, 0.2);
}

.glow-youtube {
  box-shadow:
    0 0 28px rgba(255, 0, 51, 0.35),
    0 0 60px rgba(255, 0, 51, 0.2);
}

.glow-discord {
  box-shadow:
    0 0 28px rgba(88, 101, 242, 0.35),
    0 0 60px rgba(88, 101, 242, 0.2);
}

.glow-multi {
  box-shadow:
    0 0 32px rgba(168, 85, 247, 0.35),
    0 0 70px rgba(79, 140, 255, 0.25),
    0 0 90px rgba(255, 79, 216, 0.2);
}

/* ===================== */
/* FLASH EFFECT */
/* ===================== */

.action-card.is-flashing {
  box-shadow:
    0 0 0 1px rgba(110, 231, 255, 0.3),
    0 0 34px rgba(168, 85, 247, 0.32),
    0 0 72px rgba(79, 140, 255, 0.16);
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media (max-width: 1280px) {
  .action-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .platform-health-layout {
    grid-template-columns: 1fr;
  }

  .platform-health-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .action-cards-grid {
    grid-template-columns: 1fr;
  }

  .action-cards-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-links {
    justify-content: flex-start;
  }

  .hero-menu {
    width: 100%;
  }

  .hero-menu-panel {
    position: static;
    margin-top: 8px;
  }

  .platform-live-group-chips {
    gap: 8px;
  }
}
.discord-panel .panel-body {
  padding-top: 10px;
}

.discord-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.discord-grid > * {
  margin-bottom: 4px;
}

.discord-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(13, 18, 36, 0.96), rgba(9, 13, 26, 0.94));
  border: 1px solid rgba(129, 140, 248, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.discord-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(110, 231, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.discord-card:hover::after {
  opacity: 1;
}

.discord-card-manual {
  grid-column: span 5;
}

.discord-card-automation {
  grid-column: span 4;
}

.discord-card-templates {
  grid-column: span 3;
}

.discord-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.discord-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.discord-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.field-group {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group-wide {
  grid-column: span 8;
}

.field-group > span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.discord-card input,
.discord-card select,
.discord-card textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(129, 140, 248, 0.16);
  background: rgba(5, 9, 20, 0.92);
  color: var(--text-main);
  padding: 12px 14px;
  box-sizing: border-box;
}

.discord-card textarea {
  resize: vertical;
  min-height: 110px;
}

.discord-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.toggle-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(129, 140, 248, 0.12);
}

.toggle-chip input {
  width: auto;
  margin: 0;
}

.discord-template-stack {
  display: grid;
  gap: 12px;
}

.template-block {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(129, 140, 248, 0.1);
}

.template-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.discord-preview-box {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.preview-surface {
  margin-top: 8px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(4, 8, 18, 0.9);
  border: 1px solid rgba(129, 140, 248, 0.12);
}

.preview-surface-live {
  border-color: rgba(110, 231, 255, 0.16);
  background:
    radial-gradient(circle at top right, rgba(110, 231, 255, 0.08), transparent 48%),
    rgba(4, 8, 18, 0.92);
}

.preview-surface pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--text-soft);
}

.discord-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.live-preview-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: 2px 0 12px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(16, 24, 44, 0.84);
  border: 1px solid rgba(129, 140, 248, 0.12);
  color: var(--text-soft);
}
.live-glow {
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
.live-preview-indicator.is-active {
  border-color: rgba(110, 231, 255, 0.2);
  color: #dffcff;
  box-shadow: 0 0 14px rgba(110, 231, 255, 0.08);
}

.live-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6ee7ff;
  box-shadow: 0 0 12px rgba(110, 231, 255, 0.6);
  animation: heartbeatPulse 2s ease-in-out infinite;
}

.action-history-panel {
  max-height: 520px;
  overflow: hidden;
}

.action-history-panel .panel-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(20, 28, 60, 0.98), rgba(20, 28, 60, 0.88));
  backdrop-filter: blur(10px);
}

.action-history-panel .feed-list {
  max-height: 430px;
  overflow-y: auto;
  padding-right: 6px;
  mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
}

.action-history-panel .history-item,
.action-history-panel .feed-item {
  margin-bottom: 10px;
}

.zone-setup {
  margin-top: 56px;
  opacity: 0.96;
}

.tool-panel {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tool-panel:hover {
  transform: translateY(-2px);
}

.section-block {
  margin-bottom: 20px;
}

.section-block:last-child {
  margin-bottom: 0;
}

.section-block-head {
  margin-bottom: 10px;
}

.section-block-head h4 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

@media (max-width: 1200px) {
  .discord-card-manual,
  .discord-card-automation,
  .discord-card-templates {
    grid-column: span 12;
  }

  .field-group,
  .field-group-wide {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .discord-toggle-grid {
    grid-template-columns: 1fr;
  }
}
/* ===================== */
/* CONNECTION MANAGER */
/* ===================== */

.connection-grid-workbench {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.connection-manager-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0 2px;
}

.connection-card {
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(13, 18, 36, 0.97), rgba(8, 12, 24, 0.95));
  border: 1px solid rgba(129, 140, 248, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 10px 24px rgba(0, 0, 0, 0.26);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.connection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(110, 231, 255, 0.08), transparent 52%),
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent 28%, transparent 72%, rgba(168, 85, 247, 0.08));
  opacity: 0.9;
}

.connection-card:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 231, 255, 0.24);
  box-shadow:
    0 0 14px rgba(79, 140, 255, 0.08),
    0 0 24px rgba(168, 85, 247, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.3);
}

.connection-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(129, 140, 248, 0.12);
}

.connection-card-head h3 {
  margin: 0;
  font-size: 1.18rem;
}

.connection-summary {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.connection-runtime,
.connection-guide,
.connection-editor {
  position: relative;
  z-index: 1;
}

.connection-runtime {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(129, 140, 248, 0.1);
}

.runtime-meta,
.platform-meta,
.feed-meta,
.readiness-row,
.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.connection-guide {
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(129, 140, 248, 0.08);
}

.connection-editor {
  display: grid;
  gap: 12px;
}

.connection-section {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(4, 8, 18, 0.78);
  border: 1px solid rgba(129, 140, 248, 0.1);
}

.connection-section-head {
  margin-bottom: 10px;
}

.connection-section-head h4 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.connection-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.connection-field {
  grid-column: span 6;
  display: grid;
  gap: 6px;
}

.connection-field label {
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.connection-help {
  margin: 0;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.78rem;
  line-height: 1.35;
}

.connection-fields input,
.connection-fields select,
.connection-fields textarea {
  grid-column: span 6;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(129, 140, 248, 0.16);
  background: rgba(5, 9, 20, 0.92);
  color: var(--text-main);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.connection-fields input:focus,
.connection-fields select:focus,
.connection-fields textarea:focus {
  outline: none;
  border-color: rgba(110, 231, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.08);
  background: rgba(8, 12, 24, 0.96);
}

.connection-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.connection-button-row .button-secondary,
.connection-button-row .ghost-button,
.connection-manager-toolbar .button-secondary,
.connection-manager-toolbar .ghost-button {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 14px;
}

.connection-button-row .button-secondary {
  background: rgba(13, 19, 35, 0.84);
  border-color: rgba(129, 140, 248, 0.16);
}

.connection-button-row .ghost-button[data-action='reset-adapter'] {
  background: transparent;
  border-color: rgba(129, 140, 248, 0.08);
  color: var(--text-dim);
}

.connection-button-row-secondary {
  margin-top: 10px;
}

.utility-field,
.recipe-block,
.validation-block,
.connector-summary {
  margin-top: 12px;
}

.utility-field {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(129, 140, 248, 0.1);
}

.utility-field code,
.recipe-block pre,
.preview-surface pre {
  word-break: break-word;
  white-space: pre-wrap;
}

.recipe-block {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(129, 140, 248, 0.1);
}

.recipe-block-header,
.template-block-head,
.platform-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.validation-list {
  display: grid;
  gap: 10px;
}

.validation-check {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(129, 140, 248, 0.08);
}

.validation-ready {
  border-color: rgba(100, 255, 200, 0.18);
}

.validation-needed,
.validation-blocked,
.validation-warning {
  border-color: rgba(255, 184, 77, 0.18);
}

.platform-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(129, 140, 248, 0.16);
  font-size: 0.8rem;
  font-weight: 700;
}

.platform-signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.platform-signal-online {
  color: #7df9ff;
}

.platform-signal-ready {
  color: #7dffb2;
}

.platform-signal-warning {
  color: #ffca6b;
}

.platform-signal-offline {
  color: #9aa6d1;
}

.runtime-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(129, 140, 248, 0.14);
  margin-bottom: 8px;
}

.runtime-connected,
.runtime-authorized,
.runtime-configured,
.runtime-ready,
.runtime-inbound-ready,
.runtime-tested,
.runtime-bridge-verified,
.runtime-kick-relay-verified,
.runtime-tiktok-relay-verified,
.runtime-rumble-relay-verified,
.runtime-facebook-relay-verified,
.runtime-blaze-relay-verified {
  border-color: rgba(100, 255, 200, 0.24);
  box-shadow: 0 0 16px rgba(100, 255, 200, 0.08);
}

.runtime-retrying,
.runtime-needs-refresh,
.runtime-stale,
.runtime-idle-timeout,
.runtime-bridge-error,
.runtime-kick-relay-error,
.runtime-tiktok-relay-error,
.runtime-rumble-relay-error,
.runtime-facebook-relay-error,
.runtime-blaze-relay-error,
.runtime-missing-credentials,
.runtime-error {
  border-color: rgba(255, 184, 77, 0.22);
  box-shadow: 0 0 16px rgba(255, 184, 77, 0.08);
}

.platform-card-spotlight {
  animation: connectionSpotlight 1.5s ease;
}

@keyframes connectionSpotlight {
  0% {
    box-shadow:
      0 0 0 rgba(110, 231, 255, 0),
      0 12px 30px rgba(0,0,0,0.35);
  }
  40% {
    box-shadow:
      0 0 30px rgba(110, 231, 255, 0.18),
      0 0 60px rgba(168, 85, 247, 0.14),
      0 14px 34px rgba(0,0,0,0.42);
  }
  100% {
    box-shadow:
      0 0 0 rgba(110, 231, 255, 0),
      0 12px 30px rgba(0,0,0,0.35);
  }
}

@media (max-width: 1200px) {
  .connection-card {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .connection-field,
  .connection-fields input,
  .connection-fields select,
  .connection-fields textarea {
    grid-column: span 12;
  }

  .connection-card-head,
  .recipe-block-header,
  .platform-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
.platform-identity {
  display: flex;
  gap: 12px;
  align-items: center;
}

.platform-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(135deg, #6c8cff, #9b6cff);
  box-shadow:
    0 0 12px rgba(120,140,255,0.4),
    0 0 24px rgba(155,108,255,0.3);
}

.connection-card {
  backdrop-filter: blur(6px);
}

.connection-runtime,
.connection-guide,
.connection-section {
  margin-top: 10px;
}

.connection-button-row .button-secondary {
  background: rgba(13, 19, 35, 0.84);
  border: 1px solid rgba(129, 140, 248, 0.16);
}

.connection-button-row .button-secondary:hover {
  background: rgba(17, 24, 42, 0.92);
  box-shadow: 0 0 10px rgba(120,140,255,0.14);
}
.connection-collapsible {
  border-radius: 16px;
  border: 1px solid rgba(120, 140, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  margin-top: 12px;
  overflow: hidden;
}

.connection-collapsible summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ee7ff;
  border-bottom: 1px solid rgba(120, 140, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.connection-collapsible summary::-webkit-details-marker {
  display: none;
}

.connection-collapsible-indicator {
  font-size: 1rem;
  color: #c7d2ff;
}

.connection-collapsible-body {
  padding: 0 0 12px;
}

.connection-collapsible .connection-section {
  margin-top: 0;
  border: none;
  background: transparent;
}

.connection-fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.connection-fields input,
.connection-fields select,
.connection-fields textarea {
  grid-column: span 6;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(120, 140, 255, 0.16);
  background: rgba(5, 9, 20, 0.92);
  color: #f3f6ff;
}

.connection-fields textarea {
  min-height: 110px;
  resize: vertical;
}

@media (max-width: 720px) {
  .connection-field,
  .connection-fields input,
  .connection-fields select,
  .connection-fields textarea {
    grid-column: span 12;
  }
}

/* Final dashboard migration alignment */
.dashboard-page .topbar,
.dashboard-page .card,
.dashboard-page .metric,
.dashboard-page .feedItem,
.dashboard-page .reviewItem {
  border-color: var(--border-soft);
}

.dashboard-page .hero.topbar {
  padding: 18px;
}

.dashboard-look-nav {
  margin-top: 0;
}

.dashboard-grid-operator {
  margin-top: 22px;
}

.dashboard-grid-operator .discord-panel {
  margin-bottom: 0 !important;
}

.dashboard-grid-operator #operatorLogPanel {
  min-height: 360px;
}

.dashboard-grid-operator #operatorLogPanel pre,
.dashboard-grid-streamer pre,
.mod-v2-grid pre {
  margin: 0;
  max-height: none;
  background: rgba(4, 8, 18, 0.72);
  border: 1px solid rgba(129, 140, 248, 0.12);
  border-radius: 16px;
}

.dashboard-page .panel > .row:first-child {
  margin-top: 0 !important;
}

.dashboard-page .metric,
.dashboard-page .live-health-card,
.dashboard-page .mod-v2-metric {
  min-height: 112px;
  border-radius: 18px;
}

.dashboard-page .metricLabel,
.dashboard-page .mod-v2-metric-label {
  color: var(--text-soft);
  letter-spacing: 0.08em;
}

.dashboard-page .metricValue,
.dashboard-page .mod-v2-metric-value {
  color: var(--text-main);
  line-height: 1;
}

.dashboard-page .feedItem,
.dashboard-page .reviewItem,
.dashboard-page .history-item {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(129, 140, 248, 0.1);
}

.dashboard-page .history {
  display: grid;
  gap: 10px;
}

.dashboard-page .history-item {
  padding: 12px;
  border-top: 1px solid rgba(129, 140, 248, 0.1);
}

.dashboard-page table {
  border-spacing: 0;
}

.dashboard-page th {
  color: var(--text-soft);
}

.dashboard-page td,
.dashboard-page th {
  border-color: rgba(129, 140, 248, 0.1);
}

@media (max-width: 900px) {
  .dashboard-page .hero.topbar {
    display: grid;
  }

  .dashboard-page .hero-avatar-wrap {
    min-width: 0;
    flex-basis: auto;
    justify-content: flex-start;
  }
}

