@font-face {
  font-family: "Exo2Var";
  src: url("/Fonts/Exo2-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "RubikVar";
  src: url("/Fonts/Rubik-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NotoArabic";
  src: url("/Fonts/NotoSansArabic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050506;
  --bg-2: #101013;
  --ink: #f7f8fa;
  --soft: #e1e4e8;
  --muted: #a8adb6;
  --panel: rgba(17, 18, 22, 0.88);
  --panel-solid: #14151a;
  --panel-2: rgba(30, 18, 20, 0.9);
  --line: rgba(230, 235, 242, 0.15);
  --line-strong: rgb(var(--accent-strong-rgb) / 0.42);
  --red: #ff303a;
  --red-2: #b80f19;
  --accent-rgb: 255 48 58;
  --accent-strong-rgb: 255 58 66;
  --accent-deep-rgb: 184 15 25;
  --field-help-link-rgb: var(--accent-strong-rgb);
  --surface-glint-rgb: 231 235 239;
  --silver: #e7ebef;
  --steel: #9ea6ad;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f7;
  --bg-2: #ffffff;
  --ink: #15171c;
  --soft: #2b3038;
  --muted: #606874;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --panel-2: rgba(255, 245, 246, 0.94);
  --line: rgba(20, 24, 32, 0.14);
  --line-strong: rgb(var(--accent-deep-rgb) / 0.34);
  --red: #c91420;
  --red-2: #8d0b14;
  --accent-rgb: 201 20 32;
  --accent-strong-rgb: 184 15 25;
  --accent-deep-rgb: 184 15 25;
  --field-help-link-rgb: var(--accent-deep-rgb);
  --surface-glint-rgb: 43 48 56;
  --silver: #2b3038;
  --steel: #6b737d;
  --shadow: 0 26px 70px rgba(30, 35, 45, 0.16);
  --shadow-soft: 0 16px 42px rgba(30, 35, 45, 0.12);
}

html[data-theme="midnight"] {
  color-scheme: dark;
  --bg: #01050f;
  --bg-2: #0d1f3b;
  --ink: #ecf7ff;
  --soft: #bfd7f0;
  --muted: #7c9fbe;
  --panel: rgba(8, 18, 35, 0.97);
  --panel-solid: rgba(10, 22, 43, 0.95);
  --panel-2: rgba(7, 17, 32, 0.95);
  --line: rgba(102, 165, 255, 0.25);
  --line-strong: rgba(79, 191, 255, 0.52);
  --red: #33a1ff;
  --red-2: #1d7ff8;
  --accent-rgb: 51 161 255;
  --accent-strong-rgb: 128 197 255;
  --accent-deep-rgb: 29 127 248;
  --surface-glint-rgb: 128 197 255;
  --silver: #80c5ff;
  --steel: #7c9fbe;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

html[data-theme="ember"] {
  color-scheme: dark;
  --bg: #090201;
  --bg-2: #2a0f0d;
  --ink: #fff1ea;
  --soft: #e9c8ba;
  --muted: #bc8f80;
  --panel: rgba(33, 11, 9, 0.97);
  --panel-solid: rgba(42, 14, 11, 0.95);
  --panel-2: rgba(28, 10, 8, 0.95);
  --line: rgba(220, 112, 72, 0.26);
  --line-strong: rgba(255, 134, 85, 0.54);
  --red: #ff7a2f;
  --red-2: #de5228;
  --accent-rgb: 255 122 47;
  --accent-strong-rgb: 255 176 120;
  --accent-deep-rgb: 222 82 40;
  --surface-glint-rgb: 255 176 120;
  --silver: #ffb078;
  --steel: #bc8f80;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

html[data-theme="amethyst"] {
  color-scheme: dark;
  --bg: #09030f;
  --bg-2: #24123b;
  --ink: #f9eeff;
  --soft: #dbc3e7;
  --muted: #a88ab8;
  --panel: rgba(23, 9, 35, 0.97);
  --panel-solid: rgba(31, 12, 46, 0.95);
  --panel-2: rgba(20, 8, 30, 0.95);
  --line: rgba(177, 126, 227, 0.26);
  --line-strong: rgba(201, 136, 255, 0.52);
  --red: #c56bff;
  --red-2: #9c54e0;
  --accent-rgb: 197 107 255;
  --accent-strong-rgb: 222 169 255;
  --accent-deep-rgb: 156 84 224;
  --surface-glint-rgb: 222 169 255;
  --silver: #dea9ff;
  --steel: #a88ab8;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

html[data-theme="teal"] {
  color-scheme: dark;
  --bg: #010909;
  --bg-2: #0d2a2c;
  --ink: #eafdfb;
  --soft: #c2e5df;
  --muted: #7eb0a8;
  --panel: rgba(8, 23, 22, 0.97);
  --panel-solid: rgba(10, 29, 27, 0.95);
  --panel-2: rgba(7, 20, 19, 0.95);
  --line: rgba(100, 176, 169, 0.26);
  --line-strong: rgba(89, 223, 210, 0.5);
  --red: #2dd7c5;
  --red-2: #14b1a2;
  --accent-rgb: 45 215 197;
  --accent-strong-rgb: 140 240 228;
  --accent-deep-rgb: 20 177 162;
  --surface-glint-rgb: 140 240 228;
  --silver: #8cf0e4;
  --steel: #7eb0a8;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

html[data-theme="obsidian"] {
  color-scheme: dark;
  --bg: #050505;
  --bg-2: #1a1d22;
  --ink: #f2f6ff;
  --soft: #d4dcf2;
  --muted: #8f9bb8;
  --panel: rgba(17, 19, 23, 0.97);
  --panel-solid: rgba(23, 25, 31, 0.95);
  --panel-2: rgba(14, 16, 20, 0.95);
  --line: rgba(120, 130, 158, 0.24);
  --line-strong: rgba(161, 173, 210, 0.5);
  --red: #7f8fd6;
  --red-2: #5b6cb2;
  --accent-rgb: 127 143 214;
  --accent-strong-rgb: 184 197 255;
  --accent-deep-rgb: 91 108 178;
  --surface-glint-rgb: 184 197 255;
  --silver: #b8c5ff;
  --steel: #8f9bb8;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

html[data-theme="cobalt"] {
  color-scheme: dark;
  --bg: #02060f;
  --bg-2: #0f2452;
  --ink: #ebf7ff;
  --soft: #c9e3f7;
  --muted: #83a9ca;
  --panel: rgba(8, 18, 40, 0.97);
  --panel-solid: rgba(10, 24, 50, 0.95);
  --panel-2: rgba(7, 16, 36, 0.95);
  --line: rgba(96, 165, 250, 0.26);
  --line-strong: rgba(125, 211, 252, 0.56);
  --red: #2563eb;
  --red-2: #1d4ed8;
  --accent-rgb: 37 99 235;
  --accent-strong-rgb: 125 211 252;
  --accent-deep-rgb: 29 78 216;
  --surface-glint-rgb: 125 211 252;
  --silver: #7dd3fc;
  --steel: #83a9ca;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

html[data-theme="sunset"] {
  color-scheme: dark;
  --bg: #120302;
  --bg-2: #3b1a15;
  --ink: #fff1e9;
  --soft: #f2cdbc;
  --muted: #c58f77;
  --panel: rgba(36, 14, 11, 0.97);
  --panel-solid: rgba(47, 18, 14, 0.95);
  --panel-2: rgba(30, 12, 9, 0.95);
  --line: rgba(251, 146, 60, 0.26);
  --line-strong: rgba(253, 186, 116, 0.54);
  --red: #fb923c;
  --red-2: #f97316;
  --accent-rgb: 251 146 60;
  --accent-strong-rgb: 253 186 116;
  --accent-deep-rgb: 249 115 22;
  --surface-glint-rgb: 253 186 116;
  --silver: #fdba74;
  --steel: #c58f77;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

html[data-theme="rose"] {
  color-scheme: dark;
  --bg: #12030c;
  --bg-2: #3a1230;
  --ink: #fff0f8;
  --soft: #f4cce0;
  --muted: #c58ba7;
  --panel: rgba(36, 12, 30, 0.97);
  --panel-solid: rgba(46, 15, 39, 0.95);
  --panel-2: rgba(30, 10, 24, 0.95);
  --line: rgba(244, 114, 182, 0.28);
  --line-strong: rgba(251, 113, 133, 0.56);
  --red: #ec4899;
  --red-2: #db2777;
  --accent-rgb: 236 72 153;
  --accent-strong-rgb: 244 114 182;
  --accent-deep-rgb: 219 39 119;
  --surface-glint-rgb: 244 114 182;
  --silver: #f472b6;
  --steel: #c58ba7;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

html[data-theme="amber"] {
  color-scheme: dark;
  --bg: #120b01;
  --bg-2: #3d2a08;
  --ink: #fff8e5;
  --soft: #ebd7a8;
  --muted: #b8a06b;
  --panel: rgba(38, 25, 8, 0.97);
  --panel-solid: rgba(48, 32, 10, 0.95);
  --panel-2: rgba(31, 21, 7, 0.95);
  --line: rgba(245, 158, 11, 0.27);
  --line-strong: rgba(253, 224, 71, 0.58);
  --red: #f59e0b;
  --red-2: #d97706;
  --accent-rgb: 245 158 11;
  --accent-strong-rgb: 253 224 71;
  --accent-deep-rgb: 217 119 6;
  --surface-glint-rgb: 253 224 71;
  --silver: #fde047;
  --steel: #b8a06b;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

html[data-theme="arctic"] {
  color-scheme: dark;
  --bg: #010a0d;
  --bg-2: #12303b;
  --ink: #ecfeff;
  --soft: #c5e9f2;
  --muted: #83b2bd;
  --panel: rgba(8, 24, 30, 0.97);
  --panel-solid: rgba(11, 30, 38, 0.95);
  --panel-2: rgba(7, 20, 25, 0.95);
  --line: rgba(103, 232, 249, 0.27);
  --line-strong: rgba(186, 230, 253, 0.56);
  --red: #22d3ee;
  --red-2: #0891b2;
  --accent-rgb: 34 211 238;
  --accent-strong-rgb: 103 232 249;
  --accent-deep-rgb: 8 145 178;
  --surface-glint-rgb: 103 232 249;
  --silver: #67e8f9;
  --steel: #83b2bd;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

html[data-theme="lime"] {
  color-scheme: dark;
  --bg: #040b01;
  --bg-2: #21360f;
  --ink: #f7ffe7;
  --soft: #d5edaf;
  --muted: #98ba6a;
  --panel: rgba(17, 30, 9, 0.97);
  --panel-solid: rgba(22, 39, 11, 0.95);
  --panel-2: rgba(15, 26, 8, 0.95);
  --line: rgba(163, 230, 53, 0.28);
  --line-strong: rgba(190, 242, 100, 0.58);
  --red: #84cc16;
  --red-2: #65a30d;
  --accent-rgb: 132 204 22;
  --accent-strong-rgb: 190 242 100;
  --accent-deep-rgb: 101 163 13;
  --surface-glint-rgb: 190 242 100;
  --silver: #bef264;
  --steel: #98ba6a;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

html[data-theme="green"] {
  color-scheme: dark;
  --bg: #020906;
  --bg-2: #0d2c1e;
  --ink: #ecfdf5;
  --soft: #c7f3d8;
  --muted: #86b79a;
  --panel: rgba(8, 26, 17, 0.97);
  --panel-solid: rgba(10, 34, 22, 0.95);
  --panel-2: rgba(6, 22, 15, 0.95);
  --line: rgba(52, 211, 153, 0.27);
  --line-strong: rgba(134, 239, 172, 0.54);
  --red: #10b981;
  --red-2: #047857;
  --accent-rgb: 16 185 129;
  --accent-strong-rgb: 52 211 153;
  --accent-deep-rgb: 4 120 87;
  --surface-glint-rgb: 52 211 153;
  --silver: #34d399;
  --steel: #86b79a;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

html[data-theme="crimson"] {
  color-scheme: dark;
  --bg: #110103;
  --bg-2: #3b101b;
  --ink: #fff0f2;
  --soft: #f1c7cf;
  --muted: #c08b97;
  --panel: rgba(36, 10, 15, 0.97);
  --panel-solid: rgba(45, 13, 20, 0.95);
  --panel-2: rgba(29, 8, 12, 0.95);
  --line: rgba(248, 113, 113, 0.27);
  --line-strong: rgba(251, 113, 133, 0.56);
  --red: #ef4444;
  --red-2: #b91c1c;
  --accent-rgb: 239 68 68;
  --accent-strong-rgb: 251 113 133;
  --accent-deep-rgb: 185 28 28;
  --surface-glint-rgb: 251 113 133;
  --silver: #fb7185;
  --steel: #c08b97;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgb(var(--accent-rgb) / 0.14), transparent 330px),
    linear-gradient(140deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: "RubikVar", Inter, ui-sans-serif, system-ui, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76), transparent 82%);
}

html[data-theme="light"] body::before {
  background:
    linear-gradient(90deg, rgb(var(--accent-deep-rgb) / 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 24, 32, 0.045) 1px, transparent 1px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-news-ticker {
  min-height: 44px;
  margin: 18px auto 0;
  padding: 6px 8px 6px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgb(var(--accent-rgb) / 0.35);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgb(var(--accent-rgb) / 0.18), rgb(var(--surface-glint-rgb) / 0.05)),
    var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(118%);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
}

.nav-news-track {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.nav-news-track > i {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.nav-news-marquee {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 720;
  mask-image: linear-gradient(90deg, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
}

.nav-news-marquee-track {
  display: flex;
  width: max-content;
  animation: nav-news-scroll 32s linear infinite;
  will-change: transform;
}

.nav-news-marquee-track span {
  display: inline-block;
  flex: 0 0 auto;
  padding-inline-end: 80px;
}

.nav-news-action {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgb(var(--accent-rgb) / 0.45);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: rgb(var(--accent-rgb) / 0.18);
  font-size: 0.84rem;
  font-weight: 780;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-news-action:hover {
  border-color: rgb(var(--accent-rgb) / 0.75);
  background: rgb(var(--accent-rgb) / 0.28);
  transform: translateY(-1px);
}

@keyframes nav-news-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.nav {
  min-height: 78px;
  margin: 12px auto 0;
  padding: 10px 12px;
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgb(var(--accent-rgb) / 0.1), rgb(var(--surface-glint-rgb) / 0.04)),
    var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(118%);
}

.brand {
  min-width: 0;
  max-width: 100%;
  min-height: 50px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: 0 12px 30px rgb(var(--accent-rgb) / 0.25);
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-name {
  font-family: "Exo2Var", sans-serif;
  font-size: 0.94rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle,
.lang-title,
.footer span,
p {
  color: var(--muted);
}

.brand-subtitle,
.lang-title {
  font-size: 0.78rem;
}

.nav-links {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.nav-links a,
.auth-action,
.theme-toggle,
.lang-trigger {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-links a span,
.theme-toggle span,
.lang-trigger span {
  min-width: 0;
}

.nav-links a:hover,
.nav-links a.is-active,
.auth-action:hover,
.theme-toggle:hover,
.lang-trigger:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgb(var(--accent-rgb) / 0.12);
}

.auth-action.is-authenticated {
  color: var(--ink);
  background: rgb(var(--accent-rgb) / 0.12);
}

.nav-tools {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.theme-toggle,
.auth-action,
.lang-trigger,
.theme-option,
.lang-option {
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.theme-wrap,
.lang-wrap {
  position: relative;
}

.theme-toggle,
.lang-trigger {
  color: var(--ink);
}

.lang-flag {
  width: 1.25em;
  height: 0.92em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--line);
  flex: 0 0 auto;
}

.theme-palette,
.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.theme-palette {
  width: 250px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
}

.theme-palette[aria-hidden="true"],
.lang-dropdown[aria-hidden="true"] {
  display: none;
}

.theme-title,
.lang-title {
  margin: 2px 6px 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.theme-option,
.lang-option {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border-color: transparent;
  border-radius: 8px;
  color: var(--ink);
  text-align: start;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-option:hover,
.theme-option.is-active,
.lang-option:hover,
.lang-option.is-active {
  background: rgb(var(--accent-rgb) / 0.12);
}

.theme-swatch {
  width: 26px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(135deg, var(--swatch-a), var(--swatch-b));
  box-shadow: inset 0 0 0 1px rgb(var(--surface-glint-rgb) / 0.08);
}

main {
  display: grid;
  gap: 34px;
  padding: 28px 0 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Exo2Var", sans-serif;
}

h1 {
  max-width: 790px;
  font-size: 4.7rem;
  line-height: 0.98;
  font-weight: 830;
  text-wrap: balance;
}

h2 {
  font-size: 2.85rem;
  line-height: 1.04;
  font-weight: 790;
  text-wrap: balance;
}

h3 {
  font-size: 1.06rem;
}

p {
  line-height: 1.7;
}

.hero-command {
  min-height: calc(100vh - 124px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.58fr);
  grid-template-rows: 1fr auto;
  gap: 18px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(7, 7, 8, 0.82), rgba(34, 9, 12, 0.66)),
    var(--panel);
  box-shadow: var(--shadow);
}

html[data-theme="light"] .hero-command {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 239, 241, 0.78)),
    var(--panel);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.95) 0%, rgba(5, 5, 6, 0.7) 54%, rgba(5, 5, 6, 0.9) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.12), rgba(5, 5, 6, 0.88));
}

html[data-theme="light"] .hero-bg::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.76) 54%, rgba(255, 255, 255, 0.9) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.9));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.hero-copy,
.hero-emblem,
.hero-strip {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  padding: 46px 0 32px;
}

.hero-copy p {
  max-width: 650px;
  margin-top: 20px;
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Exo2Var", sans-serif;
  font-weight: 780;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.btn.primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--red), var(--red-2));
  color: #ffffff;
  box-shadow: 0 18px 42px rgb(var(--accent-rgb) / 0.24);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

html[data-theme="light"] .btn.secondary {
  background: rgb(var(--accent-rgb) / 0.08);
}

.hero-emblem {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 18px;
  background: rgba(8, 8, 10, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

html[data-theme="light"] .hero-emblem {
  background: rgba(255, 255, 255, 0.76);
}

.hero-emblem img {
  width: min(100%, 280px);
  aspect-ratio: 1;
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgb(var(--accent-rgb) / 0.22));
}

.hero-emblem div {
  display: grid;
  gap: 6px;
}

.hero-emblem strong {
  font-family: "Exo2Var", sans-serif;
  font-size: 1.22rem;
}

.hero-emblem span,
.hero-strip span,
.module-grid article > span,
.flow-list article > span,
.control-stack span {
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-strip div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  align-content: end;
  background: rgba(12, 12, 14, 0.74);
  backdrop-filter: blur(10px);
}

html[data-theme="light"] .hero-strip div {
  background: rgba(255, 255, 255, 0.72);
}

.hero-strip i {
  color: var(--red);
}

.section-block,
.workflow-section,
.control-board,
.final-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.section-head {
  max-width: 830px;
  margin-bottom: 22px;
}

.section-head p {
  max-width: 720px;
  margin-top: 12px;
}

.section-head.compact {
  margin-bottom: 18px;
}

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

.module-grid article {
  min-height: 252px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  background:
    linear-gradient(160deg, rgb(var(--accent-rgb) / 0.09), transparent 44%),
    rgba(255, 255, 255, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.module-grid article:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background:
    linear-gradient(160deg, rgb(var(--surface-glint-rgb) / 0.1), transparent 44%),
    rgb(var(--accent-rgb) / 0.06);
}

.module-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgb(var(--accent-rgb) / 0.28);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: rgb(var(--accent-rgb) / 0.12);
}

.module-grid article > span {
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 760;
}

.module-grid p {
  margin-top: 10px;
}

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

.flow-list article {
  min-height: 198px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.032);
}

.flow-list article > span {
  width: 42px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--red);
  font-weight: 860;
}

.flow-list p {
  margin-top: 8px;
}

.control-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.8fr);
  gap: 24px;
  align-items: center;
}

.control-copy p,
.final-panel p {
  max-width: 700px;
  margin-top: 14px;
}

.control-stack {
  display: grid;
  gap: 10px;
}

.control-stack article {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.035);
}

.control-stack i {
  grid-row: span 2;
  color: var(--red);
}

.control-stack strong {
  font-family: "Exo2Var", sans-serif;
}

.final-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  background:
    linear-gradient(120deg, rgb(var(--accent-rgb) / 0.12), rgb(var(--surface-glint-rgb) / 0.06)),
    var(--panel);
}

.dashboard-page main {
  gap: 20px;
}

.dashboard-hero,
.dashboard-panel,
.stat-tile,
.workspace-sidebar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.dashboard-hero {
  min-height: 238px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  background:
    linear-gradient(120deg, rgb(var(--accent-rgb) / 0.16), transparent 52%),
    linear-gradient(180deg, rgb(var(--surface-glint-rgb) / 0.07), transparent),
    var(--panel);
  overflow: hidden;
}

.dashboard-hero-main {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.dashboard-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.dashboard-avatar {
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  background: var(--panel-solid);
  box-shadow: 0 16px 38px rgb(var(--accent-rgb) / 0.22);
}

.dashboard-identity h1 {
  font-size: 3.4rem;
}

.dashboard-identity p {
  margin-top: 6px;
  font-size: 1.03rem;
}

.dashboard-identity strong {
  color: var(--ink);
}

.discord-handle {
  margin-top: 8px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics > span,
.hero-metric {
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.hero-metrics > span > span,
.hero-metric > span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-metrics strong,
.hero-metric strong {
  color: var(--ink);
  font-family: "Exo2Var", sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

.dashboard-status {
  min-width: 230px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-status > span {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-status strong {
  color: var(--ink);
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.workspace-sidebar {
  position: sticky;
  top: 110px;
  padding: 10px;
  display: grid;
  gap: 12px;
}

.sidebar-zone {
  display: grid;
  gap: 7px;
}

.sidebar-zone + .sidebar-zone {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.sidebar-zone-title {
  padding: 0 8px;
  color: var(--muted);
  font-family: "Exo2Var", sans-serif;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace-tab {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  background: transparent;
  text-align: start;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.workspace-tab i {
  width: 20px;
  color: var(--red);
  text-align: center;
}

.workspace-tab:hover,
.workspace-tab.is-active {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgb(var(--accent-rgb) / 0.12);
}

.workspace-content,
.workspace-section {
  min-width: 0;
}

.workspace-section {
  display: none;
}

.workspace-section.is-active {
  display: grid;
  gap: 16px;
}

.status-pill {
  width: max-content;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Exo2Var", sans-serif;
  font-weight: 780;
  text-transform: capitalize;
}

.status-pill i,
.stat-tile i,
.setup-icon,
.empty-state i {
  color: var(--red);
}

.status-pill.is-good {
  border-color: rgba(64, 214, 132, 0.34);
  color: #74e1a3;
  background: rgba(64, 214, 132, 0.1);
}

.status-pill.is-warn {
  border-color: rgba(255, 191, 71, 0.34);
  color: #ffc66d;
  background: rgba(255, 191, 71, 0.1);
}

.status-pill.is-neutral {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

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

.section-title-row {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.section-title-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.stat-tile {
  min-height: 124px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(150deg, rgb(var(--accent-rgb) / 0.09), transparent 52%),
    rgba(255, 255, 255, 0.035);
}

.stat-tile span,
.activity-list time,
.setup-row > span {
  color: var(--muted);
  font-size: 0.84rem;
}

.stat-tile strong {
  margin-top: 8px;
  display: block;
  font-family: "Exo2Var", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.stat-tile i {
  width: 42px;
  height: 42px;
  border: 1px solid rgb(var(--accent-rgb) / 0.28);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgb(var(--accent-rgb) / 0.1);
}

.stat-tile.is-good {
  border-color: rgba(64, 214, 132, 0.26);
}

.stat-tile.is-warn {
  border-color: rgba(255, 191, 71, 0.26);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(320px, 0.64fr);
  gap: 16px;
  align-items: start;
}

.dashboard-panel {
  padding: 20px;
}

.support-limit-panel {
  margin-bottom: 16px;
  border-color: rgba(255, 191, 71, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 191, 71, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.support-limit-panel.is-eligible {
  border-color: rgba(64, 214, 132, 0.26);
  background:
    linear-gradient(135deg, rgba(64, 214, 132, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.support-limit-panel .panel-head {
  align-items: flex-start;
}

.support-limit-panel h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.support-limit-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.support-limit-metrics article {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.support-limit-metrics article.is-primary {
  border-color: rgba(255, 191, 71, 0.32);
  background: rgba(255, 191, 71, 0.08);
}

.support-limit-panel.is-eligible .support-limit-metrics article.is-primary {
  border-color: rgba(64, 214, 132, 0.32);
  background: rgba(64, 214, 132, 0.08);
}

.support-limit-state.is-eligible {
  border-color: rgba(64, 214, 132, 0.38);
  color: rgb(164, 244, 193);
  background: rgba(64, 214, 132, 0.1);
}

.support-limit-state.is-limited {
  border-color: rgba(255, 191, 71, 0.36);
  color: rgb(255, 221, 157);
  background: rgba(255, 191, 71, 0.1);
}

.support-limit-metrics strong {
  color: var(--ink);
  font-family: "Exo2Var", sans-serif;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 0.95;
}

.support-limit-metrics small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
}

.data-panel {
  display: grid;
  gap: 14px;
}

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

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

.extension-download-list {
  display: grid;
  gap: 14px;
}

.extension-download-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.026);
}

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

.extension-download-card-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.extension-download-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.extension-download-card-head > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.data-card,
.download-meta-card,
.streamer-data-row,
.support-total {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.data-card,
.download-meta-card {
  min-height: 126px;
  padding: 16px;
  display: grid;
  gap: 16px;
}

.data-card strong,
.download-meta-card strong,
.streamer-data-row strong,
.support-total strong {
  color: var(--ink);
}

.data-card span,
.download-meta-card span,
.streamer-data-row span,
.streamer-data-row time,
.support-total span {
  color: var(--muted);
}

.download-meta-card {
  min-height: 98px;
  align-content: space-between;
  min-width: 0;
}

.download-meta-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.extension-download-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.extension-download-form p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.data-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.queue-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.streamers-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 12px;
  align-items: center;
}

.streamers-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.streamers-counters span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 2px;
}

.streamers-counters strong {
  color: var(--ink);
  font-family: "Exo2Var", sans-serif;
  font-size: 1.16rem;
}

.streamers-counters small {
  color: var(--muted);
}

.streamers-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.streamers-search label {
  display: block;
  min-width: 0;
  margin: 0;
}

.streamers-search input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.streamers-search input::placeholder {
  color: var(--muted);
  opacity: 0.84;
}

.streamers-search input:focus {
  border-color: rgb(var(--accent-rgb) / 0.58);
  background: rgba(255, 255, 255, 0.075);
  outline: none;
}

.streamers-search .btn {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.streamers-search .btn i {
  font-size: 1.05rem;
}

.staff-hero {
  min-height: 214px;
}

.staff-panel {
  padding: 20px;
  display: grid;
  gap: 18px;
}

.is-staff-loading .staff-panel {
  opacity: 0.78;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading p {
  max-width: 760px;
  margin-top: 5px;
  color: var(--muted);
}

.staff-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.staff-search label {
  min-width: 0;
}

.staff-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
}

.staff-search input:focus {
  border-color: rgb(var(--accent-rgb) / 0.74);
  outline: none;
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.14);
}

.owner-create-user {
  padding: 14px;
  border: 1px solid rgb(var(--accent-rgb) / 0.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgb(var(--accent-rgb) / 0.12), transparent 48%),
    rgba(255, 255, 255, 0.025);
}

.owner-create-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.owner-create-head h3 {
  font-size: 1rem;
}

.owner-create-head p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.staff-counters,
.staff-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.staff-counters > span,
.staff-detail-grid > article {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.035);
}

.staff-counters strong,
.staff-detail-grid strong {
  color: var(--ink);
  font-family: "Exo2Var", sans-serif;
  font-size: 1.28rem;
  line-height: 1;
}

.staff-counters small,
.staff-detail-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.staff-user-list {
  display: grid;
  gap: 8px;
}

.staff-user-row {
  min-width: 0;
  width: 100%;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 44px minmax(180px, 1fr) auto auto 92px 82px 68px;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.026);
  font: inherit;
  text-decoration: none;
  text-align: start;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.staff-user-row:hover,
.staff-user-row.is-active {
  border-color: rgb(var(--accent-rgb) / 0.48);
  background: rgb(var(--accent-rgb) / 0.1);
}

.staff-user-row:focus-visible {
  border-color: rgb(var(--accent-rgb) / 0.72);
  outline: none;
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.14);
}

.staff-user-row img,
.staff-selected-head img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-solid);
}

.staff-user-main,
.staff-points {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.staff-user-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-user-main small,
.staff-points small,
.muted-text {
  color: var(--muted);
}

.staff-points strong {
  font-family: "Exo2Var", sans-serif;
}

.staff-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.staff-selected-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.staff-selected-head img {
  width: 64px;
  height: 64px;
}

.staff-selected-head h2 {
  font-size: 1.8rem;
}

.staff-selected-head p,
.staff-selected-head span {
  display: block;
  color: var(--muted);
}

.staff-detail-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.staff-settings-grid {
  align-items: start;
}

.staff-json-form textarea {
  min-height: 280px;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.84rem;
  white-space: pre;
  overflow: auto;
}

.staff-edit-form {
  align-content: start;
}

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

.checkbox-grid label {
  min-height: 58px;
  padding: 11px 12px 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    linear-gradient(145deg, rgba(255, 48, 67, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.checkbox-grid label:hover {
  border-color: rgba(255, 48, 67, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 48, 67, 0.14), transparent 56%),
    rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.checkbox-grid label span {
  min-width: 0;
  font-weight: 800;
  line-height: 1.25;
}

.checkbox-grid input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  order: 2;
  width: 42px;
  min-width: 42px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.checkbox-grid input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-50%);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.checkbox-grid input[type="checkbox"]:checked {
  border-color: rgba(255, 48, 67, 0.74);
  background: linear-gradient(135deg, var(--red), #b61225);
  box-shadow: 0 0 18px rgba(255, 48, 67, 0.22);
}

.checkbox-grid input[type="checkbox"]:checked::before {
  background: #fff;
  transform: translate(18px, -50%);
}

.checkbox-grid input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(255, 48, 67, 0.72);
  outline-offset: 3px;
}

.staff-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.staff-note-grid p {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  line-height: 1.45;
}

.staff-note-grid strong {
  color: var(--ink);
}

.staff-data-block {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.staff-data-block h3 {
  font-size: 1rem;
}

.support-events-block,
.current-tabs-block,
.audit-history-block {
  align-content: start;
}

.staff-data-scroll {
  max-height: 320px;
  padding-right: 4px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 48, 67, 0.62) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.current-tabs-scroll {
  max-height: 280px;
}

.support-events-scroll,
.audit-history-scroll {
  max-height: 360px;
}

.staff-data-scroll::-webkit-scrollbar {
  width: 8px;
}

.staff-data-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.staff-data-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red), rgba(255, 48, 67, 0.45));
}

.staff-data-row {
  min-width: 0;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.staff-data-row span {
  min-width: 0;
}

.staff-data-row strong,
.staff-data-row small {
  display: block;
}

.staff-data-row strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-data-row small {
  color: var(--muted);
}

.streamer-data-row {
  min-height: 72px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(150px, auto) minmax(320px, 1fr) minmax(132px, auto);
  gap: 12px;
  align-items: center;
}

.streamer-data-person,
.streamer-data-metrics span,
.streamer-data-last {
  min-width: 0;
}

.streamer-data-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.streamer-data-person img {
  width: 38px;
  height: 38px;
  border: 1px solid rgb(var(--accent-rgb) / 0.35);
  border-radius: 8px;
  object-fit: cover;
  background: rgb(var(--accent-rgb) / 0.12);
}

.streamer-data-person > div,
.streamer-data-last {
  display: grid;
  gap: 2px;
}

.streamer-data-person strong,
.streamer-data-person span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streamer-data-states {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.streamer-data-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 8px;
}

.streamer-data-metrics span {
  display: grid;
  gap: 2px;
}

.streamer-data-metrics strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streamer-data-row small,
.streamer-data-last small {
  color: var(--muted);
  font-size: 0.75rem;
}

.data-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.data-pagination.is-numeric {
  justify-content: space-between;
  gap: 6px;
  width: max-content;
  margin-left: auto;
}

.page-number,
.page-arrow,
.page-ellipsis {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 800;
}

.page-number:hover,
.page-arrow:hover,
.page-number.is-active {
  color: var(--ink);
  border-color: rgb(var(--accent-rgb) / 0.48);
  background: rgb(var(--accent-rgb) / 0.16);
}

.page-arrow.is-disabled,
.page-ellipsis {
  pointer-events: none;
  opacity: 0.48;
}

.support-total {
  min-height: 150px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
  gap: 16px;
  align-items: center;
  text-align: center;
}

.support-total-main {
  display: grid;
  gap: 8px;
  place-items: center;
}

.support-total strong,
.support-total-main strong {
  font-family: "Exo2Var", sans-serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
}

.support-breakdown {
  display: grid;
  gap: 10px;
}

.support-breakdown span {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
}

.support-breakdown strong {
  font-size: 1.25rem;
}

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

.panel-head h2 {
  font-size: 1.85rem;
}

.panel-head p {
  max-width: 760px;
  margin-top: 8px;
  font-size: 0.95rem;
}

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

.setup-row {
  min-height: 94px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.032);
}

.setup-row.is-good {
  border-color: rgba(64, 214, 132, 0.24);
}

.setup-row.is-warn {
  border-color: rgba(255, 191, 71, 0.24);
}

.setup-row.is-obscured {
  position: relative;
  overflow: hidden;
}

.setup-row.is-obscured::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 18, 22, 0.18), rgba(255, 255, 255, 0.04), rgba(17, 18, 22, 0.18)),
    rgba(17, 18, 22, 0.18);
  pointer-events: none;
}

.setup-row.is-obscured .setup-icon,
.setup-row.is-obscured h3,
.setup-row.is-obscured p,
.setup-row.is-obscured > span {
  filter: blur(3px);
  user-select: none;
}

.setup-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgb(var(--accent-rgb) / 0.26);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgb(var(--accent-rgb) / 0.1);
}

.setup-row h3 {
  font-size: 1rem;
}

.setup-row p {
  margin-top: 5px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.setup-row > span {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

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

.activity-list article {
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.032);
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / 0.12);
}

.activity-list strong,
.activity-list time {
  display: block;
}

.activity-list time {
  margin-top: 4px;
}

.empty-state {
  min-height: 238px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
}

.empty-state strong {
  color: var(--ink);
}

.editor-panel {
  min-height: 520px;
}

.access-denied-panel {
  min-height: 260px;
  padding: 22px;
  border: 1px solid rgba(255, 191, 71, 0.3);
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(140deg, rgba(255, 191, 71, 0.11), rgb(var(--accent-rgb) / 0.07)),
    rgba(255, 255, 255, 0.025);
}

.access-denied-panel i {
  width: 48px;
  height: 48px;
  border: 1px solid rgb(var(--accent-rgb) / 0.3);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: rgb(var(--accent-rgb) / 0.1);
}

.access-denied-panel strong {
  color: var(--ink);
  font-family: "Exo2Var", sans-serif;
  font-size: 1.12rem;
}

.access-denied-panel p {
  max-width: 560px;
  font-size: 0.95rem;
}

.draft-state {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  white-space: nowrap;
}

.settings-form {
  display: grid;
  gap: 14px;
}

.form-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.form-section h3 {
  font-size: 1rem;
}

.settings-form label {
  display: grid;
  gap: 8px;
}

.settings-form label.kick-profile-url-field {
  justify-self: start;
  width: min(100%, 430px);
  max-width: 430px;
}

.settings-form label.kick-profile-url-field .field-label-row,
.settings-form label.kick-profile-url-field input[name="kickProfileUrl"] {
  max-width: 430px;
}

.settings-form label > span {
  color: var(--soft);
  font-family: "Exo2Var", sans-serif;
  font-size: 0.92rem;
  font-weight: 760;
}

.field-help {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.field-help-link {
  color: rgb(var(--field-help-link-rgb));
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.field-help-link:hover,
.field-help-link:focus-visible {
  color: var(--ink);
  background: rgb(var(--field-help-link-rgb) / 0.16);
  border-radius: 4px;
  outline: none;
}

.field-label-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
}

.help-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid rgb(var(--accent-rgb) / 0.56);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  background: rgb(var(--accent-rgb) / 0.18);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.help-mark::after {
  content: attr(data-help);
  position: absolute;
  left: -1px;
  top: calc(100% + 9px);
  z-index: 25;
  width: min(330px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid rgb(var(--accent-rgb) / 0.34);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel-solid);
  box-shadow: var(--shadow-soft);
  font-family: "Inter", sans-serif;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
  visibility: hidden;
}

.help-mark:hover,
.help-mark:focus-visible {
  border-color: rgb(var(--accent-rgb) / 0.9);
  background: rgb(var(--accent-rgb) / 0.3);
  outline: none;
}

.help-mark:hover::after,
.help-mark:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.settings-form input,
.settings-form select,
.settings-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.field-label-row.field-label-help {
  display: flex;
  width: 100%;
}

.field-quota {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 43, 63, 0.45);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 43, 63, 0.08);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.secret-field {
  position: relative;
  display: grid;
}

.secret-field input {
  padding-right: 48px;
  font-family: "Inter", sans-serif;
}

.secret-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-50%);
  cursor: pointer;
}

.secret-toggle:hover,
.secret-toggle:focus-visible {
  color: var(--ink);
  border-color: rgb(var(--accent-rgb) / 0.46);
  background: rgb(var(--accent-rgb) / 0.12);
  outline: none;
}

.settings-form select {
  color-scheme: dark;
  background-color: #202126;
}

.settings-form select option {
  color: #f7f8fa;
  background-color: #202126;
}

.settings-form select option:checked {
  color: #ffffff;
  background-color: #9f1019;
}

.settings-form select option:disabled {
  color: #777d87;
  background-color: #202126;
}

html[data-theme="light"] .settings-form select {
  color-scheme: light;
  background-color: #ffffff;
}

html[data-theme="light"] .settings-form select option {
  color: #15171c;
  background-color: #ffffff;
}

html[data-theme="light"] .settings-form select option:checked {
  color: #ffffff;
  background-color: #c91420;
}

html[data-theme="light"] .settings-form select option:disabled {
  color: #8d95a0;
  background-color: #ffffff;
}

.settings-form textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.55;
}

.range-field input {
  min-height: 24px;
  padding: 0;
  accent-color: var(--red);
}

.range-field output {
  color: var(--muted);
  font-size: 0.86rem;
}

.range-field.is-disabled {
  opacity: 0.55;
}

.range-field.is-disabled output::after {
  content: " · Not available for this chat mode";
}

.tag-field {
  align-content: start;
}

.tag-field.is-wide {
  grid-column: 1 / -1;
}

.tag-editor {
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.tag-list {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: flex-start;
}

.tag-chip {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgb(var(--accent-rgb) / 0.28);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  background: rgb(var(--accent-rgb) / 0.12);
}

.tag-remove {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.tag-remove:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
}

.tag-remove i {
  color: var(--muted);
  font-size: 0.76rem;
}

.tag-editor input {
  min-height: 38px;
  padding: 7px 8px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.tag-editor input:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  box-shadow: 0 0 0 2px rgb(var(--accent-rgb) / 0.16);
}

.settings-form select {
  cursor: pointer;
}

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

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

.toggle-list label {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.032);
}

.toggle-list input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--red);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(360px, calc(100% - 36px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(64, 214, 132, 0.34);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(64, 214, 132, 0.14), rgba(255, 255, 255, 0.04)),
    var(--panel-solid);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast i {
  color: #74e1a3;
}

.toast.is-error {
  border-color: rgba(255, 191, 71, 0.38);
  background:
    linear-gradient(120deg, rgba(255, 191, 71, 0.16), rgba(255, 255, 255, 0.04)),
    var(--panel-solid);
}

.toast.is-error i {
  color: #ffc66d;
}

.toast.is-warning {
  border-color: rgba(255, 191, 71, 0.38);
  background:
    linear-gradient(120deg, rgba(255, 191, 71, 0.16), rgba(255, 255, 255, 0.04)),
    var(--panel-solid);
}

.toast.is-warning i {
  color: #ffc66d;
}

.footer {
  min-height: 118px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    radial-gradient(circle at 28px 24px, rgb(var(--accent-rgb) / 0.18), transparent 168px),
    linear-gradient(120deg, rgb(var(--accent-rgb) / 0.06), transparent 48%),
    rgba(255, 255, 255, 0.026);
  box-shadow: 0 -18px 54px rgba(0, 0, 0, 0.22);
}

.footer-top {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.footer-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-solid);
  flex-shrink: 0;
}

.footer-brand div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.footer strong {
  color: var(--ink);
  font-family: "Exo2Var", sans-serif;
  font-size: 1.02rem;
  line-height: 1;
}

.footer-brand span {
  color: var(--muted);
  line-height: 1.35;
}

.footer-actions {
  margin-left: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 18px;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.footer-meta > span {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.86rem;
  white-space: nowrap;
}

.footer-meta i {
  color: var(--red);
}

.footer-social-block {
  padding-left: 18px;
  gap: 8px;
  border-left: 1px solid var(--line);
  display: grid;
  justify-items: end;
}

.footer-social-title {
  color: var(--muted);
  font-family: "Exo2Var", sans-serif;
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--ink);
  border-color: rgb(var(--accent-rgb) / 0.5);
  background: rgb(var(--accent-rgb) / 0.13);
  outline: none;
  transform: translateY(-1px);
}

.footer-socials i {
  color: inherit;
}

.footer-year {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-year > .footer-copy {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.86rem;
  white-space: nowrap;
}

.footer-year #year {
  all: unset;
  display: inline;
  color: inherit;
  font: inherit;
}

@media (max-width: 900px) {
  .footer-top {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .footer-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-social-block {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .footer {
    text-align: center;
  }

  .footer-brand {
    width: 100%;
    justify-content: center;
    flex-direction: column;
  }

  .footer-actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .footer-meta,
  .footer-social-block,
  .footer-socials {
    justify-content: center;
    justify-items: center;
  }

  .footer-social-block {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer-year > .footer-copy {
    white-space: normal;
    text-align: center;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 360ms ease, transform 360ms ease;
}

html[dir="rtl"] body {
  font-family: "NotoArabic", "RubikVar", sans-serif;
}

html[dir="rtl"] .lang-dropdown {
  left: 0;
  right: auto;
}

html[dir="rtl"] .theme-palette {
  left: 0;
  right: auto;
}

@media (max-width: 1080px) {
  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  .hero-command,
  .control-board,
  .dashboard-hero,
  .dashboard-grid,
  .dashboard-workspace {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
  }

  .sidebar-zone {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sidebar-zone-title {
    grid-column: 1 / -1;
  }

  .workspace-tab {
    min-height: 54px;
    padding: 0 8px;
    justify-content: center;
    text-align: center;
  }

  .hero-copy {
    padding-top: 24px;
  }

  .module-grid,
  .flow-list,
  .hero-strip,
  .dashboard-summary,
  .support-limit-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics,
  .data-card-grid,
  .download-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .streamer-data-row,
  .support-total {
    grid-template-columns: 1fr;
  }

  .streamers-toolbar {
    grid-template-columns: 1fr;
  }

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

  .staff-user-row {
    grid-template-columns: 44px minmax(180px, 1fr) auto auto;
  }

  .staff-user-row .staff-points {
    display: none;
  }

  .staff-data-columns,
  .staff-settings-grid {
    grid-template-columns: 1fr;
  }

  .staff-detail-grid,
  .staff-detail-grid.compact,
  .staff-counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-note-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .page-shell {
    width: min(100% - 24px, 1240px);
  }

  .nav-news-ticker {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
  }

  .nav-news-marquee {
    font-size: 0.84rem;
  }

  .nav-news-action {
    width: 100%;
    min-height: 36px;
  }

  .nav {
    min-height: auto;
    margin-top: 12px;
    padding: 8px;
    position: sticky;
    top: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand tools"
      "links links";
    gap: 8px;
  }

  .brand {
    grid-area: brand;
    min-height: 44px;
    padding: 4px 8px 4px 4px;
    gap: 9px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    max-width: 46vw;
    font-size: 0.82rem;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-tools {
    grid-area: tools;
    justify-self: end;
    gap: 6px;
  }

  .theme-toggle,
  .auth-action,
  .lang-trigger {
    min-width: 40px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }

  .theme-toggle span,
  .auth-action span,
  .lang-trigger .lang-current {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .lang-trigger {
    gap: 0;
  }

  .lang-trigger .lang-flag {
    width: 1.35em;
    height: 1em;
  }

  .lang-trigger .fa-chevron-down {
    display: none;
  }

  .theme-palette,
  .lang-dropdown {
    width: min(82vw, 280px);
    right: 0;
  }

  .theme-palette {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100dvh - 96px);
  }

  html[dir="rtl"] .theme-palette {
    left: 12px;
    right: 12px;
  }

  .nav-links {
    grid-area: links;
    width: 100%;
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
  }

  .nav-links a {
    min-height: 44px;
    padding: 0;
    gap: 0;
  }

  .nav-links a i {
    font-size: 1rem;
  }

  .nav-links a span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .workspace-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-zone {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-zone-title {
    grid-column: 1 / -1;
  }

  .workspace-tab {
    justify-content: flex-start;
    text-align: start;
  }

  main {
    padding-top: 16px;
  }

  .hero-command,
  .section-block,
  .workflow-section,
  .control-board,
  .final-panel {
    padding: 18px;
  }

  .hero-command {
    min-height: auto;
  }

  .hero-copy {
    padding: 24px 0 8px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .module-grid,
  .flow-list,
  .hero-strip,
  .dashboard-summary,
  .support-limit-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-hero,
  .dashboard-panel {
    padding: 18px;
  }

  .dashboard-identity {
    align-items: flex-start;
  }

  .dashboard-avatar {
    width: 64px;
    height: 64px;
  }

  .streamer-data-row,
  .support-total {
    grid-template-columns: 1fr;
  }

  .dashboard-identity h1 {
    font-size: 2.2rem;
  }

  .dashboard-status {
    min-width: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .setup-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .setup-row > span {
    grid-column: 2;
    width: max-content;
  }

  .final-panel,
  .footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer-meta {
    justify-content: flex-start;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-year {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 16px, 1240px);
  }

  .brand-name {
    max-width: 38vw;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-actions,
  .hero-actions .btn,
  .final-panel .btn {
    width: 100%;
  }

  .workspace-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-zone,
  .hero-metrics,
  .staff-counters,
  .staff-detail-grid,
  .staff-detail-grid.compact,
  .data-card-grid,
  .download-meta-grid,
  .streamer-data-row,
  .support-total,
  .streamers-counters,
  .streamer-data-metrics {
    grid-template-columns: 1fr;
  }

  .staff-search {
    grid-template-columns: 1fr;
  }

  .owner-create-head {
    display: grid;
  }

  .staff-search .btn {
    width: 100%;
  }

  .staff-user-row {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
  }

  .staff-user-row .status-pill {
    grid-column: 2;
    width: 100%;
    justify-content: center;
  }

  .staff-data-row {
    grid-template-columns: 1fr;
  }

  .staff-selected-head {
    align-items: flex-start;
  }

  .workspace-tab {
    justify-content: flex-start;
    text-align: start;
  }

  .data-pagination {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .data-pagination.is-numeric {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .queue-bulk-actions {
    grid-template-columns: 1fr;
  }

  .queue-bulk-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
