:root {
  color-scheme: dark;
  --bg: #050914;
  --surface: #08111f;
  --surface-2: #0c1829;
  --surface-3: #122642;
  --sidebar-bg: #07101d;
  --topbar-bg: rgba(8, 17, 31, .86);
  --card-bg: rgba(12, 24, 41, .72);
  --input-bg: rgba(5, 11, 22, .72);
  --line: rgba(225, 228, 233, .11);
  --line-strong: rgba(0, 106, 251, .2);
  --text: #fffefe;
  --muted: #e1e4e9;
  --accent: #02d5fd;
  --accent-2: #006afb;
  --accent-3: #003ced;
  --good: #006afb;
  --warn: #f5c542;
  --danger: #ff667a;
  --kick: #53fc18;
  --kick-shadow: rgba(83, 252, 24, .38);
  --shadow: 0 18px 45px rgba(0, 0, 0, .32), 0 0 24px rgba(0, 106, 251, .05);
  --soft-blue: rgba(0, 106, 251, .12);
  --logo-filter: drop-shadow(0 0 14px rgba(0, 106, 251, .36));
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8ff;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --surface-3: #dfeaff;
  --sidebar-bg: #ffffff;
  --topbar-bg: rgba(255, 255, 255, .86);
  --card-bg: rgba(255, 255, 255, .92);
  --input-bg: #ffffff;
  --line: rgba(0, 60, 237, .13);
  --line-strong: rgba(0, 106, 251, .24);
  --text: #061326;
  --muted: #4f647d;
  --shadow: 0 18px 48px rgba(0, 60, 237, .1), 0 1px 0 rgba(255, 255, 255, .8) inset;
  --soft-blue: rgba(0, 106, 251, .08);
  --logo-filter: drop-shadow(0 10px 18px rgba(0, 60, 237, .12));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, var(--soft-blue), transparent 34%),
    radial-gradient(circle at 84% 14%, rgba(0, 60, 237, .12), transparent 30%),
    linear-gradient(180deg, #07101d 0%, var(--bg) 46%, #060b16 100%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.primary {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

button:hover,
.primary:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.primary {
  border-color: rgba(0, 106, 251, .3);
  background:
    linear-gradient(180deg, rgba(0, 106, 251, .14), rgba(0, 60, 237, .08)),
    var(--surface);
  color: var(--text);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 254, 254, .12), 0 10px 28px rgba(0, 106, 251, .12);
}

.hidden {
  display: none !important;
}

.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 190px 32px 40px;
  position: relative;
}

.login-shell {
  width: min(720px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 0%, rgba(0, 106, 251, .1), transparent 36%),
    var(--card-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  animation: liftIn .45s ease both;
}

.eyebrow {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}

.hub-logo {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  min-width: min(680px, calc(100vw - 36px));
  text-align: center;
  pointer-events: none;
}

.hub-logo span:not(.star) {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(58px, 9vw, 112px);
  line-height: .95;
  font-weight: 950;
  letter-spacing: .02em;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #bfeaff 48%, #5fbfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 18px rgba(0, 106, 251, .48),
    0 0 42px rgba(0, 106, 251, .32);
  animation: logoBreath 5.2s cubic-bezier(.45, 0, .2, 1) infinite;
  transform-origin: center;
}

.hub-logo-img {
  max-width: 180px;
  max-height: 190px;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 18px rgba(0, 106, 251, .38));
  animation: logoBreath 5.2s cubic-bezier(.45, 0, .2, 1) infinite;
}

.star {
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  pointer-events: none;
  animation: starFloat 3.8s ease-in-out infinite;
}

.star::before,
.star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: #dffbff;
  box-shadow: 0 0 14px rgba(0, 106, 251, .82);
  transform: translate(-50%, -50%);
}

.star::before {
  width: 2px;
  height: 100%;
}

.star::after {
  width: 100%;
  height: 2px;
}

.star-a {
  left: 18%;
  top: -8px;
}

.star-b {
  right: 16%;
  top: 9px;
  width: 5px;
  height: 5px;
  animation-delay: .45s;
}

.star-c {
  left: 31%;
  bottom: -18px;
  width: 6px;
  height: 6px;
  animation-delay: .9s;
}

.star-d {
  right: 30%;
  bottom: -16px;
  width: 4px;
  height: 4px;
  animation-delay: 1.35s;
}

.star-e {
  left: 58%;
  top: -20px;
  width: 4px;
  height: 4px;
  animation-delay: 1.8s;
}

.star-f {
  left: 9%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  animation-delay: 2.2s;
}

.star-g {
  right: 7%;
  bottom: -3px;
  width: 6px;
  height: 6px;
  animation-delay: 2.55s;
}

.star-h {
  left: 72%;
  top: -6px;
  width: 5px;
  height: 5px;
  animation-delay: 3s;
}

.star-i {
  left: 4%;
  top: 28px;
  width: 5px;
  height: 5px;
  animation-delay: 3.35s;
}

h1 {
  margin: 0 0 16px;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.login p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 28px;
}

.login-options {
  display: grid;
  gap: 12px;
  width: min(560px, 100%);
}

.login-option {
  position: relative;
  width: 100%;
  min-height: 72px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 86% 0%, rgba(0, 106, 251, .12), transparent 38%),
    var(--card-bg);
  box-shadow: 0 1px 0 rgba(255, 254, 254, .05) inset;
  text-decoration: none;
  overflow: hidden;
}

.login-option span:not(.platform-mark) {
  display: grid;
  gap: 4px;
  text-align: left;
  min-width: 0;
}

.login-option strong {
  font-size: 16px;
}

.login-option small {
  color: var(--muted);
}

.login-option strong,
.login-option small {
  text-decoration: none;
}

.login-option:visited,
.login-option:link {
  color: var(--text);
}

.platform-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
  flex: 0 0 auto;
}

.platform-mark svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.twitch .platform-mark {
  background: #9146ff;
}

.kick .platform-mark {
  background: var(--kick);
  color: #071207;
}

.youtube .platform-mark {
  background: #ff0033;
}

.kick,
.youtube {
  opacity: .82;
}

.login-note {
  width: min(560px, 100%);
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 106, 251, .18);
  border-radius: 12px;
  background: rgba(0, 106, 251, .06);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.back-home {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.back-home:hover {
  color: var(--text);
}

.note-pop {
  animation: notePop .26s ease both;
}

.login-pop {
  animation: loginPop .34s ease both;
}

.panel {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
  overflow-y: auto;
}

.brand {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: 22px;
  color: var(--text);
  text-shadow: none;
}

.sidebar-logo-img {
  width: 72px;
  max-height: 82px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: var(--logo-filter);
}

.nav {
  width: 100%;
  justify-content: flex-start;
  position: relative;
  min-height: 42px;
  margin: 3px 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  font-weight: 850;
  padding: 0 14px 0 18px;
}

.nav.active,
.nav:hover {
  background: rgba(0, 106, 251, .08);
  color: var(--text);
  border-color: rgba(0, 106, 251, .18);
  box-shadow: none;
}

.nav.active::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent-2);
}

.sidebar-socials:empty {
  display: none;
}

.sidebar-socials {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sidebar-socials-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.social-copy {
  width: 100%;
  min-height: 40px;
  margin: 4px 0;
  justify-content: space-between;
  background: rgba(0, 106, 251, .06);
  border-color: rgba(0, 106, 251, .12);
}

.social-copy span {
  font-weight: 800;
}

.social-copy small {
  color: var(--muted);
}

.social-copy.copied,
button.copied {
  border-color: var(--good);
  background: rgba(0, 106, 251, .14);
  color: var(--good);
}

.workspace {
  min-width: 0;
  background:
    radial-gradient(circle at 72% 0%, rgba(0, 106, 251, .1), transparent 34%),
    linear-gradient(180deg, rgba(255, 254, 254, .025), transparent 280px),
    var(--bg);
  position: relative;
  z-index: 1;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 4;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid rgba(0, 106, 251, .34);
}

.profile span,
.profile small {
  display: block;
}

.profile span {
  font-weight: 800;
}

.profile small,
.hint {
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.save-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.theme-toggle {
  min-width: 78px;
  border-color: rgba(0, 106, 251, .2);
  background:
    linear-gradient(180deg, rgba(0, 106, 251, .08), transparent),
    var(--card-bg);
  color: var(--text);
  font-weight: 900;
}

.theme-toggle-floating {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
}

body.panel-active .theme-toggle-floating,
body.panel-active .floating-tools {
  display: none;
}

.theme-toggle:hover {
  background:
    linear-gradient(180deg, rgba(0, 106, 251, .14), transparent),
    var(--card-bg);
}

.floating-tools {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-tools .theme-toggle-floating {
  position: static;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 12, 24, .74);
  backdrop-filter: blur(14px);
}

:root[data-theme="light"] .language-switch {
  background: rgba(255, 255, 255, .8);
}

.language-switch button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.language-switch button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fffefe;
  box-shadow: 0 0 18px rgba(0, 106, 251, .25);
}

.panel[data-save-state="dirty"] .save-status {
  color: #151515;
  background: var(--warn);
  border-color: var(--warn);
}

.panel[data-save-state="saved"] .save-status,
.panel[data-save-state="clean"] .save-status {
  color: #fffefe;
  background: var(--good);
  border-color: var(--good);
}

.content {
  padding: 26px 24px;
}

.dashboard-layout {
  display: grid;
  gap: 16px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
}

.dashboard-metric {
  min-height: 132px;
  justify-content: space-between;
}

.dashboard-metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-metric strong {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: 0;
}

.dashboard-chart-card {
  min-height: 340px;
}

.activity-chart {
  min-height: 240px;
  margin-top: 16px;
  border: 1px solid rgba(0, 106, 251, .16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(2, 213, 253, .1), transparent 28%),
    linear-gradient(180deg, rgba(0, 106, 251, .08), transparent);
  overflow: hidden;
}

.activity-chart svg {
  width: 100%;
  height: 240px;
  display: block;
}

.activity-grid {
  fill: none;
  stroke: rgba(225, 228, 233, .08);
  stroke-width: 1;
}

.activity-area {
  opacity: .9;
  transition: d .45s ease;
}

.activity-line {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(2, 213, 253, .32));
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
  animation: drawActivity 1s ease forwards;
  transition: d .45s ease;
}

.tab:not(.hidden) {
  animation: fadeSlide .22s ease both;
}

.page-head {
  margin-bottom: 18px;
  align-items: flex-end;
}

.page-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.page-head .hint {
  color: #93a4b7;
}

.page-head p {
  margin: 6px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.chat-preview {
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chat-preview iframe {
  width: 100%;
  height: 680px;
  border: 0;
  display: block;
}

.chat-helper {
  position: sticky;
  top: 94px;
}

.giveaway-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 420px;
  gap: 16px;
  align-items: start;
}

.giveaway-main {
  display: grid;
  gap: 16px;
}

.giveaway-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.giveaway-chat {
  position: sticky;
  top: 94px;
}

.entrant-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.entrant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 106, 251, .1);
  border-radius: 10px;
  background: rgba(0, 106, 251, .05);
}

.entrant-row span {
  color: var(--muted);
  font-size: 12px;
}

.chat-helper p {
  line-height: 1.5;
}

.test-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.test-list button {
  justify-content: space-between;
}

.account-card {
  display: grid;
  gap: 14px;
}

.account-row,
.connect-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 106, 251, .14);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 106, 251, .1), transparent 40%),
    var(--card-bg);
}

.account-row img,
.connect-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 106, 251, .12);
  border: 1px solid rgba(0, 106, 251, .2);
}

.account-row img {
  border-radius: 50%;
  object-fit: cover;
}

.account-row strong,
.connect-row strong,
.account-row small,
.connect-row small {
  display: block;
}

.account-row small,
.connect-row small {
  margin-top: 3px;
  color: var(--muted);
}

.account-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.account-badge.connected {
  color: #fffefe;
  background: var(--good);
}

.connect-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.connect-icon.youtube {
  color: white;
  background: #ff0033;
}

.connect-icon.kick {
  color: #071207;
  background: var(--kick);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(255, 254, 254, .035) inset;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 106, 251, .3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.reveal {
  animation: liftIn .28s ease both;
}

.card h2 {
  margin: 0;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-head {
  margin-bottom: 14px;
}

.section-note {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.section-note p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.alert-entry {
  padding: 10px 0;
}

.alert-entry + .alert-entry {
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.row {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.check-row {
  min-height: 36px;
  margin-top: 10px;
  padding: 8px 0;
  color: var(--muted);
}

.check-row input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent);
}

.range-control {
  display: grid;
  grid-template-columns: 1fr 54px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card-bg);
}

.range-control input[type="range"] {
  width: 100%;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--accent);
  appearance: none;
  cursor: pointer;
}

.range-control input[type="range"]:focus {
  box-shadow: none;
}

.range-control input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(225, 228, 233, .08);
}

.range-control input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range-control input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(225, 228, 233, .08);
}
.range-control input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.range-control output {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 106, 251, .12);
  color: var(--text);
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px 10px;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 106, 251, .1);
  background: var(--surface-2);
}

textarea {
  resize: vertical;
  min-height: 76px;
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  isolation: isolate;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #555b66;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
  overflow: hidden;
}

.slider::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .35);
  transition: transform .18s ease;
  z-index: 2;
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  box-shadow: 0 0 0 3px rgba(0, 106, 251, .14), 0 0 18px rgba(0, 106, 251, .14);
}

.switch input:checked + .slider::after {
  transform: translateX(20px);
}

.switch-icon {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  z-index: 1;
}

.switch-icon::before,
.switch-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: #ff667a;
  transform-origin: center;
}

.switch-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.switch-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.switch input:not(:checked) + .slider .switch-icon {
  right: 6px;
}

.switch input:checked + .slider .switch-icon {
  left: 7px;
}

.switch input:checked + .slider .switch-icon::before {
  width: 6px;
  height: 2px;
  background: #fffefe;
  transform: translate(-65%, 30%) rotate(45deg);
}

.switch input:checked + .slider .switch-icon::after {
  width: 12px;
  height: 2px;
  background: #fffefe;
  transform: translate(-20%, -10%) rotate(-45deg);
}

.switch input:not(:checked) + .slider {
  box-shadow: 0 0 0 0 rgba(255, 102, 122, 0);
}

.switch-pop {
  animation: switchPop .28s ease both;
}

.particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  transform: translate(-50%, -50%);
  animation: particleBurst .52s ease-out forwards;
}

.particle-on {
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(0, 106, 251, .7);
}

.particle-off {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(255, 102, 122, .8);
}

.particle-platform,
.particle-twitch {
  background: #a970ff;
  box-shadow: 0 0 14px rgba(169, 112, 255, .9);
}

.particle-kick {
  background: var(--kick);
  box-shadow: 0 0 18px var(--kick-shadow);
}

.particle-youtube {
  background: #ff0033;
  box-shadow: 0 0 14px rgba(255, 0, 51, .9);
}

.info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.info-button {
  width: 22px;
  height: 22px;
  min-height: 22px;
  border-radius: 50%;
  padding: 0;
  font-size: 12px;
  font-weight: 900;
  color: #02d5fd;
  background: rgba(0, 106, 251, .08);
  border: 1px solid rgba(0, 106, 251, .24);
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: help;
  font-style: normal;
  flex: 0 0 22px;
}

.info-tooltip {
  position: absolute;
  left: -12px;
  top: calc(100% + 10px);
  z-index: 10001;
  width: 260px;
  max-width: min(260px, calc(100vw - 32px));
  padding: 10px 11px;
  border: 1px solid rgba(0, 106, 251, .22);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .42);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transition: opacity .14s ease, transform .14s ease;
}

.info-tooltip::after {
  content: "";
  position: absolute;
  left: 23px;
  bottom: 100%;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(0, 106, 251, .22);
  border-top: 1px solid rgba(0, 106, 251, .22);
  background: var(--surface);
  transform: translateY(5px) rotate(45deg);
}

.info-tooltip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 12px;
}

.info-tooltip span,
.info-tooltip em {
  display: block;
}

.info-tooltip em {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 106, 251, .14);
  color: #02d5fd;
  font-style: normal;
}

.info-wrap:hover .info-tooltip,
.info-wrap:focus-within .info-tooltip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.info-button:hover {
  transform: scale(1.06);
  background: rgba(156, 199, 255, .14);
  border-color: rgba(156, 199, 255, .48);
}

.list {
  display: grid;
  gap: 12px;
}

.item {
  border-top: 1px solid #2f343c;
  padding-top: 12px;
}

.danger {
  color: var(--danger);
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drawActivity {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes switchPop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes particleBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.4);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.1);
  }
}

@keyframes loginPop {
  0% {
    transform: scale(1);
    border-color: var(--line);
  }
  45% {
    transform: scale(1.012);
    border-color: var(--login-pop-color, rgba(169, 112, 255, .68));
  }
  100% {
    transform: scale(1);
    border-color: var(--line);
  }
}

.login-pop-twitch.login-pop {
  --login-pop-color: rgba(169, 112, 255, .68);
}

.login-pop-kick.login-pop {
  --login-pop-color: var(--kick-shadow);
}

.login-pop-youtube.login-pop {
  --login-pop-color: rgba(255, 0, 51, .68);
}

@keyframes notePop {
  0% {
    transform: translateY(4px);
    border-color: rgba(0, 106, 251, .18);
  }
  50% {
    transform: translateY(-2px);
    border-color: rgba(0, 106, 251, .5);
  }
  100% {
    transform: translateY(0);
    border-color: rgba(0, 106, 251, .18);
  }
}

@keyframes starFloat {
  0%,
  100% {
    opacity: .45;
    transform: translate(0, 0) rotate(0deg) scale(.9);
  }
  45% {
    opacity: 1;
    transform: translate(6px, -8px) rotate(35deg) scale(1.25);
  }
  70% {
    opacity: .72;
    transform: translate(-4px, 5px) rotate(70deg) scale(.95);
  }
}

@keyframes logoBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-3px) scale(1.018);
    filter: brightness(1.055);
  }
  72% {
    transform: translateY(.5px) scale(1.003);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 820px) {
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }

  .floating-tools {
    top: 12px;
    right: 12px;
  }

  .login {
    padding-top: 190px;
  }

  .panel {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    display: none;
  }

  .nav {
    width: auto;
    white-space: nowrap;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .content {
    padding: 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-preview,
  .chat-preview iframe {
    min-height: 560px;
    height: 560px;
  }

  .chat-helper {
    position: static;
  }

  .giveaway-layout {
    grid-template-columns: 1fr;
  }

  .giveaway-chat {
    position: static;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
}


